@@ -738,8 +738,8 @@ namespace ts {
738
738
const oldDiag = getSymbolAccessibilityDiagnostic ;
739
739
740
740
// Setup diagnostic-related flags before first potential `cleanup` call, otherwise
741
- // We'd see a TDZ violation ar runtime
742
- const canProdiceDiagnostic = canProduceDiagnostics ( input ) ;
741
+ // We'd see a TDZ violation at runtime
742
+ const canProduceDiagnostic = canProduceDiagnostics ( input ) ;
743
743
const oldWithinObjectLiteralType = suppressNewDiagnosticContexts ;
744
744
let shouldEnterSuppressNewDiagnosticsContextContext = ( ( input . kind === SyntaxKind . TypeLiteral || input . kind === SyntaxKind . MappedType ) && input . parent . kind !== SyntaxKind . TypeAliasDeclaration ) ;
745
745
@@ -751,7 +751,7 @@ namespace ts {
751
751
}
752
752
}
753
753
754
- if ( canProdiceDiagnostic && ! suppressNewDiagnosticContexts ) {
754
+ if ( canProduceDiagnostic && ! suppressNewDiagnosticContexts ) {
755
755
getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode ( input as DeclarationDiagnosticProducing ) ;
756
756
}
757
757
@@ -913,13 +913,13 @@ namespace ts {
913
913
return cleanup ( visitEachChild ( input , visitDeclarationSubtree , context ) ) ;
914
914
915
915
function cleanup < T extends Node > ( returnValue : T | undefined ) : T | undefined {
916
- if ( returnValue && canProdiceDiagnostic && hasDynamicName ( input as Declaration ) ) {
916
+ if ( returnValue && canProduceDiagnostic && hasDynamicName ( input as Declaration ) ) {
917
917
checkName ( input as DeclarationDiagnosticProducing ) ;
918
918
}
919
919
if ( isEnclosingDeclaration ( input ) ) {
920
920
enclosingDeclaration = previousEnclosingDeclaration ;
921
921
}
922
- if ( canProdiceDiagnostic && ! suppressNewDiagnosticContexts ) {
922
+ if ( canProduceDiagnostic && ! suppressNewDiagnosticContexts ) {
923
923
getSymbolAccessibilityDiagnostic = oldDiag ;
924
924
}
925
925
if ( shouldEnterSuppressNewDiagnosticsContextContext ) {
0 commit comments