Index: pkg/analyzer/test/src/summary/element_text.dart |
diff --git a/pkg/analyzer/test/src/summary/element_text.dart b/pkg/analyzer/test/src/summary/element_text.dart |
index c7897de4f32758a5f1824bb48b24292a6075658e..ef36e94ba9290e3393991e64498c9416f29b53ac 100644 |
--- a/pkg/analyzer/test/src/summary/element_text.dart |
+++ b/pkg/analyzer/test/src/summary/element_text.dart |
@@ -278,7 +278,9 @@ class _ElementWriter { |
buffer.write('('); |
} |
- if (e is Annotation) { |
+ if (e == null) { |
+ buffer.write('<null>'); |
+ } else if (e is Annotation) { |
buffer.write('@'); |
writeExpression(e.name); |
if (e.constructorName != null) { |