26 instantiations of AssetPath
Microsoft.CodeAnalysis.Remote.ServiceHub (10)
Host\AssetProvider.cs (6)
198
tasks.Add(SynchronizeProjectAssetAsync<ProjectInfo.ProjectAttributes>(
new
(AssetPathKind.ProjectAttributes, projectId), static p => p.Info));
199
tasks.Add(SynchronizeProjectAssetAsync<CompilationOptions>(
new
(AssetPathKind.ProjectCompilationOptions, projectId), static p => p.CompilationOptions));
200
tasks.Add(SynchronizeProjectAssetAsync<ParseOptions>(
new
(AssetPathKind.ProjectParseOptions, projectId), static p => p.ParseOptions));
201
tasks.Add(SynchronizeProjectAssetCollectionAsync<ProjectReference>(
new
(AssetPathKind.ProjectProjectReferences, projectId), static p => p.ProjectReferences));
202
tasks.Add(SynchronizeProjectAssetCollectionAsync<MetadataReference>(
new
(AssetPathKind.ProjectMetadataReferences, projectId), static p => p.MetadataReferences));
203
tasks.Add(SynchronizeProjectAssetCollectionAsync<AnalyzerReference>(
new
(AssetPathKind.ProjectAnalyzerReferences, projectId), static p => p.AnalyzerReferences));
Host\RemoteWorkspace.SolutionCreator.cs (4)
99
new
(AssetPathKind.SolutionFrozenSourceGeneratedDocumentIdentities, frozenDocumentId), frozenDocumentIdentity, cancellationToken).ConfigureAwait(false);
102
new
(AssetPathKind.SolutionFrozenSourceGeneratedDocumentText, frozenDocumentId), frozenDocumentTextChecksum, cancellationToken).ConfigureAwait(false);
461
assetPath:
new
(AssetPathKind.DocumentAttributes, project.Id), newChecksumsToSync, cancellationToken).ConfigureAwait(false);
467
assetPath:
new
(AssetPathKind.DocumentText, project.Id), newChecksumsToSync, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.Workspaces (10)
AbstractAssetProvider.cs (10)
82
var attributes = await GetAssetAsync<ProjectInfo.ProjectAttributes>(
new
(AssetPathKind.ProjectAttributes, projectId), projectChecksums.Info, cancellationToken).ConfigureAwait(false);
86
await GetAssetAsync<CompilationOptions>(
new
(AssetPathKind.ProjectCompilationOptions, projectId), projectChecksums.CompilationOptions, cancellationToken).ConfigureAwait(false));
87
var parseOptionsTask = GetAssetAsync<ParseOptions>(
new
(AssetPathKind.ProjectParseOptions, projectId), projectChecksums.ParseOptions, cancellationToken);
89
var projectReferencesTask = this.GetAssetsArrayAsync<ProjectReference>(
new
(AssetPathKind.ProjectProjectReferences, projectId), projectChecksums.ProjectReferences, cancellationToken);
90
var metadataReferencesTask = this.GetAssetsArrayAsync<MetadataReference>(
new
(AssetPathKind.ProjectMetadataReferences, projectId), projectChecksums.MetadataReferences, cancellationToken);
91
var analyzerReferencesTask = this.GetAssetsArrayAsync<AnalyzerReference>(
new
(AssetPathKind.ProjectAnalyzerReferences, projectId), projectChecksums.AnalyzerReferences, cancellationToken);
151
assetPath:
new
(AssetPathKind.DocumentAttributes, projectChecksums.ProjectId),
156
assetPath:
new
(AssetPathKind.DocumentText, projectChecksums.ProjectId),
166
var attributes = await GetAssetAsync<DocumentInfo.DocumentAttributes>(
new
(AssetPathKind.DocumentAttributes, documentId), attributeChecksum, cancellationToken).ConfigureAwait(false);
167
var serializableSourceText = await GetAssetAsync<SerializableSourceText>(
new
(AssetPathKind.DocumentText, documentId), textChecksum, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (6)
Workspace\Solution\AssetPath.cs (5)
82
public static implicit operator AssetPath(AssetPathKind kind) =>
new
(kind);
87
public static implicit operator AssetPath(ProjectId projectId) =>
new
(AssetPathKind.Projects, projectId);
92
public static implicit operator AssetPath(DocumentId documentId) =>
new
(AssetPathKind.Documents, documentId);
99
=>
new
(AssetPathKind.SolutionCompilationState | AssetPathKind.SolutionState | AssetPathKind.Projects, projectId);
106
=>
new
(AssetPathKind.Documents, projectId);
Workspace\Solution\StateChecksums.cs (1)
129
new
AssetPath
(AssetPathKind.DocumentText, assetPath.ProjectId, assetPath.DocumentId),
51 references to AssetPath
Microsoft.CodeAnalysis.Remote.ServiceHub (15)
Host\AssetProvider.cs (6)
38
AssetPath
assetPath, Checksum checksum, CancellationToken cancellationToken)
59
AssetPath
assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken) where TArg : default
219
Task SynchronizeProjectAssetAsync<TAsset>(
AssetPath
assetPath, Func<ProjectStateChecksums, Checksum> getChecksum)
225
Task SynchronizeProjectAssetCollectionAsync<TAsset>(
AssetPath
assetPath, Func<ProjectStateChecksums, ChecksumCollection> getChecksums)
232
AssetPath
assetPath, Action<ProjectStateChecksums, HashSet<Checksum>, TArg> addAllChecksums, TArg arg)
245
AssetPath
assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken)
Host\IAssetSource.cs (1)
20
AssetPath
assetPath,
Host\SolutionAssetSource.cs (1)
20
AssetPath
assetPath,
Host\TestUtils.cs (7)
108
AssetPath
.FullLookupForTesting, checksum, CancellationToken.None).ConfigureAwait(false)));
193
await compilationChecksums.FindAsync(solution.CompilationState, projectCone: null,
AssetPath
.FullLookupForTesting, Flatten(compilationChecksums), callback, map, cancellationToken).ConfigureAwait(false);
198
await compilationChecksums.FindAsync(solution.CompilationState, projectCone: null,
AssetPath
.FullLookupForTesting, Flatten(documentChecksums), callback, map, cancellationToken).ConfigureAwait(false);
203
await solutionChecksums.FindAsync(solution.CompilationState.SolutionState, projectCone: null,
AssetPath
.FullLookupForTesting, Flatten(solutionChecksums), callback, map, cancellationToken).ConfigureAwait(false);
211
await compilationChecksums.FindAsync(solution.CompilationState, projectCone,
AssetPath
.SolutionAndProjectForTesting(projectId), Flatten(compilationChecksums), callback, map, cancellationToken).ConfigureAwait(false);
215
await solutionChecksums.FindAsync(solution.CompilationState.SolutionState, projectCone,
AssetPath
.SolutionAndProjectForTesting(projectId), Flatten(solutionChecksums), callback, map, cancellationToken).ConfigureAwait(false);
234
await projectChecksums.FindAsync(project.State,
AssetPath
.FullLookupForTesting, Flatten(projectChecksums), callback, map, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.Workspaces (16)
AbstractAssetProvider.cs (4)
26
public abstract ValueTask<T> GetAssetAsync<T>(
AssetPath
assetPath, Checksum checksum, CancellationToken cancellationToken);
27
public abstract Task GetAssetsAsync<T, TArg>(
AssetPath
assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken);
180
public Task GetAssetsAsync<TArg>(
AssetPath
assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken)
183
public Task GetAssetsAsync<TArg>(
AssetPath
assetPath, ChecksumCollection checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken)
AbstractAssetProviderExtensions.cs (4)
20
this AbstractAssetProvider assetProvider,
AssetPath
assetPath, HashSet<Checksum> checksums, CancellationToken cancellationToken)
27
this AbstractAssetProvider assetProvider,
AssetPath
assetPath, ChecksumCollection checksums, CancellationToken cancellationToken)
34
this AbstractAssetProvider assetProvider,
AssetPath
assetPath, ChecksumCollection checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken)
50
this AbstractAssetProvider assetProvider,
AssetPath
assetPath, ChecksumCollection checksums, CancellationToken cancellationToken) where T : class
ISolutionAssetProvider.cs (1)
29
PipeWriter pipeWriter, Checksum solutionChecksum,
AssetPath
assetPath, ReadOnlyMemory<Checksum> checksums, CancellationToken cancellationToken);
RemoteHostAssetWriter.cs (2)
54
PipeWriter pipeWriter, Scope scope,
AssetPath
assetPath, ReadOnlyMemory<Checksum> checksums, ISerializerService serializer)
67
private readonly
AssetPath
_assetPath = assetPath;
SolutionAssetProvider.cs (2)
30
AssetPath
assetPath,
44
async ValueTask WriteAssetsSuppressedFlowAsync(PipeWriter pipeWriter, Checksum solutionChecksum,
AssetPath
assetPath, ReadOnlyMemory<Checksum> checksums, CancellationToken cancellationToken)
SolutionAssetStorage.Scope.cs (3)
41
AssetPath
assetPath,
69
AssetPath
assetPath, HashSet<Checksum> remainingChecksumsToFind, Action<Checksum, object, TArg> onAssetFound, TArg arg, CancellationToken cancellationToken)
104
await scope.FindAssetsAsync(
AssetPath
.FullLookupForTesting, checksums, (foundChecksum, foundAsset, _) =>
Microsoft.CodeAnalysis.Workspaces (11)
Workspace\Solution\AssetPath.cs (6)
22
public static readonly
AssetPath
FullLookupForTesting = AssetPathKind.SolutionCompilationState | AssetPathKind.SolutionState | AssetPathKind.Projects | AssetPathKind.Documents;
82
public static implicit operator
AssetPath
(AssetPathKind kind) => new(kind);
87
public static implicit operator
AssetPath
(ProjectId projectId) => new(AssetPathKind.Projects, projectId);
92
public static implicit operator
AssetPath
(DocumentId documentId) => new(AssetPathKind.Documents, documentId);
98
public static
AssetPath
SolutionAndProjectForTesting(ProjectId projectId)
105
public static
AssetPath
DocumentsInProject(ProjectId projectId)
Workspace\Solution\ChecksumCollection.cs (1)
57
AssetPath
assetPath,
Workspace\Solution\StateChecksums.cs (4)
103
AssetPath
assetPath,
257
AssetPath
assetPath,
427
AssetPath
assetPath,
512
AssetPath
assetPath,
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Fakes\SimpleAssetSource.cs (1)
21
Checksum solutionChecksum,
AssetPath
assetPath, ReadOnlyMemory<Checksum> checksums, ISerializerService deserializerService, Action<Checksum, T, TArg> callback, TArg arg, CancellationToken cancellationToken)
Roslyn.VisualStudio.Next.UnitTests (8)
Remote\SerializationValidator.cs (2)
25
public override async ValueTask<T> GetAssetAsync<T>(
AssetPath
assetPath, Checksum checksum, CancellationToken cancellationToken)
28
public override async Task GetAssetsAsync<T, TArg>(
AssetPath
assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken) where TArg : default
Services\AssetProviderTests.cs (6)
54
var stored = await provider.GetAssetAsync<object>(
AssetPath
.FullLookupForTesting, checksum, CancellationToken.None);
58
await provider.GetAssetsAsync<object, VoidResult>(
AssetPath
.FullLookupForTesting, [checksum], (checksum, asset, _) => stored2.Add((checksum, asset)), default, CancellationToken.None);
85
await service.GetAssetsAsync<object>(
AssetPath
.FullLookupForTesting, [.. map.Keys], CancellationToken.None);
175
AssetPath
.FullLookupForTesting, textChecksums, CancellationToken.None);
180
AssetPath
.FullLookupForTesting, textChecksumsReversed, CancellationToken.None);
192
AssetPath
assetPath,