add: Patchable items and frames

This commit is contained in:
h z
2025-03-04 11:58:14 +00:00
parent f32feecd4f
commit 7e6b950fee

View File

@@ -40,11 +40,13 @@ public class GenerateRegistryPassThrough : PoloniumTask
.DescendantNodes()
.OfType<ClassDeclarationSyntax>()
.FirstOrDefault(cls => cls.Identifier.Text == "PoloniumRegistry");
IEnumerable<PropertyDeclarationSyntax> properties = clas!.Members
IEnumerable<PropertyDeclarationSyntax> properties = clas?.Members
.OfType<PropertyDeclarationSyntax>()
.Where(m => m.AttributeLists
.SelectMany(a => a.Attributes)
.Any(a => a.Name.ToString() == "RegistryPassThrough"));
if (properties is null)
return false;
foreach (PropertyDeclarationSyntax property in properties)
{
if (HasGetterOnly(property))