Fix static properties not being ignored

This commit is contained in:
daver32
2021-07-24 22:20:18 +02:00
parent 73b82d676e
commit 35f8b0a159
3 changed files with 31 additions and 0 deletions
@@ -215,6 +215,11 @@ namespace InterfaceGenerator
private static void GeneratePropertyDefinition(IndentedTextWriter writer, IPropertySymbol propertySymbol)
{
if (propertySymbol.IsStatic)
{
return;
}
bool hasPublicGetter = propertySymbol.GetMethod is not null &&
IsPublicOrInternal(propertySymbol.GetMethod);