feat(change_detector): add a way to inspect records and record ranges

This commit is contained in:
vsavkin
2014-12-16 16:45:08 -08:00
parent df21c3c77d
commit 1d03c2af5d
5 changed files with 123 additions and 11 deletions

View File

@ -345,10 +345,12 @@ export class MethodCall extends AST {
receiver:AST;
fn:Function;
args:List;
constructor(receiver:AST, fn:Function, args:List) {
name:string;
constructor(receiver:AST, name:string, fn:Function, args:List) {
this.receiver = receiver;
this.fn = fn;
this.args = args;
this.name = name;
}
eval(context) {

View File

@ -404,7 +404,7 @@ class _ParseAST {
var args = this.parseCallArguments();
this.expectCharacter($RPAREN);
var fn = this.reflector.method(id);
return new MethodCall(receiver, fn, args);
return new MethodCall(receiver, id, fn, args);
} else {
var getter = this.reflector.getter(id);