Class IrInstruction.Truthiness
Converts a value to its truthiness result.
public sealed record IrInstruction.Truthiness : IrInstruction, IEquatable<IrInstruction>, IEquatable<IrInstruction.Truthiness>
- Inheritance
-
IrInstruction.Truthiness
- Implements
- Inherited Members
Constructors
Truthiness(TextSpan, int, int)
Converts a value to its truthiness result.
public Truthiness(TextSpan Span, int Destination, int Source)
Parameters
Properties
Destination
The destination slot.
public int Destination { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Source
The source slot.
public int Source { get; init; }
Property Value
Methods
Deconstruct(out TextSpan, out int, out int)
public void Deconstruct(out TextSpan Span, out int Destination, out int Source)
Parameters
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(Truthiness?)
public bool Equals(IrInstruction.Truthiness? other)
Parameters
otherIrInstruction.Truthiness
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 ==(Truthiness?, Truthiness?)
public static bool operator ==(IrInstruction.Truthiness? left, IrInstruction.Truthiness? right)
Parameters
leftIrInstruction.TruthinessrightIrInstruction.Truthiness
Returns
operator !=(Truthiness?, Truthiness?)
public static bool operator !=(IrInstruction.Truthiness? left, IrInstruction.Truthiness? right)
Parameters
leftIrInstruction.TruthinessrightIrInstruction.Truthiness