diff --git a/src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs b/src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs index 1a7178d45487f69526faea8bd23199f0ce3da1f3..f634c692ed1fb07a60471d4ba980946f336c768b 100644 --- a/src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs +++ b/src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs @@ -11,6 +11,12 @@ internal abstract class AbstractSyntaxFactsService { private readonly static ObjectPool>> s_aliasMapListPool = new ObjectPool>>(() => new List>()); + + // Note: these names are stored case insensitively. That way the alias mapping works + // properly for VB. It will mean that our inheritance maps may store more links in them + // for C#. However, that's ok. It will be rare in practice, and all it means is that + // we'll end up examining slightly more types (likely 0) when doing operations like + // Find all references. private readonly static ObjectPool> s_aliasMapPool = new ObjectPool>(() => new Dictionary(StringComparer.OrdinalIgnoreCase));