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); }