toVisit method

List<SpanNode> toVisit(
  1. List<Node> nodes
)

Implementation

List<SpanNode> toVisit(List<h.Node> nodes) {
  _spans.clear();
  for (final node in nodes) {
    final emptyNode = ConcreteElementNode(style: parentStyle);
    _spans.add(emptyNode);
    _spansStack.add(emptyNode);
    visit(node);
    _spansStack.removeLast();
  }
  final result = List.of(_spans);
  _spans.clear();
  _spansStack.clear();
  return result;
}