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

Unified Diff: lib/parser.dart

Issue 12937009: renaming File to Source (Closed) Base URL: git@github.com:dart-lang/source-maps.git@master
Patch Set: Created 7 years, 9 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 | « lib/builder.dart ('k') | lib/source_maps.dart » ('j') | lib/source_maps.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « lib/builder.dart ('k') | lib/source_maps.dart » ('j') | lib/source_maps.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698