X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=ff4d08925254a5ab1d049b33ff49678753eafbe1;hp=dbc42b19a58e94ce4c979d21a4b339f3504d1981;hb=e5ffdec730738f1cf9dacb62516f1ad85682e1b4;hpb=5c2d4b0c54284ad45c2cf64df3e0b9cf72fb2aaa 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;