13
}
14
}
15
16
- const g = { ...a, b() {}, c: () => {} };
17
- const h = [...b];
16
+ const g = { b() {}, c: () => {} };
17
new c(...args);
18
c(...args);
20
- const [y, ...yy] = useState(0);
21
- const { z, aa = "aa", ...zz } = useCustom();
19
+ const { z, aa = "aa" } = useCustom();
20
23
- <Button {...args}></Button>;
21
<Button xlink:href="localhost:3000"></Button>;
22
<Button haha={1}></Button>;
23
<Button>{/** empty */}</Button>;
123
7 | constructor() {
124
8 | console.log(this.#secretSauce);
125
129
-[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle SpreadElement properties in ObjectExpression
130
- 10 | }
131
- 11 |
132
-> 12 | const g = { ...a, b() {}, c: () => {} };
133
- | ^^^^
134
- 13 | const h = [...b];
135
- 14 | new c(...args);
136
- 15 | c(...args);
137
-
126
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle ObjectMethod properties in ObjectExpression
127
10 | }
128
11 |
141
-> 12 | const g = { ...a, b() {}, c: () => {} };
142
- | ^^^^^^
143
- 13 | const h = [...b];
144
- 14 | new c(...args);
145
- 15 | c(...args);
146
-
147
-[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle SpreadElement elements in ArrayExpression
148
- 11 |
149
- 12 | const g = { ...a, b() {}, c: () => {} };
150
-> 13 | const h = [...b];
151
- | ^^^^
152
- 14 | new c(...args);
153
- 15 | c(...args);
154
- 16 | const [y, ...yy] = useState(0);
129
+> 12 | const g = { b() {}, c: () => {} };
130
+ | ^^^^^^
131
+ 13 | new c(...args);
132
+ 14 | c(...args);
133
+ 15 | const { z, aa = "aa" } = useCustom();
134
135
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle SpreadElement arguments in NewExpression
157
- 12 | const g = { ...a, b() {}, c: () => {} };
158
- 13 | const h = [...b];
159
-> 14 | new c(...args);
136
+ 11 |
137
+ 12 | const g = { b() {}, c: () => {} };
138
+> 13 | new c(...args);
139
| ^^^^^^^
161
- 15 | c(...args);
162
- 16 | const [y, ...yy] = useState(0);
163
- 17 | const { z, aa = "aa", ...zz } = useCustom();
140
+ 14 | c(...args);
141
+ 15 | const { z, aa = "aa" } = useCustom();
142
+ 16 |
143
144
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle SpreadElement arguments in CallExpression
166
- 13 | const h = [...b];
167
- 14 | new c(...args);
168
-> 15 | c(...args);
145
+ 12 | const g = { b() {}, c: () => {} };
146
+ 13 | new c(...args);
147
+> 14 | c(...args);
148
| ^^^^^^^
170
- 16 | const [y, ...yy] = useState(0);
171
- 17 | const { z, aa = "aa", ...zz } = useCustom();
172
- 18 |
173
-
174
-[ReactForget] TodoError: (BuildHIR::lowerAssignment) Handle RestElement in ArrayPattern
175
- 14 | new c(...args);
176
- 15 | c(...args);
177
-> 16 | const [y, ...yy] = useState(0);
178
- | ^^^^^
179
- 17 | const { z, aa = "aa", ...zz } = useCustom();
180
- 18 |
181
- 19 | <Button {...args}></Button>;
149
+ 15 | const { z, aa = "aa" } = useCustom();
150
+ 16 |
151
+ 17 | <Button xlink:href="localhost:3000"></Button>;
152
153
[ReactForget] TodoError: (BuildHIR::lowerAssignment) Handle AssignmentPattern assignments
184
- 15 | c(...args);
185
- 16 | const [y, ...yy] = useState(0);
186
-> 17 | const { z, aa = "aa", ...zz } = useCustom();
154
+ 13 | new c(...args);
155
+ 14 | c(...args);
156
+> 15 | const { z, aa = "aa" } = useCustom();
157
| ^^^^^^^^^
188
- 18 |
189
- 19 | <Button {...args}></Button>;
190
- 20 | <Button xlink:href="localhost:3000"></Button>;
191
-
192
-[ReactForget] TodoError: (BuildHIR::lowerAssignment) Handle RestElement properties in ObjectPattern
193
- 15 | c(...args);
194
- 16 | const [y, ...yy] = useState(0);
195
-> 17 | const { z, aa = "aa", ...zz } = useCustom();
196
- | ^^^^^
197
- 18 |
198
- 19 | <Button {...args}></Button>;
199
- 20 | <Button xlink:href="localhost:3000"></Button>;
158
+ 16 |
159
+ 17 | <Button xlink:href="localhost:3000"></Button>;
160
+ 18 | <Button haha={1}></Button>;
161
162
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle JSXNamespacedName attribute names in JSXElement
202
- 18 |
203
- 19 | <Button {...args}></Button>;
204
-> 20 | <Button xlink:href="localhost:3000"></Button>;
163
+ 15 | const { z, aa = "aa" } = useCustom();
164
+ 16 |
165
+> 17 | <Button xlink:href="localhost:3000"></Button>;
166
| ^^^^^^^^^^
206
- 21 | <Button haha={1}></Button>;
207
- 22 | <Button>{/** empty */}</Button>;
208
- 23 | <DesignSystem.Button />;
167
+ 18 | <Button haha={1}></Button>;
168
+ 19 | <Button>{/** empty */}</Button>;
169
+ 20 | <DesignSystem.Button />;
170
171
[ReactForget] TodoError: (BuildHIR::lowerJsxElement) Handle JSXEmptyExpression expressions
211
- 20 | <Button xlink:href="localhost:3000"></Button>;
212
- 21 | <Button haha={1}></Button>;
213
-> 22 | <Button>{/** empty */}</Button>;
172
+ 17 | <Button xlink:href="localhost:3000"></Button>;
173
+ 18 | <Button haha={1}></Button>;
174
+> 19 | <Button>{/** empty */}</Button>;
175
| ^^^^^^^^^^^^
215
- 23 | <DesignSystem.Button />;
216
- 24 |
217
- 25 | const j = function bar([quz, qux], ...args) {};
176
+ 20 | <DesignSystem.Button />;
177
+ 21 |
178
+ 22 | const j = function bar([quz, qux], ...args) {};
179
180
[ReactForget] TodoError: (BuildHIR::lowerJsxElementName) Handle JSXMemberExpression tags
220
- 21 | <Button haha={1}></Button>;
221
- 22 | <Button>{/** empty */}</Button>;
222
-> 23 | <DesignSystem.Button />;
181
+ 18 | <Button haha={1}></Button>;
182
+ 19 | <Button>{/** empty */}</Button>;
183
+> 20 | <DesignSystem.Button />;
184
| ^^^^^^^^^^^^^^^^^^^
224
- 24 |
225
- 25 | const j = function bar([quz, qux], ...args) {};
226
- 26 |
185
+ 21 |
186
+ 22 | const j = function bar([quz, qux], ...args) {};
187
+ 23 |
188
189
[ReactForget] TodoError: (BuildHIR::lower) Handle ArrayPattern params
229
- 23 | <DesignSystem.Button />;
230
- 24 |
231
-> 25 | const j = function bar([quz, qux], ...args) {};
190
+ 20 | <DesignSystem.Button />;
191
+ 21 |
192
+> 22 | const j = function bar([quz, qux], ...args) {};
193
| ^^^^^^^^^^
233
- 26 |
234
- 27 | for (; i < 3; i += 1) {
235
- 28 | x.push(i);
194
+ 23 |
195
+ 24 | for (; i < 3; i += 1) {
196
+ 25 | x.push(i);
197
198
[ReactForget] TodoError: (BuildHIR::lower) Handle RestElement params
238
- 23 | <DesignSystem.Button />;
239
- 24 |
240
-> 25 | const j = function bar([quz, qux], ...args) {};
199
+ 20 | <DesignSystem.Button />;
200
+ 21 |
201
+> 22 | const j = function bar([quz, qux], ...args) {};
202
| ^^^^^^^
242
- 26 |
243
- 27 | for (; i < 3; i += 1) {
244
- 28 | x.push(i);
203
+ 23 |
204
+ 24 | for (; i < 3; i += 1) {
205
+ 25 | x.push(i);
206
207
[ReactForget] TodoError: (BuildHIR::lowerStatement) Handle non-variable initialization in ForStatement
247
- 25 | const j = function bar([quz, qux], ...args) {};
248
- 26 |
249
-> 27 | for (; i < 3; i += 1) {
208
+ 22 | const j = function bar([quz, qux], ...args) {};
209
+ 23 |
210
+> 24 | for (; i < 3; i += 1) {
211
| ^
251
- 28 | x.push(i);
252
- 29 | }
253
- 30 | for (; i < 3; ) {
212
+ 25 | x.push(i);
213
+ 26 | }
214
+ 27 | for (; i < 3; ) {
215
216
[ReactForget] TodoError: (BuildHIR::lowerStatement) Handle non-variable initialization in ForStatement
256
- 28 | x.push(i);
257
- 29 | }
258
-> 30 | for (; i < 3; ) {
217
+ 25 | x.push(i);
218
+ 26 | }
219
+> 27 | for (; i < 3; ) {
220
| ^
260
- 31 | break;
261
- 32 | }
262
- 33 | for (;;) {
221
+ 28 | break;
222
+ 29 | }
223
+ 30 | for (;;) {
224
225
[ReactForget] TodoError: (BuildHIR::lowerStatement) Handle empty update in ForStatement
265
- 28 | x.push(i);
266
- 29 | }
267
-> 30 | for (; i < 3; ) {
226
+ 25 | x.push(i);
227
+ 26 | }
228
+> 27 | for (; i < 3; ) {
229
| ^
269
- 31 | break;
270
- 32 | }
271
- 33 | for (;;) {
230
+ 28 | break;
231
+ 29 | }
232
+ 30 | for (;;) {
233
234
[ReactForget] TodoError: (BuildHIR::lowerStatement) Handle non-variable initialization in ForStatement
235
+ 28 | break;
236
+ 29 | }
237
+> 30 | for (;;) {
238
+ | ^
239
31 | break;
240
32 | }
276
-> 33 | for (;;) {
277
- | ^
278
- 34 | break;
279
- 35 | }
280
- 36 |
241
+ 33 |
242
243
[ReactForget] TodoError: (BuildHIR::lowerStatement) Handle empty update in ForStatement
244
+ 28 | break;
245
+ 29 | }
246
+> 30 | for (;;) {
247
+ | ^
248
31 | break;
249
32 | }
285
-> 33 | for (;;) {
286
- | ^
287
- 34 | break;
288
- 35 | }
289
- 36 |
250
+ 33 |
251
252
[ReactForget] TodoError: (BuildHIR::lowerStatement) Handle empty test in ForStatement
253
+ 28 | break;
254
+ 29 | }
255
+> 30 | for (;;) {
256
+ | ^
257
31 | break;
258
32 | }
294
-> 33 | for (;;) {
295
- | ^
296
- 34 | break;
297
- 35 | }
298
- 36 |
259
+ 33 |
260
261
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle tagged template with interpolations
301
- 35 | }
302
- 36 |
303
-> 37 | graphql`
262
+ 32 | }
263
+ 33 |
264
+> 34 | graphql`
265
| ^
305
- 38 | ${g}
306
- 39 | `;
307
- 40 |
266
+ 35 | ${g}
267
+ 36 | `;
268
+ 37 |
269
270
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle tagged template where cooked value is different from raw value
310
- 39 | `;
311
- 40 |
312
-> 41 | graphql`\\t\n`;
271
+ 36 | `;
272
+ 37 |
273
+> 38 | graphql`\\t\n`;
274
| ^^^^^^^^^^^^^^
314
- 42 |
315
- 43 | for (const c of [1, 2]) {
316
- 44 | }
275
+ 39 |
276
+ 40 | for (const c of [1, 2]) {
277
+ 41 | }
278
279
[ReactForget] TodoError: (BuildHIR::lowerStatement) Handle ForOfStatement statements
319
- 41 | graphql`\\t\n`;
320
- 42 |
321
-> 43 | for (const c of [1, 2]) {
280
+ 38 | graphql`\\t\n`;
281
+ 39 |
282
+> 40 | for (const c of [1, 2]) {
283
| ^
323
- 44 | }
324
- 45 |
325
- 46 | for (let x in { a: 1 }) {
284
+ 41 | }
285
+ 42 |
286
+ 43 | for (let x in { a: 1 }) {
287
288
[ReactForget] TodoError: (BuildHIR::lowerStatement) Handle ForInStatement statements
289
+ 41 | }
290
+ 42 |
291
+> 43 | for (let x in { a: 1 }) {
292
+ | ^
293
44 | }
294
45 |
330
-> 46 | for (let x in { a: 1 }) {
331
- | ^
332
- 47 | }
333
- 48 |
334
- 49 | let updateIdentifier = 0;
295
+ 46 | let updateIdentifier = 0;
296
297
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle prefix UpdateExpression
337
- 48 |
338
- 49 | let updateIdentifier = 0;
339
-> 50 | --updateIdentifier;
298
+ 45 |
299
+ 46 | let updateIdentifier = 0;
300
+> 47 | --updateIdentifier;
301
| ^^^^^^^^^^^^^^^^^^
341
- 51 | ++updateIdentifier;
342
- 52 | updateIdentifier.y++;
343
- 53 | updateIdentifier.y--;
302
+ 48 | ++updateIdentifier;
303
+ 49 | updateIdentifier.y++;
304
+ 50 | updateIdentifier.y--;
305
306
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle prefix UpdateExpression
346
- 49 | let updateIdentifier = 0;
347
- 50 | --updateIdentifier;
348
-> 51 | ++updateIdentifier;
307
+ 46 | let updateIdentifier = 0;
308
+ 47 | --updateIdentifier;
309
+> 48 | ++updateIdentifier;
310
| ^^^^^^^^^^^^^^^^^^
350
- 52 | updateIdentifier.y++;
351
- 53 | updateIdentifier.y--;
352
- 54 |
311
+ 49 | updateIdentifier.y++;
312
+ 50 | updateIdentifier.y--;
313
+ 51 |
314
315
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle UpdateExpression with MemberExpression argument
355
- 50 | --updateIdentifier;
356
- 51 | ++updateIdentifier;
357
-> 52 | updateIdentifier.y++;
316
+ 47 | --updateIdentifier;
317
+ 48 | ++updateIdentifier;
318
+> 49 | updateIdentifier.y++;
319
| ^^^^^^^^^^^^^^^^^^^^
359
- 53 | updateIdentifier.y--;
360
- 54 |
361
- 55 | switch (i) {
320
+ 50 | updateIdentifier.y--;
321
+ 51 |
322
+ 52 | switch (i) {
323
324
[ReactForget] TodoError: (BuildHIR::lowerExpression) Handle UpdateExpression with MemberExpression argument
364
- 51 | ++updateIdentifier;
365
- 52 | updateIdentifier.y++;
366
-> 53 | updateIdentifier.y--;
325
+ 48 | ++updateIdentifier;
326
+ 49 | updateIdentifier.y++;
327
+> 50 | updateIdentifier.y--;
328
| ^^^^^^^^^^^^^^^^^^^^
368
- 54 |
369
- 55 | switch (i) {
370
- 56 | case 1 + 1: {
329
+ 51 |
330
+ 52 | switch (i) {
331
+ 53 | case 1 + 1: {
332
333
[ReactForget] TodoError: (BuildHIR::lowerStatement) Switch case test values must be identifiers or primitives, compound values are not yet supported
373
- 58 | case foo(): {
374
- 59 | }
375
-> 60 | case x.y: {
334
+ 55 | case foo(): {
335
+ 56 | }
336
+> 57 | case x.y: {
337
| ^^^
377
- 61 | }
378
- 62 | default: {
379
- 63 | }
338
+ 58 | }
339
+ 59 | default: {
340
+ 60 | }
341
342
[ReactForget] TodoError: (BuildHIR::lowerStatement) Switch case test values must be identifiers or primitives, compound values are not yet supported
382
- 56 | case 1 + 1: {
383
- 57 | }
384
-> 58 | case foo(): {
343
+ 53 | case 1 + 1: {
344
+ 54 | }
345
+> 55 | case foo(): {
346
| ^^^^^
386
- 59 | }
387
- 60 | case x.y: {
388
- 61 | }
347
+ 56 | }
348
+ 57 | case x.y: {
349
+ 58 | }
350
351
[ReactForget] TodoError: (BuildHIR::lowerStatement) Switch case test values must be identifiers or primitives, compound values are not yet supported
391
- 54 |
392
- 55 | switch (i) {
393
-> 56 | case 1 + 1: {
352
+ 51 |
353
+ 52 | switch (i) {
354
+> 53 | case 1 + 1: {
355
| ^^^^^
395
- 57 | }
396
- 58 | case foo(): {
397
- 59 | }
356
+ 54 | }
357
+ 55 | case foo(): {
358
+ 56 | }
359
360
[ReactForget] InvalidInputError: (BuildHIR::lowerAssignment) Assigning to an identifier defined outside the function scope is not supported.
400
- 65 |
401
- 66 | // Cannot assign to globals
402
-> 67 | someUnknownGlobal = true;
361
+ 62 |
362
+ 63 | // Cannot assign to globals
363
+> 64 | someUnknownGlobal = true;
364
| ^^^^^^^^^^^^^^^^^
404
- 68 | moduleLocal = true;
405
- 69 | }
406
- 70 |
365
+ 65 | moduleLocal = true;
366
+ 66 | }
367
+ 67 |
368
369
[ReactForget] InvalidInputError: (BuildHIR::lowerAssignment) Assigning to an identifier defined outside the function scope is not supported.
409
- 66 | // Cannot assign to globals
410
- 67 | someUnknownGlobal = true;
411
-> 68 | moduleLocal = true;
370
+ 63 | // Cannot assign to globals
371
+ 64 | someUnknownGlobal = true;
372
+> 65 | moduleLocal = true;
373
| ^^^^^^^^^^^
413
- 69 | }
414
- 70 |
415
- 71 | let moduleLocal = false;
374
+ 66 | }
375
+ 67 |
376
+ 68 | let moduleLocal = false;
377
```
378
379
\ No newline at end of file