text stringlengths 0 234 |
|---|
return Self.Parent.full_Name & "." & (+Self.Name); |
end if; |
end full_Name; |
-- Streams |
-- |
procedure Item_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class; |
Self : in Item) |
is |
begin |
Text'write (Stream, Self.Name); |
Declaration.of_package.view 'write (Stream, Self.Parent); |
Declaration.of_package.Vector'write (Stream, Self.Progenitors); |
Declaration.of_package.Vector'write (Stream, Self.child_Packages); |
AdaM.Context.view'write (Stream, Self.Context); |
-- Source.Entities 'write (Stream, Self.public_Entities); |
Entity.view 'write (Stream, Self.parent_Entity); |
Entity.Entities'write (Stream, Self.Children); |
end Item_write; |
procedure Item_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class; |
Self : out Item) |
is |
Version : constant Positive := Pool.storage_record_Version; |
begin |
case Version |
is |
when 1 => |
Text'read (Stream, Self.Name); |
-- put_Line ("KKKKKKKKKKKKKK '" & (+Self.Name) & "'"); |
Declaration.of_package.view 'read (Stream, Self.Parent); |
Declaration.of_package.Vector'read (Stream, Self.Progenitors); |
Declaration.of_package.Vector'read (Stream, Self.child_Packages); |
AdaM.Context.view'read (Stream, Self.Context); |
-- Source.Entities 'read (Stream, Self.public_Entities); |
declare |
Parent : Declaration.of_package.view; |
begin |
Declaration.of_package.view'read (Stream, Parent); |
if Parent /= null |
then |
-- program_Unit.item (Self).parent_Entity_is (Parent.all'Access); |
Self.parent_Entity_is (Parent.all'Access); |
end if; |
Function Definition: -- function Is_Navigation_Disabled (N : LAL.Ada_Node) return Boolean; |
Function Body: function Node_Filter (N : LAL.Ada_Node) return Boolean |
is |
( Enabled_Kinds (N.Kind)); |
pragma Unreferenced (Node_Filter); |
-- and then not Is_Navigation_Disabled (N)); |
procedure Process_File (Unit : LAL.Analysis_Unit; Filename : String); |
-- procedure Print_Navigation (Part_Name : String; |
-- Orig, Dest : access LAL.Ada_Node_Type'Class); |
At_Least_Once : Boolean := False; |
Depth : Natural := 0; |
function Indent return String |
is |
use Ada.Strings.fixed; |
begin |
return Depth * " "; |
end Indent; |
procedure log (Message : in String) |
is |
begin |
put_Line (Indent & Message); |
end log; |
---------- |
-- Process |
-- |
procedure process (Node : in LAL.Ada_Node); |
procedure parse_Range (the_Range : in LAL.Bin_Op; |
First : out Text; |
Last : out Text) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.