7#include "skeleton_node.hpp"
9namespace hi::inline
v1 {
11struct skeleton_top_node final : skeleton_node {
12 statement_vector children;
26 if (ssize(children) > 0) {
27 children.back()->left_align();
30 for (hilet &child : children) {
31 child->post_process(context);
38 return evaluate_children(context, children);
41 throw operation_error(std::format(
"{}: Could not evaluate.\n{}", location, e.
what()));
50 return std::format(
"<top {}>", join(children_str));
DOXYGEN BUG.
Definition algorithm.hpp:13
T transform(const U &input, F operation)
Transform an input container to the output container.
Definition algorithm.hpp:21
A dynamic data type.
Definition datum.hpp:223
Definition formula_evaluation_context.hpp:15
Definition formula_post_process_context.hpp:19
Definition parse_location.hpp:18
datum evaluate(formula_evaluation_context &context) override
Evaluate the template.
Definition skeleton_top_node.hpp:35
bool append(std::unique_ptr< skeleton_node > x) noexcept override
Append a template-piece to the current template.
Definition skeleton_top_node.hpp:18