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