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

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: Updated cf. comments. Created 7 years, 3 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..57ee07ace938c2c531a4275e4dcdbe82fff5c858 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
@@ -193,6 +193,9 @@ class CloningVisitor implements Visitor<Node> {
visit(node.parenthesizedExpression), visit(node.cases),
node.switchKeyword);
+ visitLiteralSymbol(LiteralSymbol node) => new LiteralSymbol(
+ node.hashToken, visit(node.identifiers));
+
visitThrow(Throw node) => new Throw(
visit(node.expression), node.throwToken, node.endToken);

Powered by Google App Engine
This is Rietveld 408576698