1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Removing the notion of a ThisNode so that we don't have to worry about the special cases. Fixes Issue 180

This commit is contained in:
Jeremy Ashkenas 2010-02-19 07:51:52 -05:00
parent 45c0d4c2ea
commit dd753d3b78
6 changed files with 19 additions and 37 deletions

View file

@ -227,7 +227,7 @@ case 108:this.$ = new ValueNode($$[$0-1+1-1]);
break;
case 109:this.$ = new ValueNode($$[$0-1+1-1]);
break;
case 110:this.$ = new ValueNode($$[$0-1+1-1]);
case 110:this.$ = $$[$0-1+1-1];
break;
case 111:this.$ = $$[$0-2+1-1].push($$[$0-2+2-1]);
break;
@ -275,9 +275,9 @@ case 132:this.$ = $$[$0-3+2-1];
break;
case 133:this.$ = new CallNode('super', $$[$0-4+3-1]);
break;
case 134:this.$ = new ThisNode();
case 134:this.$ = new ValueNode(new LiteralNode('this'));
break;
case 135:this.$ = new ThisNode($$[$0-2+2-1]);
case 135:this.$ = new ValueNode(new LiteralNode('this'), [new AccessorNode($$[$0-2+2-1])]);
break;
case 136:this.$ = new RangeNode($$[$0-6+2-1], $$[$0-6+5-1]);
break;