public function next($docCommentIsComment = TRUE)
    {
        for ($i = $this->pointer; $i < $this->numTokens; $i++) {
            $this->pointer++;
            if ($this->tokens[$i][0] === T_WHITESPACE ||
                $this->tokens[$i][0] === T_COMMENT ||
                ($docCommentIsComment && $this->tokens[$i][0] === T_DOC_COMMENT)) {

                continue;
            }

            return $this->tokens[$i];
        }

        return null;
    }
public function next($docCommentIsComment = TRUE)
    {
        for ($i = $this->pointer; $i < $this->numTokens; $i++) {
            $this->pointer++;
            if ($this->tokens[$i][0] === T_WHITESPACE ||
                $this->tokens[$i][0] === T_COMMENT ||
                ($docCommentIsComment && $this->tokens[$i][0] === T_DOC_COMMENT)) {

                continue;
            }

            return $this->tokens[$i];
        }

        return null;
    }
public function next ( $ docCommentIsComment = TRUE ) { for ( $ i = $ this -> pointer ; $ i < $ this -> numTokens ; $ i ++ ) { $ this -> pointer ++ ; if ( $ this -> tokens [ $ i ] [ 0 ] === T_WHITESPACE || $ this -> tokens [ $ i ] [ 0 ] === T_COMMENT || ( $ docCommentIsComment && $ this -> tokens [ $ i ] [ 0 ] === T_DOC_COMMENT ) ) { continue ; } return $ this -> tokens [ $ i ] ; } return null ; }
Gets the next non whitespace and non comment token.

@param boolean $docCommentIsComment If TRUE then a doc comment is considered a comment and skipped.
If FALSE then only whitespace and normal comments are skipped.

@return array|string|null The token if exists, null otherwise.
Gets the next non whitespace and non comment token .