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
f6b2ff2
..
a7abc9c
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-224,7
+224,7
@@
ScopeParser.prototype = {
var isObjectLitAr = [ false ];
var isInObjectLitAr;
thisScope = scope;
var isObjectLitAr = [ false ];
var isInObjectLitAr;
thisScope = scope;
- if (thisScope) {
+ if (thisScope
&& thisScope.gid != this.scopes[this.scopes.length-1]
) {
this.scopes.push(scope);
} else {
thisScope = this.scopes[this.scopes.length-1]
this.scopes.push(scope);
} else {
thisScope = this.scopes[this.scopes.length-1]
@@
-641,7
+641,7
@@
ScopeParser.prototype = {
// key value..
this.ts = new TokenStream(token.props[prop].val);
// key value..
this.ts = new TokenStream(token.props[prop].val);
- this.parseScope(
currentScop
e);
+ this.parseScope(
fals
e);
}
this.ts = curTS;
}
this.ts = curTS;
@@
-711,7
+711,9
@@
ScopeParser.prototype = {
//skip '.'
break;
}
//skip '.'
break;
}
-
+ if (symbol == 'this') {
+ break;
+ }
if (this.mode == 'PASS2_SYMBOL_TREE') {
if (this.mode == 'PASS2_SYMBOL_TREE') {
@@
-729,7
+731,7
@@
ScopeParser.prototype = {
//print("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')');
//throw "OOPS";
} else {
//print("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')');
//throw "OOPS";
} else {
- print("undeclared:" + token.toString())
+
//
print("undeclared:" + token.toString())
}
}
@@
-856,7
+858,7
@@
ScopeParser.prototype = {
//assert token.getType() == Token.LP;
if (this.mode == 'BUILDING_SYMBOL_TREE') {
//assert token.getType() == Token.LP;
if (this.mode == 'BUILDING_SYMBOL_TREE') {
- fnScope = new Scope(
this.braceNesting
, currentScope, token.n, '');
+ fnScope = new Scope(
1
, currentScope, token.n, '');
//println("STORING SCOPE" + this.ts.cursor);
//println("STORING SCOPE" + this.ts.cursor);
@@
-903,6
+905,7
@@
ScopeParser.prototype = {
_this.ts = new TokenStream(tar);
_this.parseScope(fnScope);
_this.ts = new TokenStream(tar);
_this.parseScope(fnScope);
+
});
//print(JSON.stringify(this.ts,null,4));
});
//print(JSON.stringify(this.ts,null,4));