Skip to content

Commit d2c116e

Browse files
committed
Use correct inspection type
1 parent c0f63ef commit d2c116e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/ImplicitlyTypedConstInspection.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,10 @@ private IInspectionResult Result(Declaration declaration)
2929
{
3030
var description = string.Format(InspectionResults.ImplicitlyTypedConstInspection, declaration.IdentifierName);
3131

32-
return new IdentifierReferenceInspectionResult(
32+
return new DeclarationInspectionResult(
3333
this,
3434
description,
35-
State,
36-
new IdentifierReference(
37-
declaration.QualifiedModuleName,
38-
declaration.ParentScopeDeclaration,
39-
declaration.ParentDeclaration,
40-
declaration.IdentifierName,
41-
declaration.Selection,
42-
declaration.Context,
43-
declaration));
35+
declaration);
4436
}
4537
}
4638
}

0 commit comments

Comments
 (0)