diff options
author | chriseth <chris@ethereum.org> | 2018-06-29 23:41:59 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-07-03 07:02:00 +0800 |
commit | f7a9c4203e35439de6ff4bdd94c7083c16b73e43 (patch) | |
tree | ae55099d02be2a04c769cf4868f57239365d1583 /libsolidity/interface/ErrorReporter.h | |
parent | 4649f9202a93f7573d7fb425fbcbdd50e6d4407c (diff) | |
download | dexon-solidity-f7a9c4203e35439de6ff4bdd94c7083c16b73e43.tar.gz dexon-solidity-f7a9c4203e35439de6ff4bdd94c7083c16b73e43.tar.zst dexon-solidity-f7a9c4203e35439de6ff4bdd94c7083c16b73e43.zip |
Disallow packed encoding of literals.
Diffstat (limited to 'libsolidity/interface/ErrorReporter.h')
-rw-r--r-- | libsolidity/interface/ErrorReporter.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/interface/ErrorReporter.h b/libsolidity/interface/ErrorReporter.h index d1a0030f..fd53587a 100644 --- a/libsolidity/interface/ErrorReporter.h +++ b/libsolidity/interface/ErrorReporter.h @@ -92,6 +92,12 @@ public: void clear(); + /// @returns true iff there is any error (ignores warnings). + bool hasErrors() const + { + return m_errorCount > 0; + } + private: void error(Error::Type _type, SourceLocation const& _location, |