From e5ffdec730738f1cf9dacb62516f1ad85682e1b4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 Jul 2010 13:07:15 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.2