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)
198if (!_codeElementTable.TryGetValue(oldNodeKey, out var codeElement)) 203_codeElementTable.Remove(oldNodeKey); 214if (_codeElementTable.ContainsKey(newNodeKey)) 216_codeElementTable.Remove(newNodeKey); 219_codeElementTable.Add(newNodeKey, codeElement); 227if (_codeElementTable.ContainsKey(nodeKey)) 229_codeElementTable.Remove(nodeKey); 232_codeElementTable.Add(nodeKey, element); 236=> _codeElementTable.Remove(nodeKey); 247if (_codeElementTable.TryGetValue(nodeKey, out var codeElement)) 265_codeElementTable.Remove(nodeKey); 721if (_codeElementTable.TryGetValue(elementAndPath.Item1.NodeKey, out var existingElement)) 793foreach (var element in _codeElementTable.Values) 823if (_codeElementTable.TryGetValue(globalNodeKey.NodeKey, out var element))
CodeModel\FileCodeModel_Events.cs (1)
24_ = _codeElementTable.CleanUpDeadObjectsAsync(State.ProjectCodeModelFactory.Listener).ReportNonFatalErrorAsync();