You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some xrefs for generics produce invalid triple slash comments #66
The System.Buffers and System.Memory areas of dotnet/runtime have XML docs containing <xref> elements for generic types that have the "`" characters escaped as "%60", and this escaped format is being ported into triple slash comments, but the escaped format is invalid.
Example: System.Buffers.IPinnable ends up with the following:
/// <summary>Provides a mechanism for pinning and unpinning objects to prevent the garbage collector from moving them.</summary>/// <remarks>The <xref:System.Buffers.MemoryManager%601> class implements the `IPinnable` interface.</remarks>publicinterfaceIPinnable
The expected result is:
/// <summary>Provides a mechanism for pinning and unpinning objects to prevent the garbage collector from moving them.</summary>/// <remarks>The <see cref="System.Buffers.MemoryManager{T}" /> class implements the `IPinnable` interface.</remarks>publicinterfaceIPinnable
This allows the xref to match the regex to get recognized as one that needs to potentially be cleaned up, and then the "%60" gets replaced with "`" within the docId, and then the existing logic picks up for replacing "`1" with the "{T}" typeparam syntax. The result is then:
/// <summary>Provides a mechanism for pinning and unpinning objects to prevent the garbage collector from moving them.</summary>/// <remarks>The <see cref="System.Buffers.MemoryManager{T}" /> class implements the `IPinnable` interface.</remarks>publicinterfaceIPinnable
Activity
jeffhandley commentedon Mar 31, 2021
@carlossanlop Feel free to assign this to me. I have a fix in the works that seems to be working...
This allows the
xrefto match the regex to get recognized as one that needs to potentially be cleaned up, and then the "%60" gets replaced with "`" within the docId, and then the existing logic picks up for replacing "`1" with the "{T}" typeparam syntax. The result is then: