Skip to content

Commit 2d9deb9

Browse files
committed
testdata: regenerate with wasm-tools 1.230.0
1 parent 8108d29 commit 2d9deb9

13 files changed

Lines changed: 91 additions & 103 deletions

testdata/codegen/issue573.wit.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
"id": 0
99
}
1010
},
11+
"interface-1": {
12+
"interface": {
13+
"id": 1
14+
}
15+
},
16+
"inline": {
17+
"interface": {
18+
"id": 3
19+
}
20+
},
1121
"t2-renamed": {
1222
"type": 39
1323
},
@@ -23,11 +33,6 @@
2333
"empty": {
2434
"type": 43
2535
},
26-
"interface-1": {
27-
"interface": {
28-
"id": 1
29-
}
30-
},
3136
"print": {
3237
"function": {
3338
"name": "print",
@@ -43,11 +48,6 @@
4348
}
4449
]
4550
}
46-
},
47-
"inline": {
48-
"interface": {
49-
"id": 3
50-
}
5151
}
5252
},
5353
"exports": {

testdata/codegen/issue573.wit.json.golden.wit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ interface api {
8585

8686
world types-example {
8787
import types-interface;
88+
import api-imports;
89+
/// Comment for import inline
90+
import inline: interface {
91+
/// Comment for import inline function
92+
inline-imp: func(args: list<option<char>>) -> result<_, char>;
93+
}
8894
use types-interface.{t2 as t2-renamed};
8995
use types-interface.{t10};
9096
use types-interface.{permissions};
@@ -98,13 +104,7 @@ world types-example {
98104
/// NB: this record used to be empty, but that's no longer valid, so now it's
99105
/// non-empty. Don't want to delete the whole test however.
100106
record empty { not-empty-anymore: bool }
101-
import api-imports;
102107
import print: func(message: string, level: log-level);
103-
/// Comment for import inline
104-
import inline: interface {
105-
/// Comment for import inline function
106-
inline-imp: func(args: list<option<char>>) -> result<_, char>;
107-
}
108108
export f-f1: func(typedef: t10) -> t10;
109109
export f1: func(f: f32, f-list: list<tuple<char, f64>>) -> tuple<s64, string>;
110110
/// t2 has been renamed with `use self.types-interface.{t2 as t2-renamed}`

testdata/codegen/lift-lower-foreign.wit.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
"id": 0
99
}
1010
},
11+
"interface-1": {
12+
"interface": {
13+
"id": 1
14+
}
15+
},
1116
"u1": {
1217
"type": 20
1318
},
@@ -37,11 +42,6 @@
3742
},
3843
"u11": {
3944
"type": 29
40-
},
41-
"interface-1": {
42-
"interface": {
43-
"id": 1
44-
}
4545
}
4646
},
4747
"exports": {

testdata/codegen/lift-lower-foreign.wit.json.golden.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ interface the-interface {
3838

3939
world foo {
4040
import a;
41+
import the-interface;
4142
use a.{t1 as u1};
4243
use a.{t2 as u2};
4344
use a.{t3 as u3};
@@ -48,7 +49,6 @@ world foo {
4849
use a.{t8 as %u8};
4950
use a.{t10 as u10};
5051
use a.{t11 as u11};
51-
import the-interface;
5252
export foo-f1: func(a: u1) -> u1;
5353
export foo-f2: func(a: u2) -> u2;
5454
export foo-f3: func(a: u3) -> u3;

testdata/codegen/resources.wit.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
{
44
"name": "resources",
55
"imports": {
6+
"imports": {
7+
"interface": {
8+
"id": 2
9+
}
10+
},
611
"interface-0": {
712
"interface": {
813
"id": 0
@@ -16,11 +21,6 @@
1621
},
1722
"big": {
1823
"type": 4
19-
},
20-
"imports": {
21-
"interface": {
22-
"id": 2
23-
}
2424
}
2525
},
2626
"exports": {

testdata/codegen/resources.wit.json.golden.wit

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ interface types {
77
}
88

99
world resources {
10+
import imports: interface {
11+
resource y {
12+
constructor(a: f64);
13+
get-a: func() -> f64;
14+
set-a: func(a: f64);
15+
add: static func(y: y, a: f64) -> y;
16+
}
17+
}
1018
import types;
1119
use types.{z};
1220
variant includes-borrow { a, b(borrow<z>) }
@@ -22,14 +30,6 @@ world resources {
2230
x9: borrow<z>,
2331
x10: borrow<z>,
2432
}
25-
import imports: interface {
26-
resource y {
27-
constructor(a: f64);
28-
get-a: func() -> f64;
29-
set-a: func(a: f64);
30-
add: static func(y: y, a: f64) -> y;
31-
}
32-
}
3333
export add: func(a: borrow<z>, b: borrow<z>) -> z;
3434
export maybe-with-z: func(a: option<borrow<z>>);
3535
export variant-with-z: func(a: includes-borrow);

testdata/issues/issue306.wit.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@
2222
"imports": {
2323
"interface-0": {
2424
"interface": {
25-
"id": 0,
26-
"stability": {
27-
"stable": {
28-
"since": "0.2.0"
29-
}
30-
}
25+
"id": 0
3126
}
3227
}
3328
},

testdata/issues/issue325.wit.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@
2222
"imports": {
2323
"interface-0": {
2424
"interface": {
25-
"id": 0,
26-
"stability": {
27-
"stable": {
28-
"since": "0.2.0"
29-
}
30-
}
25+
"id": 0
3126
}
3227
}
3328
},
@@ -61,8 +56,8 @@
6156
"interface": {
6257
"id": 0,
6358
"stability": {
64-
"stable": {
65-
"since": "0.2.0"
59+
"unstable": {
60+
"feature": "active"
6661
}
6762
}
6863
}

testdata/issues/issue325.wit.json.golden.wit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package issues:issue325;
22

33
world w {
4+
@unstable(feature = active)
45
import issues:dep2/i@0.2.0;
56
@unstable(feature = active)
67
use issues:dep2/i@0.2.0.{r};

testdata/wit-parser/gated-include-use-with-stable.wit.json

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,7 @@
6161
"imports": {
6262
"interface-2": {
6363
"interface": {
64-
"id": 2,
65-
"stability": {
66-
"stable": {
67-
"since": "0.2.0"
68-
}
69-
}
64+
"id": 2
7065
}
7166
},
7267
"interface-1": {
@@ -106,9 +101,6 @@
106101
}
107102
}
108103
},
109-
"stable-resource": {
110-
"type": 3
111-
},
112104
"interface-1": {
113105
"interface": {
114106
"id": 1,
@@ -119,9 +111,6 @@
119111
}
120112
}
121113
},
122-
"unversioned-resource": {
123-
"type": 4
124-
},
125114
"interface-0": {
126115
"interface": {
127116
"id": 0,
@@ -132,6 +121,12 @@
132121
}
133122
}
134123
},
124+
"stable-resource": {
125+
"type": 3
126+
},
127+
"unversioned-resource": {
128+
"type": 4
129+
},
135130
"unstable-resource": {
136131
"type": 5
137132
}
@@ -151,15 +146,12 @@
151146
"interface": {
152147
"id": 2,
153148
"stability": {
154-
"stable": {
155-
"since": "0.2.0"
149+
"unstable": {
150+
"feature": "active"
156151
}
157152
}
158153
}
159154
},
160-
"stable-resource": {
161-
"type": 3
162-
},
163155
"interface-1": {
164156
"interface": {
165157
"id": 1,
@@ -170,9 +162,6 @@
170162
}
171163
}
172164
},
173-
"unversioned-resource": {
174-
"type": 4
175-
},
176165
"interface-0": {
177166
"interface": {
178167
"id": 0,
@@ -183,6 +172,12 @@
183172
}
184173
}
185174
},
175+
"stable-resource": {
176+
"type": 3
177+
},
178+
"unversioned-resource": {
179+
"type": 4
180+
},
186181
"unstable-resource": {
187182
"type": 5
188183
}
@@ -197,8 +192,8 @@
197192
"interface": {
198193
"id": 2,
199194
"stability": {
200-
"stable": {
201-
"since": "0.2.0"
195+
"unstable": {
196+
"feature": "active"
202197
}
203198
}
204199
}

0 commit comments

Comments
 (0)