Track expression dependencies (#2113)

This commit is contained in:
Tim Sylvester
2024-03-07 10:36:50 -08:00
committed by GitHub
parent 9614b566d8
commit 25678a4d99
105 changed files with 1082 additions and 339 deletions

View File

@@ -10,7 +10,7 @@ namespace expression {
using namespace mbgl::style::conversion;
Assertion::Assertion(type::Type type_, std::vector<std::unique_ptr<Expression>> inputs_)
: Expression(Kind::Assertion, std::move(type_)),
: Expression(Kind::Assertion, std::move(type_), collectDependencies(inputs_)),
inputs(std::move(inputs_)) {
assert(!inputs.empty());
}