ParseTreeNode class
Represents a node in the parse tree with its full context
Constructors
- ParseTreeNode(ParseResult result, {ParseTreeNode? parent, int depth = 0})
Properties
-
children
→ List<
ParseTreeNode> -
Get all child nodes
no setter
- depth → int
-
The depth of this node in the tree (0 = root)
final
- element → String?
-
Get the parser element name
no setter
- hasChildren → bool
-
Returns true if this node has any children
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- lexeme → String?
-
Get the lexeme (matched text) for this node
no setter
- parent → ParseTreeNode?
-
The parent node, null for root
final
- result → ParseResult
-
The parse result for this node
final
- ruleName → String?
-
Get the rule name that created this node
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited