1 instantiation of StringTable
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
94var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
32 references to StringTable
Microsoft.CodeAnalysis.Workspaces (32)
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)
38private static readonly ConditionalWeakTable<ProjectState, StringTable> s_projectStringTable = new(); 335public static StringTable GetStringTable(ProjectState project) 336=> 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)
108StringTable stringTable, 155public static string? Intern(StringTable stringTable, string? name) 191internal 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 (10)
84private StringTable(ObjectPool<StringTable>? pool) 89private readonly ObjectPool<StringTable>? _pool; 90private static readonly ObjectPool<StringTable> s_staticPool = CreatePool(); 92private static ObjectPool<StringTable> CreatePool() 94var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2); 98public static StringTable GetInstance() 128if (StringTable.TextEquals(result, span)) 162if (StringTable.TextEquals(result, chars, start, len)) 230if (StringTable.TextEquals(result, chars)) 672return Interlocked.Increment(ref StringTable.s_sharedRandom);