(self, construction, val, data_type, fields)
| 20 | UNARY = 'unary' |
| 21 | BINARY = 'binary' |
| 22 | def __init__(self, construction, val, data_type, fields): |
| 23 | self.construction = construction |
| 24 | self.val = val |
| 25 | # unary or binary |
| 26 | self.data_type = data_type |
| 27 | self.fields = fields |
| 28 | |
| 29 | # determined after construction |
| 30 | self.depth = -1 |
| 31 | self.level = -1 |
| 32 | |
| 33 | def assign_depth_and_level(self, level=0): |
| 34 | self.level = level |
nothing calls this directly
no outgoing calls
no test coverage detected