Skip to content

Commit 0e28091

Browse files
committed
Trim whitespace and refactor AlsoNotify property handling
Removed trailing whitespace in generated property setters across multiple test verification files. Refactored AlsoNotify property handling in the source generator to filter and add valid property names more efficiently, and simplified the code for generating AlsoNotify attributes. Updated a test summary for clarity.
1 parent 353e0f8 commit 0e28091

File tree

15 files changed

+26
-34
lines changed

15 files changed

+26
-34
lines changed

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactiveFromPartialWithAlsoNotify#TestNs.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public int Test4
1919
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_test4")]
2020
set
2121
{
22-
this.RaiseAndSetIfChanged(ref _test4, value);
22+
this.RaiseAndSetIfChanged(ref _test4, value);
2323
}
2424
}
2525
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactiveProperiesWithAttributes#TestNs.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public int Test3
2121
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_test3")]
2222
set
2323
{
24-
this.RaiseAndSetIfChanged(ref _test3, value);
24+
this.RaiseAndSetIfChanged(ref _test3, value);
2525
}
2626
}
2727
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactiveProperties#TestNs.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public int Test1
1919
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_test1")]
2020
set
2121
{
22-
this.RaiseAndSetIfChanged(ref _test1, value);
22+
this.RaiseAndSetIfChanged(ref _test1, value);
2323
}
2424
}
2525
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesCalledValue#TestNs.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public string Value
1919
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("this.value")]
2020
set
2121
{
22-
this.RaiseAndSetIfChanged(ref this.value, value);
22+
this.RaiseAndSetIfChanged(ref this.value, value);
2323
}
2424
}
2525
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesWithAccess#TestNs.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public int Test2
1919
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_test2")]
2020
set
2121
{
22-
this.RaiseAndSetIfChanged(ref _test2, value);
22+
this.RaiseAndSetIfChanged(ref _test2, value);
2323
}
2424
}
2525
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesWithAttributesAccessAndInheritance#TestNs.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public string? Name
2121
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_name")]
2222
set
2323
{
24-
this.RaiseAndSetIfChanged(ref _name, value);
24+
this.RaiseAndSetIfChanged(ref _name, value);
2525
}
2626
}
2727
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesWithIdenticalClass#TestNs1.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public string? Name
2121
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_name")]
2222
set
2323
{
24-
this.RaiseAndSetIfChanged(ref _name, value);
24+
this.RaiseAndSetIfChanged(ref _name, value);
2525
}
2626
}
2727
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesWithIdenticalClass#TestNs2.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public string? Name
2121
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_name")]
2222
set
2323
{
24-
this.RaiseAndSetIfChanged(ref _name, value);
24+
this.RaiseAndSetIfChanged(ref _name, value);
2525
}
2626
}
2727
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesWithInit#TestNs.TestVM.Properties.g.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public string MustBeSet
1919
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_mustBeSet")]
2020
set
2121
{
22-
this.RaiseAndSetIfChanged(ref _mustBeSet, value);
22+
this.RaiseAndSetIfChanged(ref _mustBeSet, value);
2323
}
2424
}
2525
}

src/ReactiveUI.SourceGenerator.Tests/REACTIVE/ReactiveGeneratorTests.FromReactivePropertiesWithNestedClass#TestNs1.TestViewModel3+TestInnerClass1.Properties.g.verified.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public int TestInner1
2121
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner1")]
2222
set
2323
{
24-
this.RaiseAndSetIfChanged(ref _testInner1, value);
24+
this.RaiseAndSetIfChanged(ref _testInner1, value);
2525
}
2626
}
2727

@@ -33,7 +33,7 @@ public int TestInner11
3333
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner11")]
3434
set
3535
{
36-
this.RaiseAndSetIfChanged(ref _testInner11, value);
36+
this.RaiseAndSetIfChanged(ref _testInner11, value);
3737
}
3838
}
3939
}

0 commit comments

Comments
 (0)