#pragma once #include #include #include #include #include #include #include #include #include namespace mbgl { namespace style { namespace conversion { template struct Converter> { optional> operator()(const Convertible& value, Error& error, bool allowDataExpressions, bool convertTokens) const; template PropertyValue maybeConvertTokens(const S& t) const { return PropertyValue(t); }; PropertyValue maybeConvertTokens(const std::string& t) const { return hasTokens(t) ? PropertyValue(PropertyExpression(convertTokenStringToExpression(t))) : PropertyValue(t); } }; } // namespace conversion } // namespace style } // namespace mbgl