NewLiteral creates a new literal expression value. The range of valid values for a literal generated during optimization is different than for expressions generated via parsing / type-checking, as the ref.Val may be _any_ CEL value so long as the value can be converted back to a literal-like form.
(value ref.Val)
| 396 | // generated via parsing / type-checking, as the ref.Val may be _any_ CEL value so long as the value can |
| 397 | // be converted back to a literal-like form. |
| 398 | func (opt *optimizerExprFactory) NewLiteral(value ref.Val) ast.Expr { |
| 399 | return opt.fac.NewLiteral(opt.nextID(), value) |
| 400 | } |
| 401 | |
| 402 | // NewList creates a list expression with a set of optional indices. |
| 403 | // |
nothing calls this directly
no test coverage detected