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 2296691269a6cd24e0434d06ae8ba40a53dc10a3..337b5811a98244dd77eb553d559c3976257013ce 100644 |
--- a/pkg/analyzer/lib/src/summary/summarize_elements.dart |
+++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart |
@@ -220,7 +220,9 @@ class _LibrarySerializer { |
b.name = classElement.name; |
b.typeParameters = |
classElement.typeParameters.map(serializeTypeParam).toList(); |
- if (classElement.supertype != null && !classElement.supertype.isObject) { |
+ if (classElement.supertype == null) { |
+ b.hasNoSupertype = true; |
+ } else if (!classElement.supertype.isObject) { |
b.supertype = serializeTypeRef(classElement.supertype, classElement); |
} |
b.mixins = classElement.mixins |