From ae98135bd70d9c8be34e3a2a68860fde06961c1e Mon Sep 17 00:00:00 2001 From: Matthijs Prent Date: Fri, 13 Sep 2024 11:36:09 +0200 Subject: [PATCH] Changed to printing an error for fields as well --- src/FSharp.Formatting.ApiDocs/GenerateModel.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FSharp.Formatting.ApiDocs/GenerateModel.fs b/src/FSharp.Formatting.ApiDocs/GenerateModel.fs index fd078db2..51050465 100644 --- a/src/FSharp.Formatting.ApiDocs/GenerateModel.fs +++ b/src/FSharp.Formatting.ApiDocs/GenerateModel.fs @@ -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