Skip to content

Commit

Permalink
Pick correct comma in pattern in mkPropertyGetSetBinding.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed May 12, 2023
1 parent 6a81f74 commit e2c280e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Fantomas.Core/ASTTransformer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2562,9 +2562,8 @@ let mkPropertyGetSetBinding

let pats =
match ps with
| [ SynPat.Tuple(false, [ p1; p2; p3 ], commas, _) ] ->
| [ SynPat.Tuple(false, [ p1; p2; p3 ], [ comma ], _) ] ->
let mTuple = unionRanges p1.Range p2.Range
let comma = commas.[0]

[ PatParenNode(
stn "(" Range.Zero,
Expand Down

0 comments on commit e2c280e

Please sign in to comment.