text
stringlengths
0
234
(Kind => Array_Type_View,
Symbol => Symbol,
Name => Name,
Entity_Id => Self.Last_Entity + 1,
Indexes => To_Vector (Indexes),
Component => Component.Index);
begin
Self.Append_Item (Value);
end Create_Array_Type;
------------------------------
-- Create_Character_Literal --
------------------------------
not overriding procedure Create_Character_Literal
(Self : in out Context;
Symbol : Program.Visibility.Symbol;
Name : Defining_Name;
Enumeration_Type : View)
is
Value : constant Item :=
(Kind => Character_Literal_View,
Symbol => Symbol,
Name => Name,
Entity_Id => Self.Last_Entity + 1,
Character_Type => Enumeration_Type.Index);
begin
Self.Append_Item (Value);
declare
Type_Item : Item renames Self.Data (Enumeration_Type.Index);
begin
Type_Item.Enumeration_Literals.Append (Self.Data.Last_Index);
Function Definition: function Immediate_Visible
Function Body: (Self : access constant Context;
Region : Item_Offset;
Symbol : Program.Visibility.Symbol) return View_Array
is
Result : View_Array (1 .. 10);
Last : Natural := 0;
Value : Item renames Self.Data (Region);
begin
if Value.Kind in Has_Region_Kind then
for Index of Value.Region loop
declare
Value : constant Item := Self.Data (Index);
begin
if Value.Symbol = Symbol then
Last := Last + 1;
Result (Last) := (Value.Kind, Self, Index);
end if;
Function Definition: function Immediate_Visible
Function Body: (Self : View;
Symbol : Program.Visibility.Symbol) return View_Array is
begin
return Immediate_Visible (Self.Env, Self.Index, Symbol);
end Immediate_Visible;
-----------------------
-- Immediate_Visible --
-----------------------
not overriding function Immediate_Visible
(Self : aliased Context; Symbol : Program.Visibility.Symbol)
return View_Array
is
procedure Append (List : View_Array);
Result : View_Array (1 .. 10);
Last : Natural := 0;
procedure Append (List : View_Array) is
begin
Result (Last + 1 .. Last + List'Length) := List;
Last := Last + List'Length;
end Append;
begin
for J of reverse Self.Stack loop
Append (Immediate_Visible (Self'Access, J.Enclosing_Item, Symbol));
end loop;
if Symbol = Standard and then not Self.Stack.Is_Empty then
declare
Top : constant View :=
(Package_View,
Self'Access,
Self.Stack.First_Element.Enclosing_Item);
begin
Append ((1 => Top));
Function Definition: not overriding function Create_Discrete_Range_Vector
Function Body: (Self : Element_Vector_Factory;
Each : Program.Element_Vectors.Iterators.Forward_Iterator'Class)
return Program.Elements.Discrete_Ranges.Discrete_Range_Vector_Access
is
Cursor : constant Program.Element_Vectors.Element_Cursor := Each.First;