@@ -101,13 +101,13 @@ namespace AppInstaller::CLI
101101 //
102102 // struct Property
103103 // {
104- // using Type = { bool, std::string };
104+ // using PropertyType = { bool, std::string };
105105 // static std::string_view Name();
106106 // static void FromJson(Property*, const Json::Value*);
107107 // static std::optional<Json::Value> ToJson(const Property*);
108108 //
109- // const Type & PROPERTY_NAME() const;
110- // void PROPERTY_NAME(const Type &);
109+ // const PropertyType & PROPERTY_NAME() const;
110+ // void PROPERTY_NAME(const PropertyType &);
111111 // }
112112 template <typename ... Property>
113113 struct DscComposableObject : public Property ...
@@ -149,15 +149,15 @@ namespace AppInstaller::CLI
149149 static Json::Value Schema (const std::string& title)
150150 {
151151 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 ()));
153153 return result;
154154 }
155155 };
156156
157- template <typename Derived, typename PropertyType , DscComposablePropertyFlag PropertyFlags>
157+ template <typename Derived, typename PropertyTypeT , DscComposablePropertyFlag PropertyFlags>
158158 struct DscComposableProperty
159159 {
160- using Type = PropertyType ;
160+ using PropertyType = PropertyTypeT ;
161161 static constexpr DscComposablePropertyFlag Flags = PropertyFlags;
162162
163163 static void FromJson (Derived* self, const Json::Value* value, bool ignoreFieldRequirements)
@@ -201,7 +201,7 @@ namespace AppInstaller::CLI
201201 }
202202
203203 protected:
204- std::optional<Type > m_value;
204+ std::optional<PropertyType > m_value;
205205 };
206206
207207#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
211211 static Resource::LocString Description () { return _description_; } \
212212 static std::vector<std::string> EnumValues () { return std::vector<std::string> _enum_vals_; } \
213213 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); } \
217217
218218#define WINGET_DSC_DEFINE_COMPOSABLE_PROPERTY_IMPL (_property_type_, _value_type_, _property_name_, _json_name_, _flags_, _description_, _enum_vals_, _default_ ) \
219219 WINGET_DSC_DEFINE_COMPOSABLE_PROPERTY_IMPL_START (_property_type_, _value_type_, _property_name_, _json_name_, _flags_, _description_, _enum_vals_, _default_) \
0 commit comments