5 writes to Range
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Highlights\DocumentHighlightHandler.cs (2)
86Range = ProtocolConversions.TextSpanToRange(highlight, text) 108Range = ProtocolConversions.TextSpanToRange(h.TextSpan, text),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Highlights\DocumentHighlightTests.cs (1)
189Range = location.Range
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Protocol\DocumentHighlight\RemoteDocumentHighlight.cs (1)
20Range = highlight.Span.ToRange(),
Microsoft.CodeAnalysis.Remote.Razor (1)
DocumentHighlight\RemoteDocumentHighlightService.cs (1)
79highlight.Range = mappedRange.ToRange();
12 references to Range
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (8)
Highlights\DocumentHighlightTests.cs (8)
74Assert.Equal(expectedLocations[0].Range, results[0].Range); 75Assert.Equal(expectedLocations[1].Range, results[1].Range); 76Assert.Equal(expectedLocations[2].Range, results[2].Range); 119Assert.Equal(expectedLocations[0].Range, results[0].Range); 120Assert.Equal(expectedLocations[1].Range, results[1].Range); 148Assert.Equal(expectedLocations[0].Range, results[0].Range); 178var compareRange = CompareRange(h1.Range, h2.Range);
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Protocol\DocumentHighlight\RemoteDocumentHighlight.cs (1)
15=> new(highlight.Range.ToLinePositionSpan(), highlight.Kind);
Microsoft.CodeAnalysis.Remote.Razor (1)
DocumentHighlight\RemoteDocumentHighlightService.cs (1)
77if (DocumentMappingService.TryMapToRazorDocumentRange(csharpDocument, highlight.Range.ToLinePositionSpan(), out var mappedRange))
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentHighlightEndpointTest.cs (1)
173var actual = TestFileMarkupParser.CreateTestFile(source, cursorPosition, result.SelectAsArray(h => inputText.GetTextSpan(h.Range)));
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentHighlightEndpointTest.cs (1)
173var actual = TestFileMarkupParser.CreateTestFile(source, cursorPosition, result.SelectAsArray(h => inputText.GetTextSpan(h.Range)));