acceptAll

fun <T> List<Node>.acceptAll(visitor: NodeVisitor<T>): List<T>

Accepts a visitor for each node sequentially.

Return

the list of results from each visit, preserving order

Parameters

visitor

the visitor to accept