1 write to _document
Microsoft.CodeAnalysis.Razor.DotNetFormat (1)
ProjectBackedFormattingSnapshot.cs (1)
26_document = document;
8 references to _document
Microsoft.CodeAnalysis.Razor.DotNetFormat (8)
ProjectBackedFormattingSnapshot.cs (8)
35=> _document.FilePath ?? throw new InvalidOperationException("The Razor document does not have a file path."); 43_generatorRunResult = await RazorProjectGeneratorRunResult.TryCreateAsync(_document.Project, cancellationToken).ConfigureAwait(false) 44?? throw new InvalidOperationException($"The Razor source generator was no longer available for project '{_document.Project.Name}'."); 56_generatorRunResult ??= await RazorProjectGeneratorRunResult.TryCreateAsync(_document.Project, cancellationToken).ConfigureAwait(false) 57?? throw new InvalidOperationException($"The Razor source generator was no longer available for project '{_document.Project.Name}'."); 72var updatedDocument = _document.Project.Solution 73.WithAdditionalDocumentText(_document.Id, text) 74.GetAdditionalDocument(_document.Id)