Class IrProgramAttributes
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
SourceDocumentUriThe source document URI, when available.
ProviderGlobalNamesIReadOnlyList<IrProviderSymbolName>The referenced provider-global names.
ProviderFunctionNamesIReadOnlyList<IrProviderSymbolName>The referenced provider-function names.
Properties
Empty
Gets an empty program attribute set.
public static IrProgramAttributes Empty { get; }
Property Value
LineMap
Gets the source line map, when available.
public TextLineMap? LineMap { get; init; }
Property Value
ProviderFunctionNames
The referenced provider-function names.
public IReadOnlyList<IrProviderSymbolName> ProviderFunctionNames { get; init; }
Property Value
ProviderGlobalNames
The referenced provider-global names.
public IReadOnlyList<IrProviderSymbolName> ProviderGlobalNames { get; init; }
Property Value
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
SourceDocumentUriProviderGlobalNamesIReadOnlyList<IrProviderSymbolName>ProviderFunctionNamesIReadOnlyList<IrProviderSymbolName>
Equals(IrProgramAttributes?)
public bool Equals(IrProgramAttributes? other)
Parameters
otherIrProgramAttributes
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(IrProgramAttributes?, IrProgramAttributes?)
public static bool operator ==(IrProgramAttributes? left, IrProgramAttributes? right)
Parameters
leftIrProgramAttributesrightIrProgramAttributes
Returns
operator !=(IrProgramAttributes?, IrProgramAttributes?)
public static bool operator !=(IrProgramAttributes? left, IrProgramAttributes? right)
Parameters
leftIrProgramAttributesrightIrProgramAttributes