1 write to _codeElementTable
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\FileCodeModel.cs (1)
88
_codeElementTable
= new CleanableWeakComHandleTable<SyntaxNodeKey, EnvDTE.CodeElement>(state.ThreadingContext);
15 references to _codeElementTable
Microsoft.VisualStudio.LanguageServices.Implementation (15)
CodeModel\FileCodeModel.cs (14)
198
if (!
_codeElementTable
.TryGetValue(oldNodeKey, out var codeElement))
203
_codeElementTable
.Remove(oldNodeKey);
214
if (
_codeElementTable
.ContainsKey(newNodeKey))
216
_codeElementTable
.Remove(newNodeKey);
219
_codeElementTable
.Add(newNodeKey, codeElement);
227
if (
_codeElementTable
.ContainsKey(nodeKey))
229
_codeElementTable
.Remove(nodeKey);
232
_codeElementTable
.Add(nodeKey, element);
236
=>
_codeElementTable
.Remove(nodeKey);
247
if (
_codeElementTable
.TryGetValue(nodeKey, out var codeElement))
265
_codeElementTable
.Remove(nodeKey);
721
if (
_codeElementTable
.TryGetValue(elementAndPath.Item1.NodeKey, out var existingElement))
793
foreach (var element in
_codeElementTable
.Values)
823
if (
_codeElementTable
.TryGetValue(globalNodeKey.NodeKey, out var element))
CodeModel\FileCodeModel_Events.cs (1)
24
_ =
_codeElementTable
.CleanUpDeadObjectsAsync(State.ProjectCodeModelFactory.Listener).ReportNonFatalErrorAsync();