Skip to content

Commit 1b2f65b

Browse files
committed
Allow null parser state to facilitate easier testing.
1 parent 42eb405 commit 1b2f65b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Rubberduck.Core/Navigation/CodeExplorer/CodeExplorerReferenceFolderViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public void Synchronize(Declaration parent, List<ReferenceModel> updated)
7272
foreach (var reference in updates)
7373
{
7474
reference.IsUsed = reference.IsBuiltIn ||
75+
_finder != null &&
7576
_finder.IsReferenceUsedInProject(Declaration as ProjectDeclaration,
7677
reference.ToReferenceInfo());
7778

@@ -95,6 +96,7 @@ public void UpdateChildren()
9596
}
9697

9798
reference.IsUsed = reference.IsBuiltIn ||
99+
_finder != null &&
98100
_finder.IsReferenceUsedInProject(
99101
library.Parent?.Declaration as ProjectDeclaration,
100102
reference.ToReferenceInfo());

0 commit comments

Comments
 (0)