clang-tools 20.0.0git
|
#include <LSPClient.h>
Classes | |
class | CallResult |
class | TransportImpl |
Public Member Functions | |
LSPClient () | |
~LSPClient () | |
LSPClient (LSPClient &&)=delete | |
LSPClient & | operator= (LSPClient &&)=delete |
CallResult & | call (llvm::StringRef Method, llvm::json::Value Params) |
void | expectServerCall (llvm::StringRef Method) |
void | notify (llvm::StringRef Method, llvm::json::Value Params) |
std::vector< llvm::json::Value > | takeNotifications (llvm::StringRef Method) |
std::vector< llvm::json::Value > | takeCallParams (llvm::StringRef Method) |
void | stop () |
void | didOpen (llvm::StringRef Path, llvm::StringRef Content) |
void | didChange (llvm::StringRef Path, llvm::StringRef Content) |
void | didClose (llvm::StringRef Path) |
void | sync () |
std::optional< std::vector< llvm::json::Value > > | diagnostics (llvm::StringRef Path) |
Transport & | transport () |
Static Public Member Functions | |
static llvm::json::Value | uri (llvm::StringRef Path) |
static llvm::json::Value | documentID (llvm::StringRef Path) |
Definition at line 28 of file LSPClient.h.
clang::clangd::LSPClient::LSPClient | ( | ) |
Definition at line 177 of file LSPClient.cpp.
|
default |
|
delete |
LSPClient::CallResult & clang::clangd::LSPClient::call | ( | llvm::StringRef | Method, |
llvm::json::Value | Params | ||
) |
Definition at line 180 of file LSPClient.cpp.
References ID, clang::clangd::logBody(), and clang::clangd::Method.
Referenced by sync().
std::optional< std::vector< llvm::json::Value > > clang::clangd::LSPClient::diagnostics | ( | llvm::StringRef | Path | ) |
Definition at line 247 of file LSPClient.cpp.
References sync(), takeNotifications(), and uri().
void clang::clangd::LSPClient::didChange | ( | llvm::StringRef | Path, |
llvm::StringRef | Content | ||
) |
Definition at line 235 of file LSPClient.cpp.
References documentID(), and notify().
void clang::clangd::LSPClient::didClose | ( | llvm::StringRef | Path | ) |
Definition at line 240 of file LSPClient.cpp.
References documentID(), and notify().
void clang::clangd::LSPClient::didOpen | ( | llvm::StringRef | Path, |
llvm::StringRef | Content | ||
) |
Definition at line 229 of file LSPClient.cpp.
|
static |
Definition at line 225 of file LSPClient.cpp.
References uri().
Referenced by didChange(), and didClose().
void clang::clangd::LSPClient::expectServerCall | ( | llvm::StringRef | Method | ) |
Definition at line 191 of file LSPClient.cpp.
References clang::clangd::Method.
void clang::clangd::LSPClient::notify | ( | llvm::StringRef | Method, |
llvm::json::Value | Params | ||
) |
Definition at line 195 of file LSPClient.cpp.
References clang::clangd::logBody(), and clang::clangd::Method.
Referenced by didChange(), didClose(), and didOpen().
void clang::clangd::LSPClient::stop | ( | ) |
Definition at line 213 of file LSPClient.cpp.
void clang::clangd::LSPClient::sync | ( | ) |
Definition at line 244 of file LSPClient.cpp.
References call(), and clang::clangd::LSPClient::CallResult::takeValue().
Referenced by diagnostics().
std::vector< llvm::json::Value > clang::clangd::LSPClient::takeCallParams | ( | llvm::StringRef | Method | ) |
Definition at line 209 of file LSPClient.cpp.
References clang::clangd::Method.
std::vector< llvm::json::Value > clang::clangd::LSPClient::takeNotifications | ( | llvm::StringRef | Method | ) |
Definition at line 204 of file LSPClient.cpp.
References clang::clangd::Method.
Referenced by diagnostics().
Transport & clang::clangd::LSPClient::transport | ( | ) |
Definition at line 215 of file LSPClient.cpp.
|
static |
Definition at line 219 of file LSPClient.cpp.
References clang::clangd::URIForFile::canonicalize(), clang::clangd::testPath(), and clang::clangd::toJSON().
Referenced by diagnostics(), didOpen(), and documentID().