visitEnclose method

  1. @override
String visitEnclose(
  1. EncloseNode node
)
override

Implementation

@override
String visitEnclose(EncloseNode node) {
  final notationText = node.notations.map((it) => it.mathMlName).join(",");
  _output.write("Enclose($notationText)");
  if (node.attributes.isNotEmpty) {
    _output.write("(attributes=${node.attributes})");
  }
  _output.write("\n");
  _indent++;
  _printIndent();
  _output.write("content: ");
  for (int i = 0; i < node.content.length; i++) {
    if (i > 0) _output.write(", ");
    visit(node.content[i]);
  }
  _indent--;
  return "";
}