-
Notifications
You must be signed in to change notification settings - Fork 5k
Fix some mismatches in <inheritdoc /> #115653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Script used
|
@dotnet-policy-service agree |
There was a problem hiding this comment.
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 fixes mismatches in XML documentation references for various intrinsic and numerical types as identified by a scanner script. The proposed changes update tags so that they correctly reference the intended interface or method.
- Updated doc comments on SIMD intrinsic types to reference the corresponding SinCos or ElementCount members.
- Swapped mistaken documentation references for logarithm methods in Vector2/Vector3.
- Corrected inherited documentation for collection synchronization members in Queue and Stack.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 11 comments.
Show a summary per file
File | Description |
---|---|
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs | Changed XML doc from Count to ElementCount. |
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector512.cs | Updated XML docs to refer to SinCos methods for double and float. |
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256.cs | Updated XML docs to refer to SinCos methods for double and float. |
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128.cs | Updated XML docs to refer to SinCos methods for double and float. |
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NFloat.cs | Corrected XML docs for Clamp and SinCosPi. |
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector3.cs | Swapped XML docs for Log and Log2 methods. |
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector2.cs | Swapped XML docs for Log and Log2 methods. |
src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Queue.cs | Updated XML doc to reference ICollection{T}.IsSynchronized. |
src/libraries/System.Collections/src/System/Collections/Generic/Stack.cs | Updated XML doc to reference ICollection{T}.IsSynchronized. |
Comments suppressed due to low confidence (4)
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs:531
- The XML documentation now correctly reflects the property 'ElementCount'. Verify that this change aligns with the interface's intended contract.
/// <inheritdoc cref="ISimdVector{TSelf, T}.ElementCount" />
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector3.cs:751
- The XML reference for the Log method has been updated; ensure this correctly reflects the conversion from Vector3 to Vector4 for logarithm computation.
/// <inheritdoc cref="Vector4.Log(Vector4)" />
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector3.cs:755
- Changing the XML documentation for the Log2 method clarifies the intended reference. Confirm the switch properly distinguishes it from Log.
/// <inheritdoc cref="Vector4.Log2(Vector4)" />
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector2.cs:722
- The XML documentation for the Log2 method now properly references Vector4.Log2. Verify that this change aligns with the intended behavior.
/// <inheritdoc cref="Vector4.Log2(Vector4)" />
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector512.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector512.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NFloat.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NFloat.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Queue.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Collections/src/System/Collections/Generic/Stack.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Fix some cases identified by a stupid scanner script written after looking at #115651.