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

Method advance

Tools/c-analyzer/c_parser/parser/_info.py:104–114  ·  view source on GitHub ↗
(self, remainder, start=None)

Source from the content-addressed store, hash-verified

102 self._set_ready()
103
104 def advance(self, remainder, start=None):
105 if self._current is None:
106 raise Exception('advancing requires active source text')
107 if remainder.strip():
108 self._replace(remainder, start, fixnested=True)
109 else:
110 if self._nested:
111 self._replace('', start, fixnested=True)
112 #raise Exception('cannot advance while nesting')
113 else:
114 self._clear(start)
115
116 def resolve(self, kind, data, name, parent=None):
117 # "field" isn't a top-level kind, so we leave it as-is.

Callers 4

_parse_next_local_staticFunction · 0.45
_parse_struct_nextFunction · 0.45
parse_enum_bodyFunction · 0.45
_parse_nextFunction · 0.45

Calls 3

_replaceMethod · 0.95
_clearMethod · 0.95
stripMethod · 0.45

Tested by

no test coverage detected