@@ -784,7 +784,7 @@ ASTCompiler.prototype = {
784
784
self . state . computing = fnKey ;
785
785
var intoId = self . nextId ( ) ;
786
786
self . recurse ( watch , intoId ) ;
787
- self . return ( intoId ) ;
787
+ self . return_ ( intoId ) ;
788
788
self . state . inputs . push ( fnKey ) ;
789
789
watch . watchId = key ;
790
790
} ) ;
@@ -871,7 +871,7 @@ ASTCompiler.prototype = {
871
871
recursionFn = recursionFn || noop ;
872
872
if ( ! skipWatchIdCheck && isDefined ( ast . watchId ) ) {
873
873
intoId = intoId || this . nextId ( ) ;
874
- this . if ( 'i' ,
874
+ this . if_ ( 'i' ,
875
875
this . lazyAssign ( intoId , this . computedMember ( 'i' , ast . watchId ) ) ,
876
876
this . lazyRecurse ( ast , intoId , nameId , recursionFn , create , true )
877
877
) ;
@@ -884,7 +884,7 @@ ASTCompiler.prototype = {
884
884
if ( pos !== ast . body . length - 1 ) {
885
885
self . current ( ) . body . push ( right , ';' ) ;
886
886
} else {
887
- self . return ( right ) ;
887
+ self . return_ ( right ) ;
888
888
}
889
889
} ) ;
890
890
break ;
@@ -915,13 +915,13 @@ ASTCompiler.prototype = {
915
915
case AST . LogicalExpression :
916
916
intoId = intoId || this . nextId ( ) ;
917
917
self . recurse ( ast . left , intoId ) ;
918
- self . if ( ast . operator === '&&' ? intoId : self . not ( intoId ) , self . lazyRecurse ( ast . right , intoId ) ) ;
918
+ self . if_ ( ast . operator === '&&' ? intoId : self . not ( intoId ) , self . lazyRecurse ( ast . right , intoId ) ) ;
919
919
recursionFn ( intoId ) ;
920
920
break ;
921
921
case AST . ConditionalExpression :
922
922
intoId = intoId || this . nextId ( ) ;
923
923
self . recurse ( ast . test , intoId ) ;
924
- self . if ( intoId , self . lazyRecurse ( ast . alternate , intoId ) , self . lazyRecurse ( ast . consequent , intoId ) ) ;
924
+ self . if_ ( intoId , self . lazyRecurse ( ast . alternate , intoId ) , self . lazyRecurse ( ast . consequent , intoId ) ) ;
925
925
recursionFn ( intoId ) ;
926
926
break ;
927
927
case AST . Identifier :
@@ -932,11 +932,11 @@ ASTCompiler.prototype = {
932
932
nameId . name = ast . name ;
933
933
}
934
934
ensureSafeMemberName ( ast . name ) ;
935
- self . if ( self . stage === 'inputs' || self . not ( self . getHasOwnProperty ( 'l' , ast . name ) ) ,
935
+ self . if_ ( self . stage === 'inputs' || self . not ( self . getHasOwnProperty ( 'l' , ast . name ) ) ,
936
936
function ( ) {
937
- self . if ( self . stage === 'inputs' || 's' , function ( ) {
937
+ self . if_ ( self . stage === 'inputs' || 's' , function ( ) {
938
938
if ( create && create !== 1 ) {
939
- self . if (
939
+ self . if_ (
940
940
self . not ( self . nonComputedMember ( 's' , ast . name ) ) ,
941
941
self . lazyAssign ( self . nonComputedMember ( 's' , ast . name ) , '{}' ) ) ;
942
942
}
@@ -953,13 +953,13 @@ ASTCompiler.prototype = {
953
953
left = nameId && ( nameId . context = this . nextId ( ) ) || this . nextId ( ) ;
954
954
intoId = intoId || this . nextId ( ) ;
955
955
self . recurse ( ast . object , left , undefined , function ( ) {
956
- self . if ( self . notNull ( left ) , function ( ) {
956
+ self . if_ ( self . notNull ( left ) , function ( ) {
957
957
if ( ast . computed ) {
958
958
right = self . nextId ( ) ;
959
959
self . recurse ( ast . property , right ) ;
960
960
self . addEnsureSafeMemberName ( right ) ;
961
961
if ( create && create !== 1 ) {
962
- self . if ( self . not ( self . computedMember ( left , right ) ) , self . lazyAssign ( self . computedMember ( left , right ) , '{}' ) ) ;
962
+ self . if_ ( self . not ( self . computedMember ( left , right ) ) , self . lazyAssign ( self . computedMember ( left , right ) , '{}' ) ) ;
963
963
}
964
964
expression = self . ensureSafeObject ( self . computedMember ( left , right ) ) ;
965
965
self . assign ( intoId , expression ) ;
@@ -970,7 +970,7 @@ ASTCompiler.prototype = {
970
970
} else {
971
971
ensureSafeMemberName ( ast . property . name ) ;
972
972
if ( create && create !== 1 ) {
973
- self . if ( self . not ( self . nonComputedMember ( left , ast . property . name ) ) , self . lazyAssign ( self . nonComputedMember ( left , ast . property . name ) , '{}' ) ) ;
973
+ self . if_ ( self . not ( self . nonComputedMember ( left , ast . property . name ) ) , self . lazyAssign ( self . nonComputedMember ( left , ast . property . name ) , '{}' ) ) ;
974
974
}
975
975
expression = self . nonComputedMember ( left , ast . property . name ) ;
976
976
if ( self . state . expensiveChecks || isPossiblyDangerousMemberName ( ast . property . name ) ) {
@@ -1004,7 +1004,7 @@ ASTCompiler.prototype = {
1004
1004
left = { } ;
1005
1005
args = [ ] ;
1006
1006
self . recurse ( ast . callee , right , left , function ( ) {
1007
- self . if ( self . notNull ( right ) , function ( ) {
1007
+ self . if_ ( self . notNull ( right ) , function ( ) {
1008
1008
self . addEnsureSafeFunction ( right ) ;
1009
1009
forEach ( ast . arguments , function ( expr ) {
1010
1010
self . recurse ( expr , self . nextId ( ) , undefined , function ( argument ) {
@@ -1033,7 +1033,7 @@ ASTCompiler.prototype = {
1033
1033
throw $parseMinErr ( 'lval' , 'Trying to assing a value to a non l-value' ) ;
1034
1034
}
1035
1035
this . recurse ( ast . left , undefined , left , function ( ) {
1036
- self . if ( self . notNull ( left . context ) , function ( ) {
1036
+ self . if_ ( self . notNull ( left . context ) , function ( ) {
1037
1037
self . recurse ( ast . right , right ) ;
1038
1038
self . addEnsureSafeObject ( self . member ( left . context , left . name , left . computed ) ) ;
1039
1039
expression = self . member ( left . context , left . name , left . computed ) + ast . operator + right ;
@@ -1108,11 +1108,11 @@ ASTCompiler.prototype = {
1108
1108
return 'plus(' + left + ',' + right + ')' ;
1109
1109
} ,
1110
1110
1111
- 'return' : function ( id ) {
1111
+ return_ : function ( id ) {
1112
1112
this . current ( ) . body . push ( 'return ' , id , ';' ) ;
1113
1113
} ,
1114
1114
1115
- 'if' : function ( test , alternate , consequent ) {
1115
+ if_ : function ( test , alternate , consequent ) {
1116
1116
if ( test === true ) {
1117
1117
alternate ( ) ;
1118
1118
} else {
0 commit comments