@@ -138,6 +138,10 @@ package body GNATdoc.Frontend is
138138 (Node : Entry_Decl'Class;
139139 Enclosing : not null GNATdoc.Entities.Entity_Information_Access);
140140
141+ procedure Process_Entry_Body
142+ (Node : Entry_Body'Class;
143+ Enclosing : not null GNATdoc.Entities.Entity_Information_Access);
144+
141145 procedure Process_Children
142146 (Parent : Ada_Node'Class;
143147 Enclosing : not null GNATdoc.Entities.Entity_Information_Access);
@@ -443,6 +447,11 @@ package body GNATdoc.Frontend is
443447
444448 return Over;
445449
450+ when Ada_Entry_Body =>
451+ Process_Entry_Body (Node.As_Entry_Body, Enclosing);
452+
453+ return Over;
454+
446455 when Ada_Protected_Body =>
447456 Process_Protected_Body (Node.As_Protected_Body, Enclosing);
448457
@@ -638,6 +647,27 @@ package body GNATdoc.Frontend is
638647 end if ;
639648 end Process_Derived_Type_Def ;
640649
650+ -- ----------------------
651+ -- Process_Entry_Body --
652+ -- ----------------------
653+
654+ procedure Process_Entry_Body
655+ (Node : Entry_Body'Class;
656+ Enclosing : not null GNATdoc.Entities.Entity_Information_Access)
657+ is
658+ Name : constant Defining_Name := Node.F_Entry_Name;
659+ Entity : constant not null GNATdoc.Entities.Entity_Information_Access :=
660+ new GNATdoc.Entities.Entity_Information'
661+ (Name => To_Virtual_String (Name.Text),
662+ Qualified_Name => To_Virtual_String (Name.P_Fully_Qualified_Name),
663+ Signature => Signature (Name),
664+ Documentation => Extract (Node, GNATdoc.Options.Extractor_Options),
665+ others => <>);
666+
667+ begin
668+ Enclosing.Entries.Insert (Entity);
669+ end Process_Entry_Body ;
670+
641671 -- ----------------------
642672 -- Process_Entry_Decl --
643673 -- ----------------------
@@ -1147,7 +1177,7 @@ package body GNATdoc.Frontend is
11471177 do
11481178 case Name.P_Basic_Decl.Kind is
11491179 when Ada_Package_Body | Ada_Subp_Body | Ada_Expr_Function
1150- | Ada_Subp_Renaming_Decl | Ada_Protected_Body
1180+ | Ada_Subp_Renaming_Decl | Ada_Protected_Body | Ada_Entry_Body
11511181 =>
11521182 Result.Append (' $' );
11531183
0 commit comments