JSDOC/Walker2.js
[gnome.introspection-doc-generator] / JSDOC / Walker2.js
index 48396db..57cfea3 100644 (file)
@@ -427,7 +427,7 @@ Walker2 = XObject.define(
                         this.currentDoc = false;
                         continue;
                     }
-                    /*
+                    
                     if (this.currentDoc) {
                         //print(token.toString());
                         
@@ -438,8 +438,8 @@ Walker2 = XObject.define(
                         if (((this.ts.lookTok(1).data == ':' )|| (this.ts.lookTok(1).data == '=')) &&
                             (this.ts.lookTok(2).name == "FUNCTION")
                             ) {
-                                this.ts.nextTok();
-                                this.ts.nextTok();
+                               // this.ts.nextTok();
+                               // this.ts.nextTok();
                                 atype = 'FUNCTION';
                         }
                         
@@ -450,11 +450,11 @@ Walker2 = XObject.define(
                             false,
                             atype);
                         
-                        
+                        this.currentDoc = false;
                         
                         
                     }
-                    */
+                 
                     
                     continue; // dont care about other idents..
                     
@@ -477,16 +477,16 @@ Walker2 = XObject.define(
                     //print("GOT FUNCTION");
                     // see if we have an unconsumed doc...
                     
-                    //if (this.currentDoc) {
-                     //       throw {
-                     //           name: "ArgumentError", 
-                     //           message: "Unhandled doc (TOKfunction)" + token.toString()
-                     //       };
-                     //       
+                    if (this.currentDoc) {
+                            throw {
+                                name: "ArgumentError", 
+                                message: "Unhandled doc (TOKfunction)" + token.toString()
+                            };
+                            
                             //this.addSymbol(this.currentDoc.getTag('class')[0].name, true);
 
                             //throw "Unconsumed Doc: (TOKrbrace)" + this.currentDoc.toSource();
-                    //}
+                    }
                     
                      
                      
@@ -740,8 +740,8 @@ Walker2 = XObject.define(
          
         addSymbol: function(lastIdent, appendIt, atype )
         {
-            print("Walker.addSymbol : " + lastIdent);
-            print("Walker.curdoc: " + JSON.stringify(this.currentDoc, null,4));
+            //print("Walker.addSymbol : " + lastIdent);
+            //print("Walker.curdoc: " + JSON.stringify(this.currentDoc, null,4));
             
             /*if (!this.currentDoc.tags.length) {
                 
@@ -795,7 +795,7 @@ Walker2 = XObject.define(
                 
                 var s = s.join('|').split('|');
                 //print("FULLSCOPE: " + s);
-               //print("Walker:ADDSymbol: " + s.join('|') );
+               print("Walker:ADDSymbol: " + s.join('|') );
                 var _t = '';
                  _s = '';
                 
@@ -819,7 +819,7 @@ Walker2 = XObject.define(
                     _s += _s.length ? '.' : '';
                     _s += s[i];
                 }
-                //print("FULLSCOPE: s , t : " + _s +', ' + _t);
+                print("FULLSCOPE: s , t : " + _s +', ' + _t);
                 
                 /// calc scope!!
                 //print("ADDING SYMBOL: "+ s.join('|') +"\n"+ _s + "\n" +Script.prettyDump(this.currentDoc.toSource()));