Iterator it = stats.iterator();
Tag t;
Label endIf=writeOutElseIfStart(bc, this);
boolean hasElse=false;
while(it.hasNext()) {
Statement stat = ((Statement)it.next());
if(!hasElse && stat instanceof Tag) {
t=(Tag) stat;
if(t.getTagLibTag().getTagClassName().equals("railo.runtime.tag.ElseIf")) {
writeOutElseIfEnd(adapter, endIf, end);
endIf=writeOutElseIfStart(bc,t);
continue;
}
else if(t.getTagLibTag().getTagClassName().equals("railo.runtime.tag.Else")) {
ExpressionUtil.visitLine(bc, t.getStart());
hasElse=true;
writeOutElseIfEnd(adapter, endIf, end);
//endIf=writeOutElseIfStart(adapter,t);
continue;
}
}
stat.writeOut(bc);
}
if(!hasElse)writeOutElseIfEnd(adapter, endIf, end);
adapter.visitLabel(end);
}