Commit 5ecdbd8c by Arnaud Charlet

Update comments and spec.

From-SVN: r101077
parent a35e2879
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 1992-2004 Free Software Foundation, Inc. -- -- Copyright (C) 1992-2005 Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -111,16 +111,21 @@ package Sem_Ch3 is ...@@ -111,16 +111,21 @@ package Sem_Ch3 is
-- subprogram of the parent type. -- subprogram of the parent type.
procedure Derive_Subprograms procedure Derive_Subprograms
(Parent_Type : Entity_Id; (Parent_Type : Entity_Id;
Derived_Type : Entity_Id; Derived_Type : Entity_Id;
Generic_Actual : Entity_Id := Empty); Generic_Actual : Entity_Id := Empty;
-- To complete type derivation, collect or retrieve the primitive Is_Interface_Derivation : Boolean := False);
-- operations of the parent type, and replace the subsidiary subtypes -- To complete type derivation, collect/retrieve the primitive operations
-- with the derived type, to build the specs of the inherited ops. -- of the parent type, and replace the subsidiary subtypes with the derived
-- For generic actuals, the mapping of the primitive operations to those -- type, to build the specs of the inherited ops. For generic actuals, the
-- of the parent type is also done by rederiving the operations within -- mapping of the primitive operations to those of the parent type is also
-- the instance. For tagged types, the derived subprograms are aliased to -- done by rederiving the operations within the instance. For tagged types,
-- those of the actual, not those of the ancestor. -- the derived subprograms are aliased to those of the actual, not those of
-- the ancestor.
function Find_Type_Of_Subtype_Indic (S : Node_Id) return Entity_Id;
-- Given a subtype indication S (which is really an N_Subtype_Indication
-- node or a plain N_Identifier), find the type of the subtype mark.
function Find_Type_Name (N : Node_Id) return Entity_Id; function Find_Type_Name (N : Node_Id) return Entity_Id;
-- Enter the identifier in a type definition, or find the entity already -- Enter the identifier in a type definition, or find the entity already
...@@ -209,12 +214,12 @@ package Sem_Ch3 is ...@@ -209,12 +214,12 @@ package Sem_Ch3 is
function Replace_Anonymous_Access_To_Protected_Subprogram function Replace_Anonymous_Access_To_Protected_Subprogram
(N : Node_Id; (N : Node_Id;
Prev_E : Entity_Id) return Entity_Id; Prev_E : Entity_Id) return Entity_Id;
-- Ada 2005 (AI-254): Create and decorate an internal full type -- Ada 2005 (AI-254): Create and decorate an internal full type declaration
-- declaration in the enclosing scope corresponding to an anonymous -- in the enclosing scope corresponding to an anonymous access to protected
-- access to protected subprogram. In addition, replace the anonymous -- subprogram. In addition, replace the anonymous access by an occurrence
-- access by an occurrence of this internal type. Prev_Etype is used -- of this internal type. Prev_Etype is used to link the new internal
-- to link the new internal entity with the anonymous entity. Return -- entity with the anonymous entity. Return the entity of this type
-- the entity of this type declaration. -- declaration.
procedure Set_Completion_Referenced (E : Entity_Id); procedure Set_Completion_Referenced (E : Entity_Id);
-- If E is the completion of a private or incomplete type declaration, -- If E is the completion of a private or incomplete type declaration,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment