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

Scope graph #607

Merged
merged 11 commits into from
Aug 8, 2020
Merged

Scope graph #607

merged 11 commits into from
Aug 8, 2020

Conversation

aravij
Copy link
Contributor

@aravij aravij commented Aug 8, 2020

Fix #570
Scope graph provides tree like structure with code scopes as nodes. Each scope has a list of its statements. Handles lambdas inside expressions, if and cycle conditions, etc. Anonymous class are not supported currently.

While it is said 15 files were changed, half of it was just moved in another directory. It is done to make separate directory for ast_framework tests. Most important changes are in scope.py and scope_extractors.py files. This new functionality tested with test_scope.py and ScopeTest.java files, which is quite large, just to cover a lot of cases.

@aravij aravij linked an issue Aug 8, 2020 that may be closed by this pull request
@aravij aravij added this to the AST framework milestone Aug 8, 2020
@aravij aravij added this to In progress in Aibolit via automation Aug 8, 2020
@aravij aravij self-assigned this Aug 8, 2020
Aibolit automation moved this from In progress to Reviewer approved Aug 8, 2020
@acheshkov
Copy link
Member

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Aug 8, 2020

@rultor merge

@acheshkov OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 4bba38b into master Aug 8, 2020
Aibolit automation moved this from Reviewer approved to Done Aug 8, 2020
@rultor
Copy link
Collaborator

rultor commented Aug 8, 2020

@rultor merge

@acheshkov Done! FYI, the full log is here (took me 39min)

@aravij aravij deleted the issue-570 branch August 8, 2020 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Aibolit
  
Done
Development

Successfully merging this pull request may close these issues.

Copmuted field 'statements_by_scope'
4 participants