9 references to GetRequiredDocument
Microsoft.CodeAnalysis.Workspaces (9)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
148
var document = solution.
GetRequiredDocument
(diagnostic.Location.SourceTree!);
Recommendations\Recommender.cs (1)
27
var document = solution.
GetRequiredDocument
(semanticModel.SyntaxTree);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
67
_documentIdOfRenameSymbolDeclaration = renameLocationSet.Solution.
GetRequiredDocument
(renameSymbolDeclarationLocation.SourceTree!).Id;
Rename\RenameUtilities.cs (1)
91
var documentsOfRenameSymbolDeclaration = symbol.Locations.Where(l => l.IsInSource).Select(l => solution.
GetRequiredDocument
(l.SourceTree!));
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (4)
201
var syntaxFacts = solution.
GetRequiredDocument
(firstLocation.SourceTree!)
234
var document = solution.
GetRequiredDocument
(location.SourceTree);
274
results.Add(new RenameLocation(aliasLocation, solution.
GetRequiredDocument
(aliasLocation.SourceTree).Id));
293
results.Add(new RenameLocation(aliasLocation, solution.
GetRequiredDocument
(aliasLocation.SourceTree).Id));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
243
var oldDocument = context.Solution.
GetRequiredDocument
(destinationTree);