void XmlRenderer::renderNode(const ArrayNode& node) { StringBuffer attrs; if (fShowNodeType && node.type().isDef()) { attrs << " ty='" << xmlEncode(node.type().typeId()) << "'"; fReferencedTypes.insert(std::make_pair(node.type().typeId(), node.type())); } displayOpenTagAttrs("array", StrHelper(attrs.toString())); displayNodeList(nullptr, node.children()); displayCloseTag("array"); }
void PrintASTVisitor::visit(ArrayNode& node) { std::cout << indent() << "ArrayNode: array size = " << node.type().arraySize() << "\n"; ++indent_; }