|
| 1 | +(component |
| 2 | + (type (;0;) |
| 3 | + (instance |
| 4 | + (export (;0;) "a" (type (sub resource))) |
| 5 | + (type (;1;) (own 0)) |
| 6 | + (type (;2;) (result 1 (error u32))) |
| 7 | + (type (;3;) (func (result 2))) |
| 8 | + (export (;0;) "[constructor]a" (func (type 3))) |
| 9 | + ) |
| 10 | + ) |
| 11 | + (import "foo" (instance (;0;) (type 0))) |
| 12 | + (core module (;0;) |
| 13 | + (type (;0;) (func (param i32))) |
| 14 | + (import "foo" "[constructor]a" (func (;0;) (type 0))) |
| 15 | + (import "foo" "[resource-drop]a" (func (;1;) (type 0))) |
| 16 | + (memory (;0;) 1) |
| 17 | + (export "memory" (memory 0)) |
| 18 | + (@producers |
| 19 | + (processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 20 | + (processed-by "my-fake-bindgen" "123.45") |
| 21 | + ) |
| 22 | + ) |
| 23 | + (core module (;1;) |
| 24 | + (type (;0;) (func (param i32))) |
| 25 | + (table (;0;) 1 1 funcref) |
| 26 | + (export "0" (func $"indirect-foo-[constructor]a")) |
| 27 | + (export "$imports" (table 0)) |
| 28 | + (func $"indirect-foo-[constructor]a" (;0;) (type 0) (param i32) |
| 29 | + local.get 0 |
| 30 | + i32.const 0 |
| 31 | + call_indirect (type 0) |
| 32 | + ) |
| 33 | + (@producers |
| 34 | + (processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 35 | + ) |
| 36 | + ) |
| 37 | + (core module (;2;) |
| 38 | + (type (;0;) (func (param i32))) |
| 39 | + (import "" "0" (func (;0;) (type 0))) |
| 40 | + (import "" "$imports" (table (;0;) 1 1 funcref)) |
| 41 | + (elem (;0;) (i32.const 0) func 0) |
| 42 | + (@producers |
| 43 | + (processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 44 | + ) |
| 45 | + ) |
| 46 | + (core instance (;0;) (instantiate 1)) |
| 47 | + (alias core export 0 "0" (core func (;0;))) |
| 48 | + (alias export 0 "a" (type (;1;))) |
| 49 | + (core func (;1;) (canon resource.drop 1)) |
| 50 | + (core instance (;1;) |
| 51 | + (export "[constructor]a" (func 0)) |
| 52 | + (export "[resource-drop]a" (func 1)) |
| 53 | + ) |
| 54 | + (core instance (;2;) (instantiate 0 |
| 55 | + (with "foo" (instance 1)) |
| 56 | + ) |
| 57 | + ) |
| 58 | + (alias core export 2 "memory" (core memory (;0;))) |
| 59 | + (alias core export 0 "$imports" (core table (;0;))) |
| 60 | + (alias export 0 "[constructor]a" (func (;0;))) |
| 61 | + (core func (;2;) (canon lower (func 0) (memory 0))) |
| 62 | + (core instance (;3;) |
| 63 | + (export "$imports" (table 0)) |
| 64 | + (export "0" (func 2)) |
| 65 | + ) |
| 66 | + (core instance (;4;) (instantiate 2 |
| 67 | + (with "" (instance 3)) |
| 68 | + ) |
| 69 | + ) |
| 70 | + (@producers |
| 71 | + (processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 72 | + ) |
| 73 | +) |
0 commit comments