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

Method NewStructField

parser/helper.go:436–438  ·  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

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

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewStructFieldMethod · 0.65

Tested by

no test coverage detected