1 instantiation of SolutionKey
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\PersistentStorage\SolutionKey.cs (1)
25=> new(solutionState.Id, solutionState.FilePath);
61 references to SolutionKey
Microsoft.CodeAnalysis.Features (1)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
65var solutionKey = SolutionKey.ToSolutionKey(project.Solution);
Microsoft.CodeAnalysis.Workspaces (60)
Classification\SemanticClassificationCacheUtilities.cs (1)
23var projectKey = new ProjectKey(SolutionKey.ToSolutionKey(project.Solution), project.Id, project.FilePath, project.Name, Checksum.Null);
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (2)
77var solutionKey = SolutionKey.ToSolutionKey(project.Solution);
FindSymbols\Shared\AbstractSyntaxIndex.cs (4)
30SolutionKey solutionKey, ProjectState project, DocumentState document, IndexReader read, IndexCreator create, CancellationToken cancellationToken) 37protected static ValueTask<TIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, IndexReader read, IndexCreator create, CancellationToken cancellationToken) 42SolutionKey solutionKey, 80SolutionKey solutionKey,
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (4)
38SolutionKey solutionKey, 134SolutionKey solutionKey, 147SolutionKey.ToSolutionKey(document.Project.Solution), 155SolutionKey solutionKey,
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (5)
110SolutionKey.ToSolutionKey(solution), 126SolutionKey solutionKey, 145SolutionKey solutionKey, 170SolutionKey solutionKey, 243SolutionKey.ToSolutionKey(solution),
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (2)
30SolutionKey solutionKey, 83SolutionKey solutionKey,
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (2)
40SolutionKey.ToSolutionKey(solution), 57SolutionKey.ToSolutionKey(project.Solution),
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (6)
39=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken); 41public static ValueTask<SyntaxTreeIndex> GetRequiredIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, CancellationToken cancellationToken) 45=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken); 47public static ValueTask<SyntaxTreeIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, CancellationToken cancellationToken) 51=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken); 53public static ValueTask<SyntaxTreeIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, bool loadOnly, CancellationToken cancellationToken)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (6)
47=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken); 49public static ValueTask<TopLevelSyntaxTreeIndex> GetRequiredIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, CancellationToken cancellationToken) 53=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, cancellationToken); 55public static ValueTask<TopLevelSyntaxTreeIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, CancellationToken cancellationToken) 59=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.State, loadOnly, cancellationToken); 61public static ValueTask<TopLevelSyntaxTreeIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, bool loadOnly, CancellationToken cancellationToken)
Storage\AbstractPersistentStorageService.cs (5)
34protected abstract ValueTask<IChecksummedPersistentStorage?> TryOpenDatabaseAsync(SolutionKey solutionKey, string workingFolderPath, string databaseFilePath, IPersistentStorageFaultInjector? faultInjector, CancellationToken cancellationToken); 36public ValueTask<IChecksummedPersistentStorage> GetStorageAsync(SolutionKey solutionKey, CancellationToken cancellationToken) 40SolutionKey solutionKey, 68SolutionKey solutionKey, string workingFolderPath, IPersistentStorageFaultInjector? faultInjector, CancellationToken cancellationToken) 84SolutionKey solutionKey,
Storage\LegacyPersistentStorageService.cs (1)
37=> NoOpPersistentStorage.GetOrThrow(SolutionKey.ToSolutionKey(solution), throwOnFailure: false);
Storage\SQLite\v2\SQLitePersistentStorage.cs (2)
93SolutionKey solutionKey, 121SolutionKey solutionKey,
Storage\SQLite\v2\SQLitePersistentStorage_SolutionSerialization.cs (2)
33private sealed class SolutionAccessor(SQLitePersistentStorage storage) : Accessor<SolutionKey, SolutionPrimaryKey>(Table.Solution, 38protected override SolutionPrimaryKey? TryGetDatabaseKey(SqlConnection connection, SolutionKey key, bool allowWrite)
Storage\SQLite\v2\SQLitePersistentStorageService.cs (1)
68SolutionKey solutionKey, string workingFolderPath, string databaseFilePath, IPersistentStorageFaultInjector? faultInjector, CancellationToken cancellationToken)
Workspace\Host\PersistentStorage\AbstractPersistentStorage.cs (2)
16public SolutionKey SolutionKey { get; } 26SolutionKey solutionKey,
Workspace\Host\PersistentStorage\IChecksummedPersistentStorage.cs (1)
17SolutionKey SolutionKey { get; }
Workspace\Host\PersistentStorage\IChecksummedPersistentStorageService.cs (1)
13ValueTask<IChecksummedPersistentStorage> GetStorageAsync(SolutionKey solutionKey, CancellationToken cancellationToken);
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (2)
28string? TryGetStorageLocation(SolutionKey solutionKey); 65public string? TryGetStorageLocation(SolutionKey solutionKey)
Workspace\Host\PersistentStorage\NoOpPersistentStorage.cs (4)
14internal sealed class NoOpPersistentStorage(SolutionKey solutionKey) : IChecksummedPersistentStorage 16public SolutionKey SolutionKey => solutionKey; 18public static IChecksummedPersistentStorage GetOrThrow(SolutionKey solutionKey, bool throwOnFailure) 88public static IChecksummedPersistentStorage GetStorageInstance(SolutionKey solutionKey) => new NoOpPersistentStorage(solutionKey);
Workspace\Host\PersistentStorage\NoOpPersistentStorageService.cs (1)
25public ValueTask<IChecksummedPersistentStorage> GetStorageAsync(SolutionKey solutionKey, CancellationToken cancellationToken)
Workspace\Host\PersistentStorage\ProjectKey.cs (4)
17internal readonly struct ProjectKey(SolutionKey solution, ProjectId id, string? filePath, string name, Checksum parseOptionsChecksum) 20public readonly SolutionKey Solution = solution; 38=> ToProjectKey(SolutionKey.ToSolutionKey(solutionState), projectState); 40public static ProjectKey ToProjectKey(SolutionKey solutionKey, ProjectState projectState)
Workspace\Host\PersistentStorage\SolutionKey.cs (2)
21public static SolutionKey ToSolutionKey(Solution solution) 24public static SolutionKey ToSolutionKey(SolutionState solutionState)