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

Method newObject

parser/helper.go:108–110  ·  view source on GitHub ↗
(ctx any, typeName string, fields ...ast.EntryExpr)

Source from the content-addressed store, hash-verified

106}
107
108func (p *parserHelper) newObject(ctx any, typeName string, fields ...ast.EntryExpr) ast.Expr {
109 return p.exprFactory.NewStruct(p.newID(ctx), typeName, fields)
110}
111
112func (p *parserHelper) newObjectField(fieldID int64, field string, value ast.Expr, optional bool) ast.EntryExpr {
113 return p.exprFactory.NewStructField(fieldID, field, value, optional)

Callers 1

VisitCreateMessageMethod · 0.80

Calls 2

newIDMethod · 0.95
NewStructMethod · 0.65

Tested by

no test coverage detected