| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "LibLsp/JsonRpc/RequestInMessage.h" |
| 4 |
#include "LibLsp/JsonRpc/lsResponseMessage.h" |
| 5 |
#include <string> |
| 6 |
#include "checkHashCodeEqualsStatus.h" |
| 7 |
#include "checkConstructorsStatus.h" |
| 8 |
|
| 9 |
struct LspDelegateEntry |
| 10 |
{ |
| 11 |
LspVariableBinding field; |
| 12 |
LspMethodBinding delegateMethod; |
| 13 |
MAKE_SWAP_METHOD(LspDelegateEntry, field, delegateMethod); |
| 14 |
}; |
| 15 |
MAKE_REFLECT_STRUCT(LspDelegateEntry, field, delegateMethod); |
| 16 |
|
| 17 |
struct GenerateDelegateMethodsParams |
| 18 |
{ |
| 19 |
lsCodeActionParams context; |
| 20 |
std::vector<LspDelegateEntry> delegateEntries; |
| 21 |
MAKE_SWAP_METHOD(GenerateDelegateMethodsParams, context, delegateEntries) |
| 22 |
}; |
| 23 |
MAKE_REFLECT_STRUCT(GenerateDelegateMethodsParams, context, delegateEntries) |
| 24 |
|
| 25 |
DEFINE_REQUEST_RESPONSE_TYPE( |
| 26 |
java_generateDelegateMethods, GenerateDelegateMethodsParams, lsWorkspaceEdit, "java/generateDelegateMethods" |
| 27 |
); |