MCPcopy Index your code
hub / github.com/nodejs/node / isConstructorLike

Function isConstructorLike

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

Source from the content-addressed store, hash-verified

140104 return ts.tryCast(signature && signature.declaration, function (d) { return ts.isFunctionLike(d) && !ts.isFunctionTypeNode(d); });
140105 }
140106 function isConstructorLike(node) {
140107 switch (node.kind) {
140108 case 171 /* SyntaxKind.Constructor */:
140109 case 180 /* SyntaxKind.ConstructorType */:
140110 case 175 /* SyntaxKind.ConstructSignature */:
140111 return true;
140112 default:
140113 return false;
140114 }
140115 }
140116 })(GoToDefinition = ts.GoToDefinition || (ts.GoToDefinition = {}));
140117})(ts || (ts = {}));
140118/* @internal */

Callers 1

getDefinitionAtPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected