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

Function getFirstConstructorWithBody

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

Source from the content-addressed store, hash-verified

18539 }
18540 ts.getLineOfLocalPositionFromLineMap = getLineOfLocalPositionFromLineMap;
18541 function getFirstConstructorWithBody(node) {
18542 return ts.find(node.members, function (member) { return ts.isConstructorDeclaration(member) && nodeIsPresent(member.body); });
18543 }
18544 ts.getFirstConstructorWithBody = getFirstConstructorWithBody;
18545 function getSetAccessorValueParameter(accessor) {
18546 if (accessor && accessor.parameters.length > 0) {

Calls 2

nodeIsPresentFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected