scope.declareIdentifier(token.data, token);
} else {
token.identifier = identifier;
- this.warn("The variable " + token.data + ' (line:' + token.line + ") has already been declared in the same scope...");
+ this.warn("(SCOPE) The variable " + token.data + ' (line:' + token.line + ") has already been declared in the same scope...");
}
}
case "KEYW.LEFT_CURLY": // {
//println("<i>"+token.data+"</i>");
isObjectLitAr.push(false);
+ print(">>>>>> OBJLIT PUSH(false)");
this.braceNesting++;
break;
//println("<i>"+token.data+"</i>");
this.braceNesting--;
isObjectLitAr.pop();
+ print(">>>>>> OBJLIT POP(false)");
//assert braceNesting >= scope.getBraceNesting();
if (this.braceNesting == scope.braceN) {
var ls = this.scopes.pop();
// then we are in an object lit.. -> we need to flag the brace as such...
isObjectLitAr.pop();
isObjectLitAr.push(true);
+ print(">>>>>> OBJLIT PUSH(true)");
}
isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
if ((this.ts.lookTok(-1).data == "{") && (this.ts.lookTok(1).data == ":")) {
isObjectLitAr.pop();
isObjectLitAr.push(true);
+ print(">>>>>> OBJLIT PUSH(true)");
//println("<i>"+token.data+"</i>");
break;
}