Skip to content

Commit 097c8ea

Browse files
Add suggestions from code review
Co-authored-by: Sam Harwell <sam@tunnelvisionlabs.com>
1 parent ca81449 commit 097c8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/SA1648InheritDocMustBeUsedWithInheritingClass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private static void HandleBaseTypeLikeDeclaration(SyntaxNodeAnalysisContext cont
8686

8787
if (documentation.Content.GetFirstXmlElement(XmlCommentHelper.IncludeXmlTag) is XmlEmptyElementSyntax includeElement)
8888
{
89-
var declaration = baseType is null ? context.ContainingSymbol : context.SemanticModel.GetDeclaredSymbol(baseType, context.CancellationToken);
89+
var declaration = context.SemanticModel.GetDeclaredSymbol(context.Node, context.CancellationToken);
9090
if (declaration == null)
9191
{
9292
return;

0 commit comments

Comments
 (0)