mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 15:44:16 -06:00
Lint errors fix
This commit is contained in:
parent
576fe1e995
commit
7ebf9d9f9d
@ -166,12 +166,16 @@ namespace ts {
|
||||
semanticDiagnosticsPerFile.delete(sourceFile.path);
|
||||
}
|
||||
|
||||
newReferences && referencedMap.set(sourceFile.path, newReferences);
|
||||
if (newReferences) {
|
||||
referencedMap.set(sourceFile.path, newReferences);
|
||||
}
|
||||
fileInfos.set(sourceFile.path, { version, signature: oldInfo && oldInfo.signature });
|
||||
}
|
||||
|
||||
// For removed files, remove the semantic diagnostics removed files as changed
|
||||
useOldState && oldState.fileInfos.forEach((_value, path) => !fileInfos.has(path) && semanticDiagnosticsPerFile.delete(path));
|
||||
if (useOldState) {
|
||||
oldState.fileInfos.forEach((_value, path) => !fileInfos.has(path) && semanticDiagnosticsPerFile.delete(path));
|
||||
}
|
||||
|
||||
// Set the old state and program to undefined to ensure we arent keeping them alive hence forward
|
||||
oldState = undefined;
|
||||
|
||||
@ -53,7 +53,9 @@ namespace ts {
|
||||
const program = getProgram();
|
||||
builderState = createBuilderState(program, builderOptions, builderState);
|
||||
const outputFileNames: string[] = [];
|
||||
while (builderState.emitNextAffectedFile(program, fileName => outputFileNames.push(fileName))) { }
|
||||
// tslint:disable-next-line no-empty
|
||||
while (builderState.emitNextAffectedFile(program, fileName => outputFileNames.push(fileName))) {
|
||||
}
|
||||
assert.deepEqual(outputFileNames, fileNames);
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user