1 write to Location
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\References\FindUsagesLSPContext.cs (1)
224Location = location,
17 references to Location
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (12)
References\FindAllReferencesHandlerTests.cs (12)
58AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 100AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 136AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 181AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 226Assert.NotNull(results[0].Location!.DocumentUri); 251Assert.True(results.All(r => r.Location != null)); 346Assert.True(results[0].Location.DocumentUri.ToString().EndsWith("String.cs")); 348AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Skip(1).Select(r => r.Location)); 382Assert.True(results.Any(r => r.Location.DocumentUri.GetRequiredParsedUri().LocalPath.EndsWith("generated_file.cs"))); 420Assert.True(results.Any(r => r.Location.DocumentUri.GetRequiredParsedUri().LocalPath.EndsWith("generated_file.cs"))); 453AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 479var orderedResults = results?.OrderBy(r => r.Location, new OrderLocations()).ToArray();
Microsoft.CodeAnalysis.Remote.Razor (1)
FindAllReferences\RemoteFindAllReferencesService.cs (1)
97? referenceItem.Location
Microsoft.VisualStudio.LanguageServices.Razor (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Navigation\CohostGoToImplementationEndpoint.cs (1)
109RemapVirtualHtmlUri(referenceItem.Location);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFindAllReferencesEndpointTest.cs (1)
326? refItem.Location ?? Assumed.Unreachable<LspLocation>()
Microsoft.VisualStudioCode.RazorExtension (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Navigation\CohostGoToImplementationEndpoint.cs (1)
109RemapVirtualHtmlUri(referenceItem.Location);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFindAllReferencesEndpointTest.cs (1)
326? refItem.Location ?? Assumed.Unreachable<LspLocation>()