Debian Codegraph @

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

raw
1 (component
2 (type (;0;)
3 (component
4 (type (;0;)
5 (instance
6 (type (;0;) (record (field "a" u32)))
7 (export (;1;) "my-struct" (type (eq 0)))
8 (type (;2;) (func (param "a" 1) (result string)))
9 (export (;0;) "my-function" (func (type 2)))
10 )
11 )
12 (export (;0;) "foo:foo/foo" (instance (type 0)))
13 )
14 )
15 (export (;1;) "foo" (type 0))
16 (type (;2;)
17 (component
18 (type (;0;)
19 (component
20 (type (;0;)
21 (instance
22 (type (;0;) (record (field "a" u32)))
23 (export (;1;) "my-struct" (type (eq 0)))
24 (type (;2;) (func (param "a" 1) (result string)))
25 (export (;0;) "my-function" (func (type 2)))
26 )
27 )
28 (export (;0;) "foo:foo/foo" (instance (type 0)))
29 )
30 )
31 (export (;0;) "foo:foo/export-foo" (component (type 0)))
32 )
33 )
34 (export (;3;) "export-foo" (type 2))
35 (@custom "package-docs" "\01{}")
36 (@producers
37 (processed-by "wit-component" "$CARGO_PKG_VERSION")
38 )
39 )