From 34a81fd60e0218ef93813ffce22fb6d0ed4955e2 Mon Sep 17 00:00:00 2001 From: chriseth <c@ethdev.com> Date: Wed, 16 Sep 2015 16:56:30 +0200 Subject: Refactoring: Check types outside of AST and recover from some errors. --- libsolidity/Compiler.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libsolidity/Compiler.h') 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 -- cgit v1.2.3