Skip to content

Commit 8cd4793

Browse files
authored
Fix typo in isChangedSignagure (microsoft#40668)
The correct spelling is `isChangedSignature`.
1 parent 17c7c26 commit 8cd4793

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/compiler/builder.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,10 @@ namespace ts {
493493
return !state.semanticDiagnosticsFromOldState.size;
494494
}
495495

496-
function isChangedSignagure(state: BuilderProgramState, path: Path) {
496+
function isChangedSignature(state: BuilderProgramState, path: Path) {
497497
const newSignature = Debug.checkDefined(state.currentAffectedFilesSignatures).get(path);
498-
const oldSignagure = Debug.checkDefined(state.fileInfos.get(path)).signature;
499-
return newSignature !== oldSignagure;
498+
const oldSignature = Debug.checkDefined(state.fileInfos.get(path)).signature;
499+
return newSignature !== oldSignature;
500500
}
501501

502502
/**
@@ -509,7 +509,7 @@ namespace ts {
509509
return;
510510
}
511511

512-
if (!isChangedSignagure(state, affectedFile.resolvedPath)) return;
512+
if (!isChangedSignature(state, affectedFile.resolvedPath)) return;
513513

514514
// Since isolated modules dont change js files, files affected by change in signature is itself
515515
// But we need to cleanup semantic diagnostics and queue dts emit for affected files
@@ -522,7 +522,7 @@ namespace ts {
522522
if (!seenFileNamesMap.has(currentPath)) {
523523
seenFileNamesMap.set(currentPath, true);
524524
const result = fn(state, currentPath);
525-
if (result && isChangedSignagure(state, currentPath)) {
525+
if (result && isChangedSignature(state, currentPath)) {
526526
const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath)!;
527527
queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));
528528
}

0 commit comments

Comments
 (0)