Skip to content

Commit c1437f1

Browse files
committed
Ignore union cases for properties
1 parent 0cb6da1 commit c1437f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdoc/Mono.Documentation/Updater/Formatters/FSharpFormatter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ private void AppendProperties(TypeDefinition type, StringBuilder buf)
391391

392392
if (IsRecord(type) || IsDiscriminatedUnion(type))
393393
{
394-
props = props.Where(p => !GetFSharpFlags(p.CustomAttributes).Any(ca => ca == SourceConstructFlags.Field))
394+
props = props.Where(p => !GetFSharpFlags(p.CustomAttributes).Any(ca => ca == SourceConstructFlags.Field || ca == SourceConstructFlags.UnionCase))
395395
.OrderBy(p => p.FullName);
396396
}
397397

0 commit comments

Comments
 (0)