-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
The sniper printer does not behave as expected when an invocation is replaced by another invocation. #3399
Comments
fermadeiral
added a commit
to fermadeiral/spoon
that referenced
this issue
Jun 8, 2020
nharrand
pushed a commit
that referenced
this issue
Jun 10, 2020
I believe this issue was solved, thus I'm closing it. |
monperrus
pushed a commit
to monperrus/spoon
that referenced
this issue
Jun 12, 2020
monperrus
pushed a commit
to monperrus/spoon
that referenced
this issue
Jun 13, 2020
nharrand
added a commit
that referenced
this issue
Jun 14, 2020
* test(SniperPrettyPrinter): test replacement of invocation (#3399) (#3400) * test(SniperPrettyPrinter): modification on first statement of a block should not remove new line (#3401) (#3402) * up * up * @monperrus at work * Update src/main/java/spoon/support/DefaultCoreFactory.java * @monperrus at work * up * @monperrus at work * @monperrus at work * @monperrus at work * up * up * @monperrus at work * @monperrus at work * @monperrus at work Co-authored-by: Fernanda Madeiral <fer.madeiral@gmail.com> Co-authored-by: Nicolas Harrand <nicolas.harrand@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
I have the following code:
And I wish to transform it to:
However, with the Sniper printer (but not with the default one) I get:
No exception is thrown, but the printed code is not the expected one.
I hope that the following failing test case helps to find the actual issue:
This is the content of the InvocationReplacement class:
The text was updated successfully, but these errors were encountered: