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.
1 parent fd713a6 commit 95a8cf9Copy full SHA for 95a8cf9
src/Generator/Passes/GetterSetterToPropertyPass.cs
@@ -74,6 +74,8 @@ protected IEnumerable<Property> GenerateProperties(Class @class)
74
List<Property> properties = GetProperties(@class);
75
foreach (Method method in @class.Methods.Where(
76
m => !m.IsConstructor && !m.IsDestructor && !m.IsOperator && m.IsGenerated &&
77
+ (properties.All(p => p.GetMethod != m && p.SetMethod != m) ||
78
+ m.OriginalFunction != null) &&
79
m.SynthKind != FunctionSynthKind.DefaultValueOverload &&
80
m.SynthKind != FunctionSynthKind.ComplementOperator &&
81
!m.ExcludeFromPasses.Contains(typeof(GetterSetterToPropertyPass))))
0 commit comments