transform<N extends Node> function
Transforms an AST node
using a list of visitors
.
node
can be any Node in the tree.visitors
must define transformations as described in TransformingVisitor
Implementation
N transform<N extends Node>(
N node,
List<TransformingVisitor> visitors,
) =>
node.accept(
_Transformer(visitors: visitors),
) as N;