(self, cons, depth)
| 303 | emit("") |
| 304 | |
| 305 | def visitConstructor(self, cons, depth): |
| 306 | if cons.fields: |
| 307 | self.emit("struct {", depth) |
| 308 | for f in cons.fields: |
| 309 | self.visit(f, depth + 1) |
| 310 | self.emit("} %s;" % cons.name, depth) |
| 311 | self.emit("", depth) |
| 312 | |
| 313 | def visitField(self, field, depth): |
| 314 | # XXX need to lookup field.type, because it might be something |