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

Fix: issue #3878 resolve MethodReference in ObjectCreationExpr #4296

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

fishautumn
Copy link
Contributor

Fixes #3878 resolve MethodReference in ObjectCreationExpr.

mostly copy the MethodCallExpr logic, extract shared code.

throw new UnsupportedOperationException();
}

private int pos(NodeWithArguments<?> callExpr, Expression param) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can perhaps improve this method slightly by re-using NodeWithArguments.getArgumentPosition(Expression arg)

@jlerbsc jlerbsc merged commit 30dedd9 into javaparser:master Feb 2, 2024
37 of 38 checks passed
@jlerbsc jlerbsc added this to the next release milestone Feb 2, 2024
@jlerbsc jlerbsc added the PR: Added A PR that introduces new behaviour (e.g. functionality, tests) label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Added A PR that introduces new behaviour (e.g. functionality, tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MethodReference calls is not yet fully resolvable
2 participants