Index: pkg/compiler/lib/src/serialization/serialization.dart |
diff --git a/pkg/compiler/lib/src/serialization/serialization.dart b/pkg/compiler/lib/src/serialization/serialization.dart |
index 1521f392407e7882859600a7308e4e48236f39a2..95153fdc6cfda22b331a346dc4110de4d0ce0d4b 100644 |
--- a/pkg/compiler/lib/src/serialization/serialization.dart |
+++ b/pkg/compiler/lib/src/serialization/serialization.dart |
@@ -682,6 +682,7 @@ class Serializer { |
if (element == null) { |
throw new ArgumentError('Serializer._getElementDataObject(null)'); |
} |
+ element = element.declaration; |
DataObject dataObject = _elementMap[element]; |
if (dataObject == null) { |
if (!shouldInclude(element)) { |