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

Method visitSum

Parser/asdl_c.py:354–359  ·  view source on GitHub ↗
(self, sum, name)

Source from the content-addressed store, hash-verified

352 self.visit(type.value, type.name)
353
354 def visitSum(self, sum, name):
355 if is_simple(sum):
356 pass # XXX
357 else:
358 for t in sum.types:
359 self.visit(t, name, sum.attributes)
360
361 def get_args(self, fields):
362 """Return list of C argument info, one for each field.

Callers

nothing calls this directly

Calls 2

is_simpleFunction · 0.85
visitMethod · 0.45

Tested by

no test coverage detected