Skip to content

[docs] Document runtime/handle constructors flagged by the documentation test - #26303

Merged
rolfbjarne merged 5 commits into
mainfrom
dev/rolf/ubiquitous-bassoon
Jul 30, 2026
Merged

rolfbjarne merged 5 commits into
mainfrom
dev/rolf/ubiquitous-bassoon

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

The VerifyEveryVisibleMemberIsDocumented test in tests/cecil-tests
flags publicly-visible members that lack an XML documentation entry.

This adds XML docs to 30 hand-written runtime/handle constructors that
were on the documentation known-failures allow-list:

  • 25 (NativeHandle handle) constructors
  • 5 (NSObjectFlag t) constructors

The wording reuses the exact phrasing bgen already emits for the
equivalent generated constructors, keeping the docs consistent across
the codebase. The corresponding 30 entries are removed from
tests/cecil-tests/Documentation.KnownFailures.txt.

The 3 (IntPtr)/(nint) value constructors (NSOperatingSystemVersion,
NIDlTdoaConfiguration, NativeHandle) are intentionally left on the
allow-list: they take an IntPtr as a value, not a runtime handle, so the
generic "called by the runtime" wording would be inaccurate for them.

🤖 Pull request created by Copilot

rolfbjarne and others added 2 commits July 24, 2026 17:18
…ion test

Add XML documentation to 30 publicly-visible runtime constructors (25
NativeHandle handle ctors and 5 NSObjectFlag ctors) in hand-written
compat and runtime source files, reusing the same wording bgen emits for
the equivalent generated constructors. These were allow-listed as known
failures in the documentation test.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 30df9177-40f1-4b07-b930-1c745a01f147
…wn-failures list

The 25 NativeHandle and 5 NSObjectFlag runtime constructors documented in
the previous commit now produce <member> entries, so they no longer belong
in the documentation test's allow-list.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 30df9177-40f1-4b07-b930-1c745a01f147
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

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 addresses VerifyEveryVisibleMemberIsDocumented failures by adding XML documentation for publicly visible runtime/handle constructors (primarily NativeHandle and NSObjectFlag constructors) in hand-written sources, and then removing the corresponding entries from the cecil documentation known-failures allow-list.

Changes:

  • Added standard XML docs to NativeHandle constructors across several compatibility/shim types and ObjCRuntime wrappers.
  • Added standard XML docs to a set of NSObjectFlag constructors (the “skip initialization / allocate only” pattern).
  • Removed the now-documented members from tests/cecil-tests/Documentation.KnownFailures.txt.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/cecil-tests/Documentation.KnownFailures.txt Removes known-failure entries for the constructors that are now documented.
src/PassKit/PKCompat.cs Adds XML docs for NativeHandle constructors on PassKit compat types.
src/ObjCRuntime/Selector.cs Adds XML docs for the NativeHandle selector constructor.
src/ObjCRuntime/Protocol.cs Adds XML docs for the NativeHandle protocol constructor.
src/ObjCRuntime/Class.cs Adds XML docs for the NativeHandle class wrapper constructor.
src/NewsstandKit/Compat.cs Adds XML docs for NativeHandle constructors on NewsstandKit compat types.
src/NetworkExtension/NECompat.cs Adds XML docs for both NSObjectFlag and NativeHandle constructors on a removed API type.
src/HomeKit/HMCompat.cs Adds XML docs for NativeHandle and NSObjectFlag constructors on removed HomeKit Matter types.
src/GameKit/GKCompat.cs Adds XML docs for NativeHandle constructors on removed GameKit types.
src/CloudKit/CKModifyBadgeOperation.cs Adds XML docs for the NativeHandle constructor.
src/CloudKit/CKMarkNotificationsReadOperation.cs Adds XML docs for the NativeHandle constructor.
src/CloudKit/CKFetchNotificationChangesOperation.cs Adds XML docs for the NativeHandle constructor.
src/AudioUnit/AudioUnit.cs Adds XML docs for AURenderEventEnumerator (NativeHandle) constructor.
src/AssetsLibrary/Compat.cs Adds XML docs for NativeHandle constructors on removed AssetsLibrary types.

@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
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

A previous XML-docs search-replace (#22715) accidentally injected a shell
command fragment into the type <summary>. Replace it with a clean,
accurate description.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 30df9177-40f1-4b07-b930-1c745a01f147
@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 16:56
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@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: cb79fc01d23d0ee6d223d13a464b729b556cccde [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #cb79fc0] 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. 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: cb79fc01d23d0ee6d223d13a464b729b556cccde [PR build]

@rolfbjarne
rolfbjarne merged commit 9f24157 into main Jul 30, 2026
57 checks passed
@rolfbjarne
rolfbjarne deleted the dev/rolf/ubiquitous-bassoon branch July 30, 2026 09:21
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