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

Unified Diff: frog/library.dart

Issue 8771054: Add a script to generate HTML and DOM docs with cross-links to one another. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More code review changes. Created 9 years 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: frog/library.dart
diff --git a/frog/library.dart b/frog/library.dart
index 2bf79ebfb8521f1f8ae622986e33891b12517e4c..aed4b437fcee3b89e47dab1d0436da26ddd651da 100644
--- a/frog/library.dart
+++ b/frog/library.dart
@@ -283,6 +283,11 @@ class Library extends Element {
}
toString() => baseSource.filename;
+
+ int hashCode() => baseSource.filename.hashCode();
+
+ bool operator ==(other) => other is Library &&
+ other.baseSource.filename == baseSource.filename;
}

Powered by Google App Engine
This is Rietveld 408576698