MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / MakeRequestObject

Function MakeRequestObject

CodeFormatServer/src/LSP/LSPHandle.h:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template<class T>
11std::shared_ptr<T> MakeRequestObject(nlohmann::json json) {
12 auto object = std::make_shared<T>();
13 object->Deserialize(json);
14
15 return object;
16}
17
18class LSPHandle {
19public:

Callers

nothing calls this directly

Calls 1

DeserializeMethod · 0.45

Tested by

no test coverage detected