@@ -7,11 +7,10 @@ untypedMap(Map map) {
7
7
{} /*space={}*/ => 0 ,
8
8
{1 : _} /*space={1: ()}*/ => 1 ,
9
9
{1 : _, 2 : _} /*space={1: (), 2: ()}*/ => 2 ,
10
- {1 : _, 2 : _, ...} /*space={1: (), 2: (), ...}*/ => 3 ,
11
- {...} /*space={...}*/ => 4 ,
10
+ Map () /*space={...}*/ => 3 ,
12
11
};
13
12
var b = /*type=Map<dynamic, dynamic>*/ switch (map) {
14
- {...} /*space={...}*/ => 0 ,
13
+ Map () /*space={...}*/ => 0 ,
15
14
};
16
15
}
17
16
@@ -31,8 +30,8 @@ typedMap(Map<int, A> map) {
31
30
{0 : B b} /*space={0: B}*/ => 1 ,
32
31
{0 : C c} /*space={0: C}*/ => 2 ,
33
32
{0 : _, 1 : _} /*space={0: A, 1: A}*/ => 3 ,
34
- {0 : B b, ... } /*space={0: B, ...}*/ => 4 ,
35
- {0 : C c, ..._ } /*space={0: C, ...}*/ => 5 ,
33
+ {0 : B b} /*space={0: B, ...}*/ => 4 ,
34
+ {0 : C c} /*space={0: C, ...}*/ => 5 ,
36
35
};
37
36
38
37
var b = /*type=Map<int, A>*/ switch (map) {
@@ -43,17 +42,17 @@ typedMap(Map<int, A> map) {
43
42
type=Map<int, A>
44
43
*/
45
44
switch (map) {
46
- < int , B > {...} /*space=<int, B>{...}*/ => 0 ,
45
+ Map <int , B >() /*space=<int, B>{...}*/ => 0 ,
47
46
};
48
47
var d = /*type=Map<int, B>*/ switch (map) {
49
- {...} /*space={...}*/ => 0 ,
48
+ Map () /*space={...}*/ => 0 ,
50
49
{1 : _} /*
51
50
error=unreachable,
52
51
space={1: B}
53
52
*/
54
53
=>
55
54
1 ,
56
- {2 : _, ... } /*
55
+ {2 : _} /*
57
56
error=unreachable,
58
57
space={2: B, ...}
59
58
*/
@@ -64,13 +63,13 @@ typedMap(Map<int, A> map) {
64
63
65
64
exhaustiveRestOnly (Map o) {
66
65
return /*type=Map<dynamic, dynamic>*/ switch (o) {
67
- {...} /*space={...}*/ => 0 ,
66
+ Map () /*space={...}*/ => 0 ,
68
67
};
69
68
}
70
69
71
70
unreachableAfterRestOnly (Map o) {
72
71
return /*type=Map<dynamic, dynamic>*/ switch (o) {
73
- {...} /*space={...}*/ => 0 ,
72
+ Map () /*space={...}*/ => 0 ,
74
73
{0 : _} /*
75
74
error=unreachable,
76
75
space={0: ()}
@@ -82,7 +81,7 @@ unreachableAfterRestOnly(Map o) {
82
81
83
82
unreachableAfterRestOnlyTyped (Map o) {
84
83
return /*type=Map<dynamic, dynamic>*/ switch (o) {
85
- {...} /*space={...}*/ => 0 ,
84
+ Map () /*space={...}*/ => 0 ,
86
85
< int , String > {
87
86
0 : _
88
87
} /*
@@ -96,7 +95,7 @@ unreachableAfterRestOnlyTyped(Map o) {
96
95
97
96
unreachableAfterRestOnlyEmpty (Map o) {
98
97
return /*type=Map<dynamic, dynamic>*/ switch (o) {
99
- {...} /*space={...}*/ => 0 ,
98
+ Map () /*space={...}*/ => 0 ,
100
99
{} /*
101
100
error=unreachable,
102
101
space={}
@@ -108,14 +107,14 @@ unreachableAfterRestOnlyEmpty(Map o) {
108
107
109
108
unreachableAfterRestSameKeys (Map o) {
110
109
return /*type=Map<dynamic, dynamic>*/ switch (o) {
111
- {0 : _, ... } /*space={0: (), ...}*/ => 0 ,
110
+ {0 : _} /*space={0: (), ...}*/ => 0 ,
112
111
{0 : _} /*
113
112
error=unreachable,
114
113
space={0: ()}
115
114
*/
116
115
=>
117
116
1 ,
118
- {...} /*space={...}*/ => 2 ,
117
+ Map () /*space={...}*/ => 2 ,
119
118
};
120
119
}
121
120
@@ -125,7 +124,7 @@ nonExhaustiveAfterRestSameKeys(Map o) {
125
124
type=Map<dynamic, dynamic>
126
125
*/
127
126
switch (o) {
128
- {0 : _, ... } /*space={0: (), ...}*/ => 0 ,
127
+ {0 : _} /*space={0: (), ...}*/ => 0 ,
129
128
{0 : _} /*
130
129
error=unreachable,
131
130
space={0: ()}
@@ -137,7 +136,7 @@ nonExhaustiveAfterRestSameKeys(Map o) {
137
136
138
137
unreachableAfterRestMoreKeys (Map o) {
139
138
return /*type=Map<dynamic, dynamic>*/ switch (o) {
140
- {0 : _, ... } /*space={0: (), ...}*/ => 0 ,
139
+ {0 : _} /*space={0: (), ...}*/ => 0 ,
141
140
{
142
141
0 : _,
143
142
1 : _
@@ -147,7 +146,7 @@ unreachableAfterRestMoreKeys(Map o) {
147
146
*/
148
147
=>
149
148
1 ,
150
- {...} /*space={...}*/ => 2 ,
149
+ Map () /*space={...}*/ => 2 ,
151
150
};
152
151
}
153
152
@@ -157,7 +156,7 @@ nonExhaustiveAfterRestMoreKeys(Map o) {
157
156
type=Map<dynamic, dynamic>
158
157
*/
159
158
switch (o) {
160
- {0 : _, ... } /*space={0: (), ...}*/ => 0 ,
159
+ {0 : _} /*space={0: (), ...}*/ => 0 ,
161
160
{0 : _, 1 : _} /*
162
161
error=unreachable,
163
162
space={0: (), 1: ()}
@@ -176,7 +175,7 @@ unreachableAfterSameKeys(Map o) {
176
175
*/
177
176
=>
178
177
1 ,
179
- {...} /*space={...}*/ => 2 ,
178
+ Map () /*space={...}*/ => 2 ,
180
179
};
181
180
}
182
181
@@ -200,7 +199,7 @@ reachableAfterRestOnlyDifferentTypes(Map o) {
200
199
return /*type=Map<dynamic, dynamic>*/ switch (o) {
201
200
< int , String > {...} /*space=<int, String>{...}*/ => 0 ,
202
201
< int , bool > {0 : _} /*space=<int, bool>{0: bool}*/ => 1 ,
203
- {...} /*space={...}*/ => 2 ,
202
+ Map () /*space={...}*/ => 2 ,
204
203
};
205
204
}
206
205
@@ -210,7 +209,7 @@ nonExhaustiveAfterRestOnlyDifferentTypes(Map o) {
210
209
type=Map<dynamic, dynamic>
211
210
*/
212
211
switch (o) {
213
- < int , String > {...} /*space=<int, String>{...}*/ => 0 ,
212
+ Map <int , String >() /*space=<int, String>{...}*/ => 0 ,
214
213
< int , bool > {0 : _} /*space=<int, bool>{0: bool}*/ => 1 ,
215
214
};
216
215
}
@@ -219,7 +218,7 @@ reachableAfterRestOnlyEmptyDifferentTypes(Map o) {
219
218
return /*type=Map<dynamic, dynamic>*/ switch (o) {
220
219
< int , String > {...} /*space=<int, String>{...}*/ => 0 ,
221
220
< int , bool > {} /*space=<int, bool>{}*/ => 1 ,
222
- {...} /*space={...}*/ => 2 ,
221
+ Map () /*space={...}*/ => 2 ,
223
222
};
224
223
}
225
224
@@ -229,32 +228,32 @@ nonExhaustiveAfterRestOnlyEmptyDifferentTypes(Map o) {
229
228
type=Map<dynamic, dynamic>
230
229
*/
231
230
switch (o) {
232
- < int , String > {...} /*space=<int, String>{...}*/ => 0 ,
231
+ Map <int , String >() /*space=<int, String>{...}*/ => 0 ,
233
232
< int , bool > {} /*space=<int, bool>{}*/ => 1 ,
234
233
};
235
234
}
236
235
237
236
reachableAfterRestDifferentTypes (Map o) {
238
237
return /*type=Map<dynamic, dynamic>*/ switch (o) {
239
- < int , String > {0 : _, ... } /*space=<int, String>{0: String, ...}*/ => 0 ,
238
+ < int , String > {0 : _} /*space=<int, String>{0: String, ...}*/ => 0 ,
240
239
< int , bool > {0 : _} /*space=<int, bool>{0: bool}*/ => 1 ,
241
- {...} /*space={...}*/ => 2 ,
240
+ Map () /*space={...}*/ => 2 ,
242
241
};
243
242
}
244
243
245
244
nonExhaustiveAfterRestDifferentTypes (Map o) {
246
245
return /*type=Map<dynamic, dynamic>*/ switch (o) {
247
- < int , String > {0 : _, ... } /*space=<int, String>{0: String, ...}*/ => 0 ,
246
+ < int , String > {0 : _} /*space=<int, String>{0: String, ...}*/ => 0 ,
248
247
< int , bool > {0 : _} /*space=<int, bool>{0: bool}*/ => 1 ,
249
- {...} /*space={...}*/ => 2 ,
248
+ Map () /*space={...}*/ => 2 ,
250
249
};
251
250
}
252
251
253
252
reachableAfterRestDifferentKeys (Map o) {
254
253
return /*type=Map<dynamic, dynamic>*/ switch (o) {
255
- {0 : _, ... } /*space={0: (), ...}*/ => 0 ,
254
+ {0 : _} /*space={0: (), ...}*/ => 0 ,
256
255
{1 : _} /*space={1: ()}*/ => 1 ,
257
- {...} /*space={...}*/ => 2 ,
256
+ Map () /*space={...}*/ => 2 ,
258
257
};
259
258
}
260
259
@@ -264,7 +263,7 @@ nonExhaustiveAfterRestDifferentKeys(Map o) {
264
263
type=Map<dynamic, dynamic>
265
264
*/
266
265
switch (o) {
267
- {0 : _, ... } /*space={0: (), ...}*/ => 0 ,
266
+ {0 : _} /*space={0: (), ...}*/ => 0 ,
268
267
{1 : _} /*space={1: ()}*/ => 1 ,
269
268
};
270
269
}
@@ -273,7 +272,7 @@ reachableAfterDifferentKeys(Map o) {
273
272
return /*type=Map<dynamic, dynamic>*/ switch (o) {
274
273
{0 : _} /*space={0: ()}*/ => 0 ,
275
274
{1 : _} /*space={1: ()}*/ => 1 ,
276
- {...} /*space={...}*/ => 2 ,
275
+ Map () /*space={...}*/ => 2 ,
277
276
};
278
277
}
279
278
@@ -292,7 +291,7 @@ reachableAfterDifferentTypes(Map o) {
292
291
return /*type=Map<dynamic, dynamic>*/ switch (o) {
293
292
< int , String > {0 : _} /*space=<int, String>{0: String}*/ => 0 ,
294
293
< int , bool > {0 : _} /*space=<int, bool>{0: bool}*/ => 1 ,
295
- {...} /*space={...}*/ => 2 ,
294
+ Map () /*space={...}*/ => 2 ,
296
295
};
297
296
}
298
297
0 commit comments