From: Alan Knowles Date: Fri, 6 Nov 2015 08:31:30 +0000 (+0800) Subject: JSDOC/ScopeParser.vala X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=2af99067f2ccce3679a5627f6cf6a62de8e811f4 JSDOC/ScopeParser.vala --- diff --git a/JSDOC/ScopeParser.vala b/JSDOC/ScopeParser.vala index fedf8dc..04cc05a 100644 --- a/JSDOC/ScopeParser.vala +++ b/JSDOC/ScopeParser.vala @@ -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; } }