Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(929)

Unified Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 1153503005: Make analyzer DDC warning clean. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index 76846487fcb8765e9188de1befc562f3997edf39..f7b2c0b53985201d2fa90b4dcc2f542036ed8727 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -6511,15 +6511,15 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
withDynamic, visitedElements)) {
return true;
}
- for (InterfaceTypeImpl interfaceType in interfaces) {
- if (interfaceType.isMoreSpecificThan(type, thisExpansions,
- typeExpansions, withDynamic, visitedElements)) {
+ for (InterfaceType interfaceType in interfaces) {
+ if ((interfaceType as InterfaceTypeImpl).isMoreSpecificThan(type,
+ thisExpansions, typeExpansions, withDynamic, visitedElements)) {
return true;
}
}
- for (InterfaceTypeImpl mixinType in mixins) {
- if (mixinType.isMoreSpecificThan(type, thisExpansions, typeExpansions,
- withDynamic, visitedElements)) {
+ for (InterfaceType mixinType in mixins) {
+ if ((mixinType as InterfaceTypeImpl).isMoreSpecificThan(type,
+ thisExpansions, typeExpansions, withDynamic, visitedElements)) {
return true;
}
}
@@ -9721,12 +9721,12 @@ abstract class TypeImpl implements DartType {
* use these as sets of function type aliases that don't need to be expanded.
*/
@override
- bool isAssignableTo(TypeImpl type,
+ bool isAssignableTo(DartType type,
[Set<Element> thisExpansions, Set<Element> typeExpansions]) {
// An interface type T may be assigned to a type S, written T <=> S, iff
// either T <: S or S <: T.
return isSubtypeOf(type, thisExpansions, typeExpansions) ||
- type.isSubtypeOf(this, typeExpansions, thisExpansions);
+ (type as TypeImpl).isSubtypeOf(this, typeExpansions, thisExpansions);
}
/**

Powered by Google App Engine
This is Rietveld 408576698