4 writes to To
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\CallHierarchy\CallHierarchyOutgoingCallsHandler.cs (1)
58To = toItem,
Microsoft.CodeAnalysis.Remote.Razor (1)
CallHierarchy\RemoteCallHierarchyService.cs (1)
174To = mappedToItem,
Microsoft.VisualStudio.LanguageServices.Razor (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\CallHierarchy\CohostCallHierarchyOutgoingCallsEndpoint.cs (1)
62To = WrapRazorItem(outgoingCall.To),
Microsoft.VisualStudioCode.RazorExtension (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\CallHierarchy\CohostCallHierarchyOutgoingCallsEndpoint.cs (1)
62To = WrapRazorItem(outgoingCall.To),
21 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));
Microsoft.CodeAnalysis.Remote.Razor (1)
CallHierarchy\RemoteCallHierarchyService.cs (1)
165var mappedToItem = await MapItemAsync(context, outgoingCall.To, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.Razor (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\CallHierarchy\CohostCallHierarchyOutgoingCallsEndpoint.cs (1)
62To = WrapRazorItem(outgoingCall.To),
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (3)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostCallHierarchyEndpointTest.cs (3)
300$"Expected {expectedOutgoingNames.Length} outgoing calls, got {outgoingCalls.Length}: {string.Join(", ", Array.ConvertAll(outgoingCalls, static call => call.To.Name))}"); 305var outgoingCall = Assert.Single(outgoingCalls, call => sourceText.GetTextSpan(call.To.SelectionRange) == expectedSelectionSpan); 307VerifyRazorItem(document, sourceText, outgoingCall.To, expectedSelectionSpan);
Microsoft.VisualStudioCode.RazorExtension (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\CallHierarchy\CohostCallHierarchyOutgoingCallsEndpoint.cs (1)
62To = WrapRazorItem(outgoingCall.To),
Microsoft.VisualStudioCode.RazorExtension.UnitTests (3)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostCallHierarchyEndpointTest.cs (3)
300$"Expected {expectedOutgoingNames.Length} outgoing calls, got {outgoingCalls.Length}: {string.Join(", ", Array.ConvertAll(outgoingCalls, static call => call.To.Name))}"); 305var outgoingCall = Assert.Single(outgoingCalls, call => sourceText.GetTextSpan(call.To.SelectionRange) == expectedSelectionSpan); 307VerifyRazorItem(document, sourceText, outgoingCall.To, expectedSelectionSpan);