Skip to content

Commit d053d06

Browse files
authored
Partial events and constructors: doc comments (#77200)
1 parent e7ce8c5 commit d053d06

File tree

2 files changed

+1056
-7
lines changed

2 files changed

+1056
-7
lines changed

src/Compilers/CSharp/Portable/Compiler/DocumentationCommentCompiler.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,7 @@ public override void DefaultVisit(Symbol symbol)
258258
bool shouldSkipPartialDefinitionComments = false;
259259
if (symbol.IsPartialDefinition())
260260
{
261-
Symbol? implementationPart = symbol switch
262-
{
263-
MethodSymbol method => method.PartialImplementationPart,
264-
SourcePropertySymbol property => property.PartialImplementationPart,
265-
_ => null
266-
};
267-
261+
Symbol? implementationPart = symbol.GetPartialImplementationPart();
268262
if (implementationPart is not null)
269263
{
270264
Visit(implementationPart);

0 commit comments

Comments
 (0)