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

Unified Diff: lib/compiler/implementation/tree/unparser.dart

Issue 11044010: Support new import syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | tests/compiler/dart2js/dart_backend_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index a52545f076648f006c2deb06f738fdb524dcf9ea..c9f166582f0a5c676b5b629158333224195c8d32 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -443,8 +443,8 @@ class Unparser implements Visitor {
}
unparseImportTag(String uri, [String prefix]) {
- final suffix = prefix === null ? '' : ',prefix:"$prefix"';
- sb.add('#import("$uri"$suffix);');
+ final suffix = prefix === null ? '' : ' as $prefix';
+ sb.add('import "$uri"$suffix;');
}
visitScriptTag(ScriptTag node) {
« no previous file with comments | « no previous file | tests/compiler/dart2js/dart_backend_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698