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 Attributes | |
HandlerRegistry | Registry |
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) |
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().
void lspserver::LSPServer::run | ( | ) |
Definition at line 15 of file LSPServer.cpp.
Referenced by nixd::AttrSetClientProc::AttrSetClientProc(), main(), and nixd::OwnedEvalClient::OwnedEvalClient().
|
inline |
Definition at line 94 of file LSPServer.h.
References lspserver::fromJSON().
|
inlineprotected |
Definition at line 69 of file LSPServer.h.
|
inlineprotected |
Definition at line 58 of file LSPServer.h.
|
protected |
Definition at line 55 of file LSPServer.h.
Referenced by nixd::Controller::Controller().