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