MCPcopy Index your code
hub / github.com/python/cpython / traverse

Method traverse

Lib/_ast_unparse.py:179–184  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

177 return f" # type: {comment}"
178
179 def traverse(self, node):
180 if isinstance(node, list):
181 for item in node:
182 self.traverse(item)
183 else:
184 super().visit(node)
185
186 # Note: as visit() resets the output text, do NOT rely on
187 # NodeVisitor.generic_visit to handle any nodes (as it calls back in to

Callers 15

visitMethod · 0.95
visit_FunctionTypeMethod · 0.95
visit_ExprMethod · 0.95
visit_NamedExprMethod · 0.95
visit_AssignMethod · 0.95
visit_AugAssignMethod · 0.95
visit_AnnAssignMethod · 0.95
visit_ReturnMethod · 0.95
visit_AssertMethod · 0.95
visit_AwaitMethod · 0.95
visit_YieldMethod · 0.95

Calls 2

superClass · 0.85
visitMethod · 0.45

Tested by

no test coverage detected