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

Method NewStruct

common/ast/factory.go:213–220  ·  view source on GitHub ↗
(id int64, typeName string, fields []EntryExpr)

Source from the content-addressed store, hash-verified

211}
212
213func (fac *baseExprFactory) NewStruct(id int64, typeName string, fields []EntryExpr) Expr {
214 return fac.newExpr(
215 id,
216 &baseStructExpr{
217 typeName: typeName,
218 fields: fields,
219 })
220}
221
222func (fac *baseExprFactory) NewStructField(id int64, field string, value Expr, isOptional bool) EntryExpr {
223 return fac.newEntryExpr(

Callers 1

CopyExprMethod · 0.95

Calls 1

newExprMethod · 0.95

Tested by

no test coverage detected