Skip to content

Commit 346df34

Browse files
authored
Fix typo in canIncludeBindAndCheckDiagnostics (microsoft#58840)
1 parent d8086f1 commit 346df34

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/compiler/checker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import {
6262
canHaveModifiers,
6363
canHaveModuleSpecifier,
6464
canHaveSymbol,
65-
canIncludeBindAndCheckDiagnsotics,
65+
canIncludeBindAndCheckDiagnostics,
6666
canUsePropertyAccess,
6767
cartesianProduct,
6868
CaseBlock,
@@ -49205,7 +49205,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4920549205
}
4920649206

4920749207
function calculateNodeCheckFlagWorker(node: Node, flag: LazyNodeCheckFlags) {
49208-
if (!compilerOptions.noCheck && canIncludeBindAndCheckDiagnsotics(getSourceFileOfNode(node), compilerOptions)) {
49208+
if (!compilerOptions.noCheck && canIncludeBindAndCheckDiagnostics(getSourceFileOfNode(node), compilerOptions)) {
4920949209
// Unless noCheck is passed, assume calculation of node check flags has been done eagerly.
4921049210
// This saves needing to mark up where in the eager traversal certain results are "done",
4921149211
// just to reconcile the eager and lazy results. This wouldn't be hard if an eager typecheck

src/compiler/emitter.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
CallExpression,
2222
CallSignatureDeclaration,
2323
canHaveLocals,
24-
canIncludeBindAndCheckDiagnsotics,
24+
canIncludeBindAndCheckDiagnostics,
2525
CaseBlock,
2626
CaseClause,
2727
CaseOrDefaultClause,
@@ -811,7 +811,7 @@ export function emitFiles(
811811
sourceFile => {
812812
if (
813813
compilerOptions.noCheck ||
814-
!canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)
814+
!canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)
815815
) markLinkedReferences(sourceFile);
816816
},
817817
);
@@ -878,7 +878,7 @@ export function emitFiles(
878878
(emitOnly && !getEmitDeclarations(compilerOptions)) ||
879879
compilerOptions.noCheck ||
880880
emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) ||
881-
!canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)
881+
!canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)
882882
) {
883883
collectLinkedAliases(sourceFile);
884884
}

src/compiler/utilities.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10116,11 +10116,11 @@ export function skipTypeChecking(sourceFile: SourceFile, options: CompilerOption
1011610116
options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib) ||
1011710117
options.noCheck ||
1011810118
host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) ||
10119-
!canIncludeBindAndCheckDiagnsotics(sourceFile, options);
10119+
!canIncludeBindAndCheckDiagnostics(sourceFile, options);
1012010120
}
1012110121

1012210122
/** @internal */
10123-
export function canIncludeBindAndCheckDiagnsotics(sourceFile: SourceFile, options: CompilerOptions) {
10123+
export function canIncludeBindAndCheckDiagnostics(sourceFile: SourceFile, options: CompilerOptions) {
1012410124
if (!!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false) return false;
1012510125
if (
1012610126
sourceFile.scriptKind === ScriptKind.TS ||

0 commit comments

Comments
 (0)