Debian Codegraph @

tests/snapshots/cli/component-model-gc/variant-types.wast/2.print

raw
1 (component
2 (type $variant (;0;) (variant (case "a" bool) (case "b" bool) (case "c" u8)))
3 (core rec
4 (type $variant (;0;) (struct))
5 (type $ty (;1;) (func (param (ref null $variant))))
6 )
7 (type (;1;)
8 (instance
9 (alias outer 1 $variant (type (;0;)))
10 (export (;1;) "ty" (type (eq 0)))
11 (type (;2;) (func (param "x" 1)))
12 (export (;0;) "f" (func (type 2)))
13 )
14 )
15 (import "i" (instance $i (;0;) (type 1)))
16 (alias export $i "f" (func (;0;)))
17 (core func (;0;) (canon lower (func 0) gc (core-type $ty)))
18 )