Table of Contents

Class IrInstruction.Truthiness

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Converts a value to its truthiness result.

public sealed record IrInstruction.Truthiness : IrInstruction, IEquatable<IrInstruction>, IEquatable<IrInstruction.Truthiness>
Inheritance
IrInstruction.Truthiness
Implements
Inherited Members

Constructors

Truthiness(TextSpan, int, int)

Converts a value to its truthiness result.

public Truthiness(TextSpan Span, int Destination, int Source)

Parameters

Span TextSpan

The source span.

Destination int

The destination slot.

Source int

The source slot.

Properties

Destination

The destination slot.

public int Destination { get; init; }

Property Value

int

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Source

The source slot.

public int Source { get; init; }

Property Value

int

Methods

Deconstruct(out TextSpan, out int, out int)

public void Deconstruct(out TextSpan Span, out int Destination, out int Source)

Parameters

Span TextSpan
Destination int
Source int

Equals(IrInstruction?)

public override sealed bool Equals(IrInstruction? other)

Parameters

other IrInstruction

Returns

bool

Equals(Truthiness?)

public bool Equals(IrInstruction.Truthiness? other)

Parameters

other IrInstruction.Truthiness

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

public static bool operator ==(IrInstruction.Truthiness? left, IrInstruction.Truthiness? right)

Parameters

left IrInstruction.Truthiness
right IrInstruction.Truthiness

Returns

bool

operator !=(Truthiness?, Truthiness?)

public static bool operator !=(IrInstruction.Truthiness? left, IrInstruction.Truthiness? right)

Parameters

left IrInstruction.Truthiness
right IrInstruction.Truthiness

Returns

bool