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

Sets the parent in insertBefore/After and refactors these methods. #375

Merged
merged 2 commits into from
Oct 16, 2015
Merged

Sets the parent in insertBefore/After and refactors these methods. #375

merged 2 commits into from
Oct 16, 2015

Conversation

GerardPaligot
Copy link
Contributor

Closes #345

@monperrus
Copy link
Collaborator

cool!

since you change the test file, it's impossible to see the new test case and assertion that you are fixing.

@GerardPaligot
Copy link
Contributor Author

since you change the test file, it's impossible to see the e new test case and assertion that you are fixing.

The formatting of this file was really (!) bad. Some test cases used tabs, other used spaces and even both sometimes. And I renamed the file.

But I didn't change any test, just add new assertions on existing tests and create new tests.

@monperrus
Copy link
Collaborator

I can imagine.

It's better to split the PR in two, one for the bug fix (with a clear
additional assertion) and another one for the formatting.

Might be two commits in the same PR.

parentStatementList.getStatements().add(i, s);
}

new InsertBeforeVisitor(target, statements, InsertType.AFTER).scan(e);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change name to InsertVisitor

monperrus added a commit that referenced this pull request Oct 16, 2015
@monperrus monperrus merged commit e407e43 into INRIA:master Oct 16, 2015
@GerardPaligot GerardPaligot deleted the fix_345 branch October 16, 2015 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants