Table of Contents

Class IrTerminator.Throw

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Propagates an executable error value.

public sealed record IrTerminator.Throw : IrTerminator, IEquatable<IrTerminator>, IEquatable<IrTerminator.Throw>
Inheritance
IrTerminator.Throw
Implements
Inherited Members

Constructors

Throw(TextSpan, int)

Propagates an executable error value.

public Throw(TextSpan Span, int Error)

Parameters

Span TextSpan

The source span associated with the operation.

Error int

The slot containing the error value.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Error

The slot containing the error value.

public int Error { get; init; }

Property Value

int

Methods

Deconstruct(out TextSpan, out int)

public void Deconstruct(out TextSpan Span, out int Error)

Parameters

Span TextSpan
Error int

Equals(IrTerminator?)

public override sealed bool Equals(IrTerminator? other)

Parameters

other IrTerminator

Returns

bool

Equals(Throw?)

public bool Equals(IrTerminator.Throw? other)

Parameters

other IrTerminator.Throw

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Throw?, Throw?)

public static bool operator ==(IrTerminator.Throw? left, IrTerminator.Throw? right)

Parameters

left IrTerminator.Throw
right IrTerminator.Throw

Returns

bool

operator !=(Throw?, Throw?)

public static bool operator !=(IrTerminator.Throw? left, IrTerminator.Throw? right)

Parameters

left IrTerminator.Throw
right IrTerminator.Throw

Returns

bool