ExceptionHandlingDelegatingAstVisitor<T> constructor

ExceptionHandlingDelegatingAstVisitor<T>(
  1. Iterable<AstVisitor<T>> delegates,
  2. ExceptionInDelegateHandler handler
)

Initialize a newly created visitor to use each of the given delegate visitors to visit the nodes of an AST structure.

Implementation

ExceptionHandlingDelegatingAstVisitor(
    Iterable<AstVisitor<T>> delegates, this.handler)
    : super(delegates) {
  if (handler == null) {
    throw ArgumentError('A handler must be provided');
  }
}