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

fix: JDT spoon compiler builds imports and then comments #2807

Merged
merged 3 commits into from
Dec 3, 2018

Conversation

pvojtechovsky
Copy link
Collaborator

@pvojtechovsky pvojtechovsky commented Dec 1, 2018

It allows to assign comments on the imports

//comment
import a.b.C;

The test will be in #2683.

It is ready for merge

@pvojtechovsky pvojtechovsky changed the title WiP: fix: JDT spoon compiler builds imports and then comments fix: JDT spoon compiler builds imports and then comments Dec 1, 2018
unit.traverse(builder, unit.scope);
});
if (getFactory().getEnvironment().isAutoImports()) {
// we need first to go through the whole model before getting the right reference for imports
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you misplaced the comments in this method

@surli
Copy link
Collaborator

surli commented Dec 3, 2018

Nice refactoring!

@pvojtechovsky
Copy link
Collaborator Author

comments are fixed now

@monperrus monperrus merged commit 3378d15 into INRIA:master Dec 3, 2018
@monperrus
Copy link
Collaborator

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants