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

Method NewStructField

parser/macro.go:218–218  ·  view source on GitHub ↗

NewStructField creates a new struct field initializer from the field name and value.

(field string, init ast.Expr, optional bool)

Source from the content-addressed store, hash-verified

216
217 // NewStructField creates a new struct field initializer from the field name and value.
218 NewStructField(field string, init ast.Expr, optional bool) ast.EntryExpr
219
220 // NewComprehension creates a new one-variable comprehension instruction.
221 //

Callers 4

pruneMethod · 0.65
newObjectFieldMethod · 0.65
CopyMethod · 0.65
NewStructFieldMethod · 0.65

Implementers 1

exprHelperparser/helper.go

Calls

no outgoing calls

Tested by

no test coverage detected