Commit 5dd0a11
committed
Avoid spurious error spans
Parser.syntaxError contains a tweak that underlines the whole span
of the current token, if it has a name. Tho make this work reliably
we need to reset the name to null when reading a new token, since not every
token sets a name.1 parent 8201ae1 commit 5dd0a11
File tree
2 files changed
+2
-1
lines changed- compiler/src/dotty/tools/dotc/parsing
- tests/neg
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
410 | 411 | | |
411 | 412 | | |
412 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments