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

Handle context/scope at the block level #4

Open
BPHarris opened this issue Jan 4, 2022 · 0 comments
Open

Handle context/scope at the block level #4

BPHarris opened this issue Jan 4, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@BPHarris
Copy link
Collaborator

BPHarris commented Jan 4, 2022

The current FunctionAnalyser should be replaced with a BlockAnalyser with an added name attribute holding the function name for top-level functions, inner_func.outer_func for nested functions, etc. This BlockAnalyser should then be applied to all scoped contexts with the exception of classes (which remain a special case) i.e. functions, loops, nested functions.

This will allow for nested functions to be handled properly, but also for iterator names over an iterable in for loops to be treated the same way as arguments and parameters.

@BPHarris BPHarris self-assigned this Jan 4, 2022
@BPHarris BPHarris added the enhancement New feature or request label Jan 4, 2022
@BPHarris BPHarris added the good first issue Good for newcomers label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant