Checks whether a given token matches the current lookahead.
@psalm-assert-if-true !=null $this->lookahead
T $type:
bool
public function isNextToken($type) { return $this->lookahead !== null && $this->lookahead ->isA($type); }