Lines Matching refs:cons
177 def visitConstructor(self, cons, depth): argument
178 if cons.fields:
180 for f in cons.fields:
182 self.emit("} %s;" % cons.name, depth)
255 def visitConstructor(self, cons, type, attrs): argument
256 args = self.get_args(cons.fields)
259 self.emit_function(cons.name, ctype, args, attrs)
353 def visitConstructor(self, cons, name): argument
611 def visitConstructor(self, cons, name): argument
612 self.emit("static PyTypeObject *%s_type;" % cons.name, 0)
613 if cons.fields:
614 for t in cons.fields:
616 self.emit("static char *%s_fields[]={" % cons.name, 0)
617 for t in cons.fields:
1007 def visitConstructor(self, cons, name, simple): argument
1008 if cons.fields:
1009 fields = cons.name+"_fields"
1013 (cons.name, cons.name, name, fields, len(cons.fields)), 1)
1014 self.emit("if (!%s_type) return 0;" % cons.name, 1)
1017 (cons.name, cons.name), 1)
1018 self.emit("if (!%s_singleton) return 0;" % cons.name, 1)
1051 def visitConstructor(self, cons, name): argument
1052 self.addObj(cons.name)
1156 def visitConstructor(self, cons, enum, name): argument
1157 self.emit("case %s_kind:" % cons.name, 1)
1158 self.emit("result = PyType_GenericNew(%s_type, NULL, NULL);" % cons.name, 2);
1160 for f in cons.fields:
1161 self.visitField(f, cons.name, 2, False)