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 resolution; | 5 part of resolution; |
6 | 6 |
7 abstract class TreeElements { | 7 abstract class TreeElements { |
8 AnalyzableElement get analyzedElement; | 8 AnalyzableElement get analyzedElement; |
9 Iterable<Node> get superUses; | 9 Iterable<Node> get superUses; |
10 | 10 |
(...skipping 3645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3656 registry.registerDynamicInvocation(compiler.moveNextSelector); | 3656 registry.registerDynamicInvocation(compiler.moveNextSelector); |
3657 | 3657 |
3658 visit(node.expression); | 3658 visit(node.expression); |
3659 | 3659 |
3660 Scope blockScope = new BlockScope(scope); | 3660 Scope blockScope = new BlockScope(scope); |
3661 visitForInDeclaredIdentifierIn(node.declaredIdentifier, node, blockScope); | 3661 visitForInDeclaredIdentifierIn(node.declaredIdentifier, node, blockScope); |
3662 visitLoopBodyIn(node, node.body, blockScope); | 3662 visitLoopBodyIn(node, node.body, blockScope); |
3663 } | 3663 } |
3664 | 3664 |
3665 visitSyncForIn(SyncForIn node) { | 3665 visitSyncForIn(SyncForIn node) { |
| 3666 registry.registerSyncForIn(node); |
3666 registry.setIteratorSelector(node, compiler.iteratorSelector); | 3667 registry.setIteratorSelector(node, compiler.iteratorSelector); |
3667 registry.registerDynamicGetter(compiler.iteratorSelector); | 3668 registry.registerDynamicGetter(compiler.iteratorSelector); |
3668 registry.setCurrentSelector(node, compiler.currentSelector); | 3669 registry.setCurrentSelector(node, compiler.currentSelector); |
3669 registry.registerDynamicGetter(compiler.currentSelector); | 3670 registry.registerDynamicGetter(compiler.currentSelector); |
3670 registry.setMoveNextSelector(node, compiler.moveNextSelector); | 3671 registry.setMoveNextSelector(node, compiler.moveNextSelector); |
3671 registry.registerDynamicInvocation(compiler.moveNextSelector); | 3672 registry.registerDynamicInvocation(compiler.moveNextSelector); |
3672 | 3673 |
3673 visit(node.expression); | 3674 visit(node.expression); |
3674 | 3675 |
3675 Scope blockScope = new BlockScope(scope); | 3676 Scope blockScope = new BlockScope(scope); |
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5146 } | 5147 } |
5147 | 5148 |
5148 /// The result for the resolution of the `assert` method. | 5149 /// The result for the resolution of the `assert` method. |
5149 class AssertResult implements ResolutionResult { | 5150 class AssertResult implements ResolutionResult { |
5150 const AssertResult(); | 5151 const AssertResult(); |
5151 | 5152 |
5152 Element get element => null; | 5153 Element get element => null; |
5153 | 5154 |
5154 String toString() => 'AssertResult()'; | 5155 String toString() => 'AssertResult()'; |
5155 } | 5156 } |
OLD | NEW |