diff options
author | chriseth <c@ethdev.com> | 2015-09-16 22:56:30 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-09-22 02:03:05 +0800 |
commit | 34a81fd60e0218ef93813ffce22fb6d0ed4955e2 (patch) | |
tree | e15e3f2c224688c43859d4c4588743c8fd07adc1 /libsolidity/Compiler.h | |
parent | 352c196eb37744b8054909a9801d55c672d0eb1c (diff) | |
download | dexon-solidity-34a81fd60e0218ef93813ffce22fb6d0ed4955e2.tar dexon-solidity-34a81fd60e0218ef93813ffce22fb6d0ed4955e2.tar.gz dexon-solidity-34a81fd60e0218ef93813ffce22fb6d0ed4955e2.tar.bz2 dexon-solidity-34a81fd60e0218ef93813ffce22fb6d0ed4955e2.tar.lz dexon-solidity-34a81fd60e0218ef93813ffce22fb6d0ed4955e2.tar.xz dexon-solidity-34a81fd60e0218ef93813ffce22fb6d0ed4955e2.tar.zst dexon-solidity-34a81fd60e0218ef93813ffce22fb6d0ed4955e2.zip |
Refactoring: Check types outside of AST and recover from some errors.
Diffstat (limited to 'libsolidity/Compiler.h')
-rw-r--r-- | libsolidity/Compiler.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libsolidity/Compiler.h b/libsolidity/Compiler.h index c7dd7d90..7b7cffcf 100644 --- a/libsolidity/Compiler.h +++ b/libsolidity/Compiler.h @@ -37,10 +37,8 @@ public: explicit Compiler(bool _optimize = false, unsigned _runs = 200): m_optimize(_optimize), m_optimizeRuns(_runs), - m_context(), m_returnTag(m_context.newTag()) - { - } + { } void compileContract( ContractDefinition const& _contract, @@ -71,7 +69,8 @@ public: eth::AssemblyItem functionEntryLabel(FunctionDefinition const& _function) const; private: - /// Registers the non-function objects inside the contract with the context. + /// Registers the non-function objects inside the contract with the context and stores the basic + /// information about the contract like the AST annotations. void initializeContext( ContractDefinition const& _contract, std::map<ContractDefinition const*, eth::Assembly const*> const& _compiledContracts |