Skip to content

refactor(goast): the shared walker — parsedSources over an extended parsedFile - #320

Merged
David-Noble-at-work merged 1 commit into
developfrom
refactor/goast-walker
Aug 4, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
refactor/goast-walker

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

The pre-declared phase-3 structure ruling, executed as ruled: iter.Seq[*parsedFile] with the cache entry extended to carry its path. Four true walker clients converted; Deps/Metrics deliberately untouched (different parse modes). Rider owned in the plan doc: eleven style findings my phase-7 squeeze helpers shipped (the batch skipped the full-config recount) are fixed here — the board reads zero again, uncapped. Vet + full suite green.

…arsedFile

The structure ruling pre-declared in the complexity plan's phase-3
notes. parsedFile gains the path it was parsed from (one concept, one
type); parsedEntry becomes the single cache-or-parse primitive with
parseFile layered over it; parsedSources yields iter.Seq[*parsedFile]
— collection failures surface at the call so every client keeps its
own error wrap, parse failures skip mid-iteration (the existing
semantics stated once), and breaking the range is the early exit
Callable and TypeDoc use naturally. Four clients converted (Callable,
ConstGroups, Structs, TypeDoc); Deps and Metrics stay — they share
only the collection, parsing with different modes.

Ownership rider: phase 7's final squeeze skipped the full-config
recount and shipped eleven style debts in my own helpers — seven
unnamedResult, one paramTypeCombine, one G204 (extraction changed
gosec's taint view; suppressed with provenance), one misspell, one
unparam (failAndUnwind's always-nil result dropped). All fixed here.

Full-config lint: zero findings, uncapped. make vet and full make test
pass; gofmt clean. Plan: docs/plans/goast-walker.md.
@David-Noble-at-work David-Noble-at-work self-assigned this Aug 4, 2026
@David-Noble-at-work
David-Noble-at-work merged commit 509daf0 into develop Aug 4, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the refactor/goast-walker branch August 4, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant