def _getAreaFromMatch(dict_):
    """
    Returns code area based on the match dict
    """
    if dict_['entity_name'] is not None:
        return 'entity'
    if dict_['architecture_name'] is not None:
        return 'architecture'
    if dict_['package_name'] is not None:
        return 'package'
    if dict_['package_body_name'] is not None:
        return 'package_body'
    assert False, "Can't determine area from {}".format(dict_)
