-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] Refine type of
InterfaceTypeImpl.element
The type of `InterfaceTypeImpl.element` is changed from `InterfaceElement` to `InterfaceElementImpl`. This allows eliminating casts from a number of call sites, at the expense of adding a single cast to the `InterfaceTypeImpl` constructor. This cast is safe because all concrete implementations of `InterfaceElement` are subtypes of `InterfaceElementImpl`. 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. Change-Id: I5d0ffa3b14788965589a57a3c061acac2f3c6930 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403942 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Paul Berry <[email protected]>
- Loading branch information
1 parent
bdf8c21
commit 7d8c34c
Showing
2 changed files
with
7 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters