Method
NewMemberCall
(id int64, function string, target Expr, args ...Expr)
Source from the content-addressed store, hash-verified
| 115 | } |
| 116 | |
| 117 | func (fac *baseExprFactory) NewMemberCall(id int64, function string, target Expr, args ...Expr) Expr { |
| 118 | if len(args) == 0 { |
| 119 | args = []Expr{} |
| 120 | } |
| 121 | return fac.newExpr( |
| 122 | id, |
| 123 | &baseCallExpr{ |
| 124 | function: function, |
| 125 | target: target, |
| 126 | args: args, |
| 127 | isMember: true, |
| 128 | }) |
| 129 | } |
| 130 | |
| 131 | func (fac *baseExprFactory) NewComprehension(id int64, iterRange Expr, iterVar, accuVar string, accuInit, loopCond, loopStep, result Expr) Expr { |
| 132 | // Set the iter_var2 to empty string to indicate the second variable is omitted |
Tested by
no test coverage detected