1 write to Document
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\ReferenceLocation.cs (1)
76this.Document = document;
41 references to Document
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
159var groupedLocations = locations.GroupBy(loc => loc.Document);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
ConvertToRecordEngine.cs (1)
462var documentLookup = referenceLocations.ToLookup(refLoc => refLoc.Document.Id);
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertToRecordEngine.cs (1)
462var documentLookup = referenceLocations.ToLookup(refLoc => refLoc.Document.Id);
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
65var referenceByDocument = implReferences.Locations.GroupBy(loc => loc.Document);
Microsoft.CodeAnalysis.Features (23)
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
159var groupedLocations = locations.GroupBy(loc => loc.Document);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
513public Document Document => ReferenceLocation.Document;
FindUsages\IDefinitionsAndReferencesFactory.cs (1)
254var document = referenceLocation.Document;
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (3)
280if (refLocation.Document.Project.Language == document.Project.Language) 291if (!methodCallSites.TryGetValue(refLocation.Document, out var list)) 294methodCallSites.Add(refLocation.Document, list);
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (3)
128var projectToLocations = memberReferenceLocations.ToLookup(loc => loc.location.Document.Project.Id); 189var projectToLocations = memberReferenceLocations.ToLookup(loc => loc.location.Document.Project.Id); 225var documentToLocations = referencesForProject.ToLookup(reference => reference.location.Document.Id);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (4)
181var getReferencesByDocument = getMethodReferences.SelectMany(r => r.Locations).ToLookup(loc => loc.Document); 182var setReferencesByDocument = setMethodReferences.SelectMany(r => r.Locations).ToLookup(loc => loc.Document); 491Contract.ThrowIfFalse(x.Document == y.Document);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (3)
101var referencesByDocument = q.ToLookup(t => t.location.Document); 437Contract.ThrowIfFalse(x.location.Document == y.location.Document);
ValueTracking\ValueTracker.FindReferencesProgress.cs (7)
61var syntaxFacts = location.Document.GetRequiredLanguageService<ISyntaxFactsService>(); 75await AddItemsFromAssignmentAsync(location.Document, node, _operationCollector, cancellationToken).ConfigureAwait(false); 79var semanticModel = await location.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var syntaxFacts = location.Document.GetRequiredLanguageService<ISyntaxFactsService>(); 105var semanticModel = await location.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 142var document = referenceLocation.Document; 165var document = referenceLocation.Document;
Microsoft.CodeAnalysis.Workspaces (14)
FindSymbols\ReferenceLocation.cs (4)
130EqualityComparer<DocumentId>.Default.Equals(this.Document.Id, other.Document.Id) && 141Hash.Combine(this.Location, this.Document.Id.GetHashCode())))); 161=> string.Format("{0}: {1}", this.Document.Name, this.Location);
FindSymbols\ReferenceLocationExtensions.cs (1)
20var documentGroups = referenceLocations.GroupBy(loc => loc.Document);
Remote\RemoteArguments.cs (2)
180referenceLocation.Document.Id, 181SerializableSymbolAndProjectId.Dehydrate(referenceLocation.Alias, referenceLocation.Document, cancellationToken),
Rename\ConflictEngine\ConflictResolver.cs (2)
204foreach (var implicitReferenceLocationsPerLanguage in implicitReferenceLocations.GroupBy(loc => loc.Document.Project.Language)) 208var renameRewriterService = implicitReferenceLocationsPerLanguage.First().Document.Project.Services.GetRequiredService<IRenameRewriterLanguageService>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (5)
235if (location.Document is SourceGeneratedDocument) 261results.Add(new RenameLocation(location, location.Document.Id)); 280results.Add(new RenameLocation(location.Location, location.Document.Id, 294location.Document.Id, 302location.Document.Id,