Class IrInstruction.SetProperty
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
SpanTextSpanThe source span.
TargetintThe target slot.
NamestringThe property name.
ValueintThe value slot.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Name
The property name.
public string Name { 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 string, out int)
public void Deconstruct(out TextSpan Span, out int Target, out string Name, out int Value)
Parameters
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(SetProperty?)
public bool Equals(IrInstruction.SetProperty? other)
Parameters
otherIrInstruction.SetProperty
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 ==(SetProperty?, SetProperty?)
public static bool operator ==(IrInstruction.SetProperty? left, IrInstruction.SetProperty? right)
Parameters
leftIrInstruction.SetPropertyrightIrInstruction.SetProperty
Returns
operator !=(SetProperty?, SetProperty?)
public static bool operator !=(IrInstruction.SetProperty? left, IrInstruction.SetProperty? right)
Parameters
leftIrInstruction.SetPropertyrightIrInstruction.SetProperty