| Index: packages/source_maps/lib/src/source_map_span.dart
|
| diff --git a/packages/source_maps/lib/src/source_map_span.dart b/packages/source_maps/lib/src/source_map_span.dart
|
| index b70bdfe983ef4c1b1a8e7622e1b02b06ed7b8549..37107e1c71b55ad3b56239dc497df2d57b4e605c 100644
|
| --- a/packages/source_maps/lib/src/source_map_span.dart
|
| +++ b/packages/source_maps/lib/src/source_map_span.dart
|
| @@ -17,7 +17,7 @@ class SourceMapSpan extends SourceSpanBase {
|
| final bool isIdentifier;
|
|
|
| SourceMapSpan(SourceLocation start, SourceLocation end, String text,
|
| - {this.isIdentifier: false})
|
| + {this.isIdentifier: false})
|
| : super(start, end, text);
|
|
|
| /// Creates a [SourceMapSpan] for an identifier with value [text] starting at
|
| @@ -26,13 +26,13 @@ class SourceMapSpan extends SourceSpanBase {
|
| /// The [end] location is determined by adding [text] to [start].
|
| SourceMapSpan.identifier(SourceLocation start, String text)
|
| : this(
|
| - start,
|
| - new SourceLocation(start.offset + text.length,
|
| - sourceUrl: start.sourceUrl,
|
| - line: start.line,
|
| - column: start.column + text.length),
|
| - text,
|
| - isIdentifier: true);
|
| + start,
|
| + new SourceLocation(start.offset + text.length,
|
| + sourceUrl: start.sourceUrl,
|
| + line: start.line,
|
| + column: start.column + text.length),
|
| + text,
|
| + isIdentifier: true);
|
| }
|
|
|
| /// A wrapper aruond a [FileSpan] that implements [SourceMapSpan].
|
| @@ -51,10 +51,11 @@ class SourceMapFileSpan implements SourceMapSpan, FileSpan {
|
| SourceMapFileSpan(this._inner, {this.isIdentifier: false});
|
|
|
| int compareTo(SourceSpan other) => _inner.compareTo(other);
|
| + String highlight({color}) => _inner.highlight(color: color);
|
| SourceSpan union(SourceSpan other) => _inner.union(other);
|
| FileSpan expand(FileSpan other) => _inner.expand(other);
|
| String message(String message, {color}) =>
|
| _inner.message(message, color: color);
|
| - String toString() => _inner.toString()
|
| - .replaceAll("FileSpan", "SourceMapFileSpan");
|
| + String toString() =>
|
| + _inner.toString().replaceAll("FileSpan", "SourceMapFileSpan");
|
| }
|
|
|