Uh oh!
There was an error while loading. Please reload this page.
Fix some mismatches in <inheritdoc /> - #115653
Conversation
rhuijben
commented
May 16, 2025
Script used |
rhuijben
commented
May 16, 2025
@dotnet-policy-service agree |
There was a problem hiding this comment.
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)" />
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fix some cases identified by a stupid scanner script written after looking at #115651.