(b *scode.Builder, slot uint32)
| 48 | } |
| 49 | |
| 50 | func (f *Fusion) Serialize(b *scode.Builder, slot uint32) { |
| 51 | b.BeginContainer() |
| 52 | f.Values.Serialize(b, slot) |
| 53 | // XXX this is a slow path |
| 54 | typeVal := f.Sctx.LookupTypeValue(f.Subtypes()[slot]) |
| 55 | b.Append(typeVal.Bytes()) |
| 56 | b.EndContainer() |
| 57 | } |
| 58 | |
| 59 | func (f *Fusion) Subtypes() []super.Type { |
| 60 | f.mu.Lock() |
nothing calls this directly
no test coverage detected