File tree 7 files changed +7
-7
lines changed
7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ module ts {
81
81
getTypeCount : ( ) => typeCount ,
82
82
isUndefinedSymbol : symbol => symbol === undefinedSymbol ,
83
83
isArgumentsSymbol : symbol => symbol === argumentsSymbol ,
84
+ emitFiles : invokeEmitter ,
84
85
getDiagnostics,
85
86
getDeclarationDiagnostics,
86
87
getGlobalDiagnostics,
87
88
checkProgram,
88
- invokeEmitter,
89
89
getParentOfSymbol,
90
90
getNarrowedTypeOfSymbol,
91
91
getDeclaredTypeOfSymbol,
Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ module ts {
367
367
}
368
368
else {
369
369
var emitStart = new Date ( ) . getTime ( ) ;
370
- var emitOutput = checker . invokeEmitter ( ) ;
370
+ var emitOutput = checker . emitFiles ( ) ;
371
371
var emitErrors = emitOutput . diagnostics ;
372
372
exitStatus = emitOutput . emitResultStatus ;
373
373
var reportStart = new Date ( ) . getTime ( ) ;
Original file line number Diff line number Diff line change @@ -738,7 +738,7 @@ module ts {
738
738
getSymbolCount ( ) : number ;
739
739
getTypeCount ( ) : number ;
740
740
checkProgram ( ) : void ;
741
- invokeEmitter ( targetSourceFile ?: SourceFile ) : EmitResult ;
741
+ emitFiles ( targetSourceFile ?: SourceFile ) : EmitResult ;
742
742
getParentOfSymbol ( symbol : Symbol ) : Symbol ;
743
743
getNarrowedTypeOfSymbol ( symbol : Symbol , node : Node ) : Type ;
744
744
getDeclaredTypeOfSymbol ( symbol : Symbol ) : Type ;
Original file line number Diff line number Diff line change @@ -2223,7 +2223,7 @@ module FourSlash {
2223
2223
if ( errs . length > 0 ) {
2224
2224
throw new Error ( 'Error compiling ' + fileName + ': ' + errs . map ( e => e . messageText ) . join ( '\r\n' ) ) ;
2225
2225
}
2226
- checker . invokeEmitter ( ) ;
2226
+ checker . emitFiles ( ) ;
2227
2227
result = result || '' ; // Might have an empty fourslash file
2228
2228
2229
2229
// Compile and execute the test
Original file line number Diff line number Diff line change @@ -806,7 +806,7 @@ module Harness {
806
806
// only emit if there weren't parse errors
807
807
var emitResult : ts . EmitResult ;
808
808
if ( ! isEmitBlocked ) {
809
- emitResult = checker . invokeEmitter ( ) ;
809
+ emitResult = checker . emitFiles ( ) ;
810
810
}
811
811
812
812
var errors : HarnessDiagnostic [ ] = [ ] ;
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ class ProjectRunner extends RunnerBase {
132
132
if ( ! errors . length ) {
133
133
var checker = program . getTypeChecker ( /*fullTypeCheck*/ true ) ;
134
134
errors = checker . getDiagnostics ( ) ;
135
- var emitResult = checker . invokeEmitter ( ) ;
135
+ var emitResult = checker . emitFiles ( ) ;
136
136
errors = ts . concatenate ( errors , emitResult . diagnostics ) ;
137
137
sourceMapData = emitResult . sourceMaps ;
138
138
Original file line number Diff line number Diff line change @@ -4625,7 +4625,7 @@ module ts {
4625
4625
// Perform semantic and force a type check before emit to ensure that all symbols are updated
4626
4626
// EmitFiles will report if there is an error from TypeChecker and Emitter
4627
4627
// 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 ) ;
4629
4629
emitOutput . emitOutputStatus = emitFilesResult . emitResultStatus ;
4630
4630
4631
4631
// 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
You can’t perform that action at this time.
0 commit comments