Expand description
Port of src/ast/walk.ts: iterators of Arena::walk and Arena::walk_values.
The walkers do not borrow the arena: next() takes it. the children of the node returned by the last call are
read by the next call, the caller may modify the node in between.
Structs§
- Node
Walker - iterator of
Arena::walk: node ids (and value tokens whenattributesis set) in document order - Value
Walker - iterator of
Arena::walk_values: token ids in document order - Walker
Options - options of
Arena::walk - Walker
Value Options - options of
Arena::walk_values
Enums§
- Walker
Value Result - value returned by a value walker filter: an option or token ids to walk next
- Walker
Value Type - token type filter of
WalkerValueOptions
Functions§
- push_
values - push the direct value tokens of a token onto a stack: the token list, then the fields of a structured token. pushed in order, then reversed in place (unless reverse) so that they are popped in order
Type Aliases§
- Walker
Filter - filter of
Arena::walk - Walker
Option - value returned by a walker filter:
WalkerOption(aWalkerOptionEnumcombination or nothing) - Walker
Value Filter - filter of
Arena::walk_values