MCPcopy
hub / github.com/ternjs/tern / parentDepth

Function parentDepth

lib/tern.js:509–516  ·  view source on GitHub ↗
(srv, parent)

Source from the content-addressed store, hash-verified

507 }
508
509 function parentDepth(srv, parent) {
510 var depth = 0;
511 while (parent) {
512 parent = srv.fileMap[parent].parent;
513 ++depth;
514 }
515 return depth;
516 }
517
518 function budgetName(srv, file) {
519 for (;;) {

Callers 2

ensureFileFunction · 0.85
analyzeAllFunction · 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…