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

Method NewStructField

parser/helper.go:432–434  ·  view source on GitHub ↗

NewStructField implements the ExprHelper interface method.

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

Source from the content-addressed store, hash-verified

430
431// NewStructField implements the ExprHelper interface method.
432func (e *exprHelper) NewStructField(field string, init ast.Expr, optional bool) ast.EntryExpr {
433 return e.exprFactory.NewStructField(e.nextMacroID(), field, init, optional)
434}
435
436// NewComprehension implements the ExprHelper interface method.
437func (e *exprHelper) NewComprehension(

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewStructFieldMethod · 0.65

Tested by

no test coverage detected