Index: pkg/compiler/lib/src/parser/member_listener.dart |
diff --git a/pkg/compiler/lib/src/parser/member_listener.dart b/pkg/compiler/lib/src/parser/member_listener.dart |
index 08656d3325b7f692a430a05880ab6b19d4707c8c..c9cbd48e4aa0455e55e398e0cb1859a0a52b182b 100644 |
--- a/pkg/compiler/lib/src/parser/member_listener.dart |
+++ b/pkg/compiler/lib/src/parser/member_listener.dart |
@@ -153,10 +153,7 @@ class MemberListener extends NodeListener { |
} |
void addMetadata(ElementX memberElement) { |
- for (Link link = metadata; !link.isEmpty; link = link.tail) { |
- memberElement.addMetadata(link.head); |
- } |
- metadata = const Link<MetadataAnnotation>(); |
+ memberElement.metadata = metadata.toList(); |
} |
void addMember(ElementX memberElement) { |