9 writes to _table
Microsoft.CodeAnalysis.CSharp (9)
Declarations\DeclarationTable.Builder.cs (9)
25_table = DeclarationTable.Empty; 34builder._table = table; 62_table = DeclarationTable.Empty; 81_table = new DeclarationTable(_table._allOlderRootDeclarations, lastDeclaration, _table._cache); 88_table = new DeclarationTable(_table._allOlderRootDeclarations.Add(_table._latestLazyRootDeclaration), lastDeclaration, cache: null); 102_table = new DeclarationTable(newOlderRootDeclarations, lastDeclaration, cache: null); 122_table = new DeclarationTable(_table._allOlderRootDeclarations, latestLazyRootDeclaration: null, cache: _table._cache); 131_table = new DeclarationTable(_table._allOlderRootDeclarations.Remove(firstDeclaration), _table._latestLazyRootDeclaration, cache: null); 141_table = new DeclarationTable(newOlderRootDeclarations, newLatestLazyRootDeclaration, cache: null);
18 references to _table
Microsoft.CodeAnalysis.CSharp (18)
Declarations\DeclarationTable.Builder.cs (18)
60var result = _table; 79if (_table._latestLazyRootDeclaration == null) 81_table = new DeclarationTable(_table._allOlderRootDeclarations, lastDeclaration, _table._cache); 88_table = new DeclarationTable(_table._allOlderRootDeclarations.Add(_table._latestLazyRootDeclaration), lastDeclaration, cache: null); 95if (_table._latestLazyRootDeclaration != null) 97_addedLazyRootDeclarations.Insert(0, _table._latestLazyRootDeclaration); 100var newOlderRootDeclarations = _table._allOlderRootDeclarations.AddRange(_addedLazyRootDeclarations); 120if (_table._latestLazyRootDeclaration == firstDeclaration) 122_table = new DeclarationTable(_table._allOlderRootDeclarations, latestLazyRootDeclaration: null, cache: _table._cache); 131_table = new DeclarationTable(_table._allOlderRootDeclarations.Remove(firstDeclaration), _table._latestLazyRootDeclaration, cache: null); 136var isLatestRemoved = _table._latestLazyRootDeclaration != null && _removedLazyRootDeclarations.Contains(_table._latestLazyRootDeclaration); 138var newOlderRootDeclarations = _table._allOlderRootDeclarations.RemoveRange(_removedLazyRootDeclarations); 139var newLatestLazyRootDeclaration = isLatestRemoved ? null : _table._latestLazyRootDeclaration;