1 write to To
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\CallHierarchy\CallHierarchyOutgoingCallsHandler.cs (1)
56To = toItem,
12 references to To
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (12)
CallHierarchy\CallHierarchyTests.cs (12)
75var constructorCall = Assert.Single(outgoingCalls, static call => call.To.Name == "C.C()"); 76var methodCall = Assert.Single(outgoingCalls, static call => call.To.Name == "C.M()"); 81Assert.Equal(typeLocation.DocumentUri, constructorCall.To.Uri); 82Assert.Equal(0, CompareRange(typeLocation.Range, constructorCall.To.SelectionRange)); 85Assert.Equal(methodLocation.DocumentUri, methodCall.To.Uri); 86Assert.Equal(0, CompareRange(methodLocation.Range, methodCall.To.SelectionRange)); 166var methodCall = Assert.Single(outgoingCalls, static call => call.To.Name == "C.M()"); 167var propertyCall = Assert.Single(outgoingCalls, static call => call.To.Name == "C.P"); 168var fieldCall = Assert.Single(outgoingCalls, static call => call.To.Name == "C.F"); 170Assert.Equal(0, CompareRange(testLspServer.GetLocations("method").Single().Range, methodCall.To.SelectionRange)); 171Assert.Equal(0, CompareRange(testLspServer.GetLocations("property").Single().Range, propertyCall.To.SelectionRange)); 172Assert.Equal(0, CompareRange(testLspServer.GetLocations("field").Single().Range, fieldCall.To.SelectionRange));