Skip to content

Commit eca7e0b

Browse files
committed
testdata: regenerate with wasm-tools 1.226.0
Function results now optional result.
1 parent 87d2822 commit eca7e0b

File tree

105 files changed

+739
-3048
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+739
-3048
lines changed

testdata/codegen/char.wit.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"type": "char"
3434
}
3535
],
36-
"results": [],
3736
"docs": {
3837
"contents": "A function that accepts a character"
3938
}
@@ -42,11 +41,7 @@
4241
"name": "return-char",
4342
"kind": "freestanding",
4443
"params": [],
45-
"results": [
46-
{
47-
"type": "char"
48-
}
49-
],
44+
"result": "char",
5045
"docs": {
5146
"contents": "A function that returns a character"
5247
}

testdata/codegen/conventions.wit.json

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"kebab-case": {
3030
"name": "kebab-case",
3131
"kind": "freestanding",
32-
"params": [],
33-
"results": []
32+
"params": []
3433
},
3534
"foo": {
3635
"name": "foo",
@@ -40,71 +39,60 @@
4039
"name": "x",
4140
"type": 0
4241
}
43-
],
44-
"results": []
42+
]
4543
},
4644
"function-with-dashes": {
4745
"name": "function-with-dashes",
4846
"kind": "freestanding",
49-
"params": [],
50-
"results": []
47+
"params": []
5148
},
5249
"function-with-no-weird-characters": {
5350
"name": "function-with-no-weird-characters",
5451
"kind": "freestanding",
55-
"params": [],
56-
"results": []
52+
"params": []
5753
},
5854
"apple": {
5955
"name": "apple",
6056
"kind": "freestanding",
61-
"params": [],
62-
"results": []
57+
"params": []
6358
},
6459
"apple-pear": {
6560
"name": "apple-pear",
6661
"kind": "freestanding",
67-
"params": [],
68-
"results": []
62+
"params": []
6963
},
7064
"apple-pear-grape": {
7165
"name": "apple-pear-grape",
7266
"kind": "freestanding",
73-
"params": [],
74-
"results": []
67+
"params": []
7568
},
7669
"a0": {
7770
"name": "a0",
7871
"kind": "freestanding",
79-
"params": [],
80-
"results": []
72+
"params": []
8173
},
8274
"is-XML": {
8375
"name": "is-XML",
8476
"kind": "freestanding",
8577
"params": [],
86-
"results": [],
8778
"docs": {
8879
"contents": " Comment out identifiers that collide when mapped to snake_case, for now; see\n https://github.com/WebAssembly/component-model/issues/118\nAPPLE: func()\nAPPLE-pear-GRAPE: func()\napple-PEAR-grape: func()"
8980
}
9081
},
9182
"explicit": {
9283
"name": "explicit",
9384
"kind": "freestanding",
94-
"params": [],
95-
"results": []
85+
"params": []
9686
},
9787
"explicit-kebab": {
9888
"name": "explicit-kebab",
9989
"kind": "freestanding",
100-
"params": [],
101-
"results": []
90+
"params": []
10291
},
10392
"bool": {
10493
"name": "bool",
10594
"kind": "freestanding",
10695
"params": [],
107-
"results": [],
10896
"docs": {
10997
"contents": "Identifiers with the same name as keywords are quoted."
11098
}

testdata/codegen/enum-has-go-keyword.wit.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@
3434
"type": 1
3535
}
3636
],
37-
"results": [
38-
{
39-
"type": "string"
40-
}
41-
]
37+
"result": "string"
4238
}
4339
},
4440
"package": 0

testdata/codegen/error-context.wit.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@
4343
"type": 2
4444
}
4545
],
46-
"results": [
47-
{
48-
"type": 4
49-
}
50-
]
46+
"result": 4
5147
}
5248
},
5349
"package": 0

testdata/codegen/flags.wit.json

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@
4141
"type": 0
4242
}
4343
],
44-
"results": [
45-
{
46-
"type": 0
47-
}
48-
]
44+
"result": 0
4945
},
5046
"roundtrip-flag2": {
5147
"name": "roundtrip-flag2",
@@ -56,11 +52,7 @@
5652
"type": 1
5753
}
5854
],
59-
"results": [
60-
{
61-
"type": 1
62-
}
63-
]
55+
"result": 1
6456
},
6557
"roundtrip-flag4": {
6658
"name": "roundtrip-flag4",
@@ -71,11 +63,7 @@
7163
"type": 2
7264
}
7365
],
74-
"results": [
75-
{
76-
"type": 2
77-
}
78-
]
66+
"result": 2
7967
},
8068
"roundtrip-flag8": {
8169
"name": "roundtrip-flag8",
@@ -86,11 +74,7 @@
8674
"type": 3
8775
}
8876
],
89-
"results": [
90-
{
91-
"type": 3
92-
}
93-
]
77+
"result": 3
9478
},
9579
"roundtrip-flag16": {
9680
"name": "roundtrip-flag16",
@@ -101,11 +85,7 @@
10185
"type": 4
10286
}
10387
],
104-
"results": [
105-
{
106-
"type": 4
107-
}
108-
]
88+
"result": 4
10989
},
11090
"roundtrip-flag32": {
11191
"name": "roundtrip-flag32",
@@ -116,11 +96,7 @@
11696
"type": 5
11797
}
11898
],
119-
"results": [
120-
{
121-
"type": 5
122-
}
123-
]
99+
"result": 5
124100
}
125101
},
126102
"package": 0

testdata/codegen/floats.wit.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"name": "x",
3333
"type": "f32"
3434
}
35-
],
36-
"results": []
35+
]
3736
},
3837
"f64-param": {
3938
"name": "f64-param",
@@ -43,28 +42,19 @@
4342
"name": "x",
4443
"type": "f64"
4544
}
46-
],
47-
"results": []
45+
]
4846
},
4947
"f32-result": {
5048
"name": "f32-result",
5149
"kind": "freestanding",
5250
"params": [],
53-
"results": [
54-
{
55-
"type": "f32"
56-
}
57-
]
51+
"result": "f32"
5852
},
5953
"f64-result": {
6054
"name": "f64-result",
6155
"kind": "freestanding",
6256
"params": [],
63-
"results": [
64-
{
65-
"type": "f64"
66-
}
67-
]
57+
"result": "f64"
6858
}
6959
},
7060
"package": 0

testdata/codegen/fully-qualified-java-address.wit.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"name": "baz",
2020
"type": "string"
2121
}
22-
],
23-
"results": []
22+
]
2423
}
2524
}
2625
},

0 commit comments

Comments
 (0)