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

Function walk

scripts/k.py:1688–1700  ·  view source on GitHub ↗
(secs)

Source from the content-addressed store, hash-verified

1686 heading_intervals: list[tuple[int, int, str, int]] = [] # (start, end, anchor, level)
1687
1688 def walk(secs):
1689 for s in secs:
1690 anc = s.get("anchor")
1691 if anc:
1692 if s.get("agent_summary"):
1693 summary_by_anchor[anc] = s["agent_summary"]
1694 heading_intervals.append((
1695 int(s.get("char_start", 0)),
1696 int(s.get("char_end", 0)),
1697 anc,
1698 int(s.get("level", 1)),
1699 ))
1700 walk(s.get("children", []))
1701
1702 walk(outline.get("sections", []))
1703

Callers 4

list_all_blocksFunction · 0.70
annotate_sectionFunction · 0.70
fmt_outlineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected