| OLD | NEW |
| 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; |
| 6 |
| 5 class LocalPlaceholder { | 7 class LocalPlaceholder { |
| 6 final String identifier; | 8 final String identifier; |
| 7 final Set<Node> nodes; | 9 final Set<Node> nodes; |
| 8 LocalPlaceholder(this.identifier) : nodes = new Set<Node>(); | 10 LocalPlaceholder(this.identifier) : nodes = new Set<Node>(); |
| 9 int get hashCode => identifier.hashCode; | 11 int get hashCode => identifier.hashCode; |
| 10 String toString() => | 12 String toString() => |
| 11 'local_placeholder[id($identifier), nodes($nodes)]'; | 13 'local_placeholder[id($identifier), nodes($nodes)]'; |
| 12 } | 14 } |
| 13 | 15 |
| 14 class FunctionScope { | 16 class FunctionScope { |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 | 638 |
| 637 visitBlock(Block node) { | 639 visitBlock(Block node) { |
| 638 for (Node statement in node.statements.nodes) { | 640 for (Node statement in node.statements.nodes) { |
| 639 if (statement is VariableDefinitions) { | 641 if (statement is VariableDefinitions) { |
| 640 makeVarDeclarationTypePlaceholder(statement); | 642 makeVarDeclarationTypePlaceholder(statement); |
| 641 } | 643 } |
| 642 } | 644 } |
| 643 node.visitChildren(this); | 645 node.visitChildren(this); |
| 644 } | 646 } |
| 645 } | 647 } |
| OLD | NEW |