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

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

Issue 2801873006: Use entities in TypeVariableResolutionAnalysis and TypeVariableCodegenAnalysis (Closed)
Patch Set: Created 3 years, 8 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/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common_elements.dart
diff --git a/pkg/compiler/lib/src/common_elements.dart b/pkg/compiler/lib/src/common_elements.dart
index 29a1a004e159508e5e0720b5a5f35944eb140f1e..ddc0761bea70e7acaf2ae7902ae57f6fb9d67717 100644
--- a/pkg/compiler/lib/src/common_elements.dart
+++ b/pkg/compiler/lib/src/common_elements.dart
@@ -285,6 +285,10 @@ abstract class ElementEnvironment {
/// where the type arguments are the type variables of [cls].
InterfaceType getThisType(ClassEntity cls);
+ /// The upper bound on the [typeVariable]. If not explicitly declared, this is
+ /// `Object`.
+ DartType getTypeVariableBound(TypeVariableEntity typeVariable);
+
/// Returns `true` if [a] is a subtype of [b].
bool isSubtype(DartType a, DartType b);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698