Skip to content

fix: change the mutability of visitors#129

Merged
noahbald merged 1 commit intomainfrom
fix/visitor-mutability
Apr 23, 2025
Merged

fix: change the mutability of visitors#129
noahbald merged 1 commit intomainfrom
fix/visitor-mutability

Conversation

@noahbald
Copy link
Owner

Some jobs stored state in their config, which risks accidentally mutating and reusing state across files. This PR updates visitors so that they're not used mutably.
Where state is needed, a short-lived visitor is created which uses the parent visitor as it's options.

This also means we no longer need to clone visitors as we iterate across files.

@noahbald noahbald self-assigned this Apr 22, 2025
@noahbald noahbald force-pushed the fix/visitor-mutability branch from c803d5d to 9f77555 Compare April 22, 2025 11:40
@noahbald noahbald merged commit fb77d43 into main Apr 23, 2025
20 checks passed
@noahbald noahbald deleted the fix/visitor-mutability branch April 23, 2025 08:54
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