File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,9 @@ def _handle_comment(self, declaration):
224
224
comm_line = comm_line .rstrip ("\n " )
225
225
comment_text .append (comm_line )
226
226
comm_decl .text = comment_text
227
- return comm_decl
227
+ return comm_decl
228
+ else :
229
+ return declarations .comment .comment_t ()
228
230
229
231
def endDocument (self ):
230
232
# updating membership
@@ -236,7 +238,8 @@ def endDocument(self):
236
238
members_mapping [id (decl )] = members
237
239
self .__members = members_mapping
238
240
for gccxml_id , decl in self .__declarations .items ():
239
- decl .comment = self ._handle_comment (decl )
241
+ if not isinstance (decl .comment , declarations .comment .comment_t ):
242
+ decl .comment = self ._handle_comment (decl )
240
243
241
244
def declarations (self ):
242
245
return self .__declarations
You can’t perform that action at this time.
0 commit comments