1 instantiation of SolutionKey
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\PersistentStorage\SolutionKey.cs (1)
25=> new(solutionState.Id, solutionState.FilePath);
93 references to SolutionKey
AnalyzerRunner (2)
IncrementalAnalyzerRunner.cs (1)
46var persistentStorage = await persistentStorageService.GetStorageAsync(SolutionKey.ToSolutionKey(_workspace.CurrentSolution), cancellationToken).ConfigureAwait(false);
PersistentStorageConfiguration.cs (1)
26public string? TryGetStorageLocation(SolutionKey _)
IdeBenchmarks (2)
SQLitePersistentStorageBenchmark.cs (2)
68_storage = _storageService.GetStorageAsync(SolutionKey.ToSolutionKey(solution), CancellationToken.None).AsTask().GetAwaiter().GetResult(); 130public string TryGetStorageLocation(SolutionKey _)
IdeCoreBenchmarks (2)
FindReferencesBenchmarks.cs (1)
87var storage = await storageService.GetStorageAsync(SolutionKey.ToSolutionKey(_workspace.CurrentSolution), CancellationToken.None);
NavigateToBenchmarks.cs (1)
184var storage = await storageService.GetStorageAsync(SolutionKey.ToSolutionKey(_workspace.CurrentSolution), CancellationToken.None);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
119var storage = await persistentService.GetStorageAsync(SolutionKey.ToSolutionKey(previewWorkspace.CurrentSolution), CancellationToken.None);
Microsoft.CodeAnalysis.Features (4)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (4)
65var solutionKey = SolutionKey.ToSolutionKey(project.Solution); 82SolutionKey solutionKey, 105SolutionKey solutionKey,
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
129var storage = await persistenceService.GetStorageAsync(SolutionKey.ToSolutionKey(solution), cancellationToken).ConfigureAwait(false);
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)
41SolutionKey.ToSolutionKey(solution), 58SolutionKey.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)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (21)
PersistentStorage\AbstractPersistentStorageTests.cs (21)
490var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 511var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 622var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 646var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 665var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 670var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 686var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 691var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 707var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 728var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 749var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 773var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 797var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 802var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 821var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 826var storage = await GetStorageFromKeyAsync(solution.Workspace.Services, SolutionKey.ToSolutionKey(solution)); 842var location = configuration.TryGetStorageLocation(SolutionKey.ToSolutionKey(workspace.CurrentSolution)); 1013SolutionKey.ToSolutionKey(solution), configuration, faultInjector, CancellationToken.None); 1018Assert.NotEqual(NoOpPersistentStorage.TestAccessor.GetStorageInstance(SolutionKey.ToSolutionKey(solution)), storage); 1025HostWorkspaceServices services, SolutionKey solutionKey, IPersistentStorageFaultInjector? faultInjector = null) 1056public string? TryGetStorageLocation(SolutionKey solutionKey)