Class IrInstruction.Binary
Applies a binary operation.
public sealed record IrInstruction.Binary : IrInstruction, IEquatable<IrInstruction>, IEquatable<IrInstruction.Binary>
- Inheritance
-
IrInstruction.Binary
- Implements
- Inherited Members
Constructors
Binary(TextSpan, int, IrBinaryOperator, int, int)
Applies a binary operation.
public Binary(TextSpan Span, int Destination, IrBinaryOperator Operator, int Left, int Right)
Parameters
SpanTextSpanThe source span.
DestinationintThe destination slot.
OperatorIrBinaryOperatorThe binary operator.
LeftintThe left operand slot.
RightintThe right operand slot.
Properties
Destination
The destination slot.
public int Destination { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Left
The left operand slot.
public int Left { get; init; }
Property Value
Operator
The binary operator.
public IrBinaryOperator Operator { get; init; }
Property Value
Right
The right operand slot.
public int Right { get; init; }
Property Value
Methods
Deconstruct(out TextSpan, out int, out IrBinaryOperator, out int, out int)
public void Deconstruct(out TextSpan Span, out int Destination, out IrBinaryOperator Operator, out int Left, out int Right)
Parameters
SpanTextSpanDestinationintOperatorIrBinaryOperatorLeftintRightint
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(Binary?)
public bool Equals(IrInstruction.Binary? other)
Parameters
otherIrInstruction.Binary
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 ==(Binary?, Binary?)
public static bool operator ==(IrInstruction.Binary? left, IrInstruction.Binary? right)
Parameters
leftIrInstruction.BinaryrightIrInstruction.Binary
Returns
operator !=(Binary?, Binary?)
public static bool operator !=(IrInstruction.Binary? left, IrInstruction.Binary? right)
Parameters
leftIrInstruction.BinaryrightIrInstruction.Binary