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

Method visitConstructor

Parser/asdl_c.py:305–311  ·  view source on GitHub ↗
(self, cons, depth)

Source from the content-addressed store, hash-verified

303 emit("")
304
305 def visitConstructor(self, cons, depth):
306 if cons.fields:
307 self.emit("struct {", depth)
308 for f in cons.fields:
309 self.visit(f, depth + 1)
310 self.emit("} %s;" % cons.name, depth)
311 self.emit("", depth)
312
313 def visitField(self, field, depth):
314 # XXX need to lookup field.type, because it might be something

Callers

nothing calls this directly

Calls 2

emitMethod · 0.95
visitMethod · 0.45

Tested by

no test coverage detected