From 764d9d4f587cf55a3c09d4da218e497e5341d4db Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 10 Oct 2023 19:38:40 +0200 Subject: [PATCH] Change "nullable disable" to "nullable restore" (#65) * Remove "#nullable disable" and the end of generated cs file * restore * . --- .../FileGenerators/PartialInterfacesGenerator.cs | 4 ++-- .../FileGenerators/ProxyClassesGenerator.cs | 4 ++-- .../Akka.Actor.LocalActorRefProviderProxy.g.cs | 2 +- ....Source.AkkaActor.ILocalActorRefProvider.g.cs | 2 +- .../Destination/INoNamespace.g.cs | 2 +- ...oft.SharePoint.Client.ClientContextProxy.g.cs | 2 +- ...soft.SharePoint.Client.ClientObjectProxy.g.cs | 2 +- ...rePoint.Client.ClientRuntimeContextProxy.g.cs | 2 +- ...t.SharePoint.Client.SecurableObjectProxy.g.cs | 2 +- .../Microsoft.SharePoint.Client.WebProxy.g.cs | 2 +- .../Destination/NoNamespaceProxy.g.cs | 2 +- ...eGeneratorTests.Source.Generic_T__1Proxy.g.cs | 2 +- ...ceSourceGeneratorTests.Source.HumanProxy.g.cs | 2 +- ...faceSourceGeneratorTests.Source.IGeneric.g.cs | 2 +- ...erfaceSourceGeneratorTests.Source.IHuman.g.cs | 2 +- ...ceGeneratorTests.Source.IMixedVisibility.g.cs | 2 +- ...ourceGeneratorTests.Source.IOperatorTest.g.cs | 2 +- ...rfaceSourceGeneratorTests.Source.IPerson.g.cs | 2 +- ...urceGeneratorTests.Source.IPersonExtends.g.cs | 2 +- ...GeneratorTests.Source.ITestClassInternal.g.cs | 2 +- ...neratorTests.Source.MixedVisibilityProxy.g.cs | 2 +- ...eGeneratorTests.Source.OperatorTestProxy.g.cs | 2 +- ...GeneratorTests.Source.PersonExtendsProxy.g.cs | 2 +- ...eSourceGeneratorTests.Source.PersonProxy.g.cs | 2 +- ...GeneratorTests.Source.PnP.IClientContext.g.cs | 2 +- ...eGeneratorTests.Source.PnP.IClientObject.g.cs | 2 +- ...orTests.Source.PnP.IClientRuntimeContext.g.cs | 2 +- ...neratorTests.Source.PnP.ISecurableObject.g.cs | 2 +- ...faceSourceGeneratorTests.Source.PnP.IWeb.g.cs | 2 +- ...ratorTests.Source.TestClassInternalProxy.g.cs | 2 +- ...rray_Should_GenerateCorrectFiles.verified.txt | 6 +++--- .../ProxyInterfaceSourceGeneratorTests.csproj | 16 +++++++--------- 32 files changed, 42 insertions(+), 44 deletions(-) diff --git a/src/ProxyInterfaceSourceGenerator/FileGenerators/PartialInterfacesGenerator.cs b/src/ProxyInterfaceSourceGenerator/FileGenerators/PartialInterfacesGenerator.cs index 209611f..11eba62 100644 --- a/src/ProxyInterfaceSourceGenerator/FileGenerators/PartialInterfacesGenerator.cs +++ b/src/ProxyInterfaceSourceGenerator/FileGenerators/PartialInterfacesGenerator.cs @@ -70,7 +70,7 @@ internal class PartialInterfacesGenerator : BaseGenerator, IFilesGenerator // //---------------------------------------------------------------------------------------- -{(SupportsNullable ? "#nullable enable" : string.Empty)} +{SupportsNullable.IIf("#nullable enable")} using System; {namespaceStart} @@ -85,7 +85,7 @@ using System; {GenerateEvents(classSymbol, proxyData.ProxyBaseClasses)} }} {namespaceEnd} -{(SupportsNullable ? "#nullable disable" : string.Empty)}"; +{SupportsNullable.IIf("#nullable restore")}"; } private string GenerateProperties(ClassSymbol targetClassSymbol, bool proxyBaseClasses) diff --git a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs index 5b25858..df7f5f1 100644 --- a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs +++ b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs @@ -100,7 +100,7 @@ internal partial class ProxyClassesGenerator : BaseGenerator, IFilesGenerator // //---------------------------------------------------------------------------------------- -{(SupportsNullable ? "#nullable enable" : string.Empty)} +{SupportsNullable.IIf("#nullable enable")} using System; {namespaceStart} @@ -126,7 +126,7 @@ using System; }} }} {namespaceEnd} -{(SupportsNullable ? "#nullable disable" : string.Empty)}"; +{SupportsNullable.IIf("#nullable restore")}"; } private string GeneratePublicProperties(ClassSymbol targetClassSymbol, bool proxyBaseClasses) diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/Akka.Actor.LocalActorRefProviderProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/Akka.Actor.LocalActorRefProviderProxy.g.cs index 04b414c..09bc169 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/Akka.Actor.LocalActorRefProviderProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/Akka.Actor.LocalActorRefProviderProxy.g.cs @@ -143,4 +143,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.AkkaActor } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider.g.cs index 5a1b7cd..a4b2173 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider.g.cs @@ -73,4 +73,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.AkkaActor } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/INoNamespace.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/INoNamespace.g.cs index f05c71a..8452d59 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/INoNamespace.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/INoNamespace.g.cs @@ -24,4 +24,4 @@ using System; } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientContextProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientContextProxy.g.cs index 9d9618b..4a33351 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientContextProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientContextProxy.g.cs @@ -74,4 +74,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs index 48d4c4a..de83557 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs @@ -102,4 +102,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientRuntimeContextProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientRuntimeContextProxy.g.cs index 534ec26..093a8f4 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientRuntimeContextProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientRuntimeContextProxy.g.cs @@ -166,4 +166,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.SecurableObjectProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.SecurableObjectProxy.g.cs index 1524a3b..218fc35 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.SecurableObjectProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.SecurableObjectProxy.g.cs @@ -66,4 +66,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs index eeb1699..ac5110a 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs @@ -1154,4 +1154,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/NoNamespaceProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/NoNamespaceProxy.g.cs index 13bc302..b4272b6 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/NoNamespaceProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/NoNamespaceProxy.g.cs @@ -35,4 +35,4 @@ using System; } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic_T__1Proxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic_T__1Proxy.g.cs index 98a0059..8921425 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic_T__1Proxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic_T__1Proxy.g.cs @@ -41,4 +41,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs index 3c9bb69..bd3ee61 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs @@ -38,4 +38,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs index 6bab330..28b320b 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs @@ -25,4 +25,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs index c7f6c17..6c6318a 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs @@ -27,4 +27,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility.g.cs index df9afcb..dd05201 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility.g.cs @@ -25,4 +25,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest.g.cs index 30bf9a9..2bdf307 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest.g.cs @@ -27,4 +27,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs index a2b49a4..6d71e82 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs @@ -76,4 +76,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs index 62bcaac..d015b6e 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs @@ -59,4 +59,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal.g.cs index 7c661ad..b562ea1 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal.g.cs @@ -25,4 +25,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.MixedVisibilityProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.MixedVisibilityProxy.g.cs index 169a5bf..7978b0d 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.MixedVisibilityProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.MixedVisibilityProxy.g.cs @@ -36,4 +36,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs index 3106294..2fd7210 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs @@ -58,4 +58,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs index 851951a..08ec654 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs @@ -123,4 +123,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs index 8b51790..216d9d3 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs @@ -188,4 +188,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext.g.cs index e918e18..f5c0168 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext.g.cs @@ -37,4 +37,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject.g.cs index faa0267..494d27d 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject.g.cs @@ -56,4 +56,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext.g.cs index e8ed338..2741fe3 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext.g.cs @@ -86,4 +86,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject.g.cs index c68cfcb..234e882 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject.g.cs @@ -38,4 +38,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs index 2b04751..2183d40 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs @@ -675,4 +675,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.TestClassInternalProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.TestClassInternalProxy.g.cs index 1bc56fc..08fc9e0 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.TestClassInternalProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.TestClassInternalProxy.g.cs @@ -36,4 +36,4 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } } -#nullable disable \ No newline at end of file +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.GenerateFiles_ForClassWithArray_Should_GenerateCorrectFiles.verified.txt b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.GenerateFiles_ForClassWithArray_Should_GenerateCorrectFiles.verified.txt index 107d15c..6893adb 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.GenerateFiles_ForClassWithArray_Should_GenerateCorrectFiles.verified.txt +++ b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.GenerateFiles_ForClassWithArray_Should_GenerateCorrectFiles.verified.txt @@ -1,4 +1,4 @@ -[ +[ { HintName: ProxyInterfaceGenerator.Extra.g.cs, Source: @@ -83,7 +83,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } -#nullable disable +#nullable restore }, { HintName: ProxyInterfaceSourceGeneratorTests.Source.FooProxy.g.cs, @@ -135,6 +135,6 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } } } -#nullable disable +#nullable restore } ] \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj index cb61422..5a6fb04 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj +++ b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj @@ -10,8 +10,6 @@ - - @@ -54,16 +52,16 @@ - + - - PreserveNewest - - - PreserveNewest - + + PreserveNewest + + + PreserveNewest + \ No newline at end of file