Class IrInstruction.GetProperty
Reads a named property.
public sealed record IrInstruction.GetProperty : IrInstruction, IEquatable<IrInstruction>, IEquatable<IrInstruction.GetProperty>
- Inheritance
-
IrInstruction.GetProperty
- Implements
- Inherited Members
Constructors
GetProperty(TextSpan, int, int, string, bool, bool)
Reads a named property.
public GetProperty(TextSpan Span, int Destination, int Target, string Name, bool IsOptional, bool IsArrayLength)
Parameters
SpanTextSpanThe source span.
DestinationintThe destination slot.
TargetintThe target slot.
NamestringThe property name.
IsOptionalboolWhether null propagates through the access.
IsArrayLengthboolWhether the access represents an array length operation.
Properties
Destination
The destination slot.
public int Destination { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
IsArrayLength
Whether the access represents an array length operation.
public bool IsArrayLength { get; init; }
Property Value
IsOptional
Whether null propagates through the access.
public bool IsOptional { get; init; }
Property Value
Name
The property name.
public string Name { get; init; }
Property Value
Target
The target slot.
public int Target { get; init; }
Property Value
Methods
Deconstruct(out TextSpan, out int, out int, out string, out bool, out bool)
public void Deconstruct(out TextSpan Span, out int Destination, out int Target, out string Name, out bool IsOptional, out bool IsArrayLength)
Parameters
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(GetProperty?)
public bool Equals(IrInstruction.GetProperty? other)
Parameters
otherIrInstruction.GetProperty
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 ==(GetProperty?, GetProperty?)
public static bool operator ==(IrInstruction.GetProperty? left, IrInstruction.GetProperty? right)
Parameters
leftIrInstruction.GetPropertyrightIrInstruction.GetProperty
Returns
operator !=(GetProperty?, GetProperty?)
public static bool operator !=(IrInstruction.GetProperty? left, IrInstruction.GetProperty? right)
Parameters
leftIrInstruction.GetPropertyrightIrInstruction.GetProperty