Table of Contents

Class IrInstruction.CreateArray

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Creates an array value.

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

Constructors

CreateArray(TextSpan, int, ArrayTypeSymbol, IReadOnlyCollection<int>)

Creates an array value.

public CreateArray(TextSpan Span, int Destination, ArrayTypeSymbol Type, IReadOnlyCollection<int> Elements)

Parameters

Span TextSpan

The source span.

Destination int

The destination slot.

Type ArrayTypeSymbol

The array type.

Elements IReadOnlyCollection<int>

The element slots.

Properties

Destination

The destination slot.

public int Destination { get; init; }

Property Value

int

Elements

The element slots.

public IReadOnlyCollection<int> Elements { get; init; }

Property Value

IReadOnlyCollection<int>

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Type

The array type.

public ArrayTypeSymbol Type { get; init; }

Property Value

ArrayTypeSymbol

Methods

Deconstruct(out TextSpan, out int, out ArrayTypeSymbol, out IReadOnlyCollection<int>)

public void Deconstruct(out TextSpan Span, out int Destination, out ArrayTypeSymbol Type, out IReadOnlyCollection<int> Elements)

Parameters

Span TextSpan
Destination int
Type ArrayTypeSymbol
Elements IReadOnlyCollection<int>

Equals(IrInstruction?)

public override sealed bool Equals(IrInstruction? other)

Parameters

other IrInstruction

Returns

bool

Equals(CreateArray?)

public bool Equals(IrInstruction.CreateArray? other)

Parameters

other IrInstruction.CreateArray

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

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

Parameters

left IrInstruction.CreateArray
right IrInstruction.CreateArray

Returns

bool

operator !=(CreateArray?, CreateArray?)

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

Parameters

left IrInstruction.CreateArray
right IrInstruction.CreateArray

Returns

bool