Debian Codegraph @

crates/wit-component/tests/interfaces/import-and-export.wat

raw
1 (component
2 (type (;0;)
3 (component
4 (type (;0;)
5 (instance
6 (type (;0;) (func))
7 (export (;0;) "foo" (func (type 0)))
8 )
9 )
10 (export (;0;) "foo:foo/foo" (instance (type 0)))
11 )
12 )
13 (export (;1;) "foo" (type 0))
14 (type (;2;)
15 (component
16 (type (;0;)
17 (instance
18 (type (;0;) (func))
19 (export (;0;) "bar" (func (type 0)))
20 )
21 )
22 (export (;0;) "foo:foo/bar" (instance (type 0)))
23 )
24 )
25 (export (;3;) "bar" (type 2))
26 (type (;4;)
27 (component
28 (type (;0;)
29 (component
30 (type (;0;)
31 (instance
32 (type (;0;) (func))
33 (export (;0;) "foo" (func (type 0)))
34 )
35 )
36 (import "foo:foo/foo" (instance (;0;) (type 0)))
37 (type (;1;)
38 (instance
39 (type (;0;) (func))
40 (export (;0;) "bar" (func (type 0)))
41 )
42 )
43 (export (;1;) "foo:foo/bar" (instance (type 1)))
44 )
45 )
46 (export (;0;) "foo:foo/import-and-export" (component (type 0)))
47 )
48 )
49 (export (;5;) "import-and-export" (type 4))
50 (@custom "package-docs" "\01{}")
51 (@producers
52 (processed-by "wit-component" "$CARGO_PKG_VERSION")
53 )
54 )