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

Unified Diff: lib/src/js/printer.dart

Issue 1263583005: implement exports, fixes #141 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase Created 5 years, 4 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: lib/src/js/printer.dart
diff --git a/lib/src/js/printer.dart b/lib/src/js/printer.dart
index 0e19d2f93a651a89704c415438625bac3fd47d41..39ac5d019b7b5ff69931564a6ef9fe99c83c7729 100644
--- a/lib/src/js/printer.dart
+++ b/lib/src/js/printer.dart
@@ -212,6 +212,9 @@ class Printer implements NodeVisitor {
}
visitProgram(Program program) {
+ if (program.scriptTag != null) {
+ out('#!${program.scriptTag}\n');
+ }
visitAll(program.body);
}

Powered by Google App Engine
This is Rietveld 408576698