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

Function isInConstructorArgumentInitializer

test/fixtures/snapshot/typescript.js:72124–72126  ·  view source on GitHub ↗
(node, constructorDecl)

Source from the content-addressed store, hash-verified

72122 }
72123 }
72124 function isInConstructorArgumentInitializer(node, constructorDecl) {
72125 return !!ts.findAncestor(node, function (n) { return ts.isFunctionLikeDeclaration(n) ? "quit" : n.kind === 164 /* SyntaxKind.Parameter */ && n.parent === constructorDecl; });
72126 }
72127 function checkSuperExpression(node) {
72128 var isCallExpression = node.parent.kind === 208 /* SyntaxKind.CallExpression */ && node.parent.expression === node;
72129 var immediateContainer = ts.getSuperContainer(node, /*stopOnFunctions*/ true);

Callers 2

checkThisExpressionFunction · 0.85
checkSuperExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected