Class IrExceptionRegion
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
IdintThe region identifier within the function.
ParentRegionint?The parent exception-region identifier, or
null.ParentPartIrExceptionRegionPart?The parent component that contains this region, or
null.ProtectedIrExceptionProtectedRegionThe protected component.
HandlerIrExceptionHandlerThe optional handler component.
CleanupIrExceptionCleanupThe optional cleanup component.
Properties
Cleanup
The optional cleanup component.
public IrExceptionCleanup? Cleanup { get; init; }
Property Value
Handler
The optional handler component.
public IrExceptionHandler? Handler { get; init; }
Property Value
Id
The region identifier within the function.
public int Id { get; init; }
Property Value
ParentPart
The parent component that contains this region, or null.
public IrExceptionRegionPart? ParentPart { get; init; }
Property Value
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
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
IdintParentRegionint?ParentPartIrExceptionRegionPart?ProtectedIrExceptionProtectedRegionHandlerIrExceptionHandlerCleanupIrExceptionCleanup
Equals(IrExceptionRegion?)
public bool Equals(IrExceptionRegion? other)
Parameters
otherIrExceptionRegion
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 ==(IrExceptionRegion?, IrExceptionRegion?)
public static bool operator ==(IrExceptionRegion? left, IrExceptionRegion? right)
Parameters
leftIrExceptionRegionrightIrExceptionRegion
Returns
operator !=(IrExceptionRegion?, IrExceptionRegion?)
public static bool operator !=(IrExceptionRegion? left, IrExceptionRegion? right)
Parameters
leftIrExceptionRegionrightIrExceptionRegion