Lines Matching refs:plural
66 def field(self, type, name, nullable, plural): argument
69 self._fields.append((type, name, nullable, plural))
97 for (type, name, nullable, plural) in self._fields:
99 if plural:
117 def ctor_arg(type, name, plural): argument
118 if plural:
123 print(',\n'.join(ctor_arg(type, name, plural)
124 for (type, name, nullable, plural) in self._fields), file=self._deferredOutput)
126 def ctor_init(type, name, plural): argument
133 print(',\n'.join(ctor_init(type, name, plural)
134 for (type, name, nullable, plural)
138 def _getter_type(self, type, nullable, plural): argument
139 if plural and nullable:
141 elif plural:
155 def _getter_value_to_return(self, raw_value, type, nullable, plural): argument
156 if plural and nullable:
158 elif plural:
168 for (type, name, nullable, plural) in self._fields:
170 self._getter_type(type, nullable, plural),
173 … self._getter_value_to_return(name + '_', type, nullable, plural)), file=self._deferredOutput)