diff options
author | djuju <julfaber@gmail.com> | 2017-04-26 23:03:36 +0800 |
---|---|---|
committer | djuju <julfaber@gmail.com> | 2017-04-27 18:38:24 +0800 |
commit | 99a7aefb752f6b97475fb48da9c1c01d87af3056 (patch) | |
tree | 38cb1023e6a0cd01a93a009abd59d1e4194eefed /libsolidity/interface/CompilerStack.h | |
parent | 3cbdf6d490c6871d58f12f877cdc84111a7325c1 (diff) | |
download | dexon-solidity-99a7aefb752f6b97475fb48da9c1c01d87af3056.tar.gz dexon-solidity-99a7aefb752f6b97475fb48da9c1c01d87af3056.tar.zst dexon-solidity-99a7aefb752f6b97475fb48da9c1c01d87af3056.zip |
refactoring parse() into two separate functions
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index d46c99be..4c7b0018 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -103,6 +103,16 @@ public: /// Sets the given source code as the only source unit apart from standard sources and parses it. /// @returns false on error. bool parse(std::string const& _sourceCode); + /// performs the analyisis steps (imports, scopesetting, syntaxCheck, referenceResolving, + /// typechecking, staticAnalysis) on the set sources + /// @returns false on error. + bool analyze(); + /// Parses and analyzes all source units that were added + /// @returns false on error. + bool parseAndAnalyze(); + /// Sets the given source code as the only source unit apart from standard sources and parses and analyzes it. + /// @returns false on error. + bool parseAndAnalyze(std::string const& _sourceCode); /// @returns a list of the contract names in the sources. std::vector<std::string> contractNames() const; std::string defaultContractName() const; |