4using namespace llvm::json;
14 ObjectMapper O(Params, P);
17 && O.mapOptional(
"Name", R.
Name);
26 {
"Type", Params.
Type},
30 ObjectMapper O(Params, P);
35 && O.mapOptional(
"Example", R.
Example)
36 && O.mapOptional(
"Type", R.
Type)
42 {
"Name", Params.
Name},
47 ObjectMapper O(Params, P);
50 && O.mapOptional(
"Name", R.
Name)
56 {
"Name", Params.
Name},
57 {
"PName", Params.
PName},
68 ObjectMapper O(Params, P);
70 && O.map(
"Name", R.
Name)
71 && O.map(
"PName", R.
PName)
82 {
"Type", Params.
Type},
89 ObjectMapper O(Params, P);
91 && O.map(
"Type", R.
Type)
92 && O.mapOptional(
"Location", R.
Location)
98 {
"Meta", Params.
Meta},
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