docs: fill missing XML docs and strip tracking IDs from src comments

Clears CommentChecker findings in src/ (3,280 -> 209, the remainder being false
positives like PLC-5/IEEE-754/M0.0) by adding missing summaries/params/returns,
normalising inheritdoc usage, and removing Gitea/review tracking IDs while keeping
the rationale they annotated. Comment-only: comment-stripped sources are identical
to the parent commit.
This commit is contained in:
Joseph Doherty
2026-10-15 06:14:58 -04:00
parent ebcbd81fca
commit 826312befe
430 changed files with 4434 additions and 3923 deletions
@@ -19,9 +19,15 @@ public sealed record PcccAddress(string FileLetter, int? FileNumber, int Element
?? throw new AbTransportException(AbStatus.Unsupported, $"File type '{FileLetter}' needs an explicit file number.");
/// <summary>The word offset to read within the element, and the bit within that word if any.</summary>
/// <returns>The word offset and the optional bit index.</returns>
public (int Word, int? Bit) ResolveSubElement() => (SubElement ?? 0, Bit);
/// <summary>Builds an address from a sub-element mnemonic (PRE, ACC, LEN, POS, or a status bit such as DN).</summary>
/// <param name="letter">The file letter (T, C or R).</param>
/// <param name="fileNumber">The explicit file number, or null for the implicit one.</param>
/// <param name="element">The element number.</param>
/// <param name="subName">The sub-element mnemonic.</param>
/// <returns>The resolved address.</returns>
public static PcccAddress WithSubElementName(string letter, int? fileNumber, int element, string subName)
{
var l = letter.ToUpperInvariant();
@@ -57,6 +63,8 @@ public sealed record PcccAddress(string FileLetter, int? FileNumber, int Element
}
/// <summary>Parses <c>N7:0</c>, <c>B3:1/4</c>, <c>T4:0.ACC</c>, <c>I:0/1</c>, <c>ST9:2</c>; null when malformed.</summary>
/// <param name="text">The address text.</param>
/// <returns>The parsed address, or null when the text is malformed.</returns>
public static PcccAddress? TryParse(string? text)
{
if (string.IsNullOrWhiteSpace(text)) return null;