1 write to _latestLazyRootDeclaration
Microsoft.CodeAnalysis.CSharp (1)
Declarations\DeclarationTable.cs (1)
51_latestLazyRootDeclaration = latestLazyRootDeclaration;
18 references to _latestLazyRootDeclaration
Microsoft.CodeAnalysis.CSharp (18)
Declarations\DeclarationTable.Builder.cs (9)
79if (_table._latestLazyRootDeclaration == null) 88_table = new DeclarationTable(_table._allOlderRootDeclarations.Add(_table._latestLazyRootDeclaration), lastDeclaration, cache: null); 95if (_table._latestLazyRootDeclaration != null) 97_addedLazyRootDeclarations.Insert(0, _table._latestLazyRootDeclaration); 120if (_table._latestLazyRootDeclaration == firstDeclaration) 131_table = new DeclarationTable(_table._allOlderRootDeclarations.Remove(firstDeclaration), _table._latestLazyRootDeclaration, cache: null); 136var isLatestRemoved = _table._latestLazyRootDeclaration != null && _removedLazyRootDeclarations.Contains(_table._latestLazyRootDeclaration); 139var newLatestLazyRootDeclaration = isLatestRemoved ? null : _table._latestLazyRootDeclaration;
Declarations\DeclarationTable.cs (9)
88if (_latestLazyRootDeclaration == null) 94return MergedNamespaceDeclaration.Create(_latestLazyRootDeclaration.Value); 101builder.Add(_latestLazyRootDeclaration.Value); 133if (_latestLazyRootDeclaration == null) 139return UnionCollection<string>.Create(cachedTypeNames, GetTypeNames(_latestLazyRootDeclaration.Value)); 147if (_latestLazyRootDeclaration == null) 153return UnionCollection<string>.Create(cachedNamespaceNames, GetNamespaceNames(_latestLazyRootDeclaration.Value)); 161if (_latestLazyRootDeclaration == null) 167return UnionCollection<ReferenceDirective>.Create(cachedReferenceDirectives, _latestLazyRootDeclaration.Value.ReferenceDirectives);