fix(position): PartialSourcePosition only support getCompilationUnit#1963
fix(position): PartialSourcePosition only support getCompilationUnit#1963monperrus merged 2 commits intoINRIA:masterfrom
Conversation
|
I fixed the code which asks for position and doesn't checks that there is partial source position only. But I am not happy with that solution, so feel free to rollback it ... it would be nicer if there would be a better way how to detect whether position I can imagine several solutions: @tdurieux @monperrus WDYT? |
|
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
|
|
Thank you for the fix. I think I prefer the solution S1 but I would prefer to throw an exception instead of -1 in NoSourcePosition. |
|
ready for merge? |
|
@monperrus please see problem and possible solutions above and give us your opinion please. Thanks ;-) |
what about change of NoSourcePosition and to throw exception there too?
validity detected by:
validity detected by: |
|
This PR is a step in a good way. So it is ready for merge. We can do other thinkgs in another PRs. |
No description provided.