Index: pkg/source_maps/lib/span.dart |
diff --git a/pkg/source_maps/lib/span.dart b/pkg/source_maps/lib/span.dart |
index 771e9e0efa2804c58d93de49353902362d09fadc..b546a97aa0f2aa6d0515827688b70d86e5e86a0b 100644 |
--- a/pkg/source_maps/lib/span.dart |
+++ b/pkg/source_maps/lib/span.dart |
@@ -385,9 +385,10 @@ class SpanException implements Exception { |
/// A [SpanException] that's also a [FormatException]. |
class SpanFormatException extends SpanException implements FormatException { |
- SpanFormatException(String message, Span span) |
+ final source; |
+ |
+ SpanFormatException(String message, Span span, [this.source]) |
: super(message, span); |
- get source => null; |
- int get position => null; |
+ int get offset => span == null ? null : span.start.offset; |
} |