Skip to content

Commit e66ed4e

Browse files
committed
Fix inspection result property handling of MissingAttributeInspection
1 parent a065d3d commit e66ed4e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/MissingAttributeInspection.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
3232
{
3333
var description = string.Format(InspectionResults.MissingAttributeInspection, declaration.IdentifierName,
3434
annotation.AnnotationType.ToString());
35-
results.Add(new DeclarationInspectionResult(this, description, declaration, new QualifiedContext(declaration.QualifiedModuleName, annotation.Context), annotation));
35+
36+
var result = new DeclarationInspectionResult(this, description, declaration,
37+
new QualifiedContext(declaration.QualifiedModuleName, annotation.Context));
38+
result.Properties.Annotation = annotation;
39+
40+
results.Add(result);
3641
}
3742
}
3843
}

0 commit comments

Comments
 (0)