From c11c28abfbbe1ab22afefa6aad87e1a5123b63ab Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 10:58:26 +0200 Subject: [PATCH 01/12] ? --- .../DTO/ClassWithInitProperties.cs | 2 ++ ...ts.DTO.ClassWithInitPropertiesBuilder.g.cs | 36 ++++++++++--------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs b/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs index 1395a71..d262536 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs @@ -9,5 +9,7 @@ public class ClassWithInitProperties public string ProductName { get; init; } public string PrivateProductName { get; private init; } + + public required string RequiredTest { get; set; } } } \ No newline at end of file diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs index 10ffc84..f319dab 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs @@ -51,21 +51,21 @@ public ClassWithInitPropertiesBuilder WithProductName(Func func) return this; } - private bool _Constructor1040722879_IsSet; - private Lazy _Constructor1040722879 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties()); - public ClassWithInitPropertiesBuilder UsingConstructor() - { - _Constructor1040722879 = new Lazy(() => - { - return new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties - ( + //private bool _Constructor1040722879_IsSet; + //private Lazy _Constructor1040722879 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties()); + //public ClassWithInitPropertiesBuilder UsingConstructor() + //{ + // _Constructor1040722879 = new Lazy(() => + // { + // return new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties + // ( - ); - }); - _Constructor1040722879_IsSet = true; + // ); + // }); + // _Constructor1040722879_IsSet = true; - return this; - } + // return this; + //} public ClassWithInitPropertiesBuilder UsingInstance(ClassWithInitProperties value) => UsingInstance(() => value); @@ -91,13 +91,14 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) { Normal = _normal.Value, SiteId = _siteId.Value, - ProductName = _productName.Value + ProductName = _productName.Value, + RequiredTest = default! }; return instance; } - if (_Constructor1040722879_IsSet) { instance = _Constructor1040722879.Value; } + //if (_Constructor1040722879_IsSet) { instance = _Constructor1040722879.Value; } else { instance = Default(); } return instance; @@ -111,7 +112,10 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) return Instance.Value; } - public static ClassWithInitProperties Default() => new ClassWithInitProperties(); + public static ClassWithInitProperties Default() => new ClassWithInitProperties + { + RequiredTest = default! + }; } } From f972e0902afdcc8c4a43e1e922d1d0e94daa1d1a Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 11:21:05 +0200 Subject: [PATCH 02/12] AddRequiredProperties --- .../FluentBuilderClassesGenerator.cs | 17 ++++++++++++++++- .../Helpers/DefaultValueHelper.cs | 6 +++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs index 4c16b17..f76a27c 100644 --- a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs +++ b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs @@ -498,11 +498,26 @@ private static string GenerateSeveralMethods(FluentData fluentData, ClassSymbol var (defaultValue, _) = DefaultValueHelper.GetDefaultValue(p.Symbol, p.Symbol.Type); defaultValues.Add(defaultValue); } - output.AppendLine(8, $"public static {className} Default() => new {className}({string.Join(", ", defaultValues)});"); + output.AppendLine(8, $"public static {className} Default() => new {className}({string.Join(", ", defaultValues)})"); + output.AppendLine(8, "{"); + AddRequiredProperties(output, propertiesPublicSettable.Where(p => p.IsRequired)); + output.AppendLine(8, "};"); return output.ToString(); } + private static void AddRequiredProperties(StringBuilder output, IEnumerable properties) + { + var requiredValues = new List(); + foreach (var p in properties.Where(p => p.IsRequired)) + { + var (defaultValue, _) = DefaultValueHelper.GetDefaultValue(p, p.Type); + requiredValues.Add($"{p.Name} = {defaultValue}"); + } + output.AppendLines(12, requiredValues, ",\r\n"); + output.AppendLine(8, "};"); + } + private static void BuildPrivateSetMethod(StringBuilder output, string className, IPropertySymbol property) { output.AppendLine(8, $"private void Set{property.Name}({className} instance, {property.Type} value)"); diff --git a/src/FluentBuilderGenerator/Helpers/DefaultValueHelper.cs b/src/FluentBuilderGenerator/Helpers/DefaultValueHelper.cs index 8f73587..fc9ee61 100644 --- a/src/FluentBuilderGenerator/Helpers/DefaultValueHelper.cs +++ b/src/FluentBuilderGenerator/Helpers/DefaultValueHelper.cs @@ -8,7 +8,7 @@ namespace FluentBuilderGenerator.Helpers; internal static class DefaultValueHelper { - private static readonly SyntaxKind[] ExcludedSyntaxKinds = { SyntaxKind.SuppressNullableWarningExpression }; + private static readonly SyntaxKind[] ExcludedSyntaxKinds = [SyntaxKind.SuppressNullableWarningExpression]; /// /// Check if the has a value set, in that case try to get that value and return it, and return the usings. @@ -26,9 +26,9 @@ internal static (string DefaultValue, IReadOnlyList? ExtraUsings) GetDef if (propertyDeclarationSyntax?.Initializer != null && !ExcludedSyntaxKinds.Contains(propertyDeclarationSyntax.Initializer.Value.Kind())) { - var thisUsings = rootSyntaxNode.FindDescendantNodes().Select(ud => ud.Name.ToString()); + var thisUsings = rootSyntaxNode.FindDescendantNodes().Select(ud => ud.Name!.ToString()); - var ancestorUsings = rootSyntaxNode.GetAncestorsUsings().Select(ud => ud.Name.ToString()); + var ancestorUsings = rootSyntaxNode.GetAncestorsUsings().Select(ud => ud.Name!.ToString()); var extraUsings = thisUsings.Union(ancestorUsings).Distinct().ToList(); From 2492122d154054f9a59715cb46a0fd3bf70a7c27 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 11:26:27 +0200 Subject: [PATCH 03/12] . --- .../FluentBuilderClassesGenerator.cs | 11 +++-- ...ts.DTO.ClassWithInitPropertiesBuilder.g.cs | 46 +++++++++++-------- 2 files changed, 36 insertions(+), 21 deletions(-) diff --git a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs index f76a27c..d267587 100644 --- a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs +++ b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs @@ -84,7 +84,7 @@ private string CreateClassBuilderCode(FluentData fluentData, ClassSymbol classSy throw new NotSupportedException($"Unable to generate a FluentBuilder for the class '{classSymbol.NamedTypeSymbol}' because no public constructor is defined."); } - var constructorCode = GenerateUsingConstructorCode(classSymbol, publicConstructors); + var constructorCode = GenerateUsingConstructorCode(fluentData, classSymbol, publicConstructors); var propertiesCode = GenerateWithPropertyCode(fluentData, classSymbol, allClassSymbols); @@ -124,11 +124,13 @@ public static partial class {{classSymbol.BuilderClassName.ToSafeClassName()}}Ex } private static (StringBuilder StringBuilder, IReadOnlyList ExtraUsings) GenerateUsingConstructorCode( + FluentData fluentData, ClassSymbol classSymbol, IReadOnlyList publicConstructors ) { var builderClassName = classSymbol.BuilderClassName; + var (propertiesPublicSettable, _) = GetProperties(classSymbol, fluentData.HandleBaseClasses, fluentData.Accessibility); var extraUsings = new List(); @@ -154,7 +156,11 @@ IReadOnlyList publicConstructors defaultValues.Add(defaultValue); } - sb.AppendLine(8, $"private Lazy<{classSymbol.NamedTypeSymbol}> _Constructor{constructorHashCode} = new Lazy<{classSymbol.NamedTypeSymbol}>(() => new {classSymbol.NamedTypeSymbol}({string.Join(",", defaultValues)}));"); + sb.AppendLine(8, $"private Lazy<{classSymbol.NamedTypeSymbol}> _Constructor{constructorHashCode} = new Lazy<{classSymbol.NamedTypeSymbol}>(() => new {classSymbol.NamedTypeSymbol}({string.Join(",", defaultValues)})"); + sb.AppendLine(8, "{"); + AddRequiredProperties(sb, propertiesPublicSettable.Where(p => p.IsRequired)); + sb.AppendLine(8, "});"); + sb.AppendLine(8, $"public {builderClassName} UsingConstructor({constructorParametersAsString})"); sb.AppendLine(8, @"{"); @@ -515,7 +521,6 @@ private static void AddRequiredProperties(StringBuilder output, IEnumerable func) _productName = new Lazy(func); return this; } + private bool _requiredTestIsSet; + private Lazy _requiredTest = new Lazy(() => string.Empty); + public ClassWithInitPropertiesBuilder WithRequiredTest(string value) => WithRequiredTest(() => value); + public ClassWithInitPropertiesBuilder WithRequiredTest(Func func) + { + _requiredTest = new Lazy(func); + _requiredTestIsSet = true; + return this; + } - //private bool _Constructor1040722879_IsSet; - //private Lazy _Constructor1040722879 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties()); - //public ClassWithInitPropertiesBuilder UsingConstructor() - //{ - // _Constructor1040722879 = new Lazy(() => - // { - // return new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties - // ( - - // ); - // }); - // _Constructor1040722879_IsSet = true; + private bool _Constructor1040722879_IsSet; + private Lazy _Constructor1040722879 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties() + { + RequiredTest = string.Empty + }); + public ClassWithInitPropertiesBuilder UsingConstructor() + { + _Constructor1040722879 = new Lazy(() => + { + return null; + }); + _Constructor1040722879_IsSet = true; - // return this; - //} + return this; + } public ClassWithInitPropertiesBuilder UsingInstance(ClassWithInitProperties value) => UsingInstance(() => value); @@ -92,13 +101,13 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) Normal = _normal.Value, SiteId = _siteId.Value, ProductName = _productName.Value, - RequiredTest = default! + RequiredTest = _requiredTest.Value }; return instance; } - //if (_Constructor1040722879_IsSet) { instance = _Constructor1040722879.Value; } + if (_Constructor1040722879_IsSet) { instance = _Constructor1040722879.Value; } else { instance = Default(); } return instance; @@ -106,15 +115,16 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) } if (_normalIsSet) { Instance.Value.Normal = _normal.Value; } + if (_requiredTestIsSet) { Instance.Value.RequiredTest = _requiredTest.Value; } PostBuild(Instance.Value); return Instance.Value; } - public static ClassWithInitProperties Default() => new ClassWithInitProperties + public static ClassWithInitProperties Default() => new ClassWithInitProperties() { - RequiredTest = default! + RequiredTest = string.Empty }; } From 17d5654197455e1829ddbf4d086a815cef5a9d0c Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 11:37:42 +0200 Subject: [PATCH 04/12] . --- .../FluentBuilderClassesGenerator.cs | 27 ++++++++++++------- ...ts.DTO.ClassWithInitPropertiesBuilder.g.cs | 8 +++++- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs index d267587..d46b282 100644 --- a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs +++ b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs @@ -129,11 +129,11 @@ private static (StringBuilder StringBuilder, IReadOnlyList ExtraUsings) IReadOnlyList publicConstructors ) { + var extraUsings = new List(); + var builderClassName = classSymbol.BuilderClassName; var (propertiesPublicSettable, _) = GetProperties(classSymbol, fluentData.HandleBaseClasses, fluentData.Accessibility); - var extraUsings = new List(); - var sb = new StringBuilder(); foreach (var publicConstructor in publicConstructors) { @@ -156,9 +156,11 @@ IReadOnlyList publicConstructors defaultValues.Add(defaultValue); } + var requiredProperties = GetRequiredProperties(propertiesPublicSettable); + sb.AppendLine(8, $"private Lazy<{classSymbol.NamedTypeSymbol}> _Constructor{constructorHashCode} = new Lazy<{classSymbol.NamedTypeSymbol}>(() => new {classSymbol.NamedTypeSymbol}({string.Join(",", defaultValues)})"); sb.AppendLine(8, "{"); - AddRequiredProperties(sb, propertiesPublicSettable.Where(p => p.IsRequired)); + sb.AppendLines(12, requiredProperties, ",\r\n"); sb.AppendLine(8, "});"); @@ -171,7 +173,10 @@ IReadOnlyList publicConstructors sb.AppendLine(8, $" return new {classSymbol.NamedTypeSymbol}"); sb.AppendLine(8, @" ("); sb.AppendLines(20, constructorParameters.Select(x => x.Symbol.Name), ", "); - sb.AppendLine(8, @" );"); + sb.AppendLine(8, @" )"); + sb.AppendLine(8, @" {"); + sb.AppendLines(20, requiredProperties, ",\r\n"); + sb.AppendLine(8, @" };"); sb.AppendLine(8, @" });"); @@ -227,7 +232,7 @@ IReadOnlyList publicConstructors } sb.AppendLine(!initOnly, $" private bool _{CamelCase(property.Name)}IsSet;"); - + sb.AppendLine($" private Lazy<{property.Type}> _{CamelCase(property.Name)} = new Lazy<{property.Type}>(() => {defaultValue});"); sb.AppendLine($" public {builderClassName} With{property.Name}({type} value) => With{property.Name}(() => value);"); @@ -480,7 +485,7 @@ private static string GenerateSeveralMethods(FluentData fluentData, ClassSymbol } output.AppendLine(20, "else { instance = Default(); }"); output.AppendLine(); - + output.AppendLine(20, "return instance;"); output.AppendLine(8, @" });"); @@ -489,7 +494,7 @@ private static string GenerateSeveralMethods(FluentData fluentData, ClassSymbol output.AppendLine(); output.AppendLines(12, propertiesPublicSettable.Where(p => !p.IsInitOnly()).Select(property => $"if (_{CamelCase(property.Name)}IsSet) {{ Instance.Value.{property.Name} = _{CamelCase(property.Name)}.Value; }}")); output.AppendLines(12, propertiesPrivateSettable.Where(p => !p.IsInitOnly()).Select(property => $"if (_{CamelCase(property.Name)}IsSet) {{ Set{property.Name}(Instance.Value, _{CamelCase(property.Name)}.Value); }}")); - + output.AppendLine(8, @" PostBuild(Instance.Value);"); output.AppendLine(); @@ -506,13 +511,14 @@ private static string GenerateSeveralMethods(FluentData fluentData, ClassSymbol } output.AppendLine(8, $"public static {className} Default() => new {className}({string.Join(", ", defaultValues)})"); output.AppendLine(8, "{"); - AddRequiredProperties(output, propertiesPublicSettable.Where(p => p.IsRequired)); + var requiredProperties = GetRequiredProperties(propertiesPublicSettable); + output.AppendLines(12, requiredProperties, ",\r\n"); output.AppendLine(8, "};"); return output.ToString(); } - private static void AddRequiredProperties(StringBuilder output, IEnumerable properties) + private static IReadOnlyList GetRequiredProperties(IEnumerable properties) { var requiredValues = new List(); foreach (var p in properties.Where(p => p.IsRequired)) @@ -520,7 +526,8 @@ private static void AddRequiredProperties(StringBuilder output, IEnumerable(() => { - return null; + return new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties + ( + + ) + { + RequiredTest = string.Empty + }; }); _Constructor1040722879_IsSet = true; From ab00d4118284cd270ec9f71e5a8ea6bc2ef0cef6 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 11:39:37 +0200 Subject: [PATCH 05/12] req --- .../FluentBuilderClassesGenerator.cs | 6 +++--- .../DTO/ClassWithInitProperties.cs | 2 ++ ...ts.DTO.ClassWithInitPropertiesBuilder.g.cs | 19 +++++++++++++++---- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs index d46b282..4f15ee1 100644 --- a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs +++ b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs @@ -160,7 +160,7 @@ IReadOnlyList publicConstructors sb.AppendLine(8, $"private Lazy<{classSymbol.NamedTypeSymbol}> _Constructor{constructorHashCode} = new Lazy<{classSymbol.NamedTypeSymbol}>(() => new {classSymbol.NamedTypeSymbol}({string.Join(",", defaultValues)})"); sb.AppendLine(8, "{"); - sb.AppendLines(12, requiredProperties, ",\r\n"); + sb.AppendLines(12, requiredProperties, ","); sb.AppendLine(8, "});"); @@ -175,7 +175,7 @@ IReadOnlyList publicConstructors sb.AppendLines(20, constructorParameters.Select(x => x.Symbol.Name), ", "); sb.AppendLine(8, @" )"); sb.AppendLine(8, @" {"); - sb.AppendLines(20, requiredProperties, ",\r\n"); + sb.AppendLines(20, requiredProperties, ","); sb.AppendLine(8, @" };"); sb.AppendLine(8, @" });"); @@ -512,7 +512,7 @@ private static string GenerateSeveralMethods(FluentData fluentData, ClassSymbol output.AppendLine(8, $"public static {className} Default() => new {className}({string.Join(", ", defaultValues)})"); output.AppendLine(8, "{"); var requiredProperties = GetRequiredProperties(propertiesPublicSettable); - output.AppendLines(12, requiredProperties, ",\r\n"); + output.AppendLines(12, requiredProperties, ","); output.AppendLine(8, "};"); return output.ToString(); diff --git a/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs b/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs index d262536..a89a370 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs @@ -11,5 +11,7 @@ public class ClassWithInitProperties public string PrivateProductName { get; private init; } public required string RequiredTest { get; set; } + + public required string RequiredTestInit { get; init; } } } \ No newline at end of file diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs index 3bd81c2..f1e3899 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs @@ -59,11 +59,19 @@ public ClassWithInitPropertiesBuilder WithRequiredTest(Func func) _requiredTestIsSet = true; return this; } + private Lazy _requiredTestInit = new Lazy(() => string.Empty); + public ClassWithInitPropertiesBuilder WithRequiredTestInit(string value) => WithRequiredTestInit(() => value); + public ClassWithInitPropertiesBuilder WithRequiredTestInit(Func func) + { + _requiredTestInit = new Lazy(func); + return this; + } private bool _Constructor1040722879_IsSet; private Lazy _Constructor1040722879 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties() { - RequiredTest = string.Empty + RequiredTest = string.Empty, + RequiredTestInit = string.Empty }); public ClassWithInitPropertiesBuilder UsingConstructor() { @@ -74,7 +82,8 @@ public ClassWithInitPropertiesBuilder UsingConstructor() ) { - RequiredTest = string.Empty + RequiredTest = string.Empty, + RequiredTestInit = string.Empty }; }); _Constructor1040722879_IsSet = true; @@ -107,7 +116,8 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) Normal = _normal.Value, SiteId = _siteId.Value, ProductName = _productName.Value, - RequiredTest = _requiredTest.Value + RequiredTest = _requiredTest.Value, + RequiredTestInit = _requiredTestInit.Value }; return instance; @@ -130,7 +140,8 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) public static ClassWithInitProperties Default() => new ClassWithInitProperties() { - RequiredTest = string.Empty + RequiredTest = string.Empty, + RequiredTestInit = string.Empty }; } From 29955f801d60a56f5d4eee9383ce0daaeb9cf6ff Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 11:43:51 +0200 Subject: [PATCH 06/12] X = default! --- .../DTO/ClassWithInitProperties.cs | 7 +++++++ ...atorTests.DTO.ClassWithInitPropertiesBuilder.g.cs | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs b/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs index a89a370..d7a9240 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/ClassWithInitProperties.cs @@ -13,5 +13,12 @@ public class ClassWithInitProperties public required string RequiredTest { get; set; } public required string RequiredTestInit { get; init; } + + public required ClassWithInitProperties2 X { get; init; } + } + + public class ClassWithInitProperties2 + { + public required string X { get; set; } } } \ No newline at end of file diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs index f1e3899..85f74c5 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs @@ -71,7 +71,8 @@ public ClassWithInitPropertiesBuilder WithRequiredTestInit(Func func) private Lazy _Constructor1040722879 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties() { RequiredTest = string.Empty, - RequiredTestInit = string.Empty + RequiredTestInit = string.Empty, + X = default! }); public ClassWithInitPropertiesBuilder UsingConstructor() { @@ -83,7 +84,8 @@ public ClassWithInitPropertiesBuilder UsingConstructor() ) { RequiredTest = string.Empty, - RequiredTestInit = string.Empty + RequiredTestInit = string.Empty, + X = default! }; }); _Constructor1040722879_IsSet = true; @@ -117,7 +119,8 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) SiteId = _siteId.Value, ProductName = _productName.Value, RequiredTest = _requiredTest.Value, - RequiredTestInit = _requiredTestInit.Value + RequiredTestInit = _requiredTestInit.Value, + X = default! }; return instance; @@ -141,7 +144,8 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) public static ClassWithInitProperties Default() => new ClassWithInitProperties() { RequiredTest = string.Empty, - RequiredTestInit = string.Empty + RequiredTestInit = string.Empty, + X = default! }; } From 4345645cf2c7d683a644bc36daa864671b10d7fc Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 11:51:45 +0200 Subject: [PATCH 07/12] def --- .../Extensions/PropertySymbolExtensions.cs | 13 +++++++++++++ .../FluentBuilderClassesGenerator.cs | 16 ++-------------- .../Helpers/DefaultValueHelper.cs | 10 ++++++++-- ...Tests.DTO.ClassWithInitPropertiesBuilder.g.cs | 15 +++++++++++---- 4 files changed, 34 insertions(+), 20 deletions(-) diff --git a/src/FluentBuilderGenerator/Extensions/PropertySymbolExtensions.cs b/src/FluentBuilderGenerator/Extensions/PropertySymbolExtensions.cs index 8b7645d..cfee985 100644 --- a/src/FluentBuilderGenerator/Extensions/PropertySymbolExtensions.cs +++ b/src/FluentBuilderGenerator/Extensions/PropertySymbolExtensions.cs @@ -1,3 +1,4 @@ +using FluentBuilderGenerator.Helpers; using FluentBuilderGenerator.Types; using Microsoft.CodeAnalysis; @@ -15,6 +16,18 @@ internal static class PropertySymbolExtensions FluentTypeKind.IReadOnlyList ]; + internal static IReadOnlyList GetRequiredPropertiesAsAssignments(this IEnumerable properties) + { + var requiredValues = new List(); + foreach (var p in properties.Where(p => p.IsRequired)) + { + var (defaultValue, _) = DefaultValueHelper.GetDefaultValue(p, p.Type); + requiredValues.Add($"{p.Name} = {defaultValue}"); + } + + return requiredValues; + } + internal static bool IsInitOnly(this IPropertySymbol property) { return property.SetMethod is { IsInitOnly: true }; diff --git a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs index 4f15ee1..fee50c3 100644 --- a/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs +++ b/src/FluentBuilderGenerator/FileGenerators/FluentBuilderClassesGenerator.cs @@ -156,7 +156,7 @@ IReadOnlyList publicConstructors defaultValues.Add(defaultValue); } - var requiredProperties = GetRequiredProperties(propertiesPublicSettable); + var requiredProperties = propertiesPublicSettable.GetRequiredPropertiesAsAssignments(); sb.AppendLine(8, $"private Lazy<{classSymbol.NamedTypeSymbol}> _Constructor{constructorHashCode} = new Lazy<{classSymbol.NamedTypeSymbol}>(() => new {classSymbol.NamedTypeSymbol}({string.Join(",", defaultValues)})"); sb.AppendLine(8, "{"); @@ -511,25 +511,13 @@ private static string GenerateSeveralMethods(FluentData fluentData, ClassSymbol } output.AppendLine(8, $"public static {className} Default() => new {className}({string.Join(", ", defaultValues)})"); output.AppendLine(8, "{"); - var requiredProperties = GetRequiredProperties(propertiesPublicSettable); + var requiredProperties = propertiesPublicSettable.GetRequiredPropertiesAsAssignments(); output.AppendLines(12, requiredProperties, ","); output.AppendLine(8, "};"); return output.ToString(); } - private static IReadOnlyList GetRequiredProperties(IEnumerable properties) - { - var requiredValues = new List(); - foreach (var p in properties.Where(p => p.IsRequired)) - { - var (defaultValue, _) = DefaultValueHelper.GetDefaultValue(p, p.Type); - requiredValues.Add($"{p.Name} = {defaultValue}"); - } - - return requiredValues; - } - private static void BuildPrivateSetMethod(StringBuilder output, string className, IPropertySymbol property) { output.AppendLine(8, $"private void Set{property.Name}({className} instance, {property.Type} value)"); diff --git a/src/FluentBuilderGenerator/Helpers/DefaultValueHelper.cs b/src/FluentBuilderGenerator/Helpers/DefaultValueHelper.cs index fc9ee61..0ff90de 100644 --- a/src/FluentBuilderGenerator/Helpers/DefaultValueHelper.cs +++ b/src/FluentBuilderGenerator/Helpers/DefaultValueHelper.cs @@ -1,4 +1,5 @@ using FluentBuilderGenerator.Extensions; +using FluentBuilderGenerator.Models; using FluentBuilderGenerator.Types; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; @@ -108,7 +109,7 @@ private static string GetNewConstructor(ITypeSymbol typeSymbol) var body = namedTypeSymbol.DelegateInvokeMethod.ReturnsVoid ? "{ }" // It's an Action - : GetDefault(namedTypeSymbol.DelegateInvokeMethod.ReturnType); // It's an Func + : GetDefault(namedTypeSymbol.DelegateInvokeMethod.ReturnType); // It's a Func return $"new {typeSymbol}(({string.Join(", ", delegateParameters)}) => {body})"; } @@ -134,6 +135,11 @@ private static string GetNewConstructor(ITypeSymbol typeSymbol) var constructorParameters = bestMatchingConstructor.Parameters.Select(parameter => GetDefault(parameter.Type)); - return $"new {typeSymbol}({string.Join(", ", constructorParameters)})"; + var publicRequiredSetProperties = typeSymbol.GetMembers().OfType() + .Where(p => p.IsRequired) + .Where(x => x.SetMethod is not null) + .Where(x => x.CanBeReferencedByName); + + return $"new {typeSymbol}({string.Join(", ", constructorParameters)}) {{ {string.Join(", ", publicRequiredSetProperties.GetRequiredPropertiesAsAssignments())} }}"; } } \ No newline at end of file diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs index 85f74c5..9714574 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs @@ -66,13 +66,20 @@ public ClassWithInitPropertiesBuilder WithRequiredTestInit(Func func) _requiredTestInit = new Lazy(func); return this; } + private Lazy _x = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties2() { X = string.Empty }); + public ClassWithInitPropertiesBuilder WithX(FluentBuilderGeneratorTests.DTO.ClassWithInitProperties2 value) => WithX(() => value); + public ClassWithInitPropertiesBuilder WithX(Func func) + { + _x = new Lazy(func); + return this; + } private bool _Constructor1040722879_IsSet; private Lazy _Constructor1040722879 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties() { RequiredTest = string.Empty, RequiredTestInit = string.Empty, - X = default! + X = new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties2() { X = string.Empty } }); public ClassWithInitPropertiesBuilder UsingConstructor() { @@ -85,7 +92,7 @@ public ClassWithInitPropertiesBuilder UsingConstructor() { RequiredTest = string.Empty, RequiredTestInit = string.Empty, - X = default! + X = new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties2() { X = string.Empty } }; }); _Constructor1040722879_IsSet = true; @@ -120,7 +127,7 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) ProductName = _productName.Value, RequiredTest = _requiredTest.Value, RequiredTestInit = _requiredTestInit.Value, - X = default! + X = _x.Value }; return instance; @@ -145,7 +152,7 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) { RequiredTest = string.Empty, RequiredTestInit = string.Empty, - X = default! + X = new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties2() { X = string.Empty } }; } From 926ef76940934083bc317e58b8b332598940890e Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 11:57:35 +0200 Subject: [PATCH 08/12] ... --- ...amespace.ClassOnOtherNamespaceBuilder.g.cs | 15 +++++++++--- ...lderGeneratorTests.DTO.AddressBuilder.g.cs | 23 +++++++++++++------ ...rGeneratorTests.DTO.AddressBuilder_T_.g.cs | 15 +++++++++--- ...atorTests.DTO.AddressTTBuilder_T1_T2_.g.cs | 15 +++++++++--- ...sts.DTO.ClassWithFuncAndActionBuilder.g.cs | 15 +++++++++--- ...ts.DTO.ClassWithPrivateSetter1Builder.g.cs | 15 +++++++++--- ...ts.DTO.ClassWithPrivateSetter2Builder.g.cs | 15 +++++++++--- ....DTO.ClassWithPropertyValueSetBuilder.g.cs | 15 +++++++++--- ...neratorTests.DTO.InternalClassBuilder.g.cs | 15 +++++++++--- ...eneratorTests.DTO.MyDummyClassBuilder.g.cs | 15 +++++++++--- ...ratorTests.DTO.MyInternalClassBuilder.g.cs | 15 +++++++++--- ...BuilderGeneratorTests.DTO.TestBuilder.g.cs | 15 +++++++++--- ...uilderGeneratorTests.DTO.ThingBuilder.g.cs | 17 ++++++++++---- ...BuilderGeneratorTests.DTO.UserBuilder.g.cs | 17 ++++++++++---- ...derGeneratorTests.DTO.UserTBuilder_T_.g.cs | 15 +++++++++--- ...rTWithAddressAndConstructorBuilder_T_.g.cs | 17 ++++++++++---- ...Tests.DTO.UserTWithAddressTBuilder_T_.g.cs | 17 ++++++++++---- ...erGeneratorTests.DTO2.MyOptionBuilder.g.cs | 15 +++++++++--- 18 files changed, 224 insertions(+), 62 deletions(-) diff --git a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs index b0cd5e5..3932bc2 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs @@ -38,7 +38,10 @@ public ClassOnOtherNamespaceBuilder WithId(Func func) } private bool _Constructor1204632294_IsSet; - private Lazy _Constructor1204632294 = new Lazy(() => new AbcTest.OtherNamespace.ClassOnOtherNamespace()); + private Lazy _Constructor1204632294 = new Lazy(() => new AbcTest.OtherNamespace.ClassOnOtherNamespace() + { + + }); public ClassOnOtherNamespaceBuilder UsingConstructor() { _Constructor1204632294 = new Lazy(() => @@ -46,7 +49,10 @@ public ClassOnOtherNamespaceBuilder UsingConstructor() return new AbcTest.OtherNamespace.ClassOnOtherNamespace ( - ); + ) + { + + }; }); _Constructor1204632294_IsSet = true; @@ -95,7 +101,10 @@ public override ClassOnOtherNamespace Build(bool useObjectInitializer) return Instance.Value; } - public static ClassOnOtherNamespace Default() => new ClassOnOtherNamespace(); + public static ClassOnOtherNamespace Default() => new ClassOnOtherNamespace() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs index ff47b9e..4980007 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs @@ -76,7 +76,7 @@ public AddressBuilder WithArray2(Action _thingUsingConstructorWithItself = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ThingUsingConstructorWithItself(string.Empty, string.Empty)); + private Lazy _thingUsingConstructorWithItself = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ThingUsingConstructorWithItself(string.Empty, string.Empty) { }); public AddressBuilder WithThingUsingConstructorWithItself(FluentBuilderGeneratorTests.DTO.ThingUsingConstructorWithItself value) => WithThingUsingConstructorWithItself(() => value); public AddressBuilder WithThingUsingConstructorWithItself(Func func) { @@ -85,7 +85,7 @@ public AddressBuilder WithThingUsingConstructorWithItself(Func _thingUsingConstructorWith2Parameters = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ThingUsingConstructorWith2Parameters(default(int), default(int))); + private Lazy _thingUsingConstructorWith2Parameters = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ThingUsingConstructorWith2Parameters(default(int), default(int)) { }); public AddressBuilder WithThingUsingConstructorWith2Parameters(FluentBuilderGeneratorTests.DTO.ThingUsingConstructorWith2Parameters value) => WithThingUsingConstructorWith2Parameters(() => value); public AddressBuilder WithThingUsingConstructorWith2Parameters(Func func) { @@ -94,7 +94,7 @@ public AddressBuilder WithThingUsingConstructorWith2Parameters(Func _thingWithoutDefaultConstructor = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ThingWithoutDefaultConstructor(default(int))); + private Lazy _thingWithoutDefaultConstructor = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ThingWithoutDefaultConstructor(default(int)) { }); public AddressBuilder WithThingWithoutDefaultConstructor(FluentBuilderGeneratorTests.DTO.ThingWithoutDefaultConstructor value) => WithThingWithoutDefaultConstructor(() => value); public AddressBuilder WithThingWithoutDefaultConstructor(Func func) { @@ -112,7 +112,7 @@ public AddressBuilder WithThingWithPrivateConstructor(Func _thing = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Thing()); + private Lazy _thing = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Thing() { }); public AddressBuilder WithThing(FluentBuilderGeneratorTests.DTO.Thing value) => WithThing(() => value); public AddressBuilder WithThing(Func func) { @@ -344,7 +344,10 @@ public AddressBuilder WithDictionary2(Action _Constructor_1362952513 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Address()); + private Lazy _Constructor_1362952513 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Address() + { + + }); public AddressBuilder UsingConstructor() { _Constructor_1362952513 = new Lazy(() => @@ -352,7 +355,10 @@ public AddressBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.Address ( - ); + ) + { + + }; }); _Constructor_1362952513_IsSet = true; @@ -449,7 +455,10 @@ public override Address Build(bool useObjectInitializer) return Instance.Value; } - public static Address Default() => new Address(); + public static Address Default() => new Address() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs index 183b9fa..cdc8117 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs @@ -38,7 +38,10 @@ public AddressBuilder WithStreet(Func func) } private bool _Constructor478882805_IsSet; - private Lazy> _Constructor478882805 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.Address()); + private Lazy> _Constructor478882805 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.Address() + { + + }); public AddressBuilder UsingConstructor() { _Constructor478882805 = new Lazy>(() => @@ -46,7 +49,10 @@ public AddressBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.Address ( - ); + ) + { + + }; }); _Constructor478882805_IsSet = true; @@ -95,7 +101,10 @@ public override Address Build(bool useObjectInitializer) return Instance.Value; } - public static Address Default() => new Address(); + public static Address Default() => new Address() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs index 9980863..fa82f14 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs @@ -47,7 +47,10 @@ public AddressTTBuilder WithTestValue2(Func func) } private bool _Constructor_758958168_IsSet; - private Lazy> _Constructor_758958168 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.AddressTT()); + private Lazy> _Constructor_758958168 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.AddressTT() + { + + }); public AddressTTBuilder UsingConstructor() { _Constructor_758958168 = new Lazy>(() => @@ -55,7 +58,10 @@ public AddressTTBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.AddressTT ( - ); + ) + { + + }; }); _Constructor_758958168_IsSet = true; @@ -106,7 +112,10 @@ public override AddressTT Build(bool useObjectInitializer) return Instance.Value; } - public static AddressTT Default() => new AddressTT(); + public static AddressTT Default() => new AddressTT() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs index 8b02a12..af19b66 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs @@ -65,7 +65,10 @@ public ClassWithFuncAndActionBuilder WithAction(Func> func) } private bool _Constructor_1844167085_IsSet; - private Lazy _Constructor_1844167085 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithFuncAndAction()); + private Lazy _Constructor_1844167085 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithFuncAndAction() + { + + }); public ClassWithFuncAndActionBuilder UsingConstructor() { _Constructor_1844167085 = new Lazy(() => @@ -73,7 +76,10 @@ public ClassWithFuncAndActionBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.ClassWithFuncAndAction ( - ); + ) + { + + }; }); _Constructor_1844167085_IsSet = true; @@ -128,7 +134,10 @@ public override ClassWithFuncAndAction Build(bool useObjectInitializer) return Instance.Value; } - public static ClassWithFuncAndAction Default() => new ClassWithFuncAndAction(); + public static ClassWithFuncAndAction Default() => new ClassWithFuncAndAction() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs index 15a16cc..e6a6af8 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs @@ -47,7 +47,10 @@ public ClassWithPrivateSetter1Builder WithValue1(Func func) } private bool _Constructor126242367_IsSet; - private Lazy _Constructor126242367 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1()); + private Lazy _Constructor126242367 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1() + { + + }); public ClassWithPrivateSetter1Builder UsingConstructor() { _Constructor126242367 = new Lazy(() => @@ -55,7 +58,10 @@ public ClassWithPrivateSetter1Builder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1 ( - ); + ) + { + + }; }); _Constructor126242367_IsSet = true; @@ -109,7 +115,10 @@ public override ClassWithPrivateSetter1 Build(bool useObjectInitializer) return Instance.Value; } - public static ClassWithPrivateSetter1 Default() => new ClassWithPrivateSetter1(); + public static ClassWithPrivateSetter1 Default() => new ClassWithPrivateSetter1() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs index f84a430..131b63a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs @@ -38,7 +38,10 @@ public ClassWithPrivateSetter2Builder WithValue2(Func func) } private bool _Constructor1164815551_IsSet; - private Lazy _Constructor1164815551 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2()); + private Lazy _Constructor1164815551 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2() + { + + }); public ClassWithPrivateSetter2Builder UsingConstructor() { _Constructor1164815551 = new Lazy(() => @@ -46,7 +49,10 @@ public ClassWithPrivateSetter2Builder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2 ( - ); + ) + { + + }; }); _Constructor1164815551_IsSet = true; @@ -95,7 +101,10 @@ public override ClassWithPrivateSetter2 Build(bool useObjectInitializer) return Instance.Value; } - public static ClassWithPrivateSetter2 Default() => new ClassWithPrivateSetter2(); + public static ClassWithPrivateSetter2 Default() => new ClassWithPrivateSetter2() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs index 0508886..34524a9 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs @@ -131,7 +131,10 @@ public ClassWithPropertyValueSetBuilder WithStringEmpty(Func func) } private bool _Constructor_1318089537_IsSet; - private Lazy _Constructor_1318089537 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSet()); + private Lazy _Constructor_1318089537 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSet() + { + + }); public ClassWithPropertyValueSetBuilder UsingConstructor() { _Constructor_1318089537 = new Lazy(() => @@ -139,7 +142,10 @@ public ClassWithPropertyValueSetBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSet ( - ); + ) + { + + }; }); _Constructor_1318089537_IsSet = true; @@ -208,7 +214,10 @@ public override ClassWithPropertyValueSet Build(bool useObjectInitializer) return Instance.Value; } - public static ClassWithPropertyValueSet Default() => new ClassWithPropertyValueSet(); + public static ClassWithPropertyValueSet Default() => new ClassWithPropertyValueSet() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs index 3b4e686..bb22877 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs @@ -38,7 +38,10 @@ public InternalClassBuilder WithId(Func func) } private bool _Constructor_1847127841_IsSet; - private Lazy _Constructor_1847127841 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.InternalClass()); + private Lazy _Constructor_1847127841 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.InternalClass() + { + + }); public InternalClassBuilder UsingConstructor() { _Constructor_1847127841 = new Lazy(() => @@ -46,7 +49,10 @@ public InternalClassBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.InternalClass ( - ); + ) + { + + }; }); _Constructor_1847127841_IsSet = true; @@ -95,7 +101,10 @@ public override InternalClass Build(bool useObjectInitializer) return Instance.Value; } - public static InternalClass Default() => new InternalClass(); + public static InternalClass Default() => new InternalClass() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs index 5aaec10..f2ffa05 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs @@ -38,7 +38,10 @@ public MyDummyClassBuilder WithId(Func func) } private bool _Constructor921673711_IsSet; - private Lazy _Constructor921673711 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.DummyClass()); + private Lazy _Constructor921673711 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.DummyClass() + { + + }); public MyDummyClassBuilder UsingConstructor() { _Constructor921673711 = new Lazy(() => @@ -46,7 +49,10 @@ public MyDummyClassBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.DummyClass ( - ); + ) + { + + }; }); _Constructor921673711_IsSet = true; @@ -95,7 +101,10 @@ public override DummyClass Build(bool useObjectInitializer) return Instance.Value; } - public static DummyClass Default() => new DummyClass(); + public static DummyClass Default() => new DummyClass() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs index 4492540..258835a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs @@ -38,7 +38,10 @@ public MyInternalClassBuilder WithId(Func func) } private bool _Constructor_1847127841_IsSet; - private Lazy _Constructor_1847127841 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.InternalClass()); + private Lazy _Constructor_1847127841 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.InternalClass() + { + + }); public MyInternalClassBuilder UsingConstructor() { _Constructor_1847127841 = new Lazy(() => @@ -46,7 +49,10 @@ public MyInternalClassBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.InternalClass ( - ); + ) + { + + }; }); _Constructor_1847127841_IsSet = true; @@ -95,7 +101,10 @@ public override InternalClass Build(bool useObjectInitializer) return Instance.Value; } - public static InternalClass Default() => new InternalClass(); + public static InternalClass Default() => new InternalClass() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs index 7d45f73..8e76934 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs @@ -44,7 +44,10 @@ public TestBuilder WithClassOnOtherNamespaceList(Action _Constructor1204588943 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Test()); + private Lazy _Constructor1204588943 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Test() + { + + }); public TestBuilder UsingConstructor() { _Constructor1204588943 = new Lazy(() => @@ -52,7 +55,10 @@ public TestBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.Test ( - ); + ) + { + + }; }); _Constructor1204588943_IsSet = true; @@ -101,7 +107,10 @@ public override Test Build(bool useObjectInitializer) return Instance.Value; } - public static Test Default() => new Test(); + public static Test Default() => new Test() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs index 8caaa6c..5d5ba3a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs @@ -28,7 +28,7 @@ public static ThingBuilder AsBuilder(this FluentBuilderGeneratorTests.DTO.Thing public partial class ThingBuilder : Builder { private bool _tIsSet; - private Lazy _t = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Thing()); + private Lazy _t = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Thing() { }); public ThingBuilder WithT(FluentBuilderGeneratorTests.DTO.Thing value) => WithT(() => value); public ThingBuilder WithT(Func func) { @@ -44,7 +44,10 @@ public ThingBuilder WithT(Action a }); private bool _Constructor_759650433_IsSet; - private Lazy _Constructor_759650433 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Thing()); + private Lazy _Constructor_759650433 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Thing() + { + + }); public ThingBuilder UsingConstructor() { _Constructor_759650433 = new Lazy(() => @@ -52,7 +55,10 @@ public ThingBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.Thing ( - ); + ) + { + + }; }); _Constructor_759650433_IsSet = true; @@ -101,7 +107,10 @@ public override Thing Build(bool useObjectInitializer) return Instance.Value; } - public static Thing Default() => new Thing(); + public static Thing Default() => new Thing() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs index 5f12548..60fcc69 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs @@ -55,7 +55,7 @@ public UserBuilder WithQuitDate(Func func) return this; } private bool _testDummyClassIsSet; - private Lazy _testDummyClass = new Lazy(() => new FluentBuilderGeneratorTests.DTO.DummyClass()); + private Lazy _testDummyClass = new Lazy(() => new FluentBuilderGeneratorTests.DTO.DummyClass() { }); public UserBuilder WithTestDummyClass(FluentBuilderGeneratorTests.DTO.DummyClass value) => WithTestDummyClass(() => value); public UserBuilder WithTestDummyClass(Func func) { @@ -86,7 +86,10 @@ public UserBuilder WithOptions(Action _Constructor_1436654309 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.User()); + private Lazy _Constructor_1436654309 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.User() + { + + }); public UserBuilder UsingConstructor() { _Constructor_1436654309 = new Lazy(() => @@ -94,7 +97,10 @@ public UserBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.User ( - ); + ) + { + + }; }); _Constructor_1436654309_IsSet = true; @@ -151,7 +157,10 @@ public override User Build(bool useObjectInitializer) return Instance.Value; } - public static User Default() => new User(); + public static User Default() => new User() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs index 35f3a1b..63f2105 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs @@ -38,7 +38,10 @@ public UserTBuilder WithTValue(Func func) } private bool _Constructor302462813_IsSet; - private Lazy> _Constructor302462813 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.UserT()); + private Lazy> _Constructor302462813 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.UserT() + { + + }); public UserTBuilder UsingConstructor() { _Constructor302462813 = new Lazy>(() => @@ -46,7 +49,10 @@ public UserTBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.UserT ( - ); + ) + { + + }; }); _Constructor302462813_IsSet = true; @@ -95,7 +101,10 @@ public override UserT Build(bool useObjectInitializer) return Instance.Value; } - public static UserT Default() => new UserT(); + public static UserT Default() => new UserT() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs index f91390f..d98c89d 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs @@ -37,7 +37,7 @@ public UserTWithAddressAndConstructorBuilder WithTValue(Func func) return this; } private bool _addressIsSet; - private Lazy> _address = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.Address()); + private Lazy> _address = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.Address() { }); public UserTWithAddressAndConstructorBuilder WithAddress(FluentBuilderGeneratorTests.DTO.Address value) => WithAddress(() => value); public UserTWithAddressAndConstructorBuilder WithAddress(Func> func) { @@ -53,7 +53,10 @@ public UserTWithAddressAndConstructorBuilder WithAddress(Action> _Constructor1978124393 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructor()); + private Lazy> _Constructor1978124393 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructor() + { + + }); public UserTWithAddressAndConstructorBuilder UsingConstructor() { _Constructor1978124393 = new Lazy>(() => @@ -61,7 +64,10 @@ public UserTWithAddressAndConstructorBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructor ( - ); + ) + { + + }; }); _Constructor1978124393_IsSet = true; @@ -112,7 +118,10 @@ public override UserTWithAddressAndConstructor Build(bool useObjectInitialize return Instance.Value; } - public static UserTWithAddressAndConstructor Default() => new UserTWithAddressAndConstructor(); + public static UserTWithAddressAndConstructor Default() => new UserTWithAddressAndConstructor() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs index 674ff96..b562cc6 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs @@ -37,7 +37,7 @@ public UserTWithAddressTBuilder WithTValue(Func func) return this; } private bool _addressIsSet; - private Lazy> _address = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.Address()); + private Lazy> _address = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.Address() { }); public UserTWithAddressTBuilder WithAddress(FluentBuilderGeneratorTests.DTO.Address value) => WithAddress(() => value); public UserTWithAddressTBuilder WithAddress(Func> func) { @@ -53,7 +53,10 @@ public UserTWithAddressTBuilder WithAddress(Action> _Constructor1691800221 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.UserTWithAddressT()); + private Lazy> _Constructor1691800221 = new Lazy>(() => new FluentBuilderGeneratorTests.DTO.UserTWithAddressT() + { + + }); public UserTWithAddressTBuilder UsingConstructor() { _Constructor1691800221 = new Lazy>(() => @@ -61,7 +64,10 @@ public UserTWithAddressTBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.UserTWithAddressT ( - ); + ) + { + + }; }); _Constructor1691800221_IsSet = true; @@ -112,7 +118,10 @@ public override UserTWithAddressT Build(bool useObjectInitializer) return Instance.Value; } - public static UserTWithAddressT Default() => new UserTWithAddressT(); + public static UserTWithAddressT Default() => new UserTWithAddressT() + { + + }; } } diff --git a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs index ff25e4a..00bdacb 100644 --- a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs @@ -38,7 +38,10 @@ public MyOptionBuilder WithName(Func func) } private bool _Constructor155259363_IsSet; - private Lazy _Constructor155259363 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Option()); + private Lazy _Constructor155259363 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.Option() + { + + }); public MyOptionBuilder UsingConstructor() { _Constructor155259363 = new Lazy(() => @@ -46,7 +49,10 @@ public MyOptionBuilder UsingConstructor() return new FluentBuilderGeneratorTests.DTO.Option ( - ); + ) + { + + }; }); _Constructor155259363_IsSet = true; @@ -95,7 +101,10 @@ public override Option Build(bool useObjectInitializer) return Instance.Value; } - public static Option Default() => new Option(); + public static Option Default() => new Option() + { + + }; } } From 377d6dcd271b99c205bc5969d5dc0df4d58f5dc5 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 15 Jul 2025 12:38:25 +0200 Subject: [PATCH 09/12] . --- .../ClassWithInitProperties.cs | 27 +++++++++++++++++++ .../FluentBuilderGenerator.csproj | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src-examples/BuilderConsumer/ClassWithInitProperties.cs diff --git a/src-examples/BuilderConsumer/ClassWithInitProperties.cs b/src-examples/BuilderConsumer/ClassWithInitProperties.cs new file mode 100644 index 0000000..da73846 --- /dev/null +++ b/src-examples/BuilderConsumer/ClassWithInitProperties.cs @@ -0,0 +1,27 @@ +using FluentBuilder; + +namespace BuilderConsumer +{ + [AutoGenerateBuilder] + public class ClassWithInitProperties + { + public string Normal { get; set; } + + public int SiteId { get; init; } + + public string ProductName { get; init; } + + public string PrivateProductName { get; private init; } + + public required string RequiredTest { get; set; } + + public required string RequiredTestInit { get; init; } + + public required ClassWithInitProperties2 X { get; init; } + } + + public class ClassWithInitProperties2 + { + public required string X { get; set; } + } +} \ No newline at end of file diff --git a/src/FluentBuilderGenerator/FluentBuilderGenerator.csproj b/src/FluentBuilderGenerator/FluentBuilderGenerator.csproj index 1ba5128..2428a12 100644 --- a/src/FluentBuilderGenerator/FluentBuilderGenerator.csproj +++ b/src/FluentBuilderGenerator/FluentBuilderGenerator.csproj @@ -1,7 +1,7 @@ - 0.10.0.2 + 0.10.0.3-preview-01 netstandard2.0 latest true From 8f2dae00831e604fe12eb6d8991e29ee7e291f91 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Wed, 3 Dec 2025 17:24:33 +0100 Subject: [PATCH 10/12] . --- .../AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs | 2 +- ...est.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs | 2 +- .../DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs | 2 +- .../DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs | 2 +- .../BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs | 2 +- .../BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs | 2 +- .../DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs | 2 +- ...GeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs | 2 +- ...uilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs | 2 +- .../DTO/FluentBuilder.ArrayBuilder.g.cs | 2 +- .../DTO/FluentBuilder.BaseBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs | 2 +- .../DTO/FluentBuilder.ICollectionBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IDictionaryBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IEnumerableBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IListBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IReadOnlyListBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs | 2 +- ...uentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs | 2 +- ...ilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs | 2 +- ...lderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs | 2 +- ...lderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs | 2 +- ...lderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs | 2 +- ...erGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs | 2 +- ...luentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs | 2 +- .../DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs | 2 +- .../DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs | 2 +- .../DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs | 2 +- .../DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs | 2 +- ...torTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs | 2 +- ...BuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs | 2 +- ...uentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt | 2 +- ...outAPublicConstructor_Should_Create_ErrorFile.verified.txt | 4 ++-- ...sIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt | 2 +- ...MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt | 2 +- 40 files changed, 41 insertions(+), 41 deletions(-) diff --git a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs index 3932bc2..50848c6 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs index 5ad64fb..23ef6c8 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs index 4980007..ffe9955 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs index d5605ac..a506bae 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs index 9229bc5..2b5354d 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs index 19c43c1..7542e5d 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs index 6e1032b..a8ef891 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs index df60e4d..a5d7ec0 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs index 0985986..ece1b33 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ArrayBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ArrayBuilder.g.cs index 8476e2a..b977c04 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ArrayBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ArrayBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.BaseBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.BaseBuilder.g.cs index e62b181..7a6ad40 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.BaseBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.BaseBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs index 66ef0bd..498f221 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ICollectionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ICollectionBuilder.g.cs index 5a56de2..586109b 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ICollectionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ICollectionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IDictionaryBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IDictionaryBuilder.g.cs index 1a62f18..e4aa0d0 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IDictionaryBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IDictionaryBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IEnumerableBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IEnumerableBuilder.g.cs index 31c1f5c..e1320f5 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IEnumerableBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IEnumerableBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IListBuilder.g.cs index 25395a7..b4f3da3 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs index c1db256..0925399 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyListBuilder.g.cs index 5be9417..ab7b7f3 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs index cdc8117..96383e3 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs index fa82f14..265e2b9 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs index af19b66..d03c929 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs index 9714574..84ec0be 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs index e6a6af8..3b7594b 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs index 131b63a..023134b 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs index 34524a9..f53d090 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs index bb22877..786cb40 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs index f2ffa05..7a9a079 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs index 258835a..fb98b39 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs index 8e76934..d4f0f36 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs index 5d5ba3a..f0ad8e0 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs index 60fcc69..2a1c83d 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs index 63f2105..d92d9bd 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs index d98c89d..4af669d 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs index b562cc6..01d791f 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs index 34d3495..80e8c8f 100644 --- a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs index 00bdacb..70cb5e9 100644 --- a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt index 4413801..edc3be9 100644 --- a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt +++ b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt @@ -3,7 +3,7 @@ Source: //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForAClassWithoutAPublicConstructor_Should_Create_ErrorFile.verified.txt b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForAClassWithoutAPublicConstructor_Should_Create_ErrorFile.verified.txt index 31d9337..2938926 100644 --- a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForAClassWithoutAPublicConstructor_Should_Create_ErrorFile.verified.txt +++ b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForAClassWithoutAPublicConstructor_Should_Create_ErrorFile.verified.txt @@ -12,7 +12,7 @@ System.NotSupportedException: Unable to generate a FluentBuilder for the class ' at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other) at System.Linq.Enumerable.UnionIterator`1.FillSet() at System.Linq.Enumerable.UnionIterator`1.ToList() - at FluentBuilderGenerator.FileGenerators.FluentBuilderClassesGenerator.GenerateFiles() in {SolutionDirectory}src\FluentBuilderGenerator\FileGenerators\FluentBuilderClassesGenerator.cs:line 73 + at FluentBuilderGenerator.FileGenerators.FluentBuilderClassesGenerator.GenerateFiles() in {SolutionDirectory}src\FluentBuilderGenerator\FileGenerators\FluentBuilderClassesGenerator.cs:line 63 at FluentBuilderGenerator.FluentBuilderSourceGenerator.InjectFluentBuilderClasses(IGeneratorExecutionContextWrapper context, IAutoGenerateBuilderSyntaxReceiver receiver) in {SolutionDirectory}src\FluentBuilderGenerator\FluentBuilderSourceGenerator.cs:line 83 at FluentBuilderGenerator.FluentBuilderSourceGenerator.Execute(GeneratorExecutionContext context) in {SolutionDirectory}src\FluentBuilderGenerator\FluentBuilderSourceGenerator.cs:line 40 @@ -23,7 +23,7 @@ System.NotSupportedException: Unable to generate a FluentBuilder for the class ' at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other) at System.Linq.Enumerable.UnionIterator`1.FillSet() at System.Linq.Enumerable.UnionIterator`1.ToList() - at FluentBuilderGenerator.FileGenerators.FluentBuilderClassesGenerator.GenerateFiles() in {SolutionDirectory}src\FluentBuilderGenerator\FileGenerators\FluentBuilderClassesGenerator.cs:line 73 + at FluentBuilderGenerator.FileGenerators.FluentBuilderClassesGenerator.GenerateFiles() in {SolutionDirectory}src\FluentBuilderGenerator\FileGenerators\FluentBuilderClassesGenerator.cs:line 63 at FluentBuilderGenerator.FluentBuilderSourceGenerator.InjectFluentBuilderClasses(IGeneratorExecutionContextWrapper context, IAutoGenerateBuilderSyntaxReceiver receiver) in {SolutionDirectory}src\FluentBuilderGenerator\FluentBuilderSourceGenerator.cs:line 83 at FluentBuilderGenerator.FluentBuilderSourceGenerator.Execute(GeneratorExecutionContext context) in {SolutionDirectory}src\FluentBuilderGenerator\FluentBuilderSourceGenerator.cs:line 40*/ } \ No newline at end of file diff --git a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt index 4413801..edc3be9 100644 --- a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt +++ b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt @@ -3,7 +3,7 @@ Source: //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt index 4413801..edc3be9 100644 --- a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt +++ b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt @@ -3,7 +3,7 @@ Source: //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. From ab708eaca486b19af965b9540b3267951b2130e7 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Wed, 3 Dec 2025 17:26:59 +0100 Subject: [PATCH 11/12] . --- src/FluentBuilderGenerator/FluentBuilderGenerator.csproj | 4 ++-- .../AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs | 2 +- ...est.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs | 2 +- .../DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs | 2 +- .../DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs | 2 +- .../BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs | 2 +- .../BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs | 2 +- .../DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs | 2 +- ...GeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs | 2 +- ...uilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs | 2 +- .../DTO/FluentBuilder.ArrayBuilder.g.cs | 2 +- .../DTO/FluentBuilder.BaseBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs | 2 +- .../DTO/FluentBuilder.ICollectionBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IDictionaryBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IEnumerableBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IListBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs | 2 +- .../DTO/FluentBuilder.IReadOnlyListBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs | 2 +- ...uentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs | 2 +- ...ilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs | 2 +- ...lderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs | 2 +- ...lderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs | 2 +- ...lderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs | 2 +- ...erGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs | 2 +- ...luentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs | 2 +- .../DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs | 2 +- .../DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs | 2 +- .../DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs | 2 +- .../DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs | 2 +- ...torTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs | 2 +- ...BuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs | 2 +- .../FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs | 2 +- ...uentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt | 2 +- ...sIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt | 2 +- ...MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt | 2 +- 40 files changed, 41 insertions(+), 41 deletions(-) diff --git a/src/FluentBuilderGenerator/FluentBuilderGenerator.csproj b/src/FluentBuilderGenerator/FluentBuilderGenerator.csproj index 2428a12..4dc1349 100644 --- a/src/FluentBuilderGenerator/FluentBuilderGenerator.csproj +++ b/src/FluentBuilderGenerator/FluentBuilderGenerator.csproj @@ -1,7 +1,7 @@ - + - 0.10.0.3-preview-01 + 0.10.0.2-preview-01 netstandard2.0 latest true diff --git a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs index 50848c6..3932bc2 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespaceBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs index 23ef6c8..5ad64fb 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/AbcTest.OtherNamespace.ClassOnOtherNamespace_IListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs index ffe9955..4980007 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.AddressBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs index a506bae..d5605ac 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ArrayBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs index 2b5354d..9229bc5 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_ICollectionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs index 7542e5d..19c43c1 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IEnumerableBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs index a8ef891..6e1032b 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs index a5d7ec0..df60e4d 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyCollectionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs index ece1b33..0985986 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/BuilderGeneratorTests.DTO.Address_IReadOnlyListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ArrayBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ArrayBuilder.g.cs index b977c04..8476e2a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ArrayBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ArrayBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.BaseBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.BaseBuilder.g.cs index 7a6ad40..e62b181 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.BaseBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.BaseBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs index 498f221..66ef0bd 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.Extra.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ICollectionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ICollectionBuilder.g.cs index 586109b..5a56de2 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ICollectionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.ICollectionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IDictionaryBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IDictionaryBuilder.g.cs index e4aa0d0..1a62f18 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IDictionaryBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IDictionaryBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IEnumerableBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IEnumerableBuilder.g.cs index e1320f5..31c1f5c 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IEnumerableBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IEnumerableBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IListBuilder.g.cs index b4f3da3..25395a7 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs index 0925399..c1db256 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyCollectionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyListBuilder.g.cs index ab7b7f3..5be9417 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilder.IReadOnlyListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs index 96383e3..cdc8117 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressBuilder_T_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs index 265e2b9..fa82f14 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.AddressTTBuilder_T1_T2_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs index d03c929..af19b66 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithFuncAndActionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs index 84ec0be..9714574 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs index 3b7594b..e6a6af8 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter1Builder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs index 023134b..131b63a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrivateSetter2Builder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs index f53d090..34524a9 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPropertyValueSetBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs index 786cb40..bb22877 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.InternalClassBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs index 7a9a079..f2ffa05 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyDummyClassBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs index fb98b39..258835a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.MyInternalClassBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs index d4f0f36..8e76934 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.TestBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs index f0ad8e0..5d5ba3a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ThingBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs index 2a1c83d..60fcc69 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs index d92d9bd..63f2105 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTBuilder_T_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs index 4af669d..d98c89d 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressAndConstructorBuilder_T_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs index 01d791f..b562cc6 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.UserTWithAddressTBuilder_T_.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs index 80e8c8f..34d3495 100644 --- a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO.Option_IListBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs index 70cb5e9..00bdacb 100644 --- a/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO2/FluentBuilderGeneratorTests.DTO2.MyOptionBuilder.g.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt index edc3be9..4413801 100644 --- a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt +++ b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ClassWithFluentBuilderIgnore_Should_GenerateCorrectFiles.verified.txt @@ -3,7 +3,7 @@ Source: //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt index edc3be9..4413801 100644 --- a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt +++ b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithAndWithout_Should_GenerateCorrectFiles.verified.txt @@ -3,7 +3,7 @@ Source: //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt index edc3be9..4413801 100644 --- a/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt +++ b/tests/FluentBuilderGeneratorTests/FluentBuilderSourceGeneratorTests.GenerateFiles_ForSimpleClass_MethodsIsWithOnly_Should_GenerateCorrectFiles.verified.txt @@ -3,7 +3,7 @@ Source: //------------------------------------------------------------------------------ // -// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.3 +// This code was generated by https://github.com/StefH/FluentBuilder version 0.10.0.2 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. From 3552b9fc844426858241828bf86e2748820a7a1e Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Wed, 3 Dec 2025 17:41:43 +0100 Subject: [PATCH 12/12] ? --- ...eneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs | 6 ------ ...atorTests.DTO.ClassWithPrimaryConstructorBuilder.g.cs | 9 +++------ ...torTests.DTO.RecordWithPrimaryConstructorBuilder.g.cs | 9 +++------ 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs index 2a84f7a..34b1920 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithInitPropertiesBuilder.g.cs @@ -78,8 +78,6 @@ public ClassWithInitPropertiesBuilder WithX(Func _Constructor1040722879 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties() { RequiredTest = string.Empty, - SiteId = default(int), - ProductName = string.Empty, RequiredTestInit = string.Empty, X = new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties2() { X = string.Empty } }); @@ -93,8 +91,6 @@ public ClassWithInitPropertiesBuilder UsingConstructor() ) { RequiredTest = string.Empty, - SiteId = default(int), - ProductName = string.Empty, RequiredTestInit = string.Empty, X = new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties2() { X = string.Empty } }; @@ -155,8 +151,6 @@ public override ClassWithInitProperties Build(bool useObjectInitializer) public static ClassWithInitProperties Default() => new ClassWithInitProperties() { RequiredTest = string.Empty, - SiteId = default(int), - ProductName = string.Empty, RequiredTestInit = string.Empty, X = new FluentBuilderGeneratorTests.DTO.ClassWithInitProperties2() { X = string.Empty } }; diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrimaryConstructorBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrimaryConstructorBuilder.g.cs index 3708aaa..4723e8a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrimaryConstructorBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.ClassWithPrimaryConstructorBuilder.g.cs @@ -54,8 +54,7 @@ public ClassWithPrimaryConstructorBuilder WithNormal(Func func) private bool _Constructor827069805_IsSet; private Lazy _Constructor827069805 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.ClassWithPrimaryConstructor(string.Empty,default(int)) { - //test = string.Empty, - // num = default(int) + }); public ClassWithPrimaryConstructorBuilder UsingConstructor(string test, int num) { @@ -67,8 +66,7 @@ public ClassWithPrimaryConstructorBuilder UsingConstructor(string test, int num) num ) { - // test = string.Empty, - // num = default(int) + }; }); _Constructor827069805_IsSet = true; @@ -115,8 +113,7 @@ public override ClassWithPrimaryConstructor Build(bool useObjectInitializer) public static ClassWithPrimaryConstructor Default() => new ClassWithPrimaryConstructor(string.Empty, default(int)) { - //test = string.Empty, - // num = default(int) + }; } diff --git a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.RecordWithPrimaryConstructorBuilder.g.cs b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.RecordWithPrimaryConstructorBuilder.g.cs index ed1c85e..647625a 100644 --- a/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.RecordWithPrimaryConstructorBuilder.g.cs +++ b/tests/FluentBuilderGeneratorTests/DTO/FluentBuilderGeneratorTests.DTO.RecordWithPrimaryConstructorBuilder.g.cs @@ -54,8 +54,7 @@ public RecordWithPrimaryConstructorBuilder WithNormal(Func func) private bool _Constructor_380013639_IsSet; private Lazy _Constructor_380013639 = new Lazy(() => new FluentBuilderGeneratorTests.DTO.RecordWithPrimaryConstructor(string.Empty,default(int)) { - Test = string.Empty, - Num = default(int) + }); public RecordWithPrimaryConstructorBuilder UsingConstructor(string Test, int Num) { @@ -67,8 +66,7 @@ public RecordWithPrimaryConstructorBuilder UsingConstructor(string Test, int Num Num ) { - Test = string.Empty, - Num = default(int) + }; }); _Constructor_380013639_IsSet = true; @@ -115,8 +113,7 @@ public override RecordWithPrimaryConstructor Build(bool useObjectInitializer) public static RecordWithPrimaryConstructor Default() => new RecordWithPrimaryConstructor(string.Empty, default(int)) { - Test = string.Empty, - Num = default(int) + }; }