Debian Codegraph @

crates/wit-component/tests/interfaces/diamond.wat

raw
1 (component
2 (type (;0;)
3 (component
4 (type (;0;)
5 (instance
6 (type (;0;) (enum "a"))
7 (export (;1;) "the-enum" (type (eq 0)))
8 )
9 )
10 (export (;0;) "foo:foo/shared-items" (instance (type 0)))
11 )
12 )
13 (export (;1;) "shared-items" (type 0))
14 (type (;2;)
15 (component
16 (type (;0;)
17 (component
18 (type (;0;)
19 (instance
20 (type (;0;) (enum "a"))
21 (export (;1;) "the-enum" (type (eq 0)))
22 )
23 )
24 (import "foo:foo/shared-items" (instance (;0;) (type 0)))
25 (alias export 0 "the-enum" (type (;1;)))
26 (type (;2;)
27 (instance
28 (alias outer 1 1 (type (;0;)))
29 (export (;1;) "the-enum" (type (eq 0)))
30 )
31 )
32 (import "foo" (instance (;1;) (type 2)))
33 (type (;3;)
34 (instance
35 (alias outer 1 1 (type (;0;)))
36 (export (;1;) "the-enum" (type (eq 0)))
37 )
38 )
39 (import "bar" (instance (;2;) (type 3)))
40 )
41 )
42 (export (;0;) "foo:foo/w1" (component (type 0)))
43 )
44 )
45 (export (;3;) "w1" (type 2))
46 (type (;4;)
47 (component
48 (type (;0;)
49 (component
50 (type (;0;)
51 (instance
52 (type (;0;) (enum "a"))
53 (export (;1;) "the-enum" (type (eq 0)))
54 )
55 )
56 (import "foo:foo/shared-items" (instance (;0;) (type 0)))
57 (alias export 0 "the-enum" (type (;1;)))
58 (type (;2;)
59 (instance
60 (alias outer 1 1 (type (;0;)))
61 (export (;1;) "the-enum" (type (eq 0)))
62 )
63 )
64 (import "foo" (instance (;1;) (type 2)))
65 (type (;3;)
66 (instance
67 (alias outer 1 1 (type (;0;)))
68 (export (;1;) "the-enum" (type (eq 0)))
69 )
70 )
71 (export (;2;) "bar" (instance (type 3)))
72 )
73 )
74 (export (;0;) "foo:foo/w2" (component (type 0)))
75 )
76 )
77 (export (;5;) "w2" (type 4))
78 (type (;6;)
79 (component
80 (type (;0;)
81 (component
82 (type (;0;)
83 (instance
84 (type (;0;) (enum "a"))
85 (export (;1;) "the-enum" (type (eq 0)))
86 )
87 )
88 (import "foo:foo/shared-items" (instance (;0;) (type 0)))
89 (alias export 0 "the-enum" (type (;1;)))
90 (type (;2;)
91 (instance
92 (alias outer 1 1 (type (;0;)))
93 (export (;1;) "the-enum" (type (eq 0)))
94 )
95 )
96 (export (;1;) "bar" (instance (type 2)))
97 )
98 )
99 (export (;0;) "foo:foo/w3" (component (type 0)))
100 )
101 )
102 (export (;7;) "w3" (type 6))
103 (@custom "package-docs" "\01{}")
104 (@producers
105 (processed-by "wit-component" "$CARGO_PKG_VERSION")
106 )
107 )