src/Jit/Parser.php
protected function _namespaceNode()
    {
        $this->_codeNode();
        $this->_flushUses();
        $body = $this->_stream->current();
        $name = $this->_stream->next([';', '{']);
        $this->_states['body'] .= $body;
        $node = new BlockDef($body . $name, 'namespace');
        $node->hasMethods = false;
        $node->name = trim(substr($name, 0, -1));
        $this->_states['current'] = $this->_root;
        $this->_contextualize($node);
        return $this->_states['current'] = $node->namespace = $node;
    }
protected function _namespaceNode()
    {
        $this->_codeNode();
        $this->_flushUses();
        $body = $this->_stream->current();
        $name = $this->_stream->next([';', '{']);
        $this->_states['body'] .= $body;
        $node = new BlockDef($body . $name, 'namespace');
        $node->hasMethods = false;
        $node->name = trim(substr($name, 0, -1));
        $this->_states['current'] = $this->_root;
        $this->_contextualize($node);
        return $this->_states['current'] = $node->namespace = $node;
    }
protected function _namespaceNode ( ) { $ this -> _codeNode ( ) ; $ this -> _flushUses ( ) ; $ body = $ this -> _stream -> current ( ) ; $ name = $ this -> _stream -> next ( [ ';' , '{' ] ) ; $ this -> _states [ 'body' ] .= $ body ; $ node = new BlockDef ( $ body . $ name , 'namespace' ) ; $ node -> hasMethods = false ; $ node -> name = trim ( substr ( $ name , 0 , - 1 ) ) ; $ this -> _states [ 'current' ] = $ this -> _root ; $ this -> _contextualize ( $ node ) ; return $ this -> _states [ 'current' ] = $ node -> namespace = $ node ; }
Build a namespace node.
Build a namespace node .