diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-06 03:17:54 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-06 03:17:54 +0800 |
commit | ed62b2583cf96a970dd610fa3ce837942bb67500 (patch) | |
tree | 53e82d82f7458e6eacbf11086b655c102d74d8f6 /libsolidity/analysis/ConstantEvaluator.h | |
parent | c28ed2a6191fd16c4be92a9adb53d5ff3215a34d (diff) | |
download | dexon-solidity-ed62b2583cf96a970dd610fa3ce837942bb67500.tar.gz dexon-solidity-ed62b2583cf96a970dd610fa3ce837942bb67500.tar.zst dexon-solidity-ed62b2583cf96a970dd610fa3ce837942bb67500.zip |
Use the proper error reporting interface in ConstantEvaluator
Diffstat (limited to 'libsolidity/analysis/ConstantEvaluator.h')
-rw-r--r-- | libsolidity/analysis/ConstantEvaluator.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libsolidity/analysis/ConstantEvaluator.h b/libsolidity/analysis/ConstantEvaluator.h index 9ec04ebe..90bceb5d 100644 --- a/libsolidity/analysis/ConstantEvaluator.h +++ b/libsolidity/analysis/ConstantEvaluator.h @@ -29,6 +29,7 @@ namespace dev namespace solidity { +class ErrorReporter; class TypeChecker; /** @@ -37,13 +38,18 @@ class TypeChecker; class ConstantEvaluator: private ASTConstVisitor { public: - ConstantEvaluator(Expression const& _expr) { _expr.accept(*this); } + ConstantEvaluator(Expression const& _expr, ErrorReporter& _errorReporter): + m_errorReporter(_errorReporter) + { + _expr.accept(*this); + } private: virtual void endVisit(BinaryOperation const& _operation); virtual void endVisit(UnaryOperation const& _operation); virtual void endVisit(Literal const& _literal); + ErrorReporter& m_errorReporter; }; } |