(self, sum, name)
| 751 | self.emit("};", 0) |
| 752 | |
| 753 | def visitSum(self, sum, name): |
| 754 | if sum.attributes: |
| 755 | self.emit("static const char * const %s_attributes[] = {" % name, 0) |
| 756 | for a in sum.attributes: |
| 757 | self.emit('"%s",' % a.name, 1) |
| 758 | self.emit("};", 0) |
| 759 | ptype = "void*" |
| 760 | if is_simple(sum): |
| 761 | ptype = get_c_type(name) |
| 762 | self.emit("static PyObject* ast2obj_%s(struct ast_state *state, %s);" % (name, ptype), 0) |
| 763 | for t in sum.types: |
| 764 | self.visitConstructor(t, name) |
| 765 | |
| 766 | def visitConstructor(self, cons, name): |
| 767 | if cons.fields: |
nothing calls this directly
no test coverage detected