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

Function findSuperCall

test/fixtures/snapshot/typescript.js:155352–155358  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

155350 return superCall && !superCall.expression.arguments.some(function (arg) { return ts.isPropertyAccessExpression(arg) && arg.expression === token; }) ? { constructor: constructor, superCall: superCall } : undefined;
155351 }
155352 function findSuperCall(n) {
155353 return ts.isExpressionStatement(n) && ts.isSuperCall(n.expression)
155354 ? n
155355 : ts.isFunctionLike(n)
155356 ? undefined
155357 : ts.forEachChild(n, findSuperCall);
155358 }
155359 })(codefix = ts.codefix || (ts.codefix = {}));
155360})(ts || (ts = {}));
155361/* @internal */

Callers 1

getNodesFunction · 0.85

Calls 1

forEachChildMethod · 0.80

Tested by

no test coverage detected