From: Alan Knowles Date: Fri, 16 Jul 2010 05:07:15 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=e5ffdec730738f1cf9dacb62516f1ad85682e1b4;hp=5c2d4b0c54284ad45c2cf64df3e0b9cf72fb2aaa JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index dbc42b1..ff4d089 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -302,13 +302,12 @@ ScopeParser.prototype = { var bn = this.braceNesting; var nts = []; while (true) { - var n = this.ts.lookTok(); - if (!n || n.type == 'VOID' || n.data == ',') { + if (!token || token.type == 'VOID' || token.data == ',') { break; } - nts.push(n); - this.ts.nextTok(); + nts.push(token); + token = this.ts.nextTok(); } if (nts.length) { var TS = this.ts;