isCyclic property

bool get isCyclic

Checks if the dependency is cyclic (code depends back on reference).

Implementation

bool get isCyclic {
  for (var dep in code.dependencyList) {
    if (dep.code == reference) {
      return true;
    }
  }
  return false;
}