X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FWalker2.js;h=fdcc3c04f46537bb6d41f2d2e26a9fbbb1257ff0;hb=6faf99e1c6ed2443b2f5dba0433ab7cab3342eb8;hp=c6371330e4bcaafdf52299946b968950e7e43a6f;hpb=163f759d8abb61c48902e280a1e4f543613cd617;p=gnome.introspection-doc-generator diff --git a/JSDOC/Walker2.js b/JSDOC/Walker2.js index c637133..fdcc3c0 100644 --- a/JSDOC/Walker2.js +++ b/JSDOC/Walker2.js @@ -161,7 +161,7 @@ Walker2 = XObject.define( if (token.is('WHIT')) { - if (!token._isDoc) { + if (token.name != 'JSDOC') { continue; //skip. } if (this.currentDoc) { @@ -169,7 +169,6 @@ Walker2 = XObject.define( this.addSymbol('', true); - //throw "Unconsumed Doc (TOKwhitespace): " + this.currentDoc.toSource(); } @@ -371,6 +370,14 @@ Walker2 = XObject.define( // change scope to xxxx + print(JSON.stringify([ + this.ts.lookTok(1).data + this.ts.lookTok(2).name + this.ts.lookTok(3).type + this.ts.lookTok(4).data + this.ts.lookTok(5).data + ], null, 4)); + if ( this.ts.lookTok(1).data == '=' && this.ts.lookTok(2).name == 'NEW' && this.ts.lookTok(3).type == 'NAME' &&