X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=a69b25131a0b1ee6421c2110a1f6b221062c7d9d;hb=0d87246464fc48dab6e16d4799c4458fc4b03cf6;hp=267152b2972c8e1c19bf70188e429a6af1ecb239;hpb=0352fabe4a0a803e9f51632b5f06cdd016f489be;p=gnome.introspection-doc-generator
diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js
index 267152b..a69b251 100644
--- a/JSDOC/ScopeParser.js
+++ b/JSDOC/ScopeParser.js
@@ -579,7 +579,7 @@ ScopeParser.prototype = {
//print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
while (token = this.ts.lookTok()) {
-
+
/*
// moved out of loop?
@@ -592,7 +592,7 @@ ScopeParser.prototype = {
*/
//this.dumpToken(token, this.scopes, this.braceNesting );
- //print('EXP' + this.expN + ':' + token.toString());
+ print('EXP' + token.toString());
//println(""+token.data+"");
@@ -635,7 +635,9 @@ ScopeParser.prototype = {
var ts = this.ts;
var _this = this;
token.items.forEach(function(ns) {
+ print("EXPR-PUNC-MAKE:" + JSON.stringify(ns, null, 4));
_this.ts = new TokenStream(ns);
+ _this.ts.cursor--;
_this.parseExpression();
});
this.ts = ts;
@@ -742,7 +744,7 @@ ScopeParser.prototype = {
//println("EID");
- case 'KEYW':
+ case 'KEYW':
print("EXPR-KEYW:" + JSON.stringify(token, null, 4));
if (token.name == "FUNCTION") {
@@ -779,7 +781,9 @@ ScopeParser.prototype = {
}
break;
}
-
+ default:
+ print("EXPR-SKIP:" + JSON.stringify(token, null, 4));
+ break;
}
if (!this.ts.nextTok()) break;
}