Table of Contents

Class IrDiagnosticNameResolver

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

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

attributes IrAttributeCollection

The program attributes.

functionId string

The portable function identifier.

fallback string

The 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

attributes IrAttributeCollection

The program attributes.

providerId string

The provider identifier.

fallback string

The 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

attributes IrAttributeCollection

The program attributes.

providerId string

The provider identifier.

fallback string

The 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

attributes IrAttributeCollection

The program attributes.

functionId string

The containing function identifier.

slotId int

The function-local slot identifier.

fallback string

The 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

attributes IrAttributeCollection

The program attributes.

type TypeSymbol

The projected type.

fallback string

The display name used when the type target is absent.

Returns

IReadOnlyList<string>

The ordered diagnostic aliases.