Index: pkg/compiler/lib/src/tree/unparser.dart |
diff --git a/pkg/compiler/lib/src/tree/unparser.dart b/pkg/compiler/lib/src/tree/unparser.dart |
index 6f141fdf88eb4fec07ebf6111637976ece88190f..807ea0514b9ee1d1b0f32471662f24486ac2ffb2 100644 |
--- a/pkg/compiler/lib/src/tree/unparser.dart |
+++ b/pkg/compiler/lib/src/tree/unparser.dart |
@@ -782,9 +782,33 @@ class Unparser extends Indentation implements Visitor { |
newline(); |
} |
+ visitConditionalUri(ConditionalUri node) { |
+ write(node.ifToken.value); |
+ space(); |
+ write('('); |
+ visit(node.key); |
+ if (node.value != null) { |
+ space(); |
+ write("=="); |
+ space(); |
+ visit(node.value); |
+ } |
+ write(")"); |
+ space(); |
+ visit(node.uri); |
+ } |
+ |
+ visitDottedName(DottedName node) { |
+ unparseNodeListOfIdentifiers(node.identifiers); |
+ } |
+ |
visitImport(Import node) { |
addToken(node.importKeyword); |
visit(node.uri); |
+ if (node.hasConditionalUris) { |
+ write(' '); |
+ visitNodeList(node.conditionalUris); |
+ } |
if (node.isDeferred) { |
write(' deferred'); |
} |
@@ -803,6 +827,10 @@ class Unparser extends Indentation implements Visitor { |
visitExport(Export node) { |
addToken(node.exportKeyword); |
visit(node.uri); |
+ if (node.hasConditionalUris) { |
+ write(' '); |
+ visitNodeList(node.conditionalUris); |
+ } |
if (node.combinators != null) { |
write(' '); |
visit(node.combinators); |