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 import '../common/registry.dart' show | 9 import '../common/registry.dart' show |
10 Registry; | 10 Registry; |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 backend.resolutionCallbacks.onThrowExpression(this); | 562 backend.resolutionCallbacks.onThrowExpression(this); |
563 } | 563 } |
564 | 564 |
565 void registerDependency(Element element) { | 565 void registerDependency(Element element) { |
566 mapping.registerDependency(element); | 566 mapping.registerDependency(element); |
567 } | 567 } |
568 | 568 |
569 Setlet<Element> get otherDependencies => mapping.otherDependencies; | 569 Setlet<Element> get otherDependencies => mapping.otherDependencies; |
570 | 570 |
571 void registerStaticInvocation(Element element) { | 571 void registerStaticInvocation(Element element) { |
| 572 // TODO(johnniwinther): Increase precision of [registerStaticUse] and |
| 573 // [registerDependency]. |
572 if (element == null) return; | 574 if (element == null) return; |
573 registerStaticUse(element); | 575 registerStaticUse(element); |
574 registerDependency(element); | 576 registerDependency(element); |
575 } | 577 } |
576 | 578 |
577 void registerInstantiation(InterfaceType type) { | 579 void registerInstantiation(InterfaceType type) { |
578 world.registerInstantiatedType(type, this); | 580 world.registerInstantiatedType(type, this); |
579 } | 581 } |
580 | 582 |
581 void registerAssert(Send node) { | 583 void registerAssert(Send node) { |
(...skipping 16 matching lines...) Expand all Loading... |
598 } | 600 } |
599 | 601 |
600 void registerAsyncMarker(FunctionElement element) { | 602 void registerAsyncMarker(FunctionElement element) { |
601 backend.registerAsyncMarker(element, world, this); | 603 backend.registerAsyncMarker(element, world, this); |
602 } | 604 } |
603 | 605 |
604 void registerAsyncForIn(AsyncForIn node) { | 606 void registerAsyncForIn(AsyncForIn node) { |
605 backend.resolutionCallbacks.onAsyncForIn(node, this); | 607 backend.resolutionCallbacks.onAsyncForIn(node, this); |
606 } | 608 } |
607 } | 609 } |
OLD | NEW |