Merge branch 'live' of http://private.akbkhome.com/gnome.introspection-doc-generator...
[gnome.introspection-doc-generator] / JSDOC / Token.js
index 228f8dd..0486c68 100644 (file)
@@ -23,16 +23,22 @@ 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 = ''; // used by packer/scopeparser
+        this.outData = false; // used by packer/scopeparser
         this.identifier = false; // used by scope
     }, 
     Object, 
     {
+         toString: function()
+        {
+            return 'line:' + this.line + ', type:' + this.type + ', name:' + this.name + ', data:' + this.data;
+        },
+        
         
         toRaw : function(lvl)
         {