JSDOC/Walker2.js
[gnome.introspection-doc-generator] / JSDOC / Walker2.js
index c637133..61f7c3b 100644 (file)
@@ -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();
                     }
                     
@@ -330,7 +329,16 @@ Walker2 = XObject.define(
                     
                     
                      // apply ( XXXX,  {
-                         
+                    /*
+                    print(JSON.stringify([
+                        token.data,
+                        this.ts.lookTok(1).data ,
+                        this.ts.lookTok(2).type ,
+                        this.ts.lookTok(3).data ,
+                        this.ts.lookTok(4).data 
+                    ], null, 4));
+                    */
+                    
                     if (/\.(applyIf|apply)$/.test(token.data) && 
                         this.ts.lookTok(1).data == '('  &&
                         this.ts.lookTok(2).type == 'NAME' &&
@@ -370,7 +378,15 @@ Walker2 = XObject.define(
                     // xxx = new yyy ( {
                         
                     // 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' &&