Index: pkg/analyzer/lib/src/generated/element_resolver.dart |
diff --git a/pkg/analyzer/lib/src/generated/element_resolver.dart b/pkg/analyzer/lib/src/generated/element_resolver.dart |
index 3d9f729186d64a7b1823180f4bfe1172aee0b551..b61eb2bdbf2efeb36a9fdbbffc882c05e6bc48c1 100644 |
--- a/pkg/analyzer/lib/src/generated/element_resolver.dart |
+++ b/pkg/analyzer/lib/src/generated/element_resolver.dart |
@@ -1991,7 +1991,7 @@ class ElementResolver extends SimpleAstVisitor<Object> { |
element2.lookUpGetter(name3, _definingLibrary); |
if (getter != null) { |
nameNode3.staticElement = getter; |
- annotation.element = element2; |
+ annotation.element = getter; |
_resolveAnnotationElementGetter(annotation, getter); |
return; |
} |