Debian Codegraph @

crates/wit-component/tests/interfaces/world-top-level.wat

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