Repository navigation
feat(graph): add Zig tags.scm — call edges for the breadth tier - #201
Frankie-Xu wants to merge 6 commits into
Conversation
🌱 graft blast radius1 area changed → 1 area can be affected. 2 dependent symbols, depth 2. flowchart TB
A0(("Graph Build And Check<br/>2 symbols"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0 reached;
Who knows this code — 2 people across 2 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 2 dependent symbols, grouped by areaGraph Build And Check — 2 symbols in 2 files
Test signal per changed area — 1 ✗Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
1 test suite also references this code1 symbol, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
47e4c40 to
1bf0863
Compare
…lhq#197) Co-authored-by: Cursor <[email protected]>
|
Rebased onto current main. Kept the existing PHP wasm / throwing-grammar tests and layered the Zig tags.scm fixture on top. Waiting on CI before marking ready. |
The tracking issue is trailhq#198; the previous commit message still names trailhq#197. Co-authored-by: Cursor <[email protected]>
|
Rebased onto current main. CI is green. Ready for review. |
- generic-extract.test.ts: the union merge of trailhq#196, trailhq#200 and trailhq#201 spliced their appended tests into one another and left the file unterminated. Rebuilt as trailhq#196's file plus trailhq#200's and trailhq#201's appended blocks verbatim. - The trailhq#139 test asserted that a cached parse failure is replayed without a re-parse; trailhq#317 (fixes trailhq#312) deliberately re-parses it instead and did not update the test. It now asserts the re-parse and that the error still comes back. - The trailhq#319 symlink test (trailhq#328) needed symlink privilege on Windows. Directory links are junctions there, as test/graph-root and test/ingest-fs already do, and the file-link case is skipped with a diagnostic when it cannot be created. Co-Authored-By: Claude Opus 5 <[email protected]>
Summary
Add Zig breadth-tier tags for functions,
conststructs, named tests, and bare/member call expressions. Nested functions retain their own scope inside structs, and escaped test labels retain the complete inner source spelling instead of being truncated at the first string fragment.Fixes #197.
Validation
main(fe30ead39d5e6f0c921018d364da2bdbc9d4b3ad) preserves current language registry and existing tests.Scope
Enum/union definitions and unnamed tests remain outside this query. Escaped test labels use their source spelling. Member calls use the existing name resolver and do not add receiver typing.