dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.05k stars 4.04k forks source link

GetDocumentationCommentXml sometimes has no root element #56733

Open carlreinke opened 3 years ago

carlreinke commented 3 years ago

ISymbol.GetDocumentationCommentXml(...) sometimes returns XML with a root element and sometimes without:

Expected behavior: XML returned from ISymbol.GetDocumentationCommentXml(...), if not empty, has a root element (i.e., XmlDocumentationProvider returns the <member> element rather than its inner XML).

Actual behavior: XML returned from ISymbol.GetDocumentationCommentXml(...) sometimes has no root element.

mavasani commented 2 years ago

Compiler API issue, moving to the compiler team.