src/Jit/Parser.php
protected function _assignLines($node)
    {
        if (!$this->_states['lines']) {
            return;
        }

        $body = $node->body;
        $num = $this->_states['num'];
        $lines = explode("\n", $body);
        $nb = count($lines) - 1;
        $this->_states['num'] += $nb;

        foreach ($lines as $i => $line) {
            $this->_assignLine($num + $i, $node, $line);
        }

        $node->parent->lines['stop'] = $this->_states['num'] - (trim($lines[$nb]) ? 0 : 1);
    }
protected function _assignLines($node)
    {
        if (!$this->_states['lines']) {
            return;
        }

        $body = $node->body;
        $num = $this->_states['num'];
        $lines = explode("\n", $body);
        $nb = count($lines) - 1;
        $this->_states['num'] += $nb;

        foreach ($lines as $i => $line) {
            $this->_assignLine($num + $i, $node, $line);
        }

        $node->parent->lines['stop'] = $this->_states['num'] - (trim($lines[$nb]) ? 0 : 1);
    }
protected function _assignLines ( $ node ) { if ( ! $ this -> _states [ 'lines' ] ) { return ; } $ body = $ node -> body ; $ num = $ this -> _states [ 'num' ] ; $ lines = explode ( "\n" , $ body ) ; $ nb = count ( $ lines ) - 1 ; $ this -> _states [ 'num' ] += $ nb ; foreach ( $ lines as $ i => $ line ) { $ this -> _assignLine ( $ num + $ i , $ node , $ line ) ; } $ node -> parent -> lines [ 'stop' ] = $ this -> _states [ 'num' ] - ( trim ( $ lines [ $ nb ] ) ? 0 : 1 ) ; }
Assign the node to some lines and makes them availaible at the root node.

@param object  $node The node to match.
@param string  $body The  to match.
Assign the node to some lines and makes them availaible at the root node .