-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix For ReactiveCommand With Nested Classes
- Loading branch information
1 parent
725bb73
commit 0dc417a
Showing
43 changed files
with
482 additions
and
48 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ObservableMethods#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...leMethodsWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...romObservableProp#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tiesWithAttribute#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ributeNullableRef#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sWithAttributeRef#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ropertiesWithName#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...orTests.FromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ts.NamedFromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ReadOnlyFromField#ReactiveUI.SourceGenerators.ObservableAsPropertyAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mReactiveProperiesWithAttributes#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...activeProperiesWithAttributes#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...atorTests.FromReactiveProperties#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rTests.FromReactiveProperties#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...FromReactivePropertiesWithAccess#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mReactivePropertiesWithAccess#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...thAttributesAccessAndInheritance#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ttributesAccessAndInheritance#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tivePropertiesWithIdenticalClass#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ePropertiesWithIdenticalClass#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...eactivePropertiesWithNestedClass#ReactiveUI.SourceGenerators.AccessModifier.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//HintName: ReactiveUI.SourceGenerators.AccessModifier.g.cs | ||
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
// <auto-generated/> | ||
#pragma warning disable | ||
#nullable enable | ||
namespace ReactiveUI.SourceGenerators; | ||
|
||
/// <summary> | ||
/// AccessModifier. | ||
/// </summary> | ||
internal enum AccessModifier | ||
{ | ||
Public, | ||
Protected, | ||
Internal, | ||
Private, | ||
InternalProtected, | ||
PrivateProtected, | ||
} | ||
|
||
/// <summary> | ||
/// InheritanceModifier. | ||
/// </summary> | ||
internal enum InheritanceModifier | ||
{ | ||
None, | ||
Virtual, | ||
Override, | ||
New, | ||
} | ||
#nullable restore | ||
#pragma warning restore |
35 changes: 35 additions & 0 deletions
35
...tivePropertiesWithNestedClass#ReactiveUI.SourceGenerators.ReactiveAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//HintName: ReactiveUI.SourceGenerators.ReactiveAttribute.g.cs | ||
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
|
||
// <auto-generated/> | ||
#pragma warning disable | ||
#nullable enable | ||
namespace ReactiveUI.SourceGenerators; | ||
|
||
/// <summary> | ||
/// ReactiveAttribute. | ||
/// </summary> | ||
/// <seealso cref="Attribute" /> | ||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] | ||
internal sealed class ReactiveAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Gets the AccessModifier of the set property. | ||
/// </summary> | ||
/// <value> | ||
/// The AccessModifier of the set property. | ||
/// </value> | ||
public AccessModifier SetModifier { get; init; } | ||
|
||
/// <summary> | ||
/// Gets the InheritanceModifier of the property. | ||
/// </sumary> | ||
public InheritanceModifier Inheritance { get; init; } | ||
} | ||
#nullable restore | ||
#pragma warning restore |
39 changes: 39 additions & 0 deletions
39
...PropertiesWithNestedClass#TestNs1.TestViewModel3+TestInnerClass1.Properties.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//HintName: TestNs1.TestViewModel3+TestInnerClass1.Properties.g.cs | ||
// <auto-generated/> | ||
using ReactiveUI; | ||
|
||
#pragma warning disable | ||
#nullable enable | ||
|
||
namespace TestNs1 | ||
{ | ||
public partial class TestViewModel3 | ||
{ | ||
/// <summary> | ||
/// Partial class for the TestInnerClass1 which contains ReactiveUI Reactive property initialization. | ||
/// </summary> | ||
public partial class TestInnerClass1 | ||
{ | ||
/// <inheritdoc cref="_testInner1"/> | ||
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] | ||
public int TestInner1 | ||
{ | ||
get => _testInner1; | ||
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner1")] | ||
set => this.RaiseAndSetIfChanged(ref _testInner1, value); | ||
} | ||
|
||
/// <inheritdoc cref="_testInner11"/> | ||
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] | ||
public int TestInner11 | ||
{ | ||
get => _testInner11; | ||
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner11")] | ||
set => this.RaiseAndSetIfChanged(ref _testInner11, value); | ||
} | ||
} | ||
} | ||
|
||
} | ||
#nullable restore | ||
#pragma warning restore |
42 changes: 42 additions & 0 deletions
42
...stedClass#TestNs1.TestViewModel3+TestInnerClass2+TestInnerClass3.Properties.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
//HintName: TestNs1.TestViewModel3+TestInnerClass2+TestInnerClass3.Properties.g.cs | ||
// <auto-generated/> | ||
using ReactiveUI; | ||
|
||
#pragma warning disable | ||
#nullable enable | ||
|
||
namespace TestNs1 | ||
{ | ||
public partial class TestViewModel3 | ||
{ | ||
public partial class TestInnerClass2 | ||
{ | ||
/// <summary> | ||
/// Partial class for the TestInnerClass3 which contains ReactiveUI Reactive property initialization. | ||
/// </summary> | ||
public partial class TestInnerClass3 | ||
{ | ||
/// <inheritdoc cref="_testInner3"/> | ||
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] | ||
public int TestInner3 | ||
{ | ||
get => _testInner3; | ||
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner3")] | ||
set => this.RaiseAndSetIfChanged(ref _testInner3, value); | ||
} | ||
|
||
/// <inheritdoc cref="_testInner33"/> | ||
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] | ||
public int TestInner33 | ||
{ | ||
get => _testInner33; | ||
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner33")] | ||
set => this.RaiseAndSetIfChanged(ref _testInner33, value); | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
#nullable restore | ||
#pragma warning restore |
39 changes: 39 additions & 0 deletions
39
...PropertiesWithNestedClass#TestNs1.TestViewModel3+TestInnerClass2.Properties.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//HintName: TestNs1.TestViewModel3+TestInnerClass2.Properties.g.cs | ||
// <auto-generated/> | ||
using ReactiveUI; | ||
|
||
#pragma warning disable | ||
#nullable enable | ||
|
||
namespace TestNs1 | ||
{ | ||
public partial class TestViewModel3 | ||
{ | ||
/// <summary> | ||
/// Partial class for the TestInnerClass2 which contains ReactiveUI Reactive property initialization. | ||
/// </summary> | ||
public partial class TestInnerClass2 | ||
{ | ||
/// <inheritdoc cref="_testInner2"/> | ||
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] | ||
public int TestInner2 | ||
{ | ||
get => _testInner2; | ||
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner2")] | ||
set => this.RaiseAndSetIfChanged(ref _testInner2, value); | ||
} | ||
|
||
/// <inheritdoc cref="_testInner22"/> | ||
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] | ||
public int TestInner22 | ||
{ | ||
get => _testInner22; | ||
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner22")] | ||
set => this.RaiseAndSetIfChanged(ref _testInner22, value); | ||
} | ||
} | ||
} | ||
|
||
} | ||
#nullable restore | ||
#pragma warning restore |
Oops, something went wrong.