1 write to Document
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\ReferenceLocation.cs (1)
76this.Document = document;
39 references to Document
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
159var groupedLocations = locations.GroupBy(loc => loc.Document);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (2)
25Contract.ThrowIfFalse(x.Document == y.Document);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
479var documentLookup = referenceLocations.ToLookup(refLoc => refLoc.Document);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
479var documentLookup = referenceLocations.ToLookup(refLoc => refLoc.Document);
Microsoft.CodeAnalysis.Features (17)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
511public Document Document => ReferenceLocation.Document;
FindUsages\DefinitionItemFactory.cs (1)
299var document = referenceLocation.Document;
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (3)
295if (refLocation.Document.Project.Language == document.Project.Language) 306if (!methodCallSites.TryGetValue(refLocation.Document, out var list)) 309methodCallSites.Add(refLocation.Document, list);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
173var getReferencesByDocument = getMethodReferences.SelectMany(r => r.Locations).ToLookup(loc => loc.Document);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (3)
96var referencesByDocument = q.ToLookup(t => t.location.Document); 430Contract.ThrowIfFalse(x.location.Document == y.location.Document);
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
159var groupedLocations = locations.GroupBy(loc => loc.Document);
ValueTracking\ValueTracker.FindReferencesProgress.cs (7)
64var syntaxFacts = location.Document.GetRequiredLanguageService<ISyntaxFactsService>(); 78await AddItemsFromAssignmentAsync(location.Document, node, _operationCollector, cancellationToken).ConfigureAwait(false); 82var semanticModel = await location.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 99var syntaxFacts = location.Document.GetRequiredLanguageService<ISyntaxFactsService>(); 108var semanticModel = await location.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 145var document = referenceLocation.Document; 168var document = referenceLocation.Document;
Microsoft.CodeAnalysis.Workspaces (16)
FindSymbols\ReferenceLocation.cs (4)
118EqualityComparer<DocumentId>.Default.Equals(this.Document.Id, other.Document.Id) && 129Hash.Combine(this.Location, this.Document.Id.GetHashCode())))); 149=> string.Format("{0}: {1}", this.Document.Name, this.Location);
FindSymbols\ReferenceLocationExtensions.cs (1)
20var documentGroups = referenceLocations.GroupBy(loc => loc.Document);
Remote\RemoteArguments.cs (2)
163referenceLocation.Document.Id, 164SerializableSymbolAndProjectId.Dehydrate(referenceLocation.Alias, referenceLocation.Document, cancellationToken),
Rename\ConflictEngine\ConflictResolver.cs (2)
202foreach (var implicitReferenceLocationsPerLanguage in implicitReferenceLocations.GroupBy(loc => loc.Document.Project.Language)) 206var renameRewriterService = implicitReferenceLocationsPerLanguage.First().Document.Project.Services.GetRequiredService<IRenameRewriterLanguageService>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (5)
248if (location.Document is SourceGeneratedDocument) 268results.Add(new RenameLocation(location, location.Document.Id)); 287results.Add(new RenameLocation(location.Location, location.Document.Id, 301location.Document.Id, 309location.Document.Id,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (2)
25Contract.ThrowIfFalse(x.Document == y.Document);
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
286if (!location.Document.Id.Equals(document.Id))