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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2841583002: Add FrontEndStrategy, ResolutionFrontEndStrategy and KernelFrontEndStrategy (Closed)
Patch Set: 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
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..c4cb6f720cc401d91b4bd8097cd83a144211c5e2 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1085,7 +1085,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);
}

Powered by Google App Engine
This is Rietveld 408576698