We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c063af commit 7e64a7fCopy full SHA for 7e64a7f
RetailCoder.VBE/Inspections/SelfAssignedDeclarationInspection.cs
@@ -1,6 +1,7 @@
1
using System.Collections.Generic;
2
using System.Linq;
3
using Rubberduck.Parsing.VBA;
4
+using Rubberduck.Parsing.Symbols;
5
6
namespace Rubberduck.Inspections
7
{
@@ -18,7 +19,7 @@ public SelfAssignedDeclarationInspection(RubberduckParserState state)
18
19
public override IEnumerable<CodeInspectionResultBase> GetInspectionResults()
20
21
return UserDeclarations
- .Where(declaration => declaration.IsSelfAssigned)
22
+ .Where(declaration => declaration.IsSelfAssigned && declaration.DeclarationType == DeclarationType.Variable)
23
.Select(issue => new SelfAssignedDeclarationInspectionResult(this, issue));
24
}
25
0 commit comments