| 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 4b640d3963490fb01233035fa15c9a2ff6040a24..d165a6cfc5c8941fb04255c194c8763156a34511 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -1091,16 +1091,13 @@ class JavaScriptBackend {
|
|
|
| /// This method is called immediately after the [library] and its parts have
|
| /// been loaded.
|
| - void setAnnotations(LibraryElement library) {
|
| + void setAnnotations(LibraryEntity library) {
|
| if (!compiler.serialization.isDeserialized(library)) {
|
| + AnnotationProcessor processor = new AnnotationProcessor(compiler);
|
| if (canLibraryUseNative(library)) {
|
| - library.forEachLocalMember((Element element) {
|
| - if (element.isClass) {
|
| - checkNativeAnnotation(compiler, element, nativeBasicDataBuilder);
|
| - }
|
| - });
|
| + processor.extractNativeAnnotations(library, nativeBasicDataBuilder);
|
| }
|
| - checkJsInteropClassAnnotations(compiler, library, nativeBasicDataBuilder);
|
| + processor.extractJsInteropAnnotations(library, nativeBasicDataBuilder);
|
| }
|
| Uri uri = library.canonicalUri;
|
| if (uri == Uris.dart_html) {
|
|
|