File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
RetailCoder.VBE/Inspections Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,8 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
39
39
&& declaration . IsTypeSpecified ( )
40
40
&& ! ValueTypes . Contains ( declaration . AsTypeName )
41
41
&& declaration . DeclarationType == DeclarationType . Variable
42
- && declaration . ParentScope == declaration . QualifiedName . QualifiedModuleName . ToString ( )
43
- && declaration . ParentDeclaration != null
44
- && declaration . ParentDeclaration . DeclarationType == DeclarationType . Class )
42
+ && declaration . ParentScopeDeclaration != null
43
+ && declaration . ParentScopeDeclaration . DeclarationType . HasFlag ( DeclarationType . Member ) )
45
44
. Select ( issue => new SelfAssignedDeclarationInspectionResult ( this , issue ) ) ;
46
45
}
47
46
}
You can’t perform that action at this time.
0 commit comments