super(igc);
}
@Override
public void visitCaseIntermediate(CaseIntermediate line) {
SwitchIntermediate si = (SwitchIntermediate)igc.getSinglePredecessor(line);
List<CaseIntermediate> switchCases = igc.getCases(si);
int position = line.getBlockRange().getStart().getPosition();
CaseIntermediate next = findNextCase(switchCases, position);
if(next != null) {
line.getBlockRange().setEnd(next.getBlockRange().getStart().getPrev());
}
else {
//we should get the end from the parent.
line.getBlockRange().setEnd(si.getBlockRange().getEnd());
}
}