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:
1a012d8
)
JSDOC/ScopeParser.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 04:43:41 +0000
(12:43 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 04:43:41 +0000
(12:43 +0800)
JSDOC/ScopeParser.js
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
c781339
..
602f6ed
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-309,7
+309,9
@@
ScopeParser.prototype = {
break;
} else {
//var bn = this.braceNesting;
break;
} else {
//var bn = this.braceNesting;
+ var bn = this.braceNesting;
this.parseExpression();
this.parseExpression();
+ this.braceNesting = bn;
//this.braceNesting = bn;
//this.logR("parseScope DONE : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString());
//this.braceNesting = bn;
//this.logR("parseScope DONE : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString());
@@
-349,6
+351,7
@@
ScopeParser.prototype = {
// eat symbol if we are currently at {
if (this.ts.look(0).data == '{') {
this.ts.nextTok();
// eat symbol if we are currently at {
if (this.ts.look(0).data == '{') {
this.ts.nextTok();
+
}
print("<<<<<<<EXIT SCOPE" +this.scopes.length);
}
print("<<<<<<<EXIT SCOPE" +this.scopes.length);
@@
-543,7
+546,7
@@
ScopeParser.prototype = {
var currentScope;
var identifier;
var currentScope;
var identifier;
- var expressionBraceNesting = this.braceNesting;
+ var expressionBraceNesting = this.braceNesting
+ 0
;
var bracketNesting = 0;
var parensNesting = 0;
var isInObjectLitAr;
var bracketNesting = 0;
var parensNesting = 0;
var isInObjectLitAr;