summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/expression/type.cpp')
-rw-r--r--src/mbgl/style/expression/type.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mbgl/style/expression/type.cpp b/src/mbgl/style/expression/type.cpp
new file mode 100644
index 0000000000..2b7f78a8d8
--- /dev/null
+++ b/src/mbgl/style/expression/type.cpp
@@ -0,0 +1,26 @@
+#include <mbgl/style/expression/type.hpp>
+
+namespace mbgl {
+namespace style {
+namespace expression {
+namespace type {
+
+Primitive Primitive::Null = {"Null"};
+Primitive Primitive::String = {"String"};
+Primitive Primitive::Number = {"Number"};
+Primitive Primitive::Color = {"Color"};
+Primitive Primitive::Object = {"Object"};
+
+// Need to add Array(Types::Value) to the member list somehow...
+ ValueType Primitive::Value = Variant({
+ Primitive::Null,
+ Primitive::String,
+ Primitive::Number,
+ Primitive::Color,
+ Primitive::Object
+});
+
+} // namespace type
+} // namespace expression
+} // namespace style
+} // namespace mbgl