comments(data);
if(!data.cfml.forwardIfCurrent('{'))
throw new TemplateException(data.cfml,"switch statement must have a starting [{]");
Switch swit=new Switch(expr,line,null);
// cases
//Node child=null;
comments(data);
while(caseStatement(data,swit)) {
comments(data);
}
// default
if(defaultStatement(data,swit)) {
comments(data);
}
while(caseStatement(data,swit)) {
comments(data);
}
// }
if(!data.cfml.forwardIfCurrent('}'))
throw new TemplateException(data.cfml,"invalid construct in switch statement");
swit.setEnd(data.cfml.getPosition());
return swit;
}