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

Method NewList

common/ast/factory.go:55–55  ·  view source on GitHub ↗

NewList creates an Expr value representing a list literal expression with optional indices. Optional indices will typically be empty unless the CEL optional types are enabled.

(id int64, elems []Expr, optIndices []int32)

Source from the content-addressed store, hash-verified

53 //
54 // Optional indices will typically be empty unless the CEL optional types are enabled.
55 NewList(id int64, elems []Expr, optIndices []int32) Expr
56
57 // NewMap creates an Expr value representing a map literal expression
58 NewMap(id int64, entries []EntryExpr) Expr

Callers 13

TestBlockEvalFunction · 0.95
TestBlockEval_BadPlanFunction · 0.95
BenchmarkBlockEvalFunction · 0.95
TestConvertASTFunction · 0.95
TestConvertExprFunction · 0.95
TestSetKindCaseFunction · 0.95
TestComprehensionFunction · 0.95
TestListFunction · 0.95
jsonListFunction · 0.65

Implementers 1

baseExprFactorycommon/ast/factory.go

Calls

no outgoing calls

Tested by 12

TestBlockEvalFunction · 0.76
TestBlockEval_BadPlanFunction · 0.76
BenchmarkBlockEvalFunction · 0.76
TestConvertASTFunction · 0.76
TestConvertExprFunction · 0.76
TestSetKindCaseFunction · 0.76
TestComprehensionFunction · 0.76
TestListFunction · 0.76
jsonListFunction · 0.52