Skip to content

Skip union case tester properties in API docs - #1315

Open
nojaf wants to merge 1 commit into
fsprojects:mainfrom
nojaf:fix-1313
Open

Skip union case tester properties in API docs#1315
nojaf wants to merge 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
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

1 participant