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

Method NewStructField

common/ast/factory.go:76–76  ·  view source on GitHub ↗

NewStructField creates a StructField with a given field name, value, and a flag indicating whether the field is optionally set.

(id int64, field string, value Expr, isOptional bool)

Source from the content-addressed store, hash-verified

74 // NewStructField creates a StructField with a given field name, value, and a flag indicating
75 // whether the field is optionally set.
76 NewStructField(id int64, field string, value Expr, isOptional bool) EntryExpr
77
78 // NewUnspecifiedExpr creates an empty expression node.
79 NewUnspecifiedExpr(id int64) Expr

Callers 10

TestConvertExprFunction · 0.95
TestSetKindCaseFunction · 0.95
TestMapEntryNilFunction · 0.95
TestStructFunction · 0.95
adaptLiteralFunction · 0.65
NewObjectFieldInitMethod · 0.65
NewStructFieldMethod · 0.65
exprStructFieldFunction · 0.65

Implementers 1

baseExprFactorycommon/ast/factory.go

Calls

no outgoing calls

Tested by 5

TestConvertExprFunction · 0.76
TestSetKindCaseFunction · 0.76
TestMapEntryNilFunction · 0.76
TestStructFunction · 0.76