Skip to content

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

Merged
monperrus merged 4 commits intoINRIA:masterfrom
pvojtechovsky:feaSourcePositionCheck
Apr 16, 2018
Merged

review: feature: SourcePosition checks validity and displays origin source code#1950
monperrus merged 4 commits intoINRIA:masterfrom
pvojtechovsky:feaSourcePositionCheck

Conversation

@pvojtechovsky
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

rebase?

@pvojtechovsky pvojtechovsky force-pushed the feaSourcePositionCheck branch from 4f8ce04 to f37a765 Compare April 13, 2018 16:22
@tdurieux
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

I am finished here

@monperrus
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

I am finished here

@spoon-bot
Copy link
Copy Markdown
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