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

Function nodeImmediatelyReferencesSuperOrThis

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

Source from the content-addressed store, hash-verified

80565 return ts.isExpressionStatement(superCallParent) && superCallParent.parent === body;
80566 }
80567 function nodeImmediatelyReferencesSuperOrThis(node) {
80568 if (node.kind === 106 /* SyntaxKind.SuperKeyword */ || node.kind === 108 /* SyntaxKind.ThisKeyword */) {
80569 return true;
80570 }
80571 if (ts.isThisContainerOrFunctionBlock(node)) {
80572 return false;
80573 }
80574 return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80575 }
80576 function checkAccessorDeclaration(node) {
80577 addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80578 checkSourceElement(node.body);

Calls 1

forEachChildMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…