LLVM: llvm::lsp::MessageHandler Class Reference (original) (raw)

A handler used to process the incoming transport messages. More...

#include "[llvm/Support/LSP/Transport.h](Transport%5F8h%5Fsource.html)"

Public Member Functions
MessageHandler (JSONTransport &Transport)
bool onNotify (StringRef Method, llvm::json::Value Value)
bool onCall (StringRef Method, llvm::json::Value Params, llvm::json::Value Id)
bool onReply (llvm::json::Value Id, llvm::Expected< llvm::json::Value > Result)
template<typename Param, typename Result, typename ThisT>
void method (llvm::StringLiteral Method, ThisT *ThisPtr, void(ThisT::*Handler)(const Param &, Callback< Result >))
template<typename Param, typename ThisT>
void notification (llvm::StringLiteral Method, ThisT *ThisPtr, void(ThisT::*Handler)(const Param &))
template<typename T>
OutgoingNotification< T > outgoingNotification (llvm::StringLiteral Method)
Create an OutgoingNotification object used for the given method.
template<typename Param, typename Result>
OutgoingRequest< Param > outgoingRequest (llvm::StringLiteral Method, OutgoingRequestCallback< Result > Callback)
Create an OutgoingRequest function that, when called, sends a request with the given method via the transport.

A handler used to process the incoming transport messages.

Definition at line 160 of file Transport.h.

llvm::lsp::MessageHandler::MessageHandler ( JSONTransport & Transport) inline

method()

template<typename Param, typename Result, typename ThisT>

notification()

template<typename Param, typename ThisT>

void llvm::lsp::MessageHandler::notification ( llvm::StringLiteral Method, ThisT * ThisPtr, void(ThisT::* Handler )(const Param &) ) inline

onCall()

onNotify()

onReply()

outgoingNotification()

outgoingRequest()

template<typename Param, typename Result>

parse()


The documentation for this class was generated from the following files: