Skip to content

Commit e0f6466

Browse files
committed
Add Access Modifier To OAPH backing property
1 parent 7ea6761 commit e0f6466

File tree

24 files changed

+239
-24
lines changed

24 files changed

+239
-24
lines changed

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableMethods#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableMethodsWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservableProp#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropNestedClasses#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttribute#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeNullableRef#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithAttributeRef#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPFromObservableGeneratorTests.FromObservablePropertiesWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPGeneratorTests.FromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

src/ReactiveUI.SourceGenerator.Tests/OAPH/OAPGeneratorTests.FromFieldNestedClass#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ internal sealed class ObservableAsPropertyAttribute : Attribute
3333
/// The is read only of the OAPH property.
3434
/// </value>
3535
public bool ReadOnly { get; init; } = true;
36+
37+
/// <summary>
38+
/// Gets the AccessModifier of the OAPH property.
39+
/// </summary>
40+
/// <value>
41+
/// The AccessModifier of the OAPH property, protected if true.
42+
/// </value>
43+
public bool UseProtected { get; init; } = false;
3644
}
3745
#nullable restore
3846
#pragma warning restore

0 commit comments

Comments
 (0)