1 write to Location
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\References\FindUsagesLSPContext.cs (1)
220Location = location,
10 references to Location
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (10)
References\FindAllReferencesHandlerTests.cs (10)
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[1].Location.DocumentUri.GetRequiredParsedUri().LocalPath.EndsWith("generated_file.cs")); 410var orderedResults = results?.OrderBy(r => r.Location, new OrderLocations()).ToArray();