mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Yul] Adds break/continue statements and some general tests for for-loop syntax.
This commit is contained in:
committed by
Christian Parpart
parent
4704ef843d
commit
05e2d362c8
@@ -138,6 +138,15 @@ Statement ASTCopier::operator()(ForLoop const& _forLoop)
|
||||
translate(_forLoop.body)
|
||||
};
|
||||
}
|
||||
Statement ASTCopier::operator()(Break const& _break)
|
||||
{
|
||||
return Break{ _break };
|
||||
}
|
||||
|
||||
Statement ASTCopier::operator()(Continue const& _continue)
|
||||
{
|
||||
return Continue{ _continue };
|
||||
}
|
||||
|
||||
Statement ASTCopier::operator ()(Block const& _block)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user