MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NewLiteral

Method NewLiteral

parser/macro.go:202–202  ·  view source on GitHub ↗

Literal creates an Expr value for a scalar literal value.

(value ref.Val)

Source from the content-addressed store, hash-verified

200
201 // Literal creates an Expr value for a scalar literal value.
202 NewLiteral(value ref.Val) ast.Expr
203
204 // NewList creates a list literal instruction with an optional set of elements.
205 NewList(elems ...ast.Expr) ast.Expr

Callers 15

optimizeRuleMethod · 0.65
combineMethod · 0.65
combineMethod · 0.65
maybeCreateLiteralMethod · 0.65
newLiteralMethod · 0.65
CopyMethod · 0.65
NewLiteralMethod · 0.65
VisitNullMethod · 0.65
MakeMapFunction · 0.65
MakeFilterFunction · 0.65
makeQuantifierFunction · 0.65
celBindFunction · 0.65

Implementers 1

exprHelperparser/helper.go

Calls

no outgoing calls

Tested by 1

Example_cel_CustomMacrosFunction · 0.52