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

Method NewStruct

parser/helper.go:468–470  ·  view source on GitHub ↗

NewStruct implements the ExprHelper interface method.

(typeName string, fieldInits ...ast.EntryExpr)

Source from the content-addressed store, hash-verified

466
467// NewStruct implements the ExprHelper interface method.
468func (e *exprHelper) NewStruct(typeName string, fieldInits ...ast.EntryExpr) ast.Expr {
469 return e.exprFactory.NewStruct(e.nextMacroID(), typeName, fieldInits)
470}
471
472// NewStructField implements the ExprHelper interface method.
473func (e *exprHelper) NewStructField(field string, init ast.Expr, optional bool) ast.EntryExpr {

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewStructMethod · 0.65

Tested by

no test coverage detected