We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc72fd commit 5f45a2cCopy full SHA for 5f45a2c
src/xml_parsing.cpp
@@ -541,6 +541,18 @@ void VerifyXML(const std::string& xml_text,
541
ThrowError(line_number,
542
std::string("The node <") + name + "> must have 1 or more children");
543
}
544
+ if (name == "ReactiveSequence")
545
+ {
546
+ const std::string child_name = node->FirstChildElement()->Name();
547
+ const auto child_search = registered_nodes.find(child_name);
548
+ auto child_type = child_search->second;
549
+ // TODO: what this really needs to check is if the child is async
550
+ if (child_type != NodeType::CONDITION)
551
552
+ ThrowError(line_number,
553
+ std::string("The first child of a ReactiveSequence cannot be asynchronous"));
554
+ }
555
556
557
558
//recursion
0 commit comments