1 instantiation of CallHierarchyItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\CallHierarchy\CallHierarchyHelpers.cs (1)
50return new LSP.CallHierarchyItem
23 references to CallHierarchyItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (15)
Handler\CallHierarchy\CallHierarchyHelpers.cs (3)
18public static CallHierarchyResolveData GetResolveData(LSP.CallHierarchyItem item) 26public static async Task<LSP.CallHierarchyItem?> CreateItemAsync( 32public static async Task<LSP.CallHierarchyItem?> CreateItemAsync(
Handler\CallHierarchy\CallHierarchyIncomingCallsHandler.cs (1)
61var fromItem = await CallHierarchyHelpers.CreateItemAsync(result.Item!, solution, locationGroup.Key, cancellationToken).ConfigureAwait(false);
Handler\CallHierarchy\CallHierarchyOutgoingCallsHandler.cs (1)
49var toItem = await CallHierarchyHelpers.CreateItemAsync(result.Item!, solution, cancellationToken).ConfigureAwait(false);
Handler\CallHierarchy\PrepareCallHierarchyHandler.cs (3)
22internal sealed class PrepareCallHierarchyHandler() : ILspServiceDocumentRequestHandler<LSP.CallHierarchyPrepareParams, LSP.CallHierarchyItem[]?> 31public async Task<LSP.CallHierarchyItem[]?> HandleRequestAsync(LSP.CallHierarchyPrepareParams request, RequestContext context, CancellationToken cancellationToken) 47var item = await CallHierarchyHelpers.CreateItemAsync(itemDescriptor, solution, preferredDocumentId: document.Id, cancellationToken).ConfigureAwait(false);
Protocol\Methods.Navigation.cs (1)
126public static readonly LspRequest<CallHierarchyPrepareParams, CallHierarchyItem[]?> PrepareCallHierarchy = new(PrepareCallHierarchyName);
Protocol\Navigation\CallHierarchyIncomingCall.cs (2)
19/// The <see cref="CallHierarchyItem"/> for which to return incoming calls 23public CallHierarchyItem From { get; init; }
Protocol\Navigation\CallHierarchyIncomingCallsParams.cs (1)
24public CallHierarchyItem Item { get; init; }
Protocol\Navigation\CallHierarchyOutgoingCall.cs (2)
19/// The <see cref="CallHierarchyItem"/> for which to return outgoing calls 23public CallHierarchyItem To { get; init; }
Protocol\Navigation\CallHierarchyOutgoingCallsParams.cs (1)
24public CallHierarchyItem Item { get; init; }
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (8)
CallHierarchy\CallHierarchyTests.cs (8)
38var preparedItem = Assert.Single(preparedItems); 70var preparedItem = Assert.Single(await RunPrepareCallHierarchyAsync(testLspServer, testLspServer.GetLocations("caret").Single())); 119var preparedItem = Assert.Single(await RunPrepareCallHierarchyAsync(testLspServer, testLspServer.GetLocations("caret").Single())); 161var preparedItem = Assert.Single(await RunPrepareCallHierarchyAsync(testLspServer, testLspServer.GetLocations("caret").Single())); 179private static async Task<LSP.CallHierarchyItem[]> RunPrepareCallHierarchyAsync(TestLspServer testLspServer, LSP.Location caret) 180=> await testLspServer.ExecuteRequestAsync<LSP.CallHierarchyPrepareParams, LSP.CallHierarchyItem[]?>( 189private static async Task<LSP.CallHierarchyOutgoingCall[]> RunOutgoingCallsAsync(TestLspServer testLspServer, LSP.CallHierarchyItem item) 198private static async Task<LSP.CallHierarchyIncomingCall[]> RunIncomingCallsAsync(TestLspServer testLspServer, LSP.CallHierarchyItem item)