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

Original source position of unordered elements messes up pretty printing #40

Closed
slarse opened this issue Mar 3, 2020 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@slarse
Copy link
Collaborator

slarse commented Mar 3, 2020

If the source position of a member is set, the pretty printer will use that when printing, and not respect the new ordering. This can be fixed by setting the source position to SourcePosition.NOPOSITION.

mem.setValueByRole(CtRole.POSITION, SourcePosition.NOPOSITION);
@slarse slarse added the bug Something isn't working label Mar 3, 2020
@slarse slarse closed this as completed in 9180a14 Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant