Undocumented
Function | traverse |
Traverse the syntax tree, recursively yielding children. |
Variable | TraverseResult |
Undocumented |
Parameters | |
source | The source syntax token |
klass | filter children by a certain token class |
depth:int | The depth to recurse into the tree |
include_source:bool | whether to first yield the source element |
Yields | |
A container for an element, its parent and depth |