File tree Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -627,6 +627,12 @@ package body GNATdoc.Comments.Extractor.Trailing is
627627 return Libadalang.Common.Over;
628628 end if ;
629629
630+ when Ada_Declarative_Part | Ada_Handled_Stmts =>
631+ -- These nodes appears after subprogram profile of the
632+ -- subprogram body, nothing to analyze inside these nodes.
633+
634+ return Libadalang.Common.Over;
635+
630636 when others =>
631637 null ;
632638 end case ;
Original file line number Diff line number Diff line change 1+ with Ada.Text_IO ; use Ada.Text_IO;
2+ -- with Ada.Text_IO;
3+ -- with Test
4+
5+ procedure GNATdoc_134 is
6+ Start_Idx : Integer := 0 ;
7+
8+ type My_Rec is record
9+ A, B : Integer := 10 ;
10+ end record ;
11+
12+ type My_Second_Rec is record
13+ C, D : My_Rec;
14+ end record ;
15+
16+ procedure Zboob (arguments : Integer) is begin
17+ Ada.Text_IO.Put_Line (arguments'Img);
18+ end Zboob ;
19+
20+ obj_1 : My_Rec;
21+ Obj_2 : My_Second_Rec;
22+ begin
23+ Start_Idx := Start_Idx + 1 ;
24+ Zboob (Start_Idx);
25+ end GNATdoc_134 ;
Original file line number Diff line number Diff line change @@ -612,3 +612,29 @@ In Glib enabled application the engine is integrated it the Glib event
612612loop and this procedure shouldn't be used.
613613**************************
614614<PragmaNodeList monitor_loop.ads:7:45-7:45>
615+ <CompilationUnit gnatdoc_134.adb:1:1-25:17>
616+ <AdaNodeList gnatdoc_134.adb:1:1-1:35>
617+ <WithClause gnatdoc_134.adb:1:1-1:18>
618+ <LimitedAbsent gnatdoc_134.adb:1:1-1:1>
619+ <PrivateAbsent gnatdoc_134.adb:1:1-1:1>
620+ <NameList gnatdoc_134.adb:1:6-1:17>
621+ <DottedName gnatdoc_134.adb:1:6-1:17>
622+ <Id "Ada" gnatdoc_134.adb:1:6-1:9>
623+ <Id "Text_IO" gnatdoc_134.adb:1:10-1:17>
624+ <UsePackageClause gnatdoc_134.adb:1:19-1:35>
625+ <NameList gnatdoc_134.adb:1:23-1:34>
626+ <DottedName gnatdoc_134.adb:1:23-1:34>
627+ <Id "Ada" gnatdoc_134.adb:1:23-1:26>
628+ <Id "Text_IO" gnatdoc_134.adb:1:27-1:34>
629+ <LibraryItem gnatdoc_134.adb:5:1-25:17>
630+ <PrivateAbsent gnatdoc_134.adb:1:35-1:35>
631+ <SubpBody ["GNATdoc_134"] gnatdoc_134.adb:5:1-25:17>
632+ **************************
633+ \/ RAW <<CALLABLE>> ()
634+ \/ SNIPPET ada ()
635+ procedure GNATdoc_134
636+ \/ RAW <<HEADER>> ()
637+ \/ RAW <<LEADING>> ()
638+ \/ DESCRIPTION ()
639+ **************************
640+ <PragmaNodeList gnatdoc_134.adb:25:17-25:17>
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ description: Check documentation extraction for subprogram declarations.
22extractor_sources :
33 - subprograms_gnat.ads
44 - monitor_loop.ads
5+ - gnatdoc_134.adb
You can’t perform that action at this time.
0 commit comments