Lines Matching defs:comment
110 def __init__(self, name, opt_type, comment, version):
113 self.comment = comment.strip()
126 s += ":ref:`ΒΆ <%s>`\n%s" % (self.name, doxygen2rst(indent(self.comment, 2)))
138 def __init__(self, name, comment):
140 self.comment = comment.strip()
144 return self.comment + "\n" + "\n".join(map(str, self.values))
148 def __init__(self, name, comment, version):
150 self.comment = comment.strip()
158 doxygen2rst(indent(self.comment, 2, indent_first_line=False)),
162 doxygen2rst(indent(self.comment, 2, indent_first_line=False)),
167 def __init__(self, name, comment):
169 self.comment = comment.strip()
177 def __init__(self, name, enumtype, comment, version, values):
179 self.comment = comment
191 doxygen2rst(indent(self.comment, 2)),
197 doxygen2rst(indent(self.comment, 2)),
205 def __init__(self, name, comment, config):
207 self.comment = comment
214 doxygen2rst(indent(self.comment, 2)),
309 comment = ""
324 comment = self.__clean_comment_line(line)
336 comment += self.__clean_comment_line(line)
340 enum = Enum(name, comment)
344 nested_struct = NestedStruct(name, comment)
359 option = Option(str(field_name), str(field_type), comment, version)
364 "Invalid format, expected comment, field or enum\n" + line
369 comment = self.__clean_comment_line(line)
379 comment += self.__clean_comment_line(line)
383 enum = Enum(name, comment)
396 comment,
403 NestedField(field_type + " " + field_name, comment, version)
409 comment = self.__clean_comment_line(line)
420 comment = self.__clean_comment_line(line)
430 comment += self.__clean_comment_line(line)
440 enum.values.append(EnumValue(val, comment, config))
443 comment += self.__clean_comment_line(line)
453 enum.values.append(EnumValue(val, comment, config))