NewStructField creates a struct field initialization. Examples: {count: 3u} - field: count - value: 3u - optional: false {?count: x} - field: count - value: x - optional: true
(field string, value ast.Expr, isOptional bool)
| 478 | // - value: x |
| 479 | // - optional: true |
| 480 | func (opt *optimizerExprFactory) NewStructField(field string, value ast.Expr, isOptional bool) ast.EntryExpr { |
| 481 | return opt.fac.NewStructField(opt.nextID(), field, value, isOptional) |
| 482 | } |
| 483 | |
| 484 | // UpdateExpr updates the target expression with the updated content while preserving macro metadata. |
| 485 | // |
nothing calls this directly
no test coverage detected