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'; |
(...skipping 29 matching lines...) Expand all Loading... |
40 PatchResolverFunction patchResolverFunc, | 40 PatchResolverFunction patchResolverFunc, |
41 PatchParserTask patchParser, | 41 PatchParserTask patchParser, |
42 Environment environment, | 42 Environment environment, |
43 DiagnosticReporter reporter, | 43 DiagnosticReporter reporter, |
44 Measurer measurer); | 44 Measurer measurer); |
45 | 45 |
46 /// Returns the [ElementEnvironment] for the element model used in this | 46 /// Returns the [ElementEnvironment] for the element model used in this |
47 /// strategy. | 47 /// strategy. |
48 ElementEnvironment get elementEnvironment; | 48 ElementEnvironment get elementEnvironment; |
49 | 49 |
| 50 /// Returns the [CommonElements] for the element model used in this |
| 51 /// strategy. |
| 52 CommonElements get commonElements; |
| 53 |
50 /// Returns the [DartTypes] for the element model used in this strategy. | 54 /// Returns the [DartTypes] for the element model used in this strategy. |
51 DartTypes get dartTypes; | 55 DartTypes get dartTypes; |
52 | 56 |
53 /// Returns the [AnnotationProcessor] for this strategy. | 57 /// Returns the [AnnotationProcessor] for this strategy. |
54 AnnotationProcessor get annotationProcesser; | 58 AnnotationProcessor get annotationProcesser; |
55 | 59 |
56 /// Creates the [NativeClassFinder] for this strategy. | 60 /// Creates the [NativeClassFinder] for this strategy. |
57 NativeClassFinder createNativeClassFinder(NativeBasicData nativeBasicData); | 61 NativeClassFinder createNativeClassFinder(NativeBasicData nativeBasicData); |
58 | 62 |
59 /// Creates the [NoSuchMethodResolver] corresponding the resolved model of | 63 /// Creates the [NoSuchMethodResolver] corresponding the resolved model of |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 abstract class AnnotationProcessor { | 106 abstract class AnnotationProcessor { |
103 void extractNativeAnnotations( | 107 void extractNativeAnnotations( |
104 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); | 108 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); |
105 | 109 |
106 void extractJsInteropAnnotations( | 110 void extractJsInteropAnnotations( |
107 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); | 111 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); |
108 | 112 |
109 void processJsInteropAnnotations( | 113 void processJsInteropAnnotations( |
110 NativeBasicData nativeBasicData, NativeDataBuilder nativeDataBuilder); | 114 NativeBasicData nativeBasicData, NativeDataBuilder nativeDataBuilder); |
111 } | 115 } |
OLD | NEW |