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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 336003003: dump-info additionally dumps a json info file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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: sdk/lib/_internal/compiler/implementation/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index 583c268468beaeb08a30a2f056a9f2b59c0260ee..dce7b2b738b02bdf302b5ce90cc1f6370bb399a0 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -421,6 +421,9 @@ Future compile(List<String> argv) {
} else if (extension == 'info.html') {
String outName = out.path.substring(out.path.lastIndexOf('/') + 1);
uri = out.resolve('${outName}.$extension');
+ } else if (extension == 'info.json') {
+ String outName = out.path.substring(out.path.lastIndexOf('/') + 1);
+ uri = out.resolve('$outName.$extension');
Ty Overby 2014/06/20 19:36:47 This could probably be grouped into the case from
Ty Overby 2014/06/20 19:47:28 Done.
} else {
fail('Unknown extension: $extension');
}

Powered by Google App Engine
This is Rietveld 408576698