Table of Contents

Class IrInstruction.SetProperty

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Writes a named property.

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

Constructors

SetProperty(TextSpan, int, string, int)

Writes a named property.

public SetProperty(TextSpan Span, int Target, string Name, int Value)

Parameters

Span TextSpan

The source span.

Target int

The target slot.

Name string

The property name.

Value int

The value slot.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Name

The property name.

public string Name { get; init; }

Property Value

string

Target

The target slot.

public int Target { get; init; }

Property Value

int

Value

The value slot.

public int Value { get; init; }

Property Value

int

Methods

Deconstruct(out TextSpan, out int, out string, out int)

public void Deconstruct(out TextSpan Span, out int Target, out string Name, out int Value)

Parameters

Span TextSpan
Target int
Name string
Value int

Equals(IrInstruction?)

public override sealed bool Equals(IrInstruction? other)

Parameters

other IrInstruction

Returns

bool

Equals(SetProperty?)

public bool Equals(IrInstruction.SetProperty? other)

Parameters

other IrInstruction.SetProperty

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

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

Parameters

left IrInstruction.SetProperty
right IrInstruction.SetProperty

Returns

bool

operator !=(SetProperty?, SetProperty?)

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

Parameters

left IrInstruction.SetProperty
right IrInstruction.SetProperty

Returns

bool