protected function parseBody(TokenStream $stream)
    {
        $visibility = $this->skip($stream)->expect(array(Lexer::TOKEN_PUBL, Lexer::TOKEN_PROT, Lexer::TOKEN_PRIV));
        $name = $this->skip($stream)->expect(array(Lexer::TOKEN_NODE));

        if ($this->skip($stream)->is(Lexer::TOKEN_METO)) {
            $this->parseMethod($stream, $visibility, $name);
        } else {
            $this->parseProperty($stream, $visibility, $name);
        }
    }
protected function parseBody(TokenStream $stream)
    {
        $visibility = $this->skip($stream)->expect(array(Lexer::TOKEN_PUBL, Lexer::TOKEN_PROT, Lexer::TOKEN_PRIV));
        $name = $this->skip($stream)->expect(array(Lexer::TOKEN_NODE));

        if ($this->skip($stream)->is(Lexer::TOKEN_METO)) {
            $this->parseMethod($stream, $visibility, $name);
        } else {
            $this->parseProperty($stream, $visibility, $name);
        }
    }
protected function parseBody ( TokenStream $ stream ) { $ visibility = $ this -> skip ( $ stream ) -> expect ( array ( Lexer :: TOKEN_PUBL , Lexer :: TOKEN_PROT , Lexer :: TOKEN_PRIV ) ) ; $ name = $ this -> skip ( $ stream ) -> expect ( array ( Lexer :: TOKEN_NODE ) ) ; if ( $ this -> skip ( $ stream ) -> is ( Lexer :: TOKEN_METO ) ) { $ this -> parseMethod ( $ stream , $ visibility , $ name ) ; } else { $ this -> parseProperty ( $ stream , $ visibility , $ name ) ; } }
Parses field and method tokens

@param TokenStream $stream
Parses field and method tokens