From d63f33ff86243cd17eb924118a0bba9bd9bf3715 Mon Sep 17 00:00:00 2001 From: Christian Prochnow Date: Thu, 5 Oct 2023 08:06:49 +0200 Subject: [PATCH] Fixed nullable warnings. --- YamlDotNet.Analyzers.StaticGenerator/ClassSyntaxReceiver.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YamlDotNet.Analyzers.StaticGenerator/ClassSyntaxReceiver.cs b/YamlDotNet.Analyzers.StaticGenerator/ClassSyntaxReceiver.cs index e53ade43..8a527c58 100644 --- a/YamlDotNet.Analyzers.StaticGenerator/ClassSyntaxReceiver.cs +++ b/YamlDotNet.Analyzers.StaticGenerator/ClassSyntaxReceiver.cs @@ -66,17 +66,17 @@ public void OnVisitSyntaxNode(GeneratorSyntaxContext context) } } - private void AddSerializableClass(INamedTypeSymbol classSymbol) + private void AddSerializableClass(INamedTypeSymbol? classSymbol) { ClassObject classObject; - var className = SanitizeName(classSymbol.GetFullName()); + var className = SanitizeName(classSymbol!.GetFullName()); if (Classes.ContainsKey(className)) { classObject = Classes[className]; } else { - classObject = new ClassObject(className, classSymbol); + classObject = new ClassObject(className, classSymbol!); Classes[className] = classObject; } while (classSymbol != null)