Class IrInstruction.CreateArray
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
SpanTextSpanThe source span.
DestinationintThe destination slot.
TypeArrayTypeSymbolThe array type.
ElementsIReadOnlyCollection<int>The element slots.
Properties
Destination
The destination slot.
public int Destination { get; init; }
Property Value
Elements
The element slots.
public IReadOnlyCollection<int> Elements { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Type
The array type.
public ArrayTypeSymbol Type { get; init; }
Property Value
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
SpanTextSpanDestinationintTypeArrayTypeSymbolElementsIReadOnlyCollection<int>
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(CreateArray?)
public bool Equals(IrInstruction.CreateArray? other)
Parameters
otherIrInstruction.CreateArray
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CreateArray?, CreateArray?)
public static bool operator ==(IrInstruction.CreateArray? left, IrInstruction.CreateArray? right)
Parameters
leftIrInstruction.CreateArrayrightIrInstruction.CreateArray
Returns
operator !=(CreateArray?, CreateArray?)
public static bool operator !=(IrInstruction.CreateArray? left, IrInstruction.CreateArray? right)
Parameters
leftIrInstruction.CreateArrayrightIrInstruction.CreateArray