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