lib/Aegis/Parser.php
public function wrap(Node $node) : void
    {
        $last = $this->scope->getLastChild(); // Get the last inserted node
        $this->scope->removeLastChild(); // Remove it

        $this->insert($node);
        $this->traverseUp();

        $this->insert($last);
    }
public function wrap(Node $node) : void
    {
        $last = $this->scope->getLastChild(); // Get the last inserted node
        $this->scope->removeLastChild(); // Remove it

        $this->insert($node);
        $this->traverseUp();

        $this->insert($last);
    }
public function wrap ( Node $ node ) : void { $ last = $ this -> scope -> getLastChild ( ) ; // Get the last inserted node $ this -> scope -> removeLastChild ( ) ; // Remove it $ this -> insert ( $ node ) ; $ this -> traverseUp ( ) ; $ this -> insert ( $ last ) ; }
Wraps the last inserted node with the given node

@param Node $node
@return void
Wraps the last inserted node with the given node