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

Function isTopLevelDeclaration

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

Source from the content-addressed store, hash-verified

162569 return SymbolSet;
162570 }());
162571 function isTopLevelDeclaration(node) {
162572 return isNonVariableTopLevelDeclaration(node) && ts.isSourceFile(node.parent) || ts.isVariableDeclaration(node) && ts.isSourceFile(node.parent.parent.parent);
162573 }
162574 function sourceFileOfTopLevelDeclaration(node) {
162575 return ts.isVariableDeclaration(node) ? node.parent.parent.parent : node.parent;
162576 }

Callers 2

getUsageInfoFunction · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…