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

Unified Diff: lib/src/file.dart

Issue 1315423002: pkg/source_span: Eliminate dart2js warning about overriding `==`, but not `hashCode`. (Closed) Base URL: https://github.com/dart-lang/source_span.git@master
Patch Set: Created 5 years, 4 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/file.dart
diff --git a/lib/src/file.dart b/lib/src/file.dart
index c180929f785e8698689c907c221b4013204d7ead..aee3d7831ae5dddff743dcab14a5d1f39df5c150 100644
--- a/lib/src/file.dart
+++ b/lib/src/file.dart
@@ -263,6 +263,9 @@ class _FileSpan extends SourceSpanMixin implements FileSpan {
sourceUrl == other.sourceUrl;
}
+ // Eliminates dart2js warning about overriding `==`, but not `hashCode`
+ int get hashCode => super.hashCode;
+
/// Returns a new span that covers both [this] and [other].
///
/// Unlike [union], [other] may be disjoint from [this]. If it is, the text
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698