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

Function isNodeWithinClass

test/fixtures/snapshot/typescript.js:86218–86220  ·  view source on GitHub ↗
(node, classDeclaration)

Source from the content-addressed store, hash-verified

86216 });
86217 }
86218 function isNodeWithinClass(node, classDeclaration) {
86219 return !!forEachEnclosingClass(node, function (n) { return n === classDeclaration; });
86220 }
86221 function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) {
86222 while (nodeOnRightSide.parent.kind === 161 /* SyntaxKind.QualifiedName */) {
86223 nodeOnRightSide = nodeOnRightSide.parent;

Callers 3

isConstructorAccessibleFunction · 0.85

Calls 1

forEachEnclosingClassFunction · 0.85

Tested by

no test coverage detected