Index: pkg/analyzer/lib/src/summary/resynthesize.dart |
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart |
index 2df51d4c8d8b4ae6cff8f05ff7fbf1b558aa3c3a..0fe2a4da4f125dbadab7bb6754918265ca428655 100644 |
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart |
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart |
@@ -1511,7 +1511,8 @@ class _UnitResynthesizer { |
constructorName = null; |
} |
elementAnnotation.annotationAst = AstFactory.annotation2( |
- typeName, constructorName, constExpr.argumentList); |
+ typeName, constructorName, constExpr.argumentList) |
+ ..element = constExpr.staticElement; |
} else { |
throw new StateError( |
'Unexpected annotation type: ${constExpr.runtimeType}'); |