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

Method join_conditions

Tools/peg_generator/pegen/c_generator.py:727–737  ·  view source on GitHub ↗
(self, keyword: str, node: Any)

Source from the content-addressed store, hash-verified

725 self.visit(alt, is_loop=is_loop, is_gather=is_gather, rulename=rulename)
726
727 def join_conditions(self, keyword: str, node: Any) -> None:
728 self.print(f"{keyword} (")
729 with self.indent():
730 first = True
731 for item in node.items:
732 if first:
733 first = False
734 else:
735 self.print("&&")
736 self.visit(item)
737 self.print(")")
738
739 def emit_action(self, node: Alt, cleanup_code: str | None = None) -> None:
740 self.print(f"_res = {node.action};")

Callers 2

handle_alt_normalMethod · 0.95
handle_alt_loopMethod · 0.95

Calls 3

printMethod · 0.45
indentMethod · 0.45
visitMethod · 0.45

Tested by

no test coverage detected