1 instantiation of StringTable
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
94
var pool = new ObjectPool<StringTable>(pool => new
StringTable
(pool), Environment.ProcessorCount * 2);
32 references to StringTable
Microsoft.CodeAnalysis.Workspaces (32)
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
18
protected delegate TIndex? IndexReader(
StringTable
stringTable, ObjectReader reader, Checksum? checksum);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (2)
48
var
stringTable = SyntaxTreeIndex.GetStringTable(project);
66
StringTable
stringTable,
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (3)
38
private static readonly ConditionalWeakTable<ProjectState,
StringTable
> s_projectStringTable = new();
335
public static
StringTable
GetStringTable(ProjectState project)
336
=> 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)
108
StringTable
stringTable,
155
public static string? Intern(
StringTable
stringTable, string? name)
191
internal static DeclaredSymbolInfo ReadFrom_ThrowsOnFailure(
StringTable
stringTable, ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (1)
21
public static DeclarationInfo? TryReadFrom(
StringTable
stringTable, ObjectReader reader)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Persistence.cs (2)
16
IChecksummedPersistentStorageService storageService, DocumentKey documentKey, Checksum? checksum,
StringTable
stringTable, CancellationToken cancellationToken)
28
StringTable
stringTable, ObjectReader reader, Checksum? checksum)
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (8)
68
SyntaxNode container, TTypeDeclarationSyntax typeDeclaration,
StringTable
stringTable, string containerDisplayName, string fullyQualifiedContainerName);
70
SyntaxNode container, TEnumDeclarationSyntax enumDeclaration,
StringTable
stringTable, string containerDisplayName, string fullyQualifiedContainerName);
72
SyntaxNode container, TMemberDeclarationSyntax memberDeclaration,
StringTable
stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName);
74
TMemberDeclarationSyntax memberDeclaration,
StringTable
stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName, CancellationToken cancellationToken);
76
SyntaxNode container, TMemberDeclarationSyntax memberDeclaration,
StringTable
stringTable, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, string containerDisplayName, string fullyQualifiedContainerName, CancellationToken cancellationToken);
144
protected static void Intern(
StringTable
stringTable, ArrayBuilder<string> builder)
159
var
stringTable = SyntaxTreeIndex.GetStringTable(project);
177
StringTable
stringTable,
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (10)
84
private StringTable(ObjectPool<
StringTable
>? pool)
89
private readonly ObjectPool<
StringTable
>? _pool;
90
private static readonly ObjectPool<
StringTable
> s_staticPool = CreatePool();
92
private static ObjectPool<
StringTable
> CreatePool()
94
var pool = new ObjectPool<
StringTable
>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
98
public static
StringTable
GetInstance()
128
if (
StringTable
.TextEquals(result, span))
162
if (
StringTable
.TextEquals(result, chars, start, len))
230
if (
StringTable
.TextEquals(result, chars))
672
return Interlocked.Increment(ref
StringTable
.s_sharedRandom);