summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression/type.hpp')
-rw-r--r--include/mbgl/style/expression/type.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mbgl/style/expression/type.hpp b/include/mbgl/style/expression/type.hpp
index 316496839b..a5a1e76164 100644
--- a/include/mbgl/style/expression/type.hpp
+++ b/include/mbgl/style/expression/type.hpp
@@ -66,6 +66,13 @@ struct CollatorType {
std::string getName() const { return "collator"; }
bool operator==(const CollatorType&) const { return true; }
};
+
+struct FormattedType {
+ constexpr FormattedType() {}; // NOLINT
+ std::string getName() const { return "formatted"; }
+ bool operator==(const FormattedType&) const { return true; }
+};
+
constexpr NullType Null;
constexpr NumberType Number;
@@ -75,6 +82,7 @@ constexpr ColorType Color;
constexpr ValueType Value;
constexpr ObjectType Object;
constexpr CollatorType Collator;
+constexpr FormattedType Formatted;
constexpr ErrorType Error;
struct Array;
@@ -89,6 +97,7 @@ using Type = variant<
ValueType,
mapbox::util::recursive_wrapper<Array>,
CollatorType,
+ FormattedType,
ErrorType>;
struct Array {