mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Fix nullability annotations not being emitted on global:: prefixed type names
This commit is contained in:
@@ -128,7 +128,11 @@ namespace osu.Framework.SourceGeneration
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static string? GetGlobalPrefixedTypeName(ITypeSymbol? type)
|
||||
=> type?.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat);
|
||||
=> type?.ToDisplayString(fullyQualifiedFormatWithNullableAnnotations);
|
||||
|
||||
private static SymbolDisplayFormat fullyQualifiedFormatWithNullableAnnotations { get; } =
|
||||
SymbolDisplayFormat.FullyQualifiedFormat
|
||||
.AddMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier);
|
||||
|
||||
public static string GetFullyQualifiedSyntaxName(TypeDeclarationSyntax syntax)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user