From e26a22e3a565104d9e82e4067ebb5852599b71f9 Mon Sep 17 00:00:00 2001 From: Phillip Carter Date: Thu, 23 Aug 2018 17:36:13 -0700 Subject: [PATCH] Ignore union cases for properties --- mdoc/Mono.Documentation/Updater/Formatters/FSharpFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdoc/Mono.Documentation/Updater/Formatters/FSharpFormatter.cs b/mdoc/Mono.Documentation/Updater/Formatters/FSharpFormatter.cs index 80c77f311..dba27684f 100644 --- a/mdoc/Mono.Documentation/Updater/Formatters/FSharpFormatter.cs +++ b/mdoc/Mono.Documentation/Updater/Formatters/FSharpFormatter.cs @@ -391,7 +391,7 @@ private void AppendProperties(TypeDefinition type, StringBuilder buf) if (IsRecord(type) || IsDiscriminatedUnion(type)) { - props = props.Where(p => !GetFSharpFlags(p.CustomAttributes).Any(ca => ca == SourceConstructFlags.Field)) + props = props.Where(p => !GetFSharpFlags(p.CustomAttributes).Any(ca => ca == SourceConstructFlags.Field || ca == SourceConstructFlags.UnionCase)) .OrderBy(p => p.FullName); }