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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart_backend; 5 part of dart_backend;
6 6
7 class CloningVisitor implements Visitor<Node> { 7 class CloningVisitor implements Visitor<Node> {
8 final TreeElements originalTreeElements; 8 final TreeElements originalTreeElements;
9 final TreeElementMapping cloneTreeElements; 9 final TreeElementMapping cloneTreeElements;
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 new StringJuxtaposition(visit(node.first), visit(node.second)); 186 new StringJuxtaposition(visit(node.first), visit(node.second));
187 187
188 visitSwitchCase(SwitchCase node) => new SwitchCase( 188 visitSwitchCase(SwitchCase node) => new SwitchCase(
189 visit(node.labelsAndCases), node.defaultKeyword, visit(node.statements), 189 visit(node.labelsAndCases), node.defaultKeyword, visit(node.statements),
190 node.startToken); 190 node.startToken);
191 191
192 visitSwitchStatement(SwitchStatement node) => new SwitchStatement( 192 visitSwitchStatement(SwitchStatement node) => new SwitchStatement(
193 visit(node.parenthesizedExpression), visit(node.cases), 193 visit(node.parenthesizedExpression), visit(node.cases),
194 node.switchKeyword); 194 node.switchKeyword);
195 195
196 visitLiteralSymbol(LiteralSymbol node) => new LiteralSymbol(
197 node.hashToken, visit(node.identifiers));
198
196 visitThrow(Throw node) => new Throw( 199 visitThrow(Throw node) => new Throw(
197 visit(node.expression), node.throwToken, node.endToken); 200 visit(node.expression), node.throwToken, node.endToken);
198 201
199 visitTryStatement(TryStatement node) => new TryStatement( 202 visitTryStatement(TryStatement node) => new TryStatement(
200 visit(node.tryBlock), visit(node.catchBlocks), visit(node.finallyBlock), 203 visit(node.tryBlock), visit(node.catchBlocks), visit(node.finallyBlock),
201 node.tryKeyword, node.finallyKeyword); 204 node.tryKeyword, node.finallyKeyword);
202 205
203 visitTypeAnnotation(TypeAnnotation node) => new TypeAnnotation( 206 visitTypeAnnotation(TypeAnnotation node) => new TypeAnnotation(
204 visit(node.typeName), visit(node.typeArguments)); 207 visit(node.typeName), visit(node.typeArguments));
205 208
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 284 }
282 285
283 Node visitStringNode(StringNode node) { 286 Node visitStringNode(StringNode node) {
284 unimplemented('visitNode', node: node); 287 unimplemented('visitNode', node: node);
285 } 288 }
286 289
287 unimplemented(String message, {Node node}) { 290 unimplemented(String message, {Node node}) {
288 throw message; 291 throw message;
289 } 292 }
290 } 293 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698