[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
https://github.com/dart-lang/sdk/issues/59763.
Change-Id: I5d0ffa3b14788965589a57a3c061acac2f3c6930
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403942
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
https://dart.googlesource.com/sdk/+/7d8c34c42532eb2b6fc3dbda221fb5cb2063b95b
diff --git a/DEPS b/DEPS
index a8e5c77..426fdbb 100644
--- a/DEPS
+++ b/DEPS
@@ -237,7 +237,7 @@
]
deps = {
- 'flutter/engine/src/flutter/third_party/dart': Var('dart_git') + '/sdk' + '@' + 'bdf8c213fe7a53987046dc2fa1d675e3b24ca9d8',
+ 'flutter/engine/src/flutter/third_party/dart': Var('dart_git') + '/sdk' + '@' + '7d8c34c42532eb2b6fc3dbda221fb5cb2063b95b',
'flutter': Var('flutter_git') + '/mirrors/flutter' + '@' + '3297454732841b1a5a25d9f35f1fd5d7a4479e12',
diff --git a/commits.json b/commits.json
index 201dcf6..4cbc70f 100644
--- a/commits.json
+++ b/commits.json
@@ -1,4 +1,4 @@
{
"flutter":"3297454732841b1a5a25d9f35f1fd5d7a4479e12",
- "flutter/engine/src/flutter/third_party/dart":"bdf8c213fe7a53987046dc2fa1d675e3b24ca9d8"
+ "flutter/engine/src/flutter/third_party/dart":"7d8c34c42532eb2b6fc3dbda221fb5cb2063b95b"
}
\ No newline at end of file