X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScope.js;h=afd488d1ccef95db790580e0097a8f2f90af8aee;hp=84e86daa0eb02a6fe133487d49bfd05158f3be98;hb=05502e1f18a4e2562a4c44c6b83dbbd99f26dbec;hpb=8e8da0ce53d5005cba0966d410c966eac20b0977
diff --git a/JSDOC/Scope.js b/JSDOC/Scope.js
index 84e86da..afd488d 100644
--- a/JSDOC/Scope.js
+++ b/JSDOC/Scope.js
@@ -6,7 +6,7 @@
* // FIXME - I need this to do next() without doccomments..
*/
-Identifier = imports['JSDOC/Identifier.js'].Identifier
+Identifier = imports.Identifier.Identifier
XObject = imports.XObject.XObject;
@@ -23,7 +23,7 @@ function Scope(braceN, parent, startTokN, lastIdent)
this.subScopes = [];
this.hints = { };
this.ident = lastIdent;
-
+ this.gid = Scope.gid++;
//println("ADD SCOPE(" + this.id + ") TO "+ (parent ? this.parent.id : 'TOP') + "
");
@@ -54,7 +54,7 @@ Scope.prototype = {
protectedVars : {}, // only used by to parent..
declareIdentifier : function(symbol, token) {
- //println("ADD IDENT(" + this.id + "):" + symbol+"
");
+ print("ADD IDENT(" + this.id + "):" + symbol+"");
if (typeof(this.identifiers[symbol])== 'undefined') {
@@ -313,4 +313,4 @@ XObject.extend(Scope, {
})
// init the scope constants..
Scope.init();
-
\ No newline at end of file
+Scope.gid = 0;
\ No newline at end of file