def tree_merge(self, dst, src, flags=None):
        if flags and 'FULL_OVERRIDE' in flags:
            return src
        for child in src.children:
            if isinstance(child, Node):
                if type_repr(child.type) == 'funcdef':
                    self.tree_replace_function(dst, child)
                elif type_repr(child.type) == 'classdef':
                    self.tree_merge_class(dst, child)
        return dst
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.tree_merge/original