15#include "llvm/Support/ErrorHandling.h"
16#include "llvm/Support/JSON.h"
27 if (std::optional<StringRef> str = value.getAsString()) {
46 llvm::json::ObjectMapper o(value, path);
47 return o && o.map(
"uri",
result.uri) && o.map(
"kind",
result.kind);
55 return llvm::json::Object{{
"output", value.
output}};
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.
Represents the result of viewing the output of a PDLL file.
std::string output
The string representation of the output.