void XmlRenderer::renderNode(const OnNode& node) { StringBuffer attrs; attrs << "key='" << node.key() << "'"; displayOpenTagAttrs("on", StrHelper(attrs.toString())); displayNodeList("params", node.params()); displayNode("body", node.body().get()); displayCloseTag("on"); }
void PrintEquelleASTVisitor::midVisit(OnNode& node) { if (node.isExtend()) { std::cout << " Extend "; } else { std::cout << " On "; } }
void PrintASTVisitor::visit(OnNode& node) { std::cout << indent() << "OnNode: operator " << (node.isExtend() ? "Extend" : "On") << '\n'; ++indent_; }
OnNode* handleExtend(ExpressionNode* left, ExpressionNode* right) { OnNode* node = new OnNode(left, right, true); node->setLocation(FileLocation(yylineno)); return node; }