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

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

Issue 189563004: Use '--source-map' and '--out' options to support source maps from non-commandline. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: sdk/lib/_internal/compiler/implementation/apiimpl.dart
diff --git a/sdk/lib/_internal/compiler/implementation/apiimpl.dart b/sdk/lib/_internal/compiler/implementation/apiimpl.dart
index 3995d34f6ffa4d548e0e595726eb32bdf9c5c9f7..cec2f7d60e6dfaa0cdee6d148ab43bd9b3010241 100644
--- a/sdk/lib/_internal/compiler/implementation/apiimpl.dart
+++ b/sdk/lib/_internal/compiler/implementation/apiimpl.dart
@@ -57,7 +57,8 @@ class Compiler extends leg.Compiler {
hasOption(options, '--disable-type-inference'),
preserveComments: hasOption(options, '--preserve-comments'),
verbose: hasOption(options, '--verbose'),
- sourceMapUri: extractSourceMapUri(options),
+ sourceMapUri: extractUriOption(options, '--source-map='),
+ outputUri: extractUriOption(options, '--out='),
terseDiagnostics: hasOption(options, '--terse'),
dumpInfo: hasOption(options, '--dump-info'),
buildId: extractStringOption(
@@ -84,8 +85,8 @@ class Compiler extends leg.Compiler {
return defaultValue;
}
- static Uri extractSourceMapUri(List<String> options) {
- var option = extractStringOption(options, '--source-map=', null);
+ static Uri extractUriOption(List<String> options, String prefix) {
+ var option = extractStringOption(options, prefix, null);
return (option == null) ? null : Uri.parse(option);
}

Powered by Google App Engine
This is Rietveld 408576698