(sctx *super.Context)
| 279 | } |
| 280 | |
| 281 | func (f *fusionBuilder) Build(sctx *super.Context) Any { |
| 282 | types := make([]super.Type, 0, len(f.subtypes)) |
| 283 | for _, tv := range f.subtypes { |
| 284 | t, err := sctx.LookupByValue(tv) |
| 285 | if err != nil { |
| 286 | panic(err) |
| 287 | } |
| 288 | types = append(types, t) |
| 289 | } |
| 290 | return NewFusion(sctx, f.typ, f.values.Build(sctx), types) |
| 291 | } |
| 292 | |
| 293 | type enumBuilder struct { |
| 294 | typ *super.TypeEnum |
nothing calls this directly
no test coverage detected