Class IrInstruction.Unary
Applies a unary operation.
public sealed record IrInstruction.Unary : IrInstruction, IEquatable<IrInstruction>, IEquatable<IrInstruction.Unary>
- Inheritance
-
IrInstruction.Unary
- Implements
- Inherited Members
Constructors
Unary(TextSpan, int, IrUnaryOperator, int)
Applies a unary operation.
public Unary(TextSpan Span, int Destination, IrUnaryOperator Operator, int Operand)
Parameters
SpanTextSpanThe source span.
DestinationintThe destination slot.
OperatorIrUnaryOperatorThe unary operator.
OperandintThe operand slot.
Properties
Destination
The destination slot.
public int Destination { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Operand
The operand slot.
public int Operand { get; init; }
Property Value
Operator
The unary operator.
public IrUnaryOperator Operator { get; init; }
Property Value
Methods
Deconstruct(out TextSpan, out int, out IrUnaryOperator, out int)
public void Deconstruct(out TextSpan Span, out int Destination, out IrUnaryOperator Operator, out int Operand)
Parameters
SpanTextSpanDestinationintOperatorIrUnaryOperatorOperandint
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(Unary?)
public bool Equals(IrInstruction.Unary? other)
Parameters
otherIrInstruction.Unary
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 ==(Unary?, Unary?)
public static bool operator ==(IrInstruction.Unary? left, IrInstruction.Unary? right)
Parameters
leftIrInstruction.UnaryrightIrInstruction.Unary
Returns
operator !=(Unary?, Unary?)
public static bool operator !=(IrInstruction.Unary? left, IrInstruction.Unary? right)
Parameters
leftIrInstruction.UnaryrightIrInstruction.Unary