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

Function getDepth

test/fixtures/snapshot/typescript.js:138018–138025  ·  view source on GitHub ↗
(declaration)

Source from the content-addressed store, hash-verified

138016 return topMost;
138017 }, { depth: Infinity, declarationNames: [] }).declarationNames;
138018 function getDepth(declaration) {
138019 var depth = 0;
138020 while (declaration) {
138021 declaration = ts.getContainerNode(declaration);
138022 depth++;
138023 }
138024 return depth;
138025 }
138026 }
138027 Core.getTopMostDeclarationNamesInFile = getTopMostDeclarationNamesInFile;
138028 function someSignatureUsage(signature, sourceFiles, checker, cb) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected