Add a new node that this node will send data to

@param Node $node The node that data will be sent to

@return Node The new node
504503
public function pipe($node)
    {
        array_push($this->destinations, $node);
        $node->source($this);
        return $node;
    }
1077566
private function addNode(NodeInterface $node)
    {
        $this->nodeIndex++;
        $this->graph['nodes'][] = $node->toArray();

        return $this->nodeIndex;
    }
225254
public function addChild(TreeNodeInterface $node)
    {
        $this->children[] = $node;
        $node->setParent($this);

        return $this;
    }
194565
public function setChild(self $node)
    {
        $this->removeChildrenOfType($node->getNodeType());

        return $this->addChild($node);
    }
1094713
public function mutate(Node $node)
    {
        $currentFunctionName = $this->getNormalizedFunctionName($node->name);

        $mutateToFunctions = array_diff(self::MUTATORS_MAP, [$currentFunctionName]);

        foreach ($mutateToFunctions as $functionName) {
            yield new Node\Expr\FuncCall(
                new Node\Name($functionName),
                [$node->args[0]],
                $node->getAttributes()
            );
        }
    }
54472
public function append(Node $node) : bool
    {
        $node->parent = $this;

        return $this->childNodes->add($node);
    }
151682
public function then($node)
    {
        $this->_map = $this->prepare()->first(false);

        $this->from($node);

        return $this;
    }
1118103
protected function openNode( Node$node ):self
	{
		array_push($this->openedNodes,$node);

		$node->scope and $this->setScope($node);

		return $this;
	}
949837
public function mutate(Node $node)
    {
        return new Node\Expr\BinaryOp\Minus($node->left, $node->right, $node->getAttributes());
    }
391191
public function mutate(Node $node)
    {
        return new Node\Expr\AssignOp\Div($node->var, $node->expr, $node->getAttributes());
    }
833289
public function addNode(Node $node)
    {
        if (array_key_exists($node->basename(), $this->children)) {
            throw new FileExistsException(sprintf('%s already exists', $node->basename()));
        }

        $this->children[$node->basename()] = $node;
        $node->setParent($this);
    }
530880
public function addNode(Node $child)
    {
        $this->children[] = $child;
        $child->setParent($this);

        return $this;
    }
539805
public function moveNode(Node $node, Node $parent)
    {
        $node->setParent($parent)->updateId();
        $this->idList[$node->id] = $node;

        return $this;
    }
1104727
public function add(NodeInterface $node)
	{
		$max = $this->getMax();
		$node->setLeftValue($max + 1);
		$node->setRightValue($max + 2);
		$node->setLevel(0);
	}
624637
public function enterNode(Node $node)
    {
        if ($node instanceof Namespace_) {
            $this->resetContext($node->name);
        }

        $this->recordDoc($node->getAttribute('comments', []));

        return $node;
    }
869747
public function addChild(self $node)
	{
		$index = count($this->node_children);
		$this->insertChildAt($index, $node);
	}
1218120
public function addChild(Node $child)
    {

        if (!isset($this->relations['children'])) {
            $this->relations['children'] = [];
        }

        $this->relations['children'][] = $child;
        return $this;
    }