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 e81decf commit 7d977d5Copy full SHA for 7d977d5
Rubberduck.CodeAnalysis/Inspections/Concrete/ImplicitlyTypedConstInspection.cs
@@ -18,9 +18,8 @@ protected override IEnumerable<IInspectionResult> DoGetInspectionResults()
18
{
19
var declarationFinder = State.DeclarationFinder;
20
21
- var implicitlyTypedConsts = declarationFinder.AllDeclarations
22
- .Where(declaration => declaration.DeclarationType == DeclarationType.Constant
23
- && !declaration.IsTypeSpecified);
+ var implicitlyTypedConsts = declarationFinder.UserDeclarations(DeclarationType.Constant)
+ .Where(declaration => !declaration.IsTypeSpecified);
24
25
return implicitlyTypedConsts.Select(Result);
26
}
0 commit comments