text stringlengths 0 234 |
|---|
-- return Identifier (Identifier'First .. I - 1); |
-- end parent_Name; |
-- |
-- |
-- |
-- function simple_Name (Identifier : in String) return String |
-- is |
-- use Ada.Strings, |
-- Ada.Strings.fixed; |
-- I : constant Natural := Index (Identifier, ".", going => Backward); |
-- begin |
-- if I = 0 |
-- then |
-- return Identifier; |
-- end if; |
-- |
-- return Identifier (I + 1 .. Identifier'Last); |
-- end simple_Name; |
-- |
-- |
-- |
-- function Split (Identifier : in String) return text_Lines |
-- is |
-- use Ada.Strings, |
-- Ada.Strings.fixed; |
-- |
-- First : Natural := Identifier'First; |
-- Last : Natural; |
-- |
-- I : Natural; |
-- Lines : text_Lines; |
-- begin |
-- loop |
-- I := Index (Identifier, ".", from => First); |
-- |
-- if I = 0 |
-- then |
-- Last := Identifier'Last; |
-- Lines.append (+Identifier (First .. Last)); |
-- exit; |
-- end if; |
-- |
-- Last := I - 1; |
-- Lines.append (+Identifier (First .. Last)); |
-- First := I + 1; |
-- end loop; |
-- |
-- return Lines; |
-- end Split; |
function find (Self : in Item; Identifier : in AdaM.Identifier) return AdaM.a_Package.view |
is |
use AdaM.Assist; |
the_Package : AdaM.a_Package.view := Self.standard_Package; |
begin |
if Identifier /= "Standard" |
then |
declare |
use type AdaM.a_Package.view; |
Names : constant text_Lines := Split (Identifier); |
begin |
for Each of Names |
loop |
the_Package := the_Package.child_Package (+Each); |
exit when the_Package = null; |
end loop; |
Function Definition: procedure parent_Entity_is (Self : in out Item; Now : in Entity.View) |
Function Body: is |
begin |
Self.parent_Entity := Now; |
end parent_Entity_is; |
function Children (Self : access Item) return Entities_view |
is |
begin |
return Self.Children'unchecked_Access; |
end Children; |
function Children (Self : in Item) return Entities'Class |
is |
begin |
return Self.Children; |
end Children; |
procedure Children_are (Self : in out Item; Now : in Entities'Class) |
is |
begin |
Self.Children := Entities (Now); |
end Children_are; |
function is_Public (Self : in Item) return Boolean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.