Package com.google.caja.parser.js

Examples of com.google.caja.parser.js.DefaultCaseStmt


    return withBody(sc, new Block(sc.getBody().getFilePosition()));
  }

  private static SwitchCase withBody(SwitchCase sc, Block body) {
    if (sc instanceof DefaultCaseStmt) {
      return new DefaultCaseStmt(sc.getFilePosition(), body);
    } else {
      CaseStmt cs = (CaseStmt) sc;
      return new CaseStmt(sc.getFilePosition(), cs.getCaseValue(), body);
    }
  }
View Full Code Here


    return withBody(sc, new Block(sc.getBody().getFilePosition()));
  }

  private static SwitchCase withBody(SwitchCase sc, Block body) {
    if (sc instanceof DefaultCaseStmt) {
      return new DefaultCaseStmt(sc.getFilePosition(), body);
    } else {
      CaseStmt cs = (CaseStmt) sc;
      return new CaseStmt(sc.getFilePosition(), cs.getCaseValue(), body);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.caja.parser.js.DefaultCaseStmt

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.