Repository navigation
[docs] Document runtime/handle constructors flagged by the documentation test - #26303
Conversation
…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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
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
NativeHandleconstructors across several compatibility/shim types and ObjCRuntime wrappers. - Added standard XML docs to a set of
NSObjectFlagconstructors (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. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🚀 [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 macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
The
VerifyEveryVisibleMemberIsDocumentedtest intests/cecil-testsflags 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:
(NativeHandle handle)constructors(NSObjectFlag t)constructorsThe 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