summaryrefslogtreecommitdiff
path: root/src/mbgl/style/function/type.cpp
blob: fbfe6efbc3ff0c8d3a8a4c9b3551490e5ca21320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <mbgl/style/function/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...
Type Primitive::Value = Variant({
    Primitive::Null,
    Primitive::String,
    Primitive::Number,
    Primitive::Color,
    Primitive::Object
});

} // namespace type
} // namespace expression
} // namespace style
} // namespace mbgl