OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [ada/] [sem_ch7.ads] - Blame information for rev 27

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
------------------------------------------------------------------------------
2
--                                                                          --
3
--                         GNAT COMPILER COMPONENTS                         --
4
--                                                                          --
5
--                              S E M _ C H 7                               --
6
--                                                                          --
7
--                                 S p e c                                  --
8
--                                                                          --
9
--          Copyright (C) 1992-2005, Free Software Foundation, Inc.         --
10
--                                                                          --
11
-- GNAT is free software;  you can  redistribute it  and/or modify it under --
12
-- terms of the  GNU General Public License as published  by the Free Soft- --
13
-- ware  Foundation;  either version 2,  or (at your option) any later ver- --
14
-- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15
-- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16
-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17
-- for  more details.  You should have  received  a copy of the GNU General --
18
-- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19
-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
20
-- Boston, MA 02110-1301, USA.                                              --
21
--                                                                          --
22
-- GNAT was originally developed  by the GNAT team at  New York University. --
23
-- Extensive contributions were provided by Ada Core Technologies Inc.      --
24
--                                                                          --
25
------------------------------------------------------------------------------
26
 
27
with Types; use Types;
28
 
29
package Sem_Ch7 is
30
 
31
   procedure Analyze_Package_Body                       (N : Node_Id);
32
   procedure Analyze_Package_Declaration                (N : Node_Id);
33
   procedure Analyze_Package_Specification              (N : Node_Id);
34
   procedure Analyze_Private_Type_Declaration           (N : Node_Id);
35
 
36
   procedure End_Package_Scope (P : Entity_Id);
37
   --  Calls Uninstall_Declarations, and then pops the scope stack
38
 
39
   procedure Exchange_Declarations (Id : Entity_Id);
40
   --  Exchange private and full declaration on entry/exit from a package
41
   --  declaration or body. The semantic links of the respective nodes
42
   --  are preserved in the exchange.
43
 
44
   procedure Install_Visible_Declarations (P : Entity_Id);
45
   procedure Install_Private_Declarations (P : Entity_Id);
46
 
47
   --  On entrance to a package body, make declarations in package spec
48
   --  immediately visible.
49
 
50
   --  When compiling the body of a package,  both routines are called in
51
   --  succession. When compiling the body of a child package, the call
52
   --  to Install_Private_Declaration is immediate for private children,
53
   --  but is deferred until the compilation of the  private part of the
54
   --  child for public child packages.
55
 
56
   function Unit_Requires_Body (P : Entity_Id) return Boolean;
57
   --  Check if a unit requires a body. A specification requires a body
58
   --  if it contains declarations that require completion in a body.
59
 
60
   procedure May_Need_Implicit_Body (E : Entity_Id);
61
   --  If a package declaration contains tasks and does not require a
62
   --  body, create an implicit body at the end of the current declarative
63
   --  part to activate those tasks.
64
 
65
   procedure New_Private_Type (N : Node_Id; Id : Entity_Id; Def : Node_Id);
66
   --  Common processing for private type declarations and for formal
67
   --  private type declarations. For private types, N and Def are the type
68
   --  declaration node; for formal private types, Def is the formal type
69
   --  definition.
70
 
71
   procedure Uninstall_Declarations (P : Entity_Id);
72
   --  At the end of a package declaration or body, declarations in the
73
   --  visible part are no longer immediately visible, and declarations in
74
   --  the private part are not visible at all. For inner packages, place
75
   --  visible entities at the end of their homonym chains. For compilation
76
   --  units, make all entities invisible. In both cases, exchange private
77
   --  and visible declarations to restore order of elaboration.
78
 
79
end Sem_Ch7;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.