Skip to content

Commit 57c7e68

Browse files
committed
fixed debug output wording
1 parent edb6ce7 commit 57c7e68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Rubberduck.Parsing/Symbols/IdentifierReferenceResolver.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,10 +1249,14 @@ private Declaration FindProjectScopeDeclaration(string identifierName, Declarati
12491249
var temp = result.Where(item => !_moduleTypes.Contains(item.DeclarationType)
12501250
&& item.DeclarationType == (accessorType == ContextAccessorType.GetValueOrReference ? DeclarationType.PropertyGet : item.DeclarationType))
12511251
.ToList();
1252-
if (temp.Count != 1)
1252+
if (temp.Count > 1)
12531253
{
12541254
Debug.WriteLine("Ambiguous match in '{0}': '{1}'", localScope == null ? "(unknown)" : localScope.IdentifierName, identifierName);
12551255
}
1256+
if (temp.Count == 0)
1257+
{
1258+
Debug.WriteLine("Unknown identifier in '{0}': '{1}'", localScope == null ? "(unknown)" : localScope.IdentifierName, identifierName);
1259+
}
12561260
}
12571261

12581262
return null;

0 commit comments

Comments
 (0)