Debian Codegraph @

crates/wit-component/tests/interfaces/simple-use.wat

raw
1 (component
2 (type (;0;)
3 (component
4 (type (;0;)
5 (instance
6 (type (;0;) (enum "info" "debug"))
7 (export (;1;) "level" (type (eq 0)))
8 )
9 )
10 (export (;0;) "foo:foo/types" (instance (type 0)))
11 )
12 )
13 (export (;1;) "types" (type 0))
14 (type (;2;)
15 (component
16 (type (;0;)
17 (instance
18 (type (;0;) (enum "info" "debug"))
19 (export (;1;) "level" (type (eq 0)))
20 )
21 )
22 (import "foo:foo/types" (instance (;0;) (type 0)))
23 (alias export 0 "level" (type (;1;)))
24 (type (;2;)
25 (instance
26 (alias outer 1 1 (type (;0;)))
27 (export (;1;) "level" (type (eq 0)))
28 (type (;2;) (func (param "level" 1) (param "msg" string)))
29 (export (;0;) "log" (func (type 2)))
30 )
31 )
32 (export (;1;) "foo:foo/console" (instance (type 2)))
33 )
34 )
35 (export (;3;) "console" (type 2))
36 (@custom "package-docs" "\01{}")
37 (@producers
38 (processed-by "wit-component" "$CARGO_PKG_VERSION")
39 )
40 )