case "PUNC.LEFT_CURLY": // {
//println("<i>"+token.data+"</i>");
-
+ var curTS = this.ts;
if (token.props) {
- var curTS = this.ts;
+
for (var prop in token.props) {
if (token.props[prop].val.data == 'function') {
// parse a function..
// it's an object literal..
// the values could be replaced..
-
+ break;
}
- print('SCOPE-CURLY:' + JSON.stringify(token,null,4));
- print("NOT PROPS"); Seed.quit();
- isObjectLitAr.push(false);
- this.braceNesting++;
+ print('SCOPE-CURLY:' + JSON.stringify(token,null,4));
+ var _this = this;
+ token.items.forEach(function(expr) {
+ _this.ts = new TokenStream(expr);
+ _this.parseExpression(scope)
+ });
+ this.ts = curTS;
+ //print("NOT PROPS"); Seed.quit();
+
+ //isObjectLitAr.push(false);
+ //this.braceNesting++;
//print(">>>>>> OBJLIT PUSH(false)" + this.braceNesting);
break;