JSDOC/Walker2.js
[gnome.introspection-doc-generator] / JSDOC / Walker2.js
index db484bf..fdcc3c0 100644 (file)
@@ -155,13 +155,13 @@ Walker2 = XObject.define(
             //print(JSON.stringify(this.ts, null, 4)); Seed.quit();
             
             while (null != (token = this.ts.next())) {
-                //print("TOK"+ token.toString());
+                print("TOK"+ token.toString());
                 //  this.timerPrint("parseScope AFTER lookT: " + token.toString()); 
                   
                 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' &&