Skip to content

[Repo Assist] Add /// doc comments to SymbolReader.fs, TypeFormatter.fs, and ProjectCracker.fs (issue #1035)#1074

Merged
dsyme merged 2 commits intomainfrom
repo-assist/doc-comments-batch4-symbolreader-291a40afd3ba2dc3
Mar 8, 2026
Merged

[Repo Assist] Add /// doc comments to SymbolReader.fs, TypeFormatter.fs, and ProjectCracker.fs (issue #1035)#1074
dsyme merged 2 commits intomainfrom
repo-assist/doc-comments-batch4-symbolreader-291a40afd3ba2dc3

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Mar 8, 2026

🤖 This PR was created by Repo Assist, an automated AI assistant, in response to a /repo-assist command from @dsyme on #1035.

Closes #1035 (partial — continues batch work)


Summary

This PR adds /// XML doc comments to the three source files that previously had zero doc comments, covering the three largest zero-comment files in the repo:

File Lines Comments before Comments after
SymbolReader.fs 1 703 0 ~97
TypeFormatter.fs 270 0 ~41
ProjectCracker.fs 754 0 ~39

SymbolReader.fs

  • Module-level doc explaining its role (FCS → API doc model conversion)
  • ReadingContext record: type-level doc, XmlMemberLookup, Create
  • All key functions: readAttribute, readAttributes, readMemberOrVal, readUnionCase, readFSharpField, getFSharpStaticParamXmlSig, readFSharpStaticParam, removeSpaces, readMarkdownCommentAsHtml, findCommand, readXmlElementAsSingleSummary, readXmlElementAsHtml, readXmlCommentAsHtmlAux, readXmlCommentAsHtml, collectSpanIndirectLinks, collectParagraphIndirectLinks, combineHtml, combineHtmlOptions, combineNamespaceDocs, linkDefined, getTypeLink, addLinkToType, wrapInlineCodeLinksInSpans, wrapInlineCodeLinksInParagraphs, addMissingLinkToTypes, readMarkdownCommentAndCommands, readXmlCommentAndCommands, readCommentAndCommands, readCommentsInto, checkAccess, collectNamespaceDocs, readChildren, tryReadMember, readAllMembers, readMembers, readTypeNameAsText, readUnionCases, readRecordFields, readStaticParams, xmlDocText, registerXmlDoc, registerProvidedTypeXmlDocs, readType, readModule, readEntities, stripMicrosoft, readNamespace, readAssembly

TypeFormatter.fs

  • Module-level doc explaining its role (type → HTML rendering)
  • All functions: convHtml, codeHtml, formatSourceLocation, formatTypeArgumentAsText, formatTypeArgumentsAsText, formatConstraintAsText, formatConstraintsAsText, bracketHtml, bracketNonAtomicHtml, bracketHtmlIf, formatTyconRefAsHtml, formatTypeApplicationAsHtml, formatTypesWithPrecAsHtml, formatTypeWithPrecAsHtml, formatTypeAsHtml, formatArgNameAndTypePair, formatArgNameAndType, formatArgUsageAsHtml, formatArgNameAndTypePairUsageAsHtml, formatCurriedArgsUsageAsHtml, formatDelegateSignatureAsHtml

ProjectCracker.fs

  • Module-level docs for Utils, DotNetCli, and Crack
  • Utils: isWindows, dotnet, fileExists, getDotnetGlobalHostPath, getDotnetHostPath, ensureDirectory, saveBinary, loadBinary, cacheBinary, ensureTrailingSlash
  • DotNetCli.msbuild
  • Crack: msbuildPropBool, runProcess, CrackedProjectInfo type, crackProjectFileAndIncludeTargetFrameworks, ensureProjectWasRestored, crackProjectFile, getProjectsFromSlnFile, crackProjects

Test Status

✅ Build succeeded with 0 errors and 0 new warnings:

dotnet build src/FSharp.Formatting.ApiDocs/FSharp.Formatting.ApiDocs.fsproj --configuration Release
dotnet build src/fsdocs-tool/fsdocs-tool.fsproj --configuration Release

The single pre-existing warning in BuildCommand.fs (FS0760) is unrelated to this PR.

Generated by Repo Assist for issue #1035 ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@8e6d7c86bba37371d2d0eee1a23563db3e561eb5

…tCracker.fs (issue #1035)

- SymbolReader.fs: module doc, ReadingContext fields/members, and all key
  functions (readMemberOrVal, readUnionCase, readFSharpField, readAttribute,
  readMarkdownCommentAsHtml, readXmlElementAsHtml, readXmlCommentAsHtmlAux,
  readCommentAndCommands, readCommentsInto, readType, readAssembly, etc.)
- TypeFormatter.fs: module doc and all public-facing functions
  (formatTypeAsHtml, formatConstraintAsText, formatCurriedArgsUsageAsHtml,
  formatTypeApplicationAsHtml, formatDelegateSignatureAsHtml, etc.)
- ProjectCracker.fs: module docs for Utils, DotNetCli, Crack; all utility
  helpers (getDotnetHostPath, cacheBinary, ensureDirectory, etc.) and
  CrackedProjectInfo type; crackProjectFile, crackProjects, etc.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dsyme dsyme marked this pull request as ready for review March 8, 2026 15:36
@dsyme dsyme merged commit 1d20e09 into main Mar 8, 2026
4 checks passed
@dsyme dsyme deleted the repo-assist/doc-comments-batch4-symbolreader-291a40afd3ba2dc3 branch March 8, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment all the code in the repository

1 participant