src/Parser.php
private function getNextExpanderNode()
    {
        if ($this->endOfPattern()) {
            return ;
        }

        $expander = new AST\Expander($this->getExpanderName());

        if ($this->endOfPattern()) {
            $this->unexpectedEndOfString(')');
        }

        $this->addArgumentValues($expander);

        if ($this->endOfPattern()) {
            $this->unexpectedEndOfString(')');
        }

        if (!$this->isNextCloseParenthesis()) {
            $this->unexpectedSyntaxError($this->lexer->lookahead, ')');
        }

        return $expander;
    }
private function getNextExpanderNode()
    {
        if ($this->endOfPattern()) {
            return ;
        }

        $expander = new AST\Expander($this->getExpanderName());

        if ($this->endOfPattern()) {
            $this->unexpectedEndOfString(')');
        }

        $this->addArgumentValues($expander);

        if ($this->endOfPattern()) {
            $this->unexpectedEndOfString(')');
        }

        if (!$this->isNextCloseParenthesis()) {
            $this->unexpectedSyntaxError($this->lexer->lookahead, ')');
        }

        return $expander;
    }
private function getNextExpanderNode ( ) { if ( $ this -> endOfPattern ( ) ) { return ; } $ expander = new AST \ Expander ( $ this -> getExpanderName ( ) ) ; if ( $ this -> endOfPattern ( ) ) { $ this -> unexpectedEndOfString ( ')' ) ; } $ this -> addArgumentValues ( $ expander ) ; if ( $ this -> endOfPattern ( ) ) { $ this -> unexpectedEndOfString ( ')' ) ; } if ( ! $ this -> isNextCloseParenthesis ( ) ) { $ this -> unexpectedSyntaxError ( $ this -> lexer -> lookahead , ')' ) ; } return $ expander ; }
Try to get next expander, return null if there is no expander left

@return AST\Expander|null
Try to get next expander return null if there is no expander left