86 references to AssetPathKind
Microsoft.CodeAnalysis.Remote.ServiceHub (32)
Host\AssetProvider.cs (13)
99
AssetPathKind
.SolutionCompilationStateChecksums, solutionChecksum, cancellationToken).ConfigureAwait(false);
103
AssetPathKind
.SolutionStateChecksums, compilationStateChecksums.SolutionState, cancellationToken).ConfigureAwait(false);
108
AssetPathKind
.SolutionSourceGeneratorExecutionVersionMap, compilationStateChecksums.SourceGeneratorExecutionVersionMap, cancellationToken).AsTask());
110
AssetPathKind
.SolutionAttributes, solutionStateChecksum.Attributes, cancellationToken).AsTask());
112
AssetPathKind
.SolutionAnalyzerReferences, solutionStateChecksum.AnalyzerReferences, cancellationToken));
114
AssetPathKind
.SolutionFallbackAnalyzerOptions, solutionStateChecksum.FallbackAnalyzerOptions, cancellationToken).AsTask());
120
AssetPathKind
.ProjectStateChecksums,
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.cs (3)
223
AssetPathKind
.SolutionCompilationStateChecksums, solutionChecksum, cancellationToken).ConfigureAwait(false);
225
AssetPathKind
.SolutionStateChecksums, newSolutionCompilationChecksums.SolutionState, cancellationToken).ConfigureAwait(false);
227
AssetPathKind
.SolutionAttributes, newSolutionChecksums.Attributes, cancellationToken).ConfigureAwait(false);
Host\RemoteWorkspace.SolutionCreator.cs (13)
46
AssetPathKind
.SolutionCompilationStateChecksums, newSolutionChecksum, cancellationToken).ConfigureAwait(false);
48
AssetPathKind
.SolutionStateChecksums, newSolutionCompilationChecksums.SolutionState, cancellationToken).ConfigureAwait(false);
56
AssetPathKind
.SolutionAttributes, newSolutionChecksums.Attributes, cancellationToken).ConfigureAwait(false);
73
AssetPathKind
.SolutionAnalyzerReferences, newSolutionChecksums.AnalyzerReferences, cancellationToken).ConfigureAwait(false);
83
AssetPathKind
.SolutionFallbackAnalyzerOptions, newSolutionChecksums.FallbackAnalyzerOptions, cancellationToken).ConfigureAwait(false));
99
new(
AssetPathKind
.SolutionFrozenSourceGeneratedDocumentIdentities, frozenDocumentId), frozenDocumentIdentity, cancellationToken).ConfigureAwait(false);
102
new(
AssetPathKind
.SolutionFrozenSourceGeneratedDocumentText, frozenDocumentId), frozenDocumentTextChecksum, cancellationToken).ConfigureAwait(false);
116
AssetPathKind
.SolutionSourceGeneratorExecutionVersionMap, newSolutionCompilationChecksums.SourceGeneratorExecutionVersionMap, cancellationToken).ConfigureAwait(false);
215
assetPath:
AssetPathKind
.ProjectStateChecksums, newChecksumsToSync,
248
assetPath:
AssetPathKind
.ProjectAttributes, projectItemChecksums, cancellationToken).ConfigureAwait(false);
255
assetPath:
AssetPathKind
.ProjectCompilationOptions, projectItemChecksums, 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);
Host\TestUtils.cs (3)
119
AssetPathKind
.SolutionCompilationStateChecksums, solutionChecksum, CancellationToken.None).ConfigureAwait(false);
121
AssetPathKind
.SolutionStateChecksums, solutionCompilationChecksums.SolutionState, CancellationToken.None).ConfigureAwait(false);
239
await documentChecksums.FindAsync(
AssetPathKind
.Documents, document.State, Flatten(documentChecksums), callback, map, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.Workspaces (17)
AbstractAssetProvider.cs (17)
34
var solutionCompilationChecksums = await GetAssetAsync<SolutionCompilationStateChecksums>(
AssetPathKind
.SolutionCompilationStateChecksums, solutionChecksum, cancellationToken).ConfigureAwait(false);
35
var solutionChecksums = await GetAssetAsync<SolutionStateChecksums>(
AssetPathKind
.SolutionStateChecksums, solutionCompilationChecksums.SolutionState, cancellationToken).ConfigureAwait(false);
37
var solutionAttributes = await GetAssetAsync<SolutionInfo.SolutionAttributes>(
AssetPathKind
.SolutionAttributes, solutionChecksums.Attributes, cancellationToken).ConfigureAwait(false);
38
await GetAssetAsync<SourceGeneratorExecutionVersionMap>(
AssetPathKind
.SolutionSourceGeneratorExecutionVersionMap, solutionCompilationChecksums.SourceGeneratorExecutionVersionMap, cancellationToken).ConfigureAwait(false);
44
AssetPathKind
.ProjectStateChecksums,
56
AssetPathKind
.SolutionAnalyzerReferences, solutionChecksums.AnalyzerReferences, cancellationToken).ConfigureAwait(false);
60
var fallbackAnalyzerOptions = await GetAssetAsync<ImmutableDictionary<string, StructuredAnalyzerConfigOptions>>(
AssetPathKind
.SolutionFallbackAnalyzerOptions, solutionChecksums.FallbackAnalyzerOptions, cancellationToken).ConfigureAwait(false);
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 (37)
Workspace\Solution\AssetPath.cs (36)
22
public static readonly AssetPath FullLookupForTesting =
AssetPathKind
.SolutionCompilationState |
AssetPathKind
.SolutionState |
AssetPathKind
.Projects |
AssetPathKind
.Documents;
25
private readonly
AssetPathKind
_kind;
39
public AssetPath(
AssetPathKind
kind, ProjectId? projectId = null, DocumentId? documentId = null)
46
public AssetPath(
AssetPathKind
kind, ProjectId? projectId)
51
public AssetPath(
AssetPathKind
kind, DocumentId? documentId)
56
public bool IncludeSolutionCompilationState => (_kind &
AssetPathKind
.SolutionCompilationState) != 0;
57
public bool IncludeSolutionState => (_kind &
AssetPathKind
.SolutionState) != 0;
58
public bool IncludeProjects => (_kind &
AssetPathKind
.Projects) != 0;
59
public bool IncludeDocuments => (_kind &
AssetPathKind
.Documents) != 0;
61
public bool IncludeSolutionCompilationStateChecksums => (_kind &
AssetPathKind
.SolutionCompilationStateChecksums) != 0;
62
public bool IncludeSolutionSourceGeneratorExecutionVersionMap => (_kind &
AssetPathKind
.SolutionSourceGeneratorExecutionVersionMap) != 0;
63
public bool IncludeSolutionFrozenSourceGeneratedDocumentIdentities => (_kind &
AssetPathKind
.SolutionFrozenSourceGeneratedDocumentIdentities) != 0;
64
public bool IncludeSolutionFrozenSourceGeneratedDocumentText => (_kind &
AssetPathKind
.SolutionFrozenSourceGeneratedDocumentText) != 0;
66
public bool IncludeSolutionStateChecksums => (_kind &
AssetPathKind
.SolutionStateChecksums) != 0;
67
public bool IncludeSolutionAttributes => (_kind &
AssetPathKind
.SolutionAttributes) != 0;
68
public bool IncludeSolutionAnalyzerReferences => (_kind &
AssetPathKind
.SolutionAnalyzerReferences) != 0;
69
public bool IncludeSolutionFallbackAnalyzerOptions => (_kind &
AssetPathKind
.SolutionFallbackAnalyzerOptions) != 0;
71
public bool IncludeProjectStateChecksums => (_kind &
AssetPathKind
.ProjectStateChecksums) != 0;
72
public bool IncludeProjectAttributes => (_kind &
AssetPathKind
.ProjectAttributes) != 0;
73
public bool IncludeProjectCompilationOptions => (_kind &
AssetPathKind
.ProjectCompilationOptions) != 0;
74
public bool IncludeProjectParseOptions => (_kind &
AssetPathKind
.ProjectParseOptions) != 0;
75
public bool IncludeProjectProjectReferences => (_kind &
AssetPathKind
.ProjectProjectReferences) != 0;
76
public bool IncludeProjectMetadataReferences => (_kind &
AssetPathKind
.ProjectMetadataReferences) != 0;
77
public bool IncludeProjectAnalyzerReferences => (_kind &
AssetPathKind
.ProjectAnalyzerReferences) != 0;
79
public bool IncludeDocumentAttributes => (_kind &
AssetPathKind
.DocumentAttributes) != 0;
80
public bool IncludeDocumentText => (_kind &
AssetPathKind
.DocumentText) != 0;
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),