| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library dart2js.frontend_strategy; |
| 6 |
| 7 import 'common.dart'; |
| 8 import 'common_elements.dart'; |
| 9 import 'common/tasks.dart'; |
| 10 import 'environment.dart'; |
| 11 import 'library_loader.dart'; |
| 12 import 'native/resolver.dart'; |
| 13 import 'serialization/task.dart'; |
| 14 import 'patch_parser.dart'; |
| 15 import 'resolved_uri_translator.dart'; |
| 16 |
| 17 /// Strategy pattern that defines the connection between the input format and |
| 18 /// the resolved element model. |
| 19 abstract class FrontEndStrategy { |
| 20 /// Creates library loader task for this strategy. |
| 21 LibraryLoaderTask createLibraryLoader( |
| 22 ResolvedUriTranslator uriTranslator, |
| 23 ScriptLoader scriptLoader, |
| 24 ElementScanner scriptScanner, |
| 25 LibraryDeserializer deserializer, |
| 26 PatchResolverFunction patchResolverFunc, |
| 27 PatchParserTask patchParser, |
| 28 Environment environment, |
| 29 DiagnosticReporter reporter, |
| 30 Measurer measurer); |
| 31 |
| 32 /// Returns the [ElementEnvironment] for the element model used in this |
| 33 /// strategy. |
| 34 ElementEnvironment get elementEnvironment; |
| 35 |
| 36 /// Returns the [AnnotationProcessor] for this strategy. |
| 37 AnnotationProcessor get annotationProcesser; |
| 38 } |
| OLD | NEW |