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:
a699000
)
JSDOC/ScopeParser.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 06:46:31 +0000
(14:46 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 06:46:31 +0000
(14:46 +0800)
JSDOC/ScopeParser.js
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
77dd6f7
..
ea9a3f5
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-323,9
+323,9
@@
ScopeParser.prototype = {
case "PUNC.LEFT_CURLY": // {
//println("<i>"+token.data+"</i>");
case "PUNC.LEFT_CURLY": // {
//println("<i>"+token.data+"</i>");
-
+ var curTS = this.ts;
if (token.props) {
if (token.props) {
- var curTS = this.ts;
+
for (var prop in token.props) {
if (token.props[prop].val.data == 'function') {
// parse a function..
for (var prop in token.props) {
if (token.props[prop].val.data == 'function') {
// parse a function..
@@
-342,13
+342,20
@@
ScopeParser.prototype = {
// it's an object literal..
// the values could be replaced..
// it's an object literal..
// the values could be replaced..
-
+ break;
}
}
- print('SCOPE-CURLY:' + JSON.stringify(token,null,4));
- print("NOT PROPS"); Seed.quit();
- isObjectLitAr.push(false);
- this.braceNesting++;
+ print('SCOPE-CURLY:' + JSON.stringify(token,null,4));
+ var _this = this;
+ token.items.forEach(function(expr) {
+ _this.ts = new TokenStream(expr);
+ _this.parseExpression(scope)
+ });
+ this.ts = curTS;
+ //print("NOT PROPS"); Seed.quit();
+
+ //isObjectLitAr.push(false);
+ //this.braceNesting++;
//print(">>>>>> OBJLIT PUSH(false)" + this.braceNesting);
break;
//print(">>>>>> OBJLIT PUSH(false)" + this.braceNesting);
break;