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

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

Issue 2850143002: Reuse RuntimeTypesNeedBuilderImpl and _RuntimeTypesNeed for kernel based elements (Closed)
Patch Set: Fix comment 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
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 e113ed2d908b37c0f38595b9b7f5d2a3076358cd..18557548b33e03285e38762a37c8cb52a0a0805b 100644
--- a/pkg/compiler/lib/src/common_elements.dart
+++ b/pkg/compiler/lib/src/common_elements.dart
@@ -1183,7 +1183,7 @@ abstract class ElementEnvironment {
void forEachClassMember(
ClassEntity cls, void f(ClassEntity declarer, MemberEntity member));
- /// Returns the declared superclass of [cls].
+ /// Returns the superclass of [cls].
///
/// Unnamed mixin applications are included, for instance for these classes
///
@@ -1218,6 +1218,9 @@ abstract class ElementEnvironment {
/// where the type arguments are the type variables of [cls].
InterfaceType getThisType(ClassEntity cls);
+ /// Returns `true` if [cls] is generic.
+ bool isGenericClass(ClassEntity cls);
+
/// The upper bound on the [typeVariable]. If not explicitly declared, this is
/// `Object`.
DartType getTypeVariableBound(TypeVariableEntity typeVariable);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/resolution_types.dart » ('j') | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698