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

Method NewStruct

parser/helper.go:427–429  ·  view source on GitHub ↗

NewStruct implements the ExprHelper interface method.

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

Source from the content-addressed store, hash-verified

425
426// NewStruct implements the ExprHelper interface method.
427func (e *exprHelper) NewStruct(typeName string, fieldInits ...ast.EntryExpr) ast.Expr {
428 return e.exprFactory.NewStruct(e.nextMacroID(), typeName, fieldInits)
429}
430
431// NewStructField implements the ExprHelper interface method.
432func (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