MCPcopy Create free account
hub / github.com/corbanbrook/dsp.js / getScopeLevel

Function getScopeLevel

examples/js/processing.js:11716–11723  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

11714 };
11715 AstClassBody.prototype.toString = function() {
11716 function getScopeLevel(p) {
11717 var i = 0;
11718 while(p) {
11719 ++i;
11720 p=p.scope;
11721 }
11722 return i;
11723 }
11724
11725 var scopeLevel = getScopeLevel(this.owner);
11726

Callers 1

parseProcessingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected