Commit f9481e1
DAS: Remove unnecessary getNodeAtOffset helper
There are only two callers, and they each have enough information at
hand to carry out this simple computation themselves.
In particular, getElementAtOffset does not need to reach out to the
driver twice, to get *Result objects for the same file.
Change-Id: Ia5fd1e3045bad4d9aa64a7011a3a5c90db0c305d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423170
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Samuel Rawlins <[email protected]>1 parent b40c308 commit f9481e1
File tree
2 files changed
+10
-26
lines changed- pkg/analysis_server/lib/src
- lsp/handlers
2 files changed
+10
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
659 | 653 | | |
| 654 | + | |
660 | 655 | | |
661 | | - | |
| 656 | + | |
662 | 657 | | |
663 | 658 | | |
664 | 659 | | |
665 | 660 | | |
666 | 661 | | |
667 | 662 | | |
668 | 663 | | |
669 | | - | |
670 | | - | |
| 664 | + | |
| 665 | + | |
671 | 666 | | |
672 | 667 | | |
673 | 668 | | |
| |||
733 | 728 | | |
734 | 729 | | |
735 | 730 | | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | 731 | | |
749 | 732 | | |
750 | 733 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments