KT-4568: Created the ConvertNegatedExpressionWithDemorgansLaw intention. Converts an expression of the form !(a &&,|| b) to its expanded equivalent under DeMorgan's law.

This commit is contained in:
Ross Hanson
2014-03-23 21:35:07 -04:00
committed by Mikhael Bogdanov
parent 2147a88ed8
commit 55e888604e
30 changed files with 319 additions and 55 deletions
@@ -0,0 +1,5 @@
class Foo {
fun get(a: Boolean, b: Boolean): Boolean {
return !a || !b
}
}
@@ -0,0 +1,5 @@
class Foo {
fun get(a: Boolean, b: Boolean): Boolean {
return <spot> !(a && b)</spot>
}
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts a boolean expression to an equivalent one using DeMorgan's law.
</body>
</html>