From 58d63605709cec5e51a45b263631d7df825a3280 Mon Sep 17 00:00:00 2001 From: Dan Siegel Date: Sat, 14 Dec 2024 16:21:53 -0600 Subject: [PATCH] fix: adding missing nullable annotations --- src/CodeGenHelpers/DelegateBuilder.cs | 1 + src/CodeGenHelpers/Extensions/CodeHelpersGeneratorExtensions.cs | 1 + src/CodeGenHelpers/Extensions/RoslynExtensions.cs | 1 + src/CodeGenHelpers/Extensions/SymbolExtensions.cs | 1 + 4 files changed, 4 insertions(+) diff --git a/src/CodeGenHelpers/DelegateBuilder.cs b/src/CodeGenHelpers/DelegateBuilder.cs index e5862ae..b9f662c 100644 --- a/src/CodeGenHelpers/DelegateBuilder.cs +++ b/src/CodeGenHelpers/DelegateBuilder.cs @@ -6,6 +6,7 @@ namespace CodeGenHelpers; +#nullable enable public sealed class DelegateBuilder : BuilderBase, IParameterized { private ParameterDocumentationComment? _xmlDoc; diff --git a/src/CodeGenHelpers/Extensions/CodeHelpersGeneratorExtensions.cs b/src/CodeGenHelpers/Extensions/CodeHelpersGeneratorExtensions.cs index c037a35..11cc940 100644 --- a/src/CodeGenHelpers/Extensions/CodeHelpersGeneratorExtensions.cs +++ b/src/CodeGenHelpers/Extensions/CodeHelpersGeneratorExtensions.cs @@ -6,6 +6,7 @@ namespace Microsoft.CodeAnalysis; +#nullable enable public static class CodeHelpersGeneratorExtensions { /// diff --git a/src/CodeGenHelpers/Extensions/RoslynExtensions.cs b/src/CodeGenHelpers/Extensions/RoslynExtensions.cs index 2b531ad..ba569f3 100644 --- a/src/CodeGenHelpers/Extensions/RoslynExtensions.cs +++ b/src/CodeGenHelpers/Extensions/RoslynExtensions.cs @@ -5,6 +5,7 @@ namespace AvantiPoint.CodeGenHelpers.Extensions; +#nullable enable public static class RoslynExtensions { /// diff --git a/src/CodeGenHelpers/Extensions/SymbolExtensions.cs b/src/CodeGenHelpers/Extensions/SymbolExtensions.cs index ceadbbf..e9e07c1 100644 --- a/src/CodeGenHelpers/Extensions/SymbolExtensions.cs +++ b/src/CodeGenHelpers/Extensions/SymbolExtensions.cs @@ -5,6 +5,7 @@ namespace CodeGenHelpers.Extensions; +#nullable enable public static class SymbolExtensions { public static string GetQualifiedTypeName(this ITypeSymbol typeSymbol)