projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ac6fbd
)
JSDOC/ScopeParser.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 05:05:39 +0000
(13:05 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 05:05:39 +0000
(13:05 +0800)
JSDOC/ScopeParser.js
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
5662e69
..
b943f77
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-528,7
+528,7
@@
ScopeParser.prototype = {
//print("<<<<<<<EXIT SCOPE ERR?" +this.scopes.length);
},
//print("<<<<<<<EXIT SCOPE ERR?" +this.scopes.length);
},
-
+ expN : 0,
parseExpression : function() {
// Parse the expression until we encounter a comma or a semi-colon
parseExpression : function() {
// Parse the expression until we encounter a comma or a semi-colon
@@
-536,7
+536,7
@@
ScopeParser.prototype = {
// Parse functions if any...
//println("<i>EXP</i><BR/>");
!this.debug || print("PARSE EXPR");
// Parse functions if any...
//println("<i>EXP</i><BR/>");
!this.debug || print("PARSE EXPR");
-
+ this.expN++;
// for printing stuff..
// for printing stuff..
@@
-559,7
+559,7
@@
ScopeParser.prototype = {
this.scopes.forEach(function() {
scopeIndent += ' ';
});
this.scopes.forEach(function() {
scopeIndent += ' ';
});
- print(scopeIndent + ">> ENTER EXPRESSION");
+ print(scopeIndent + ">> ENTER EXPRESSION"
+ this.expN
);
while (token = this.ts.lookTok()) {
while (token = this.ts.lookTok()) {
@@
-590,6
+590,7
@@
ScopeParser.prototype = {
bracketNesting == 0 &&
parensNesting == 0) {
print(scopeIndent + "<< EXIT EXPRESSION");
bracketNesting == 0 &&
parensNesting == 0) {
print(scopeIndent + "<< EXIT EXPRESSION");
+ this.expN--;
return;
}
break;
return;
}
break;