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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 /// Creates the [MirrorsDataBuilder] for this strategy. | 90 /// Creates the [MirrorsDataBuilder] for this strategy. |
91 MirrorsDataBuilder createMirrorsDataBuilder(); | 91 MirrorsDataBuilder createMirrorsDataBuilder(); |
92 | 92 |
93 /// Creates the [MirrorsResolutionAnalysis] for this strategy. | 93 /// Creates the [MirrorsResolutionAnalysis] for this strategy. |
94 // TODO(johnniwinther): Avoid passing [JavaScriptBackend]. | 94 // TODO(johnniwinther): Avoid passing [JavaScriptBackend]. |
95 MirrorsResolutionAnalysis createMirrorsResolutionAnalysis( | 95 MirrorsResolutionAnalysis createMirrorsResolutionAnalysis( |
96 JavaScriptBackend backend); | 96 JavaScriptBackend backend); |
97 | 97 |
98 /// Creates the [RuntimeTypesNeedBuilder] for this strategy. | 98 /// Creates the [RuntimeTypesNeedBuilder] for this strategy. |
99 RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder(); | 99 RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder(); |
| 100 |
| 101 /// Creates a [SourceSpan] from [spannable] in context of [currentElement]. |
| 102 SourceSpan spanFromSpannable(Spannable spannable, Entity currentElement); |
100 } | 103 } |
101 | 104 |
102 /// Class that performs the mechanics to investigate annotations in the code. | 105 /// Class that performs the mechanics to investigate annotations in the code. |
103 abstract class AnnotationProcessor { | 106 abstract class AnnotationProcessor { |
104 void extractNativeAnnotations( | 107 void extractNativeAnnotations( |
105 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); | 108 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); |
106 | 109 |
107 void extractJsInteropAnnotations( | 110 void extractJsInteropAnnotations( |
108 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); | 111 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); |
109 | 112 |
110 void processJsInteropAnnotations( | 113 void processJsInteropAnnotations( |
111 NativeBasicData nativeBasicData, NativeDataBuilder nativeDataBuilder); | 114 NativeBasicData nativeBasicData, NativeDataBuilder nativeDataBuilder); |
112 } | 115 } |
OLD | NEW |