...
This commit is contained in:
@@ -581,9 +581,25 @@ public class SizeNode(List<Token> tokens, NubType targetType) : RValue(tokens, n
|
||||
}
|
||||
}
|
||||
|
||||
public class CastNode(List<Token> tokens, NubType type, ExpressionNode value) : RValue(tokens, type)
|
||||
public class CastNode(List<Token> tokens, NubType type, ExpressionNode value, CastNode.Conversion conversionType) : RValue(tokens, type)
|
||||
{
|
||||
public enum Conversion
|
||||
{
|
||||
IntToInt,
|
||||
FloatToFloat,
|
||||
IntToFloat,
|
||||
FloatToInt,
|
||||
|
||||
PointerToPointer,
|
||||
PointerToUInt64,
|
||||
UInt64ToPointer,
|
||||
|
||||
ConstArrayToArray,
|
||||
ConstArrayToSlice,
|
||||
}
|
||||
|
||||
public ExpressionNode Value { get; } = value;
|
||||
public Conversion ConversionType { get; } = conversionType;
|
||||
|
||||
public override IEnumerable<Node> Children()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user