JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index ed51371..aeee2ce 100644 (file)
@@ -226,9 +226,9 @@ ScopeParser.prototype = {
             //this.dumpToken(token , this.scopes, this.braceNesting);
             //print('SCOPE:' + token.toString());
             //this.log(token.data);
-            if (token.type == 'NAME') {
+            //if (token.type == 'NAME') {
             //    print('*' + token.data);
-            }
+            //}
             switch(token.type + '.' + token.name) {
                 case "KEYW.VAR":
                 case "KEYW.CONST": // not really relivant as it's only mozzy that does this.
@@ -332,6 +332,8 @@ ScopeParser.prototype = {
                     var curTS = this.ts;
                     if (token.props) {
                         
+                        // { a : ... , c : .... }
+                        
                         for (var prop in token.props) {
                             
                             
@@ -357,10 +359,11 @@ ScopeParser.prototype = {
                         break;
                     }
                     
+                    // ( ... ) or { .... } not object literals..
                     
                     var _this = this;
                     token.items.forEach(function(expr) {
-                           //print(JSON.stringify(expr, null,4));
+                            //print(expr.toString());
                            _this.ts = new TokenStream(expr);
                             //if (curTS.data == '(') {
                                 _this.parseScope(scope)
@@ -493,7 +496,7 @@ ScopeParser.prototype = {
 
                         if (token.name == "EVAL") {
                             
-                            print(JSON.stringify(token, null,4));
+                            //print(JSON.stringify(token, null,4));
                             // look back one and see if we can find a comment!!!
                             //if (this.ts.look(-1).type == "COMM") {
                             if (token.prefix && token.prefix.match(/eval/)) {
@@ -749,7 +752,7 @@ ScopeParser.prototype = {
                     if (this.mode == 'BUILDING_SYMBOL_TREE') {
                         
                         if (token.name == "EVAL") {
-                            print(JSON.stringify(token,null,4));
+                            //print(JSON.stringify(token,null,4));
                             if (token.prefix && token.prefix.match(/eval:var:/g)) {
                                 // look for eval:var:noreplace\n
                                // print("GOT MATCH?");
@@ -794,7 +797,7 @@ ScopeParser.prototype = {
 
         var symbol;
         var token;
-        var scope;
+         
         var identifier;
         
         //token = getToken(-1);
@@ -822,7 +825,7 @@ ScopeParser.prototype = {
             identifier.refcount++;
         }
         
-        token = this.ts.nextTok();
+        //token = this.ts.nextTok();
         //assert token.getType() == Token.RP; // )
     },
     
@@ -857,9 +860,7 @@ ScopeParser.prototype = {
         while (token.data != "(") {
             //print(token.toString());
             token =  this.ts.nextTok();
-            
-            
-            
+             
         }