MCPcopy Create free account
hub / github.com/browserify/static-module / nearestScope

Function nearestScope

index.js:418–423  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

416}
417
418function nearestScope(node) {
419 do {
420 var scope = scan.scope(node);
421 if (scope) return scope;
422 } while ((node = node.parent));
423}
424
425function getVars(node, vars) {
426 var xvars = copy(vars || {});

Callers 1

getVarsFunction · 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…