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

Method nest

Tools/c-analyzer/c_parser/parser/_info.py:84–90  ·  view source on GitHub ↗
(self, text, before, start=None)

Source from the content-addressed store, hash-verified

82 return self._current.text
83
84 def nest(self, text, before, start=None):
85 if self._current is None:
86 raise Exception('nesting requires active source text')
87 current = self._current
88 current.text = before
89 self._nested.append(current)
90 self._replace(text, start)
91
92 def resume(self, remainder=None):
93 if not self._nested:

Callers 3

_parse_next_local_staticFunction · 0.45
_parse_struct_nextFunction · 0.45
_parse_nextFunction · 0.45

Calls 2

_replaceMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected