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

Method AsList

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

AsList adapts the expr into a ListExpr. The Kind() must be equal to a ListKind for the conversion to be well-defined.

()

Source from the content-addressed store, hash-verified

85 //
86 // The Kind() must be equal to a ListKind for the conversion to be well-defined.
87 AsList() ListExpr
88
89 // AsMap adapts the expr into a MapExpr.
90 //

Callers 15

VisitExprMethod · 0.65
OptimizeMethod · 0.65
planCreateListMethod · 0.65
pruneMethod · 0.65
visitFunction · 0.65
costCreateListMethod · 0.65
isBindMethod · 0.65
computeExprSizeFunction · 0.65
checkCreateListMethod · 0.65
visitListMethod · 0.65
buildMacroCallArgMethod · 0.65
CopyMethod · 0.65

Calls

no outgoing calls

Tested by 4

TestSetKindCaseFunction · 0.52
TestListFunction · 0.52
TestListNilFunction · 0.52
TestNavigableListExprFunction · 0.52