( operator: string, args: CELExpr[], target?: CELExpr )
| 199 | }; |
| 200 | |
| 201 | const wrapCallExpr = ( |
| 202 | operator: string, |
| 203 | args: CELExpr[], |
| 204 | target?: CELExpr |
| 205 | ): CELExpr => { |
| 206 | const object = create(Expr_CallSchema, { |
| 207 | function: operator, |
| 208 | args, |
| 209 | }); |
| 210 | if (target) { |
| 211 | object.target = target; |
| 212 | } |
| 213 | return wrapCELExpr({ |
| 214 | case: "callExpr", |
| 215 | value: object, |
| 216 | }); |
| 217 | }; |
no test coverage detected