Change "FormatException.position" to be named "offset".
Address comments on SpanFormatException changes.
R=nweiz@google.com
Committed: https://code.google.com/p/dart/source/detail?r=38373
Review URL: https://codereview.chromium.org//396603003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/source_maps@38378 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c52d585..7767fc1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,3 @@
-## 0.9.4
-
-* Update `SpanFormatException` with `source` and `offset`.
-
## 0.9.3
* Support writing SingleMapping objects to source map version 3 format.
diff --git a/lib/span.dart b/lib/span.dart
index b546a97..771e9e0 100644
--- a/lib/span.dart
+++ b/lib/span.dart
@@ -385,10 +385,9 @@
/// A [SpanException] that's also a [FormatException].
class SpanFormatException extends SpanException implements FormatException {
- final source;
-
- SpanFormatException(String message, Span span, [this.source])
+ SpanFormatException(String message, Span span)
: super(message, span);
- int get offset => span == null ? null : span.start.offset;
+ get source => null;
+ int get position => null;
}
diff --git a/pubspec.yaml b/pubspec.yaml
index c5029e2..ae0323d 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -7,7 +7,7 @@
#
# When the minor version is upgraded, you *must* update that version constraint
# in pub to stay in sync with this.
-version: 0.9.4
+version: 0.9.3
author: Dart Team <misc@dartlang.org>
description: Library to programmatically manipulate source map files.
homepage: http://www.dartlang.org