@@ -738,8 +738,8 @@ namespace ts {
738738 const oldDiag = getSymbolAccessibilityDiagnostic ;
739739
740740 // 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 ) ;
743743 const oldWithinObjectLiteralType = suppressNewDiagnosticContexts ;
744744 let shouldEnterSuppressNewDiagnosticsContextContext = ( ( input . kind === SyntaxKind . TypeLiteral || input . kind === SyntaxKind . MappedType ) && input . parent . kind !== SyntaxKind . TypeAliasDeclaration ) ;
745745
@@ -751,7 +751,7 @@ namespace ts {
751751 }
752752 }
753753
754- if ( canProdiceDiagnostic && ! suppressNewDiagnosticContexts ) {
754+ if ( canProduceDiagnostic && ! suppressNewDiagnosticContexts ) {
755755 getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode ( input as DeclarationDiagnosticProducing ) ;
756756 }
757757
@@ -913,13 +913,13 @@ namespace ts {
913913 return cleanup ( visitEachChild ( input , visitDeclarationSubtree , context ) ) ;
914914
915915 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 ) ) {
917917 checkName ( input as DeclarationDiagnosticProducing ) ;
918918 }
919919 if ( isEnclosingDeclaration ( input ) ) {
920920 enclosingDeclaration = previousEnclosingDeclaration ;
921921 }
922- if ( canProdiceDiagnostic && ! suppressNewDiagnosticContexts ) {
922+ if ( canProduceDiagnostic && ! suppressNewDiagnosticContexts ) {
923923 getSymbolAccessibilityDiagnostic = oldDiag ;
924924 }
925925 if ( shouldEnterSuppressNewDiagnosticsContextContext ) {
0 commit comments