15 references to GetDocument
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
281return (proj.Solution, cl, proj.GetDocument(cl.SyntaxTree)!);
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
348var doc = proj.GetDocument(d.Location.SourceTree);
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
349var doc = proj.GetDocument(d.Location.SourceTree);
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Attribute.cs (1)
64var documentWithAttribute = _project.GetDocument(attributeNode.SyntaxTree);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (2)
344if (project.GetDocument(location.SourceTree) == null) 422return targetTextDocument.Project.GetDocument(diagnostic.Location.SourceTree) == targetTextDocument;
Microsoft.CodeAnalysis.Workspaces (4)
CodeFixes\CodeFix.cs (1)
64var document = Project.GetDocument(diagnostic.Location.SourceTree);
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
41var document = project.GetDocument(location.SourceTree);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
52var documentForLocation = document.Project.GetDocument(syntaxRef.SyntaxTree);
Shared\Extensions\ProjectExtensions.cs (1)
38=> project.GetDocument(tree) ?? throw new InvalidOperationException(WorkspaceExtensionsResources.The_solution_does_not_contain_the_specified_document);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
484var doc = proj.GetDocument(d.Location.SourceTree);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
484var doc = proj.GetDocument(d.Location.SourceTree);
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
484var doc = proj.GetDocument(d.Location.SourceTree);
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
484var doc = proj.GetDocument(d.Location.SourceTree);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
484var doc = proj.GetDocument(d.Location.SourceTree);