File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
Rubberduck.Parsing/Symbols Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -750,21 +750,16 @@ private ConcurrentBag<Declaration> FindEventHandlers(IEnumerable<Declaration> de
750
750
751
751
public IEnumerable < Declaration > GetDeclarationsAccessibleToScope ( Declaration target , IEnumerable < Declaration > declarations )
752
752
{
753
-
754
- object obj = new object ( ) ;
755
- lock ( obj )
756
- {
757
- if ( target == null ) { return Enumerable . Empty < Declaration > ( ) ; }
758
-
759
- return declarations
760
- . Where ( candidateDeclaration =>
761
- (
762
- IsDeclarationInTheSameProcedure ( candidateDeclaration , target )
763
- || IsDeclarationChildOfTheScope ( candidateDeclaration , target )
764
- || IsModuleLevelDeclarationOfTheScope ( candidateDeclaration , target )
765
- || IsProjectGlobalDeclaration ( candidateDeclaration , target )
766
- ) ) . Distinct ( ) ;
767
- }
753
+ if ( target == null ) { return Enumerable . Empty < Declaration > ( ) ; }
754
+
755
+ return declarations
756
+ . Where ( candidateDeclaration =>
757
+ (
758
+ IsDeclarationInTheSameProcedure ( candidateDeclaration , target )
759
+ || IsDeclarationChildOfTheScope ( candidateDeclaration , target )
760
+ || IsModuleLevelDeclarationOfTheScope ( candidateDeclaration , target )
761
+ || IsProjectGlobalDeclaration ( candidateDeclaration , target )
762
+ ) ) . Distinct ( ) ;
768
763
}
769
764
770
765
private bool IsDeclarationInTheSameProcedure ( Declaration candidateDeclaration , Declaration scopingDeclaration )
You can’t perform that action at this time.
0 commit comments