module documentation

Undocumented

Function traverse Traverse the syntax tree, recursively yielding children.
Variable ​Traverse​Result Undocumented
def traverse(source, klass=None, depth=None, include_source=False):
Traverse the syntax tree, recursively yielding children.
Parameters
sourceThe source syntax token
klassfilter children by a certain token class
depth:intThe depth to recurse into the tree
include​_source:boolwhether to first yield the source element
Yields
A container for an element, its parent and depth
TraverseResult =

Undocumented