From 5a8eff848bf2819726f11c78fb53891075ff1a13 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Sat, 2 Aug 2014 12:03:25 -0700 Subject: [PATCH] Minor edits, no longer release 'program' Edited comments, no longer releasing 'program' as it is potentially confusing and doesn't buy us a heck of a lot anyway. --- src/compiler/tc.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/compiler/tc.ts b/src/compiler/tc.ts index 0cfa89a01c9..e347269fb30 100644 --- a/src/compiler/tc.ts +++ b/src/compiler/tc.ts @@ -273,13 +273,12 @@ module ts { function recompile(changedFiles: Map) { reportDiagnostic(createCompilerDiagnostic(Diagnostics.File_change_detected_Compiling)); - // Remove all the watchers, since we may not be watching every file - // specified since the last recompilation cycle. + // Remove all the watchers, as we may not be watching every file + // specified since the last compilation cycle. removeWatchers(program); - // Release the old program. + // Gets us syntactically correct files from the last compilation. var getUnmodifiedSourceFile = program.getSourceFile; - program = undefined; // We create a new compiler host for this compilation cycle. // This new host is effectively the same except that 'getSourceFile'