Skip to content

Commit 92f8d0b

Browse files
author
Yui T
committed
Change the name invokeEmitter back to emitFiles
1 parent dc3bd6a commit 92f8d0b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ module ts {
8181
getTypeCount: () => typeCount,
8282
isUndefinedSymbol: symbol => symbol === undefinedSymbol,
8383
isArgumentsSymbol: symbol => symbol === argumentsSymbol,
84+
emitFiles: invokeEmitter,
8485
getDiagnostics,
8586
getDeclarationDiagnostics,
8687
getGlobalDiagnostics,
8788
checkProgram,
88-
invokeEmitter,
8989
getParentOfSymbol,
9090
getNarrowedTypeOfSymbol,
9191
getDeclaredTypeOfSymbol,

src/compiler/tsc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ module ts {
367367
}
368368
else {
369369
var emitStart = new Date().getTime();
370-
var emitOutput = checker.invokeEmitter();
370+
var emitOutput = checker.emitFiles();
371371
var emitErrors = emitOutput.diagnostics;
372372
exitStatus = emitOutput.emitResultStatus;
373373
var reportStart = new Date().getTime();

src/compiler/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ module ts {
738738
getSymbolCount(): number;
739739
getTypeCount(): number;
740740
checkProgram(): void;
741-
invokeEmitter(targetSourceFile?: SourceFile): EmitResult;
741+
emitFiles(targetSourceFile?: SourceFile): EmitResult;
742742
getParentOfSymbol(symbol: Symbol): Symbol;
743743
getNarrowedTypeOfSymbol(symbol: Symbol, node: Node): Type;
744744
getDeclaredTypeOfSymbol(symbol: Symbol): Type;

src/harness/fourslash.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ module FourSlash {
22232223
if (errs.length > 0) {
22242224
throw new Error('Error compiling ' + fileName + ': ' + errs.map(e => e.messageText).join('\r\n'));
22252225
}
2226-
checker.invokeEmitter();
2226+
checker.emitFiles();
22272227
result = result || ''; // Might have an empty fourslash file
22282228

22292229
// Compile and execute the test

src/harness/harness.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ module Harness {
806806
// only emit if there weren't parse errors
807807
var emitResult: ts.EmitResult;
808808
if (!isEmitBlocked) {
809-
emitResult = checker.invokeEmitter();
809+
emitResult = checker.emitFiles();
810810
}
811811

812812
var errors: HarnessDiagnostic[] = [];

src/harness/projectsRunner.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class ProjectRunner extends RunnerBase {
132132
if (!errors.length) {
133133
var checker = program.getTypeChecker(/*fullTypeCheck*/ true);
134134
errors = checker.getDiagnostics();
135-
var emitResult = checker.invokeEmitter();
135+
var emitResult = checker.emitFiles();
136136
errors = ts.concatenate(errors, emitResult.diagnostics);
137137
sourceMapData = emitResult.sourceMaps;
138138

src/services/services.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4625,7 +4625,7 @@ module ts {
46254625
// Perform semantic and force a type check before emit to ensure that all symbols are updated
46264626
// EmitFiles will report if there is an error from TypeChecker and Emitter
46274627
// Depend whether we will have to emit into a single file or not either emit only selected file in the project, emit all files into a single file
4628-
var emitFilesResult = getFullTypeCheckChecker().invokeEmitter(targetSourceFile);
4628+
var emitFilesResult = getFullTypeCheckChecker().emitFiles(targetSourceFile);
46294629
emitOutput.emitOutputStatus = emitFilesResult.emitResultStatus;
46304630

46314631
// Reset writer back to undefined to make sure that we produce an error message if CompilerHost.writeFile method is called when we are not in getEmitOutput

0 commit comments

Comments
 (0)