Refactor data location check.

This commit is contained in:
Chase McDermott
2018-08-14 18:07:15 +02:00
committed by chriseth
parent cc2dcf5c31
commit 683bce1869
6 changed files with 222 additions and 133 deletions
@@ -626,6 +626,17 @@ void DeclarationRegistrationHelper::endVisit(ModifierDefinition&)
closeCurrentScope();
}
bool DeclarationRegistrationHelper::visit(FunctionTypeName& _funTypeName)
{
enterNewSubScope(_funTypeName);
return true;
}
void DeclarationRegistrationHelper::endVisit(FunctionTypeName&)
{
closeCurrentScope();
}
bool DeclarationRegistrationHelper::visit(Block& _block)
{
_block.setScope(m_currentScope);