Skip to content

Commit

Permalink
Changed to printing an error for fields as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsPrent committed Sep 13, 2024
1 parent f5fd993 commit ae98135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FSharp.Formatting.ApiDocs/GenerateModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ type ApiDocMember
| Choice1Of2 p ->
if isUnitType p.Type |> not then
printfn "%s(%d,%d): warning: a parameter was missing a name" m.FileName m.StartLine m.StartColumn
| Choice2Of2 _ -> ()
| Choice2Of2 _ ->
printfn "%s(%d,%d): warning: a field was missing a name" m.FileName m.StartLine m.StartColumn
| Some nm ->
if not (tdocs.ContainsKey pnm) then
printfn
Expand Down

0 comments on commit ae98135

Please sign in to comment.