Skip to content

Commit

Permalink
Restore loopTTupleList implementation. (#2405)
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf authored Aug 3, 2022
1 parent 18be1c5 commit d4e2ec4
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions src/Fantomas.Core/CodePrinter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3894,22 +3894,11 @@ and genType astContext outerBracket t =
| t -> failwithf "Unexpected type: %O" t

and loopTTupleList ts =
if
List.forall
(function
| SynTupleTypeSegment.Type _ -> true
| _ -> false)
ts
then
col !- " * " ts (function
| SynTupleTypeSegment.Type t -> loop t
| _ -> sepNone)
else
col sepSpace ts (fun t ->
match t with
| SynTupleTypeSegment.Type t -> loop t
| SynTupleTypeSegment.Star _ -> !- "*"
| SynTupleTypeSegment.Slash _ -> !- "/")
col sepSpace ts (fun t ->
match t with
| SynTupleTypeSegment.Type t -> loop t
| SynTupleTypeSegment.Star _ -> !- "*"
| SynTupleTypeSegment.Slash _ -> !- "/")

and loopFuns (ts, ret) =
let short =
Expand Down

0 comments on commit d4e2ec4

Please sign in to comment.