JSDOC/Packer.js
[gnome.introspection-doc-generator] / JSDOC / Token.js
index ca2c59e..30e03f1 100644 (file)
@@ -23,19 +23,20 @@ console = imports['console.js'].console;
 */
 
 Token = Object.define(
-    function(data, type, name) {
+    function(data, type, name, line) {
         this.data = data;
         this.type = type;
         this.name = name;
+        this.line = line;
         this.prefix = '';    
         this.outData = false; // used by packer/scopeparser
         this.identifier = false; // used by scope
     }, 
     Object, 
     {
-        function toString()
+         toString: function()
         {
-            return 'type:' + this.type+ ', name:' + this.name + ', data:' + this.data;
+            return 'type:' + this.type + ', name:' + this.name + ', data:' + this.data;
         },