We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a07082d commit 297bd25Copy full SHA for 297bd25
source/gnatdoc-comments-helpers.adb
@@ -569,6 +569,14 @@ package body GNATdoc.Comments.Helpers is
569
end if;
570
end loop;
571
572
+ -- eng/libadalang/libadalang#1643: ignore accept statement, LAL returns
573
+ -- it as most visible part.
574
+
575
+ if Most_Visible_Decl.Parent.Kind = Ada_Accept_Stmt_Body then
576
+ Most_Visible_Index := @ - 1;
577
+ Most_Visible_Decl := All_Decls (Most_Visible_Index);
578
+ end if;
579
580
-- Exclude incomplete type declaration code snippets when documentation
581
-- is requested for complete type declaration.
582
0 commit comments