Table of Contents

Class IrInstruction.HasProperty

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Tests whether an object contains a property.

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

Constructors

HasProperty(TextSpan, int, int, int)

Tests whether an object contains a property.

public HasProperty(TextSpan Span, int Destination, int Target, int Key)

Parameters

Span TextSpan

The source span.

Destination int

The destination slot.

Target int

The object slot.

Key int

The property-name slot.

Properties

Destination

The destination slot.

public int Destination { get; init; }

Property Value

int

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Key

The property-name slot.

public int Key { get; init; }

Property Value

int

Target

The object slot.

public int Target { get; init; }

Property Value

int

Methods

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

public void Deconstruct(out TextSpan Span, out int Destination, out int Target, out int Key)

Parameters

Span TextSpan
Destination int
Target int
Key int

Equals(IrInstruction?)

public override sealed bool Equals(IrInstruction? other)

Parameters

other IrInstruction

Returns

bool

Equals(HasProperty?)

public bool Equals(IrInstruction.HasProperty? other)

Parameters

other IrInstruction.HasProperty

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

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

Parameters

left IrInstruction.HasProperty
right IrInstruction.HasProperty

Returns

bool

operator !=(HasProperty?, HasProperty?)

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

Parameters

left IrInstruction.HasProperty
right IrInstruction.HasProperty

Returns

bool