| Index: pkg/compiler/lib/src/native/behavior.dart
|
| diff --git a/pkg/compiler/lib/src/native/behavior.dart b/pkg/compiler/lib/src/native/behavior.dart
|
| index edbefd1f85dd32252c5c02e0f556a59cfc1da233..23bf702b96a4a24c35632956dd35d8ce2084d7ec 100644
|
| --- a/pkg/compiler/lib/src/native/behavior.dart
|
| +++ b/pkg/compiler/lib/src/native/behavior.dart
|
| @@ -652,7 +652,7 @@ class NativeBehavior {
|
| }
|
|
|
| void _overrideWithAnnotations(Element element, Compiler compiler) {
|
| - if (element.metadata.isEmpty) return;
|
| + if (element.implementation.metadata.isEmpty) return;
|
|
|
| DartType lookup(String name) {
|
| Element e = element.buildScope().lookup(name);
|
| @@ -685,10 +685,8 @@ class NativeBehavior {
|
| static _collect(Element element, Compiler compiler, Element annotationClass,
|
| lookup(str)) {
|
| var types = null;
|
| - for (Link<MetadataAnnotation> link = element.metadata;
|
| - !link.isEmpty;
|
| - link = link.tail) {
|
| - MetadataAnnotation annotation = link.head.ensureResolved(compiler);
|
| + for (MetadataAnnotation annotation in element.implementation.metadata) {
|
| + annotation.ensureResolved(compiler);
|
| ConstantValue value =
|
| compiler.constants.getConstantValue(annotation.constant);
|
| if (!value.isConstructedObject) continue;
|
|
|