From e1be5c98ab2066a166375b4cbd51da404adf075b Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Mon, 16 May 2016 14:33:10 -0700 Subject: [PATCH] Comment code. --- .../SyntaxFactsService/AbstractSyntaxFactsService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs b/src/Workspaces/Core/Portable/LanguageServices/SyntaxFactsService/AbstractSyntaxFactsService.cs index 1a7178d4548..f634c692ed1 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)); -- GitLab