Commit 871bdee
authored
Merge pull request microsoft#31480 from andrewbranch/bug/25487
Fix invalid JSXExpressions having identifier-ish things in their trivia, improve error messages for comma expressions in JSX17 files changed
+111-47Lines changed: 111 additions & 47 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
- compiler
- harness
- tests
- baselines/reference
- cases/fourslash
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20033 | 20033 | |
20034 | 20034 | |
20035 | 20035 | |
| 20036 | + |
20036 | 20037 | |
20037 | 20038 | |
20038 | 20039 | |
| ||
31912 | 31913 | |
31913 | 31914 | |
31914 | 31915 | |
| 31916 | + |
| 31917 | + |
| 31918 | + |
| 31919 | + |
| 31920 | + |
| 31921 | + |
31915 | 31922 | |
31916 | 31923 | |
31917 | 31924 | |
|
Collapse file
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5009 | 5009 | |
5010 | 5010 | |
5011 | 5011 | |
| 5012 | + |
| 5013 | + |
| 5014 | + |
| 5015 | + |
5012 | 5016 | |
5013 | 5017 | |
Collapse file
+7-3Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4430 | 4430 | |
4431 | 4431 | |
4432 | 4432 | |
4433 | | - |
| 4433 | + |
| 4434 | + |
| 4435 | + |
| 4436 | + |
4434 | 4437 | |
4435 | 4438 | |
4436 | 4439 | |
4437 | 4440 | |
4438 | 4441 | |
4439 | | - |
4440 | | - |
| 4442 | + |
| 4443 | + |
| 4444 | + |
4441 | 4445 | |
4442 | 4446 | |
4443 | 4447 | |
|
Collapse file
+19Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
583 | 583 | |
584 | 584 | |
585 | 585 | |
| 586 | + |
| 587 | + |
| 588 | + |
| 589 | + |
| 590 | + |
| 591 | + |
| 592 | + |
| 593 | + |
| 594 | + |
| 595 | + |
| 596 | + |
| 597 | + |
| 598 | + |
| 599 | + |
| 600 | + |
586 | 601 | |
587 | 602 | |
588 | 603 | |
| ||
4009 | 4024 | |
4010 | 4025 | |
4011 | 4026 | |
| 4027 | + |
| 4028 | + |
| 4029 | + |
| 4030 | + |
4012 | 4031 | |
4013 | 4032 | |
4014 | 4033 | |
|
Collapse file
tests/baselines/reference/jsxAndTypeAssertion.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/jsxAndTypeAssertion.js+7-4Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | | - |
| 31 | + |
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
| 35 | + |
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | | - |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
Collapse file
tests/baselines/reference/jsxInvalidEsprimaTestSuite.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/jsxInvalidEsprimaTestSuite.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
123 | 123 | |
124 | 124 | |
125 | 125 | |
126 | | - |
| 126 | + |
127 | 127 | |
128 | 128 | |
129 | 129 | |
|
Collapse file
tests/baselines/reference/jsxParsingError1.errors.txt
Copy file name to clipboard+7-10Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | | - |
| 1 | + |
| 2 | + |
4 | 3 | |
5 | 4 | |
6 | | - |
| 5 | + |
7 | 6 | |
8 | 7 | |
9 | 8 | |
| ||
15 | 14 | |
16 | 15 | |
17 | 16 | |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
24 | 21 | |
Collapse file
tests/baselines/reference/jsxParsingError1.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/jsxParsingError1.js+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
20 | | - |
| 19 | + |
Collapse file
tests/baselines/reference/jsxParsingError1.symbols
Copy file name to clipboardExpand all lines: tests/baselines/reference/jsxParsingError1.symbols+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
29 | 29 | |
Collapse file
tests/baselines/reference/jsxParsingError1.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/jsxParsingError1.types+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
| 21 | + |
22 | 22 | |
23 | 23 | |
| 24 | + |
24 | 25 | |
25 | | - |
26 | | - |
| 26 | + |
27 | 27 | |
0 commit comments