parseStatement example


    
    /** * Parses a statement list item * * @return Node\Statement|Node\Declaration|null */
    protected function parseStatementListItem()
    {
        if ($declaration = $this->parseDeclaration()) {
            return $declaration;
        } elseif ($statement = $this->parseStatement()) {
            return $statement;
        }
        return null;
    }
    
    /** * Parses a statement * * @return Node\Statement|null */
    protected function parseStatement()
    {
Home | Imprint | This part of the site doesn't use cookies.