diff options
author | djuju <julfaber@gmail.com> | 2017-04-28 21:24:59 +0800 |
---|---|---|
committer | djuju <julfaber@gmail.com> | 2017-04-28 21:24:59 +0800 |
commit | 45f8c5aa882ecc18f073984cd4d34a6c8be7e5e0 (patch) | |
tree | 69610e339fa440620a3da1e8bc84effe59898d75 /libsolidity/interface/CompilerStack.h | |
parent | 5fd7942173a71f1cf7ca1cae0dcde1905482f004 (diff) | |
download | dexon-solidity-45f8c5aa882ecc18f073984cd4d34a6c8be7e5e0.tar.gz dexon-solidity-45f8c5aa882ecc18f073984cd4d34a6c8be7e5e0.tar.zst dexon-solidity-45f8c5aa882ecc18f073984cd4d34a6c8be7e5e0.zip |
enumchecks not working
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index 9a3221e5..c1d344ca 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -236,6 +236,13 @@ private: mutable std::unique_ptr<std::string const> sourceMapping; mutable std::unique_ptr<std::string const> runtimeSourceMapping; }; + enum State { + Empty, + SourcesSet, + ParsingSuccessful, + AnalysisSuccessful, + CompilationSuccessful + }; /// Loads the missing sources from @a _ast (named @a _path) using the callback /// @a m_readFile and stores the absolute paths of all imports in the AST annotations. @@ -276,7 +283,6 @@ private: /// list of path prefix remappings, e.g. mylibrary: github.com/ethereum = /usr/local/ethereum /// "context:prefix=target" std::vector<Remapping> m_remappings; - bool m_success; std::map<std::string const, Source> m_sources; std::shared_ptr<GlobalContext> m_globalContext; std::map<ASTNode const*, std::shared_ptr<DeclarationContainer>> m_scopes; @@ -285,6 +291,7 @@ private: std::string m_formalTranslation; ErrorList m_errors; bool m_metadataLiteralSources = false; + State m_stackState = Empty; }; } |