MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / parentDepth

Function parentDepth

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

Source from the content-addressed store, hash-verified

500 }
501
502 function parentDepth(srv, parent) {
503 var depth = 0;
504 while (parent) {
505 parent = srv.fileMap[parent].parent;
506 ++depth;
507 }
508 return depth;
509 }
510
511 function budgetName(srv, file) {
512 for (;;) {

Callers 2

ensureFileFunction · 0.85
analyzeAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected