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

Function parse_src

Lib/test/test_generated_cases.py:47–52  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

45
46
47def parse_src(src):
48 p = parser.Parser(src, "test.c")
49 nodes = []
50 while node := p.definition():
51 nodes.append(node)
52 return nodes
53
54
55class TestEffects(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

definitionMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…