Chromium Code Reviews| 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 class LocalPlaceholder implements Hashable { | 5 class LocalPlaceholder { |
|
Mads Ager (google)
2012/09/27 12:48:27
Ditto.
| |
| 6 final String identifier; | 6 final String identifier; |
| 7 final Set<Node> nodes; | 7 final Set<Node> nodes; |
| 8 LocalPlaceholder(this.identifier) : nodes = new Set<Node>(); | 8 LocalPlaceholder(this.identifier) : nodes = new Set<Node>(); |
| 9 int hashCode() => identifier.hashCode(); | 9 int hashCode() => identifier.hashCode(); |
| 10 String toString() => | 10 String toString() => |
| 11 'local_placeholder[id($identifier), nodes($nodes)]'; | 11 'local_placeholder[id($identifier), nodes($nodes)]'; |
| 12 } | 12 } |
| 13 | 13 |
| 14 class FunctionScope { | 14 class FunctionScope { |
| 15 final Set<String> parameterIdentifiers; | 15 final Set<String> parameterIdentifiers; |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 603 | 603 |
| 604 visitBlock(Block node) { | 604 visitBlock(Block node) { |
| 605 for (Node statement in node.statements.nodes) { | 605 for (Node statement in node.statements.nodes) { |
| 606 if (statement is VariableDefinitions) { | 606 if (statement is VariableDefinitions) { |
| 607 makeVarDeclarationTypePlaceholder(statement); | 607 makeVarDeclarationTypePlaceholder(statement); |
| 608 } | 608 } |
| 609 } | 609 } |
| 610 node.visitChildren(this); | 610 node.visitChildren(this); |
| 611 } | 611 } |
| 612 } | 612 } |
| OLD | NEW |