Index: lib/parser.dart |
diff --git a/lib/parser.dart b/lib/parser.dart |
index 1313d64d7384dac4c9f076525f033b9966e54181..3849913a39be562746481821462595d2cddaf33c 100644 |
--- a/lib/parser.dart |
+++ b/lib/parser.dart |
@@ -44,9 +44,9 @@ Mapping parseJson(Map map, {Map<String, Map> otherMaps}) { |
/// A mapping parsed our of a source map. |
abstract class Mapping { |
- Span spanFor(int line, int column, {Map<String, File> files}); |
+ Span spanFor(int line, int column, {Map<String, SourceFile> files}); |
- Span spanForLocation(Location loc, {Map<String, File> files}) { |
+ Span spanForLocation(Location loc, {Map<String, SourceFile> files}) { |
return spanFor(loc.line, loc.column, files: files); |
} |
} |
@@ -109,7 +109,7 @@ class MultiSectionMapping extends Mapping { |
return _lineStart.length - 1; |
} |
- Span spanFor(int line, int column, {Map<String, File> files}) { |
+ Span spanFor(int line, int column, {Map<String, SourceFile> files}) { |
int index = _indexFor(line, column); |
return _maps[index].spanFor( |
line - _lineStart[index], column - _columnStart[index], files: files); |
@@ -241,7 +241,7 @@ class SingleMapping extends Mapping { |
return (index <= 0) ? null : entries[index - 1]; |
} |
- Span spanFor(int line, int column, {Map<String, File> files}) { |
+ Span spanFor(int line, int column, {Map<String, SourceFile> files}) { |
var lineEntry = _findLine(line); |
var entry = _findColumn(line, column, _findLine(line)); |
if (entry == null) return null; |