We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e5983 commit a020a43Copy full SHA for a020a43
src/compiler/program.ts
@@ -177,10 +177,15 @@ module ts {
177
return { diagnostics: [], sourceMaps: undefined, emitSkipped: true };
178
}
179
180
+ // Create the emit resolver outside of the "emitTime" tracking code below. That way
181
+ // any cost associated with it (like type checking) are appropriate associated with
182
+ // the type-checking counter.
183
+ var emitResolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile);
184
+
185
var start = new Date().getTime();
186
187
var emitResult = emitFiles(
- getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile),
188
+ emitResolver,
189
getEmitHost(writeFileCallback),
190
sourceFile);
191
0 commit comments