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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 21511003: Support symbol literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 resolution; 5 part of resolution;
6 6
7 abstract class TreeElements { 7 abstract class TreeElements {
8 Element get currentElement; 8 Element get currentElement;
9 Set<Node> get superUses; 9 Set<Node> get superUses;
10 10
(...skipping 2441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 } 2452 }
2453 2453
2454 visitLiteralString(LiteralString node) { 2454 visitLiteralString(LiteralString node) {
2455 world.registerInstantiatedClass(compiler.stringClass, mapping); 2455 world.registerInstantiatedClass(compiler.stringClass, mapping);
2456 } 2456 }
2457 2457
2458 visitLiteralNull(LiteralNull node) { 2458 visitLiteralNull(LiteralNull node) {
2459 world.registerInstantiatedClass(compiler.nullClass, mapping); 2459 world.registerInstantiatedClass(compiler.nullClass, mapping);
2460 } 2460 }
2461 2461
2462 visitSymbolLiteral(SymbolLiteral node) {
2463 world.registerInstantiatedClass(compiler.symbolClass, mapping);
2464 world.registerStaticUse(compiler.symbolConstructor.declaration);
2465 world.registerConstSymbol(node.nameString, mapping);
2466 }
2467
2462 visitStringJuxtaposition(StringJuxtaposition node) { 2468 visitStringJuxtaposition(StringJuxtaposition node) {
2463 world.registerInstantiatedClass(compiler.stringClass, mapping); 2469 world.registerInstantiatedClass(compiler.stringClass, mapping);
2464 node.visitChildren(this); 2470 node.visitChildren(this);
2465 } 2471 }
2466 2472
2467 visitNodeList(NodeList node) { 2473 visitNodeList(NodeList node) {
2468 for (Link<Node> link = node.nodes; !link.isEmpty; link = link.tail) { 2474 for (Link<Node> link = node.nodes; !link.isEmpty; link = link.tail) {
2469 visit(link.head); 2475 visit(link.head);
2470 } 2476 }
2471 } 2477 }
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
4068 return e; 4074 return e;
4069 } 4075 }
4070 4076
4071 /// Assumed to be called by [resolveRedirectingFactory]. 4077 /// Assumed to be called by [resolveRedirectingFactory].
4072 Element visitReturn(Return node) { 4078 Element visitReturn(Return node) {
4073 Node expression = node.expression; 4079 Node expression = node.expression;
4074 return finishConstructorReference(visit(expression), 4080 return finishConstructorReference(visit(expression),
4075 expression, expression); 4081 expression, expression);
4076 } 4082 }
4077 } 4083 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698