Table of Contents

Class IrExceptionHandler

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Represents the handler component of an exception region.

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

Constructors

IrExceptionHandler(int, IReadOnlyCollection<int>, int)

Represents the handler component of an exception region.

public IrExceptionHandler(int EntryBlock, IReadOnlyCollection<int> Blocks, int ErrorSlot)

Parameters

EntryBlock int

The component entry block identifier.

Blocks IReadOnlyCollection<int>

The directly owned block identifiers.

ErrorSlot int

The read-only slot that receives the current error.

Properties

Blocks

The directly owned block identifiers.

public IReadOnlyCollection<int> Blocks { get; init; }

Property Value

IReadOnlyCollection<int>

EntryBlock

The component entry block identifier.

public int EntryBlock { get; init; }

Property Value

int

ErrorSlot

The read-only slot that receives the current error.

public int ErrorSlot { get; init; }

Property Value

int

Methods

Deconstruct(out int, out IReadOnlyCollection<int>, out int)

public void Deconstruct(out int EntryBlock, out IReadOnlyCollection<int> Blocks, out int ErrorSlot)

Parameters

EntryBlock int
Blocks IReadOnlyCollection<int>
ErrorSlot int

Equals(IrExceptionHandler?)

public bool Equals(IrExceptionHandler? other)

Parameters

other IrExceptionHandler

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

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

Parameters

left IrExceptionHandler
right IrExceptionHandler

Returns

bool

operator !=(IrExceptionHandler?, IrExceptionHandler?)

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

Parameters

left IrExceptionHandler
right IrExceptionHandler

Returns

bool