protected override void ConvertOperands() { LeftType = LeftOperand.GetSemanticType(); if (RightOperand is OperandToken operand) { Name = operand.Name; } }
protected virtual void ConvertOperands() { LeftType = LeftOperand.GetSemanticType(); RightType = RightOperand.GetSemanticType(); if (LeftType.Equals(SimpleType.Integer) && RightType.Equals(SimpleType.Real)) { LeftType = SimpleType.Real; } if (LeftType.Equals(SimpleType.Real) && RightType.Equals(SimpleType.Integer)) { RightType = SimpleType.Real; } }