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

Function parse_file

Tools/c-analyzer/c_parser/__init__.py:6–14  ·  view source on GitHub ↗
(filename, *,
               match_kind=None,
               get_file_preprocessor=None,
               file_maxsizes=None,
               )

Source from the content-addressed store, hash-verified

4
5
6def parse_file(filename, *,
7 match_kind=None,
8 get_file_preprocessor=None,
9 file_maxsizes=None,
10 ):
11 if get_file_preprocessor is None:
12 get_file_preprocessor = _get_preprocessor()
13 yield from _parse_file(
14 filename, match_kind, get_file_preprocessor, file_maxsizes)
15
16
17def parse_files(filenames, *,

Callers

nothing calls this directly

Calls 2

_parse_fileFunction · 0.85
_get_preprocessorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…