JSDOC/Scope.js
[gnome.introspection-doc-generator] / JSDOC / Scope.js
index 11b72df..8ae7f62 100644 (file)
@@ -9,6 +9,7 @@
 const Identifier = imports.Identifier.Identifier
 const XObject = imports.XObject.XObject; 
 
+Scope.id = 0;
 
 function Scope(braceN, parent, startTokN, lastIdent, token)
 {
@@ -18,7 +19,7 @@ function Scope(braceN, parent, startTokN, lastIdent, token)
     
     this.braceN = braceN
     this.parent = parent;
-    this.id = startTokN;
+    this.id = Scope.id++;
     this.identifiers = { };
     this.subScopes = [];
     this.hints = { };