@@ -101,13 +101,13 @@ namespace AppInstaller::CLI
101
101
//
102
102
// struct Property
103
103
// {
104
- // using Type = { bool, std::string };
104
+ // using PropertyType = { bool, std::string };
105
105
// static std::string_view Name();
106
106
// static void FromJson(Property*, const Json::Value*);
107
107
// static std::optional<Json::Value> ToJson(const Property*);
108
108
//
109
- // const Type & PROPERTY_NAME() const;
110
- // void PROPERTY_NAME(const Type &);
109
+ // const PropertyType & PROPERTY_NAME() const;
110
+ // void PROPERTY_NAME(const PropertyType &);
111
111
// }
112
112
template <typename ... Property>
113
113
struct DscComposableObject : public Property ...
@@ -149,15 +149,15 @@ namespace AppInstaller::CLI
149
149
static Json::Value Schema (const std::string& title)
150
150
{
151
151
Json::Value result = details::GetBaseSchema (title);
152
- (FoldHelper{}, ..., details::AddPropertySchema (result, Property::Name (), Property::Flags, GetJsonTypeValue<typename Property::Type >::SchemaType (), Property::Description (), Property::EnumValues (), Property::Default ()));
152
+ (FoldHelper{}, ..., details::AddPropertySchema (result, Property::Name (), Property::Flags, GetJsonTypeValue<typename Property::PropertyType >::SchemaType (), Property::Description (), Property::EnumValues (), Property::Default ()));
153
153
return result;
154
154
}
155
155
};
156
156
157
- template <typename Derived, typename PropertyType , DscComposablePropertyFlag PropertyFlags>
157
+ template <typename Derived, typename PropertyTypeT , DscComposablePropertyFlag PropertyFlags>
158
158
struct DscComposableProperty
159
159
{
160
- using Type = PropertyType ;
160
+ using PropertyType = PropertyTypeT ;
161
161
static constexpr DscComposablePropertyFlag Flags = PropertyFlags;
162
162
163
163
static void FromJson (Derived* self, const Json::Value* value, bool ignoreFieldRequirements)
@@ -201,7 +201,7 @@ namespace AppInstaller::CLI
201
201
}
202
202
203
203
protected:
204
- std::optional<Type > m_value;
204
+ std::optional<PropertyType > m_value;
205
205
};
206
206
207
207
#define WINGET_DSC_DEFINE_COMPOSABLE_PROPERTY_IMPL_START (_property_type_, _value_type_, _property_name_, _json_name_, _flags_, _description_, _enum_vals_, _default_ ) \
@@ -211,9 +211,9 @@ namespace AppInstaller::CLI
211
211
static Resource::LocString Description () { return _description_; } \
212
212
static std::vector<std::string> EnumValues () { return std::vector<std::string> _enum_vals_; } \
213
213
static std::optional<std::string> Default () { return _default_; } \
214
- std::optional<Type >& _property_name_ () { return m_value; } \
215
- const std::optional<Type >& _property_name_ () const { return m_value; } \
216
- void _property_name_ (std::optional<Type > value) { m_value = std::move (value); } \
214
+ std::optional<PropertyType >& _property_name_ () { return m_value; } \
215
+ const std::optional<PropertyType >& _property_name_ () const { return m_value; } \
216
+ void _property_name_ (std::optional<PropertyType > value) { m_value = std::move (value); } \
217
217
218
218
#define WINGET_DSC_DEFINE_COMPOSABLE_PROPERTY_IMPL (_property_type_, _value_type_, _property_name_, _json_name_, _flags_, _description_, _enum_vals_, _default_ ) \
219
219
WINGET_DSC_DEFINE_COMPOSABLE_PROPERTY_IMPL_START (_property_type_, _value_type_, _property_name_, _json_name_, _flags_, _description_, _enum_vals_, _default_) \
0 commit comments