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

Method AsMap

common/ast/expr.go:92–92  ·  view source on GitHub ↗

AsMap adapts the expr into a MapExpr. The Kind() must be equal to a MapKind for the conversion to be well-defined.

()

Source from the content-addressed store, hash-verified

90 //
91 // The Kind() must be equal to a MapKind for the conversion to be well-defined.
92 AsMap() MapExpr
93
94 // AsSelect adapts the expr into a SelectExpr.
95 //

Callers 15

VisitExprMethod · 0.65
planCreateMapMethod · 0.65
pruneMethod · 0.65
visitFunction · 0.65
costCreateMapMethod · 0.65
computeExprSizeFunction · 0.65
checkCreateMapMethod · 0.65
visitStructMapMethod · 0.65
CopyMethod · 0.65
verifyStringMethod · 0.65
verifyStringMethod · 0.65
ValidateMethod · 0.65

Calls

no outgoing calls

Tested by 4

TestSetKindCaseFunction · 0.52
TestMapFunction · 0.52
TestMapNilFunction · 0.52
TestNavigableMapExprFunction · 0.52