Debian Codegraph @

crates/wit-component/tests/interfaces/worlds-with-types.wat

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