MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / IfNode

Method IfNode

src/include/minja/minja.hpp:937–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935 std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<TemplateNode>>> cascade;
936public:
937 IfNode(const Location & loc, std::vector<std::pair<std::shared_ptr<Expression>, std::shared_ptr<TemplateNode>>> && c)
938 : TemplateNode(loc), cascade(std::move(c)) {}
939 void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override {
940 for (const auto& branch : cascade) {
941 auto enter_branch = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected