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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/utils.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/dart_backend/utils.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
index 61bad39d83a10315304b7bbd6c7b67e406cbb5d2..bd34053b4a87857bf08426480a48d467baf9970a 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
@@ -192,6 +192,9 @@ class CloningVisitor implements Visitor<Node> {
visitSwitchStatement(SwitchStatement node) => new SwitchStatement(
visit(node.parenthesizedExpression), visit(node.cases),
node.switchKeyword);
+
+ visitSymbolLiteral(SymbolLiteral node) => new SymbolLiteral(
+ node.hashToken, visit(node.operator), visit(node.identifiers));
visitThrow(Throw node) => new Throw(
visit(node.expression), node.throwToken, node.endToken);

Powered by Google App Engine
This is Rietveld 408576698