-
-
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 work as expected in a line break context (style issue) #3401
Comments
fermadeiral
added a commit
to fermadeiral/spoon
that referenced
this issue
Jun 8, 2020
…hrow in the beginning of a statement (INRIA#3401)
This was referenced Jun 8, 2020
After investigation, it seems that the problem appears for any modified statment in position |
closed per #3400 |
monperrus
pushed a commit
to monperrus/spoon
that referenced
this issue
Jun 12, 2020
… should not remove new line (INRIA#3401) (INRIA#3402)
monperrus
pushed a commit
to monperrus/spoon
that referenced
this issue
Jun 13, 2020
… should not remove new line (INRIA#3401) (INRIA#3402)
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:
I want to add a
throw
in the constructor callnew IllegalArgumentException
. The transformation works just fine (no exception, the printed code is correct), but a line break is missing, so I get:Instead of:
I am opening a PR with a failing test case to reproduce the issue.
The text was updated successfully, but these errors were encountered: