@@ -273,6 +273,7 @@ package body GNATdoc.Comments.Helpers is
273
273
274
274
begin
275
275
if Decl.Kind in Ada_Abstract_Subp_Decl
276
+ | Ada_Entry_Decl
276
277
| Ada_Exception_Decl
277
278
| Ada_Expr_Function
278
279
| Ada_Generic_Package_Decl
@@ -282,8 +283,11 @@ package body GNATdoc.Comments.Helpers is
282
283
| Ada_Object_Decl
283
284
| Ada_Package_Decl
284
285
| Ada_Package_Renaming_Decl
286
+ | Ada_Protected_Type_Decl
287
+ | Ada_Single_Protected_Decl
285
288
| Ada_Subp_Decl
286
289
| Ada_Subtype_Decl
290
+ | Ada_Task_Type_Decl
287
291
or (Decl.Kind in Ada_Type_Decl
288
292
and then Decl.As_Type_Decl.F_Type_Def.Kind
289
293
in Ada_Access_To_Subp_Def
@@ -299,9 +303,25 @@ package body GNATdoc.Comments.Helpers is
299
303
then
300
304
Decl_To_Extract := Decl;
301
305
302
- elsif Decl.Kind = Ada_Param_Spec
303
- and then Decl.P_Parent_Basic_Decl.Kind in Ada_Subp_Decl
306
+ elsif Decl.Kind = Ada_Single_Task_Type_Decl then
307
+ Decl_To_Extract := Decl.P_Parent_Basic_Decl;
308
+
309
+ elsif Decl.Kind in Ada_Param_Spec | Ada_Entry_Index_Spec
310
+ and then Decl.P_Parent_Basic_Decl.Kind
311
+ in Ada_Subp_Decl | Ada_Entry_Decl | Ada_Entry_Body
304
312
then
313
+ -- Parameters of the subprograms and entries, family index of
314
+ -- entries.
315
+
316
+ Decl_To_Extract := Decl.P_Parent_Basic_Decl;
317
+ Name_To_Extract := Name.As_Defining_Name;
318
+
319
+ elsif Decl.Kind in Ada_Discriminant_Spec | Ada_Component_Decl
320
+ and then Decl.P_Parent_Basic_Decl.Kind
321
+ in Ada_Protected_Type_Decl | Ada_Single_Protected_Decl
322
+ then
323
+ -- Discriminants and components of the protected types/objects.
324
+
305
325
Decl_To_Extract := Decl.P_Parent_Basic_Decl;
306
326
Name_To_Extract := Name.As_Defining_Name;
307
327
0 commit comments