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

fix case/default scopes, fix #913 #918

Merged
merged 2 commits into from
Jul 9, 2023

Conversation

WebFreak001
Copy link
Member

@WebFreak001 WebFreak001 commented Jul 9, 2023

introduces a new ScopedBaseAnalyzer base class, which defines abstract pushScope & popScope methods that can be used by checks to clear/set variable scopes. Adds new unittests for the scope checking and makes the label_var_same_name_check and redundant_attributes checks reuse it.

Future-proofs us in case libdparse case/default parsing changes.

@WebFreak001 WebFreak001 merged commit 48db254 into dlang-community:master Jul 9, 2023
19 checks passed
@WebFreak001 WebFreak001 deleted the fix-default-scope branch July 9, 2023 22:52
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.

None yet

1 participant