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

Method NewStructField

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

471
472// NewStructField implements the ExprHelper interface method.
473func (e *exprHelper) NewStructField(field string, init ast.Expr, optional bool) ast.EntryExpr {
474 return e.exprFactory.NewStructField(e.nextMacroID(), field, init, optional)
475}
476
477// NewComprehension implements the ExprHelper interface method.
478func (e *exprHelper) NewComprehension(

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewStructFieldMethod · 0.65

Tested by

no test coverage detected