Lines Matching refs:cons
176 def visitConstructor(self, cons, depth): argument
177 if cons.fields:
179 for f in cons.fields:
181 self.emit("} %s;" % cons.name, depth)
252 def visitConstructor(self, cons, type, attrs): argument
253 args = self.get_args(cons.fields)
256 self.emit_function(cons.name, ctype, args, attrs)
348 def visitConstructor(self, cons, name): argument
588 def visitConstructor(self, cons, name): argument
589 self.emit("static PyTypeObject *%s_type;" % cons.name, 0)
590 if cons.fields:
591 self.emit("static char *%s_fields[]={" % cons.name, 0)
592 for t in cons.fields:
916 def visitConstructor(self, cons, name, simple): argument
917 if cons.fields:
918 fields = cons.name.value+"_fields"
922 (cons.name, cons.name, name, fields, len(cons.fields)), 1)
923 self.emit("if (!%s_type) return 0;" % cons.name, 1)
926 (cons.name, cons.name), 1)
927 self.emit("if (!%s_singleton) return 0;" % cons.name, 1)
960 def visitConstructor(self, cons, name): argument
961 self.addObj(cons.name)
1059 def visitConstructor(self, cons, enum, name): argument
1060 self.emit("case %s_kind:" % cons.name, 1)
1061 self.emit("result = PyType_GenericNew(%s_type, NULL, NULL);" % cons.name, 2);
1063 for f in cons.fields:
1064 self.visitField(f, cons.name, 2, False)