MLIR
21.0.0git
|
Concrete implementation of the JSONTransportInput that reads from a file. More...
#include "mlir/Tools/lsp-server-support/Transport.h"
Public Member Functions | |
JSONTransportInputOverFile (std::FILE *in, JSONStreamStyle style=JSONStreamStyle::Standard) | |
bool | hasError () const final |
bool | isEndOfInput () const final |
LogicalResult | readDelimitedMessage (std::string &json) final |
For lit tests we support a simplified syntax: More... | |
LogicalResult | readStandardMessage (std::string &json) final |
![]() | |
JSONTransportInput (JSONStreamStyle style=JSONStreamStyle::Standard) | |
virtual | ~JSONTransportInput ()=default |
LogicalResult | readMessage (std::string &json) |
Read in a message from the input stream. More... | |
Concrete implementation of the JSONTransportInput that reads from a file.
Definition at line 70 of file Transport.h.
|
inlineexplicit |
Definition at line 72 of file Transport.h.
|
inlinefinalvirtual |
Implements mlir::lsp::JSONTransportInput.
Definition at line 76 of file Transport.h.
Referenced by readStandardMessage().
|
inlinefinalvirtual |
Implements mlir::lsp::JSONTransportInput.
Definition at line 77 of file Transport.h.
|
finalvirtual |
For lit tests we support a simplified syntax:
Implements mlir::lsp::JSONTransportInput.
Definition at line 354 of file Transport.cpp.
References mlir::kDefaultSplitMarker, and readLine().
|
finalvirtual |
Implements mlir::lsp::JSONTransportInput.
Definition at line 307 of file Transport.cpp.
References hasError(), and readLine().