Lines Matching defs:comment
33 def __init__(self, name, type, comment):
36 self.comment = comment.strip()
41 doxygen2rst(indent(self.comment, 2)))
47 def __init__(self, name, comment):
49 self.comment = comment.strip()
56 def __init__(self, name, comment):
58 self.comment = comment.strip()
64 doxygen2rst(indent(self.comment, 2)))
77 comment = ''
88 comment = clean_comment_line(line)
94 comment += clean_comment_line(line)
98 enum = Enum(name, comment)
102 option = Option(str(field_name), str(field_type), comment)
105 raise Exception('Invalid format, expected comment, field or enum')
109 comment = clean_comment_line(line)
114 raise Exception('Invalid format, expected enum field comment or };')
117 comment += clean_comment_line(line)
120 enum.values.append(EnumValue(line.replace(',', ''), comment))