-- --
-- S p e c --
-- --
--- Copyright (C) 1992-2004 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2008, Free Software Foundation, Inc. --
-- --
-- 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- --
--- ware Foundation; either version 2, or (at your option) any later ver- --
+-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
--- Public License distributed with GNAT; see file COPYING. If not, write --
--- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
--- Boston, MA 02110-1301, USA. --
+-- Public License distributed with GNAT; see file COPYING3. If not, go to --
+-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- appearing in context clauses.
procedure Find_Direct_Name (N : Node_Id);
- -- Given a direct name (Identifier or Operator_Symbol), this routine
- -- scans the homonym chain for the name searching for corresponding
- -- visible entities to find the referenced entity (or in the case of
- -- overloading), entities. On return, the Entity, and Etype fields
- -- are set. In the non-overloaded case, these are the correct final
- -- entries. In the overloaded case, Is_Overloaded is set, Etype and
- -- Entity refer to an arbitrary element of the overloads set, and
- -- an appropriate list of entries has been made in the overload
- -- interpretation table (to be disambiguated in the resolve phase).
+ -- Given a direct name (Identifier or Operator_Symbol), this routine scans
+ -- the homonym chain for the name searching for corresponding visible
+ -- entities to find the referenced entity (or in the case of overloading,
+ -- entities). On return, the Entity and Etype fields are set. In the
+ -- non-overloaded case, these are the correct final entries. In the
+ -- overloaded case, Is_Overloaded is set, Etype and Entity refer to an
+ -- arbitrary element of the overloads set, and an appropriate list of
+ -- entries has been made in the overload interpretation table (to be
+ -- disambiguated in the resolve phase).
procedure Find_Selected_Component (N : Node_Id);
-- Resolve various cases of selected components, recognize expanded names
-- Perform name resolution, and verify that the name found is that of a
-- type. On return the Entity and Etype fields of the node N are set
-- appropriately. If it is an incomplete type whose full declaration has
- -- been seen, they are set to the entity in the full declaration.
- -- Similarly, if the type is private, it has received a full declaration,
- -- and we are in the private part or body of the package, then the two
- -- fields are set to the entity of the full declaration as well. This
- -- procedure also provides special processing for Class types as well.
-
- function Get_Full_View (T_Name : Entity_Id) return Entity_Id;
- -- If T_Name is an incomplete type and the full declaration has been
- -- seen, or is the name of a class_wide type whose root is incomplete.
- -- return the corresponding full declaration.
+ -- been seen, they are set to the entity in the full declaration. If it
+ -- is an incomplete type associated with an interface visible through a
+ -- limited-with clause, whose full declaration has been seen, they are
+ -- set to the entity in the full declaration. Similarly, if the type is
+ -- private, it has received a full declaration, and we are in the private
+ -- part or body of the package, then the two fields are set to the entity
+ -- of the full declaration as well. This procedure also has special
+ -- processing for 'Class attribute references.
procedure Initialize;
-- Initializes data structures used for visibility analysis. Must be
-- S is the entity of a scope. This function determines if this scope
-- is currently open (i.e. it appears somewhere in the scope stack).
- procedure New_Scope (S : Entity_Id);
+ procedure Push_Scope (S : Entity_Id);
-- Make new scope stack entry, pushing S, the entity for a scope
-- onto the top of the scope table. The current setting of the scope
-- suppress flags is saved for restoration on exit.
-- return, the contents of the scope stack must be made accessible again.
-- The flag Handle_Use indicates whether local use clauses must be
-- removed/installed. In the case of inlining of instance bodies, the
- -- visiblity handling is done fully in Inline_Instance_Body, and use
+ -- visibility handling is done fully in Inline_Instance_Body, and use
-- clauses are handled there.
procedure Set_Use (L : List_Id);