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