-
Notifications
You must be signed in to change notification settings - Fork 7
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
Improve preconditions check #120
Improve preconditions check #120
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see the tests already; I've placed some code suggestions to rule out any chance of miscommunication. Thanks for taking this on!
src/main/java/org/openrewrite/java/template/processor/RefasterTemplateProcessor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/java/template/processor/PreCondition.java
Outdated
Show resolved
Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…not-require-the-type-present-in-a-single-before-template-to-be-present-for-all-matches
…not-require-the-type-present-in-a-single-before-template-to-be-present-for-all-matches
src/main/java/org/openrewrite/java/template/processor/RefasterTemplateProcessor.java
Outdated
Show resolved
Hide resolved
…TemplateProcessor.java Co-authored-by: Tim te Beek <[email protected]>
src/main/java/org/openrewrite/java/template/processor/Precondition.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/java/template/processor/RefasterTemplateProcessor.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Tim te Beek <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to have the proper minimized preconditions generated now. Thanks a lot!
What's changed?
@BeforeTemplate
methods. Every @BeforeTemplate rules will be its own block of rules, separated by aPreconditions.or
block. Possible duplicates will be detected and removed of the final precondition set (called pruning of the preconditions).UsesType
comes beforeUsesMethod
).What's your motivation?
More support for picnics refasten templates.
Checklist