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 = null;

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

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