Debian Codegraph @

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

raw
1 (component
2 (type (;0;)
3 (component
4 (type (;0;)
5 (instance
6 (type (;0;) (record (field "f" u8)))
7 (export (;1;) "single" (type (eq 0)))
8 (type (;2;) (record (field "a" u32) (field "b" u32)))
9 (export (;3;) "scalars" (type (eq 2)))
10 (type (;4;) (flags "a" "b" "c" "d" "e" "f" "g" "h" "i"))
11 (export (;5;) "really-flags" (type (eq 4)))
12 (type (;6;) (record (field "a" 3) (field "b" u32) (field "c" 1) (field "d" string) (field "e" 5)))
13 (export (;7;) "aggregates" (type (eq 6)))
14 (type (;8;) s32)
15 (export (;9;) "int-typedef" (type (eq 8)))
16 (type (;10;) (tuple 9))
17 (export (;11;) "tuple-typedef2" (type (eq 10)))
18 (type (;12;) (tuple char u32))
19 (type (;13;) (func (param "x" 12)))
20 (export (;0;) "tuple-arg" (func (type 13)))
21 (type (;14;) (func (result 12)))
22 (export (;1;) "tuple-result" (func (type 14)))
23 (type (;15;) (func (param "x" 1)))
24 (export (;2;) "single-arg" (func (type 15)))
25 (type (;16;) (func (result 1)))
26 (export (;3;) "single-result" (func (type 16)))
27 (type (;17;) (func (param "x" 3)))
28 (export (;4;) "scalar-arg" (func (type 17)))
29 (type (;18;) (func (result 3)))
30 (export (;5;) "scalar-result" (func (type 18)))
31 (type (;19;) (func (param "x" 5)))
32 (export (;6;) "flags-arg" (func (type 19)))
33 (type (;20;) (func (result 5)))
34 (export (;7;) "flags-result" (func (type 20)))
35 (type (;21;) (func (param "x" 7)))
36 (export (;8;) "aggregate-arg" (func (type 21)))
37 (type (;22;) (func (result 7)))
38 (export (;9;) "aggregate-result" (func (type 22)))
39 (type (;23;) (func (param "e" 11) (result s32)))
40 (export (;10;) "typedef-inout" (func (type 23)))
41 )
42 )
43 (export (;0;) "foo:records/records" (instance (type 0)))
44 )
45 )
46 (export (;1;) "records" (type 0))
47 (type (;2;)
48 (component
49 (type (;0;)
50 (component
51 (type (;0;)
52 (instance
53 (type (;0;) (record (field "f" u8)))
54 (export (;1;) "single" (type (eq 0)))
55 (type (;2;) (record (field "a" u32) (field "b" u32)))
56 (export (;3;) "scalars" (type (eq 2)))
57 (type (;4;) (flags "a" "b" "c" "d" "e" "f" "g" "h" "i"))
58 (export (;5;) "really-flags" (type (eq 4)))
59 (type (;6;) (record (field "a" 3) (field "b" u32) (field "c" 1) (field "d" string) (field "e" 5)))
60 (export (;7;) "aggregates" (type (eq 6)))
61 (type (;8;) s32)
62 (export (;9;) "int-typedef" (type (eq 8)))
63 (type (;10;) (tuple 9))
64 (export (;11;) "tuple-typedef2" (type (eq 10)))
65 (type (;12;) (tuple char u32))
66 (type (;13;) (func (param "x" 12)))
67 (export (;0;) "tuple-arg" (func (type 13)))
68 (type (;14;) (func (result 12)))
69 (export (;1;) "tuple-result" (func (type 14)))
70 (type (;15;) (func (param "x" 1)))
71 (export (;2;) "single-arg" (func (type 15)))
72 (type (;16;) (func (result 1)))
73 (export (;3;) "single-result" (func (type 16)))
74 (type (;17;) (func (param "x" 3)))
75 (export (;4;) "scalar-arg" (func (type 17)))
76 (type (;18;) (func (result 3)))
77 (export (;5;) "scalar-result" (func (type 18)))
78 (type (;19;) (func (param "x" 5)))
79 (export (;6;) "flags-arg" (func (type 19)))
80 (type (;20;) (func (result 5)))
81 (export (;7;) "flags-result" (func (type 20)))
82 (type (;21;) (func (param "x" 7)))
83 (export (;8;) "aggregate-arg" (func (type 21)))
84 (type (;22;) (func (result 7)))
85 (export (;9;) "aggregate-result" (func (type 22)))
86 (type (;23;) (func (param "e" 11) (result s32)))
87 (export (;10;) "typedef-inout" (func (type 23)))
88 )
89 )
90 (import "foo:records/records" (instance (;0;) (type 0)))
91 (type (;1;)
92 (instance
93 (type (;0;) (record (field "f" u8)))
94 (export (;1;) "single" (type (eq 0)))
95 (type (;2;) (record (field "a" u32) (field "b" u32)))
96 (export (;3;) "scalars" (type (eq 2)))
97 (type (;4;) (flags "a" "b" "c" "d" "e" "f" "g" "h" "i"))
98 (export (;5;) "really-flags" (type (eq 4)))
99 (type (;6;) (record (field "a" 3) (field "b" u32) (field "c" 1) (field "d" string) (field "e" 5)))
100 (export (;7;) "aggregates" (type (eq 6)))
101 (type (;8;) s32)
102 (export (;9;) "int-typedef" (type (eq 8)))
103 (type (;10;) (tuple 9))
104 (export (;11;) "tuple-typedef2" (type (eq 10)))
105 (type (;12;) (tuple char u32))
106 (type (;13;) (func (param "x" 12)))
107 (export (;0;) "tuple-arg" (func (type 13)))
108 (type (;14;) (func (result 12)))
109 (export (;1;) "tuple-result" (func (type 14)))
110 (type (;15;) (func (param "x" 1)))
111 (export (;2;) "single-arg" (func (type 15)))
112 (type (;16;) (func (result 1)))
113 (export (;3;) "single-result" (func (type 16)))
114 (type (;17;) (func (param "x" 3)))
115 (export (;4;) "scalar-arg" (func (type 17)))
116 (type (;18;) (func (result 3)))
117 (export (;5;) "scalar-result" (func (type 18)))
118 (type (;19;) (func (param "x" 5)))
119 (export (;6;) "flags-arg" (func (type 19)))
120 (type (;20;) (func (result 5)))
121 (export (;7;) "flags-result" (func (type 20)))
122 (type (;21;) (func (param "x" 7)))
123 (export (;8;) "aggregate-arg" (func (type 21)))
124 (type (;22;) (func (result 7)))
125 (export (;9;) "aggregate-result" (func (type 22)))
126 (type (;23;) (func (param "e" 11) (result s32)))
127 (export (;10;) "typedef-inout" (func (type 23)))
128 )
129 )
130 (export (;1;) "foo:records/records" (instance (type 1)))
131 )
132 )
133 (export (;0;) "foo:records/records-world" (component (type 0)))
134 )
135 )
136 (export (;3;) "records-world" (type 2))
137 (@custom "package-docs" "\01{}")
138 (@producers
139 (processed-by "wit-component" "$CARGO_PKG_VERSION")
140 )
141 )