Skip to content

Commit 958a3ac

Browse files
committed
Update Property builders to remove \ r
1 parent ca80120 commit 958a3ac

8 files changed

+4
-8
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public int TestInner1
2222
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner1")]
2323
set => this.RaiseAndSetIfChanged(ref _testInner1, value);
2424
}
25-
2625
/// <inheritdoc cref="_testInner11"/>
2726
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
2827
public int TestInner11

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public int TestInner3
2424
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner3")]
2525
set => this.RaiseAndSetIfChanged(ref _testInner3, value);
2626
}
27-
2827
/// <inheritdoc cref="_testInner33"/>
2928
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
3029
public int TestInner33

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public int TestInner2
2222
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testInner2")]
2323
set => this.RaiseAndSetIfChanged(ref _testInner2, value);
2424
}
25-
2625
/// <inheritdoc cref="_testInner22"/>
2726
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
2827
public int TestInner22

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public float TestVM3Property
2020
[global::System.Diagnostics.CodeAnalysis.MemberNotNull("_testVM3Property")]
2121
set => this.RaiseAndSetIfChanged(ref _testVM3Property, value);
2222
}
23-
2423
/// <inheritdoc cref="_testVM3Property2"/>
2524
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
2625
public float TestVM3Property2

src/ReactiveUI.SourceGenerators/ObservableAsProperty/ObservableAsPropertyGenerator{FromField}.Execute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ namespace {{containingNamespace}}
241241
private static string GenerateClassWithProperties(string containingTypeName, string containingNamespace, string containingClassVisibility, string containingType, ObservableFieldInfo[] properties)
242242
{
243243
// Includes 2 tabs from the property declarations so no need to add them here.
244-
var propertyDeclarations = string.Join("\n\r", properties.Select(GetPropertySyntax));
244+
var propertyDeclarations = string.Join("\n", properties.Select(GetPropertySyntax));
245245

246246
return
247247
$$"""

src/ReactiveUI.SourceGenerators/ObservableAsProperty/ObservableAsPropertyGenerator{FromObservable}.Execute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ namespace {{containingNamespace}}
168168
private static string GenerateClassWithProperties(string containingTypeName, string containingNamespace, string containingClassVisibility, string containingType, ObservableMethodInfo[] properties)
169169
{
170170
// Includes 2 tabs from the property declarations so no need to add them here.
171-
var propertyDeclarations = string.Join("\n\r", properties.Select(GetPropertySyntax));
171+
var propertyDeclarations = string.Join("\n", properties.Select(GetPropertySyntax));
172172

173173
return
174174
$$"""

src/ReactiveUI.SourceGenerators/Reactive/ReactiveGenerator.Execute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ namespace {{containingNamespace}}
268268
private static string GenerateClassWithProperties(string containingTypeName, string containingNamespace, string containingClassVisibility, string containingType, PropertyInfo[] properties)
269269
{
270270
// Includes 2 tabs from the property declarations so no need to add them here.
271-
var propertyDeclarations = string.Join("\n\r", properties.Select(GetPropertySyntax));
271+
var propertyDeclarations = string.Join("\n", properties.Select(GetPropertySyntax));
272272

273273
return
274274
$$"""

src/ReactiveUI.SourceGenerators/ReactiveCommand/ReactiveCommandGenerator.Execute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ namespace {{containingNamespace}}
141141
private static string GenerateClassWithCommands(string containingTypeName, string containingNamespace, string containingClassVisibility, string containingType, CommandInfo[] commands)
142142
{
143143
// Includes 2 tabs from the property declarations so no need to add them here.
144-
var commandDeclarations = string.Join("\n\r", commands.Select(GetCommandSyntax));
144+
var commandDeclarations = string.Join("\n", commands.Select(GetCommandSyntax));
145145

146146
return
147147
$$"""

0 commit comments

Comments
 (0)