Class IrInstruction.SetElement
Writes an indexed element or dynamic object property.
public sealed record IrInstruction.SetElement : IrInstruction, IEquatable<IrInstruction>, IEquatable<IrInstruction.SetElement>
- Inheritance
-
IrInstruction.SetElement
- Implements
- Inherited Members
Constructors
SetElement(TextSpan, int, int, int, bool)
Writes an indexed element or dynamic object property.
public SetElement(TextSpan Span, int Target, int Index, int Value, bool IsObjectAccess)
Parameters
SpanTextSpanThe source span.
TargetintThe target slot.
IndexintThe index or key slot.
ValueintThe value slot.
IsObjectAccessboolWhether the target is an object.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Index
The index or key slot.
public int Index { get; init; }
Property Value
IsObjectAccess
Whether the target is an object.
public bool IsObjectAccess { get; init; }
Property Value
Target
The target slot.
public int Target { get; init; }
Property Value
Value
The value slot.
public int Value { get; init; }
Property Value
Methods
Deconstruct(out TextSpan, out int, out int, out int, out bool)
public void Deconstruct(out TextSpan Span, out int Target, out int Index, out int Value, out bool IsObjectAccess)
Parameters
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(SetElement?)
public bool Equals(IrInstruction.SetElement? other)
Parameters
otherIrInstruction.SetElement
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 ==(SetElement?, SetElement?)
public static bool operator ==(IrInstruction.SetElement? left, IrInstruction.SetElement? right)
Parameters
leftIrInstruction.SetElementrightIrInstruction.SetElement
Returns
operator !=(SetElement?, SetElement?)
public static bool operator !=(IrInstruction.SetElement? left, IrInstruction.SetElement? right)
Parameters
leftIrInstruction.SetElementrightIrInstruction.SetElement