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

Unified Diff: lib/compiler/implementation/util/link_implementation.dart

Issue 10917290: DartType equals converted to operator == and tested. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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
« no previous file with comments | « lib/compiler/implementation/util/link.dart ('k') | tests/compiler/dart2js/type_equals_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/util/link_implementation.dart
diff --git a/lib/compiler/implementation/util/link_implementation.dart b/lib/compiler/implementation/util/link_implementation.dart
index 1331f2e970be92f7a10e53a726c57d57aee31f65..a1f84922f6aaabcc8a84cc7b273ba032342e4978 100644
--- a/lib/compiler/implementation/util/link_implementation.dart
+++ b/lib/compiler/implementation/util/link_implementation.dart
@@ -71,7 +71,7 @@ class LinkTail<T> implements EmptyLink<T> {
void forEach(void f(T element)) {}
- bool equals(other) {
+ bool operator ==(other) {
if (other is !Link<T>) return false;
return other.isEmpty();
}
@@ -140,7 +140,7 @@ class LinkEntry<T> implements Link<T> {
}
}
- bool equals(other) {
+ bool operator ==(other) {
if (other is !Link<T>) return false;
Link<T> myElements = this;
while (!myElements.isEmpty() && !other.isEmpty()) {
« no previous file with comments | « lib/compiler/implementation/util/link.dart ('k') | tests/compiler/dart2js/type_equals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698