Package uk.co.badgersinfoil.metaas.impl.antlr

Examples of uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTree.addChildWithTokens()


  }

  private ASArg addNamedRestParam(String name) {
    LinkedListTree param = ASTUtils.newAST(AS3Parser.PARAM);
    param.addChildWithTokens(ASTUtils.newAST(AS3Parser.REST, ELLIPSIS));
    param.addChildWithTokens(ASTUtils.newAST(AS3Parser.IDENT, name));
    return param(param);
  }

  public ASArg removeParam(String name) {
    LinkedListTree params = ASTUtils.findChildByType(ast, AS3Parser.PARAMS);
View Full Code Here


      trailingNL = (LinkedListTree)ast.getChild(lastIndex);
    }
    LinkedListTree tag = DocCommentUtils.parseParaTag(ast.getFirstChild().getText()+" "+text);
    replaceNLs(tag, indentNL);
    if (trailingNL != null) {
      tag.addChildWithTokens(trailingNL);
    }
    LinkedListTree parent = ast.getParent();
    int pos = parent.getIndexOfChild(ast);
    parent.setChildWithTokens(pos, tag);
View Full Code Here

    LinkedListTree params = findOrAddParams();
    if (params.getChildCount() > 0) {
      params.appendToken(TokenBuilder.newComma());
      params.appendToken(TokenBuilder.newSpace());
    }
    params.addChildWithTokens(str);
  }

  public void addParam(int constant) {
    addParam(toAST(constant));
  }
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.