MCPcopy Index your code
hub / github.com/python/cpython / _replace

Method _replace

Tools/c-analyzer/c_parser/parser/_info.py:168–174  ·  view source on GitHub ↗
(self, text, start=None, *, fixnested=False)

Source from the content-addressed store, hash-verified

166 return old
167
168 def _replace(self, text, start=None, *, fixnested=False):
169 end = self._current.end
170 old = self._clear(start)
171 self._current = TextInfo(text, self._start, end)
172 if fixnested and self._nested and self._nested[-1] is old:
173 self._nested[-1] = self._current
174 self._set_ready()
175
176 def _add_line(self, line, lno=None):
177 if not line.strip():

Callers 5

nestMethod · 0.95
advanceMethod · 0.95
fix_filenameMethod · 0.45
fix_filenameMethod · 0.45
fix_filenameMethod · 0.45

Calls 3

_clearMethod · 0.95
_set_readyMethod · 0.95
TextInfoClass · 0.85

Tested by

no test coverage detected