From f1bfeaa756f14579a44312a6f83c294ee8308dae Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Tue, 3 Sep 2024 09:46:33 +0100 Subject: [PATCH] add back special cases --- Speckle.InterfaceGenerator/SymbolExtensions.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Speckle.InterfaceGenerator/SymbolExtensions.cs b/Speckle.InterfaceGenerator/SymbolExtensions.cs index dc733ea..0f0167e 100644 --- a/Speckle.InterfaceGenerator/SymbolExtensions.cs +++ b/Speckle.InterfaceGenerator/SymbolExtensions.cs @@ -14,6 +14,17 @@ internal static class SymbolExtensions { return t.Name; } + + if (typeSymbol.SpecialType == SpecialType.None) + { + return typeSymbol.ToString(); + } + + if (typeSymbol.NullableAnnotation == NullableAnnotation.Annotated) + { + return typeSymbol.ToString(); + } + return typeSymbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat); }