Class IrDiagnosticNameResolver
Provides diagnostic display-name resolution for well-known IR attributes.
public static class IrDiagnosticNameResolver
- Inheritance
-
IrDiagnosticNameResolver
- Inherited Members
Methods
GetFunctionDisplayName(IrAttributeCollection, string, string)
Gets a function display name.
public static string GetFunctionDisplayName(IrAttributeCollection attributes, string functionId, string fallback)
Parameters
attributesIrAttributeCollectionThe program attributes.
functionIdstringThe portable function identifier.
fallbackstringThe display name used when the function target is absent.
Returns
- string
The diagnostic display name.
GetProviderFunctionDisplayName(IrAttributeCollection, string, string)
Gets a provider-function display name.
public static string GetProviderFunctionDisplayName(IrAttributeCollection attributes, string providerId, string fallback)
Parameters
attributesIrAttributeCollectionThe program attributes.
providerIdstringThe provider identifier.
fallbackstringThe display name used when the provider-function mapping is absent.
Returns
- string
The diagnostic display name.
GetProviderGlobalDisplayName(IrAttributeCollection, string, string)
Gets a provider-global display name.
public static string GetProviderGlobalDisplayName(IrAttributeCollection attributes, string providerId, string fallback)
Parameters
attributesIrAttributeCollectionThe program attributes.
providerIdstringThe provider identifier.
fallbackstringThe display name used when the provider-global mapping is absent.
Returns
- string
The diagnostic display name.
GetSlotDisplayName(IrAttributeCollection, string, int, string)
Gets a slot display name.
public static string GetSlotDisplayName(IrAttributeCollection attributes, string functionId, int slotId, string fallback)
Parameters
attributesIrAttributeCollectionThe program attributes.
functionIdstringThe containing function identifier.
slotIdintThe function-local slot identifier.
fallbackstringThe display name used when the slot target is absent.
Returns
- string
The diagnostic display name.
GetTypeDisplayNames(IrAttributeCollection, TypeSymbol, string)
Gets the diagnostic aliases for a type.
public static IReadOnlyList<string> GetTypeDisplayNames(IrAttributeCollection attributes, TypeSymbol type, string fallback)
Parameters
attributesIrAttributeCollectionThe program attributes.
typeTypeSymbolThe projected type.
fallbackstringThe display name used when the type target is absent.
Returns
- IReadOnlyList<string>
The ordered diagnostic aliases.