Commit 9b71817
[analysis_server] Fix duplicate reporting of some LSP type parsing errors
Parse errors for spec types were being reported twice - once by the containing object (in canParse()), and once by the nested canParse() call for the nested type.
This skips reporting the error for nested calls to a canParse() method, which will always report the error itself.
Change-Id: I03e4a9638fd6a3fc77eac918f6fd16def93327d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404105
Reviewed-by: Samuel Rawlins <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>1 parent c36dac8 commit 9b71817
File tree
4 files changed
+24
-215
lines changed- pkg/analysis_server
- test/tool/lsp_spec
- tool/lsp_spec
- third_party/pkg/language_server_protocol/lib
4 files changed
+24
-215
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
301 | 315 | | |
302 | 316 | | |
303 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
518 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
519 | 526 | | |
520 | 527 | | |
521 | 528 | | |
| |||
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| |||
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | | - | |
132 | 129 | | |
133 | 130 | | |
134 | 131 | | |
| |||
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
157 | | - | |
158 | 154 | | |
159 | 155 | | |
160 | 156 | | |
| |||
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
183 | | - | |
184 | 179 | | |
185 | 180 | | |
186 | 181 | | |
| |||
501 | 496 | | |
502 | 497 | | |
503 | 498 | | |
504 | | - | |
505 | 499 | | |
506 | 500 | | |
507 | 501 | | |
| |||
526 | 520 | | |
527 | 521 | | |
528 | 522 | | |
529 | | - | |
530 | 523 | | |
531 | 524 | | |
532 | 525 | | |
| |||
551 | 544 | | |
552 | 545 | | |
553 | 546 | | |
554 | | - | |
555 | 547 | | |
556 | 548 | | |
557 | 549 | | |
| |||
576 | 568 | | |
577 | 569 | | |
578 | 570 | | |
579 | | - | |
580 | 571 | | |
581 | 572 | | |
582 | 573 | | |
| |||
602 | 593 | | |
603 | 594 | | |
604 | 595 | | |
605 | | - | |
606 | 596 | | |
607 | 597 | | |
608 | 598 | | |
| |||
653 | 643 | | |
654 | 644 | | |
655 | 645 | | |
656 | | - | |
657 | 646 | | |
658 | 647 | | |
659 | 648 | | |
| |||
679 | 668 | | |
680 | 669 | | |
681 | 670 | | |
682 | | - | |
683 | 671 | | |
684 | 672 | | |
685 | 673 | | |
| |||
0 commit comments