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

get surrounding nodes based on 3 heuristics #59

Merged
merged 2 commits into from
May 13, 2024

Conversation

SaharMehrpour
Copy link
Member

Updating the functionality for getting the surrounding nodes based on the following heuristics:

  • Case 1: static class
    Grab all code within static class
  • Case 2: class, field
    Grab all fields and function/nested class signatures
  • Case 3: other, statements (starting node within method or at method signature)
    Grab all code within method and function signatures and private fields adjacent/same level as method

@SaharMehrpour
Copy link
Member Author

Case 3: other, statements (starting node within method or at method signature)
Grab all code within method and function signatures and all fields adjacent/same level as method

The method just remove function bodies.

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