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

Method visitSum

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

Source from the content-addressed store, hash-verified

729 self.emit_sequence_constructor(name, get_c_type(name))
730
731 def visitSum(self, sum, name):
732 if not is_simple(sum):
733 self.emit_sequence_constructor(name, get_c_type(name))
734
735 def emit_sequence_constructor(self, name, type):
736 self.emit(f"GENERATE_ASDL_SEQ_CONSTRUCTOR({name}, {type})", depth=0)

Callers

nothing calls this directly

Calls 3

is_simpleFunction · 0.85
get_c_typeFunction · 0.85

Tested by

no test coverage detected