| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library dart2js.resolution.registry; | 5 library dart2js.resolution.registry; |
| 6 | 6 |
| 7 import '../common/backend_api.dart' show | 7 import '../common/backend_api.dart' show |
| 8 Backend, | 8 Backend, |
| 9 ForeignResolver; | 9 ForeignResolver; |
| 10 import '../common/resolution.dart' show | 10 import '../common/resolution.dart' show |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 | 661 |
| 662 void registerInstantiatedType(InterfaceType type) { | 662 void registerInstantiatedType(InterfaceType type) { |
| 663 worldImpact.registerInstantiatedType(type); | 663 worldImpact.registerInstantiatedType(type); |
| 664 mapping.addRequiredType(type); | 664 mapping.addRequiredType(type); |
| 665 } | 665 } |
| 666 | 666 |
| 667 void registerAbstractClassInstantiation() { | 667 void registerAbstractClassInstantiation() { |
| 668 worldImpact.registerFeature(Feature.ABSTRACT_CLASS_INSTANTIATION); | 668 worldImpact.registerFeature(Feature.ABSTRACT_CLASS_INSTANTIATION); |
| 669 } | 669 } |
| 670 | 670 |
| 671 void registerNewSymbol() { | |
| 672 worldImpact.registerFeature(Feature.NEW_SYMBOL); | |
| 673 } | |
| 674 | |
| 675 void registerRequiredType(DartType type, Element enclosingElement) { | 671 void registerRequiredType(DartType type, Element enclosingElement) { |
| 676 worldImpact.registerRequiredType(type); | 672 worldImpact.registerRequiredType(type); |
| 677 mapping.addRequiredType(type); | 673 mapping.addRequiredType(type); |
| 678 } | 674 } |
| 679 | 675 |
| 680 void registerStringInterpolation() { | 676 void registerStringInterpolation() { |
| 681 worldImpact.registerFeature(Feature.STRING_INTERPOLATION); | 677 worldImpact.registerFeature(Feature.STRING_INTERPOLATION); |
| 682 } | 678 } |
| 683 | 679 |
| 684 void registerFallThroughError() { | 680 void registerFallThroughError() { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 @override | 782 @override |
| 787 void registerInstantiatedType(InterfaceType type) { | 783 void registerInstantiatedType(InterfaceType type) { |
| 788 registry.registerInstantiatedType(type); | 784 registry.registerInstantiatedType(type); |
| 789 } | 785 } |
| 790 | 786 |
| 791 @override | 787 @override |
| 792 DartType resolveTypeFromString(Node node, String typeName) { | 788 DartType resolveTypeFromString(Node node, String typeName) { |
| 793 return visitor.resolveTypeFromString(node, typeName); | 789 return visitor.resolveTypeFromString(node, typeName); |
| 794 } | 790 } |
| 795 } | 791 } |
| OLD | NEW |