mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move functions into anonymous namespace.
This commit is contained in:
parent
28374447d2
commit
e1e1337aca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user