Commit bdf8c21
[analyzer] Use Impl types in TypeProviderImpl.
Change the methods in `TypeProviderImpl` so that their return types
are all "Impl" types rather than analyzer public API types.
This doesn't change the analyzer public API; it simply ensures that
clients of `TypeProviderImpl` within the analyzer itself won't have to
perform typecasts on the returned values in order to access the Impl
classes.
This is part of a larger arc of work to change the analyzer's use of
the shared code so that the type parameters it supplies are not part
of the analyzer public API (See
#59763). This change will
reduce the number of type casts that have to be done in order to pass
`TypeImpl` types to shared code rather than `DartType` types.
Change-Id: Ia351c3e8893cf10671b04b813ee80ff2b3bda341
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/402621
Commit-Queue: Paul Berry <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>1 parent adcc212 commit bdf8c21
File tree
4 files changed
+154
-159
lines changed- pkg/analyzer/lib/src
- dart/element
- generated/testing
4 files changed
+154
-159
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
1194 | | - | |
| 1194 | + | |
1195 | 1195 | | |
1196 | 1196 | | |
1197 | 1197 | | |
| |||
5900 | 5900 | | |
5901 | 5901 | | |
5902 | 5902 | | |
5903 | | - | |
| 5903 | + | |
5904 | 5904 | | |
5905 | 5905 | | |
5906 | 5906 | | |
5907 | | - | |
| 5907 | + | |
5908 | 5908 | | |
5909 | 5909 | | |
5910 | 5910 | | |
| |||
6077 | 6077 | | |
6078 | 6078 | | |
6079 | 6079 | | |
6080 | | - | |
| 6080 | + | |
6081 | 6081 | | |
6082 | 6082 | | |
6083 | 6083 | | |
| |||
7090 | 7090 | | |
7091 | 7091 | | |
7092 | 7092 | | |
7093 | | - | |
| 7093 | + | |
7094 | 7094 | | |
7095 | 7095 | | |
7096 | 7096 | | |
| |||
0 commit comments