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

Function isNonVariableTopLevelDeclaration

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

Source from the content-addressed store, hash-verified

162579 return isNonVariableTopLevelDeclaration(node) || ts.isVariableStatement(node);
162580 }
162581 function isNonVariableTopLevelDeclaration(node) {
162582 switch (node.kind) {
162583 case 256 /* SyntaxKind.FunctionDeclaration */:
162584 case 257 /* SyntaxKind.ClassDeclaration */:
162585 case 261 /* SyntaxKind.ModuleDeclaration */:
162586 case 260 /* SyntaxKind.EnumDeclaration */:
162587 case 259 /* SyntaxKind.TypeAliasDeclaration */:
162588 case 258 /* SyntaxKind.InterfaceDeclaration */:
162589 case 265 /* SyntaxKind.ImportEqualsDeclaration */:
162590 return true;
162591 default:
162592 return false;
162593 }
162594 }
162595 function forEachTopLevelDeclaration(statement, cb) {
162596 switch (statement.kind) {
162597 case 256 /* SyntaxKind.FunctionDeclaration */:

Callers 2

isTopLevelDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…