Is your feature request related to a problem? Please describe.
Currently, we have a BinaryExpressionMutator that swaps operators, for example a + b -> a - b or a && b -> a || b.
For NullCoalescingExpressions, we do not only swap, but also remove either side of the expression.
I think this is something we could also do for other binary expressions.
Describe the solution you'd like
I'd like a mutator that removes either operand in a binary expression. For example, a + b -> a, a + b -> b, a && b -> a, etc.
Is your feature request related to a problem? Please describe. Currently, we have a
BinaryExpressionMutator
that swaps operators, for examplea + b -> a - b
ora && b -> a || b
. ForNullCoalescingExpression
s, we do not only swap, but also remove either side of the expression.I think this is something we could also do for other binary expressions.
Describe the solution you'd like I'd like a mutator that removes either operand in a binary expression. For example,
a + b -> a
,a + b -> b
,a && b -> a
, etc.