Skip to content

Commit

Permalink
fixed debug output wording
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Mar 3, 2016
1 parent edb6ce7 commit 57c7e68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rubberduck.Parsing/Symbols/IdentifierReferenceResolver.cs
Expand Up @@ -1249,10 +1249,14 @@ private Declaration FindProjectScopeDeclaration(string identifierName, Declarati
var temp = result.Where(item => !_moduleTypes.Contains(item.DeclarationType)
&& item.DeclarationType == (accessorType == ContextAccessorType.GetValueOrReference ? DeclarationType.PropertyGet : item.DeclarationType))
.ToList();
if (temp.Count != 1)
if (temp.Count > 1)
{
Debug.WriteLine("Ambiguous match in '{0}': '{1}'", localScope == null ? "(unknown)" : localScope.IdentifierName, identifierName);
}
if (temp.Count == 0)
{
Debug.WriteLine("Unknown identifier in '{0}': '{1}'", localScope == null ? "(unknown)" : localScope.IdentifierName, identifierName);
}
}

return null;
Expand Down

0 comments on commit 57c7e68

Please sign in to comment.