Package railo.transformer.bytecode.statement

Examples of railo.transformer.bytecode.statement.Switch


    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;
  }
View Full Code Here

TOP

Related Classes of railo.transformer.bytecode.statement.Switch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.