Move functions into anonymous namespace.

This commit is contained in:
chriseth 2020-12-14 12:10:22 +01:00
parent 28374447d2
commit e1e1337aca

View File

@ -227,6 +227,9 @@ optional<rational> ConstantEvaluator::evaluateUnaryOperator(Token _operator, rat
}
}
namespace
{
optional<TypedRational> convertType(rational const& _value, Type const& _type)
{
if (_type.category() == Type::Category::RationalNumber)
@ -255,6 +258,8 @@ optional<TypedRational> constantToTypedValue(Type const& _type)
return nullopt;
}
}
optional<TypedRational> ConstantEvaluator::evaluate(
langutil::ErrorReporter& _errorReporter,
Expression const& _expr