diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-06-20 08:39:31 +0300 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-08-13 13:32:56 +0300 |
commit | 603c02ccc21543473074787aaad7c89d282dddc9 (patch) | |
tree | a14685995821275c8fe258b794fa783aa31f6c61 /platform/darwin/src/MGLStyleLayer.h.ejs | |
parent | 0ff218d688084146fee178ce52c17f346fa67198 (diff) | |
download | qtlocation-mapboxgl-603c02ccc21543473074787aaad7c89d282dddc9.tar.gz |
[darwin] Generate plural version of property name, yet, keep singular version of an enum
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer.h.ejs')
-rw-r--r-- | platform/darwin/src/MGLStyleLayer.h.ejs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/platform/darwin/src/MGLStyleLayer.h.ejs b/platform/darwin/src/MGLStyleLayer.h.ejs index 4bbb9e9f0d..91ba813b17 100644 --- a/platform/darwin/src/MGLStyleLayer.h.ejs +++ b/platform/darwin/src/MGLStyleLayer.h.ejs @@ -21,17 +21,17 @@ NS_ASSUME_NONNULL_BEGIN <% for (const property of layoutProperties) { -%> <% if (definesEnum(property, layoutProperties)) { -%> /** -<%- propertyDoc(property.name, property, type, 'enum').wrap(80, 1) %> +<%- propertyDoc(enumName(property), property, type, 'enum').wrap(80, 1) %> Values of this type are used in the `MGL<%- camelize(type) %>StyleLayer.<%- camelizeWithLeadingLowercase(property.name) %>` property. */ -typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) { +typedef NS_ENUM(NSUInteger, MGL<%- camelize(enumName(property)) %>) { <% for (const value in property.values) { -%> /** -<%- propertyDoc(property.name, property.values[value], type, 'enum').wrap(80, 4+1) %> +<%- propertyDoc(enumName(property), property.values[value], type, 'enum').wrap(80, 4+1) %> */ - MGL<%- camelize(property.name) %><%- camelize(value) %>, + MGL<%- camelize(enumName(property)) %><%- camelize(value) %>, <% } -%> }; @@ -40,17 +40,17 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) { <% for (const property of paintProperties) { -%> <% if (definesEnum(property, paintProperties)) { -%> /** -<%- propertyDoc(property.name, property, type, 'enum').wrap(80, 1) %> +<%- propertyDoc(enumName(property), property, type, 'enum').wrap(80, 1) %> - Values of this type are used in the `MGL<%- camelize(type) %>StyleLayer.<%- camelizeWithLeadingLowercase(property.name) %>` + Values of this type are used in the `MGL<%- camelize(type) %>StyleLayer.<%- camelizeWithLeadingLowercase(enumName(property)) %>` property. */ -typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) { +typedef NS_ENUM(NSUInteger, MGL<%- camelize(enumName(property)) %>) { <% for (const value in property.values) { -%> /** -<%- propertyDoc(property.name, property.values[value], type, 'enum').wrap(80, 4+1) %> +<%- propertyDoc(enumName(property), property.values[value], type, 'enum').wrap(80, 4+1) %> */ - MGL<%- camelize(property.name) %><%- camelize(value) %>, + MGL<%- camelize(enumName(property)) %><%- camelize(value) %>, <% } -%> }; @@ -180,17 +180,17 @@ which it is added. <% for (let property of enumProperties) { -%> /** - Creates a new value object containing the given `MGL<%- camelize(property.name) %>` enumeration. + Creates a new value object containing the given `MGL<%- camelize(enumName(property)) %>` enumeration. @param <%- objCName(property) %> The value for the new object. @return A new value object that contains the enumeration value. */ -+ (instancetype)valueWithMGL<%- camelize(property.name) %>:(MGL<%- camelize(property.name) %>)<%- objCName(property) %>; ++ (instancetype)valueWithMGL<%- camelize(enumName(property)) %>:(MGL<%- camelize(enumName(property)) %>)<%- objCName(property) %>; /** - The `MGL<%- camelize(property.name) %>` enumeration representation of the value. + The `MGL<%- camelize(enumName(property)) %>` enumeration representation of the value. */ -@property (readonly) MGL<%- camelize(property.name) %> MGL<%- camelize(property.name) %>Value; +@property (readonly) MGL<%- camelize(enumName(property)) %> MGL<%- camelize(enumName(property)) %>Value; <% } -%> @end |