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 new ConstantFold.findConstantExpr #20

Merged

Conversation

JLLeitschuh
Copy link
Contributor

Signed-off-by: Jonathan Leitschuh [email protected]

@JLLeitschuh JLLeitschuh force-pushed the improve/JLL/use-findConstantExpr branch from 3e58e85 to 992bde8 Compare February 24, 2024 03:12
@timtebeek timtebeek added the enhancement New feature or request label Feb 24, 2024
@timtebeek
Copy link
Contributor

Great to see this simplification! Note to self that we can likely use the same for RemoveBoolVariation and ChangeVariationDefault.

@JLLeitschuh JLLeitschuh force-pushed the improve/JLL/use-findConstantExpr branch from 992bde8 to f336731 Compare February 24, 2024 20:22
@timtebeek
Copy link
Contributor

Thanks for taking on those additional cases as well! Great how we can now match so much more with a convenient API.

@timtebeek timtebeek merged commit f117351 into openrewrite:main Feb 24, 2024
2 checks passed
@JLLeitschuh
Copy link
Contributor Author

Yea, CursorUtils.findCursorForTree was another one of those ones that I've been thinking about writing for a bit, and I'm pleased that it now exists.

@JLLeitschuh JLLeitschuh deleted the improve/JLL/use-findConstantExpr branch March 11, 2024 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants