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

Method NewMapEntry

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

NewMapEntry creates a MapEntry with a given key, value, and a flag indicating whether the key is optionally set.

(id int64, key, value Expr, isOptional bool)

Source from the content-addressed store, hash-verified

60 // NewMapEntry creates a MapEntry with a given key, value, and a flag indicating whether
61 // the key is optionally set.
62 NewMapEntry(id int64, key, value Expr, isOptional bool) EntryExpr
63
64 // NewPresenceTest creates an Expr representing a field presence test on an operand expression.
65 NewPresenceTest(id int64, operand Expr, field string) Expr

Callers 7

TestConvertExprFunction · 0.95
TestSetKindCaseFunction · 0.95
TestMapFunction · 0.95
TestStructFieldNilFunction · 0.95
exprMapEntryFunction · 0.65

Implementers 1

baseExprFactorycommon/ast/factory.go

Calls

no outgoing calls

Tested by 6

TestConvertExprFunction · 0.76
TestSetKindCaseFunction · 0.76
TestMapFunction · 0.76
TestStructFieldNilFunction · 0.76