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

review: feature: SourcePosition checks validity and displays origin source code #1950

Merged
merged 4 commits into from
Apr 16, 2018

Conversation

pvojtechovsky
Copy link
Collaborator

this new checkArgsAreAscending found many problems in PositionBuilder...

I guess it should be always activated... or do you think it should be possible to switch it off ... temporarily, so clients can use spoon until we fix all the PositionBuilder x JDK compiler problems?

WDYT?

Yes and there are some new helper methods in SourcePositions ... I was lazy to make new PR for them. I hope it is BS enough :-)

@pvojtechovsky pvojtechovsky changed the title feature: SourcePosition checks validity and displays origin source code WiP: feature: SourcePosition checks validity and displays origin source code Apr 5, 2018
@tdurieux
Copy link
Collaborator

rebase?

@pvojtechovsky pvojtechovsky force-pushed the feaSourcePositionCheck branch from 4f8ce04 to f37a765 Compare April 13, 2018 16:22
@tdurieux
Copy link
Collaborator

with this #1963 this PR should pass.

@pvojtechovsky pvojtechovsky force-pushed the feaSourcePositionCheck branch 2 times, most recently from 55bf9fd to e20d6d4 Compare April 15, 2018 08:55
@pvojtechovsky pvojtechovsky force-pushed the feaSourcePositionCheck branch from e20d6d4 to 2e1b944 Compare April 15, 2018 12:06
@pvojtechovsky pvojtechovsky changed the title WiP: feature: SourcePosition checks validity and displays origin source code review: feature: SourcePosition checks validity and displays origin source code Apr 15, 2018
@pvojtechovsky
Copy link
Collaborator Author

I am finished here

@monperrus
Copy link
Collaborator

lots of progress on the position front!

can checkArgsAreAscending throw an exception in pure AST manipulation mode (ie outside JDTTreeBuilder)?

could you add test cases for the new public methods?

@pvojtechovsky
Copy link
Collaborator Author

can checkArgsAreAscending throw an exception in pure AST manipulation mode (ie outside JDTTreeBuilder)?

I am not sure whether I understood the question.
If client just manipulates spoon elements it doesn't creates SourcePositions so checkArgsAreAscending is not called. If client starts to create SourcePositions they must be consistent, otherwise checkArgsAreAscending will report this problem by thrown exception

Tests

ok, I will add some

@pvojtechovsky
Copy link
Collaborator Author

I am finished here

@spoon-bot
Copy link
Collaborator

API changes: 1 (Detected by Revapi)

Old API: fr.inria.gforge.spoon:spoon-core:jar:6.3.0-20180405.225214-41 / New API: fr.inria.gforge.spoon:spoon-core:jar:6.3.0-SNAPSHOT

visibility reduced
Old method ElementPrinterHelper#createListPrinter(boolean, String, boolean, boolean, String, boolean, boolean, String)
New method ElementPrinterHelper#createListPrinter(boolean, String, boolean, boolean, String, boolean, boolean, String)
Breaking binary: breaking

@monperrus monperrus merged commit 5885431 into INRIA:master Apr 16, 2018
@pvojtechovsky pvojtechovsky deleted the feaSourcePositionCheck branch April 16, 2018 19:09
@surli surli mentioned this pull request Jun 25, 2018
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.

4 participants