Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1561)

Unified Diff: pkg/analyzer/lib/src/summary/summarize_elements.dart

Issue 1847633002: Fix more strong mode errors in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix copied comment Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698