def merge_domaindata(self, docnames: List[str], otherdata: Dict) -> None:
    if Symbol.debug_show_tree:
        print('merge_domaindata:')
        print('\tself:')
        print(self.data['root_symbol'].dump(1))
        print('\tself end')
        print('\tother:')
        print(otherdata['root_symbol'].dump(1))
        print('\tother end')
    self.data['root_symbol'].merge_with(otherdata['root_symbol'], docnames, self.env)
    ourNames = self.data['names']
    for (name, docname) in otherdata['names'].items():
        if (docname in docnames):
            if (name in ourNames):
                msg = __("Duplicate declaration, also defined in '%s'.\nName of declaration is '%s'.")
                msg = (msg % (ourNames[name], name))
                logger.warning(msg, location=docname)
            else:
                ourNames[name] = docname
    if Symbol.debug_show_tree:
        print('\tresult:')
        print(self.data['root_symbol'].dump(1))
        print('\tresult end')
        print('merge_domaindata end')
def merge_domaindata(self, docnames: List[str], otherdata: Dict) -> None:
    if Symbol.debug_show_tree:
        print('merge_domaindata:')
        print('\tself:')
        print(self.data['root_symbol'].dump(1))
        print('\tself end')
        print('\tother:')
        print(otherdata['root_symbol'].dump(1))
        print('\tother end')
    self.data['root_symbol'].merge_with(otherdata['root_symbol'], docnames, self.env)
    ourNames = self.data['names']
    for (name, docname) in otherdata['names'].items():
        if (docname in docnames):
            if (name in ourNames):
                msg = __("Duplicate declaration, also defined in '%s'.\nName of declaration is '%s'.")
                msg = (msg % (ourNames[name], name))
                logger.warning(msg, location=docname)
            else:
                ourNames[name] = docname
    if Symbol.debug_show_tree:
        print('\tresult:')
        print(self.data['root_symbol'].dump(1))
        print('\tresult end')
        print('merge_domaindata end')