text
stringlengths
0
234
--
-- function all_Exceptions (Self : in Item) return AdaM.Declaration.of_exception.Vector
-- is
-- use type Declaration.of_exception.view;
--
-- the_Exceptions : AdaM.Declaration.of_exception.Vector;
-- the_Exception : AdaM.Declaration.of_exception.view;
-- begin
-- put_Line ("PACKAGE NAME: " & (+Self.Name));
--
-- for Each of Self.public_Entities
-- loop
-- put_Line ("************* Tag: " & ada.Tags.External_Tag (Each.all'Tag));
-- raise program_Error with "sdfhslkad";
--
-- the_Exception := Declaration.of_exception.view (Each);
--
-- if the_Exception /= null
-- -- if Each in AdaM.an_Exception.item'Class
-- then
-- the_Exceptions.append (the_Exception);
-- end if;
-- end loop;
--
-- return the_Exceptions;
-- end all_Exceptions;
function all_Exceptions (Self : access Item) return AdaM.Declaration.of_exception.Vector
is
use type Declaration.of_exception.view;
the_Exceptions : AdaM.Declaration.of_exception.Vector;
-- the_Exception : AdaM.Declaration.of_exception.view;
begin
-- put_Line ("all_Exceptions PACKAGE NAME: " & (+Self.Name));
for Each of Self.Children.all
loop
-- put_Line ("************* Tag: " & ada.Tags.External_Tag (Each.all'Tag));
-- raise program_Error with "sdfhslkad";
-- the_Exception := Declaration.of_exception.view (Each);
-- if the_Exception /= null
if Each.all in AdaM.Declaration.of_Exception.item'Class
then
the_Exceptions.append (Declaration.of_exception.view (Each));
end if;
end loop;
return the_Exceptions;
end all_Exceptions;
function all_Types (Self : access Item) return AdaM.a_Type.Vector
is
use type a_Type.view;
the_Exceptions : AdaM.a_Type.Vector;
-- the_Exception : AdaM.Declaration.of_exception.view;
begin
-- put_Line ("all_Exceptions PACKAGE NAME: " & (+Self.Name));
for Each of Self.Children.all
loop
-- put_Line ("************* Tag: " & ada.Tags.External_Tag (Each.all'Tag));
-- raise program_Error with "sdfhslkad";
-- the_Exception := Declaration.of_exception.view (Each);
-- if the_Exception /= null
if Each.all in AdaM.a_Type.item'Class
then
the_Exceptions.append (a_Type.view (Each));
end if;
end loop;
return the_Exceptions;
end all_Types;
overriding
function to_Source (Self : in Item) return text_Vectors.Vector
is
use ada.Strings.unbounded;
the_Source : text_Vectors.Vector;
procedure add (the_Line : in Text)
is