text stringlengths 0 234 |
|---|
declare |
Parent : constant League.Strings.Universal_String := |
Item.Parents.Element (J); |
begin |
for Next of Vector loop |
if Next.Name = Parent then |
Collect (Result, Next); |
exit; |
end if; |
end loop; |
Function Definition: function Generic_List_Reduce |
Function Body: (List : T_Array) return Ada_Pretty.Node_Access |
is |
Result : Ada_Pretty.Node_Access; |
begin |
for Item of List loop |
Result := F.New_List (Result, Convert (F, Item)); |
end loop; |
return Result; |
end Generic_List_Reduce; |
Map : constant array (Boolean) of Ada_Pretty.Trilean := |
(False => Ada_Pretty.False, True => Ada_Pretty.True); |
---------------------- |
-- Full_Record_Name -- |
---------------------- |
function Full_Record_Name |
(Type_Name : League.Strings.Universal_String) |
return League.Strings.Universal_String |
is |
Result : League.Strings.Universal_String := Get_Package_Name (Type_Name); |
begin |
if not Result.Is_Empty then |
Result.Append ("."); |
end if; |
Result.Append (To_Element_Name (Type_Name)); |
return Result; |
end Full_Record_Name; |
---------------------- |
-- Full_Vector_Name -- |
---------------------- |
function Full_Vector_Name |
(Type_Name : League.Strings.Universal_String) |
return League.Strings.Universal_String |
is |
Result : League.Strings.Universal_String; |
begin |
if Is_Element (Type_Name) then |
Result := Full_Record_Name (Element_Vector); |
else |
Result := Get_Package_Name (Type_Name); |
Result.Append ("."); |
Result.Append (To_Element_Name (Type_Name)); |
Result.Append ("_Vector"); |
end if; |
return Result; |
end Full_Vector_Name; |
---------------------- |
-- Full_Access_Name -- |
---------------------- |
function Full_Access_Name |
(Type_Name : League.Strings.Universal_String) |
return League.Strings.Universal_String |
is |
Result : League.Strings.Universal_String := Get_Package_Name (Type_Name); |
begin |
Result.Append ("."); |
Result.Append (Type_Name); |
Result.Append ("_Access"); |
return Result; |
end Full_Access_Name; |
---------------------- |
-- Get_Parent_Props -- |
---------------------- |
function Get_Parent_Props |
(Item : Classes.Class; |
Vector : Meta.Read.Class_Vectors.Vector) |
return Classes.Property_Array |
is |
Parent : constant League.Strings.Universal_String := |
Item.Parents.Element (1); |
begin |
if Is_Element (Parent) then |
return (1 .. 0 => <>); |
end if; |
for Next of Vector loop |
if Next.Name = Parent then |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.