Eliminate dart2js warning about overriding `==`, but not `hashCode`.
Closes dart-lang/source_span#5
R=nweiz@google.com
Review URL: https://codereview.chromium.org//1315423002 .
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8ca9e5c..5f87aee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+# 1.1.4
+
+* Eliminated dart2js warning about overriding `==`, but not `hashCode`.
+
# 1.1.3
* `FileSpan.compareTo`, `FileSpan.==`, `FileSpan.union`, and `FileSpan.expand`
diff --git a/lib/src/file.dart b/lib/src/file.dart
index c180929..aee3d78 100644
--- a/lib/src/file.dart
+++ b/lib/src/file.dart
@@ -263,6 +263,9 @@
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
diff --git a/pubspec.yaml b/pubspec.yaml
index daee3f6..3da9c28 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,8 +1,8 @@
name: source_span
-version: 1.1.3
+version: 1.1.4
author: Dart Team <misc@dartlang.org>
description: A library for identifying source spans and locations.
-homepage: http://github.com/dart-lang/source_span
+homepage: https://github.com/dart-lang/source_span
dependencies:
path: '>=1.2.0 <2.0.0'
environment: