diff options
author | Christian <c@ethdev.com> | 2014-12-06 08:06:24 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-08 19:49:03 +0800 |
commit | c78c330634997e5d8e2ec27db9e3d9cf50bae230 (patch) | |
tree | b47e89a21d6686ca49478528ace3e239836dbb0e /Compiler.h | |
parent | 41b8d7b7f1221c6caae142a6833228ccd098ef5b (diff) | |
download | dexon-solidity-c78c330634997e5d8e2ec27db9e3d9cf50bae230.tar.gz dexon-solidity-c78c330634997e5d8e2ec27db9e3d9cf50bae230.tar.zst dexon-solidity-c78c330634997e5d8e2ec27db9e3d9cf50bae230.zip |
Const AST visitor for the compiler.
Diffstat (limited to 'Compiler.h')
-rw-r--r-- | Compiler.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -32,7 +32,7 @@ class Compiler: private ASTVisitor public: Compiler(): m_returnTag(m_context.newTag()) {} - void compileContract(ContractDefinition& _contract, std::vector<MagicVariableDeclaration const*> const& _magicGlobals); + void compileContract(ContractDefinition const& _contract, std::vector<MagicVariableDeclaration const*> const& _magicGlobals); bytes getAssembledBytecode(bool _optimize = false) { return m_context.getAssembledBytecode(_optimize); } void streamAssembly(std::ostream& _stream) const { m_context.streamAssembly(_stream); } @@ -48,14 +48,14 @@ private: void registerStateVariables(ContractDefinition const& _contract); - virtual bool visit(FunctionDefinition& _function) override; - virtual bool visit(IfStatement& _ifStatement) override; - virtual bool visit(WhileStatement& _whileStatement) override; - virtual bool visit(Continue& _continue) override; - virtual bool visit(Break& _break) override; - virtual bool visit(Return& _return) override; - virtual bool visit(VariableDefinition& _variableDefinition) override; - virtual bool visit(ExpressionStatement& _expressionStatement) override; + virtual bool visit(FunctionDefinition const& _function) override; + virtual bool visit(IfStatement const& _ifStatement) override; + virtual bool visit(WhileStatement const& _whileStatement) override; + virtual bool visit(Continue const& _continue) override; + virtual bool visit(Break const& _break) override; + virtual bool visit(Return const& _return) override; + virtual bool visit(VariableDefinition const& _variableDefinition) override; + virtual bool visit(ExpressionStatement const& _expressionStatement) override; CompilerContext m_context; |