Skip to content

[docs] Add XML documentation to hand-written events - #26311

Merged
rolfbjarne merged 4 commits into
mainfrom
dev/rolf/vigilant-fishstick
Jul 28, 2026
Merged

[docs] Add XML documentation to hand-written events#26311
rolfbjarne merged 4 commits into
mainfrom
dev/rolf/vigilant-fishstick

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Adds hand-authored XML documentation to the 38 hand-written public event declarations that were allow-listed as undocumented in tests/cecil-tests/Documentation.KnownFailures.txt, and removes those 38 E: entries from the allow-list.

These events are declared directly in manual C# source under src/ (as opposed to the ~67 bgen-generated events, which are documented separately), so the docs are authored by hand directly above each public event declaration.

Frameworks covered:

  • AddressBook: ABAddressBook.ExternalChange
  • AudioToolbox: AudioConverter.InputData, OutputAudioQueue.BufferCompleted, InputAudioQueue.InputCompleted
  • AVFoundation: AVAudioPlayer (4 events) and AVAudioSession (7 events)
  • CoreFoundation: CFSocket (5 events) and CFStream (5 events)
  • CoreMidi: MidiClient (7 events), MidiPort.MessageReceived, MidiEndpoint.MessageReceived
  • CoreServices: FSEventStream.Events
  • ObjCRuntime: Runtime.AssemblyRegistration, MarshalObjectiveCException, MarshalManagedException

All added documentation is well-formed XML and every <see cref> resolves.

🤖 Pull request created by Copilot

rolfbjarne and others added 2 commits July 27, 2026 19:17
Add hand-authored <summary> (and <remarks> where useful) directly above
the 38 hand-written 'public event' declarations that were allow-listed as
undocumented in tests/cecil-tests/Documentation.KnownFailures.txt.

Covers events in AddressBook, AudioToolbox, AVFoundation, CoreFoundation,
CoreMidi, CoreServices and ObjCRuntime.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7e858bc2-44aa-4fda-adf1-5ad297d1336a
…on allow-list.

These 38 hand-written events now have XML documentation, so they no longer
need to be allow-listed in the VerifyEveryVisibleMemberIsDocumented test.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7e858bc2-44aa-4fda-adf1-5ad297d1336a
@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne
rolfbjarne marked this pull request as ready for review July 27, 2026 18:09
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner July 27, 2026 18:09
Copilot AI review requested due to automatic review settings July 27, 2026 18:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves API documentation coverage by adding hand-authored XML documentation to previously-undocumented hand-written public event declarations under src/, and then removing the corresponding allow-listed event entries from the cecil documentation known-failures list.

Changes:

  • Added <summary> / <remarks> XML documentation for multiple hand-written public events across several frameworks (AddressBook, AudioToolbox, AVFoundation, CoreFoundation, CoreMidi, CoreServices, ObjCRuntime).
  • Removed the now-documented E: entries for those events from tests/cecil-tests/Documentation.KnownFailures.txt.
  • Added additional clarifying <see cref="..."/> references in new event remarks.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/cecil-tests/Documentation.KnownFailures.txt Removes allow-listed undocumented event entries now covered by new XML docs.
src/ObjCRuntime/Runtime.cs Adds XML docs for runtime events related to assembly registration and exception marshaling.
src/CoreServices/FSEvents.cs Adds XML docs for FSEventStream.Events.
src/CoreMidi/MidiServices.cs Adds XML docs for MIDI client/port/endpoint events.
src/CoreFoundation/CFStream.cs Adds XML docs for CFStream lifecycle/data availability events.
src/CoreFoundation/CFSocket.cs Adds XML docs for CFSocket events (accept/connect/data/read/write).
src/AVFoundation/Events.cs Adds XML docs for AVAudioPlayer/AVAudioSession events.
src/AudioToolbox/AudioQueue.cs Adds XML docs for audio queue buffer completion and input completion events.
src/AudioToolbox/AudioConverter.cs Adds XML docs for AudioConverter.InputData.
src/AddressBook/ABAddressBook.cs Adds XML docs for ABAddressBook.ExternalChange.

Comment thread src/AVFoundation/Events.cs
Comment thread src/AVFoundation/Events.cs
Comment thread src/CoreFoundation/CFSocket.cs Outdated
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

rolfbjarne and others added 2 commits July 28, 2026 14:04
Address review feedback: CFSocketAcceptEventArgs.SocketHandle is internal,
so reference the public RemoteEndPoint property and CreateSocket() method
instead of the inaccessible native handle.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7e858bc2-44aa-4fda-adf1-5ad297d1336a
…hstick

# Conflicts:
#	tests/cecil-tests/Documentation.KnownFailures.txt
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 3c4ee861d18feaf46aff5b5e052c02c59d420652 [PR build]

@rolfbjarne rolfbjarne added the ready-to-review This PR is ready to review/merge. label Jul 28, 2026
@rolfbjarne
rolfbjarne enabled auto-merge (squash) July 28, 2026 13:15
rolfbjarne added a commit that referenced this pull request Jul 28, 2026
…subscribe (#26325)

The `remove` accessor of `AVAudioSession.InputChannelsChanged` incorrectly added the handler again (`+=`) instead of removing it (`-=`), which could lead to duplicate callbacks and leaks.

This was found in a review comment on #26311. A search of the whole `src/` tree confirmed this was the only event accessor with this bug.

🤖 Pull request created by Copilot

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #3c4ee86] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 203 tests passed 🎉

Tests counts

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 19 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 3c4ee861d18feaf46aff5b5e052c02c59d420652 [PR build]

@rolfbjarne
rolfbjarne merged commit 9c46a33 into main Jul 28, 2026
56 checks passed
@rolfbjarne
rolfbjarne deleted the dev/rolf/vigilant-fishstick branch July 28, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot ready-to-review This PR is ready to review/merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants