Ejemplo n.º 1
0
  // FIXME: This is a hot mess and I think we will still have some extra nulls inserted
  @Override
  public List<Node> childNodes() {
    ListNode post = getPost();
    ListNode keywords = getKeywords();
    ListNode pre = getPre();
    ListNode optArgs = getOptArgs();

    if (post != null) {
      if (keywords != null) {
        if (keyRest != null)
          return Node.createList(pre, optArgs, restArgNode, post, keywords, keyRest, blockArgNode);

        return Node.createList(pre, optArgs, restArgNode, post, keywords, blockArgNode);
      }

      return Node.createList(pre, optArgs, restArgNode, post, blockArgNode);
    }

    if (keywords != null) {
      if (keyRest != null)
        return Node.createList(pre, optArgs, restArgNode, keywords, keyRest, blockArgNode);

      return Node.createList(pre, optArgs, restArgNode, keywords, blockArgNode);
    }

    return Node.createList(pre, optArgs, restArgNode, blockArgNode);
  }
Ejemplo n.º 2
0
 public List<Node> childNodes() {
   return Node.createList(varNode, bodyNode);
 }
Ejemplo n.º 3
0
 @Override
 public List<Node> childNodes() {
   return Node.createList(getVarNode(), getBodyNode(), iterNode);
 }
Ejemplo n.º 4
0
 public List<Node> childNodes() {
   return Node.createList(pre, rest, getValueNode());
 }
Ejemplo n.º 5
0
 public List<Node> childNodes() {
   return Node.createList(firstNode, secondNode);
 }