Fix the typing of FileSpan.{start,end}.
R=kevmoo@google.com
Review URL: https://codereview.chromium.org//1376433003 .
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ab13bda..ce71980 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+# 1.2.1
+
+* Fix the declared type of `FileSpan.start` and `FileSpan.end`. In 1.2.0 these
+ were mistakenly changed from `FileLocation` to `SourceLocation`.
+
# 1.2.0
* **Deprecated:** Extending `SourceLocation` directly is deprecated. Instead,
diff --git a/lib/src/file.dart b/lib/src/file.dart
index 95fa92c..37790ce 100644
--- a/lib/src/file.dart
+++ b/lib/src/file.dart
@@ -246,6 +246,9 @@
/// The [file] that [this] belongs to.
SourceFile get file;
+ FileLocation get start;
+ FileLocation get end;
+
/// 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 25de799..4c703cd 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: source_span
-version: 1.2.0
+version: 1.2.1
author: Dart Team <misc@dartlang.org>
description: A library for identifying source spans and locations.
homepage: https://github.com/dart-lang/source_span