Skip to content

Commit

Permalink
Reuse mkSynAccess for SynValSigAccess.Single
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Sep 13, 2024
1 parent 2f97828 commit 17dd26e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Fantomas.Core/ASTTransformer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ let mkSynAccess (vis: SynAccess option) =
| Some(SynAccess.Private range) -> Some(stn "private" range)
| Some(SynAccess.Public range) -> Some(stn "public" range)

/// https://fsharp.github.io/fsharp-compiler-docs/reference/fsharp-compiler-syntax-synvalsigaccess.html
let mkSynValSigAccess (vis: SynValSigAccess) =
// https://fsharp.github.io/fsharp-compiler-docs/reference/fsharp-compiler-syntax-synvalsigaccess.html
failwith "todo SynValSigAccess: %A" vis
match vis with
| SynValSigAccess.Single(accessibility = vis) -> mkSynAccess vis
| _ -> failwithf "todo SynValSigAccess: %A" vis

let parseExpressionInSynBinding returnInfo expr =
match returnInfo, expr with
Expand Down

0 comments on commit 17dd26e

Please sign in to comment.