4 instantiations of SourceGeneratedDocumentIdentity
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\SourceGeneratedDocumentUri.cs (1)
74return new SourceGeneratedDocumentIdentity(
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Workspaces\SourceGeneratedDocumentUriTests.cs (1)
31var identity = new SourceGeneratedDocumentIdentity(generatedDocumentId, HintName,
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (2)
72return new SourceGeneratedDocumentIdentity(documentId, hintName, generatorIdentity, filePath); 98return new SourceGeneratedDocumentIdentity(
67 references to SourceGeneratedDocumentIdentity
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
RazorGeneratedDocumentIdentity.cs (2)
10/// Wrapper for <see cref="SourceGeneratedDocumentIdentity" /> and <see cref="SourceGeneratorIdentity" /> 17internal static RazorGeneratedDocumentIdentity Create(SourceGeneratedDocumentIdentity identity)
Microsoft.CodeAnalysis.Features (1)
Navigation\INavigableItem.cs (1)
51sealed record NavigableDocument(NavigableProject Project, string Name, string? FilePath, IReadOnlyList<string> Folders, DocumentId Id, SourceGeneratedDocumentIdentity? SourceGeneratedDocumentIdentity, Workspace? Workspace)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Extensions\SourceGeneratedDocumentUri.cs (2)
32public static DocumentUri Create(SourceGeneratedDocumentIdentity identity) 51public static SourceGeneratedDocumentIdentity? DeserializeIdentity(Solution solution, Uri documentUri)
Workspaces\LspWorkspaceManager.cs (1)
482ImmutableArray<(SourceGeneratedDocumentIdentity Identity, DateTime Generated, SourceText Text)> sourceGeneratedDocuments,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (14)
Workspaces\LspWorkspaceManagerTests.cs (3)
657var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 678var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 694var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity;
Workspaces\SourceGeneratedDocumentTests.cs (10)
29var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 45var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 91var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 110var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 130var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 159var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 206var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 245var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 331var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity; 357var sourceGeneratedDocumentIdentity = sourceGeneratedDocuments.Single().Identity;
Workspaces\SourceGeneratedDocumentUriTests.cs (1)
31var identity = new SourceGeneratedDocumentIdentity(generatedDocumentId, HintName,
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Host\RemoteWorkspace.SolutionCreator.cs (3)
91var frozenDocuments = new FixedSizeArrayBuilder<(SourceGeneratedDocumentIdentity identity, DateTime generationDateTime, SourceText text)>(count); 98var identity = await _assetProvider.GetAssetAsync<SourceGeneratedDocumentIdentity>(
Microsoft.CodeAnalysis.Workspaces (27)
Serialization\SerializationExtensions.cs (1)
30SourceGeneratedDocumentIdentity => WellKnownSynchronizationKind.SourceGeneratedDocumentIdentity,
Serialization\SerializerService.cs (2)
107((SourceGeneratedDocumentIdentity)value).WriteTo(writer); 249WellKnownSynchronizationKind.SourceGeneratedDocumentIdentity => SourceGeneratedDocumentIdentity.ReadFrom(reader),
SourceGeneration\IRemoteSourceGenerationService.cs (2)
18[property: DataMember(Order = 0)] SourceGeneratedDocumentIdentity DocumentIdentity, 26/// in that project. The information includes the <see cref="SourceGeneratedDocumentIdentity"/> identity
Workspace\Solution\Solution.cs (2)
1633SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText text) 1646internal Solution WithFrozenSourceGeneratedDocuments(ImmutableArray<(SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText text)> documents)
Workspace\Solution\SolutionChanges.cs (1)
88/// Gets changed source generated document ids that were modified with <see cref="Solution.WithFrozenSourceGeneratedDocuments(System.Collections.Immutable.ImmutableArray{ValueTuple{SourceGeneratedDocumentIdentity, DateTime, Text.SourceText}})"/>
Workspace\Solution\SolutionCompilationState.cs (6)
799ImmutableArray<(SourceGeneratedDocumentIdentity, DateTime, SourceText?, SyntaxNode?)>) GetOrdinaryAndSourceGeneratedDocuments() 805using var _2 = ArrayBuilder<(SourceGeneratedDocumentIdentity, DateTime, SourceText?, SyntaxNode?)>.GetInstance(out var sourceGeneratedDocuments); 831ImmutableArray<(SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText? sourceText, SyntaxNode? syntaxNode)> sourceGeneratedDocuments, 1004ImmutableArray<(SourceGeneratedDocumentIdentity, DateTime, SourceText?, SyntaxNode?)>) GetOrdinaryAndSourceGeneratedDocuments() 1010using var _2 = ArrayBuilder<(SourceGeneratedDocumentIdentity, DateTime, SourceText?, SyntaxNode?)>.GetInstance(out var sourceGeneratedDocuments); 1386ImmutableArray<(SourceGeneratedDocumentIdentity documentIdentity, DateTime generationDateTime, SourceText? sourceText, SyntaxNode? syntaxNode)> documents)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
329var identity = SourceGeneratedDocumentIdentity.Generate(
Workspace\Solution\SourceGeneratedDocument.cs (1)
26internal SourceGeneratedDocumentIdentity Identity => State.Identity;
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (3)
19internal readonly record struct SourceGeneratedDocumentIdentity : IEquatable<SourceGeneratedDocumentIdentity> 35public static SourceGeneratedDocumentIdentity Generate(ProjectId projectId, string hintName, ISourceGenerator generator, string filePath, AnalyzerReference analyzerReference) 87internal static SourceGeneratedDocumentIdentity ReadFrom(ObjectReader reader)
Workspace\Solution\SourceGeneratedDocumentState.cs (5)
19public SourceGeneratedDocumentIdentity Identity { get; } 43SourceGeneratedDocumentIdentity documentIdentity, 54SourceGeneratedDocumentIdentity documentIdentity, 82SourceGeneratedDocumentIdentity documentIdentity, 133SourceGeneratedDocumentIdentity documentIdentity,
Workspace\Workspace_Editor.cs (2)
40private readonly Dictionary<DocumentId, (SourceGeneratedDocumentIdentity identity, DateTime generationDateTime)> _openSourceGeneratedDocumentIdentities = []; 286internal bool TryGetOpenSourceGeneratedDocumentIdentity(DocumentId id, out (SourceGeneratedDocumentIdentity identity, DateTime generationDateTime) documentIdentity)
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
SolutionTests\SolutionWithSourceGeneratorTests.cs (11)
872var sourceGeneratedDocumentIdentity = sourceGeneratedDocument.Identity; 883static async Task AssertFrozen(Project project, SourceGeneratedDocumentIdentity identity) 930var sourceGeneratedDocumentIdentity = sourceGeneratedDocument.Identity; 1259var sourceGeneratedDocumentIdentity = sourceGeneratedDocument.Identity; 1271static async Task<SourceGeneratedDocument> FreezeAndGetDocument(Project project, SourceGeneratedDocumentIdentity identity) 1294var sourceGeneratedDocumentIdentity = sourceGeneratedDocument.Identity; 1308static async Task<SourceGeneratedDocument> FreezeAndGetDocument(Project project, SourceGeneratedDocumentIdentity identity) 1331var sourceGeneratedDocumentIdentity = sourceGeneratedDocument.Identity; 1339static async Task<Solution> FreezeDocumentAndGetSolution(Project project, SourceGeneratedDocumentIdentity identity) 1362var sourceGeneratedDocumentIdentity = sourceGeneratedDocument.Identity; 1374static async Task<Solution> FreezeDocumentAndGetSolution(Project project, SourceGeneratedDocumentIdentity identity)
Microsoft.VisualStudio.LanguageServices (5)
Workspace\SourceGeneratedFileManager.cs (5)
73private readonly Dictionary<Guid, SourceGeneratedDocumentIdentity> _directoryInfoOnDiskByContainingDirectoryId = []; 159out SourceGeneratedDocumentIdentity identity) 193if (TryGetGeneratedFileInformation(moniker, out var documentIdentity)) 236private readonly SourceGeneratedDocumentIdentity _documentIdentity; 266public OpenSourceGeneratedFile(SourceGeneratedFileManager fileManager, ITextBuffer textBuffer, SourceGeneratedDocumentIdentity documentIdentity)
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
512var documentIdentity = (await solution.Projects.Single().GetSourceGeneratedDocumentsAsync()).First().Identity;