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

Method ExpressionNode

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

Source from the content-addressed store, hash-verified

918 std::shared_ptr<Expression> expr;
919public:
920 ExpressionNode(const Location & loc, std::shared_ptr<Expression> && e) : TemplateNode(loc), expr(std::move(e)) {}
921 void do_render(std::ostringstream & out, const std::shared_ptr<Context> & context) const override {
922 if (!expr) throw std::runtime_error("ExpressionNode.expr is null");
923 auto result = expr->evaluate(context);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected