text stringlengths 0 234 |
|---|
begin |
the_Source.append (the_Line); |
end add; |
begin |
the_Source.append (Self.Context.to_Source); |
add (+""); |
add ( "package " & Self.Name); |
add (+"is"); |
add (+""); |
-- the_Source.append (Self.public_Entities.to_spec_Source); |
add (+""); |
add ( "end " & Self.Name & ";"); |
return the_Source; |
end to_Source; |
function to_spec_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 |
begin |
the_Source.append (the_Line); |
end add; |
begin |
the_Source.append (Self.Context.to_Source); |
add (+""); |
add ( "package " & Self.Name); |
add (+"is"); |
add (+""); |
-- the_Source.append (Self.public_Entities.to_spec_Source); |
add (+""); |
add ( "end " & Self.Name & ";"); |
return the_Source; |
end to_spec_Source; |
function to_body_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 |
begin |
the_Source.append (the_Line); |
end add; |
begin |
the_Source.append (Self.Context.to_Source); |
add (+""); |
add ( "package body " & Self.Name); |
add (+"is"); |
add (+""); |
-- the_Source.append (Self.public_Entities.to_body_Source); |
add (+""); |
add ( "end " & Self.Name & ";"); |
return the_Source; |
end to_body_Source; |
function requires_Body (Self : in Item) return Boolean |
is |
pragma Unreferenced (Self); |
-- use AdaM.Source.utility; |
begin |
return False; -- contains_Subprograms (Self.public_Entities); |
end requires_Body; |
procedure Parent_is (Self : in out Item; Now : in Declaration.of_package.View) |
is |
begin |
Self.Parent := Now; |
end Parent_is; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.