JSDOC/Token.vala
[gnome.introspection-doc-generator] / JSDOC / Token.vala
index 0bf409f..7c13595 100644 (file)
@@ -50,7 +50,7 @@ namespace JSDOC
         
         // props??? what's this???
         
-        public Token(string data, string type, string name, int line)
+        public Token(string data, string type, string name, int line = -1)
         {
             this.data = data;
             this.type = type;
@@ -59,7 +59,7 @@ namespace JSDOC
             this.prefix = "";    
             this.outData = null; // used by packer/scopeparser
             this.identifier = null; // used by scope
-            this.id = tokid++;
+            this.id = Token_id++;
             
             
             this.items = new Gee.ArrayList<Gee.ArrayList<Token>>();