We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eab5122 + ebb2040 commit 8fe5fc9Copy full SHA for 8fe5fc9
src/MessagePack.GeneratorCore/CodeAnalysis/TypeCollector.cs
@@ -720,7 +720,12 @@ private ObjectSerializationInfo GetObjectInfo(INamedTypeSymbol type)
720
stringMembers.Add(member.StringKey, member);
721
}
722
723
- this.CollectCore(item.Type); // recursive collect
+ var messagePackFormatter = item.GetAttributes().FirstOrDefault(x => x.AttributeClass.ApproximatelyEqual(this.typeReferences.MessagePackFormatterAttribute))?.ConstructorArguments[0];
724
+
725
+ if (messagePackFormatter == null)
726
+ {
727
+ this.CollectCore(item.Type); // recursive collect
728
+ }
729
730
731
foreach (IFieldSymbol item in type.GetAllMembers().OfType<IFieldSymbol>())
0 commit comments