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

Unified Diff: lib/src/impl.dart

Issue 1715553002: Define equality for boolean selectors. (Closed) Base URL: git@github.com:dart-lang/boolean_selector@master
Patch Set: Created 4 years, 10 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/src/ast.dart ('k') | lib/src/intersection_selector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/impl.dart
diff --git a/lib/src/impl.dart b/lib/src/impl.dart
index 6a4053060ad7bc3e119ba928942f90716140b2cb..c920e5250729802cf2d1afbffbd2ad1ee5f48198 100644
--- a/lib/src/impl.dart
+++ b/lib/src/impl.dart
@@ -53,4 +53,9 @@ class BooleanSelectorImpl implements BooleanSelector {
}
String toString() => _selector.toString();
+
+ bool operator==(other) =>
+ other is BooleanSelectorImpl && _selector == other._selector;
+
+ int get hashCode => _selector.hashCode;
}
« no previous file with comments | « lib/src/ast.dart ('k') | lib/src/intersection_selector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698