Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
| index 4387ef1168e5dcc830d21f94f599e86cf1123b0e..4ec0052f101835d0fb02b83825186f8e760febc9 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
| @@ -736,6 +736,20 @@ class ResolverTask extends CompilerTask { |
| for (MetadataAnnotation metadata in element.metadata) { |
| metadata.ensureResolved(compiler); |
| } |
| + |
| + // Force resolution of metadata on non-instance members since they may be |
| + // inspected by the backend while emitting. |
|
kasperl
2013/10/18 08:53:07
Maybe update the comment so it's clear where we de
Johnni Winther
2013/10/18 09:09:00
Done.
|
| + // TODO(ahe): Avoid this eager resolution. |
| + element.forEachMember((_, Element member) { |
| + if (!member.isInstanceMember()) { |
| + compiler.withCurrentElement(member, () { |
| + for (MetadataAnnotation metadata in member.metadata) { |
| + metadata.ensureResolved(compiler); |
| + } |
| + }); |
| + } |
| + }); |
| + |
|
kasperl
2013/10/18 08:53:07
Remove newline.
Johnni Winther
2013/10/18 09:09:00
Done.
|
| } |
| void checkClass(ClassElement element) { |