add: Patchable items and frames
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user