MCPcopy Create free account
hub / github.com/nodejs/node / isConstructorParameterCompletion

Function isConstructorParameterCompletion

test/fixtures/snapshot/typescript.js:134507–134510  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

134505 return 1 /* GlobalsSearch.Success */;
134506 }
134507 function isConstructorParameterCompletion(node) {
134508 return !!node.parent && ts.isParameter(node.parent) && ts.isConstructorDeclaration(node.parent.parent)
134509 && (ts.isParameterPropertyModifier(node.kind) || ts.isDeclarationName(node));
134510 }
134511 /**
134512 * Returns the immediate owning class declaration of a context token,
134513 * on the condition that one exists and that the context implies completion should be given.

Calls

no outgoing calls

Tested by

no test coverage detected