PR c++/3637
[official-gcc.git] / gcc / ada / exp_ch2.ads
blobf5f105e40643ab9faf43b4ec793722d188be6d6d
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- E X P _ C H 2 --
6 -- --
7 -- S p e c --
8 -- --
9 -- $Revision: 1.7 $ --
10 -- --
11 -- Copyright (C) 1992-1997 Free Software Foundation, Inc. --
12 -- --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNAT; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
23 -- --
24 -- GNAT was originally developed by the GNAT team at New York University. --
25 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
26 -- --
27 ------------------------------------------------------------------------------
29 -- Expand routines for chapter 2 constructs
31 with Types; use Types;
32 package Exp_Ch2 is
34 procedure Expand_N_Expanded_Name (N : Node_Id);
35 procedure Expand_N_Identifier (N : Node_Id);
36 procedure Expand_N_Real_Literal (N : Node_Id);
38 function Param_Entity (N : Node_Id) return Entity_Id;
39 -- Given an expression N, determines if the expression is a reference
40 -- to a formal (of a subprogram or entry), and if so returns the Id
41 -- of the corresponding formal entity, otherwise returns Empty. The
42 -- reason that this is in Exp_Ch2 is that it has to deal with the
43 -- case where the reference is to an entry formal, and has been
44 -- expanded already. Since Exp_Ch2 is in charge of the expansion, it
45 -- is best suited to knowing how to detect this case.
47 end Exp_Ch2;