def parse_namespace_object(self) -> ASTNamespace:
    templatePrefix = self._parse_template_declaration_prefix(objectType='namespace')
    name = self._parse_nested_name()
    templatePrefix = self._check_template_consistency(name, templatePrefix, fullSpecShorthand=False)
    res = ASTNamespace(name, templatePrefix)
    res.objectType = 'namespace'
    return res
def parse_namespace_object(self) -> ASTNamespace:
    templatePrefix = self._parse_template_declaration_prefix(objectType='namespace')
    name = self._parse_nested_name()
    templatePrefix = self._check_template_consistency(name, templatePrefix, fullSpecShorthand=False)
    res = ASTNamespace(name, templatePrefix)
    res.objectType = 'namespace'
    return res