respond to comments

This commit is contained in:
Arthur Ozga 2017-05-01 17:49:19 -07:00
parent 7d1d22ce4b
commit 60825143a4
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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);