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

Unified Diff: pkg/compiler/lib/src/dart_types.dart

Issue 2113653003: Support enabling type checker. (Closed) Base URL: sso://user/ahe/dart-sdk@super_mixins
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_types.dart
diff --git a/pkg/compiler/lib/src/dart_types.dart b/pkg/compiler/lib/src/dart_types.dart
index 41ce1e548b7ad659bd26a6e11651d39323e56bae..098b5603e074510952f04ede62300df2812ce69c 100644
--- a/pkg/compiler/lib/src/dart_types.dart
+++ b/pkg/compiler/lib/src/dart_types.dart
@@ -233,6 +233,10 @@ class TypeVariableType extends DartType {
}
String toString() => name;
+
+ // TODO(ahe): Remove this method. It's a hack to work around problems when
+ // copying down methods in mixin applications.
+ bool get treatAsDynamic => element.enclosingElement.isMixinApplication;
}
/// Internal type representing the result of analyzing a statement.
@@ -511,6 +515,10 @@ class InterfaceType extends GenericType {
FunctionType type = element.callType;
return type != null && isGeneric ? type.substByContext(this) : type;
}
+
+ // TODO(ahe): Remove this method. It's a hack to work around problems when
+ // copying down methods in mixin applications.
+ bool get treatAsDynamic => element.isMixinApplication;
}
/**
« no previous file with comments | « no previous file | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698