@@ -777,22 +777,16 @@ private bool IsProjectGlobalDeclaration(Declaration candidateDeclaration, Declar
777
777
{
778
778
return candidateDeclaration . ProjectName == scopingDeclaration . ProjectName
779
779
&& ! ( candidateDeclaration . ParentScopeDeclaration is ClassModuleDeclaration )
780
- && ( IsExplicitPublicInOtherModule ( candidateDeclaration , scopingDeclaration )
781
- || IsImplicitPublicInOtherModule ( candidateDeclaration , scopingDeclaration ) ) ;
780
+ && ( IsPublicInOtherModule ( candidateDeclaration , scopingDeclaration ) ) ;
782
781
}
783
782
784
- private bool IsExplicitPublicInOtherModule ( Declaration candidateDeclaration , Declaration scopingDeclaration )
783
+ private bool IsPublicInOtherModule ( Declaration candidateDeclaration , Declaration scopingDeclaration )
785
784
{
786
785
return candidateDeclaration . ComponentName != scopingDeclaration . ComponentName
787
- && candidateDeclaration . Accessibility == Accessibility . Public ;
788
- }
789
-
790
- private bool IsImplicitPublicInOtherModule ( Declaration candidateDeclaration , Declaration scopingDeclaration )
791
- {
792
- return candidateDeclaration . ComponentName != scopingDeclaration . ComponentName
793
- && candidateDeclaration . Accessibility == Accessibility . Implicit
794
- && ( candidateDeclaration . ParentScopeDeclaration is ProceduralModuleDeclaration )
795
- && ! candidateDeclaration . IdentifierName . StartsWith ( "Option " ) ;
786
+ && ( candidateDeclaration . Accessibility == Accessibility . Public
787
+ || ( candidateDeclaration . Accessibility == Accessibility . Implicit )
788
+ && ( candidateDeclaration . ParentScopeDeclaration is ProceduralModuleDeclaration )
789
+ && ! candidateDeclaration . IdentifierName . StartsWith ( "Option " ) ) ;
796
790
}
797
791
798
792
private bool IsDeclaredWithinMethodOrProperty ( RuleContext procedureContextCandidate )
0 commit comments