TimedAstVisitor<T> constructor

TimedAstVisitor<T>(
  1. AstVisitor<T> _baseVisitor, [
  2. Stopwatch? watch
])

Initialize a newly created visitor to time calls to the given base visitor's visits.

Implementation

TimedAstVisitor(this._baseVisitor, [Stopwatch? watch])
    : stopwatch = watch ?? Stopwatch();