clang-tools 20.0.0git
Classes | Public Member Functions | List of all members
clang::clangd::ClangdLSPServer::MessageHandler Class Reference
Inheritance diagram for clang::clangd::ClangdLSPServer::MessageHandler:
Inheritance graph
[legend]

Public Member Functions

 MessageHandler (ClangdLSPServer &Server)
 
bool onNotify (llvm::StringRef Method, llvm::json::Value Params) override
 
bool onCall (llvm::StringRef Method, llvm::json::Value Params, llvm::json::Value ID) override
 
bool onReply (llvm::json::Value ID, llvm::Expected< llvm::json::Value > Result) override
 
llvm::json::Value bindReply (Callback< llvm::json::Value > Reply)
 
- Public Member Functions inherited from clang::clangd::Transport::MessageHandler
virtual ~MessageHandler ()=default
 
virtual bool onNotify (llvm::StringRef Method, llvm::json::Value)=0
 
virtual bool onCall (llvm::StringRef Method, llvm::json::Value Params, llvm::json::Value ID)=0
 
virtual bool onReply (llvm::json::Value ID, llvm::Expected< llvm::json::Value > Result)=0
 

Detailed Description

Definition at line 206 of file ClangdLSPServer.cpp.

Constructor & Destructor Documentation

◆ MessageHandler()

clang::clangd::ClangdLSPServer::MessageHandler::MessageHandler ( ClangdLSPServer Server)
inline

Definition at line 208 of file ClangdLSPServer.cpp.

Member Function Documentation

◆ bindReply()

llvm::json::Value clang::clangd::ClangdLSPServer::MessageHandler::bindReply ( Callback< llvm::json::Value >  Reply)
inline

Definition at line 297 of file ClangdLSPServer.cpp.

References clang::clangd::elog(), clang::clangd::error(), and ID.

◆ onCall()

bool clang::clangd::ClangdLSPServer::MessageHandler::onCall ( llvm::StringRef  Method,
llvm::json::Value  Params,
llvm::json::Value  ID 
)
inlineoverridevirtual

◆ onNotify()

bool clang::clangd::ClangdLSPServer::MessageHandler::onNotify ( llvm::StringRef  Method,
llvm::json::Value  Params 
)
inlineoverridevirtual

◆ onReply()

bool clang::clangd::ClangdLSPServer::MessageHandler::onReply ( llvm::json::Value  ID,
llvm::Expected< llvm::json::Value >  Result 
)
inlineoverridevirtual

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