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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10993059: Stop using the Hashable interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Another space removed. Created 8 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
Index: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 3775bc740d446d42d288da93064db6a366e48a8f..1e6b0afc8465da32eda153efbecf94efbde928d8 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -107,7 +107,7 @@ class ElementKind {
toString() => id;
}
-class Element implements Hashable, Spannable {
+class Element implements Spannable {
final SourceString name;
final ElementKind kind;
final Element enclosingElement;
@@ -1696,8 +1696,7 @@ class Elements {
static bool isNumberOrStringSupertype(Element element, Compiler compiler) {
LibraryElement coreLibrary = compiler.coreLibrary;
- return (element == coreLibrary.find(const SourceString('Comparable')))
- || (element == coreLibrary.find(const SourceString('Hashable')));
+ return (element == coreLibrary.find(const SourceString('Comparable')));
}
static bool isStringOnlySupertype(Element element, Compiler compiler) {
« no previous file with comments | « lib/compiler/implementation/dart_backend/placeholder_collector.dart ('k') | lib/compiler/implementation/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698