Replies: 1 comment
-
Definitely seems odd. Would prefer we unify on the form used by the compiler today. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are two ways to get a documentation comment ID for an
ISymbol
:DocumentationCommentId.CreateDeclarationId
/DocumentationCommentId.CreateReferenceId
ISymbol.GetDocumentationCommentId
These two approaches have separate implementations, for example:
roslyn/src/Compilers/Core/Portable/DocumentationCommentId.cs
Lines 418 to 441 in 374ee31
roslyn/src/Compilers/CSharp/Portable/DocumentationComments/DocumentationCommentIDVisitor.PartVisitor.cs
Lines 99 to 123 in 374ee31
Is it necessary to have two separate implementations that do very similar things, or could they be consolidated into one?
Note that even on this small sample, some differences are visible:
MS.CA.IMethodSymbol
, the otherMS.CA.CS.Symbols.MethodSymbol
.int M()
in classC
, one returnsM:C.M~System.Int32
, the other one justM:C.M
. Even if such differences are intentional and should be preserved, consolidating the two implementations could still make sense.Beta Was this translation helpful? Give feedback.
All reactions