Beispiel #1
0
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");
}
Beispiel #2
0
void PrintASTVisitor::visit(ArrayNode& node)
{
    std::cout << indent() << "ArrayNode: array size = " << node.type().arraySize() << "\n";
    ++indent_;
}