| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "LibLsp/JsonRpc/RequestInMessage.h" |
| 4 |
#include "LibLsp/JsonRpc/lsResponseMessage.h" |
| 5 |
|
| 6 |
#include "LibLsp/lsp/symbol.h" |
| 7 |
#include "typeHierarchy.h" |
| 8 |
|
| 9 |
struct ResolveTypeHierarchyItemParams |
| 10 |
{ |
| 11 |
/** |
| 12 |
* The hierarchy item to resolve. |
| 13 |
*/ |
| 14 |
|
| 15 |
TypeHierarchyItem item; |
| 16 |
|
| 17 |
/** |
| 18 |
* The number of hierarchy levels to resolve. {@code 0} indicates no hierarchy level. |
| 19 |
*/ |
| 20 |
optional<int> resolve; |
| 21 |
|
| 22 |
/** |
| 23 |
* The direction of the type hierarchy resolution. |
| 24 |
*/ |
| 25 |
|
| 26 |
TypeHierarchyDirection direction; |
| 27 |
MAKE_SWAP_METHOD(ResolveTypeHierarchyItemParams, item, resolve, direction) |
| 28 |
}; |
| 29 |
MAKE_REFLECT_STRUCT(ResolveTypeHierarchyItemParams, item, resolve, direction) |
| 30 |
DEFINE_REQUEST_RESPONSE_TYPE( |
| 31 |
typeHierarchy_resolve, ResolveTypeHierarchyItemParams, TypeHierarchyItem, "typeHierarchy/resolve" |
| 32 |
) |