def METHOD_NAME(self):
    prev = None
    for curr, _ in self.walker():
        if prev is None:
            prev = curr
            continue
        if prev.t == 'text' and curr.t == 'text':
            prev.literal += curr.literal
            curr.unlink()
        else:
            prev = curr