20 #ifndef LIB_MLIR_TOOLS_MLIRPDLLLSPSERVER_PROTOCOL_H_
21 #define LIB_MLIR_TOOLS_MLIRPDLLLSPSERVER_PROTOCOL_H_
23 #include "llvm/Support/LSP/Protocol.h"
27 using llvm::lsp::URIForFile;
51 llvm::json::Path path);
53 llvm::json::Path path);
bool fromJSON(const llvm::json::Value &value, PDLLViewOutputKind &result, llvm::json::Path path)
Add support for JSON serialization.
PDLLViewOutputKind
The type of output to view from PDLL.
llvm::json::Value toJSON(const PDLLViewOutputResult &value)
Add support for JSON serialization.
Include the generated interface declarations.
Represents the parameters used when viewing the output of a PDLL file.
URIForFile uri
The URI of the document to view the output of.
PDLLViewOutputKind kind
The kind of output to generate.
Represents the result of viewing the output of a PDLL file.
std::string output
The string representation of the output.