Sitelet https://github.com/fsprojects/FSharp.Formatting/pull/1315
Skip to content

Skip union case tester properties in API docs - #1315

Merged
dsyme merged 1 commit into
fsprojects:mainfrom
nojaf:fix-1313
Sep 14, 2026
Merged

dsyme merged 1 commit into
fsprojects:mainfrom
nojaf:fix-1313

Conversation

@nojaf

@nojaf nojaf commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

The compiler synthesizes an IsCase property for every union case. They cannot carry XML documentation, so they were listed as undocumented members on union pages and FsDocsWarnOnMissingDocs reported FD0001 for each one, about half of all warnings for a union-heavy assembly.

Treat IsUnionCaseTester like IsCompilerGenerated when reading members, so the testers are neither documented nor reported as missing.

@dsyme would like a review from you on this. I think this is fine, but a another set of eyes might be worth it.

Fixes #1313

The compiler synthesizes an IsCase property for every union case. They
cannot carry XML documentation, so they were listed as undocumented
members on union pages and FsDocsWarnOnMissingDocs reported FD0001 for
each one, about half of all warnings for a union-heavy assembly.

Treat IsUnionCaseTester like IsCompilerGenerated when reading members,
so the testers are neither documented nor reported as missing.
@nojaf nojaf changed the title Skip union case tester properties in API docs (#1313) Skip union case tester properties in API docs Sep 10, 2026
@nojaf
nojaf requested a review from dsyme September 14, 2026 09:15
@dsyme
dsyme merged commit 78002a7 into fsprojects:main Sep 14, 2026
18 checks passed
@dsyme

dsyme commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Looks good

@nojaf
nojaf deleted the fix-1313 branch September 14, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing-docs warning FD0001 reported for compiler-generated union case IsXxx properties

2 participants