ExprCall creates a call Expr.
(id int64, function string, args ...*exprpb.Expr)
| 301 | |
| 302 | // ExprCall creates a call Expr. |
| 303 | func ExprCall(id int64, function string, args ...*exprpb.Expr) *exprpb.Expr { |
| 304 | return &exprpb.Expr{Id: id, |
| 305 | ExprKind: &exprpb.Expr_CallExpr{ |
| 306 | CallExpr: &exprpb.Expr_Call{Target: nil, Function: function, Args: args}}} |
| 307 | } |
| 308 | |
| 309 | // ExprMemberCall creates a receiver-style call Expr. |
| 310 | func ExprMemberCall(id int64, function string, target *exprpb.Expr, args ...*exprpb.Expr) *exprpb.Expr { |