MCPcopy Create free account
hub / github.com/ternjs/tern / scopeDepth

Function scopeDepth

lib/tern.js:425–428  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

423 }
424
425 function scopeDepth(s) {
426 for (var i = 0; s; ++i, s = s.prev) {}
427 return i;
428 }
429
430 function ternError(msg) {
431 var err = new Error(msg);

Callers 1

resolveFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected