traverse method

void traverse(
  1. dynamic callback
)
inherited

Implementation

void traverse(callback) {
  callback(this);

  var children = this.children;

  for (var i = 0, l = children.length; i < l; i++) {
    children[i].traverse(callback);
  }
}