//Both elements are within a loop with a body containing one element
//Obviously this is a new iteration
//TODO also add positions after left and before right
if(!canAllocateAddTo(tLeft, tiChild)){
//New elements in adjacent, existing iterations
Reference2Element tFor2TLeft = template.getParentFrom(tLeft, tLeftContext);
Reference2Element tFor2TRight = template.getParentFrom(tRight, tRightContext);
// #1
elementsInRange.add(new PositionAddAllocation(
AllocationType.FOR_EXIST,
tFor2TLeft.getParent(),
tFor2TLeft.getReferenceToChildren(),
1, //behind tLeft
tLeftContext));
// #2
elementsInRange.add(new PositionAddAllocation(
AllocationType.FOR_EXIST,
tFor2TRight.getParent(),
tFor2TRight.getReferenceToChildren(),
0, //before tRight
tRightContext));
} else {
EObject uppermostForLoop = findUpperMostForLoop(tParent, tLeft, tLeftContext);