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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend.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/dart_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index 6f824f51c2828e5b5b460032654f0f376f7882e3..b61a0f0e4a4111fb72c4d2fe29982122ad241c7a 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -449,7 +449,11 @@ class DartBackend extends Backend {
final unparser = new EmitterUnparser(renames);
emitCode(unparser, imports, topLevelNodes, memberNodes);
- compiler.assembledCode = unparser.result;
+ String assembledCode = unparser.result;
+ compiler.outputProvider('', 'dart')
+ ..add(assembledCode)
+ ..close();
+ compiler.assembledCode = assembledCode;
// Output verbose info about size ratio of resulting bundle to all
// referenced non-platform sources.

Powered by Google App Engine
This is Rietveld 408576698