(sctx *super.Context)
| 39 | } |
| 40 | |
| 41 | func (d *DynamicBuilder) Build(sctx *super.Context) Any { |
| 42 | var vecs []Any |
| 43 | for _, b := range d.values { |
| 44 | vecs = append(vecs, b.Build(sctx)) |
| 45 | } |
| 46 | if len(vecs) == 1 { |
| 47 | return vecs[0] |
| 48 | } |
| 49 | return NewDynamic(d.tags, vecs) |
| 50 | } |
| 51 | |
| 52 | func NewBuilder(typ super.Type) Builder { |
| 53 | switch typ := typ.(type) { |