Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [#1807] Refactor file structure | Lúcás Meier | 2019-10-04 | 1 | -33/+33 |
| | | | | | Use the more conventional way of importing the ast types, and put the assist at the top of the file. | ||||
* | Fix formatting | Lúcás Meier | 2019-10-04 | 1 | -22/+9 |
| | |||||
* | Create an assist for applying De Morgan's law | Lúcás Meier | 2019-10-03 | 1 | -0/+115 |
Fixes #1807 This assist can transform expressions of the form `!x || !y` into `!(x && y)`. This also works with `&&`. This assist will only trigger if the cursor is on the central logical operator. The main limitation of this current implementation is that both operands need to be an explicit negation, either of the form `!x`, or `x != y`. More operands could be accepted, but this would complicate the implementation quite a bit. |