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