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

A transport class that performs the JSON-RPC communication with the LSP client. More...

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

Public Member Functions
JSONTransport (std::unique_ptr< JSONTransportInput > In, raw_ostream &Out, bool PrettyOutput=false)
JSONTransport (std::FILE *In, raw_ostream &Out, JSONStreamStyle Style=JSONStreamStyle::Standard, bool PrettyOutput=false)
LLVM_ABI_FOR_TEST void notify (StringRef Method, llvm::json::Value Params)
The following methods are used to send a message to the LSP client.
LLVM_ABI_FOR_TEST void call (StringRef Method, llvm::json::Value Params, llvm::json::Value Id)
LLVM_ABI_FOR_TEST void reply (llvm::json::Value Id, llvm::Expected< llvm::json::Value > Result)
LLVM_ABI_FOR_TEST llvm::Error run (MessageHandler &Handler)
Start executing the JSON-RPC transport.

Detailed Description

A transport class that performs the JSON-RPC communication with the LSP client.

Definition at line 94 of file Transport.h.

Constructor & Destructor Documentation

JSONTransport() [2/2]

Member Function Documentation

call()

notify()

reply()

run()


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