-
-
Notifications
You must be signed in to change notification settings - Fork 352
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 bug related to "insertBefore()" and "getSignature()" #450
Conversation
@@ -183,7 +183,13 @@ void insert(CtBlock<?> block, CtStatementList statementsToBeInserted) { | |||
|
|||
@Override | |||
void insertFromFirstStatement(CtBlock<?> block, CtStatement target, CtStatementList statementsToBeInserted) { | |||
int indexOfTargetElement = block.getStatements().indexOf(target); | |||
int indexOfTargetElement = -1; |
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.
oops? indentation with tabs? (this is the cause of travis' failure)
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.
Hi,
I just tried to use the formatter included with the spoon' repository ( SpoonFormatterPrefs.xml ), however when I apply it to the project, 458 files are modified. Do you really use this formatter ?
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.
Nope: #393
Too clarify this fix: |
|
I fixed the insertEnd and insertAfter in this branch https://github.com/tdurieux/spoon/tree/fix-insert |
after discussion with @maxcleme , he lets us resolve the formatting (grrr #393) and add the missing case. |
@tdurieux already did it this morning: https://github.com/maxcleme/spoon/pull/1 |
could you close this PR and check and accept the other one? |
Fix insertAfter and insertEnd
There is the same bug on insertAfter, but i didn't succeed to fix it.