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

Method visitConstructor

Parser/asdl_c.py:186–188  ·  view source on GitHub ↗
(self, constructor)

Source from the content-addressed store, hash-verified

184 self.visitFields(sum.attributes)
185
186 def visitConstructor(self, constructor):
187 self.metadata.types.add(constructor.name)
188 self.visitFields(constructor.fields)
189
190 def visitProduct(self, product, name):
191 self.metadata.types.add(name)

Callers 1

visitSumMethod · 0.95

Calls 2

visitFieldsMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected