Enable nullable for generated code
MODIFY
WalletWasabi.Fluent.Generators/AutoNotifyGenerator.cs
WalletWasabi.Fluent.Generators/AutoNotifyGenerator.cs
@@ -12,6 +12,7 @@ namespace WalletWasabi.Fluent.Generators
public class AutoNotifyGenerator : ISourceGenerator
{
private const string AttributeText = @"// <auto-generated />
+#nullable enable
using System;
namespace WalletWasabi.Fluent
@@ -123,6 +124,7 @@ namespace WalletWasabi.Fluent
if (addNotifyInterface)
{
source.Append($@"// <auto-generated />
+#nullable enable
using ReactiveUI;
namespace {namespaceName}
@@ -133,6 +135,7 @@ namespace {namespaceName}
else
{
source.Append($@"// <auto-generated />
+#nullable enable
using ReactiveUI;
namespace {namespaceName}

MODIFY
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
@@ -136,6 +136,7 @@ namespace WalletWasabi.Fluent
string namespaceName = namedTypeSymbol.ContainingNamespace.ToDisplayString();
var source = new StringBuilder($@"// <auto-generated />
+#nullable enable
using System;
using System.Threading.Tasks;
using WalletWasabi.Fluent.ViewModels.Navigation;

MODIFY
WalletWasabi.Fluent.Generators/PropertyGenerator.cs
WalletWasabi.Fluent.Generators/PropertyGenerator.cs
@@ -12,6 +12,7 @@ namespace WalletWasabi.Fluent.Generators
public class PropertyGenerator : ISourceGenerator
{
private const string AttributeText = @"// <auto-generated />
+#nullable enable
using System;
namespace WalletWasabi.Fluent
{
@@ -138,6 +139,7 @@ namespace WalletWasabi.Fluent
if (addNotifyInterface)
{
source.Append($@"// <auto-generated />
+#nullable enable
using ReactiveUI;
namespace {namespaceName}
@@ -149,6 +151,7 @@ namespace {namespaceName}
else
{
source.Append($@"// <auto-generated />
+#nullable enable
using ReactiveUI;
namespace {namespaceName}

Enable nullable for generated code