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

Method __init__

Tools/c-analyzer/c_parser/parser/_info.py:49–59  ·  view source on GitHub ↗
(self, filename, _current=None)

Source from the content-addressed store, hash-verified

47 _ready = False
48
49 def __init__(self, filename, _current=None):
50 # immutable:
51 self.filename = filename
52 # mutable:
53 if isinstance(_current, str):
54 _current = TextInfo(_current)
55 self._current = _current
56 start = -1
57 self._start = _current.start if _current else -1
58 self._nested = []
59 self._set_ready()
60
61 def __repr__(self):
62 args = (f'{a}={getattr(self, a)!r}'

Callers

nothing calls this directly

Calls 2

_set_readyMethod · 0.95
TextInfoClass · 0.85

Tested by

no test coverage detected