Debian Codegraph @

crates/wit-component/tests/components/import-export-same-iface-name/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) (func))
5 (export (;0;) "a" (func (type 0)))
6 )
7 )
8 (import "foo:dep/the-name" (instance (;0;) (type 0)))
9 (type (;1;)
10 (instance
11 (type (;0;) (func))
12 (export (;0;) "a" (func (type 0)))
13 )
14 )
15 (import "foo:foo/the-name" (instance (;1;) (type 1)))
16 (core module (;0;)
17 (type (;0;) (func))
18 (import "foo:dep/the-name" "a" (func (;0;) (type 0)))
19 (import "foo:foo/the-name" "a" (func (;1;) (type 0)))
20 (export "foo:foo/the-name#a" (func 2))
21 (func (;2;) (type 0))
22 (@producers
23 (processed-by "wit-component" "$CARGO_PKG_VERSION")
24 (processed-by "my-fake-bindgen" "123.45")
25 )
26 )
27 (alias export 0 "a" (func (;0;)))
28 (core func (;0;) (canon lower (func 0)))
29 (core instance (;0;)
30 (export "a" (func 0))
31 )
32 (alias export 1 "a" (func (;1;)))
33 (core func (;1;) (canon lower (func 1)))
34 (core instance (;1;)
35 (export "a" (func 1))
36 )
37 (core instance (;2;) (instantiate 0
38 (with "foo:dep/the-name" (instance 0))
39 (with "foo:foo/the-name" (instance 1))
40 )
41 )
42 (type (;2;) (func))
43 (alias core export 2 "foo:foo/the-name#a" (core func (;2;)))
44 (func (;2;) (type 2) (canon lift (core func 2)))
45 (component (;0;)
46 (type (;0;) (func))
47 (import "import-func-a" (func (;0;) (type 0)))
48 (type (;1;) (func))
49 (export (;1;) "a" (func 0) (func (type 1)))
50 )
51 (instance (;2;) (instantiate 0
52 (with "import-func-a" (func 2))
53 )
54 )
55 (export (;3;) "foo:foo/the-name" (instance 2))
56 (@producers
57 (processed-by "wit-component" "$CARGO_PKG_VERSION")
58 )
59 )