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},
105 llvm::json::Path P) {
106 ObjectMapper O(Params, P);
108 && O.map(
"Meta", R.
Meta)
110 && O.mapOptional(
"ValueDesc", R.
ValueDesc)
118 llvm::json::Path P) {
119 ObjectMapper O(Params, P);
121 && O.map(
"Scope", R.
Scope)
122 && O.map(
"Prefix", R.
Prefix)
128 {
"arity", Params.
Arity},
130 {
"args", Params.
Args},
134 llvm::json::Path P) {
136 ObjectMapper O(Params, P);
138 && O.map(
"arity", R.
Arity)
139 && O.map(
"doc", R.
Doc)
140 && O.map(
"args", R.
Args);
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".
std::optional< ValueDescription > ValueDesc
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
Using nix's ":doc" method to retrieve value's additional information.
std::vector< std::string > Args