Class IrInstruction.CreateObject
Creates an object value.
public sealed record IrInstruction.CreateObject : IrInstruction, IEquatable<IrInstruction>, IEquatable<IrInstruction.CreateObject>
- Inheritance
-
IrInstruction.CreateObject
- Implements
- Inherited Members
Constructors
CreateObject(TextSpan, int, ObjectTypeSymbol, IReadOnlyCollection<ObjectPropertyValue>)
Creates an object value.
public CreateObject(TextSpan Span, int Destination, ObjectTypeSymbol Type, IReadOnlyCollection<IrInstruction.ObjectPropertyValue> Properties)
Parameters
SpanTextSpanThe source span.
DestinationintThe destination slot.
TypeObjectTypeSymbolThe object type.
PropertiesIReadOnlyCollection<IrInstruction.ObjectPropertyValue>The object properties.
Properties
Destination
The destination slot.
public int Destination { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Properties
The object properties.
public IReadOnlyCollection<IrInstruction.ObjectPropertyValue> Properties { get; init; }
Property Value
Type
The object type.
public ObjectTypeSymbol Type { get; init; }
Property Value
Methods
Deconstruct(out TextSpan, out int, out ObjectTypeSymbol, out IReadOnlyCollection<ObjectPropertyValue>)
public void Deconstruct(out TextSpan Span, out int Destination, out ObjectTypeSymbol Type, out IReadOnlyCollection<IrInstruction.ObjectPropertyValue> Properties)
Parameters
SpanTextSpanDestinationintTypeObjectTypeSymbolPropertiesIReadOnlyCollection<IrInstruction.ObjectPropertyValue>
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(CreateObject?)
public bool Equals(IrInstruction.CreateObject? other)
Parameters
otherIrInstruction.CreateObject
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 ==(CreateObject?, CreateObject?)
public static bool operator ==(IrInstruction.CreateObject? left, IrInstruction.CreateObject? right)
Parameters
leftIrInstruction.CreateObjectrightIrInstruction.CreateObject
Returns
operator !=(CreateObject?, CreateObject?)
public static bool operator !=(IrInstruction.CreateObject? left, IrInstruction.CreateObject? right)
Parameters
leftIrInstruction.CreateObjectrightIrInstruction.CreateObject