1 /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
2 * Use of this file is governed by the BSD 3-clause license that
3 * can be found in the LICENSE.txt file in the project root.
8 #include "tree/ErrorNode.h"
9 #include "tree/TerminalNodeImpl.h"
10 #include "misc/Interval.h"
12 #include "support/Any.h"
18 /// Represents a token that was consumed during resynchronization
19 /// rather than during a valid match operation. For example,
20 /// we will create this kind of a node during single token insertion
21 /// and deletion as well as during "consume until error recovery set"
22 /// upon no viable alternative exceptions.
24 class ANTLR4CPP_PUBLIC ErrorNodeImpl : public virtual TerminalNodeImpl, public virtual ErrorNode {
26 ErrorNodeImpl(Token *token);
27 ~ErrorNodeImpl() override;
29 virtual antlrcpp::Any accept(ParseTreeVisitor *visitor) override;