JSDOC/ScopeParser.vala
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.vala
index 73ee2bf..e993773 100644 (file)
@@ -368,14 +368,14 @@ namespace JSDOC {
                     
                     // ( ... ) or { .... } not object literals..
                     
-                    var _this = this;
-                   for (var xx =0; xx < token.items.length; xx++) {
-                               expr = token.items[xx];
+                    
+                   for (var xx =0; xx < token.items.size; xx++) {
+                                       expr = token.items.get(xx);
                     //token.items.forEach(function(expr) {
                             //print(expr.toString());
-                           _this.ts = new TokenStream(expr);
+                           this.ts = new TokenStream(expr);
                             //if (curTS.data == '(') {
-                                _this.parseScope(scope)
+                                this.parseScope(scope);
                             //} else {
                               //  _this.parseExpression(scope)
                             //}
@@ -397,7 +397,7 @@ namespace JSDOC {
                 case "KEYW.WITH":
                     //print('SCOPE-WITH:' + token.toString());
                     //println("<i>"+token.data+"</i>");   
-                    if (this.mode == "BUILDING_SYMBOL_TREE") {
+                    if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) {
                         // Inside a 'with' block, it is impossible to figure out
                         // statically whether a symbol is a local variable or an
                         // object member. As a consequence, the only thing we can