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

Method AsStruct

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

AsStruct adapts the expr into a StructExpr. The Kind() must be equal to a StructKind for the conversion to be well-defined.

()

Source from the content-addressed store, hash-verified

100 //
101 // The Kind() must be equal to a StructKind for the conversion to be well-defined.
102 AsStruct() StructExpr
103
104 // RenumberIDs performs an in-place update of the expression and all of its descendents numeric ids.
105 RenumberIDs(IDGenerator)

Callers 15

VisitExprMethod · 0.65
planCreateStructMethod · 0.65
pruneMethod · 0.65
visitFunction · 0.65
costCreateStructMethod · 0.65
checkCreateStructMethod · 0.65
visitStructMsgMethod · 0.65
CopyMethod · 0.65
VisitExprMethod · 0.65
CopyExprMethod · 0.65
SetKindCaseMethod · 0.65

Calls

no outgoing calls

Tested by 4

TestSetKindCaseFunction · 0.52
TestStructFunction · 0.52
TestStructNilFunction · 0.52
TestNavigableStructExprFunction · 0.52