-
Notifications
You must be signed in to change notification settings - Fork 314
Open
Labels
code actionCode action provided by LSPCode action provided by LSPenhancementNew feature or requestNew feature or request
Description
Description
Sometimes in code we end up with something like:
if !x && y != z { ... }
and it would be cleaner to apply DeMorgan's law to make this:
if !(x || y == z) { ... }
We should have a code action to do this correctly, which requires dealing with inverting conditions and dealing with operator precedence. The SwiftOperators
module of swift-syntax can help here.
Metadata
Metadata
Assignees
Labels
code actionCode action provided by LSPCode action provided by LSPenhancementNew feature or requestNew feature or request