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

Class Product

Parser/asdl.py:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 return 'Sum({0.types})'.format(self)
120
121class Product(AST):
122 def __init__(self, fields, attributes=None):
123 self.fields = fields
124 self.attributes = attributes or []
125
126 def __repr__(self):
127 if self.attributes:
128 return 'Product({0.fields}, {0.attributes})'.format(self)
129 else:
130 return 'Product({0.fields})'.format(self)
131
132# A generic visitor for the meta-AST that describes ASDL. This can be used by
133# emitters. Note that this visitor does not provide a generic visit method, so a

Callers 1

_parse_productMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…