def METHOD_NAME(self, text):
    length = 0
    for ttype, value in super().METHOD_NAME(text):
        if any(start <= length < end for start, end in ranges):
            ttype = ttype.ExecutingNode
        length += len(value)
        yield ttype, value