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

Method emit_body_struct

Parser/asdl_c.py:457–463  ·  view source on GitHub ↗
(self, name, args, attrs)

Source from the content-addressed store, hash-verified

455 emit("p->%s = %s;" % (argname, argname), 1)
456
457 def emit_body_struct(self, name, args, attrs):
458 def emit(s, depth=0, reflow=True):
459 self.emit(s, depth, reflow)
460 for argtype, argname, opt in args:
461 emit("p->%s = %s;" % (argname, argname), 1)
462 for argtype, argname, opt in attrs:
463 emit("p->%s = %s;" % (argname, argname), 1)
464
465
466class PickleVisitor(EmitVisitor):

Callers 1

emit_functionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected