Lines Matching defs:comment
35 def __init__(self, name, type, comment):
38 self.comment = comment.strip()
44 doxygen2rst(indent(self.comment, 2)))
53 def __init__(self, name, comment):
55 self.comment = comment.strip()
62 def __init__(self, name, comment):
64 self.comment = comment.strip()
69 doxygen2rst(indent(self.comment, 2, indent_first_line=False)))
72 def __init__(self, name, comment):
74 self.comment = comment.strip()
81 def __init__(self, name, enumtype, comment, values):
83 self.comment = comment
89 doxygen2rst(indent(self.comment, 2)))
95 def __init__(self, name, comment, config):
97 self.comment = comment
104 doxygen2rst(indent(self.comment, 2)))
131 comment = ''
143 comment = clean_comment_line(line)
149 comment += clean_comment_line(line)
153 enum = Enum(name, comment)
157 nested_struct = NestedStruct(name, comment)
162 option = Option(str(field_name), str(field_type), comment)
165 raise Exception('Invalid format, expected comment, field or enum')
169 comment = clean_comment_line(line)
175 comment += clean_comment_line(line)
180 nested_struct.values.append(NestedEnum(field_name,field_type,comment,enums[field_type].values))
182 nested_struct.values.append(NestedField(field_type + " " + field_name, comment))
187 comment = clean_comment_line(line)
197 comment += clean_comment_line(line)
207 enum.values.append(EnumValue(val, comment,config))