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

Unified Diff: pkg/analyzer/lib/dart/element/type.dart

Issue 2375103004: fix #27210, remove TypeParameterMember equality (Closed)
Patch Set: fix bound check to use == Created 4 years, 3 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/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/dart/element/type.dart
diff --git a/pkg/analyzer/lib/dart/element/type.dart b/pkg/analyzer/lib/dart/element/type.dart
index 11c97e8d03b784a0c03045c0ff679983a79eb839..b6923a0fb659c86e39fd80f2caf7b8c71661db85 100644
--- a/pkg/analyzer/lib/dart/element/type.dart
+++ b/pkg/analyzer/lib/dart/element/type.dart
@@ -700,4 +700,19 @@ abstract class TypeParameterType implements DartType {
@override
TypeParameterElement get element;
+
+ /**
+ * Return the type representing the bound associated with this parameter,
+ * or `dynamic` if there was no explicit bound.
+ */
+ DartType get bound;
+
+ /**
+ * An object that can be used to identify this type parameter with `==`.
+ *
+ * Depending on the use, [bound] may also need to be taken into account.
+ * A given type parameter, it may have different bounds in different scopes.
+ * Always consult the bound if that could be relevant.
+ */
+ ElementLocation get definition;
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698