aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-06 08:06:24 +0800
committerChristian <c@ethdev.com>2014-12-08 19:49:03 +0800
commitc78c330634997e5d8e2ec27db9e3d9cf50bae230 (patch)
treeb47e89a21d6686ca49478528ace3e239836dbb0e /Compiler.h
parent41b8d7b7f1221c6caae142a6833228ccd098ef5b (diff)
downloaddexon-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.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/Compiler.h b/Compiler.h
index 70e6c44f..b425b07c 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -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;