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

Class Obj2ModPrototypeVisitor

Parser/asdl_c.py:488–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486
487
488class Obj2ModPrototypeVisitor(PickleVisitor):
489 def visitProduct(self, prod, name):
490 code = "static int obj2ast_%s(struct ast_state *state, PyObject* obj, %s* out, PyArena* arena);"
491 self.emit(code % (name, get_c_type(name)), 0)
492
493 visitSum = visitProduct
494
495
496class Obj2ModVisitor(PickleVisitor):

Callers 1

write_sourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…