JSDOC/Scope.js
[gnome.introspection-doc-generator] / JSDOC / Scope.js
index 6a2979c..5fe7403 100644 (file)
@@ -10,7 +10,7 @@ Identifier = imports.Identifier.Identifier
 XObject = imports.XObject.XObject; 
 
 
-function Scope(braceN, parent, startTokN, lastIdent)
+function Scope(braceN, parent, startTokN, lastIdent, token)
 {
     if (lastIdent.length) {
        //  println("NEW SCOPE: " + lastIdent);
@@ -25,7 +25,8 @@ function Scope(braceN, parent, startTokN, lastIdent)
     this.ident = lastIdent;
     this.gid = Scope.gid++;
     
-    print("ADD SCOPE(" + this.gid + ") TO "+ (parent ? this.parent.gid : 'TOP'));
+    print("ADD SCOPE(" + this.gid + ") TO "+ (parent ? this.parent.gid : 'TOP') + ' : ' + 
+        (token ? token.toString() : ''));
     
     if (parent) {
         this.parent.subScopes.push(this);