transform<N extends Node> function

N transform<N extends Node>(
  1. N node,
  2. List<TransformingVisitor> visitors
)

Transforms an AST node using a list of visitors.

Implementation

N transform<N extends Node>(
  N node,
  List<TransformingVisitor> visitors,
) =>
    node.accept(
      _Transformer(visitors: visitors),
    ) as N;