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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/frontend_strategy.dart ('k') | pkg/compiler/lib/src/kernel/kernel_strategy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 3e775744f25f401bd62cb1fc5792ce020aaa22ed..a4b20d58d2139240cc64f2aebf2007fff8ff8416 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -31,6 +31,7 @@ import '../enqueue.dart'
ResolutionEnqueuer,
ResolutionWorkItemBuilder,
TreeShakingEnqueuerStrategy;
+import '../frontend_strategy.dart';
import '../io/multi_information.dart' show MultiSourceInformationStrategy;
import '../io/position_information.dart' show PositionSourceInformationStrategy;
import '../io/source_information.dart' show SourceInformationStrategy;
@@ -1085,7 +1086,8 @@ class JavaScriptBackend {
/// been loaded.
void setAnnotations(LibraryEntity library) {
if (!compiler.serialization.isDeserialized(library)) {
- AnnotationProcessor processor = new AnnotationProcessor(compiler);
+ AnnotationProcessor processor =
+ compiler.frontEndStrategy.annotationProcesser;
if (canLibraryUseNative(library)) {
processor.extractNativeAnnotations(library, nativeBasicDataBuilder);
}
« no previous file with comments | « pkg/compiler/lib/src/frontend_strategy.dart ('k') | pkg/compiler/lib/src/kernel/kernel_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698