LLVM 22.0.0git
|
An abstract class used by the JSONTransport to read JSON message. More...
#include "llvm/Support/LSP/Transport.h"
Public Member Functions | |
JSONTransportInput (JSONStreamStyle Style=JSONStreamStyle::Standard) | |
virtual | ~JSONTransportInput ()=default |
virtual bool | hasError () const =0 |
virtual bool | isEndOfInput () const =0 |
LogicalResult | readMessage (std::string &Json) |
Read in a message from the input stream. | |
virtual LogicalResult | readDelimitedMessage (std::string &Json)=0 |
virtual LogicalResult | readStandardMessage (std::string &Json)=0 |
An abstract class used by the JSONTransport to read JSON message.
Definition at line 52 of file Transport.h.
|
inlineexplicit |
Definition at line 54 of file Transport.h.
References llvm::lsp::Standard.
Referenced by llvm::lsp::JSONTransportInputOverFile::JSONTransportInputOverFile().
|
virtualdefault |
|
pure virtual |
Implemented in llvm::lsp::JSONTransportInputOverFile.
|
pure virtual |
Implemented in llvm::lsp::JSONTransportInputOverFile.
|
pure virtual |
Implemented in llvm::lsp::JSONTransportInputOverFile.
Referenced by readMessage().
|
inline |
Read in a message from the input stream.
Definition at line 62 of file Transport.h.
References llvm::lsp::Delimited, readDelimitedMessage(), and readStandardMessage().
|
pure virtual |
Implemented in llvm::lsp::JSONTransportInputOverFile.
Referenced by readMessage().