gumtree-spoon-ast-diff icon indicating copy to clipboard operation
gumtree-spoon-ast-diff copied to clipboard

Fail to recognize the switch of elseExpression and thenExpression in CtConditional

Open ghost opened this issue 6 years ago • 1 comments

Input

int insBegin = (1 == 2) ? 1 : 0;
int insBegin = (1 == 2) ? 0 : 1;

Output

Only delete and insert operations about CtLiteral 0 without mentioning the role change of CtLiteral 1. Screen Shot 2019-04-17 at 7 57 40 PM

Screen Shot 2019-04-17 at 7 58 37 PM

ghost avatar Apr 14 '19 15:04 ghost

Hi @11510746 Could you create a pull request with a test that exposes the problem? Thank you very much

martinezmatias avatar May 08 '19 14:05 martinezmatias