Skip to content

Commit a639aef

Browse files
committed
fix isParameterDeclaration changes
1 parent 35c1ea3 commit a639aef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3346,7 +3346,7 @@ namespace ts {
33463346
return node.escapedText === "push" || node.escapedText === "unshift";
33473347
}
33483348

3349-
export function isParameterDeclaration(node: VariableLikeDeclaration): node is ParameterDeclaration {
3349+
export function isParameterDeclaration(node: VariableLikeDeclaration): boolean {
33503350
const root = getRootDeclaration(node);
33513351
return root.kind === SyntaxKind.Parameter;
33523352
}

src/services/completions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ namespace ts.Completions {
981981
}
982982

983983
function addSnippetsWorker(node: Node, parent: Node | undefined) {
984-
if (isVariableLike(node) && isParameterDeclaration(node)) {
984+
if (isVariableLike(node) && node.kind === SyntaxKind.Parameter) {
985985
// Placeholder
986986
setSnippetElement(node.name, { kind: SnippetKind.Placeholder, order });
987987
order += 1;

0 commit comments

Comments
 (0)