| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.closure_environment; | 5 library fletchc.closure_environment; |
| 6 | 6 |
| 7 import 'package:compiler/src/resolution/semantic_visitor.dart'; | 7 import 'package:compiler/src/resolution/semantic_visitor.dart'; |
| 8 | 8 |
| 9 import 'package:compiler/src/resolution/operators.dart' show | 9 import 'package:compiler/src/resolution/operators.dart' show |
| 10 AssignmentOperator, | 10 AssignmentOperator, |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 FunctionElement indexFunction, | 739 FunctionElement indexFunction, |
| 740 FunctionElement indexSetFunction, | 740 FunctionElement indexSetFunction, |
| 741 Node index, | 741 Node index, |
| 742 IncDecOperator operator, | 742 IncDecOperator operator, |
| 743 _) { | 743 _) { |
| 744 markThisUsed(); | 744 markThisUsed(); |
| 745 super.visitSuperIndexPrefix( | 745 super.visitSuperIndexPrefix( |
| 746 node, indexFunction, indexSetFunction, index, operator, null); | 746 node, indexFunction, indexSetFunction, index, operator, null); |
| 747 } | 747 } |
| 748 | 748 |
| 749 @override | |
| 750 void visitTypeAnnotation(TypeAnnotation node) { | 749 void visitTypeAnnotation(TypeAnnotation node) { |
| 751 // This is to avoid the inherited implementation that visits children and | 750 // TODO(sigurdm): This is to avoid the inherited implementation that visits |
| 752 // throws when encountering anything unresolved. | 751 // children and throws when encountering anything unresolved. |
| 753 } | 752 } |
| 754 | 753 |
| 755 void handleImmutableLocalSet( | 754 void handleImmutableLocalSet( |
| 756 SendSet node, | 755 SendSet node, |
| 757 LocalElement element, | 756 LocalElement element, |
| 758 Node rhs, | 757 Node rhs, |
| 759 _) { | 758 _) { |
| 760 apply(rhs); | 759 apply(rhs); |
| 761 } | 760 } |
| 762 | 761 |
| 763 void bulkHandleNode(Node node, String message, _) { | 762 void bulkHandleNode(Node node, String message, _) { |
| 764 } | 763 } |
| 765 | 764 |
| 766 void applyInitializers(FunctionExpression initializers, _) { | 765 void applyInitializers(FunctionExpression initializers, _) { |
| 767 } | 766 } |
| 768 | 767 |
| 769 void applyParameters(NodeList parameters, _) { | 768 void applyParameters(NodeList parameters, _) { |
| 770 } | 769 } |
| 771 } | 770 } |
| OLD | NEW |