Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: pkg/compiler/lib/src/frontend_strategy.dart

Issue 2841583002: Add FrontEndStrategy, ResolutionFrontEndStrategy and KernelFrontEndStrategy (Closed)
Patch Set: Updated cf. comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 'elements/entities.dart';
11 import 'environment.dart';
12 import 'js_backend/native_data.dart';
13 import 'library_loader.dart';
14 import 'serialization/task.dart';
15 import 'patch_parser.dart';
16 import 'resolved_uri_translator.dart';
17
18 /// Strategy pattern that defines the connection between the input format and
19 /// the resolved element model.
20 abstract class FrontEndStrategy {
21 /// Creates library loader task for this strategy.
22 LibraryLoaderTask createLibraryLoader(
23 ResolvedUriTranslator uriTranslator,
24 ScriptLoader scriptLoader,
25 ElementScanner scriptScanner,
26 LibraryDeserializer deserializer,
27 PatchResolverFunction patchResolverFunc,
28 PatchParserTask patchParser,
29 Environment environment,
30 DiagnosticReporter reporter,
31 Measurer measurer);
32
33 /// Returns the [ElementEnvironment] for the element model used in this
34 /// strategy.
35 ElementEnvironment get elementEnvironment;
36
37 /// Returns the [AnnotationProcessor] for this strategy.
38 AnnotationProcessor get annotationProcesser;
39 }
40
41 /// Class that performs the mechanics to investigate annotations in the code.
42 abstract class AnnotationProcessor {
43 void extractNativeAnnotations(
44 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder);
45
46 void extractJsInteropAnnotations(
47 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder);
48 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698