X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FToken.js;h=465d70e73b94ffff320a8e8d5dc68bead42da77d;hp=95f84ca380fee72c8d89459092b7bef8e7704191;hb=f97b7efe182b819e8f6143b7aeb9fd45c7ab75f0;hpb=f2fca134e0b3284adaaabd66a14d06433d52d55a diff --git a/JSDOC/Token.js b/JSDOC/Token.js index 95f84ca..465d70e 100644 --- a/JSDOC/Token.js +++ b/JSDOC/Token.js @@ -42,12 +42,15 @@ Token = XObject.define( this.prefix = ''; this.outData = false; // used by packer/scopeparser this.identifier = false; // used by scope + this.id = Token.id++; }, Object, { toString: function() { - return 'line:' + this.line + ', type:' + this.type + ', name:' + this.name + ', data:' + this.data; + return 'line:' + this.line + ', type:' + this.type + + ', name:' + this.name + ', data:' + this.data + + ((this.outData === false) ? '' : ( 'outData : ' + this.outData)); }, @@ -103,4 +106,4 @@ Token = XObject.define( return this.name === what || this.type === what; } }); - \ No newline at end of file +Token.id = 0; \ No newline at end of file