projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/ScopeParser.js
[gnome.introspection-doc-generator]
/
JSDOC
/
ScopeParser.js
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
267152b
..
a69b251
100644
(file)
--- 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()) {
//print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
while (token = this.ts.lookTok()) {
-
+
/*
// moved out of loop?
/*
// moved out of loop?
@@
-592,7
+592,7
@@
ScopeParser.prototype = {
*/
//this.dumpToken(token, this.scopes, this.braceNesting );
*/
//this.dumpToken(token, this.scopes, this.braceNesting );
-
//print('EXP' + this.expN + ':' +
token.toString());
+
print('EXP' +
token.toString());
//println("<i>"+token.data+"</i>");
//println("<i>"+token.data+"</i>");
@@
-635,7
+635,9
@@
ScopeParser.prototype = {
var ts = this.ts;
var _this = this;
token.items.forEach(function(ns) {
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 = new TokenStream(ns);
+ _this.ts.cursor--;
_this.parseExpression();
});
this.ts = ts;
_this.parseExpression();
});
this.ts = ts;
@@
-742,7
+744,7
@@
ScopeParser.prototype = {
//println("<B>EID</B>");
//println("<B>EID</B>");
-
case 'KEYW':
+ case 'KEYW':
print("EXPR-KEYW:" + JSON.stringify(token, null, 4));
if (token.name == "FUNCTION") {
print("EXPR-KEYW:" + JSON.stringify(token, null, 4));
if (token.name == "FUNCTION") {
@@
-779,7
+781,9
@@
ScopeParser.prototype = {
}
break;
}
}
break;
}
-
+ default:
+ print("EXPR-SKIP:" + JSON.stringify(token, null, 4));
+ break;
}
if (!this.ts.nextTok()) break;
}
}
if (!this.ts.nextTok()) break;
}