9 instantiations of RelatedLocation
Microsoft.CodeAnalysis.Workspaces (9)
Rename\ConflictEngine\ConflictResolver.cs (4)
194conflictResolution.AddOrReplaceRelatedLocation(new RelatedLocation( 218conflictResolution.AddRelatedLocation(new RelatedLocation( 311conflictResolution.AddOrReplaceRelatedLocation(new RelatedLocation( 338conflictResolution.AddOrReplaceRelatedLocation(new RelatedLocation(
Rename\ConflictEngine\ConflictResolver.Session.cs (4)
331conflictResolution.AddRelatedLocation(new RelatedLocation( 399new RelatedLocation(originalLocation, 410new RelatedLocation(originalLocation, 421conflictResolution.AddRelatedLocation(new RelatedLocation(
Rename\ConflictEngine\RelatedLocation.cs (1)
51=> new(ConflictCheckSpan, DocumentId, type, IsReference, ComplexifiedTargetSpan);
30 references to RelatedLocation
Microsoft.CodeAnalysis.EditorFeatures (2)
InlineRename\IEditorInlineRenameService.cs (2)
81internal InlineRenameReplacement(RelatedLocation location, TextSpan newSpan) 86private static InlineRenameReplacementKind GetReplacementKind(RelatedLocation location)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Rename\RenameEngineResult.vb (2)
36Private ReadOnly _unassertedRelatedLocations As HashSet(Of RelatedLocation) 46_unassertedRelatedLocations = New HashSet(Of RelatedLocation)(resolution.RelatedLocations)
Microsoft.CodeAnalysis.Workspaces (26)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
85public ConflictLocationInfo(RelatedLocation location) 230var relatedLocation = conflictResolution.RelatedLocations[i];
Rename\ConflictEngine\MutableConflictResolution.cs (4)
27public readonly List<RelatedLocation> RelatedLocations; 63RelatedLocations = new List<RelatedLocation>(); 144internal void AddRelatedLocation(RelatedLocation location) 147internal void AddOrReplaceRelatedLocation(RelatedLocation location)
Rename\ConflictEngine\RelatedLocation.cs (8)
16internal readonly struct RelatedLocation : IEquatable<RelatedLocation> 50public RelatedLocation WithType(RelatedLocationType type) 54=> obj is RelatedLocation location && Equals(location); 56public bool Equals(RelatedLocation other) 76public static bool operator ==(RelatedLocation left, RelatedLocation right) 79public static bool operator !=(RelatedLocation left, RelatedLocation right)
Rename\ConflictResolution.cs (8)
47public readonly ImmutableArray<RelatedLocation> RelatedLocations; 51private readonly ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> _documentToRelatedLocationsMap; 64RelatedLocations = ImmutableArray<RelatedLocation>.Empty; 67_documentToRelatedLocationsMap = ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>>.Empty; 75ImmutableArray<DocumentId> documentIds, ImmutableArray<RelatedLocation> relatedLocations, 78ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> documentToRelatedLocationsMap) 124public ImmutableArray<RelatedLocation> GetRelatedLocationsForDocument(DocumentId documentId) 127: ImmutableArray<RelatedLocation>.Empty;
Rename\IRemoteRenamerService.cs (4)
270public readonly ImmutableArray<RelatedLocation> RelatedLocations; 282public readonly ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> DocumentToRelatedLocationsMap; 288ImmutableArray<RelatedLocation> relatedLocations, 292ImmutableDictionary<DocumentId, ImmutableArray<RelatedLocation>> documentToRelatedLocationsMap)