def increment_error_index(self):
        with EditorContext.write_lock:
            if self._errors_index == len(self._errors) - 1:
                raise IndexError('end of errors list')
            self._errors_index += 1
dataset/ETHPy150Open guillermooo/dart-sublime-bundle/lib/editor_context.py/EditorContext.increment_error_index/original