diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 941bfdfac8b..78408e13af7 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -19223,6 +19223,8 @@ namespace ts { function initializeTypeChecker() { // Bind all source files and propagate errors + performance.mark("heapBeforeBind"); + for (const file of host.getSourceFiles()) { bindSourceFile(file, compilerOptions); } @@ -19272,6 +19274,8 @@ namespace ts { // Setup global builtins addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0); + performance.mark("heapAfterBind"); + getSymbolLinks(undefinedSymbol).type = undefinedWideningType; getSymbolLinks(argumentsSymbol).type = getGlobalType("IArguments"); getSymbolLinks(unknownSymbol).type = unknownType;