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

Method NewMapEntry

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

NewMapEntry creates a Map Entry for the key, value pair.

(key ast.Expr, val ast.Expr, optional bool)

Source from the content-addressed store, hash-verified

210
211 // NewMapEntry creates a Map Entry for the key, value pair.
212 NewMapEntry(key ast.Expr, val ast.Expr, optional bool) ast.EntryExpr
213
214 // NewStruct creates a struct literal expression with an optional set of field initializers.
215 NewStruct(typeName string, fieldInits ...ast.EntryExpr) ast.Expr

Callers 6

maybeCreateLiteralMethod · 0.65
pruneMethod · 0.65
newMapEntryMethod · 0.65
CopyMethod · 0.65
NewMapEntryMethod · 0.65
OptimizeMethod · 0.65

Implementers 1

exprHelperparser/helper.go

Calls

no outgoing calls

Tested by

no test coverage detected