X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScope.js;h=aa145c3dbcb84a895c539fff8dcdb1cef79325ab;hp=f66a40701452b0d86eddba1408bb5854cb1c71c9;hb=309249e9eba5141a1ebb6276c7ceba0ff787fc74;hpb=9f004af67192a92ecb0e84b5b76170a16d10d941 diff --git a/JSDOC/Scope.js b/JSDOC/Scope.js index f66a407..aa145c3 100644 --- a/JSDOC/Scope.js +++ b/JSDOC/Scope.js @@ -55,7 +55,7 @@ Scope.prototype = { protectedVars : {}, // only used by to parent.. declareIdentifier : function(symbol, token) { - //print("SCOPE : " + this.gid + " : " + token.toString()+""); + //print("SCOPE : " + this.gid + " :SYM: " + symbol + " " + token.toString()+""); if (typeof(this.identifiers[symbol])== 'undefined') { @@ -70,6 +70,8 @@ Scope.prototype = { // then it's global... this.identifiers[symbol].toMunge = false; } + + this.addToParentScope(symbol); return this.identifiers[symbol]; }, @@ -239,7 +241,7 @@ Scope.prototype = { if (!repsym.length) { if (!freeSymbols.length) { - addSyms(JSDOC.Scope.twos); + addSyms(Scope.twos); } repsym = freeSymbols.shift(); // pop off beginngin??? }