2 instantiations of StringTable
Microsoft.CodeAnalysis.Features (1)
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (1)
46
private static StringTable? s_stringTable =
new
();
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
90
var pool = new ObjectPool<StringTable>(pool => new
StringTable
(pool), Environment.ProcessorCount * 2);
44 references to StringTable
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (6)
44
private static ImmutableArray<string> GetInheritanceNames(
StringTable
stringTable, BaseListSyntax? baseList)
159
StringTable
stringTable,
202
StringTable
stringTable,
242
StringTable
stringTable,
263
StringTable
stringTable,
406
StringTable
stringTable,
Microsoft.CodeAnalysis.Features (6)
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (6)
24
using CachedIndexMap = ConcurrentDictionary<(IChecksummedPersistentStorageService service, DocumentKey documentKey,
StringTable
stringTable), AsyncLazy<TopLevelSyntaxTreeIndex?>>;
25
using CachedFilterIndexMap = ConcurrentDictionary<(IChecksummedPersistentStorageService service, DocumentKey documentKey,
StringTable
stringTable), AsyncLazy<NavigateToSearchIndex?>>;
46
private static
StringTable
? s_stringTable = new();
60
[NotNullWhen(true)] out
StringTable
? stringTable)
188
if (!ShouldSearchCachedDocuments(out _, out var cachedFilterIndexMap, out
var
stringTable))
209
if (!ShouldSearchCachedDocuments(out var cachedIndexMap, out _, out
var
stringTable))
Microsoft.CodeAnalysis.Workspaces (32)
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (2)
48
var
stringTable = SyntaxTreeIndex.GetStringTable(project);
66
StringTable
stringTable,
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
18
protected delegate TIndex? IndexReader(
StringTable
stringTable, ObjectReader reader, Checksum? checksum);
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (3)
37
private static readonly ConditionalWeakTable<ProjectState,
StringTable
> s_projectStringTable = new();
360
public static
StringTable
GetStringTable(ProjectState project)
361
=> s_projectStringTable.GetValue(project, static _ =>
StringTable
.GetInstance());
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (2)
20
IChecksummedPersistentStorageService storageService, DocumentKey documentKey, Checksum? checksum,
StringTable
stringTable, CancellationToken cancellationToken)
57
StringTable
stringTable, ObjectReader reader, Checksum? checksum)
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (3)
114
StringTable
stringTable,
161
public static string? Intern(
StringTable
stringTable, string? name)
197
internal static DeclaredSymbolInfo ReadFrom_ThrowsOnFailure(
StringTable
stringTable, ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex_Persistence.cs (2)
16
IChecksummedPersistentStorageService storageService, DocumentKey documentKey, Checksum? checksum,
StringTable
stringTable, CancellationToken cancellationToken)
27
StringTable
stringTable, ObjectReader reader, Checksum? checksum)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Persistence.cs (2)
16
IChecksummedPersistentStorageService storageService, DocumentKey documentKey, Checksum? checksum,
StringTable
stringTable, CancellationToken cancellationToken)
28
StringTable
stringTable, ObjectReader reader, Checksum? checksum)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (1)
21
public static DeclarationInfo? TryReadFrom(
StringTable
stringTable, ObjectReader reader)
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (8)
70
SyntaxNode container, TTypeDeclarationSyntax typeDeclaration,
StringTable
stringTable, string containerDisplayName, string fullyQualifiedContainerName);
72
SyntaxNode container, TEnumDeclarationSyntax enumDeclaration,
StringTable
stringTable, string containerDisplayName, string fullyQualifiedContainerName);
74
SyntaxNode container, TMemberDeclarationSyntax memberDeclaration,
StringTable
stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName);
76
TMemberDeclarationSyntax memberDeclaration,
StringTable
stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName, CancellationToken cancellationToken);
78
SyntaxNode container, TMemberDeclarationSyntax memberDeclaration,
StringTable
stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName, CancellationToken cancellationToken);
153
protected static void Intern(
StringTable
stringTable, ArrayBuilder<string> builder)
168
var
stringTable = SyntaxTreeIndex.GetStringTable(project);
187
StringTable
stringTable,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
80
private StringTable(ObjectPool<
StringTable
>? pool)
85
private readonly ObjectPool<
StringTable
>? _pool;
86
private static readonly ObjectPool<
StringTable
> s_staticPool = CreatePool();
88
private static ObjectPool<
StringTable
> CreatePool()
90
var pool = new ObjectPool<
StringTable
>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
94
public static
StringTable
GetInstance()
175
if (
StringTable
.TextEquals(result, chars))
476
return Interlocked.Increment(ref
StringTable
.s_sharedRandom);