private EvaluatorState EvaluateUnaryExpression(UnaryExpression unaryExpression) { var @operator = unaryExpression.Operator; var lhs = Visit(unaryExpression.Left); var result = EvalUnaryAsNumber(@operator, lhs); if (context.IsExplain) { PrintAsBitSet((int)long.Parse(lhs.Value)); } return(new EvaluatorState() { IsSigned = true, Type = lhs.Type, Value = result.ToString() }); }
private void EvaluateUnaryExpression(UnaryExpression unaryExpression) { Visit(unaryExpression.Left); }