We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 659dc03 commit e60348bCopy full SHA for e60348b
1 file changed
src/services/completions.ts
@@ -1644,14 +1644,9 @@ namespace ts.Completions {
1644
return undefined;
1645
}
1646
1647
- function isParameterOfConstructorDeclaration(node: Node) {
1648
- return isParameter(node) && isConstructorDeclaration(node.parent);
1649
- }
1650
-
1651
- function isConstructorParameterCompletion(node: Node) {
1652
- return node.parent &&
1653
- isParameterOfConstructorDeclaration(node.parent) &&
1654
- (isParameterPropertyModifier(node.kind) || isDeclarationName(node));
+ function isConstructorParameterCompletion(node: Node): boolean {
+ return !!node.parent && isParameter(node.parent) && isConstructorDeclaration(node.parent.parent)
+ && (isParameterPropertyModifier(node.kind) || isDeclarationName(node));
1655
1656
1657
/**
0 commit comments