ErrorNodeImpl class

Represents a token that was consumed during resynchronization rather than during a valid match operation. For example, we will create this kind of a node during single token insertion and deletion as well as during "consume until error recovery set" upon no viable alternative exceptions.

Inheritance
Implemented types

Constructors

ErrorNodeImpl(dynamic token)

Properties

childCount int
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
parent ParseTree?
covariantgetter/setter pairinherited
payload Token?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceInterval Interval
Return an Interval indicating the index in the TokenStream of the first and last token associated with this subtree. If this node is a leaf, then the interval represents a single token and has interval i..i for token index i.
no setterinherited
symbol Token
getter/setter pairinherited
text String?
Return the combined text of all leaf nodes. Does not get any off-channel tokens (if any) so won't return whitespace and comments if they are sent to parser on hidden channel.
no setterinherited

Methods

accept<T>(ParseTreeVisitor<T> visitor) → T?
The ParseTreeVisitor needs a double dispatch method. */
override
getChild<T>(int i) ParseTree?
inherited
isErrorNode() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toStringTree({Parser? parser}) String
Specialize toStringTree so that it can print out more information based upon the parser.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited