nixd
|
#include <LSPServer.h>
Public Member Functions | |
LSPServer (std::unique_ptr< InboundPort > In, std::unique_ptr< OutboundPort > Out) | |
void | closeInbound () |
Close the inbound port. | |
void | run () |
void | switchStreamStyle (JSONStreamStyle Style) |
Public Member Functions inherited from lspserver::MessageHandler | |
virtual | ~MessageHandler ()=default |
Protected Member Functions | |
template<class T > | |
llvm::unique_function< void(const T &)> | mkOutNotifiction (llvm::StringRef Method, OutboundPort *O=nullptr) |
template<class ParamTy , class ResponseTy > | |
llvm::unique_function< void(const ParamTy &, Callback< ResponseTy >)> | mkOutMethod (llvm::StringRef Method, OutboundPort *O=nullptr) |
Protected Attributes | |
HandlerRegistry | Registry |
LSPServer wraps inputs & outputs, associate message IDs between calls/reply, and provide type-safe interfaces.
Definition at line 17 of file LSPServer.h.
|
inline |
Definition at line 87 of file LSPServer.h.
|
inline |
Close the inbound port.
Definition at line 91 of file LSPServer.h.
Referenced by nixd::AttrSetClientProc::~AttrSetClientProc(), and nixd::OwnedEvalClient::~OwnedEvalClient().
|
inlineprotected |
Definition at line 69 of file LSPServer.h.
References lspserver::Method, and lspserver::parseParam().
Referenced by nixd::AttrSetClient::AttrSetClient(), and nixd::Controller::Controller().
|
inlineprotected |
Definition at line 58 of file LSPServer.h.
References lspserver::log(), lspserver::Method, and lspserver::OutboundPort::notify().
Referenced by nixd::AttrSetClient::AttrSetClient(), and nixd::Controller::Controller().
void lspserver::LSPServer::run | ( | ) |
Definition at line 15 of file LSPServer.cpp.
Referenced by nixd::AttrSetClientProc::AttrSetClientProc(), main(), main(), and nixd::OwnedEvalClient::OwnedEvalClient().
|
inline |
Definition at line 94 of file LSPServer.h.
|
protected |
Definition at line 55 of file LSPServer.h.
Referenced by nixd::Controller::Controller().