| 1 |
(component |
| 2 |
(type (;0;) |
| 3 |
(component |
| 4 |
(type (;0;) |
| 5 |
(instance |
| 6 |
(export (;0;) "bar" (type (sub resource))) |
| 7 |
(export (;1;) "t" (type (eq 0))) |
| 8 |
(type (;2;) (own 0)) |
| 9 |
(export (;3;) "t2" (type (eq 2))) |
| 10 |
(type (;4;) (own 0)) |
| 11 |
(type (;5;) (func (result 4))) |
| 12 |
(export (;0;) "[constructor]bar" (func (type 5))) |
| 13 |
(type (;6;) (func)) |
| 14 |
(export (;1;) "[static]bar.a" (func (type 6))) |
| 15 |
(type (;7;) (borrow 0)) |
| 16 |
(type (;8;) (func (param "self" 7))) |
| 17 |
(export (;2;) "[method]bar.b" (func (type 8))) |
| 18 |
(type (;9;) (func (param "x" 4) (result 4))) |
| 19 |
(export (;3;) "a" (func (type 9))) |
| 20 |
) |
| 21 |
) |
| 22 |
(export (;0;) "foo:bar/foo" (instance (type 0))) |
| 23 |
) |
| 24 |
) |
| 25 |
(export (;1;) "foo" (type 0)) |
| 26 |
(type (;2;) |
| 27 |
(component |
| 28 |
(type (;0;) |
| 29 |
(instance |
| 30 |
(export (;0;) "bar" (type (sub resource))) |
| 31 |
(export (;1;) "t" (type (eq 0))) |
| 32 |
(type (;2;) (own 0)) |
| 33 |
(export (;3;) "t2" (type (eq 2))) |
| 34 |
) |
| 35 |
) |
| 36 |
(import "foo:bar/foo" (instance (;0;) (type 0))) |
| 37 |
(alias export 0 "bar" (type (;1;))) |
| 38 |
(alias export 0 "t" (type (;2;))) |
| 39 |
(type (;3;) |
| 40 |
(instance |
| 41 |
(alias outer 1 1 (type (;0;))) |
| 42 |
(export (;1;) "bar" (type (eq 0))) |
| 43 |
(alias outer 1 2 (type (;2;))) |
| 44 |
(export (;3;) "t" (type (eq 2))) |
| 45 |
(type (;4;) (own 1)) |
| 46 |
(type (;5;) (func (param "x" 4) (result 4))) |
| 47 |
(export (;0;) "a" (func (type 5))) |
| 48 |
(type (;6;) (own 3)) |
| 49 |
(type (;7;) (func (result 6))) |
| 50 |
(export (;1;) "b" (func (type 7))) |
| 51 |
) |
| 52 |
) |
| 53 |
(export (;1;) "foo:bar/baz" (instance (type 3))) |
| 54 |
) |
| 55 |
) |
| 56 |
(export (;3;) "baz" (type 2)) |
| 57 |
(type (;4;) |
| 58 |
(component |
| 59 |
(type (;0;) |
| 60 |
(instance |
| 61 |
(export (;0;) "a" (type (sub resource))) |
| 62 |
(type (;1;) (own 0)) |
| 63 |
(type (;2;) (func (param "a1" 1) (param "a2" 1) (result 1))) |
| 64 |
(export (;0;) "b" (func (type 2))) |
| 65 |
(type (;3;) (list 1)) |
| 66 |
(type (;4;) (func (result 3))) |
| 67 |
(export (;1;) "c" (func (type 4))) |
| 68 |
) |
| 69 |
) |
| 70 |
(export (;0;) "foo:bar/implicit-own-handles" (instance (type 0))) |
| 71 |
) |
| 72 |
) |
| 73 |
(export (;5;) "implicit-own-handles" (type 4)) |
| 74 |
(type (;6;) |
| 75 |
(component |
| 76 |
(type (;0;) |
| 77 |
(instance |
| 78 |
(export (;0;) "a" (type (sub resource))) |
| 79 |
(export (;1;) "b" (type (sub resource))) |
| 80 |
(export (;2;) "c" (type (sub resource))) |
| 81 |
(type (;3;) (own 0)) |
| 82 |
(type (;4;) (list 3)) |
| 83 |
(type (;5;) (func (param "a" 4) (result 3))) |
| 84 |
(export (;0;) "[constructor]a" (func (type 5))) |
| 85 |
(type (;6;) (own 1)) |
| 86 |
(type (;7;) (list 6)) |
| 87 |
(type (;8;) (func (param "a" 7) (param "b" 6) (result 6))) |
| 88 |
(export (;1;) "[constructor]b" (func (type 8))) |
| 89 |
(type (;9;) (own 2)) |
| 90 |
(type (;10;) (func (param "a" 9) (result 9))) |
| 91 |
(export (;2;) "[static]c.a" (func (type 10))) |
| 92 |
) |
| 93 |
) |
| 94 |
(export (;0;) "foo:bar/implicit-own-handles2" (instance (type 0))) |
| 95 |
) |
| 96 |
) |
| 97 |
(export (;7;) "implicit-own-handles2" (type 6)) |
| 98 |
(type (;8;) |
| 99 |
(component |
| 100 |
(type (;0;) |
| 101 |
(component |
| 102 |
(type (;0;) |
| 103 |
(instance |
| 104 |
(export (;0;) "a" (type (sub resource))) |
| 105 |
(type (;1;) (own 0)) |
| 106 |
(type (;2;) (func (result 1))) |
| 107 |
(export (;0;) "[constructor]a" (func (type 2))) |
| 108 |
(type (;3;) (func)) |
| 109 |
(export (;1;) "[static]a.b" (func (type 3))) |
| 110 |
(type (;4;) (borrow 0)) |
| 111 |
(type (;5;) (func (param "self" 4))) |
| 112 |
(export (;2;) "[method]a.c" (func (type 5))) |
| 113 |
) |
| 114 |
) |
| 115 |
(import "anon" (instance (;0;) (type 0))) |
| 116 |
(type (;1;) |
| 117 |
(instance |
| 118 |
(export (;0;) "bar" (type (sub resource))) |
| 119 |
(export (;1;) "t" (type (eq 0))) |
| 120 |
(type (;2;) (own 0)) |
| 121 |
(export (;3;) "t2" (type (eq 2))) |
| 122 |
(type (;4;) (own 0)) |
| 123 |
(type (;5;) (func (result 4))) |
| 124 |
(export (;0;) "[constructor]bar" (func (type 5))) |
| 125 |
(type (;6;) (func)) |
| 126 |
(export (;1;) "[static]bar.a" (func (type 6))) |
| 127 |
(type (;7;) (borrow 0)) |
| 128 |
(type (;8;) (func (param "self" 7))) |
| 129 |
(export (;2;) "[method]bar.b" (func (type 8))) |
| 130 |
(type (;9;) (func (param "x" 4) (result 4))) |
| 131 |
(export (;3;) "a" (func (type 9))) |
| 132 |
) |
| 133 |
) |
| 134 |
(import "foo:bar/foo" (instance (;1;) (type 1))) |
| 135 |
(alias export 1 "bar" (type (;2;))) |
| 136 |
(alias export 1 "t" (type (;3;))) |
| 137 |
(type (;4;) |
| 138 |
(instance |
| 139 |
(alias outer 1 2 (type (;0;))) |
| 140 |
(export (;1;) "bar" (type (eq 0))) |
| 141 |
(alias outer 1 3 (type (;2;))) |
| 142 |
(export (;3;) "t" (type (eq 2))) |
| 143 |
(type (;4;) (own 1)) |
| 144 |
(type (;5;) (func (param "x" 4) (result 4))) |
| 145 |
(export (;0;) "a" (func (type 5))) |
| 146 |
(type (;6;) (own 3)) |
| 147 |
(type (;7;) (func (result 6))) |
| 148 |
(export (;1;) "b" (func (type 7))) |
| 149 |
) |
| 150 |
) |
| 151 |
(import "foo:bar/baz" (instance (;2;) (type 4))) |
| 152 |
(alias export 2 "bar" (type (;5;))) |
| 153 |
(import "bar" (type (;6;) (eq 5))) |
| 154 |
(import "a" (type (;7;) (sub resource))) |
| 155 |
(import "b" (type (;8;) (sub resource))) |
| 156 |
(type (;9;) (own 7)) |
| 157 |
(type (;10;) (func (result 9))) |
| 158 |
(import "[constructor]a" (func (;0;) (type 10))) |
| 159 |
(type (;11;) (own 8)) |
| 160 |
(type (;12;) (result 11 (error string))) |
| 161 |
(type (;13;) (func (result 12))) |
| 162 |
(import "[constructor]b" (func (;1;) (type 13))) |
| 163 |
(export (;2;) "x" (func (type 10))) |
| 164 |
(type (;14;) (own 6)) |
| 165 |
(type (;15;) (func (result 14))) |
| 166 |
(export (;3;) "y" (func (type 15))) |
| 167 |
) |
| 168 |
) |
| 169 |
(export (;0;) "foo:bar/some-world" (component (type 0))) |
| 170 |
) |
| 171 |
) |
| 172 |
(export (;9;) "some-world" (type 8)) |
| 173 |
(type (;10;) |
| 174 |
(component |
| 175 |
(type (;0;) |
| 176 |
(component |
| 177 |
(import "a" (type (;0;) (sub resource))) |
| 178 |
(type (;1;) (own 0)) |
| 179 |
(type (;2;) (list 1)) |
| 180 |
(type (;3;) (func (param "a" 2) (param "b" 2) (result 1))) |
| 181 |
(import "[constructor]a" (func (;0;) (type 3))) |
| 182 |
) |
| 183 |
) |
| 184 |
(export (;0;) "foo:bar/implicit-own-handles3" (component (type 0))) |
| 185 |
) |
| 186 |
) |
| 187 |
(export (;11;) "implicit-own-handles3" (type 10)) |
| 188 |
(@custom "package-docs" "\01{\22worlds\22:{\22implicit-own-handles3\22:{\22types\22:{\22a\22:{\22docs\22:\22there should only be one `list` type despite there looking like two\5cnlist types here\22}}}},\22interfaces\22:{\22implicit-own-handles2\22:{\22types\22:{\22a\22:{\22docs\22:\22the `own` return and list param should be the same `own`\22},\22b\22:{\22docs\22:\22same as above, even when the `list<b>` implicitly-defined `own` comes\5cnbefore an explicitly defined `own`\22},\22c\22:{\22docs\22:\22same as the above, the `own` argument should have the same type as the\5cnreturn value\22}}}}}") |
| 189 |
(@producers |
| 190 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 191 |
) |
| 192 |
) |