Closed adams85 closed 1 year ago
Setting the status to draft as I discovered a few other problematic cases:
a/ /regex/
a<! --b
a-- >b
These are converted to JS incorrectly when formatting is turned off. That is, the PR needs some more work to tackle these as well.
Makes changes to
AstToJsonConverter
to correctly parenthesize logical expressions which mix nullish coalescing and logical AND/OR operations (e.g.a ?? b && c
).Also, fixes formatting of plus/minus binary operations having a right side that starts with an ambiguous punctuator (e.g.
a+++b
vsa+ ++b
).