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' show | 8 import '../common/backend_api.dart' show |
9 Backend, | 9 Backend, |
10 ForeignResolver; | 10 ForeignResolver; |
(...skipping 11 matching lines...) Expand all Loading... |
22 import '../enqueue.dart' show | 22 import '../enqueue.dart' show |
23 ResolutionEnqueuer; | 23 ResolutionEnqueuer; |
24 import '../elements/elements.dart'; | 24 import '../elements/elements.dart'; |
25 import '../tree/tree.dart'; | 25 import '../tree/tree.dart'; |
26 import '../util/util.dart' show | 26 import '../util/util.dart' show |
27 Setlet; | 27 Setlet; |
28 import '../universe/call_structure.dart' show | 28 import '../universe/call_structure.dart' show |
29 CallStructure; | 29 CallStructure; |
30 import '../universe/selector.dart' show | 30 import '../universe/selector.dart' show |
31 Selector; | 31 Selector; |
32 import '../universe/universe.dart' show | |
33 UniverseSelector; | |
34 import '../universe/use.dart' show | 32 import '../universe/use.dart' show |
| 33 DynamicUse, |
35 StaticUse; | 34 StaticUse; |
36 import '../universe/world_impact.dart' show | 35 import '../universe/world_impact.dart' show |
37 WorldImpactBuilder; | 36 WorldImpactBuilder; |
38 import '../world.dart' show World; | 37 import '../world.dart' show World; |
39 | 38 |
40 import 'send_structure.dart'; | 39 import 'send_structure.dart'; |
41 | 40 |
42 import 'members.dart' show | 41 import 'members.dart' show |
43 ResolverVisitor; | 42 ResolverVisitor; |
44 import 'tree_elements.dart' show | 43 import 'tree_elements.dart' show |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 386 |
388 void registerForeignCall(Node node, | 387 void registerForeignCall(Node node, |
389 Element element, | 388 Element element, |
390 CallStructure callStructure, | 389 CallStructure callStructure, |
391 ResolverVisitor visitor) { | 390 ResolverVisitor visitor) { |
392 backend.registerForeignCall( | 391 backend.registerForeignCall( |
393 node, element, callStructure, | 392 node, element, callStructure, |
394 new ForeignResolutionResolver(visitor, this)); | 393 new ForeignResolutionResolver(visitor, this)); |
395 } | 394 } |
396 | 395 |
397 void registerDynamicUse(UniverseSelector selector) { | 396 void registerDynamicUse(DynamicUse dynamicUse) { |
398 worldImpact.registerDynamicUse(selector); | 397 worldImpact.registerDynamicUse(dynamicUse); |
399 } | 398 } |
400 | 399 |
401 void registerConstSymbol(String name) { | 400 void registerConstSymbol(String name) { |
402 worldImpact.registerConstSymbolName(name); | 401 worldImpact.registerConstSymbolName(name); |
403 } | 402 } |
404 | 403 |
405 void registerSymbolConstructor() { | 404 void registerSymbolConstructor() { |
406 worldImpact.registerFeature(Feature.SYMBOL_CONSTRUCTOR); | 405 worldImpact.registerFeature(Feature.SYMBOL_CONSTRUCTOR); |
407 } | 406 } |
408 | 407 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 @override | 508 @override |
510 void registerInstantiatedType(InterfaceType type) { | 509 void registerInstantiatedType(InterfaceType type) { |
511 registry.registerInstantiatedType(type); | 510 registry.registerInstantiatedType(type); |
512 } | 511 } |
513 | 512 |
514 @override | 513 @override |
515 DartType resolveTypeFromString(Node node, String typeName) { | 514 DartType resolveTypeFromString(Node node, String typeName) { |
516 return visitor.resolveTypeFromString(node, typeName); | 515 return visitor.resolveTypeFromString(node, typeName); |
517 } | 516 } |
518 } | 517 } |
OLD | NEW |