17 references to GetDocument
Microsoft.CodeAnalysis.Features (3)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (1)
71var constructorDocument = _document.Project.GetDocument(syntaxTree);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Attribute.cs (1)
62var documentWithAttribute = _project.GetDocument(attributeNode.SyntaxTree);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
265var navigateDocument = navigateProject.GetDocument(navigateLocation.SourceTree);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (2)
332if (project.GetDocument(location.SourceTree) == null) 410return targetTextDocument.Project.GetDocument(diagnostic.Location.SourceTree) == targetTextDocument;
Microsoft.CodeAnalysis.Workspaces (6)
CodeFixes\CodeFix.cs (1)
64var document = Project.GetDocument(diagnostic.Location.SourceTree);
Diagnostics\DiagnosticAnalysisResultBuilder.cs (2)
176AddDocumentDiagnostic(ref lazyLocals, Project.GetDocument(diagnosticTree), diagnostic); 181AddDocumentDiagnostic(ref _lazyNonLocals, Project.GetDocument(diagnosticTree), diagnostic);
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
38var document = project.GetDocument(location.SourceTree);
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
53var 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.CodeAnalysis.Workspaces.UnitTests (4)
SolutionTests\SolutionWithSourceGeneratorTests.cs (4)
265Assert.IsType<SourceGeneratedDocument>(project.GetDocument(generatedSyntaxTree)); 315Assert.IsType<SourceGeneratedDocument>(project.GetDocument(tree)); 430var generatedDocument = Assert.IsType<SourceGeneratedDocument>(project.GetDocument(syntaxTree)); 453var generatedDocument = Assert.IsType<SourceGeneratedDocument>(project.GetDocument(syntaxTree));
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\AbstractCodeModelService.cs (1)
596var document = project.GetDocument(location.SourceTree);
RoslynVisualStudioWorkspace.cs (1)
164var document = project.GetDocument(tree);