ExprMemberCall creates a receiver-style call Expr.
(id int64, function string, target *exprpb.Expr, args ...*exprpb.Expr)
| 308 | |
| 309 | // ExprMemberCall creates a receiver-style call Expr. |
| 310 | func ExprMemberCall(id int64, function string, target *exprpb.Expr, args ...*exprpb.Expr) *exprpb.Expr { |
| 311 | return &exprpb.Expr{Id: id, |
| 312 | ExprKind: &exprpb.Expr_CallExpr{ |
| 313 | CallExpr: &exprpb.Expr_Call{Target: target, Function: function, Args: args}}} |
| 314 | } |
| 315 | |
| 316 | // ExprList creates a create list Expr. |
| 317 | func ExprList(id int64, elements ...*exprpb.Expr) *exprpb.Expr { |