Looks at the next token.
public function look(int $number = 1) : Token { if (!isset($this->tokens[$this->current + $number])) { throw new SyntaxError('Unexpected end of template.', $this->tokens[$this->current + $number - 1] ->getLine(), $this->source); } return $this->tokens[$this->current + $number]; }