nixd
|
#include <EvalClient.h>
Public Member Functions | |
OwnedEvalClient (std::unique_ptr< lspserver::InboundPort > In, std::unique_ptr< lspserver::OutboundPort > Out, std::unique_ptr< util::PipedProc > Proc, std::unique_ptr< llvm::raw_fd_ostream > Stream) | |
util::PipedProc & | proc () |
~OwnedEvalClient () override | |
![]() | |
EvalClient (std::unique_ptr< lspserver::InboundPort > In, std::unique_ptr< lspserver::OutboundPort > Out) | |
void | onReady (const int &Flags) |
bool | ready () |
![]() | |
LSPServer (std::unique_ptr< InboundPort > In, std::unique_ptr< OutboundPort > Out) | |
void | closeInbound () |
Close the inbound port. | |
void | run () |
void | switchStreamStyle (JSONStreamStyle Style) |
![]() | |
virtual | ~MessageHandler ()=default |
Static Public Member Functions | |
static std::unique_ptr< OwnedEvalClient > | create (int &Fail) |
Additional Inherited Members | |
![]() | |
llvm::unique_function< void(const rpc::RegisterBCParams &)> | RegisterBC |
llvm::unique_function< void(const rpc::ExprValueParams &, lspserver::Callback< rpc::ExprValueResponse >)> | ExprValue |
![]() | |
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) |
![]() | |
HandlerRegistry | Registry |
Definition at line 36 of file EvalClient.h.
|
inline |
Definition at line 43 of file EvalClient.h.
References nixd::EvalClient::EvalClient(), and lspserver::LSPServer::run().
|
inlineoverride |
Definition at line 55 of file EvalClient.h.
References lspserver::LSPServer::closeInbound().
|
static |
Lanch nix-node-eval, with properly handled file descriptors. System-wide errno will be written into "Fail" variable and thus cannot be discarded.
|
inline |
Definition at line 53 of file EvalClient.h.