// 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); }
public List<Node> childNodes() { return Node.createList(varNode, bodyNode); }
@Override public List<Node> childNodes() { return Node.createList(getVarNode(), getBodyNode(), iterNode); }
public List<Node> childNodes() { return Node.createList(pre, rest, getValueNode()); }
public List<Node> childNodes() { return Node.createList(firstNode, secondNode); }