Commit f11bd03
[analyzer] Update ElementLocator2 to handle both local + top level functions
I previously fixed this for variables, but functions are the same and can have elements but no fragments too.
Change-Id: Ia1349cd1aca058da1155d7c867b5dc4384e3050f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/391603
Reviewed-by: Brian Wilkerson <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Brian Wilkerson <[email protected]>1 parent 06756f1 commit f11bd03
File tree
2 files changed
+13
-2
lines changed- pkg/analyzer
- lib/src/dart/ast
- test/src/dart/ast
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
590 | 601 | | |
591 | 602 | | |
592 | 603 | | |
| |||
0 commit comments