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

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

Issue 21511003: Support symbol literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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/tree/unparser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
index 92d10e36aa8c0ee4982e4f2620b15b0516b08aee..50ea365ff72bc87407dd42abe46f663026ca24ca 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart
@@ -221,6 +221,12 @@ class Unparser implements Visitor {
visitLiteralNull(LiteralNull node) {
add(node.token.value);
}
+
+ visitSymbolLiteral(SymbolLiteral node) {
+ add(node.hashToken.value);
+ visit(node.operator);
+ visit(node.identifiers);
+ }
visitNewExpression(NewExpression node) {
addToken(node.newToken);

Powered by Google App Engine
This is Rietveld 408576698