/** * @param Lexer $lexer */ public function endOfInput($lexer) { if (!$this->closed && !$this->closedSubpath) { $lexer->pushPathElement($this->buffer); } }