Commit aaba96a
[analyzer] getLibraryByUri returns early again
Back in 2023 an early return was added to `getLibraryByUri`
(https://dart-review.googlesource.com/c/sdk/+/304540).
This was then migrated in January
(https://dart-review.googlesource.com/c/sdk/+/403705), which
unfortunately left the early return in a non-working state.
This CL sets libraryElement on `Reference.element2` too, which makes
the early return in `getLibraryByUri` work again and adds a test so
any future regression will hopefully be caught sooner.
On most of the getFixes requests I test in http://b/407797012 this
seems to be a 2x-3x improvement.
Change-Id: I91f2122b9ade101df78428ddb3ed5c64ad29134f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/421220
Commit-Queue: Jens Johansen <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>1 parent 50a3bf6 commit aaba96a
File tree
3 files changed
+47
-0
lines changed- pkg/analyzer
- lib/src/summary2
- test/src/dart/analysis
3 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
809 | 810 | | |
810 | 811 | | |
811 | 812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1950 | 1950 | | |
1951 | 1951 | | |
1952 | 1952 | | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
1953 | 1998 | | |
1954 | 1999 | | |
1955 | 2000 | | |
| |||
0 commit comments