2 writes to Parent
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\SelectionRanges\SelectionRangeHandler.cs (1)
89Parent = current
Microsoft.CodeAnalysis.Remote.Razor (1)
SelectionRanges\RemoteSelectionRangeService.cs (1)
106Parent = mappedParent
16 references to Parent
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
SelectionRanges\SelectionRangesTests.cs (5)
202for (var current = result; current is not null; current = current.Parent) 237while (current.Parent is not null) 240ContainsOrEquals(current.Parent.Range, current.Range), 241$"Parent range {current.Parent.Range} should contain child range {current.Range}"); 242current = current.Parent;
Microsoft.CodeAnalysis.Remote.Razor (1)
SelectionRanges\RemoteSelectionRangeService.cs (1)
92var mappedParent = MapSelectionRange(csharpDocument, csharpSelectionRange.Parent, originalPosition, isRoot: false);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (5)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSelectionRangeEndpointTest.cs (5)
71for (var current = result; current is not null; current = current.Parent) 98while (current.Parent is not null) 101ContainsOrEquals(current.Parent.Range, current.Range), 102$"Parent range {current.Parent.Range} should contain child range {current.Range}"); 103current = current.Parent;
Microsoft.VisualStudioCode.RazorExtension.UnitTests (5)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSelectionRangeEndpointTest.cs (5)
71for (var current = result; current is not null; current = current.Parent) 98while (current.Parent is not null) 101ContainsOrEquals(current.Parent.Range, current.Range), 102$"Parent range {current.Parent.Range} should contain child range {current.Range}"); 103current = current.Parent;