Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove DiagnosticBag from BoundNode #109

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Remove DiagnosticBag from BoundNode #109

merged 1 commit into from
Nov 29, 2024

Conversation

ChrisKXu
Copy link
Owner

This PR refactors the Binder code so that BoundNodes no longer carry their own DiagnosticBags. Instead, DiagnosticBags are centrally managed at the application level and are injected into Binders and analyzers/rewriters. This should result in significantly reduced allocations of DiagnosticBag objects, especially when BoundNodes are being re-written. A similar change will be coming to SyntaxNodes as well.

@ChrisKXu ChrisKXu merged commit 9831fdb into main Nov 29, 2024
4 checks passed
@ChrisKXu ChrisKXu deleted the binder-diagnostics branch November 29, 2024 05:15
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