Chromium Code Reviews| Index: pkg/compiler/lib/src/common/backend_api.dart |
| diff --git a/pkg/compiler/lib/src/common/backend_api.dart b/pkg/compiler/lib/src/common/backend_api.dart |
| index b4425f5a33c4836764956478cdabb55aeaae3731..8072dc3254771a520c29e78b9d4488f1e7addce6 100644 |
| --- a/pkg/compiler/lib/src/common/backend_api.dart |
| +++ b/pkg/compiler/lib/src/common/backend_api.dart |
| @@ -47,7 +47,7 @@ import '../library_loader.dart' show |
| import '../native/native.dart' as native show |
| NativeEnqueuer; |
| import '../patch_parser.dart' show |
| - checkNativeAnnotation; |
| + checkNativeAnnotation, checkJsInteropAnnotation; |
| import '../resolution/tree_elements.dart' show |
| TreeElements; |
| import '../tree/tree.dart' show |
| @@ -296,6 +296,16 @@ abstract class Backend { |
| } |
| }); |
| } |
| + checkJsInteropAnnotation(compiler, library); |
| + library.forEachLocalMember((Element element) { |
| + checkJsInteropAnnotation(compiler, element); |
| + if (element.isClass) { |
|
sra1
2015/10/06 21:42:17
Is there a way to defer the member checking?
If th
Jacob
2015/10/13 01:19:22
They aren't. Added a short circuit based on
eleme
|
| + ClassElement classElement = element; |
| + classElement.forEachMember((_, memberElement) { |
| + checkJsInteropAnnotation(compiler, memberElement); |
| + }); |
| + } |
| + }); |
| return new Future.value(); |
| } |