Examples of UnknownAtRule


Examples of com.github.sommeri.less4j.core.ast.UnknownAtRule

  }

  @Override
  public UnknownAtRule handleUnknownAtRule(HiddenTokenAwareTree token) {
    Iterator<HiddenTokenAwareTree> children = token.getChildren().iterator();
    UnknownAtRule result = new UnknownAtRule(token, children.next().getText());
    while (children.hasNext()) {
      HiddenTokenAwareTree next = children.next();
      switch (next.getType()) {
      case LessLexer.UNKNOWN_AT_RULE_NAMES_SET:
        result.addNames(handleUnknownAtRuleDeclaration(next));
        break;

      case LessLexer.BODY:
        result.setBody(handleGeneralBody(next));
        break;

      case LessLexer.SEMI:
        result.setSemicolon(toSyntaxOnlyElement(next));
        break;

      default:
        throw new BugHappened(GRAMMAR_MISMATCH, next);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.