clang-tools  14.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]
Collaboration diagram for clang::clangd::ClangdLSPServer::MessageHandler:
Collaboration 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
 

Detailed Description

Definition at line 157 of file ClangdLSPServer.cpp.

Constructor & Destructor Documentation

◆ MessageHandler()

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

Definition at line 159 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 248 of file ClangdLSPServer.cpp.

References 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

Implements clang::clangd::Transport::MessageHandler.

Definition at line 206 of file ClangdLSPServer.cpp.


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