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

Method emit_at

Tools/cases_generator/cwriter.py:41–44  ·  view source on GitHub ↗
(self, txt: str, where: Token)

Source from the content-addressed store, hash-verified

39 self.newline = False
40
41 def emit_at(self, txt: str, where: Token) -> None:
42 self.maybe_write_spill()
43 self.set_position(where)
44 self.out.write(txt)
45
46 def maybe_dedent(self, txt: str) -> None:
47 parens = txt.count("(") - txt.count(")")

Callers 7

decref_inputsFunction · 0.80
error_ifMethod · 0.80
exit_ifMethod · 0.80
opargMethod · 0.80
exit_if_afterMethod · 0.80
error_ifMethod · 0.80
error_no_popMethod · 0.80

Calls 3

maybe_write_spillMethod · 0.95
set_positionMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected