170171172173174175176177178179180
List<Alias> todo = new LinkedList<Alias>(); todo.addAll(aliasDecls); int countdown = todo.size(); while (!todo.isEmpty()) { Alias trial = todo.remove(0); --countdown; try { declareAlias(trial, env); countdown = todo.size(); }