@@ -735,7 +735,7 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
735
735
break ;
736
736
case SyntaxKind . JSDocFunctionType :
737
737
return ( isJSDocConstructSignature ( node ) ? InternalSymbolName . New : InternalSymbolName . Call ) ;
738
- case SyntaxKind . Parameter :
738
+ case SyntaxKind . ParameterDeclaration :
739
739
// Parameters with names are handled at the top of this function. Parameters
740
740
// without names can only come from JSDocFunctionTypes.
741
741
Debug . assert ( node . parent . kind === SyntaxKind . JSDocFunctionType , "Impossible parameter parent kind" , ( ) => `parent is: ${ Debug . formatSyntaxKind ( node . parent . kind ) } , expected JSDocFunctionType` ) ;
@@ -1207,7 +1207,7 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
1207
1207
case SyntaxKind . BindingElement :
1208
1208
bindBindingElementFlow ( node as BindingElement ) ;
1209
1209
break ;
1210
- case SyntaxKind . Parameter :
1210
+ case SyntaxKind . ParameterDeclaration :
1211
1211
bindParameterFlow ( node as ParameterDeclaration ) ;
1212
1212
break ;
1213
1213
case SyntaxKind . ObjectLiteralExpression :
@@ -2941,7 +2941,7 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
2941
2941
break ; // Binding the children will handle everything
2942
2942
case SyntaxKind . TypeParameter :
2943
2943
return bindTypeParameter ( node as TypeParameterDeclaration ) ;
2944
- case SyntaxKind . Parameter :
2944
+ case SyntaxKind . ParameterDeclaration :
2945
2945
return bindParameter ( node as ParameterDeclaration ) ;
2946
2946
case SyntaxKind . VariableDeclaration :
2947
2947
return bindVariableDeclarationOrBindingElement ( node as VariableDeclaration ) ;
0 commit comments