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

Method visit

Tools/peg_generator/pegen/validator.py:66–67  ·  view source on GitHub ↗
(self, node: Any, parents: tuple[Any, ...] = ())

Source from the content-addressed store, hash-verified

64 """
65
66 def visit(self, node: Any, parents: tuple[Any, ...] = ()) -> None:
67 super().visit(node, parents=(*parents, node))
68
69 def visit_Cut(self, node: Alt, parents: tuple[Any, ...] = ()) -> None:
70 parent_types = [type(p).__name__ for p in parents]

Callers 15

visit_fileMethod · 0.45
validate_ruleMethod · 0.45
visit_ForcedMethod · 0.45
generate_callMethod · 0.45
generateMethod · 0.45
visit_RhsMethod · 0.45
join_conditionsMethod · 0.45
visit_NamedItemMethod · 0.45
visit_RhsMethod · 0.45
visit_AltMethod · 0.45

Calls 1

superClass · 0.85

Tested by

no test coverage detected