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