1<?php 2 3declare(strict_types=1); 4 5namespace Antlr\Antlr4\Runtime\Tree; 6 7/** 8 * Represents a token that was consumed during resynchronization 9 * rather than during a valid match operation. For example, 10 * we will create this kind of a node during single token insertion 11 * and deletion as well as during "consume until error recovery set" 12 * upon no viable alternative exceptions. 13 */ 14class ErrorNodeImpl extends TerminalNodeImpl implements ErrorNode 15{ 16 /** 17 * @return mixed 18 */ 19 public function accept(ParseTreeVisitor $visitor) 20 { 21 return $visitor->visitErrorNode($this); 22 } 23} 24