CommandNode class sealed
The root of the typed command abstract-syntax tree (AST).
Every parser produces a tree of CommandNodes. The hierarchy is sealed
so analysis code can exhaustively switch over the concrete node types.
All nodes are immutable and provide structural equality.
- Implementers
- Annotations
-
- @immutable
Properties
-
children
→ List<
CommandNode> -
The direct child nodes of this node, in source order.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited
-
walk(
) → Iterable< CommandNode> - Visits this node and all of its descendants, depth-first (pre-order).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited