Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Unified Diff: packages/source_maps/lib/src/source_map_span.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/source_maps/lib/parser.dart ('k') | packages/source_maps/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
« no previous file with comments | « packages/source_maps/lib/parser.dart ('k') | packages/source_maps/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698