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

Method emit_body_union

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

Source from the content-addressed store, hash-verified

446 emit("")
447
448 def emit_body_union(self, name, args, attrs):
449 def emit(s, depth=0, reflow=True):
450 self.emit(s, depth, reflow)
451 emit("p->kind = %s_kind;" % name, 1)
452 for argtype, argname, opt in args:
453 emit("p->v.%s.%s = %s;" % (name, argname, argname), 1)
454 for argtype, argname, opt in attrs:
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):

Callers 1

emit_functionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected