4 instantiations of SourceGeneratorExecutionVersion
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\SolutionCompilationState.cs (1)
349
versionMapBuilder.Add(projectInfo.Id,
new
());
Workspace\Solution\SourceGeneratorExecutionVersion.cs (3)
33
=>
new
(MajorVersion + 1, MinorVersion: 0);
36
=>
new
(MajorVersion, MinorVersion + 1);
45
=>
new
(reader.ReadInt32(), reader.ReadInt32());
23 references to SourceGeneratorExecutionVersion
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\SourceGenerators\SourceGeneratedDocumentCache.cs (1)
23
var
executionVersion = state.Document.Project.Solution.GetSourceGeneratorExecutionVersion(state.Document.Project.Id);
Microsoft.CodeAnalysis.Workspaces (22)
Diagnostics\Extensions.cs (2)
462
/// This checksum is also affected by the <see cref="
SourceGeneratorExecutionVersion
"/> for this project.
486
if (solution.CompilationState.SourceGeneratorExecutionVersionMap.Map.TryGetValue(project.Id, out
var
executionVersion))
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (1)
30
/// cref="
SourceGeneratorExecutionVersion
"/> for the project changes, we'll still have the same project state.
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
116
var projectIdToSourceGenerationVersion = ImmutableSortedDictionary.CreateBuilder<ProjectId,
SourceGeneratorExecutionVersion
>();
122
var
currentVersion = solution.GetSourceGeneratorExecutionVersion(projectId);
Workspace\Solution\Solution.cs (1)
1906
internal
SourceGeneratorExecutionVersion
GetSourceGeneratorExecutionVersion(ProjectId projectId)
Workspace\Solution\SolutionCompilationState.cs (2)
306
/// Map from each project to the <see cref="
SourceGeneratorExecutionVersion
"/> it is currently at. Loosely, the
1512
var
currentExecutionVersion = versionMapBuilder[projectId];
Workspace\Solution\SourceGeneratorExecutionVersion.cs (11)
32
public
SourceGeneratorExecutionVersion
IncrementMajorVersion()
35
public
SourceGeneratorExecutionVersion
IncrementMinorVersion()
44
public static
SourceGeneratorExecutionVersion
ReadFrom(ObjectReader reader)
54
/// Helper construct to allow a mapping from <see cref="ProjectId"/>s to <see cref="
SourceGeneratorExecutionVersion
"/>.
57
internal sealed class SourceGeneratorExecutionVersionMap(ImmutableSortedDictionary<ProjectId,
SourceGeneratorExecutionVersion
> map)
61
public ImmutableSortedDictionary<ProjectId,
SourceGeneratorExecutionVersion
> Map { get; } = map;
64
: this(ImmutableSortedDictionary<ProjectId,
SourceGeneratorExecutionVersion
>.Empty)
68
public
SourceGeneratorExecutionVersion
this[ProjectId projectId] => Map[projectId];
97
var builder = ImmutableSortedDictionary.CreateBuilder<ProjectId,
SourceGeneratorExecutionVersion
>();
101
var
version =
SourceGeneratorExecutionVersion
.ReadFrom(reader);
Workspace\Workspace_SourceGeneration.cs (3)
77
var result = ImmutableSortedDictionary.CreateBuilder<ProjectId,
SourceGeneratorExecutionVersion
>();
133
static
SourceGeneratorExecutionVersion
Increment(
SourceGeneratorExecutionVersion
version, bool major)