Table of Contents

Class IrInstruction.CreateObject

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Creates an object value.

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

Constructors

CreateObject(TextSpan, int, ObjectTypeSymbol, IReadOnlyCollection<ObjectPropertyValue>)

Creates an object value.

public CreateObject(TextSpan Span, int Destination, ObjectTypeSymbol Type, IReadOnlyCollection<IrInstruction.ObjectPropertyValue> Properties)

Parameters

Span TextSpan

The source span.

Destination int

The destination slot.

Type ObjectTypeSymbol

The object type.

Properties IReadOnlyCollection<IrInstruction.ObjectPropertyValue>

The object properties.

Properties

Destination

The destination slot.

public int Destination { get; init; }

Property Value

int

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Properties

The object properties.

public IReadOnlyCollection<IrInstruction.ObjectPropertyValue> Properties { get; init; }

Property Value

IReadOnlyCollection<IrInstruction.ObjectPropertyValue>

Type

The object type.

public ObjectTypeSymbol Type { get; init; }

Property Value

ObjectTypeSymbol

Methods

Deconstruct(out TextSpan, out int, out ObjectTypeSymbol, out IReadOnlyCollection<ObjectPropertyValue>)

public void Deconstruct(out TextSpan Span, out int Destination, out ObjectTypeSymbol Type, out IReadOnlyCollection<IrInstruction.ObjectPropertyValue> Properties)

Parameters

Span TextSpan
Destination int
Type ObjectTypeSymbol
Properties IReadOnlyCollection<IrInstruction.ObjectPropertyValue>

Equals(IrInstruction?)

public override sealed bool Equals(IrInstruction? other)

Parameters

other IrInstruction

Returns

bool

Equals(CreateObject?)

public bool Equals(IrInstruction.CreateObject? other)

Parameters

other IrInstruction.CreateObject

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

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

Parameters

left IrInstruction.CreateObject
right IrInstruction.CreateObject

Returns

bool

operator !=(CreateObject?, CreateObject?)

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

Parameters

left IrInstruction.CreateObject
right IrInstruction.CreateObject

Returns

bool