@@ -308,8 +308,9 @@ Lexer.prototype = {
308
308
token . constant = true ;
309
309
} else {
310
310
var getter = getterFn ( ident , this . options , this . text ) ;
311
- token . fn = extend ( function ( self , locals ) {
312
- return ( getter ( self , locals ) ) ;
311
+ // TODO(perf): consider exposing the getter reference
312
+ token . fn = extend ( function $parsePathGetter ( self , locals ) {
313
+ return getter ( self , locals ) ;
313
314
} , {
314
315
assign : function ( self , value ) {
315
316
return setter ( self , ident , value , parser . text ) ;
@@ -676,7 +677,7 @@ Parser.prototype = {
676
677
var field = this . expect ( ) . text ;
677
678
var getter = getterFn ( field , this . options , this . text ) ;
678
679
679
- return extend ( function ( scope , locals , self ) {
680
+ return extend ( function $parseFieldAccess ( scope , locals , self ) {
680
681
return getter ( self || object ( scope , locals ) ) ;
681
682
} , {
682
683
assign : function ( scope , value , locals ) {
@@ -693,7 +694,7 @@ Parser.prototype = {
693
694
var indexFn = this . expression ( ) ;
694
695
this . consume ( ']' ) ;
695
696
696
- return extend ( function ( self , locals ) {
697
+ return extend ( function $parseObjectIndex ( self , locals ) {
697
698
var o = obj ( self , locals ) ,
698
699
i = indexFn ( self , locals ) ,
699
700
v ;
@@ -726,7 +727,7 @@ Parser.prototype = {
726
727
// we can safely reuse the array across invocations
727
728
var args = argsFn . length ? [ ] : null ;
728
729
729
- return function ( scope , locals ) {
730
+ return function $parseFunctionCall ( scope , locals ) {
730
731
var context = contextGetter ? contextGetter ( scope , locals ) : scope ;
731
732
var fn = fnGetter ( scope , locals , context ) || noop ;
732
733
0 commit comments