visitDominatorTree method

void visitDominatorTree(
  1. bool callback(
    1. CallGraphNode n,
    2. int depth
    ), [
  2. int depth = 0
])

Implementation

void visitDominatorTree(bool Function(CallGraphNode n, int depth) callback,
    [int depth = 0]) {
  if (callback(this, depth)) {
    for (var n in dominated) {
      n.visitDominatorTree(callback, depth + 1);
    }
  }
}