def add_name(self, nestedName: ASTNestedName, templatePrefix: ASTTemplateDeclarationPrefix=None) -> 'Symbol':
    if Symbol.debug_lookup:
        Symbol.debug_indent += 1
        Symbol.debug_print('add_name:')
    if templatePrefix:
        templateDecls = templatePrefix.templates
    else:
        templateDecls = []
    res = self._add_symbols(nestedName, templateDecls, declaration=None, docname=None)
    if Symbol.debug_lookup:
        Symbol.debug_indent -= 1
    return res
def add_name(self, nestedName: ASTNestedName, templatePrefix: ASTTemplateDeclarationPrefix=None) -> 'Symbol':
    if Symbol.debug_lookup:
        Symbol.debug_indent += 1
        Symbol.debug_print('add_name:')
    if templatePrefix:
        templateDecls = templatePrefix.templates
    else:
        templateDecls = []
    res = self._add_symbols(nestedName, templateDecls, declaration=None, docname=None)
    if Symbol.debug_lookup:
        Symbol.debug_indent -= 1
    return res