Skip to content

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
@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.

1 participant