visit method
Implementation
List<SpanNode> visit(List<m.Node> nodes) {
_spans.clear();
_currentSpanIndex = 0;
for (final node in nodes) {
final emptyNode = ConcreteElementNode();
_spans.add(emptyNode);
_currentSpanIndex = _spans.length - 1;
_spansStack.add(emptyNode);
node.accept(this);
_spansStack.removeLast();
}
final result = List.of(_spans);
_spans.clear();
_spansStack.clear();
return result;
}