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

Method goto_error

Tools/cases_generator/generators_common.py:229–234  ·  view source on GitHub ↗
(self, offset: int, storage: Storage)

Source from the content-addressed store, hash-verified

227 raise NotImplementedError("GOTO_TIER_ONE not supported in tier 1")
228
229 def goto_error(self, offset: int, storage: Storage) -> str:
230 if offset > 0:
231 return f"{self.jump_prefix}JUMP_TO_LABEL(pop_{offset}_error);"
232 if offset < 0:
233 storage.copy().flush(self.out)
234 return f"{self.jump_prefix}JUMP_TO_LABEL(error);"
235
236 def error_if(
237 self,

Callers 2

error_ifMethod · 0.95
error_no_popMethod · 0.95

Calls 2

flushMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected