4 instantiations of StringTable
Microsoft.CodeAnalysis.Features (1)
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (1)
39private static StringTable? s_stringTable = new();
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
90var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
882var index2 = await SyntaxTreeIndex.LoadAsync(_storageService!, DocumentKey.ToDocumentKey(document), checksum: null, new StringTable(), default); 902var index2 = await TopLevelSyntaxTreeIndex.LoadAsync(_storageService!, DocumentKey.ToDocumentKey(document), checksum: null, new StringTable(), default);
40 references to StringTable
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (6)
48private static ImmutableArray<string> GetInheritanceNames(StringTable stringTable, BaseListSyntax baseList) 165StringTable stringTable, 208StringTable stringTable, 248StringTable stringTable, 269StringTable stringTable, 412StringTable stringTable,
Microsoft.CodeAnalysis.Features (4)
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (4)
24using CachedIndexMap = ConcurrentDictionary<(IChecksummedPersistentStorageService service, DocumentKey documentKey, StringTable stringTable), AsyncLazy<TopLevelSyntaxTreeIndex?>>; 39private static StringTable? s_stringTable = new(); 51[NotNullWhen(true)] out StringTable? stringTable) 170if (!ShouldSearchCachedDocuments(out var cachedIndexMap, out var stringTable))
Microsoft.CodeAnalysis.Workspaces (30)
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
18protected delegate TIndex? IndexReader(StringTable stringTable, ObjectReader reader, Checksum? checksum);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (2)
48var stringTable = SyntaxTreeIndex.GetStringTable(project); 66StringTable stringTable,
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (3)
37private static readonly ConditionalWeakTable<ProjectState, StringTable> s_projectStringTable = new(); 353public static StringTable GetStringTable(ProjectState project) 354=> s_projectStringTable.GetValue(project, static _ => StringTable.GetInstance());
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (2)
20IChecksummedPersistentStorageService storageService, DocumentKey documentKey, Checksum? checksum, StringTable stringTable, CancellationToken cancellationToken) 57StringTable stringTable, ObjectReader reader, Checksum? checksum)
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (3)
110StringTable stringTable, 157public static string? Intern(StringTable stringTable, string? name) 193internal static DeclaredSymbolInfo ReadFrom_ThrowsOnFailure(StringTable stringTable, ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (1)
21public static DeclarationInfo? TryReadFrom(StringTable stringTable, ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Persistence.cs (2)
16IChecksummedPersistentStorageService storageService, DocumentKey documentKey, Checksum? checksum, StringTable stringTable, CancellationToken cancellationToken) 28StringTable stringTable, ObjectReader reader, Checksum? checksum)
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (8)
68SyntaxNode container, TTypeDeclarationSyntax typeDeclaration, StringTable stringTable, string containerDisplayName, string fullyQualifiedContainerName); 70SyntaxNode container, TEnumDeclarationSyntax enumDeclaration, StringTable stringTable, string containerDisplayName, string fullyQualifiedContainerName); 72SyntaxNode container, TMemberDeclarationSyntax memberDeclaration, StringTable stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName); 74TMemberDeclarationSyntax memberDeclaration, StringTable stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName, CancellationToken cancellationToken); 76SyntaxNode container, TMemberDeclarationSyntax memberDeclaration, StringTable stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName, CancellationToken cancellationToken); 144protected static void Intern(StringTable stringTable, ArrayBuilder<string> builder) 159var stringTable = SyntaxTreeIndex.GetStringTable(project); 177StringTable stringTable,
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
80private StringTable(ObjectPool<StringTable>? pool) 85private readonly ObjectPool<StringTable>? _pool; 86private static readonly ObjectPool<StringTable> s_staticPool = CreatePool(); 88private static ObjectPool<StringTable> CreatePool() 90var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2); 94public static StringTable GetInstance() 175if (StringTable.TextEquals(result, chars)) 476return Interlocked.Increment(ref StringTable.s_sharedRandom);