Commit Graph

3 Commits

Author SHA1 Message Date
Chris Loer
e771210d13 [test] Native expression test support for:
- Round-tripping expressions through serialization and checking that outputs don't change
 - Checking expression serialization against expected value from fixture
2018-02-16 14:07:33 -08:00
Chris Loer
8635dab4c3 [core] Implement Expression::serialize()
Issue #10714
- Each expression stores its operator as a string, and default serialization is [operator, serialize(child1), ...]
- Custom implementations of `serialize` for Expression types that don't follow the pattern
- expression::Value -> mbgl::Value converter
- node_expression bindings to expose `serialize`
2018-02-16 14:07:33 -08:00
Anand Thakker
f648cfeef6 Implement Expressions (#9439)
Ports https://github.com/mapbox/mapbox-gl-js/pull/4777 (and its several follow-ups)
2017-11-08 12:34:02 -05:00