Index: pkg/analyzer/lib/src/summary/summarize_elements.dart |
diff --git a/pkg/analyzer/lib/src/summary/summarize_elements.dart b/pkg/analyzer/lib/src/summary/summarize_elements.dart |
index 09ea986175f43044ad6ed3403fa73dff073fa1cb..093d5ed45abe01818a80b98c9ee9160cd59caaaf 100644 |
--- a/pkg/analyzer/lib/src/summary/summarize_elements.dart |
+++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart |
@@ -504,10 +504,11 @@ class _CompilationUnitSerializer { |
if (element.metadata.isEmpty) { |
return const <UnlinkedConstBuilder>[]; |
} |
- return element.metadata.map((ElementAnnotationImpl a) { |
+ return element.metadata.map((ElementAnnotation a) { |
_ConstExprSerializer serializer = |
new _ConstExprSerializer(this, element, null); |
- serializer.serializeAnnotation(a.annotationAst); |
+ serializer |
+ .serializeAnnotation((a as ElementAnnotationImpl).annotationAst); |
return serializer.toBuilder(); |
}).toList(); |
} |