Table of Contents

Class IrExceptionRegion

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Represents a protected exception-handling region in a MuLang IR function.

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

Constructors

IrExceptionRegion(int, int?, IrExceptionRegionPart?, IrExceptionProtectedRegion, IrExceptionHandler?, IrExceptionCleanup?)

Represents a protected exception-handling region in a MuLang IR function.

public IrExceptionRegion(int Id, int? ParentRegion, IrExceptionRegionPart? ParentPart, IrExceptionProtectedRegion Protected, IrExceptionHandler? Handler, IrExceptionCleanup? Cleanup)

Parameters

Id int

The region identifier within the function.

ParentRegion int?

The parent exception-region identifier, or null.

ParentPart IrExceptionRegionPart?

The parent component that contains this region, or null.

Protected IrExceptionProtectedRegion

The protected component.

Handler IrExceptionHandler

The optional handler component.

Cleanup IrExceptionCleanup

The optional cleanup component.

Properties

Cleanup

The optional cleanup component.

public IrExceptionCleanup? Cleanup { get; init; }

Property Value

IrExceptionCleanup

Handler

The optional handler component.

public IrExceptionHandler? Handler { get; init; }

Property Value

IrExceptionHandler

Id

The region identifier within the function.

public int Id { get; init; }

Property Value

int

ParentPart

The parent component that contains this region, or null.

public IrExceptionRegionPart? ParentPart { get; init; }

Property Value

IrExceptionRegionPart?

ParentRegion

The parent exception-region identifier, or null.

public int? ParentRegion { get; init; }

Property Value

int?

Protected

The protected component.

public IrExceptionProtectedRegion Protected { get; init; }

Property Value

IrExceptionProtectedRegion

Methods

Deconstruct(out int, out int?, out IrExceptionRegionPart?, out IrExceptionProtectedRegion, out IrExceptionHandler?, out IrExceptionCleanup?)

public void Deconstruct(out int Id, out int? ParentRegion, out IrExceptionRegionPart? ParentPart, out IrExceptionProtectedRegion Protected, out IrExceptionHandler? Handler, out IrExceptionCleanup? Cleanup)

Parameters

Id int
ParentRegion int?
ParentPart IrExceptionRegionPart?
Protected IrExceptionProtectedRegion
Handler IrExceptionHandler
Cleanup IrExceptionCleanup

Equals(IrExceptionRegion?)

public bool Equals(IrExceptionRegion? other)

Parameters

other IrExceptionRegion

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

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

Parameters

left IrExceptionRegion
right IrExceptionRegion

Returns

bool

operator !=(IrExceptionRegion?, IrExceptionRegion?)

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

Parameters

left IrExceptionRegion
right IrExceptionRegion

Returns

bool