summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/coercion.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression/coercion.hpp')
-rw-r--r--include/mbgl/style/expression/coercion.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/mbgl/style/expression/coercion.hpp b/include/mbgl/style/expression/coercion.hpp
index d83bd6dfa7..28c2c0c679 100644
--- a/include/mbgl/style/expression/coercion.hpp
+++ b/include/mbgl/style/expression/coercion.hpp
@@ -10,11 +10,6 @@ namespace mbgl {
namespace style {
namespace expression {
-/**
- * Special form for error-coalescing coercion expressions "to-number",
- * "to-color". Since these coercions can fail at runtime, they accept multiple
- * arguments, only evaluating one at a time until one succeeds.
- */
class Coercion : public Expression {
public:
Coercion(type::Type type_, std::vector<std::unique_ptr<Expression>> inputs_);
@@ -23,6 +18,8 @@ public:
EvaluationResult evaluate(const EvaluationContext& params) const override;
void eachChild(const std::function<void(const Expression&)>& visit) const override;
+
+ mbgl::Value serialize() const override;
bool operator==(const Expression& e) const override;