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

Method AsComprehension

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

AsComprehension adapts the expr into a ComprehensionExpr. The Kind() must be equal to a ComprehensionKind for the conversion to be well-defined.

()

Source from the content-addressed store, hash-verified

70 //
71 // The Kind() must be equal to a ComprehensionKind for the conversion to be well-defined.
72 AsComprehension() ComprehensionExpr
73
74 // AsIdent adapts the expr into an identifier string.
75 //

Callers 15

VisitExprMethod · 0.65
comprehensionSubExprIDsFunction · 0.65
TestPruneFunction · 0.65
planComprehensionMethod · 0.65
pruneMethod · 0.65
visitFunction · 0.65
costComprehensionMethod · 0.65
isBindMethod · 0.65
costBindMethod · 0.65
checkComprehensionMethod · 0.65
CopyMethod · 0.65
ValidateMethod · 0.65

Calls

no outgoing calls

Tested by 6

TestPruneFunction · 0.52
TestSetKindCaseFunction · 0.52
TestComprehensionFunction · 0.52
TestComprehensionNilFunction · 0.52