| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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_strategy; | 5 library dart2js.resolution_strategy; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common_elements.dart'; | 8 import '../common_elements.dart'; |
| 9 import '../common/backend_api.dart'; | 9 import '../common/backend_api.dart'; |
| 10 import '../common/names.dart'; | 10 import '../common/names.dart'; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 import '../enqueue.dart'; | 22 import '../enqueue.dart'; |
| 23 import '../frontend_strategy.dart'; | 23 import '../frontend_strategy.dart'; |
| 24 import '../js_backend/backend.dart'; | 24 import '../js_backend/backend.dart'; |
| 25 import '../js_backend/backend_usage.dart'; | 25 import '../js_backend/backend_usage.dart'; |
| 26 import '../js_backend/custom_elements_analysis.dart'; | 26 import '../js_backend/custom_elements_analysis.dart'; |
| 27 import '../js_backend/interceptor_data.dart'; | 27 import '../js_backend/interceptor_data.dart'; |
| 28 import '../js_backend/mirrors_analysis.dart'; | 28 import '../js_backend/mirrors_analysis.dart'; |
| 29 import '../js_backend/mirrors_data.dart'; | 29 import '../js_backend/mirrors_data.dart'; |
| 30 import '../js_backend/native_data.dart'; | 30 import '../js_backend/native_data.dart'; |
| 31 import '../js_backend/no_such_method_registry.dart'; | 31 import '../js_backend/no_such_method_registry.dart'; |
| 32 import '../js_backend/runtime_types.dart'; |
| 32 import '../library_loader.dart'; | 33 import '../library_loader.dart'; |
| 33 import '../native/resolver.dart'; | 34 import '../native/resolver.dart'; |
| 34 import '../serialization/task.dart'; | 35 import '../serialization/task.dart'; |
| 35 import '../patch_parser.dart'; | 36 import '../patch_parser.dart'; |
| 36 import '../resolved_uri_translator.dart'; | 37 import '../resolved_uri_translator.dart'; |
| 37 import '../universe/call_structure.dart'; | 38 import '../universe/call_structure.dart'; |
| 38 import '../universe/use.dart'; | 39 import '../universe/use.dart'; |
| 39 import '../universe/world_builder.dart'; | 40 import '../universe/world_builder.dart'; |
| 40 import '../universe/world_impact.dart'; | 41 import '../universe/world_impact.dart'; |
| 41 import 'no_such_method_resolver.dart'; | 42 import 'no_such_method_resolver.dart'; |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 @override | 677 @override |
| 677 WorkItem createWorkItem(MemberElement element) { | 678 WorkItem createWorkItem(MemberElement element) { |
| 678 assert(invariant(element, element.isDeclaration)); | 679 assert(invariant(element, element.isDeclaration)); |
| 679 if (element.isMalformed) return null; | 680 if (element.isMalformed) return null; |
| 680 | 681 |
| 681 assert(invariant(element, element is AnalyzableElement, | 682 assert(invariant(element, element is AnalyzableElement, |
| 682 message: 'Element $element is not analyzable.')); | 683 message: 'Element $element is not analyzable.')); |
| 683 return _resolution.createWorkItem(element); | 684 return _resolution.createWorkItem(element); |
| 684 } | 685 } |
| 685 } | 686 } |
| OLD | NEW |