From 9df0f5f0dbcb274a3be59a910ab59f32fa2376e2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Jul 2010 16:17:53 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 24da7e5..f6b2ff2 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -461,22 +461,7 @@ ScopeParser.prototype = { // got identifier.. // look for { ** : <- indicates obj literal.. ** this could occur with numbers .. - if ((this.ts.lookTok(-1).data == "{") && (this.ts.lookTok(1).data == ":")) { - isObjectLitAr.pop(); - isObjectLitAr.push(true); - //print(">>>>>> OBJLIT REPUSH(true)"); - //println(""+token.data+""); - break; - } - // print("DEAL WITH obj lit:"); - isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1]; - - if (isInObjectLitAr && (this.ts.lookTok(1).data == ":") && (this.ts.lookTok(-1).data == ",")) { - // skip, it's an object lit key.. - //println(""+token.data+""); - break; - } - + // skip anyting with "." before it..!! @@ -488,6 +473,9 @@ ScopeParser.prototype = { //print("SYMBOL: " + token.toString()); symbol = token.data; + if (symbol == 'this') { + break; + } if (this.mode == 'PASS2_SYMBOL_TREE') { //println("GOT IDENT: -2 : " + this.ts.lookT(-2).toString() + "
..... -1 : " + this.ts.lookT(-1).toString() + "
"); -- 2.39.2