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()
3939 && declaration . IsTypeSpecified ( )
4040 && ! ValueTypes . Contains ( declaration . AsTypeName )
4141 && 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 ) )
4544 . Select ( issue => new SelfAssignedDeclarationInspectionResult ( this , issue ) ) ;
4645 }
4746 }
You can’t perform that action at this time.
0 commit comments