2 implementations of ICompilationTracker
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SolutionState.CompilationTracker.cs (1)
33
private partial class CompilationTracker :
ICompilationTracker
Workspace\Solution\SolutionState.GeneratedFileReplacingCompilationTracker.cs (1)
22
private class GeneratedFileReplacingCompilationTracker :
ICompilationTracker
32 references to ICompilationTracker
Microsoft.CodeAnalysis.Workspaces (32)
Workspace\Solution\SolutionState.CompilationTracker.cs (2)
108
public
ICompilationTracker
Fork(
166
public
ICompilationTracker
FreezePartialStateWithTree(SolutionState solution, DocumentState docState, SyntaxTree tree, CancellationToken cancellationToken)
Workspace\Solution\SolutionState.cs (19)
52
private ImmutableDictionary<ProjectId,
ICompilationTracker
> _projectIdToTrackerMap;
86
ImmutableDictionary<ProjectId,
ICompilationTracker
> projectIdToTrackerMap,
135
projectIdToTrackerMap: ImmutableDictionary<ProjectId,
ICompilationTracker
>.Empty,
194
ImmutableDictionary<ProjectId,
ICompilationTracker
>? projectIdToTrackerMap = null,
415
private bool TryGetCompilationTracker(ProjectId projectId, [NotNullWhen(returnValue: true)] out
ICompilationTracker
? tracker)
427
private
ICompilationTracker
GetCompilationTracker(ProjectId projectId)
429
if (!_projectIdToTrackerMap.TryGetValue(projectId, out
var
tracker))
1506
if (newTrackerMap.TryGetValue(projectId, out
var
tracker))
1551
private ImmutableDictionary<ProjectId,
ICompilationTracker
> CreateCompilationTrackerMap(ProjectId changedProjectId, ProjectDependencyGraph dependencyGraph)
1553
var builder = ImmutableDictionary.CreateBuilder<ProjectId,
ICompilationTracker
>();
1673
var
tracker = this.GetCompilationTracker(doc.Id.ProjectId);
1674
var
newTracker = tracker.FreezePartialStateWithTree(this, doc, tree, cancellationToken);
1774
return this.TryGetCompilationTracker(projectId, out
var
tracker)
1890
if (!newTrackerMap.TryGetValue(projectId, out
var
existingTracker))
1919
Contract.ThrowIfFalse(newTrackerMap.TryGetValue(projectId, out
var
existingTracker));
1935
if (!projectWithCachedGeneratorState.Solution.State.TryGetCompilationTracker(projectWithCachedGeneratorState.Id, out
var
tracker) ||
1966
var
tracker = this.GetCompilationTracker(projectReference.ProjectId);
1982
ICompilationTracker
tracker, ProjectState fromProject, ProjectReference projectReference, CancellationToken cancellationToken)
2019
if (!_projectIdToTrackerMap.TryGetValue(projectReference.ProjectId, out
var
state))
Workspace\Solution\SolutionState.GeneratedFileReplacingCompilationTracker.cs (5)
18
/// An implementation of <see cref="
ICompilationTracker
"/> that takes a compilation from another compilation tracker and updates it
35
public
ICompilationTracker
UnderlyingTracker { get; }
39
public GeneratedFileReplacingCompilationTracker(
ICompilationTracker
underlyingTracker, SourceGeneratedDocumentState replacementDocumentState)
61
public
ICompilationTracker
Fork(ProjectState newProject, CompilationAndGeneratorDriverTranslationAction? translate)
69
public
ICompilationTracker
FreezePartialStateWithTree(SolutionState solution, DocumentState docState, SyntaxTree tree, CancellationToken cancellationToken)
Workspace\Solution\SolutionState.ICompilationTracker.cs (2)
37
ICompilationTracker
Fork(ProjectState newProject, CompilationAndGeneratorDriverTranslationAction? translate);
38
ICompilationTracker
FreezePartialStateWithTree(SolutionState solution, DocumentState docState, SyntaxTree tree, CancellationToken cancellationToken);
Workspace\Solution\SolutionState.SkeletonReferenceCache.cs (4)
41
/// cref="
ICompilationTracker
"/> forks itself, it will also <see cref="Clone"/> this, allowing previously computed
132
ICompilationTracker
compilationTracker,
147
ICompilationTracker
compilationTracker,
177
ICompilationTracker
compilationTracker,