File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3346,7 +3346,7 @@ namespace ts {
3346
3346
return node . escapedText === "push" || node . escapedText === "unshift" ;
3347
3347
}
3348
3348
3349
- export function isParameterDeclaration ( node : VariableLikeDeclaration ) : node is ParameterDeclaration {
3349
+ export function isParameterDeclaration ( node : VariableLikeDeclaration ) : boolean {
3350
3350
const root = getRootDeclaration ( node ) ;
3351
3351
return root . kind === SyntaxKind . Parameter ;
3352
3352
}
Original file line number Diff line number Diff line change @@ -981,7 +981,7 @@ namespace ts.Completions {
981
981
}
982
982
983
983
function addSnippetsWorker ( node : Node , parent : Node | undefined ) {
984
- if ( isVariableLike ( node ) && isParameterDeclaration ( node ) ) {
984
+ if ( isVariableLike ( node ) && node . kind === SyntaxKind . Parameter ) {
985
985
// Placeholder
986
986
setSnippetElement ( node . name , { kind : SnippetKind . Placeholder , order } ) ;
987
987
order += 1 ;
You can’t perform that action at this time.
0 commit comments