Debian Codegraph @

LspCpp/include/LibLsp/lsp/extention/jdtls/checkHashCodeEqualsStatus.h

raw
1 #pragma once
2
3 #include "LibLsp/JsonRpc/RequestInMessage.h"
4 #include "LibLsp/JsonRpc/lsResponseMessage.h"
5
6 #include <LibLsp/lsp/lsCodeAction.h>
7
8 #include "LibLsp/lsp/CodeActionParams.h"
9
10 struct LspVariableBinding
11 {
12 std::string bindingKey;
13 std::string name;
14 std::string type;
15 bool isField;
16 void swap(LspVariableBinding& arg) noexcept
17 {
18 bindingKey.swap(arg.bindingKey);
19 name.swap(arg.name);
20 type.swap(arg.type);
21 std::swap(isField, arg.isField);
22 }
23 };
24 MAKE_REFLECT_STRUCT(LspVariableBinding, bindingKey, name, type, isField)
25
26 struct CheckHashCodeEqualsResponse
27 {
28 std::string type;
29 std::vector<LspVariableBinding> fields;
30 std::vector<std::string> existingMethods;
31 MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)
32 };
33 MAKE_REFLECT_STRUCT(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)
34
35 DEFINE_REQUEST_RESPONSE_TYPE(
36 java_checkHashCodeEqualsStatus, lsCodeActionParams, CheckHashCodeEqualsResponse, "java/checkHashCodeEqualsStatus"
37 )