private void dumpRec(SimpleLoop loop, int indent) { // Simplified for readability purposes. loop.dump(indent); foreach (SimpleLoop liter in loop.getChildren()) { dumpRec(liter, indent + 1); } }
public void calculateNestingLevelRec(SimpleLoop loop, int depth) { loop.setDepthLevel(depth); foreach (SimpleLoop liter in loop.getChildren()) { calculateNestingLevelRec(liter, depth + 1); loop.setNestingLevel(Math.Max(loop.getNestingLevel(), 1 + liter.getNestingLevel())); } }
public void calculateNestingLevelRec(SimpleLoop loop, int depth) { loop.setDepthLevel(depth); foreach (SimpleLoop liter in loop.getChildren()) { calculateNestingLevelRec(liter, depth + 1); loop.setNestingLevel(Math.Max(loop.getNestingLevel(), 1 + liter.getNestingLevel())); } }
private void dumpRec(SimpleLoop loop, int indent) { // Simplified for readability purposes. loop.dump(indent); foreach (SimpleLoop liter in loop.getChildren()) dumpRec(liter, indent + 1); }