appendLine("}");
} else {
// if we only have an expression for 1 of iterable/iterator then we
// add a MissingExpressionAlert
if (loop.getIterable() == null && loop.getIterator() != null) {
alertSink.add(new MissingExpressionError(loop.getIterator(), SCALA));
} else if (loop.getIterator() == null && loop.getIterable() != null) {
alertSink.add(new MissingExpressionError(loop.getIterable(), SCALA));
} else {
alertSink.add(new LoopMissingBothIterableAndIteratorError(loop, SCALA));
}
}
// close outer scope