JSDOC/ScopeParser.vala
authorAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:31:30 +0000 (16:31 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:31:30 +0000 (16:31 +0800)
JSDOC/ScopeParser.vala

index fedf8dc..04cc05a 100644 (file)
@@ -290,10 +290,10 @@ namespace JSDOC {
                                 if (!token || token.type == "VOID" || token.data == ",") {
                                     break;
                                 }
-                                nts.push(token);
+                                nts.add(token);
                                 token = this.ts.nextTok();
                             }
-                            if (nts.length) {
+                            if (nts.size > 0) {
                                 var TS = this.ts;
                                 this.ts = new TokenStream(nts);
                                 this.parseExpression(scope);
@@ -307,7 +307,7 @@ namespace JSDOC {
                             token = this.ts.lookTok(1);
                             //!this.debug|| 
                            // print("AFTER EXP: " + token.toString());
-                            if (token.data == ';') {
+                            if (token.data == ";") {
                                 break;
                             }
                         }