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:
committed by
Mikhael Bogdanov
parent
2147a88ed8
commit
55e888604e
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
fun get(a: Boolean, b: Boolean): Boolean {
|
||||
return !a || !b
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
fun get(a: Boolean, b: Boolean): Boolean {
|
||||
return <spot> !(a && b)</spot>
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a boolean expression to an equivalent one using DeMorgan's law.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user