| 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.frontend_strategy; | 5 library dart2js.frontend_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/tasks.dart'; | 10 import 'common/tasks.dart'; |
| 11 import 'elements/entities.dart'; | 11 import 'elements/entities.dart'; |
| 12 import 'elements/types.dart'; |
| 12 import 'environment.dart'; | 13 import 'environment.dart'; |
| 13 import 'enqueue.dart'; | 14 import 'enqueue.dart'; |
| 14 import 'js_backend/backend.dart'; | 15 import 'js_backend/backend.dart'; |
| 15 import 'js_backend/backend_usage.dart'; | 16 import 'js_backend/backend_usage.dart'; |
| 16 import 'js_backend/custom_elements_analysis.dart'; | 17 import 'js_backend/custom_elements_analysis.dart'; |
| 17 import 'js_backend/interceptor_data.dart'; | 18 import 'js_backend/interceptor_data.dart'; |
| 18 import 'js_backend/mirrors_analysis.dart'; | 19 import 'js_backend/mirrors_analysis.dart'; |
| 19 import 'js_backend/mirrors_data.dart'; | 20 import 'js_backend/mirrors_data.dart'; |
| 20 import 'js_backend/native_data.dart'; | 21 import 'js_backend/native_data.dart'; |
| 21 import 'js_backend/no_such_method_registry.dart'; | 22 import 'js_backend/no_such_method_registry.dart'; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 PatchResolverFunction patchResolverFunc, | 40 PatchResolverFunction patchResolverFunc, |
| 40 PatchParserTask patchParser, | 41 PatchParserTask patchParser, |
| 41 Environment environment, | 42 Environment environment, |
| 42 DiagnosticReporter reporter, | 43 DiagnosticReporter reporter, |
| 43 Measurer measurer); | 44 Measurer measurer); |
| 44 | 45 |
| 45 /// Returns the [ElementEnvironment] for the element model used in this | 46 /// Returns the [ElementEnvironment] for the element model used in this |
| 46 /// strategy. | 47 /// strategy. |
| 47 ElementEnvironment get elementEnvironment; | 48 ElementEnvironment get elementEnvironment; |
| 48 | 49 |
| 50 /// Returns the [DartTypes] for the element model used in this strategy. |
| 51 DartTypes get dartTypes; |
| 52 |
| 49 /// Returns the [AnnotationProcessor] for this strategy. | 53 /// Returns the [AnnotationProcessor] for this strategy. |
| 50 AnnotationProcessor get annotationProcesser; | 54 AnnotationProcessor get annotationProcesser; |
| 51 | 55 |
| 52 /// Creates the [NativeClassFinder] for this strategy. | 56 /// Creates the [NativeClassFinder] for this strategy. |
| 53 NativeClassFinder createNativeClassFinder(NativeBasicData nativeBasicData); | 57 NativeClassFinder createNativeClassFinder(NativeBasicData nativeBasicData); |
| 54 | 58 |
| 55 /// Creates the [NoSuchMethodResolver] corresponding the resolved model of | 59 /// Creates the [NoSuchMethodResolver] corresponding the resolved model of |
| 56 /// this strategy. | 60 /// this strategy. |
| 57 NoSuchMethodResolver createNoSuchMethodResolver(); | 61 NoSuchMethodResolver createNoSuchMethodResolver(); |
| 58 | 62 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 abstract class AnnotationProcessor { | 100 abstract class AnnotationProcessor { |
| 97 void extractNativeAnnotations( | 101 void extractNativeAnnotations( |
| 98 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); | 102 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); |
| 99 | 103 |
| 100 void extractJsInteropAnnotations( | 104 void extractJsInteropAnnotations( |
| 101 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); | 105 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); |
| 102 | 106 |
| 103 void processJsInteropAnnotations( | 107 void processJsInteropAnnotations( |
| 104 NativeBasicData nativeBasicData, NativeDataBuilder nativeDataBuilder); | 108 NativeBasicData nativeBasicData, NativeDataBuilder nativeDataBuilder); |
| 105 } | 109 } |
| OLD | NEW |