19 references to new
Microsoft.CodeAnalysis.Remote.ServiceHub (8)
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 (2)
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 (8)
AbstractAssetProvider.cs (8)
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),
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\AssetPath.cs (3)
87
public static implicit operator AssetPath(ProjectId projectId) =>
new
(AssetPathKind.Projects, projectId);
99
=>
new
(AssetPathKind.SolutionCompilationState | AssetPathKind.SolutionState | AssetPathKind.Projects, projectId);
106
=>
new
(AssetPathKind.Documents, projectId);