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

Method visitConstructor

Parser/asdl_c.py:766–771  ·  view source on GitHub ↗
(self, cons, name)

Source from the content-addressed store, hash-verified

764 self.visitConstructor(t, name)
765
766 def visitConstructor(self, cons, name):
767 if cons.fields:
768 self.emit("static const char * const %s_fields[]={" % cons.name, 0)
769 for t in cons.fields:
770 self.emit('"%s",' % t.name, 1)
771 self.emit("};",0)
772
773
774class AnnotationsVisitor(PickleVisitor):

Callers 1

visitSumMethod · 0.95

Calls 1

emitMethod · 0.45

Tested by

no test coverage detected