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

Method _check_for_errors

Tools/peg_generator/pegen/c_generator.py:558–562  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

556 self.print("UNUSED(_end_col_offset); // Only used by EXTRA macro")
557
558 def _check_for_errors(self) -> None:
559 self.print("if (p->error_indicator) {")
560 with self.indent():
561 self.add_return("NULL")
562 self.print("}")
563
564 def _set_up_rule_memoization(self, node: Rule, result_type: str) -> None:
565 self.print("{")

Callers 3

visit_AltMethod · 0.95

Calls 3

add_returnMethod · 0.95
printMethod · 0.45
indentMethod · 0.45

Tested by

no test coverage detected