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:
3cc1604
)
JSDOC/ScopeParser.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 16 Jul 2010 05:16:35 +0000
(13:16 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 16 Jul 2010 05:16:35 +0000
(13:16 +0800)
JSDOC/ScopeParser.js
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
5ecc388
..
900c01d
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-877,12
+877,11
@@
ScopeParser.prototype = {
token = this.ts.nextTok();
}
// return function() {....
token = this.ts.nextTok();
}
// return function() {....
- if (token.name == "RETURN") {
- token = this.ts.nextTok();
- }
- if (token.name == "FUNCTION") {
+ while (token.name != "FUNCTION") {
token = this.ts.nextTok();
}
token = this.ts.nextTok();
}
+ token = this.ts.nextTok();
+
//assert token.getType() == Token.LP;
if (this.mode == 'BUILDING_SYMBOL_TREE') {
fnScope = new Scope(1, currentScope, token.n, '', token);
//assert token.getType() == Token.LP;
if (this.mode == 'BUILDING_SYMBOL_TREE') {
fnScope = new Scope(1, currentScope, token.n, '', token);