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

Use currentClass for implicit this #1468

Merged
merged 7 commits into from
Mar 22, 2024
Merged

Use currentClass for implicit this #1468

merged 7 commits into from
Mar 22, 2024

Conversation

konradweiss
Copy link
Collaborator

Adds a getter for the closest enclosing function scope that is associated with a MethodDeclaration and therefore can be a target for this. The getter is then used in ExpressionHandler.createImplicitThis.

Fixes #1455

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…e first function scope with an associated AST node that is a method and using it in the createImplicitThis function
@konradweiss konradweiss requested a review from oxisto as a code owner March 20, 2024 13:52

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@konradweiss konradweiss requested a review from oxisto March 22, 2024 12:34
Copy link

@oxisto oxisto changed the title Use currentMethod for implicit this Use currentClass for implicit this Mar 22, 2024
@oxisto oxisto merged commit 0ef85e5 into main Mar 22, 2024
3 checks passed
@oxisto oxisto deleted the bugfix/method-for-imp-this branch March 22, 2024 12:54
@oxisto oxisto added the java Related to Java language parsing label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Related to Java language parsing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MemberCall inside LambdaExpression causes Parsing failure
2 participants