Kahlan\Jit\TokenStream::skipWhitespaces PHP Method

skipWhitespaces() public method

Skips whitespaces and comments next to the current position.
public skipWhitespaces ( boolean $skipComment = false ) : The
$skipComment boolean Skip docblocks as well.
return The skipped string.
    public function skipWhitespaces($skipComment = false)
    {
        $skips = [T_WHITESPACE => true];
        if (!$skipComment) {
            $skips += [T_COMMENT => true, T_DOC_COMMENT => true];
        }
        $this->_current++;
        return $this->_skip($skips);
    }