MCPcopy Create free account
hub / github.com/Qinbf/groundmap / walk

Function walk

scripts/section_parser.py:335–338  ·  view source on GitHub ↗
(s: Section)

Source from the content-addressed store, hash-verified

333 """深度优先扁平化所有 sections。"""
334 out: list[Section] = []
335 def walk(s: Section):
336 out.append(s)
337 for c in s.children:
338 walk(c)
339 for s in sections:
340 walk(s)
341 return out

Callers 1

flatten_sectionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected