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

Method AsStructField

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

AsStructField casts the EntryExpr to a StructField The Kind() must be equal to StructFieldKind for the conversion to be well-defined.

()

Source from the content-addressed store, hash-verified

148 //
149 // The Kind() must be equal to StructFieldKind for the conversion to be well-defined.
150 AsStructField() StructField
151
152 // RenumberIDs performs an in-place update of the expression and all of its descendents numeric ids.
153 RenumberIDs(IDGenerator)

Callers 15

VisitEntryExprMethod · 0.65
planCreateStructMethod · 0.65
pruneMethod · 0.65
visitFunction · 0.65
costCreateStructMethod · 0.65
checkCreateStructMethod · 0.65
visitStructMsgMethod · 0.65
CopyMethod · 0.65
VisitEntryExprMethod · 0.65
CopyEntryExprMethod · 0.65
TestStructFunction · 0.65

Calls

no outgoing calls

Tested by 3

TestStructFunction · 0.52
TestStructFieldNilFunction · 0.52
TestNavigableStructExprFunction · 0.52