Table of Contents

Class IrProgramAttributes

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Represents diagnostic attributes associated with an IR program.

public sealed record IrProgramAttributes : IEquatable<IrProgramAttributes>
Inheritance
IrProgramAttributes
Implements
Inherited Members

Constructors

IrProgramAttributes(Uri?, IReadOnlyList<IrProviderSymbolName>, IReadOnlyList<IrProviderSymbolName>)

Represents diagnostic attributes associated with an IR program.

public IrProgramAttributes(Uri? SourceDocument, IReadOnlyList<IrProviderSymbolName> ProviderGlobalNames, IReadOnlyList<IrProviderSymbolName> ProviderFunctionNames)

Parameters

SourceDocument Uri

The source document URI, when available.

ProviderGlobalNames IReadOnlyList<IrProviderSymbolName>

The referenced provider-global names.

ProviderFunctionNames IReadOnlyList<IrProviderSymbolName>

The referenced provider-function names.

Properties

Empty

Gets an empty program attribute set.

public static IrProgramAttributes Empty { get; }

Property Value

IrProgramAttributes

LineMap

Gets the source line map, when available.

public TextLineMap? LineMap { get; init; }

Property Value

TextLineMap

ProviderFunctionNames

The referenced provider-function names.

public IReadOnlyList<IrProviderSymbolName> ProviderFunctionNames { get; init; }

Property Value

IReadOnlyList<IrProviderSymbolName>

ProviderGlobalNames

The referenced provider-global names.

public IReadOnlyList<IrProviderSymbolName> ProviderGlobalNames { get; init; }

Property Value

IReadOnlyList<IrProviderSymbolName>

SourceDocument

The source document URI, when available.

public Uri? SourceDocument { get; init; }

Property Value

Uri

Methods

Deconstruct(out Uri?, out IReadOnlyList<IrProviderSymbolName>, out IReadOnlyList<IrProviderSymbolName>)

public void Deconstruct(out Uri? SourceDocument, out IReadOnlyList<IrProviderSymbolName> ProviderGlobalNames, out IReadOnlyList<IrProviderSymbolName> ProviderFunctionNames)

Parameters

SourceDocument Uri
ProviderGlobalNames IReadOnlyList<IrProviderSymbolName>
ProviderFunctionNames IReadOnlyList<IrProviderSymbolName>

Equals(IrProgramAttributes?)

public bool Equals(IrProgramAttributes? other)

Parameters

other IrProgramAttributes

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(IrProgramAttributes?, IrProgramAttributes?)

public static bool operator ==(IrProgramAttributes? left, IrProgramAttributes? right)

Parameters

left IrProgramAttributes
right IrProgramAttributes

Returns

bool

operator !=(IrProgramAttributes?, IrProgramAttributes?)

public static bool operator !=(IrProgramAttributes? left, IrProgramAttributes? right)

Parameters

left IrProgramAttributes
right IrProgramAttributes

Returns

bool