From e1e1337aca5939acffc040a6c7667acfae4738d0 Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 14 Dec 2020 12:10:22 +0100 Subject: [PATCH] Move functions into anonymous namespace. --- libsolidity/analysis/ConstantEvaluator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libsolidity/analysis/ConstantEvaluator.cpp b/libsolidity/analysis/ConstantEvaluator.cpp index 70c196f10..c3b4b9a7f 100644 --- a/libsolidity/analysis/ConstantEvaluator.cpp +++ b/libsolidity/analysis/ConstantEvaluator.cpp @@ -227,6 +227,9 @@ optional ConstantEvaluator::evaluateUnaryOperator(Token _operator, rat } } +namespace +{ + optional convertType(rational const& _value, Type const& _type) { if (_type.category() == Type::Category::RationalNumber) @@ -255,6 +258,8 @@ optional constantToTypedValue(Type const& _type) return nullopt; } +} + optional ConstantEvaluator::evaluate( langutil::ErrorReporter& _errorReporter, Expression const& _expr