4using namespace llvm::json;
8 {
"Description",
Params.Description},
17 && O.mapOptional(
"Name", R.
Name);
22 {
"Description",
Params.Description},
23 {
"Declarations",
Params.Declarations},
24 {
"Definitions",
Params.Definitions},
25 {
"Example",
Params.Example},
35 && O.mapOptional(
"Example", R.
Example)
36 && O.mapOptional(
"Type", R.
Type)
43 {
"Description",
Params.Description},
50 && O.mapOptional(
"Name", R.
Name)
58 {
"Version",
Params.Version},
59 {
"Description",
Params.Description},
60 {
"LongDescription",
Params.LongDescription},
61 {
"Position",
Params.Position},
62 {
"Homepage",
Params.Homepage},
70 && O.map(
"Name", R.
Name)
71 && O.map(
"PName", R.
PName)
83 {
"Location",
Params.Location},
91 && O.map(
"Type", R.
Type)
92 && O.mapOptional(
"Location", R.
Location)
99 {
"PackageDesc",
Params.PackageDesc},
104 llvm::json::Path P) {
105 ObjectMapper O(
Params, P);
107 && O.map(
"Meta", R.
Meta)
116 llvm::json::Path P) {
117 ObjectMapper O(
Params, P);
119 && O.map(
"Scope", R.
Scope)
120 && O.map(
"Prefix", R.
Prefix)
Types used in nixpkgs provider.
bool fromJSON(const llvm::json::Value &Params, Configuration::Diagnostic &R, llvm::json::Path P)
llvm::json::Value toJSON(const PackageDescription &Params)
std::string Prefix
Search for packages prefixed with this "prefix".
ValueMeta Meta
General value description.
PackageDescription PackageDesc
Package description of the attribute path, if available.
std::vector< lspserver::Location > Definitions
std::optional< std::string > Description
std::optional< std::string > Example
std::optional< OptionType > Type
std::vector< lspserver::Location > Declarations
std::optional< OptionDescription > Description
std::optional< std::string > Description
std::optional< std::string > Name
std::optional< std::string > Name
std::optional< std::string > Version
std::optional< std::string > PName
std::optional< std::string > Description
std::optional< std::string > LongDescription
std::optional< std::string > Position
std::optional< std::string > Homepage