NewStruct creates a new typed struct value with an set of field initializations. Example: pkg.TypeName{field: value} - typeName: pkg.TypeName - fields: [{field: value}]
(typeName string, fields []ast.EntryExpr)
| 461 | // - typeName: pkg.TypeName |
| 462 | // - fields: [{field: value}] |
| 463 | func (opt *optimizerExprFactory) NewStruct(typeName string, fields []ast.EntryExpr) ast.Expr { |
| 464 | return opt.fac.NewStruct(opt.nextID(), typeName, fields) |
| 465 | } |
| 466 | |
| 467 | // NewStructField creates a struct field initialization. |
| 468 | // |