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

Unified Diff: pkg/compiler/lib/src/dart2js.dart

Issue 925943002: Refactor SourceFile, SourceFileProvider and SourceLocation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
Index: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index 1fbf54358fbbd205d5da824aab4b9db87a77ea37..0fb9b23382cc462c798ccfddf5d60f92550b23fe 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -169,8 +169,8 @@ Future<api.CompilationResult> compile(List<String> argv) {
passThrough(argument);
}
- String getDepsOutput(Map<String, SourceFile> sourceFiles) {
- var filenames = new List.from(sourceFiles.keys);
+ String getDepsOutput(Map<Uri, SourceFile> sourceFiles) {
+ var filenames = new List.from(sourceFiles.keys.map((uri) => '$uri'));
floitsch 2015/02/13 13:46:03 since you don't use the generic argument from List
Johnni Winther 2015/02/13 13:55:49 Done.
filenames.sort();
return filenames.join("\n");
}

Powered by Google App Engine
This is Rietveld 408576698