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

Unified Diff: sdk/lib/_internal/compiler/compiler.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/compiler.dart
diff --git a/sdk/lib/_internal/compiler/compiler.dart b/sdk/lib/_internal/compiler/compiler.dart
index e40c74ae6ca55d543de65a901b4d26e408e9080e..b79ab22505cecf66b5bb46b2ca69efb17fea1ed7 100644
--- a/sdk/lib/_internal/compiler/compiler.dart
+++ b/sdk/lib/_internal/compiler/compiler.dart
@@ -85,7 +85,7 @@ Future<String> compile(Uri script,
Uri packageRoot,
CompilerInputProvider inputProvider,
DiagnosticHandler handler,
- [List<String> options = const [],
+ [List<String> options = const [],
CompilerOutputProvider outputProvider,
Map<String, dynamic> environment = const {}]) {
if (!libraryRoot.path.endsWith("/")) {
@@ -107,13 +107,6 @@ Future<String> compile(Uri script,
return compiler.run(script).then((_) {
String code = compiler.assembledCode;
if (code != null && outputProvider != null) {
- String outputType = 'js';
- if (options.contains('--output-type=dart')) {
- outputType = 'dart';
- }
- outputProvider('', outputType)
- ..add(code)
- ..close();
code = ''; // Non-null signals success.
}
return code;

Powered by Google App Engine
This is Rietveld 408576698