Deref decodes the supertype value bytes and the subtype from a fusion type.
(sctx *Context, bytes scode.Bytes)
| 317 | |
| 318 | // Deref decodes the supertype value bytes and the subtype from a fusion type. |
| 319 | func (t *TypeFusion) Deref(sctx *Context, bytes scode.Bytes) (scode.Bytes, Type) { |
| 320 | it := bytes.Iter() |
| 321 | superBytes := it.Next() |
| 322 | subType, err := sctx.LookupByValue(it.Next()) |
| 323 | if err != nil { |
| 324 | panic(err) |
| 325 | } |
| 326 | return superBytes, subType |
| 327 | } |
| 328 | |
| 329 | func (t *TypeFusion) DerefFusion(bytes scode.Bytes) (Type, scode.Bytes) { |
| 330 | it := bytes.Iter() |
nothing calls this directly
no test coverage detected