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)
| 484 | // - value: x |
| 485 | // - optional: true |
| 486 | func (opt *optimizerExprFactory) NewStructField(field string, value ast.Expr, isOptional bool) ast.EntryExpr { |
| 487 | return opt.fac.NewStructField(opt.nextID(), field, value, isOptional) |
| 488 | } |
| 489 | |
| 490 | // UpdateExpr updates the target expression with the updated content while preserving macro metadata. |
| 491 | // |
nothing calls this directly
no test coverage detected