mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parse for statement in assembly parser / printer
This commit is contained in:
@@ -53,6 +53,11 @@ void CodeTransform::run(Block const& _block)
|
||||
}
|
||||
|
||||
|
||||
void CodeTransform::operator()(ForLoop const&)
|
||||
{
|
||||
solAssert(false, "For loop not removed during desugaring phase.");
|
||||
}
|
||||
|
||||
void CodeTransform::operator()(VariableDeclaration const& _varDecl)
|
||||
{
|
||||
solAssert(m_scope, "");
|
||||
|
||||
@@ -32,21 +32,6 @@ namespace solidity
|
||||
class ErrorReporter;
|
||||
namespace assembly
|
||||
{
|
||||
struct Literal;
|
||||
struct Block;
|
||||
struct Switch;
|
||||
struct Label;
|
||||
struct FunctionalInstruction;
|
||||
struct Assignment;
|
||||
struct VariableDeclaration;
|
||||
struct Instruction;
|
||||
struct Identifier;
|
||||
struct StackAssignment;
|
||||
struct FunctionDefinition;
|
||||
struct FunctionCall;
|
||||
|
||||
using Statement = boost::variant<Instruction, Literal, Label, StackAssignment, Identifier, Assignment, FunctionCall, FunctionalInstruction, VariableDeclaration, FunctionDefinition, Switch, Block>;
|
||||
|
||||
struct AsmAnalysisInfo;
|
||||
}
|
||||
}
|
||||
@@ -115,6 +100,7 @@ public:
|
||||
void operator()(solidity::assembly::VariableDeclaration const& _varDecl);
|
||||
void operator()(solidity::assembly::Switch const& _switch);
|
||||
void operator()(solidity::assembly::FunctionDefinition const&);
|
||||
void operator()(solidity::assembly::ForLoop const&);
|
||||
void operator()(solidity::assembly::Block const& _block);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user