def METHOD_NAME(self, type_map):
    new_funcs = []
    for f in self.funcs:
        func = ''
        for l in f.split('\n'):
            if re.search(CALL_INDIRECT_REGEX, l):
                func += self.shift_call_indirect(l, type_map) + '\n'
            elif re.search(CALL_REGEX, l):
                func += self.shift_call(l) + '\n'
            else:
                func += l + '\n'
        new_funcs.append(func)
    self.funcs = new_funcs