mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Visit case bodies in scope filler
This commit is contained in:
@@ -97,6 +97,15 @@ bool ScopeFiller::operator()(assembly::FunctionDefinition const& _funDef)
|
||||
return success;
|
||||
}
|
||||
|
||||
bool ScopeFiller::operator()(Switch const& _switch)
|
||||
{
|
||||
bool success = true;
|
||||
for (auto const& _case: _switch.cases)
|
||||
if (!(*this)(_case.body))
|
||||
success = false;
|
||||
return success;
|
||||
}
|
||||
|
||||
bool ScopeFiller::operator()(Block const& _block)
|
||||
{
|
||||
bool success = true;
|
||||
|
||||
Reference in New Issue
Block a user