Open nojaf opened 3 years ago
Yes, this case is handled separately in CheckExpressions.fs, based on ranges. See isAdjacentListExpr
in CheckExpressions.fs.
So I think you have to do the same in fantomas.
I'll mark as "feature improvement" because we could add an API for this logic.
Or would it be possible to capture this in its own SynExpr union instead of reusing SynExpr.App
?
Just thinking out loud though.
I'm not entirely sure but when I have the following code:
I get
Expected behavior
I was expecting
App(Atomic, false, ...)
Actual behavior
The
SynExpr.App
containsNonAtomic
while inside fsi I get:Known workarounds
/
Related information
Provide any related information (optional):
FCS 41.0.0-preview.21472.3
//cc @dsyme