From 30aa75cc5ecf265f6ea176c9d78353cb678b28b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=90=BD=E7=AC=94?=
<46271592+Skymly@users.noreply.github.com>
Date: Thu, 2 Jul 2026 19:19:14 +0800
Subject: [PATCH 1/2] Add #pragma warning disable to generated code headers
The GeneratedCodeHelper XML doc claimed to add #pragma warning disable
directives but the implementation had none. Generated code can trigger
warnings (CS1591 missing XML doc, CS8019 unused using, CS0162 unreachable
code, CS0612/CS0618 obsolete) that become errors in consumer projects
with TreatWarningsAsErrors=true.
Add #pragma warning disable CS1591,CS8019,CS0162,CS0612,CS0618 to the
auto-generated header trivia, emitted before the using directives.
This is independent of the #nullable enable placement (issue #207) and
applies to all generators using CreateAutoGeneratedHeader.
55 Verify snapshots updated.
Closes #209
---
.../Syntax/GeneratedCodeHelper.cs | 26 ++++++++++++++++---
...terDiWhenDiIntegrationEnabled.verified.txt | 12 ++++++---
...orestCatalogWithMultipleRoots.verified.txt | 12 ++++++---
...Tests.GeneratesKeysAndCatalog.verified.txt | 12 ++++++---
...atalogWithNonGenericAttribute.verified.txt | 12 ++++++---
...terDiWhenDiIntegrationEnabled.verified.txt | 8 ++++--
...ratorWhenDiIntegrationEnabled.verified.txt | 8 ++++--
....GeneratesAsyncDecoratorStack.verified.txt | 8 ++++--
...eratesDecoratorOrderConstants.verified.txt | 8 ++++--
...Tests.GeneratesDecoratorStack.verified.txt | 8 ++++--
...xedSyncAndAsyncDecoratorStack.verified.txt | 8 ++++--
...sStackWithNonGenericAttribute.verified.txt | 8 ++++--
...neratesNonThreadSafeSingleton.verified.txt | 1 +
....GeneratesThreadSafeSingleton.verified.txt | 1 +
...ests.GeneratesOrderedPipeline.verified.txt | 1 +
...ts.GeneratesPipelineWithGuard.verified.txt | 1 +
...pelineWithNonGenericAttribute.verified.txt | 1 +
...ContextsInDifferentNamespaces.verified.txt | 8 ++++--
...ingleClassHasMultipleContexts.verified.txt | 8 ++++--
...hareProviderKeyInSameAssembly.verified.txt | 16 +++++++++---
...ssemblyWhenContractIsExternal.verified.txt | 8 ++++--
...terDiWhenDiIntegrationEnabled.verified.txt | 1 +
...rRegistryWithGenericAttribute.verified.txt | 1 +
...gistryWithNonGenericAttribute.verified.txt | 1 +
...ltipleEventTypesOnSameHandler.verified.txt | 8 ++++--
...gistryForGlobalNamespaceEvent.verified.txt | 1 +
...thsByParameterlessConstructor.verified.txt | 1 +
...grationEnabledForAsyncFactory.verified.txt | 16 ++++++++----
...rationEnabledForPooledFactory.verified.txt | 22 +++++++++++-----
...grationEnabledForAsyncFactory.verified.txt | 12 ++++++---
...rationEnabledForPooledFactory.verified.txt | 16 +++++++++---
...actoryImplementsIAsyncFactory.verified.txt | 12 ++++++---
...gistryWithNonGenericAttribute.verified.txt | 12 ++++++---
...ests.GeneratesKeysAndRegistry.verified.txt | 8 ++++--
...gistryWithNonGenericAttribute.verified.txt | 8 ++++--
...esMixedSyncAndAsyncRegistries.verified.txt | 12 ++++++---
...oledRegistryWhenPoolSizeIsSet.verified.txt | 16 +++++++++---
...ontractsInDifferentNamespaces.verified.txt | 16 +++++++++---
...ests.GeneratesKeysAndRegistry.verified.txt | 8 ++++--
...istryForAsyncStrategyContract.verified.txt | 8 ++++--
...gistryWithNonGenericAttribute.verified.txt | 8 ++++--
...ts.GeneratesRegistryWithGuard.verified.txt | 8 ++++--
...ontractsInDifferentNamespaces.verified.txt | 16 +++++++++---
...Tests.EmitsAsyncOnEnterAction.verified.txt | 12 ++++++---
...henTransitionHasGuardProperty.verified.txt | 12 ++++++---
...hActionChainCompositeDelegate.verified.txt | 12 ++++++---
...cActionChainCompositeDelegate.verified.txt | 12 ++++++---
...ationRegistersIStateHierarchy.verified.txt | 12 ++++++---
...icalTableWithEnterActionChain.verified.txt | 12 ++++++---
...eWithStateParentAndFlattening.verified.txt | 12 ++++++---
...uardedAndUnguardedTransitions.verified.txt | 12 ++++++---
...WhenAutofacIntegrationEnabled.verified.txt | 16 ++++++++----
...terDiWhenDiIntegrationEnabled.verified.txt | 12 ++++++---
...tsSyncOnEnterAndOnExitActions.verified.txt | 12 ++++++---
...NamespaceWhenStateEnumDiffers.verified.txt | 12 ++++++---
...ansitionTableAndHolderPartial.verified.txt | 12 ++++++---
56 files changed, 411 insertions(+), 135 deletions(-)
diff --git a/DesignPatterns.SourceGenerators/Syntax/GeneratedCodeHelper.cs b/DesignPatterns.SourceGenerators/Syntax/GeneratedCodeHelper.cs
index b3e404a..fcdc9a5 100644
--- a/DesignPatterns.SourceGenerators/Syntax/GeneratedCodeHelper.cs
+++ b/DesignPatterns.SourceGenerators/Syntax/GeneratedCodeHelper.cs
@@ -14,17 +14,35 @@ namespace DesignPatterns.SourceGenerators.Syntax;
///
internal static class GeneratedCodeHelper
{
+ ///
+ /// Warning codes suppressed in generated code via #pragma warning disable.
+ /// These are warnings that generated code may trigger but that consumers
+ /// should not see (especially under TreatWarningsAsErrors).
+ ///
+ internal const string PragmaWarningDisableCodes = "CS1591,CS8019,CS0162,CS0612,CS0618";
+
///
/// Creates the standard // <auto-generated /> header trivia
- /// followed by a generator-specific comment and a blank line.
+ /// followed by a generator-specific comment, #pragma warning disable
+ /// for generated-code-safe warnings, and a blank line.
///
- internal static SyntaxTriviaList CreateAutoGeneratedHeader(string generatorName) =>
- SyntaxFactory.TriviaList(
+ internal static SyntaxTriviaList CreateAutoGeneratedHeader(string generatorName)
+ {
+ var pragmaTrivia = SyntaxFactory.ParseLeadingTrivia($"#pragma warning disable {PragmaWarningDisableCodes}\n");
+
+ var builder = new List
+ {
SyntaxFactory.Comment("// "),
SyntaxFactory.EndOfLine("\n"),
SyntaxFactory.Comment($"// Generated by DesignPatterns.SourceGenerators.{generatorName}"),
SyntaxFactory.EndOfLine("\n"),
- SyntaxFactory.EndOfLine("\n"));
+ SyntaxFactory.EndOfLine("\n"),
+ };
+ builder.AddRange(pragmaTrivia);
+ builder.Add(SyntaxFactory.EndOfLine("\n"));
+
+ return SyntaxFactory.TriviaList(builder);
+ }
///
/// Creates a #nullable enable preprocessor directive trivia.
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
index ad3057d..b287c4c 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
@@ -3,7 +3,6 @@
using System;
using System.Threading.Tasks;
-#nullable enable
namespace TestAssembly
{
///
@@ -112,6 +111,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IMenuNode.MenuNodeCompositeCatalog.g.cs:
using System;
@@ -120,7 +122,6 @@ using DesignPatterns.Structural;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-#nullable enable
namespace TestAssembly
{
///
@@ -179,11 +180,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IMenuNode.MenuNodeCompositeKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -203,5 +206,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesForestCatalogWithMultipleRoots.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesForestCatalogWithMultipleRoots.verified.txt
index 8b60be8..692d6f2 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesForestCatalogWithMultipleRoots.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesForestCatalogWithMultipleRoots.verified.txt
@@ -3,7 +3,6 @@
using System;
using System.Threading.Tasks;
-#nullable enable
namespace TestAssembly
{
///
@@ -112,13 +111,15 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IMenuNode.MenuNodeCompositeCatalog.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Structural;
-#nullable enable
namespace TestAssembly
{
///
@@ -150,11 +151,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IMenuNode.MenuNodeCompositeKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -174,5 +177,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalog.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalog.verified.txt
index fdfb8be..b7dd1d4 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalog.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalog.verified.txt
@@ -3,7 +3,6 @@
using System;
using System.Threading.Tasks;
-#nullable enable
namespace TestAssembly
{
///
@@ -131,13 +130,15 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IMenuNode.MenuNodeCompositeCatalog.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Structural;
-#nullable enable
namespace TestAssembly
{
///
@@ -170,11 +171,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IMenuNode.MenuNodeCompositeKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -198,5 +201,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalogWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalogWithNonGenericAttribute.verified.txt
index da5825b..de8cb8d 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalogWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalogWithNonGenericAttribute.verified.txt
@@ -3,7 +3,6 @@
using System;
using System.Threading.Tasks;
-#nullable enable
namespace TestAssembly
{
///
@@ -93,13 +92,15 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IMenuNode.MenuNodeCompositeCatalog.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Structural;
-#nullable enable
namespace TestAssembly
{
///
@@ -130,11 +131,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IMenuNode.MenuNodeCompositeKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -150,5 +153,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
index da8adab..09165ac 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
@@ -2,7 +2,6 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -18,6 +17,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
@@ -25,7 +27,6 @@ using DesignPatterns.Structural;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-#nullable enable
namespace TestAssembly
{
///
@@ -61,5 +62,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWithAsyncDecoratorWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWithAsyncDecoratorWhenDiIntegrationEnabled.verified.txt
index b2ce848..eb14070 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWithAsyncDecoratorWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWithAsyncDecoratorWhenDiIntegrationEnabled.verified.txt
@@ -2,7 +2,6 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -18,6 +17,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
@@ -25,7 +27,6 @@ using DesignPatterns.Structural;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-#nullable enable
namespace TestAssembly
{
///
@@ -69,5 +70,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesAsyncDecoratorStack.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesAsyncDecoratorStack.verified.txt
index b4bba73..9ccdb2b 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesAsyncDecoratorStack.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesAsyncDecoratorStack.verified.txt
@@ -2,7 +2,6 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -18,12 +17,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
-#nullable enable
namespace TestAssembly
{
///
@@ -50,5 +51,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorOrderConstants.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorOrderConstants.verified.txt
index fe17a9b..e186997 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorOrderConstants.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorOrderConstants.verified.txt
@@ -2,7 +2,6 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -22,12 +21,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
-#nullable enable
namespace TestAssembly
{
///
@@ -46,5 +47,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorStack.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorStack.verified.txt
index fe17a9b..e186997 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorStack.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorStack.verified.txt
@@ -2,7 +2,6 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -22,12 +21,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
-#nullable enable
namespace TestAssembly
{
///
@@ -46,5 +47,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesMixedSyncAndAsyncDecoratorStack.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesMixedSyncAndAsyncDecoratorStack.verified.txt
index fd6f494..4a1f1ee 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesMixedSyncAndAsyncDecoratorStack.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesMixedSyncAndAsyncDecoratorStack.verified.txt
@@ -2,7 +2,6 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -22,12 +21,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
-#nullable enable
namespace TestAssembly
{
///
@@ -54,5 +55,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesStackWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesStackWithNonGenericAttribute.verified.txt
index 78da791..af2f66a 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesStackWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesStackWithNonGenericAttribute.verified.txt
@@ -2,7 +2,6 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -18,12 +17,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
-#nullable enable
namespace TestAssembly
{
///
@@ -42,5 +43,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/GenerateSingletonGeneratorTests.GeneratesNonThreadSafeSingleton.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/GenerateSingletonGeneratorTests.GeneratesNonThreadSafeSingleton.verified.txt
index 62cfeb1..f4b6591 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/GenerateSingletonGeneratorTests.GeneratesNonThreadSafeSingleton.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/GenerateSingletonGeneratorTests.GeneratesNonThreadSafeSingleton.verified.txt
@@ -28,5 +28,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.GenerateSingletonGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/GenerateSingletonGeneratorTests.GeneratesThreadSafeSingleton.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/GenerateSingletonGeneratorTests.GeneratesThreadSafeSingleton.verified.txt
index 7acbecc..6ce034f 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/GenerateSingletonGeneratorTests.GeneratesThreadSafeSingleton.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/GenerateSingletonGeneratorTests.GeneratesThreadSafeSingleton.verified.txt
@@ -28,5 +28,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.GenerateSingletonGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesOrderedPipeline.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesOrderedPipeline.verified.txt
index 7149330..6a2cb9f 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesOrderedPipeline.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesOrderedPipeline.verified.txt
@@ -26,5 +26,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelineWithGuard.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelineWithGuard.verified.txt
index 5386f41..0df50e2 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelineWithGuard.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelineWithGuard.verified.txt
@@ -26,5 +26,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelineWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelineWithNonGenericAttribute.verified.txt
index d662c59..be72407 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelineWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelineWithNonGenericAttribute.verified.txt
@@ -26,5 +26,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesForSameNamedContextsInDifferentNamespaces.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesForSameNamedContextsInDifferentNamespaces.verified.txt
index d9b742e..abc47e4 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesForSameNamedContextsInDifferentNamespaces.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesForSameNamedContextsInDifferentNamespaces.verified.txt
@@ -3,7 +3,6 @@
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace AdminApi
{
///
@@ -26,12 +25,14 @@ namespace AdminApi
}
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
PublicApi_RequestContext.RequestContextHandlerPipeline.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace PublicApi
{
///
@@ -54,5 +55,8 @@ namespace PublicApi
}
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesWhenSingleClassHasMultipleContexts.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesWhenSingleClassHasMultipleContexts.verified.txt
index 69296f4..641f1da 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesWhenSingleClassHasMultipleContexts.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesWhenSingleClassHasMultipleContexts.verified.txt
@@ -3,7 +3,6 @@
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -26,12 +25,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
RequestContext.RequestContextHandlerPipeline.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -54,5 +55,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.CompanionContractsShareProviderKeyInSameAssembly.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.CompanionContractsShareProviderKeyInSameAssembly.verified.txt
index fe2f615..906af8e 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.CompanionContractsShareProviderKeyInSameAssembly.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.CompanionContractsShareProviderKeyInSameAssembly.verified.txt
@@ -2,7 +2,6 @@
IControl.ControlKeys.g.cs:
using System;
-#nullable enable
namespace Plugin.Providers.Gamma
{
///
@@ -18,13 +17,15 @@ namespace Plugin.Providers.Gamma
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IControl.ControlRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace Plugin.Providers.Gamma
{
///
@@ -47,11 +48,13 @@ namespace Plugin.Providers.Gamma
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IErrorHandler.ErrorHandlerKeys.g.cs:
using System;
-#nullable enable
namespace Plugin.Providers.Gamma
{
///
@@ -67,13 +70,15 @@ namespace Plugin.Providers.Gamma
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IErrorHandler.ErrorHandlerRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace Plugin.Providers.Gamma
{
///
@@ -96,5 +101,8 @@ namespace Plugin.Providers.Gamma
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.GeneratesRegistryInProviderAssemblyWhenContractIsExternal.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.GeneratesRegistryInProviderAssemblyWhenContractIsExternal.verified.txt
index 747b6c5..3b4c32c 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.GeneratesRegistryInProviderAssemblyWhenContractIsExternal.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.GeneratesRegistryInProviderAssemblyWhenContractIsExternal.verified.txt
@@ -2,7 +2,6 @@
ICardMotion.CardMotionKeys.g.cs:
using System;
-#nullable enable
namespace Plugin.Contracts
{
///
@@ -18,13 +17,15 @@ namespace Plugin.Contracts
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
ICardMotion.CardMotionRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace Plugin.Contracts
{
///
@@ -47,5 +48,8 @@ namespace Plugin.Contracts
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
index fac99b0..0897768 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
@@ -44,5 +44,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesHandlerRegistryWithGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesHandlerRegistryWithGenericAttribute.verified.txt
index dc89e54..f972baf 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesHandlerRegistryWithGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesHandlerRegistryWithGenericAttribute.verified.txt
@@ -24,5 +24,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesHandlerRegistryWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesHandlerRegistryWithNonGenericAttribute.verified.txt
index 5348477..ee048d7 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesHandlerRegistryWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesHandlerRegistryWithNonGenericAttribute.verified.txt
@@ -23,5 +23,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistriesForMultipleEventTypesOnSameHandler.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistriesForMultipleEventTypesOnSameHandler.verified.txt
index a42fefa..4216cfe 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistriesForMultipleEventTypesOnSameHandler.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistriesForMultipleEventTypesOnSameHandler.verified.txt
@@ -3,7 +3,6 @@
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -23,12 +22,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
OrderPlacedEvent.OrderPlacedEventHandlerRegistry.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -48,5 +49,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistryForGlobalNamespaceEvent.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistryForGlobalNamespaceEvent.verified.txt
index 147f5a6..5e26400 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistryForGlobalNamespaceEvent.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistryForGlobalNamespaceEvent.verified.txt
@@ -17,5 +17,6 @@ public static partial class GlobalEventHandlerRegistry
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.SeparatesStaticAndDiPathsByParameterlessConstructor.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.SeparatesStaticAndDiPathsByParameterlessConstructor.verified.txt
index f01d48f..6c64292 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.SeparatesStaticAndDiPathsByParameterlessConstructor.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.SeparatesStaticAndDiPathsByParameterlessConstructor.verified.txt
@@ -46,5 +46,6 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForAsyncFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForAsyncFactory.verified.txt
index 3bd7797..859ec15 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForAsyncFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForAsyncFactory.verified.txt
@@ -6,7 +6,6 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
-#nullable enable
namespace TestAssembly
{
///
@@ -26,7 +25,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -52,11 +51,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -72,6 +73,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
@@ -79,7 +83,6 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
-#nullable enable
namespace TestAssembly
{
///
@@ -99,7 +102,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -125,5 +128,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForPooledFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForPooledFactory.verified.txt
index 9a86184..604819b 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForPooledFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForPooledFactory.verified.txt
@@ -6,7 +6,6 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
-#nullable enable
namespace TestAssembly
{
///
@@ -26,7 +25,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -52,11 +51,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -72,6 +73,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryPooledRegistry.g.cs:
using System;
@@ -80,7 +84,6 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
-#nullable enable
namespace TestAssembly
{
///
@@ -100,7 +103,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -126,6 +129,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
@@ -133,7 +139,6 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
-#nullable enable
namespace TestAssembly
{
///
@@ -153,7 +158,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -179,5 +184,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForAsyncFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForAsyncFactory.verified.txt
index bf8edf4..8020e52 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForAsyncFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForAsyncFactory.verified.txt
@@ -7,7 +7,6 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
-#nullable enable
namespace TestAssembly
{
///
@@ -36,11 +35,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -56,6 +57,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
@@ -64,7 +68,6 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
-#nullable enable
namespace TestAssembly
{
///
@@ -93,5 +96,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForPooledFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForPooledFactory.verified.txt
index 88c70ff..fe02fb1 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForPooledFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForPooledFactory.verified.txt
@@ -7,7 +7,6 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
-#nullable enable
namespace TestAssembly
{
///
@@ -36,11 +35,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -56,6 +57,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryPooledRegistry.g.cs:
using System;
@@ -65,7 +69,6 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
-#nullable enable
namespace TestAssembly
{
///
@@ -94,6 +97,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
@@ -102,7 +108,6 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
-#nullable enable
namespace TestAssembly
{
///
@@ -131,5 +136,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWhenFactoryImplementsIAsyncFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWhenFactoryImplementsIAsyncFactory.verified.txt
index 65e77de..3a9f8cd 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWhenFactoryImplementsIAsyncFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWhenFactoryImplementsIAsyncFactory.verified.txt
@@ -4,7 +4,6 @@ using System;
using System.Threading;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -20,11 +19,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -44,12 +45,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -65,5 +68,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWithNonGenericAttribute.verified.txt
index 0b366ff..442cc10 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWithNonGenericAttribute.verified.txt
@@ -4,7 +4,6 @@ using System;
using System.Threading;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -20,11 +19,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -40,12 +41,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -61,5 +64,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistry.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistry.verified.txt
index 61a560f..761c487 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistry.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistry.verified.txt
@@ -2,7 +2,6 @@
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -22,12 +21,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -43,5 +44,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
index 700bb78..22eb0b6 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
@@ -2,7 +2,6 @@
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -18,12 +17,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -39,5 +40,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesMixedSyncAndAsyncRegistries.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesMixedSyncAndAsyncRegistries.verified.txt
index f92ef51..36a088c 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesMixedSyncAndAsyncRegistries.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesMixedSyncAndAsyncRegistries.verified.txt
@@ -4,7 +4,6 @@ using System;
using System.Threading;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -20,11 +19,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -44,12 +45,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -65,5 +68,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesPooledRegistryWhenPoolSizeIsSet.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesPooledRegistryWhenPoolSizeIsSet.verified.txt
index ec837ab..9b84d2c 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesPooledRegistryWhenPoolSizeIsSet.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesPooledRegistryWhenPoolSizeIsSet.verified.txt
@@ -4,7 +4,6 @@ using System;
using System.Threading;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -20,11 +19,13 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -40,13 +41,15 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryPooledRegistry.g.cs:
using System;
using System.Threading;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -62,12 +65,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
-#nullable enable
namespace TestAssembly
{
///
@@ -83,5 +88,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
index 87d9491..a090aac 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
@@ -2,7 +2,6 @@
Catalog_IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace Catalog
{
///
@@ -18,12 +17,14 @@ namespace Catalog
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
Catalog_IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
-#nullable enable
namespace Catalog
{
///
@@ -39,11 +40,13 @@ namespace Catalog
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
Fulfillment_IProductFactory.ProductFactoryKeys.g.cs:
using System;
-#nullable enable
namespace Fulfillment
{
///
@@ -59,12 +62,14 @@ namespace Fulfillment
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
Fulfillment_IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
-#nullable enable
namespace Fulfillment
{
///
@@ -80,5 +85,8 @@ namespace Fulfillment
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistry.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistry.verified.txt
index 26f1e43..974854a 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistry.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistry.verified.txt
@@ -2,7 +2,6 @@
IPaymentStrategy.PaymentStrategyKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -22,13 +21,15 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentStrategy.PaymentStrategyRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -51,5 +52,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryForAsyncStrategyContract.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryForAsyncStrategyContract.verified.txt
index 01219cf..556bff1 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryForAsyncStrategyContract.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryForAsyncStrategyContract.verified.txt
@@ -2,7 +2,6 @@
IProcessor.ProcessorKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -22,13 +21,15 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IProcessor.ProcessorRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -51,5 +52,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
index f35aba3..0cf525e 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
@@ -2,7 +2,6 @@
IPaymentStrategy.PaymentStrategyKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -18,13 +17,15 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
IPaymentStrategy.PaymentStrategyRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -47,5 +48,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesRegistryWithGuard.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesRegistryWithGuard.verified.txt
index 5f515b3..63f7305 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesRegistryWithGuard.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesRegistryWithGuard.verified.txt
@@ -2,7 +2,6 @@
ITextProcessor.TextProcessorKeys.g.cs:
using System;
-#nullable enable
namespace TestAssembly
{
///
@@ -18,13 +17,15 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
ITextProcessor.TextProcessorRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -47,5 +48,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
index f74f255..4c2d4af 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
@@ -2,7 +2,6 @@
Billing_IPaymentStrategy.PaymentStrategyKeys.g.cs:
using System;
-#nullable enable
namespace Billing
{
///
@@ -18,13 +17,15 @@ namespace Billing
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
Billing_IPaymentStrategy.PaymentStrategyRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace Billing
{
///
@@ -47,11 +48,13 @@ namespace Billing
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
Sales_IPaymentStrategy.PaymentStrategyKeys.g.cs:
using System;
-#nullable enable
namespace Sales
{
///
@@ -67,13 +70,15 @@ namespace Sales
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
Sales_IPaymentStrategy.PaymentStrategyRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
-#nullable enable
namespace Sales
{
///
@@ -96,5 +101,8 @@ namespace Sales
}
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsAsyncOnEnterAction.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsAsyncOnEnterAction.verified.txt
index e108f84..5525b0c 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsAsyncOnEnterAction.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsAsyncOnEnterAction.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -114,5 +117,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsGuardWhenTransitionHasGuardProperty.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsGuardWhenTransitionHasGuardProperty.verified.txt
index ca6f141..728e352 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsGuardWhenTransitionHasGuardProperty.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsGuardWhenTransitionHasGuardProperty.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -114,5 +117,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithActionChainCompositeDelegate.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithActionChainCompositeDelegate.verified.txt
index 30c538b..6fd29f3 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithActionChainCompositeDelegate.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithActionChainCompositeDelegate.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -134,5 +137,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithAsyncActionChainCompositeDelegate.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithAsyncActionChainCompositeDelegate.verified.txt
index 891506c..f3bdd55 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithAsyncActionChainCompositeDelegate.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithAsyncActionChainCompositeDelegate.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -134,5 +137,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithDiIntegrationRegistersIStateHierarchy.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithDiIntegrationRegistersIStateHierarchy.verified.txt
index de7ecd9..ebc3d4d 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithDiIntegrationRegistersIStateHierarchy.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithDiIntegrationRegistersIStateHierarchy.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,6 +33,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
@@ -41,7 +43,6 @@ using DesignPatterns.Behavioral;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-#nullable enable
namespace TestAssembly
{
///
@@ -76,6 +77,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -86,7 +90,6 @@ using DesignPatterns.Behavioral;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-#nullable enable
namespace TestAssembly
{
///
@@ -149,5 +152,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithEnterActionChain.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithEnterActionChain.verified.txt
index 085d34e..96f29c4 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithEnterActionChain.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithEnterActionChain.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -134,5 +137,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithStateParentAndFlattening.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithStateParentAndFlattening.verified.txt
index e76c4c5..dc6a820 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithStateParentAndFlattening.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithStateParentAndFlattening.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -126,5 +129,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsMixedGuardedAndUnguardedTransitions.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsMixedGuardedAndUnguardedTransitions.verified.txt
index 5a7bba1..926c9d6 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsMixedGuardedAndUnguardedTransitions.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsMixedGuardedAndUnguardedTransitions.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -114,5 +117,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabled.verified.txt
index ce212f1..4170f87 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabled.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,6 +33,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
@@ -41,7 +43,6 @@ using DesignPatterns.Behavioral;
using Autofac;
using DesignPatterns.Extensions.Autofac;
-#nullable enable
namespace TestAssembly
{
///
@@ -67,7 +68,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
{
OrderStatusTransitionTable.RegisterAutofac(builder, sharing, serviceKey);
if (sharing == global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared)
@@ -82,6 +83,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -92,7 +96,6 @@ using DesignPatterns.Behavioral;
using Autofac;
using DesignPatterns.Extensions.Autofac;
-#nullable enable
namespace TestAssembly
{
///
@@ -134,7 +137,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
{
builder.Register(_ => Instance).As>().SingleInstance();
if (serviceKey is not null)
@@ -145,5 +148,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
index b91f2fa..3fb420d 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,6 +33,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
@@ -41,7 +43,6 @@ using DesignPatterns.Behavioral;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-#nullable enable
namespace TestAssembly
{
///
@@ -76,6 +77,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -86,7 +90,6 @@ using DesignPatterns.Behavioral;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
-#nullable enable
namespace TestAssembly
{
///
@@ -136,5 +139,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsSyncOnEnterAndOnExitActions.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsSyncOnEnterAndOnExitActions.verified.txt
index fc686d8..635e2ae 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsSyncOnEnterAndOnExitActions.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsSyncOnEnterAndOnExitActions.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -114,5 +117,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.GeneratesSourcesInHolderNamespaceWhenStateEnumDiffers.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.GeneratesSourcesInHolderNamespaceWhenStateEnumDiffers.verified.txt
index f209ed5..157b968 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.GeneratesSourcesInHolderNamespaceWhenStateEnumDiffers.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.GeneratesSourcesInHolderNamespaceWhenStateEnumDiffers.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly.Machines
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly.Machines
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_Domain_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly.Machines
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly.Machines
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_Domain_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly.Machines
{
///
@@ -114,5 +117,8 @@ namespace TestAssembly.Machines
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.GeneratesTransitionTableAndHolderPartial.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.GeneratesTransitionTableAndHolderPartial.verified.txt
index 522c3bd..89c33d9 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.GeneratesTransitionTableAndHolderPartial.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.GeneratesTransitionTableAndHolderPartial.verified.txt
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -34,12 +33,14 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +65,9 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -72,7 +76,6 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
-#nullable enable
namespace TestAssembly
{
///
@@ -114,5 +117,8 @@ namespace TestAssembly
}
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
+#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
+
+#nullable enable
}
\ No newline at end of file
From 0db4336015f9ee3b92fb867b03332b7f1e5443e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=90=BD=E7=AC=94?=
<46271592+Skymly@users.noreply.github.com>
Date: Sat, 4 Jul 2026 11:52:38 +0800
Subject: [PATCH 2/2] Update Verify snapshots after rebase: #nullable enable +
#pragma warning disable
Rebase onto main (which includes PR #208 #nullable enable placement fix)
required updating all Verify snapshots to reflect both changes:
- #nullable enable now appears before namespace (from #208)
- #pragma warning disable appears in header (from #210)
---
...sterDiWhenDiIntegrationEnabled.verified.txt | 9 +++------
...ForestCatalogWithMultipleRoots.verified.txt | 9 +++------
...rTests.GeneratesKeysAndCatalog.verified.txt | 9 +++------
...CatalogWithNonGenericAttribute.verified.txt | 9 +++------
...sterDiWhenDiIntegrationEnabled.verified.txt | 6 ++----
...oratorWhenDiIntegrationEnabled.verified.txt | 6 ++----
...s.GeneratesAsyncDecoratorStack.verified.txt | 6 ++----
...neratesDecoratorOrderConstants.verified.txt | 6 ++----
...rTests.GeneratesDecoratorStack.verified.txt | 6 ++----
...ixedSyncAndAsyncDecoratorStack.verified.txt | 6 ++----
...esStackWithNonGenericAttribute.verified.txt | 6 ++----
...dContextsInDifferentNamespaces.verified.txt | 6 ++----
...SingleClassHasMultipleContexts.verified.txt | 6 ++----
...ShareProviderKeyInSameAssembly.verified.txt | 12 ++++--------
...AssemblyWhenContractIsExternal.verified.txt | 6 ++----
...ultipleEventTypesOnSameHandler.verified.txt | 6 ++----
...egrationEnabledForAsyncFactory.verified.txt | 13 +++++--------
...grationEnabledForPooledFactory.verified.txt | 18 +++++++-----------
...egrationEnabledForAsyncFactory.verified.txt | 9 +++------
...grationEnabledForPooledFactory.verified.txt | 12 ++++--------
...FactoryImplementsIAsyncFactory.verified.txt | 9 +++------
...egistryWithNonGenericAttribute.verified.txt | 9 +++------
...Tests.GeneratesKeysAndRegistry.verified.txt | 6 ++----
...egistryWithNonGenericAttribute.verified.txt | 6 ++----
...tesMixedSyncAndAsyncRegistries.verified.txt | 9 +++------
...ooledRegistryWhenPoolSizeIsSet.verified.txt | 12 ++++--------
...ContractsInDifferentNamespaces.verified.txt | 12 ++++--------
...Tests.GeneratesKeysAndRegistry.verified.txt | 6 ++----
...gistryForAsyncStrategyContract.verified.txt | 6 ++----
...egistryWithNonGenericAttribute.verified.txt | 6 ++----
...sts.GeneratesRegistryWithGuard.verified.txt | 6 ++----
...ContractsInDifferentNamespaces.verified.txt | 12 ++++--------
...rTests.EmitsAsyncOnEnterAction.verified.txt | 9 +++------
...WhenTransitionHasGuardProperty.verified.txt | 9 +++------
...thActionChainCompositeDelegate.verified.txt | 9 +++------
...ncActionChainCompositeDelegate.verified.txt | 9 +++------
...rationRegistersIStateHierarchy.verified.txt | 9 +++------
...hicalTableWithEnterActionChain.verified.txt | 9 +++------
...leWithStateParentAndFlattening.verified.txt | 9 +++------
...GuardedAndUnguardedTransitions.verified.txt | 9 +++------
...cWhenAutofacIntegrationEnabled.verified.txt | 13 +++++--------
...sterDiWhenDiIntegrationEnabled.verified.txt | 9 +++------
...itsSyncOnEnterAndOnExitActions.verified.txt | 9 +++------
...rNamespaceWhenStateEnumDiffers.verified.txt | 9 +++------
...ransitionTableAndHolderPartial.verified.txt | 9 +++------
45 files changed, 131 insertions(+), 255 deletions(-)
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
index b287c4c..aaf143d 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
@@ -3,6 +3,7 @@
using System;
using System.Threading.Tasks;
+#nullable enable
namespace TestAssembly
{
///
@@ -112,8 +113,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IMenuNode.MenuNodeCompositeCatalog.g.cs:
using System;
@@ -122,6 +121,7 @@ using DesignPatterns.Structural;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
+#nullable enable
namespace TestAssembly
{
///
@@ -181,12 +181,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IMenuNode.MenuNodeCompositeKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -208,6 +207,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesForestCatalogWithMultipleRoots.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesForestCatalogWithMultipleRoots.verified.txt
index 692d6f2..058d437 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesForestCatalogWithMultipleRoots.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesForestCatalogWithMultipleRoots.verified.txt
@@ -3,6 +3,7 @@
using System;
using System.Threading.Tasks;
+#nullable enable
namespace TestAssembly
{
///
@@ -112,14 +113,13 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IMenuNode.MenuNodeCompositeCatalog.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Structural;
+#nullable enable
namespace TestAssembly
{
///
@@ -152,12 +152,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IMenuNode.MenuNodeCompositeKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -179,6 +178,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalog.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalog.verified.txt
index b7dd1d4..23a8e06 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalog.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalog.verified.txt
@@ -3,6 +3,7 @@
using System;
using System.Threading.Tasks;
+#nullable enable
namespace TestAssembly
{
///
@@ -131,14 +132,13 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IMenuNode.MenuNodeCompositeCatalog.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Structural;
+#nullable enable
namespace TestAssembly
{
///
@@ -172,12 +172,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IMenuNode.MenuNodeCompositeKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -203,6 +202,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalogWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalogWithNonGenericAttribute.verified.txt
index de8cb8d..93e976c 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalogWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/CompositePartGeneratorTests.GeneratesKeysAndCatalogWithNonGenericAttribute.verified.txt
@@ -3,6 +3,7 @@
using System;
using System.Threading.Tasks;
+#nullable enable
namespace TestAssembly
{
///
@@ -93,14 +94,13 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IMenuNode.MenuNodeCompositeCatalog.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Structural;
+#nullable enable
namespace TestAssembly
{
///
@@ -132,12 +132,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IMenuNode.MenuNodeCompositeKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -155,6 +154,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.CompositePartGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
index 09165ac..bc9b953 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
@@ -2,6 +2,7 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -18,8 +19,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
@@ -27,6 +26,7 @@ using DesignPatterns.Structural;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
+#nullable enable
namespace TestAssembly
{
///
@@ -64,6 +64,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWithAsyncDecoratorWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWithAsyncDecoratorWhenDiIntegrationEnabled.verified.txt
index eb14070..c8a90d6 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWithAsyncDecoratorWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.EmitsRegisterDiWithAsyncDecoratorWhenDiIntegrationEnabled.verified.txt
@@ -2,6 +2,7 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -18,8 +19,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
@@ -27,6 +26,7 @@ using DesignPatterns.Structural;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
+#nullable enable
namespace TestAssembly
{
///
@@ -72,6 +72,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesAsyncDecoratorStack.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesAsyncDecoratorStack.verified.txt
index 9ccdb2b..52cde85 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesAsyncDecoratorStack.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesAsyncDecoratorStack.verified.txt
@@ -2,6 +2,7 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -18,13 +19,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
+#nullable enable
namespace TestAssembly
{
///
@@ -53,6 +53,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorOrderConstants.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorOrderConstants.verified.txt
index e186997..dfb7410 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorOrderConstants.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorOrderConstants.verified.txt
@@ -2,6 +2,7 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -22,13 +23,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
+#nullable enable
namespace TestAssembly
{
///
@@ -49,6 +49,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorStack.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorStack.verified.txt
index e186997..dfb7410 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorStack.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesDecoratorStack.verified.txt
@@ -2,6 +2,7 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -22,13 +23,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
+#nullable enable
namespace TestAssembly
{
///
@@ -49,6 +49,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesMixedSyncAndAsyncDecoratorStack.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesMixedSyncAndAsyncDecoratorStack.verified.txt
index 4a1f1ee..d8f24a7 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesMixedSyncAndAsyncDecoratorStack.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesMixedSyncAndAsyncDecoratorStack.verified.txt
@@ -2,6 +2,7 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -22,13 +23,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
+#nullable enable
namespace TestAssembly
{
///
@@ -57,6 +57,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesStackWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesStackWithNonGenericAttribute.verified.txt
index af2f66a..de7c538 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesStackWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/DecoratorGeneratorTests.GeneratesStackWithNonGenericAttribute.verified.txt
@@ -2,6 +2,7 @@
IPaymentService.PaymentServiceDecoratorOrder.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -18,13 +19,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentService.PaymentServiceDecoratorStack.g.cs:
using System;
using DesignPatterns.Structural;
+#nullable enable
namespace TestAssembly
{
///
@@ -45,6 +45,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.DecoratorGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesForSameNamedContextsInDifferentNamespaces.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesForSameNamedContextsInDifferentNamespaces.verified.txt
index abc47e4..6d5d331 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesForSameNamedContextsInDifferentNamespaces.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesForSameNamedContextsInDifferentNamespaces.verified.txt
@@ -3,6 +3,7 @@
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace AdminApi
{
///
@@ -26,13 +27,12 @@ namespace AdminApi
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
PublicApi_RequestContext.RequestContextHandlerPipeline.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace PublicApi
{
///
@@ -57,6 +57,4 @@ namespace PublicApi
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesWhenSingleClassHasMultipleContexts.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesWhenSingleClassHasMultipleContexts.verified.txt
index 641f1da..56db712 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesWhenSingleClassHasMultipleContexts.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/HandlerOrderGeneratorTests.GeneratesPipelinesWhenSingleClassHasMultipleContexts.verified.txt
@@ -3,6 +3,7 @@
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -26,13 +27,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
RequestContext.RequestContextHandlerPipeline.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -57,6 +57,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.HandlerOrderGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.CompanionContractsShareProviderKeyInSameAssembly.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.CompanionContractsShareProviderKeyInSameAssembly.verified.txt
index 906af8e..05af4fa 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.CompanionContractsShareProviderKeyInSameAssembly.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.CompanionContractsShareProviderKeyInSameAssembly.verified.txt
@@ -2,6 +2,7 @@
IControl.ControlKeys.g.cs:
using System;
+#nullable enable
namespace Plugin.Providers.Gamma
{
///
@@ -18,14 +19,13 @@ namespace Plugin.Providers.Gamma
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IControl.ControlRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace Plugin.Providers.Gamma
{
///
@@ -49,12 +49,11 @@ namespace Plugin.Providers.Gamma
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IErrorHandler.ErrorHandlerKeys.g.cs:
using System;
+#nullable enable
namespace Plugin.Providers.Gamma
{
///
@@ -71,14 +70,13 @@ namespace Plugin.Providers.Gamma
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IErrorHandler.ErrorHandlerRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace Plugin.Providers.Gamma
{
///
@@ -103,6 +101,4 @@ namespace Plugin.Providers.Gamma
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.GeneratesRegistryInProviderAssemblyWhenContractIsExternal.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.GeneratesRegistryInProviderAssemblyWhenContractIsExternal.verified.txt
index 3b4c32c..812643f 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.GeneratesRegistryInProviderAssemblyWhenContractIsExternal.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/PluginAssemblyGeneratorTests.GeneratesRegistryInProviderAssemblyWhenContractIsExternal.verified.txt
@@ -2,6 +2,7 @@
ICardMotion.CardMotionKeys.g.cs:
using System;
+#nullable enable
namespace Plugin.Contracts
{
///
@@ -18,14 +19,13 @@ namespace Plugin.Contracts
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
ICardMotion.CardMotionRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace Plugin.Contracts
{
///
@@ -50,6 +50,4 @@ namespace Plugin.Contracts
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistriesForMultipleEventTypesOnSameHandler.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistriesForMultipleEventTypesOnSameHandler.verified.txt
index 4216cfe..484e661 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistriesForMultipleEventTypesOnSameHandler.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterEventHandlerGeneratorTests.GeneratesRegistriesForMultipleEventTypesOnSameHandler.verified.txt
@@ -3,6 +3,7 @@
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -23,13 +24,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
OrderPlacedEvent.OrderPlacedEventHandlerRegistry.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -51,6 +51,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterEventHandlerGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForAsyncFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForAsyncFactory.verified.txt
index 859ec15..59e0dfc 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForAsyncFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForAsyncFactory.verified.txt
@@ -6,6 +6,7 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
+#nullable enable
namespace TestAssembly
{
///
@@ -25,7 +26,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -52,12 +53,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -74,8 +74,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
@@ -83,6 +81,7 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
+#nullable enable
namespace TestAssembly
{
///
@@ -102,7 +101,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -130,6 +129,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForPooledFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForPooledFactory.verified.txt
index 604819b..e6a3e40 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForPooledFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabledForPooledFactory.verified.txt
@@ -6,6 +6,7 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
+#nullable enable
namespace TestAssembly
{
///
@@ -25,7 +26,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -52,12 +53,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -74,8 +74,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryPooledRegistry.g.cs:
using System;
@@ -84,6 +82,7 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
+#nullable enable
namespace TestAssembly
{
///
@@ -103,7 +102,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -130,8 +129,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
@@ -139,6 +136,7 @@ using DesignPatterns.Creational;
using Autofac;
using DesignPatterns.Extensions.Autofac;
+#nullable enable
namespace TestAssembly
{
///
@@ -158,7 +156,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
{
{
var registration = builder.RegisterType();
@@ -186,6 +184,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForAsyncFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForAsyncFactory.verified.txt
index 8020e52..5a03b0d 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForAsyncFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForAsyncFactory.verified.txt
@@ -7,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
+#nullable enable
namespace TestAssembly
{
///
@@ -36,12 +37,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -58,8 +58,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
@@ -68,6 +66,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
+#nullable enable
namespace TestAssembly
{
///
@@ -98,6 +97,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForPooledFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForPooledFactory.verified.txt
index fe02fb1..e3e73f4 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForPooledFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabledForPooledFactory.verified.txt
@@ -7,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
+#nullable enable
namespace TestAssembly
{
///
@@ -36,12 +37,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -58,8 +58,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryPooledRegistry.g.cs:
using System;
@@ -69,6 +67,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
+#nullable enable
namespace TestAssembly
{
///
@@ -98,8 +97,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
@@ -108,6 +105,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using DesignPatterns.Extensions.DependencyInjection;
+#nullable enable
namespace TestAssembly
{
///
@@ -138,6 +136,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWhenFactoryImplementsIAsyncFactory.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWhenFactoryImplementsIAsyncFactory.verified.txt
index 3a9f8cd..1815841 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWhenFactoryImplementsIAsyncFactory.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWhenFactoryImplementsIAsyncFactory.verified.txt
@@ -4,6 +4,7 @@ using System;
using System.Threading;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -20,12 +21,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -46,13 +46,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -70,6 +69,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWithNonGenericAttribute.verified.txt
index 442cc10..8fbadfc 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesAsyncRegistryWithNonGenericAttribute.verified.txt
@@ -4,6 +4,7 @@ using System;
using System.Threading;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -20,12 +21,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -42,13 +42,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,6 +65,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistry.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistry.verified.txt
index 761c487..fa7363e 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistry.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistry.verified.txt
@@ -2,6 +2,7 @@
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -22,13 +23,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -46,6 +46,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
index 22eb0b6..274fa19 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
@@ -2,6 +2,7 @@
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -18,13 +19,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -42,6 +42,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesMixedSyncAndAsyncRegistries.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesMixedSyncAndAsyncRegistries.verified.txt
index 36a088c..cf48103 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesMixedSyncAndAsyncRegistries.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesMixedSyncAndAsyncRegistries.verified.txt
@@ -4,6 +4,7 @@ using System;
using System.Threading;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -20,12 +21,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -46,13 +46,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -70,6 +69,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesPooledRegistryWhenPoolSizeIsSet.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesPooledRegistryWhenPoolSizeIsSet.verified.txt
index 9b84d2c..3e5aa71 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesPooledRegistryWhenPoolSizeIsSet.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesPooledRegistryWhenPoolSizeIsSet.verified.txt
@@ -4,6 +4,7 @@ using System;
using System.Threading;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -20,12 +21,11 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -42,14 +42,13 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryPooledRegistry.g.cs:
using System;
using System.Threading;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,13 +65,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
+#nullable enable
namespace TestAssembly
{
///
@@ -90,6 +88,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
index a090aac..0a1d8c0 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterFactoryGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
@@ -2,6 +2,7 @@
Catalog_IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace Catalog
{
///
@@ -18,13 +19,12 @@ namespace Catalog
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
Catalog_IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
+#nullable enable
namespace Catalog
{
///
@@ -41,12 +41,11 @@ namespace Catalog
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
Fulfillment_IProductFactory.ProductFactoryKeys.g.cs:
using System;
+#nullable enable
namespace Fulfillment
{
///
@@ -63,13 +62,12 @@ namespace Fulfillment
}//
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
Fulfillment_IProductFactory.ProductFactoryRegistry.g.cs:
using System;
using DesignPatterns.Creational;
+#nullable enable
namespace Fulfillment
{
///
@@ -87,6 +85,4 @@ namespace Fulfillment
// Generated by DesignPatterns.SourceGenerators.RegisterFactoryGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistry.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistry.verified.txt
index 974854a..6fa0df7 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistry.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistry.verified.txt
@@ -2,6 +2,7 @@
IPaymentStrategy.PaymentStrategyKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -22,14 +23,13 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentStrategy.PaymentStrategyRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -54,6 +54,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryForAsyncStrategyContract.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryForAsyncStrategyContract.verified.txt
index 556bff1..94ded45 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryForAsyncStrategyContract.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryForAsyncStrategyContract.verified.txt
@@ -2,6 +2,7 @@
IProcessor.ProcessorKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -22,14 +23,13 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IProcessor.ProcessorRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -54,6 +54,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
index 0cf525e..727b1f2 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesKeysAndRegistryWithNonGenericAttribute.verified.txt
@@ -2,6 +2,7 @@
IPaymentStrategy.PaymentStrategyKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -18,14 +19,13 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
IPaymentStrategy.PaymentStrategyRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -50,6 +50,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesRegistryWithGuard.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesRegistryWithGuard.verified.txt
index 63f7305..c7f072e 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesRegistryWithGuard.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesRegistryWithGuard.verified.txt
@@ -2,6 +2,7 @@
ITextProcessor.TextProcessorKeys.g.cs:
using System;
+#nullable enable
namespace TestAssembly
{
///
@@ -18,14 +19,13 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
ITextProcessor.TextProcessorRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -50,6 +50,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
index 4c2d4af..ca53c7e 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/RegisterStrategyGeneratorTests.GeneratesSourcesForSameNamedContractsInDifferentNamespaces.verified.txt
@@ -2,6 +2,7 @@
Billing_IPaymentStrategy.PaymentStrategyKeys.g.cs:
using System;
+#nullable enable
namespace Billing
{
///
@@ -18,14 +19,13 @@ namespace Billing
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
Billing_IPaymentStrategy.PaymentStrategyRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace Billing
{
///
@@ -49,12 +49,11 @@ namespace Billing
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
Sales_IPaymentStrategy.PaymentStrategyKeys.g.cs:
using System;
+#nullable enable
namespace Sales
{
///
@@ -71,14 +70,13 @@ namespace Sales
}//
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
Sales_IPaymentStrategy.PaymentStrategyRegistry.g.cs:
using System;
using System.Collections.Generic;
using DesignPatterns.Behavioral;
+#nullable enable
namespace Sales
{
///
@@ -103,6 +101,4 @@ namespace Sales
// Generated by DesignPatterns.SourceGenerators.RegisterStrategyGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsAsyncOnEnterAction.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsAsyncOnEnterAction.verified.txt
index 5525b0c..fbd7bee 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsAsyncOnEnterAction.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsAsyncOnEnterAction.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,13 +35,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,8 +66,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -76,6 +74,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -119,6 +118,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsGuardWhenTransitionHasGuardProperty.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsGuardWhenTransitionHasGuardProperty.verified.txt
index 728e352..891be83 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsGuardWhenTransitionHasGuardProperty.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsGuardWhenTransitionHasGuardProperty.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,13 +35,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,8 +66,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -76,6 +74,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -119,6 +118,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithActionChainCompositeDelegate.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithActionChainCompositeDelegate.verified.txt
index 6fd29f3..2877e55 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithActionChainCompositeDelegate.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithActionChainCompositeDelegate.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,13 +35,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,8 +66,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -76,6 +74,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -139,6 +138,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithAsyncActionChainCompositeDelegate.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithAsyncActionChainCompositeDelegate.verified.txt
index f3bdd55..d411b8d 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithAsyncActionChainCompositeDelegate.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithAsyncActionChainCompositeDelegate.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,13 +35,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,8 +66,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -76,6 +74,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -139,6 +138,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithDiIntegrationRegistersIStateHierarchy.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithDiIntegrationRegistersIStateHierarchy.verified.txt
index ebc3d4d..743a122 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithDiIntegrationRegistersIStateHierarchy.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithDiIntegrationRegistersIStateHierarchy.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,8 +35,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
@@ -43,6 +42,7 @@ using DesignPatterns.Behavioral;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
+#nullable enable
namespace TestAssembly
{
///
@@ -78,8 +78,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -90,6 +88,7 @@ using DesignPatterns.Behavioral;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
+#nullable enable
namespace TestAssembly
{
///
@@ -154,6 +153,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithEnterActionChain.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithEnterActionChain.verified.txt
index 96f29c4..9af65fe 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithEnterActionChain.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithEnterActionChain.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,13 +35,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,8 +66,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -76,6 +74,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -139,6 +138,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithStateParentAndFlattening.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithStateParentAndFlattening.verified.txt
index dc6a820..f4b2f77 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithStateParentAndFlattening.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsHierarchicalTableWithStateParentAndFlattening.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,13 +35,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,8 +66,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -76,6 +74,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -131,6 +130,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsMixedGuardedAndUnguardedTransitions.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsMixedGuardedAndUnguardedTransitions.verified.txt
index 926c9d6..a859bdf 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsMixedGuardedAndUnguardedTransitions.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsMixedGuardedAndUnguardedTransitions.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,13 +35,12 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -66,8 +66,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -76,6 +74,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -119,6 +118,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabled.verified.txt
index 4170f87..1c292e0 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterAutofacWhenAutofacIntegrationEnabled.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,8 +35,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
@@ -43,6 +42,7 @@ using DesignPatterns.Behavioral;
using Autofac;
using DesignPatterns.Extensions.Autofac;
+#nullable enable
namespace TestAssembly
{
///
@@ -68,7 +68,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
{
OrderStatusTransitionTable.RegisterAutofac(builder, sharing, serviceKey);
if (sharing == global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared)
@@ -84,8 +84,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -96,6 +94,7 @@ using DesignPatterns.Behavioral;
using Autofac;
using DesignPatterns.Extensions.Autofac;
+#nullable enable
namespace TestAssembly
{
///
@@ -137,7 +136,7 @@ namespace TestAssembly
///
/// Registers the registry and all implementations with Autofac.
///
- public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object serviceKey = null)
+ public static void RegisterAutofac(global::Autofac.ContainerBuilder builder, global::DesignPatterns.Extensions.Autofac.InstanceSharing sharing = global::DesignPatterns.Extensions.Autofac.InstanceSharing.Shared, object? serviceKey = null)
{
builder.Register(_ => Instance).As>().SingleInstance();
if (serviceKey is not null)
@@ -150,6 +149,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
index 3fb420d..1150ee7 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsRegisterDiWhenDiIntegrationEnabled.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,8 +35,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusStateMachine.g.cs:
using System;
@@ -43,6 +42,7 @@ using DesignPatterns.Behavioral;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
+#nullable enable
namespace TestAssembly
{
///
@@ -78,8 +78,6 @@ namespace TestAssembly
}//
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-
-#nullable enable
,
TestAssembly_OrderStatus.OrderStatusTransitionTable.g.cs:
using System;
@@ -90,6 +88,7 @@ using DesignPatterns.Behavioral;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
+#nullable enable
namespace TestAssembly
{
///
@@ -141,6 +140,4 @@ namespace TestAssembly
// Generated by DesignPatterns.SourceGenerators.StateTransitionGenerator
#pragma warning disable CS1591, CS8019, CS0162, CS0612, CS0618
-#nullable enable
-
}
\ No newline at end of file
diff --git a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsSyncOnEnterAndOnExitActions.verified.txt b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsSyncOnEnterAndOnExitActions.verified.txt
index 635e2ae..80638fe 100644
--- a/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsSyncOnEnterAndOnExitActions.verified.txt
+++ b/tests/DesignPatterns.SourceGenerators.Tests/Generators/StateTransitionGeneratorTests.EmitsSyncOnEnterAndOnExitActions.verified.txt
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using DesignPatterns.Behavioral;
+#nullable enable
namespace TestAssembly
{
///
@@ -34,13 +35,12 @@ namespace TestAssembly
}//