JSDOC/ScopeParser.vala
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.vala
index 4a358ae..0ac5a51 100644 (file)
@@ -640,14 +640,14 @@ namespace JSDOC {
                                        
                                        if (val.vals.get(0).data == "function") {
                                            // parse a function..
-                                           this.ts = new TokenStream(token.props[prop].val);
+                                           this.ts = new TokenStream(val.vals);
                                            this.ts.nextTok();
                                            this.parseFunctionDeclaration(scope);
                                            continue;
                                        }
                                        // key value..
                                        
-                                       this.ts = new TokenStream(token.props[prop].val);
+                                       this.ts = new TokenStream(val.vals);
                                        this.parseExpression(scope);
                                        
                                    }
@@ -659,11 +659,12 @@ namespace JSDOC {
                                }
                                
                                
-                               var _this = this;
-                               token.items.forEach(function(expr) {
-                                     _this.ts = new TokenStream(expr);
-                                     _this.parseExpression(scope)
-                               });
+                               foreach(var expr in token.items) {
+                                     this.ts = new TokenStream(expr);
+                                     this.parseExpression(scope);
+                               }
                                this.ts = curTS;