MCPcopy Index your code
hub / github.com/SirVer/ultisnips / __setitem__

Method __setitem__

pythonx/UltiSnips/text_objects/python_code.py:35–40  ·  view source on GitHub ↗
(self, no, value)

Source from the content-addressed store, hash-verified

33 return ts.current_text
34
35 def __setitem__(self, no, value):
36 ts = self._to._get_tabstop(self._to, int(no))
37 if ts is None:
38 return
39 # TODO(sirver): The buffer should be passed into the object on construction.
40 ts.overwrite(vim_helper.buf, value)
41
42
43class _VisualContent(NamedTuple):

Callers

nothing calls this directly

Calls 2

overwriteMethod · 0.80
_get_tabstopMethod · 0.45

Tested by

no test coverage detected