Table of Contents

Class IrSlotAttributes

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Represents diagnostic attributes associated with an IR slot.

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

Constructors

IrSlotAttributes(string?, TextSpan?)

Represents diagnostic attributes associated with an IR slot.

public IrSlotAttributes(string? SourceName, TextSpan? DeclarationSpan)

Parameters

SourceName string

The source-level slot name, when available.

DeclarationSpan TextSpan?

The source declaration span, when available.

Properties

DeclarationSpan

The source declaration span, when available.

public TextSpan? DeclarationSpan { get; init; }

Property Value

TextSpan?

SourceName

The source-level slot name, when available.

public string? SourceName { get; init; }

Property Value

string

Methods

Deconstruct(out string?, out TextSpan?)

public void Deconstruct(out string? SourceName, out TextSpan? DeclarationSpan)

Parameters

SourceName string
DeclarationSpan TextSpan?

Equals(IrSlotAttributes?)

public bool Equals(IrSlotAttributes? other)

Parameters

other IrSlotAttributes

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 ==(IrSlotAttributes?, IrSlotAttributes?)

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

Parameters

left IrSlotAttributes
right IrSlotAttributes

Returns

bool

operator !=(IrSlotAttributes?, IrSlotAttributes?)

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

Parameters

left IrSlotAttributes
right IrSlotAttributes

Returns

bool