Table of Contents

Class IrInstruction.Copy

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Copies a value between slots.

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

Constructors

Copy(TextSpan, int, int)

Copies a value between slots.

public Copy(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(Copy?)

public bool Equals(IrInstruction.Copy? other)

Parameters

other IrInstruction.Copy

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

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

Parameters

left IrInstruction.Copy
right IrInstruction.Copy

Returns

bool

operator !=(Copy?, Copy?)

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

Parameters

left IrInstruction.Copy
right IrInstruction.Copy

Returns

bool