parallelTraverse static method

dynamic parallelTraverse(
  1. dynamic a,
  2. dynamic b,
  3. dynamic callback
)

Implementation

static parallelTraverse(a, b, callback) {
  callback(a, b);

  for (var i = 0; i < a.children.length; i++) {
    var bc;

    if (b != null && i < b.children.length) {
      bc = b.children[i];
    }

    parallelTraverse(a.children[i], bc, callback);
  }
}