| 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.dart'; | 7 import '../common.dart'; |
| 8 import '../common/backend_api.dart' | 8 import '../common/backend_api.dart' |
| 9 show Backend, ForeignResolver, NativeRegistry; | 9 show Backend, ForeignResolver, NativeRegistry; |
| 10 import '../common/registry.dart' show Registry; |
| 10 import '../common/resolution.dart' | 11 import '../common/resolution.dart' |
| 11 show Feature, ListLiteralUse, MapLiteralUse, ResolutionImpact, Target; | 12 show Feature, ListLiteralUse, MapLiteralUse, ResolutionImpact, Target; |
| 12 import '../common/registry.dart' show Registry; | |
| 13 import '../compiler.dart' show Compiler; | |
| 14 import '../constants/expressions.dart'; | 13 import '../constants/expressions.dart'; |
| 15 import '../dart_types.dart'; | 14 import '../dart_types.dart'; |
| 16 import '../diagnostics/source_span.dart'; | 15 import '../diagnostics/source_span.dart'; |
| 17 import '../enqueue.dart' show ResolutionEnqueuer; | |
| 18 import '../elements/elements.dart'; | 16 import '../elements/elements.dart'; |
| 19 import '../tree/tree.dart'; | 17 import '../tree/tree.dart'; |
| 20 import '../util/util.dart' show Setlet; | |
| 21 import '../universe/call_structure.dart' show CallStructure; | 18 import '../universe/call_structure.dart' show CallStructure; |
| 22 import '../universe/selector.dart' show Selector; | 19 import '../universe/selector.dart' show Selector; |
| 23 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse; | 20 import '../universe/use.dart' show DynamicUse, StaticUse, TypeUse; |
| 24 import '../universe/world_impact.dart' show WorldImpact, WorldImpactBuilder; | 21 import '../universe/world_impact.dart' show WorldImpact, WorldImpactBuilder; |
| 25 import '../util/enumset.dart' show EnumSet; | 22 import '../util/enumset.dart' show EnumSet; |
| 26 | 23 import '../util/util.dart' show Setlet; |
| 24 import 'members.dart' show ResolverVisitor; |
| 27 import 'send_structure.dart'; | 25 import 'send_structure.dart'; |
| 28 | |
| 29 import 'members.dart' show ResolverVisitor; | |
| 30 import 'tree_elements.dart' show TreeElementMapping; | 26 import 'tree_elements.dart' show TreeElementMapping; |
| 31 | 27 |
| 32 class _ResolutionWorldImpact extends ResolutionImpact | 28 class _ResolutionWorldImpact extends ResolutionImpact |
| 33 with WorldImpactBuilder | 29 with WorldImpactBuilder |
| 34 implements NativeRegistry { | 30 implements NativeRegistry { |
| 35 final String name; | 31 final String name; |
| 36 EnumSet<Feature> _features; | 32 EnumSet<Feature> _features; |
| 37 Setlet<MapLiteralUse> _mapLiterals; | 33 Setlet<MapLiteralUse> _mapLiterals; |
| 38 Setlet<ListLiteralUse> _listLiterals; | 34 Setlet<ListLiteralUse> _listLiterals; |
| 39 Setlet<String> _constSymbolNames; | 35 Setlet<String> _constSymbolNames; |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 @override | 423 @override |
| 428 void registerInstantiatedType(InterfaceType type) { | 424 void registerInstantiatedType(InterfaceType type) { |
| 429 registry.registerInstantiation(type); | 425 registry.registerInstantiation(type); |
| 430 } | 426 } |
| 431 | 427 |
| 432 @override | 428 @override |
| 433 DartType resolveTypeFromString(Node node, String typeName) { | 429 DartType resolveTypeFromString(Node node, String typeName) { |
| 434 return visitor.resolveTypeFromString(node, typeName); | 430 return visitor.resolveTypeFromString(node, typeName); |
| 435 } | 431 } |
| 436 } | 432 } |
| OLD | NEW |