From: Alan Knowles Date: Tue, 6 Jul 2010 14:51:52 +0000 (+0800) Subject: JSDOC/Walker2.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=386ff85ef38a818f06e13f2bdaf88d8a8c629887 JSDOC/Walker2.js --- diff --git a/JSDOC/Walker2.js b/JSDOC/Walker2.js index 9e7b206..11a22a0 100644 --- a/JSDOC/Walker2.js +++ b/JSDOC/Walker2.js @@ -329,7 +329,15 @@ Walker2 = XObject.define( // apply ( XXXX, { - + print(JSON.stringify([ + token.data, + this.ts.lookTok(2).data , + this.ts.lookTok(3).type , + this.ts.lookTok(4).data , + this.ts.lookTok(5).data + ], null, 4)); + + if (/\.(applyIf|apply)$/.test(token.data) && this.ts.lookTok(1).data == '(' && this.ts.lookTok(2).type == 'NAME' && @@ -369,7 +377,7 @@ Walker2 = XObject.define( // xxx = new yyy ( { // change scope to xxxx - + /* print(JSON.stringify([ this.ts.lookTok(1).data , this.ts.lookTok(2).name , @@ -377,7 +385,7 @@ Walker2 = XObject.define( 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' &&