From 60825143a4efe70263456d210ededabf8a10acdc Mon Sep 17 00:00:00 2001 From: Arthur Ozga Date: Mon, 1 May 2017 17:49:19 -0700 Subject: [PATCH] respond to comments --- src/compiler/diagnosticMessages.json | 2 +- src/compiler/program.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index b045def34e7..f819c60371e 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -3203,7 +3203,7 @@ }, "Reusing resolution of module '{0}' to file '{1}' from old program.": { "category": "Message", - "code": 618 + "code": 6183 }, "Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program.": { "category": "Message", diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 97f09c083f5..61561726670 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -531,7 +531,7 @@ namespace ts { for (let i = 0; i < moduleNames.length; i++) { const moduleName = moduleNames[i]; - // TODO: if we want to reuse resolutions more aggressively, refine this to check for whether the + // If we want to reuse resolutions more aggressively, we can refine this to check for whether the // text of the corresponding modulenames has changed. if (file === oldSourceFile) { const oldResolvedModule = oldSourceFile && oldSourceFile.resolvedModules.get(moduleName); @@ -596,7 +596,7 @@ namespace ts { return result; - // TODO: if we change our policy of rechecking failed lookups on each program create, + // If we change our policy of rechecking failed lookups on each program create, // we should adjust the value returned here. function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName: string, oldProgramState: OldProgramState): boolean { const resolutionToFile = getResolvedModule(oldProgramState.file, moduleName);