AutoRefactor icon indicating copy to clipboard operation
AutoRefactor copied to clipboard

New refactoring - Rewrite conditions like chained inequalities

Open JnRouvignac opened this issue 10 years ago • 2 comments

Given

The following condition:

b > 0 && anotherValue > b
0 < b && anotherValue > b

When

... automatic refactorings are applied ...

Then

code is refactored to:

0 < b && b < anotherValue
0 < b && b < anotherValue

...to better expose the interval of b's value

JnRouvignac avatar Jan 14 '15 12:01 JnRouvignac

@JnRouvignac Can you assign this issue to me?

xennygrimmato avatar Oct 25 '16 20:10 xennygrimmato

Alas I cannot so easily. Feel free to work on it. I did not hear that anybody else is working on it

JnRouvignac avatar Oct 25 '16 20:10 JnRouvignac