OSDN Git Service

2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
[pf3gnuchains/gcc-fork.git] / gcc / ada / sinfo.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                                S I N F O                                 --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1992-2004, 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,  59 Temple Place - Suite 330,  Boston, --
20 -- MA 02111-1307, USA.                                                      --
21 --                                                                          --
22 -- As a special exception,  if other files  instantiate  generics from this --
23 -- unit, or you link  this unit with other files  to produce an executable, --
24 -- this  unit  does not  by itself cause  the resulting  executable  to  be --
25 -- covered  by the  GNU  General  Public  License.  This exception does not --
26 -- however invalidate  any other reasons why  the executable file  might be --
27 -- covered by the  GNU Public License.                                      --
28 --                                                                          --
29 -- GNAT was originally developed  by the GNAT team at  New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
31 --                                                                          --
32 ------------------------------------------------------------------------------
33
34 --  This package defines the structure of the abstract syntax tree. The Tree
35 --  package provides a basic tree structure. Sinfo describes how this
36 --  structure is used to represent the syntax of an Ada program.
37
38 --  Note: the grammar used here is taken from Version 5.95 of the RM, dated
39 --  November 1994. The grammar in the RM is followed very closely in the tree
40 --  design, and is repeated as part of this source file.
41
42 --  The tree contains not only the full syntactic representation of the
43 --  program, but also the results of semantic analysis. In particular, the
44 --  nodes for defining identifiers, defining character literals and defining
45 --  operator symbols, collectively referred to as entities, represent what
46 --  would normally be regarded as the symbol table information. In addition
47 --  a number of the tree nodes contain semantic information.
48
49 --  WARNING: There is a C version of this package. Any changes to this
50 --  source file must be properly reflected in this C header file sinfo.h
51 --  which is created automatically from sinfo.ads using xsinfo.spt.
52
53 with Types;  use Types;
54 with Uintp;  use Uintp;
55 with Urealp; use Urealp;
56
57 package Sinfo is
58
59    ---------------------------------
60    -- Making Changes to This File --
61    ---------------------------------
62
63    --  If changes are made to this file, a number of related steps must be
64    --  carried out to ensure consistency. First, if a field access function
65    --  is added, it appears in seven places:
66
67    --    The documentation associated with the node
68    --    The spec of the access function in sinfo.ads
69    --    The body of the access function in sinfo.adb
70    --    The pragma Inline at the end of sinfo.ads for the access function
71    --    The spec of the set procedure in sinfo.ads
72    --    The body of the set procedure in sinfo.adb
73    --    The pragma Inline at the end of sinfo.ads for the set procedure
74
75    --  The field chosen must be consistent in all places, and, for a node
76    --  that is a subexpression, must not overlap any of the standard
77    --  expression fields.
78
79    --  In addition, if any of the standard expression fields is changed, then
80    --  the utiliy program which creates the Treeprs spec (in file treeprs.ads)
81    --  must be updated appropriately, since it special cases expression fields.
82
83    --  If a new tree node is added, then the following changes are made
84
85    --    Add it to the documentation in the appropriate place
86    --    Add its fields to this documentation section
87    --    Define it in the appropriate classification in Node_Kind
88    --    In the body (sinfo), add entries to the access functions for all
89    --     its fields (except standard expression fields) to include the new
90    --     node in the checks.
91    --    Add an appropriate section to the case statement in sprint.adb
92    --    Add an appropriate section to the case statement in sem.adb
93    --    Add an appropraite section to the case statement in exp_util.adb
94    --     (Insert_Actions procedure)
95    --    For a subexpression, add an appropriate sections to the case
96    --     statement in sem_eval.adb
97    --    For a subexpression, add an appropriate sections to the case
98    --     statement in sem_res.adb
99
100    --  Finally, four utility programs must be run:
101
102    --    Run CSinfo to check that you have made the changes consistently.
103    --     It checks most of the rules given above, with clear error messages.
104    --     This utility reads sinfo.ads and sinfo.adb and generates a report
105    --     to standard output.
106
107    --    Run XSinfo to create a-sinfo.h, the corresponding C header. This
108    --     utility reads sinfo.ads and generates a-sinfo.h. Note that it
109    --     does not need to read sinfo.adb, since the contents of the body
110    --     are algorithmically determinable from the spec.
111
112    --    Run XTreeprs to create treeprs.ads, an updated version of
113    --     the module that is used to drive the tree print routine. This
114    --     utility reads (but does not modify) treeprs.adt, the template
115    --     that provides the basic structure of the file, and then fills
116    --     in the data from the comments in sinfo.ads.
117
118    --    Run XNmake to create nmake.ads and nmake.adb, the package body
119    --     and spec of the Nmake package which contains functions for
120    --     constructing nodes.
121
122    --  Note: sometime we could write a utility that actually generated the
123    --  body of sinfo from the spec instead of simply checking it, since, as
124    --  noted above, the contents of the body can be determined from the spec.
125
126    --------------------------------
127    -- Implicit Nodes in the Tree --
128    --------------------------------
129
130    --  Generally the structure of the tree very closely follows the grammar
131    --  as defined in the RM. However, certain nodes are omitted to save
132    --  space and simplify semantic processing. Two general classes of such
133    --  omitted nodes are as follows:
134
135    --   If the only possibilities for a non-terminal are one or more other
136    --   non terminals (i.e. the rule is a "skinny" rule), then usually the
137    --   corresponding node is omitted from the tree, and the target construct
138    --   appears directly. For example, a real type definition is either a
139    --   floating point definition or a fixed point definition. No explicit
140    --   node appears for real type definition. Instead either the floating
141    --   point definition or fixed point definition appears directly.
142
143    --   If a non-terminal corresponds to a list of some other non-terminal
144    --   (possibly with separating punctuation), then usually it is omitted
145    --   from the tree, and a list of components appears instead. For
146    --   example, sequence of statements does not appear explicitly in the
147    --   tree. Instead a list of statements appears directly.
148
149    --  Some additional cases of omitted nodes occur and are documented
150    --  individually. In particular, many nodes are omitted in the tree
151    --  generated for an expression.
152
153    -------------------------------------------
154    -- Handling of Defining Identifier Lists --
155    -------------------------------------------
156
157    --  In several declarative forms in the syntax, lists of defining
158    --  identifiers appear (object declarations, component declarations,
159    --  number declarations etc.)
160
161    --  The semantics of such statements are equivalent to a series of
162    --  identical declarations of single defining identifiers (except that
163    --  conformance checks require the same grouping of identifiers in the
164    --  parameter case).
165
166    --  To simplify semantic processing, the parser breaks down such multiple
167    --  declaration cases into sequences of single declarations, duplicating
168    --  type and initialization information as required. The flags More_Ids
169    --  and Prev_Ids are used to record the original form of the source in
170    --  the case where the original source used a list of names, More_Ids
171    --  being set on all but the last name and Prev_Ids being set on all
172    --  but the first name. These flags are used to reconstruct the original
173    --  source (e.g. in the Sprint package), and also are included in the
174    --  conformance checks, but otherwise have no semantic significance.
175
176    --  Note: the reason that we use More_Ids and Prev_Ids rather than
177    --  First_Name and Last_Name flags is so that the flags are off in the
178    --  normal one identifier case, which minimizes tree print output.
179
180    -----------------------
181    -- Use of Node Lists --
182    -----------------------
183
184    --  With a few exceptions, if a construction of the form {non-terminal}
185    --  appears in the tree, lists are used in the corresponding tree node
186    --  (see package Nlists for handling of node lists). In this case a field
187    --  of the parent node points to a list of nodes for the non-terminal. The
188    --  field name for such fields has a plural name which always ends in "s".
189    --  For example, a case statement has a field Alternatives pointing to a
190    --  list of case statement alternative nodes.
191
192    --  Only fields pointing to lists have names ending in "s", so generally
193    --  the structure is strongly typed, fields not ending in s point to
194    --  single nodes, and fields ending in s point to lists.
195
196    --  The following example shows how a traversal of a list is written. We
197    --  suppose here that Stmt points to a N_Case_Statement node which has
198    --  a list field called Alternatives:
199
200    --   Alt := First (Alternatives (Stmt));
201    --   while Present (Alt) loop
202    --      ..
203    --      -- processing for case statement alternative Alt
204    --      ..
205    --      Alt := Next (Alt);
206    --   end loop;
207
208    --  The Present function tests for Empty, which in this case signals the
209    --  end of the list. First returns Empty immediately if the list is empty.
210    --  Present is defined in Atree, First and Next are defined in Nlists.
211
212    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
213    --  contexts, which is handled as described in the previous section, and
214    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
215    --  using the First_Name and Last_Name flags, as further detailed in the
216    --  description of the N_With_Clause node.
217
218    -------------
219    -- Pragmas --
220    -------------
221
222    --  Pragmas can appear in many different context, but are not included
223    --  in the grammar. Still they must appear in the tree, so they can be
224    --  properly processed.
225
226    --  Two approaches are used. In some cases, an extra field is defined
227    --  in an appropriate node that contains a list of pragmas appearing
228    --  in the expected context. For example pragmas can appear before an
229    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
230    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
231
232    --  The other approach is to simply allow pragmas to appear in syntactic
233    --  lists where the grammar (of course) does not include the possibility.
234    --  For example, the Variants field of an N_Variant_Part node points to
235    --  a list that can contain both N_Pragma and N_Variant nodes.
236
237    --  To make processing easier in the latter case, the Nlists package
238    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
239    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be
240    --  handled ignoring all pragmas.
241
242    --  In the case of the variants list, we can either write:
243
244    --      Variant := First (Variants (N));
245    --      while Present (Variant) loop
246    --         ...
247    --         Variant := Next (Variant);
248    --      end loop;
249
250    --  or
251
252    --      Variant := First_Non_Pragma (Variants (N));
253    --      while Present (Variant) loop
254    --         ...
255    --         Variant := Next_Non_Pragma (Variant);
256    --      end loop;
257
258    --  In the first form of the loop, Variant can either be an N_Pragma or
259    --  an N_Variant node. In the second form, Variant can only be N_Variant
260    --  since all pragmas are skipped.
261
262    ---------------------
263    -- Optional Fields --
264    ---------------------
265
266    --  Fields which correspond to a section of the syntax enclosed in square
267    --  brackets are generally omitted (and the corresponding field set to
268    --  Empty for a node, or No_List for a list). The documentation of such
269    --  fields notes these cases. One exception to this rule occurs in the
270    --  case of possibly empty statement sequences (such as the sequence of
271    --  statements in an entry call alternative). Such cases appear in the
272    --  syntax rules as [SEQUENCE_OF_STATEMENTS] and the fields corresponding
273    --  to such optional statement sequences always contain an empty list (not
274    --  No_List) if no statements are present.
275
276    --  Note: the utility program that constructs the body and spec of the
277    --  Nmake package relies on the format of the comments to determine if
278    --  a field should have a default value in the corresponding make routine.
279    --  The rule is that if the first line of the description of the field
280    --  contains the string "(set to xxx if", then a default value of xxx is
281    --  provided for this field in the corresponding Make_yyy routine.
282
283    -----------------------------------
284    -- Note on Body/Spec Terminology --
285    -----------------------------------
286
287    --  In informal discussions about Ada, it is customary to refer to package
288    --  and subprogram specs and bodies. However, this is not technically
289    --  correct, what is normally referred to as a spec or specification is in
290    --  fact a package declaration or subprogram declaration. We are careful
291    --  in GNAT to use the correct terminology and in particular, the full
292    --  word specification is never used as an incorrect substitute for
293    --  declaration. The structure and terminology used in the tree also
294    --  reflects the grammar and thus uses declaration and specification in
295    --  the technically correct manner.
296
297    --  However, there are contexts in which the informal terminology is
298    --  useful. We have the word "body" to refer to the Interp_Etype declared by
299    --  the declaration of a unit body, and in some contexts we need a
300    --  similar term to refer to the entity declared by the package or
301    --  subprogram declaration, and simply using declaration can be confusing
302    --  since the body also has a declaration.
303
304    --  An example of such a context is the link between the package body
305    --  and its declaration. With_Declaration is confusing, since
306    --  the package body itself is a declaration.
307
308    --  To deal with this problem, we reserve the informal term Spec, i.e.
309    --  the popular abbreviation used in this context, to refer to the entity
310    --  declared by the package or subprogram declaration. So in the above
311    --  example case, the field in the body is called With_Spec.
312
313    --  Another important context for the use of the word Spec is in error
314    --  messages, where a hyper-correct use of declaration would be confusing
315    --  to a typical Ada programmer, and even for an expert programmer can
316    --  cause confusion since the body has a declaration as well.
317
318    --  So, to summarize:
319
320    --     Declaration    always refers to the syntactic entity that is called
321    --                    a declaration. In particular, subprogram declaration
322    --                    and package declaration are used to describe the
323    --                    syntactic entity that includes the semicolon.
324
325    --     Specification  always refers to the syntactic entity that is called
326    --                    a specification. In particular, the terms procedure
327    --                    specification, function specification, package
328    --                    specification, subprogram specification always refer
329    --                    to the syntactic entity that has no semicolon.
330
331    --     Spec           is an informal term, used to refer to the entity
332    --                    that is declared by a task declaration, protected
333    --                    declaration, generic declaration, subprogram
334    --                    declaration or package declaration.
335
336    --  This convention is followed throughout the GNAT documentation
337    --  both internal and external, and in all error message text.
338
339    ------------------------
340    -- Internal Use Nodes --
341    ------------------------
342
343    --  These are Node_Kind settings used in the internal implementation
344    --  which are not logically part of the specification.
345
346    --  N_Unused_At_Start
347    --  Completely unused entry at the start of the enumeration type. This
348    --  is inserted so that no legitimate value is zero, which helps to get
349    --  better debugging behavior, since zero is a likely uninitialized value).
350
351    --  N_Unused_At_End
352    --  Completely unused entry at the end of the enumeration type. This is
353    --  handy so that arrays with Node_Kind as the index type have an extra
354    --  entry at the end (see for example the use of the Pchar_Pos_Array in
355    --  Treepr, where the extra entry provides the limit value when dealing
356    --  with the last used entry in the array).
357
358    -----------------------------------------
359    -- Note on the settings of Sloc fields --
360    -----------------------------------------
361
362    --  The Sloc field of nodes that come from the source is set by the
363    --  parser. For internal nodes, and nodes generated during expansion
364    --  the Sloc is usually set in the call to the constructor for the node.
365    --  In general the Sloc value chosen for an internal node is the Sloc of
366    --  the source node whose processing is responsible for the expansion. For
367    --  example, the Sloc of an inherited primitive operation is the Sloc of
368    --  the corresponding derived type declaration.
369
370    --  For the nodes of a generic instantiation, the Sloc value is encoded
371    --  to represent both the original Sloc in the generic unit, and the Sloc
372    --  of the instantiation itself. See Sinput.ads for details.
373
374    --  Subprogram instances create two callable entities: one is the visible
375    --  subprogram instance, and the other is an anonymous subprogram nested
376    --  within a wrapper package that contains the renamings for the actuals.
377    --  Both of these entities have the Sloc of the defining entity in the
378    --  instantiation node. This simplifies some ASIS queries.
379
380    -----------------------
381    -- Field Definitions --
382    -----------------------
383
384    --  In the following node definitions, all fields, both syntactic and
385    --  semantic, are documented. The one exception is in the case of entities
386    --  (defining indentifiers, character literals and operator symbols),
387    --  where the usage of the fields depends on the entity kind. Entity
388    --  fields are fully documented in the separate package Einfo.
389
390    --  In the node definitions, three common sets of fields are abbreviated
391    --  to save both space in the documentation, and also space in the string
392    --  (defined in Tree_Print_Strings) used to print trees. The following
393    --  abbreviations are used:
394
395    --  Note: the utility program that creates the Treeprs spec (in the file
396    --  xtreeprs.adb) knows about the special fields here, so it must be
397    --  modified if any change is made to these fields.
398
399    --    "plus fields for binary operator"
400    --       Chars                    (Name1)      Name_Id for the operator
401    --       Left_Opnd                (Node2)      left operand expression
402    --       Right_Opnd               (Node3)      right operand expression
403    --       Entity                   (Node4-Sem)  defining entity for operator
404    --       Associated_Node          (Node4-Sem)  for generic processing
405    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
406    --       Has_Private_View         (Flag11-Sem) set in generic units.
407
408    --    "plus fields for unary operator"
409    --       Chars                    (Name1)      Name_Id for the operator
410    --       Right_Opnd               (Node3)      right operand expression
411    --       Entity                   (Node4-Sem)  defining entity for operator
412    --       Associated_Node          (Node4-Sem)  for generic processing
413    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
414    --       Has_Private_View         (Flag11-Sem) set in generic units.
415
416    --    "plus fields for expression"
417    --       Paren_Count                           number of parentheses levels
418    --       Etype                    (Node5-Sem)  type of the expression
419    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
420    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
421    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
422    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
423    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
424    --       Assignment_OK            (Flag15-Sem) set if modification is OK
425    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
426
427    --  Note: see under (EXPRESSION) for further details on the use of
428    --  the Paren_Count field to record the number of parentheses levels.
429
430    --  Node_Kind is the type used in the Nkind field to indicate the node
431    --  kind. The actual definition of this type is given later (the reason
432    --  for this is that we want the descriptions ordered by logical chapter
433    --  in the RM, but the type definition is reordered to facilitate the
434    --  definition of some subtype ranges. The individual descriptions of
435    --  the nodes show how the various fields are used in each node kind,
436    --  as well as providing logical names for the fields. Functions and
437    --  procedures are provided for accessing and setting these fields
438    --  using these logical names.
439
440    -----------------------
441    -- Gigi Restrictions --
442    -----------------------
443
444    --  The tree passed to Gigi is more restricted than the general tree form.
445    --  For example, as a result of expansion, most of the tasking nodes can
446    --  never appear. For each node to which either a complete or partial
447    --  restriction applies, a note entitled "Gigi restriction" appears which
448    --  documents the restriction.
449
450    --  Note that most of these restrictions apply only to trees generated when
451    --  code is being generated, since they involved expander actions that
452    --  destroy the tree.
453
454    ------------------------
455    -- Common Flag Fields --
456    ------------------------
457
458    --  The following flag fields appear in all nodes
459
460    --  Analyzed
461    --    This flag is used to indicate that a node (and all its children
462    --    have been analyzed. It is used to avoid reanalysis of a node that
463    --    has already been analyzed, both for efficiency and functional
464    --    correctness reasons.
465
466    --  Error_Posted
467    --    This flag is used to avoid multiple error messages being posted
468    --    on or referring to the same node. This flag is set if an error
469    --    message refers to a node or is posted on its source location,
470    --    and has the effect of inhibiting further messages involving
471    --    this same node.
472
473    --  Comes_From_Source
474    --    This flag is on for any nodes built by the scanner or parser from
475    --    the source program, and off for any nodes built by the analyzer or
476    --    expander. It indicates that a node comes from the original source.
477    --    This flag is defined in Atree.
478
479    --  Has_Dynamic_Length_Check and Has_Dynamic_Range_Check also appear on
480    --  all nodes. They are fully described in the next section.
481
482    ------------------------------------
483    -- Description of Semantic Fields --
484    ------------------------------------
485
486    --  The meaning of the syntactic fields is generally clear from their
487    --  names without any further description, since the names are chosen
488    --  to correspond very closely to the syntax in the reference manual.
489    --  This section describes the usage of the semantic fields, which are
490    --  used to contain additional information determined during semantic
491    --  analysis.
492
493    --  ABE_Is_Certain (Flag18-Sem)
494    --    This flag is set in an instantiation node or a call node is
495    --    determined to be sure to raise an ABE. This is used to trigger
496    --    special handling of such cases, particularly in the instantiation
497    --    case where we avoid instantiating the body if this flag is set.
498    --    This flag is also present in an N_Formal_Package_Declaration_Node
499    --    since formal package declarations are treated like instantiations,
500    --    but it is always set to False in this context.
501
502    --  Accept_Handler_Records (List5-Sem)
503    --    This field is present only in an N_Accept_Alternative node. It is
504    --    used to temporarily hold the exception handler records from an
505    --    accept statement in a selective accept. These exception handlers
506    --    will eventually be placed in the Handler_Records list of the
507    --    procedure built for this accept (see Expand_N_Selective_Accept
508    --    procedure in Exp_Ch9 for further details).
509
510    --  Access_Types_To_Process (Elist2-Sem)
511    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
512    --    Contains the list of access types which may require specific
513    --    treatment when the nature of the type completion is completely
514    --    known. An example of such treatement is the generation of the
515    --    associated_final_chain.
516
517    --  Actions (List1-Sem)
518    --    This field contains a sequence of actions that are associated
519    --    with the node holding the field. See the individual node types
520    --    for details of how this field is used, as well as the description
521    --    of the specific use for a particular node type.
522
523    --  Activation_Chain_Entity (Node3-Sem)
524    --    This is used in tree nodes representing task activators (blocks,
525    --    subprogram bodies, package declarations, and task bodies). It is
526    --    initially Empty, and then gets set to point to the entity for the
527    --    declared Activation_Chain variable when the first task is declared.
528    --    When tasks are declared in the corresponding declarative region
529    --    this entity is located by name (its name is always _Chain) and
530    --    the declared tasks are added to the chain.
531
532    --  Acts_As_Spec (Flag4-Sem)
533    --    A flag set in the N_Subprogram_Body node for a subprogram body
534    --    which is acting as its own spec. This flag also appears in the
535    --    compilation unit node at the library level for such a subprogram
536    --    (see further description in spec of Lib package).
537
538    --  Aggregate_Bounds (Node3-Sem)
539    --    Present in array N_Aggregate nodes. If the aggregate contains
540    --    component associations this field points to an N_Range node whose
541    --    bounds give the lowest and highest discrete choice values. If the
542    --    named aggregate contains a dynamic or null choice this field is
543    --    empty. If the aggregate contains positional elements this field
544    --    points to an N_Integer_Literal node giving the number of positional
545    --    elements. Note that if the aggregate contains positional elements
546    --    and an other choice the N_Integer_Literal only accounts for the
547    --    number of positional elements.
548
549    --  All_Others (Flag11-Sem)
550    --    Present in an N_Others_Choice node. This flag is set in the case
551    --    of an others exception where all exceptions are to be caught, even
552    --    those that are not normally handled (in particular the tasking abort
553    --    signal). This is used for translation of the at end handler into
554    --    a normal exception handler.
555
556    --  Assignment_OK (Flag15-Sem)
557    --    This flag is set in a subexpression node for an object, indicating
558    --    that the associated object can be modified, even if this would not
559    --    normally be permissible (either by direct assignment, or by being
560    --    passed as an out or in-out parameter). This is used by the expander
561    --    for a number of purposes, including initialzation of constants and
562    --    limited type objects (such as tasks), setting discriminant fields,
563    --    setting tag values, etc. N_Object_Declaration nodes also have this
564    --    flag defined. Here it is used to indicate that an initialization
565    --    expression is valid, even where it would normally not be allowed
566    --    (e.g. where the type involved is limited).
567
568    --  Associated_Node (Node4-Sem)
569    --    Present in nodes that can denote an entity: identifiers, character
570    --    literals, operator symbols, expanded names, operator nodes, and
571    --    attribute reference nodes (all these nodes have an Entity field).
572    --    This field is also present in N_Aggregate, N_Selected_Component,
573    --    and N_Extension_Aggregate nodes. This field is used in generic
574    --    processing to create links between the generic template and the
575    --    generic copy. See Sem_Ch12.Get_Associated_Node for full details.
576    --    Note that this field overlaps Entity, which is fine, since, as
577    --    explained in Sem_Ch12, the normal function of Entity is not
578    --    required at the point where the Associated_Node is set. Note
579    --    also, that in generic templates, this means that the Entity field
580    --    does not necessarily point to an Entity. Since the back end is
581    --    expected to ignore generic templates, this is harmless.
582
583    --  At_End_Proc (Node1)
584    --    This field is present in an N_Handled_Sequence_Of_Statements node.
585    --    It contains an identifier reference for the cleanup procedure to
586    --    be called. See description of this node for further details.
587
588    --  Backwards_OK (Flag6-Sem)
589    --    A flag present in the N_Assignment_Statement node. It is used only
590    --    if the type being assigned is an array type, and is set if analysis
591    --    determines that it is definitely safe to do the copy backwards, i.e.
592    --    starting at the highest addressed element. Note that if neither of
593    --    the flags Forwards_OK or Backwards_OK is set, it means that the
594    --    front end could not determine that either direction is definitely
595    --    safe, and a runtime check is required.
596
597    --  Body_To_Inline (Node3-Sem)
598    --    present in subprogram declarations. Denotes analyzed but unexpanded
599    --    body of subprogram, to be used when inlining calls. Present when the
600    --    subprogram has an Inline pragma and inlining is enabled. If the
601    --    declaration is completed by a renaming_as_body, and the renamed en-
602    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
603    --    which is used directly in later calls to the original subprogram.
604
605    --  Body_Required (Flag13-Sem)
606    --    A flag that appears in the N_Compilation_Unit node indicating that
607    --    the corresponding unit requires a body. For the package case, this
608    --    indicates that a completion is required. In Ada 95, if the flag
609    --    is not set for the package case, then a body may not be present.
610    --    In Ada 83, if the flag is not set for the package case, then a
611    --    body is optional. For a subprogram declaration, the flag is set
612    --    except in the case where a pragma Import or Interface applies,
613    --    in which case no body is permitted (in Ada 83 or Ada 95).
614
615    --  By_Ref (Flag5-Sem)
616    --    A flag present in the N_Return_Statement_Node. It is set when the
617    --    returned expression is already allocated on the secondary stack
618    --    and thus the result is passed by reference rather than copied
619    --    another time.
620
621    --  Check_Address_Alignment (Flag11-Sem)
622    --    A flag present in N_Attribute_Definition clause for a 'Address
623    --    attribute definition. This flag is set if a dynamic check should
624    --    be generated at the freeze point for the entity to which this
625    --    address clause applies. The reason that we need this flag is that
626    --    we want to check for range checks being suppressed at the point
627    --    where the attribute definition clause is given, rather than
628    --    testing this at the freeze point.
629
630    --  Compile_Time_Known_Aggregate (Flag18-Sem)
631    --    Present in N_Aggregate nodes. Set for aggregates which can be
632    --    fully evaluated at compile time without raising constraint error.
633    --    Such aggregates can be passed as is to Gigi without any expansion.
634    --    See Sem_Aggr for the specific conditions under which an aggregate
635    --    has this flag set. See also the flag Static_Processing_OK.
636
637    --  Condition_Actions (List3-Sem)
638    --    This field appears in else-if nodes and in the iteration scheme
639    --    node for while loops. This field is only used during semantic
640    --    processing to temporarily hold actions inserted into the tree.
641    --    In the tree passed to gigi, the condition actions field is always
642    --    set to No_List. For details on how this field is used, see the
643    --    routine Insert_Actions in package Exp_Util, and also the expansion
644    --    routines for the relevant nodes.
645
646    --  Controlling_Argument (Node1-Sem)
647    --    This field is set in procedure and function call nodes if the call
648    --    is a dispatching call (it is Empty for a non-dispatching call).
649    --    It indicates the source of the controlling tag for the call. For
650    --    Procedure calls, the Controlling_Argument is one of the actuals.
651    --    For a function that has a dispatching result, it is an entity in
652    --    the context of the call that can provide a tag, or else it is the
653    --    tag of the root type of the class.
654
655    --  Conversion_OK (Flag14-Sem)
656    --    A flag set on type conversion nodes to indicate that the conversion
657    --    is to be considered as being valid, even though it is the case that
658    --    the conversion is not valid Ada. This is used for the Enum_Rep,
659    --    Fixed_Value and Integer_Value attributes, for internal conversions
660    --    done for fixed-point operations, and for certain conversions for
661    --    calls to initialization procedures. If Conversion_OK is set, then
662    --    Etype must be set (the analyzer assumes that Etype has been set).
663    --    For the case of fixed-point operands, it also indicates that the
664    --    conversion is to be a direct conversion of the underlying integer
665    --    result, with no regard to the small operand.
666
667    --  Corresponding_Body (Node5-Sem)
668    --    This field is set in subprogram declarations, package declarations,
669    --    entry declarations of protected types, and in generic units. It
670    --    points to the defining entity for the corresponding body (NOT the
671    --    node for the body itself).
672
673    --  Corresponding_Generic_Association (Node5-Sem)
674    --    This field is defined for object declarations and object renaming
675    --    declarations. It is set for the declarations within an instance that
676    --    map generic formals to their actuals.  If set, the field points to
677    --    a generic_association which is the original parent of the expression
678    --    or name appearing in the declaration. This simplifies ASIS queries.
679
680    --  Corresponding_Integer_Value (Uint4-Sem)
681    --    This field is set in real literals of fixed-point types (it is not
682    --    used for floating-point types). It contains the integer value used
683    --    to represent the fixed-point value. It is also set on the universal
684    --    real literals used to represent bounds of fixed-point base types
685    --    and their first named subtypes.
686
687    --  Corresponding_Spec (Node5-Sem)
688    --    This field is set in subprogram, package, task, and protected body
689    --    nodes, where it points to the defining entity in the corresponding
690    --    spec. The attribute is also set in N_With_Clause nodes, where
691    --    it points to the defining entity for the with'ed spec, and in
692    --    a subprogram renaming declaration when it is a Renaming_As_Body.
693    --    The field is Empty if there is no corresponding spec, as in the
694    --    case of a subprogram body that serves as its own spec.
695
696    --  Corresponding_Stub (Node3-Sem)
697    --    This field is present in an N_Subunit node. It holds the node in
698    --    the parent unit that is the stub declaration for the subunit. it is
699    --    set when analysis of the stub forces loading of the proper body. If
700    --    expansion of the proper body creates new declarative nodes, they are
701    --    inserted at the point of the corresponding_stub.
702
703    --  Dcheck_Function (Node5-Sem)
704    --    This field is present in an N_Variant node, It references the entity
705    --    for the discriminant checking function for the variant.
706
707    --  Debug_Statement (Node3)
708    --    This field is present in an N_Pragma node. It is used only for
709    --    a Debug pragma or pragma Assert with a second parameter. The
710    --    parameter is of the form of an expression, as required by the
711    --    pragma syntax, but is actually a procedure call. To simplify
712    --    semantic processing, the parser creates a copy of the argument
713    --    rearranged into a procedure call statement and places it in the
714    --    Debug_Statement field. Note that this field is considered a
715    --    syntactic field, since it is created by the parser.
716
717    --  Default_Expression (Node5-Sem)
718    --    This field is Empty if there is no default expression. If there
719    --    is a simple default expression (one with no side effects), then
720    --    this field simply contains a copy of the Expression field (both
721    --    point to the tree for the default expression). Default_Expression
722    --    is used for conformance checking.
723
724    --  Delay_Finalize_Attach (Flag14-Sem)
725    --    This flag is present in an N_Object_Declaration node. If it is set,
726    --    then in the case of a controlled type being declared and initialized,
727    --    the normal code for attaching the result to the appropriate local
728    --    finalization list is suppressed. This is used for functions that
729    --    return controlled types without using the secondary stack, where
730    --    it is the caller who must do the attachment.
731
732    --  Discr_Check_Funcs_Built (Flag11-Sem)
733    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
734    --    discriminant checking functions are constructed. The purpose is to
735    --    avoid attempting to set these functions more than once.
736
737    --  Do_Accessibility_Check (Flag13-Sem)
738    --    This flag is set on N_Parameter_Specification nodes to indicate
739    --    that an accessibility check is required for the parameter. It is
740    --    not yet decided who takes care of this check (TBD ???).
741
742    --  Do_Discriminant_Check (Flag13-Sem)
743    --    This flag is set on N_Selected_Component nodes to indicate that a
744    --    discriminant check is required using the discriminant check routine
745    --    associated with the selector. The actual check is generated by the
746    --    expander when processing selected components.
747
748    --  Do_Division_Check (Flag13-Sem)
749    --    This flag is set on a division operator (/ mod rem) to indicate
750    --    that a zero divide check is required. The actual check is dealt
751    --    with by the backend (all the front end does is to set the flag).
752
753    --  Do_Length_Check (Flag4-Sem)
754    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
755    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
756    --    is required. It is not determined who deals with this flag (???).
757
758    --  Do_Overflow_Check (Flag17-Sem)
759    --    This flag is set on an operator where an overflow check is required
760    --    on the operation. The actual check is dealt with by the backend
761    --    (all the front end does is to set the flag). The other cases where
762    --    this flag is used is on a Type_Conversion node and for attribute
763    --    reference nodes. For a type conversion, it means that the conversion
764    --    is from one base type to another, and the value may not fit in the
765    --    target base type. See also the description of Do_Range_Check for
766    --    this case. The only attribute references which use this flag are
767    --    Pred and Succ, where it means that the result should be checked
768    --    for going outside the base range.
769
770    --  Do_Range_Check (Flag9-Sem)
771    --    This flag is set on an expression which appears in a context where
772    --    a range check is required. The target type is clear from the
773    --    context. The contexts in which this flag can appear are limited to
774    --    the following.
775
776    --      Right side of an assignment. In this case the target type is
777    --      taken from the left side of the assignment, which is referenced
778    --      by the Name of the N_Assignment_Statement node.
779
780    --      Subscript expressions in an indexed component. In this case the
781    --      target type is determined from the type of the array, which is
782    --      referenced by the Prefix of the N_Indexed_Component node.
783
784    --      Argument expression for a parameter, appearing either directly
785    --      in the Parameter_Associations list of a call or as the Expression
786    --      of an N_Parameter_Association node that appears in this list. In
787    --      either case, the check is against the type of the formal. Note
788    --      that the flag is relevant only in IN and IN OUT parameters, and
789    --      will be ignored for OUT parameters, where no check is required
790    --      in the call, and if a check is required on the return, it is
791    --      generated explicitly with a type conversion.
792
793    --      Initialization expression for the initial value in an object
794    --      declaration. In this case the Do_Range_Check flag is set on
795    --      the initialization expression, and the check is against the
796    --      range of the type of the object being declared.
797
798    --      The expression of a type conversion. In this case the range check
799    --      is against the target type of the conversion. See also the use of
800    --      Do_Overflow_Check on a type conversion. The distinction is that
801    --      the overflow check protects against a value that is outside the
802    --      range of the target base type, whereas a range check checks that
803    --      the resulting value (which is a value of the base type of the
804    --      target type), satisfies the range constraint of the target type.
805
806    --    Note: when a range check is required in contexts other than those
807    --    listed above (e.g. in a return statement), an additional type
808    --    conversion node is introduced to represent the required check.
809
810    --  Do_Storage_Check (Flag17-Sem)
811    --    This flag is set in an N_Allocator node to indicate that a storage
812    --    check is required for the allocation, or in an N_Subprogram_Body
813    --    node to indicate that a stack check is required in the subprogram
814    --    prolog. The N_Allocator case is handled by the routine that expands
815    --    the call to the runtime routine. The N_Subprogram_Body case is
816    --    handled by the backend, and all the semantics does is set the flag.
817
818    --  Do_Tag_Check (Flag13-Sem)
819    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
820    --    N_Procedure_Call_Statement, N_Type_Conversion or N_Return_Statememt
821    --    node to indicate that the tag check can be suppressed. It is not
822    --    yet decided how this flag is used (TBD ???).
823
824    --  Elaborate_Present (Flag4-Sem)
825    --    This flag is set in the N_With_Clause node to indicate that a
826    --    pragma Elaborate pragma appears for the with'ed units.
827
828    --  Elaborate_All_Present (Flag14-Sem)
829    --    This flag is set in the N_With_Clause node to indicate that a
830    --    pragma Elaborate_All pragma appears for the with'ed units.
831
832    --  Elaboration_Boolean (Node2-Sem)
833    --    This field is present in function and procedure specification
834    --    nodes. If set, it points to the entity for a Boolean flag that
835    --    must be tested for certain calls to check for access before
836    --    elaboration. See body of Sem_Elab for further details. This
837    --    field is Empty if no elaboration boolean is required.
838
839    --  Else_Actions (List3-Sem)
840    --    This field is present in conditional expression nodes. During code
841    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
842    --    actions at an appropriate place in the tree to get elaborated at the
843    --    right time. For conditional expressions, we have to be sure that the
844    --    actions for the Else branch are only elaborated if the condition is
845    --    False. The Else_Actions field is used as a temporary parking place
846    --    for these actions. The final tree is always rewritten to eliminate
847    --    the need for this field, so in the tree passed to Gigi, this field
848    --    is always set to No_List.
849
850    --  Enclosing_Variant (Node2-Sem)
851    --    This field is present in the N_Variant node and identifies the
852    --    Node_Id corresponding to the immediately enclosing variant when
853    --    the variant is nested, and N_Empty otherwise. Set during semantic
854    --    processing of the variant part of a record type.
855
856    --  Entity (Node4-Sem)
857    --    Appears in all direct names (identifier, character literal,
858    --    operator symbol), as well as expanded names, and attributes that
859    --    denote entities, such as 'Class. Points to the entity for the
860    --    corresponding defining occurrence. Set after name resolution.
861    --    In the case of identifiers in a WITH list, the corresponding
862    --    defining occurrence is in a separately compiled file, and this
863    --    pointer must be set using the library Load procedure. Note that
864    --    during name resolution, the value in Entity may be temporarily
865    --    incorrect (e.g. during overload resolution, Entity is initially
866    --    set to the first possible correct interpretation, and then later
867    --    modified if necessary to contain the correct value after resolution).
868    --    Note that this field overlaps Associated_Node, which is used during
869    --    generic processing (see Sem_Ch12 for details). Note also that in
870    --    generic templates, this means that the Entity field does not always
871    --    point to an Entity. Since the back end is expected to ignore
872    --    generic templates, this is harmless.
873
874    --  Entity_Or_Associated_Node (Node4-Sem)
875    --    A synonym for both Entity and Associated_Node. Used by convention
876    --    in the code when referencing this field in cases where it is not
877    --    known whether the field contains an Entity or an Associated_Node.
878
879    --  Etype (Node5-Sem)
880    --    Appears in all expression nodes, all direct names, and all
881    --    entities. Points to the entity for the related type. Set after
882    --    type resolution. Normally this is the actual subtype of the
883    --    expression. However, in certain contexts such as the right side
884    --    of an assignment, subscripts, arguments to calls, returned value
885    --    in a function, initial value etc. it is the desired target type.
886    --    In the event that this is different from the actual type, the
887    --    Do_Range_Check flag will be set if a range check is required.
888    --    Note: if the Is_Overloaded flag is set, then Etype points to
889    --    an essentially arbitrary choice from the possible set of types.
890
891    --  Exception_Junk (Flag11-Sem)
892    --    This flag is set in a various nodes appearing in a statement
893    --    sequence to indicate that the corresponding node is an artifact
894    --    of the generated code for exception handling, and should be
895    --    ignored when analyzing the control flow of the relevant sequence
896    --    of statements (e.g. to check that it does not end with a bad
897    --    return statement).
898
899    --  Expansion_Delayed (Flag11-Sem)
900    --    Set on aggregates and extension aggregates that need a top-down
901    --    rather than bottom up expansion. Typically aggregate expansion
902    --    happens bottom up. For nested aggregates the expansion is delayed
903    --    until the enclosing aggregate itself is expanded, e.g. in the context
904    --    of a declaration. To delay it we set this flag. This is done to
905    --    avoid creating a temporary for each level of a nested aggregates,
906    --    and also to prevent the premature generation of constraint checks.
907    --    This is also a requirement if we want to generate the proper
908    --    attachment to the internal finalization lists (for record with
909    --    controlled components). Top down expansion of aggregates is also
910    --    used for in-place array aggregate assignment or initialization.
911    --    When the full context is known, the target of the assignment or
912    --    initialization is used to generate the left-hand side of individual
913    --    assignment to each sub-component.
914
915    --  First_Inlined_Subprogram (Node3-Sem)
916    --    Present in the N_Compilation_Unit node for the main program. Points
917    --    to a chain of entities for subprograms that are to be inlined. The
918    --    Next_Inlined_Subprogram field of these entities is used as a link
919    --    pointer with Empty marking the end of the list. This field is Empty
920    --    if there are no inlined subprograms or inlining is not active.
921
922    --  First_Named_Actual (Node4-Sem)
923    --    Present in procedure call statement and function call nodes, and
924    --    also in Intrinsic nodes. Set during semantic analysis to point to
925    --    the first named parameter where parameters are ordered by declaration
926    --    order (as opposed to the actual order in the call which may be
927    --    different due to named associations). Note: this field points to the
928    --    explicit actual parameter itself, not the N_Parameter_Association
929    --    node (its parent).
930
931    --  First_Real_Statement (Node2-Sem)
932    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
933    --    Empty. Used only when declarations are moved into the statement
934    --    part of a construct as a result of wrapping an AT END handler that
935    --    is required to cover the declarations. In this case, this field is
936    --    used to remember the location in the statements list of the first
937    --    real statement, i.e. the statement that used to be first in the
938    --    statement list before the declarations were prepended.
939
940    --  First_Subtype_Link (Node5-Sem)
941    --    Present in N_Freeze_Entity node for an anonymous base type that
942    --    is implicitly created by the declaration of a first subtype. It
943    --    points to the entity for the first subtype.
944
945    --  Float_Truncate (Flag11-Sem)
946    --    A flag present in type conversion nodes. This is used for float
947    --    to integer conversions where truncation is required rather than
948    --    rounding. Note that Gigi does not handle type conversions from real
949    --    to integer with rounding (see Expand_N_Type_Conversion).
950
951    --  Forwards_OK (Flag5-Sem)
952    --    A flag present in the N_Assignment_Statement node. It is used only
953    --    if the type being assigned is an array type, and is set if analysis
954    --    determines that it is definitely safe to do the copy forwards, i.e.
955    --    starting at the lowest addressed element. Note that if neither of
956    --    the flags Forwards_OK or Backwards_OK is set, it means that the
957    --    front end could not determine that either direction is definitely
958    --    safe, and a runtime check is required.
959
960    --  From_At_Mod (Flag4-Sem)
961    --    This flag is set on the attribute definition clause node that is
962    --    generated by a transformation of an at mod phrase in a record
963    --    representation clause. This is used to give slightly different
964    --    (Ada 83 compatible) semantics to such a clause, namely it is
965    --    used to specify a minimum acceptable alignment for the base type
966    --    and all subtypes. In Ada 95 terms, the actual alignment of the
967    --    base type and all subtypes must be a multiple of the given value,
968    --    and the representation clause is considered to be type specific
969    --    instead of subtype specific.
970
971    --  From_Default (Flag6-Sem)
972    --    This flag is set on the subprogram renaming declaration created in
973    --    an instance for a formal subprogram, when the formal is declared
974    --    with a box, and there is no explicit actual. If the flag is present,
975    --    the declaration is treated as an implicit reference to the formal in
976    --    the ali file.
977
978    --  Generic_Parent (Node5-Sem)
979    --    Generic_parent is defined on declaration nodes that are instances.
980    --    The value of Generic_Parent is the generic entity from which the
981    --    instance is obtained. Generic_Parent is also defined for the renaming
982    --    declarations and object declarations created for the actuals in an
983    --    instantiation. The generic parent of such a declaration is the
984    --    corresponding generic association in the Instantiation node.
985
986    --  Generic_Parent_Type (Node4-Sem)
987    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for
988    --    the actuals of formal private and derived types. Within the instance,
989    --    the operations on the actual are those inherited from the parent.
990    --    For a formal private type, the parent type is the generic type
991    --    itself. The Generic_Parent_Type is also used in an instance to
992    --    determine whether a private operation overrides an inherited one.
993
994    --  Handler_List_Entry (Node2-Sem)
995    --    This field is present in N_Object_Declaration nodes. It is set only
996    --    for the Handler_Record entry generated for an exception in zero cost
997    --    exception handling mode. It references the corresponding item in the
998    --    handler list, and is used to delete this entry if the corresponding
999    --    handler is deleted during optimization. For further details on why
1000    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1001
1002    --  Has_Dynamic_Length_Check (Flag10-Sem)
1003    --    This flag is present on all nodes. It is set to indicate that one
1004    --    of the routines in unit Checks has generated a length check action
1005    --    which has been inserted at the flagged node. This is used to avoid
1006    --    the generation of duplicate checks.
1007
1008    --  Has_Dynamic_Range_Check (Flag12-Sem)
1009    --    This flag is present on all nodes. It is set to indicate that one
1010    --    of the routines in unit Checks has generated a range check action
1011    --    which has been inserted at the flagged node. This is used to avoid
1012    --    the generation of duplicate checks.
1013
1014    --  Has_No_Elaboration_Code (Flag17-Sem)
1015    --    A flag that appears in the N_Compilation_Unit node to indicate
1016    --    whether or not elaboration code is present for this unit. It is
1017    --    initially set true for subprogram specs and bodies and for all
1018    --    generic units and false for non-generic package specs and bodies.
1019    --    Gigi may set the flag in the non-generic package case if it
1020    --    determines that no elaboration code is generated. Note that this
1021    --    flag is not related to the Is_Preelaborated status, there can be
1022    --    preelaborated packages that generate elaboration code, and non-
1023    --    preelaborated packages which do not generate elaboration code.
1024
1025    --  Has_Priority_Pragma (Flag6-Sem)
1026    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1027    --    N_Protected_Definition nodes to flag the presence of either
1028    --    a Priority or Interrupt_Priority pragma in the declaration
1029    --    sequence (public or private in the task and protected cases)
1030
1031    --  Has_Private_View (Flag11-Sem)
1032    --    A flag present in generic nodes that have an entity, to indicate
1033    --    that the node has a private type. Used to exchange private
1034    --    and full declarations if the visibility at instantiation is
1035    --    different from the visibility at generic definition.
1036
1037    --  Has_Storage_Size_Pragma (Flag5-Sem)
1038    --    A flag present in an N_Task_Definition node to flag the presence
1039    --    of a Storage_Size pragma
1040
1041    --  Has_Task_Info_Pragma (Flag7-Sem)
1042    --    A flag present in an N_Task_Definition node to flag the presence
1043    --    of a Task_Info pragma. Used to detect duplicate pragmas.
1044
1045    --  Has_Task_Name_Pragma (Flag8-Sem)
1046    --    A flag present in N_Task_Definition nodes to flag the presence
1047    --    of a Task_Name pragma in the declaration sequence for the task.
1048
1049    --  Has_Wide_Character (Flag11-Sem)
1050    --    Present in string literals, set if any wide character (i.e. a
1051    --    character code outside the Character range) appears in the string.
1052
1053    --  Hidden_By_Use_Clause (Elist4-Sem)
1054    --     An entity list present in use clauses that appear within
1055    --     instantiations. For the resolution of local entities, entities
1056    --     introduced by these use clauses have priority over global ones,
1057    --     and outer entities must be explicitly hidden/restored on exit.
1058
1059    --  Implicit_With (Flag16-Sem)
1060    --    This flag is set in the N_With_Clause node that is implicitly
1061    --    generated for runtime units that are loaded by the expander, and
1062    --    also for package System, if it is loaded implicitly by a use of
1063    --    the 'Address or 'Tag attribute
1064
1065    --  Includes_Infinities (Flag11-Sem)
1066    --    This flag is present in N_Range nodes. It is set for the range
1067    --    of unconstrained float types defined in Standard, which include
1068    --    not only the given range of values, but also legtitimately can
1069    --    include infinite values. This flag is false for any float type
1070    --    for which an explicit range is given by the programmer, even if
1071    --    that range is identical to the range for float.
1072
1073    --  Instance_Spec (Node5-Sem)
1074    --    This field is present in generic instantiation nodes, and also in
1075    --    formal package declaration nodes (formal package declarations are
1076    --    treated in a manner very similar to package instantiations). It
1077    --    points to the node for the spec of the instance, inserted as part
1078    --    of the semantic processing for instantiations in Sem_Ch12.
1079
1080    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1081    --    A flag set in a Block_Statement node to indicate that it is the
1082    --    expansion of an asynchronous entry call. Such a block needs a
1083    --    cleanup handler to assure that the call is cancelled.
1084
1085    --  Is_Component_Left_Opnd  (Flag13-Sem)
1086    --  Is_Component_Right_Opnd (Flag14-Sem)
1087    --    Present in concatenation nodes, to indicate that the corresponding
1088    --    operand is of the component type of the result. Used in resolving
1089    --    concatenation nodes in instances.
1090
1091    --  Is_Controlling_Actual (Flag16-Sem)
1092    --    This flag is set on in an expression that is a controlling argument
1093    --    in a dispatching call. It is off in all other cases. See Sem_Disp
1094    --    for details of its use.
1095
1096    --  Is_In_Discriminant_Check (Flag11-Sem)
1097    --    This flag is present in a selected component, and is used to
1098    --    indicate that the reference occurs within a discriminant check.
1099    --    The significance is that optimizations based on assuming that
1100    --    the discriminant check has a correct value cannot be performed
1101    --    in this case (or the disriminant check may be optimized away!)
1102
1103    --  Is_Machine_Number (Flag11-Sem)
1104    --    This flag is set in an N_Real_Literal node to indicate that the
1105    --    value is a machine number. This avoids some unnecessary cases
1106    --    of converting real literals to machine numbers.
1107
1108    --  Is_Null_Loop (Flag16-Sem)
1109    --    This flag is set in an N_Loop_Statement node if the corresponding
1110    --    loop can be determined to be null at compile time. This is used to
1111    --    suppress any warnings that would otherwise be issued inside the
1112    --    loop since they are probably not useful.
1113
1114    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1115    --    A flag present only in N_Op_Expon nodes. It is set when the
1116    --    exponentiation is of the forma 2 ** N, where the type of N is
1117    --    an unsigned integral subtype whose size does not exceed the size
1118    --    of Standard_Integer (i.e. a type that can be safely converted to
1119    --    Natural), and the exponentiation appears as the right operand of
1120    --    an integer multiplication or an integer division where the dividend
1121    --    is unsigned. It is also required that overflow checking is off for
1122    --    both the exponentiation and the multiply/divide node. If this set
1123    --    of conditions holds, and the flag is set, then the division or
1124    --    multiplication can be (and is) converted to a shift.
1125
1126    --  Is_Overloaded (Flag5-Sem)
1127    --    A flag present in all expression nodes. Used temporarily during
1128    --    overloading determination. The setting of this flag is not
1129    --    relevant once overloading analysis is complete.
1130
1131    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1132    --    A flag set in a Subprogram_Body block to indicate that it is the
1133    --    implemenation of a protected subprogram. Such a body needs a
1134    --    cleanup handler to make sure that the associated protected object
1135    --    is unlocked when the subprogram completes.
1136
1137    --  Is_Static_Expression (Flag6-Sem)
1138    --    Indicates that an expression is a static expression (RM 4.9). See
1139    --    spec of package Sem_Eval for full details on the use of this flag.
1140
1141    --  Is_Subprogram_Descriptor (Flag16-Sem)
1142    --    Present in N_Object_Declaration, and set only for the object
1143    --    declaration generated for a subprogram descriptor in fast exception
1144    --    mode. See Exp_Ch11 for details of use.
1145
1146    --  Is_Task_Allocation_Block (Flag6-Sem)
1147    --    A flag set in a Block_Statement node to indicate that it is the
1148    --    expansion of a task allocator, or the allocator of an object
1149    --    containing tasks. Such a block requires a cleanup handler to call
1150    --    Expunge_Unactivted_Tasks to complete any tasks that have been
1151    --    allocated but not activated when the allocator completes abnormally.
1152
1153    --  Is_Task_Master (Flag5-Sem)
1154    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node
1155    --    to indicate that the construct is a task master (i.e. has declared
1156    --    tasks or declares an access to a task type).
1157
1158    --  Itype (Node1-Sem)
1159    --    Used in N_Itype_Reference node to reference an itype for which it
1160    --    is important to ensure that it is defined. See description of this
1161    --    node for further details.
1162
1163    --  Kill_Range_Check (Flag11-Sem)
1164    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1165    --    result should not be subjected to range checks. This is used for
1166    --    the implementation of Normalize_Scalars.
1167
1168    --  Label_Construct (Node2-Sem)
1169    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1170    --    N_Block_Statement or N_Loop_Statement node to which the label
1171    --    declaration applies. This is not currently used in the compiler
1172    --    itself, but it is useful in the implementation of ASIS queries.
1173
1174    --  Library_Unit (Node4-Sem)
1175    --    In a stub node, the Library_Unit field points to the compilation unit
1176    --    node of the corresponding subunit.
1177    --
1178    --    In a with clause node, the Library_Unit field points to the spec
1179    --    of the with'ed unit.
1180    --
1181    --    In a compilation unit node, the use of this field depends on
1182    --    the unit type:
1183    --
1184    --     For a subprogram body, the Library_Unit field points to the
1185    --     compilation unit node of the corresponding spec, unless
1186    --     Acts_As_Spec is set, in which case it points to itself.
1187    --
1188    --     For a package body, the Library_Unit field points to the
1189    --     compilation unit node of the corresponding spec.
1190    --
1191    --     For a subprogram spec to which pragma Inline applies, the
1192    --     Library_Unit field points to the compilation unit node of
1193    --     the corresponding body, if inlining is active.
1194    --
1195    --     For a generic declaration, the Library_Unit field points
1196    --     to the compilation unit node of the corresponding generic body.
1197    --
1198    --     For a subunit, the Library_Unit field points to the compilation
1199    --     unit node of the parent body.
1200    --
1201    --    Note that this field is not used to hold the parent pointer for a
1202    --    child unit (which might in any case need to use it for some other
1203    --    purpose as described above). Instead for a child unit, implicit
1204    --    with's are generated for all parents.
1205
1206    --  Loop_Actions (List2-Sem)
1207    --    A list present in Component_Association nodes in array aggregates.
1208    --    Used to collect actions that must be executed within the loop because
1209    --    they may need to be evaluated anew each time through.
1210
1211    --  Limited_View_Installed (Flag18-Sem)
1212    --    Present in With_Clauses and in package specifications. If set on a
1213    --    with_clause, it indicates that this clause has created the current
1214    --    limited view of the designated package. On a package specification,
1215    --    it indicates that the limited view has already been created because
1216    --    the package is mentioned in a limited_with_clause in the closure of
1217    --    the unit being compiled.
1218
1219    --  Must_Be_Byte_Aligned (Flag14-Sem)
1220    --    This flag is present in N_Attribute_Reference nodes. It can be set
1221    --    only for the Address and Unrestricted_Access attributes. If set it
1222    --    means that the object for which the address/access is given must be
1223    --    on a byte (more accurately a storage unit) boundary. If necessary,
1224    --    a copy of the object is to be made before taking the address (this
1225    --    copy is in the current scope on the stack frame). This is used for
1226    --    certain cases of code generated by the expander that passes
1227    --    parameters by address.
1228    --
1229    --    The reason the copy is not made by the front end is that the back
1230    --    end has more information about type layout and may be able to (but
1231    --    is not guaranteed to) prevent making unnecessary copies.
1232
1233    --  Must_Not_Freeze (Flag8-Sem)
1234    --    A flag present in all expression nodes. Normally expressions cause
1235    --    freezing as described in the RM. If this flag is set, then this
1236    --    is inhibited. This is used by the analyzer and expander to label
1237    --    nodes that are created by semantic analysis or expansion and which
1238    --    must not cause freezing even though they normally would. This flag
1239    --    is also present in an N_Subtype_Indication node, since we also use
1240    --    these in calls to Freeze_Expression.
1241
1242    --  Next_Entity (Node2-Sem)
1243    --    Present in defining identifiers, defining character literals and
1244    --    defining operator symbols (i.e. in all entities). The entities of
1245    --    a scope are chained, and this field is used as the forward pointer
1246    --    for this list. See Einfo for further details.
1247
1248    --  Next_Named_Actual (Node4-Sem)
1249    --    Present in parameter association node. Set during semantic
1250    --    analysis to point to the next named parameter, where parameters
1251    --    are ordered by declaration order (as opposed to the actual order
1252    --    in the call, which may be different due to named associations).
1253    --    Not that this field points to the explicit actual parameter itself,
1254    --    not to the N_Parameter_Association node (its parent).
1255
1256    --  Next_Rep_Item (Node4-Sem)
1257    --    Present in pragma nodes and attribute definition nodes. Used to
1258    --    link representation items that apply to an entity. See description
1259    --    of First_Rep_Item field in Einfo for full details.
1260
1261    --  Next_Use_Clause (Node3-Sem)
1262    --    While use clauses are active during semantic processing, they
1263    --    are chained from the scope stack entry, using Next_Use_Clause
1264    --    as a link pointer, with Empty marking the end of the list. The
1265    --    head pointer is in the scope stack entry (First_Use_Clause). At
1266    --    the end of semantic processing (i.e. when Gigi sees the tree,
1267    --    the contents of this field is undefined and should not be read).
1268
1269    --  No_Ctrl_Actions (Flag7-Sem)
1270    --    Present in N_Assignment_Statement to indicate that no finalize nor
1271    --    nor adjust should take place on this assignment eventhough the rhs
1272    --    is controlled. This is used in init procs and aggregate expansions
1273    --    where the generated assignments are more initialisations than real
1274    --    assignments.
1275
1276    --  No_Elaboration_Check (Flag14-Sem)
1277    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1278    --    that no elaboration check is needed on the call, because it appears
1279    --    in the context of a local Suppress pragma. This is used on calls
1280    --    within task bodies, where the actual elaboration checks are applied
1281    --    after analysis, when the local scope stack is not present.
1282
1283    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1284    --    Present in N_With_Clause nodes. Set if the with clause is on the
1285    --    package or subprogram spec where the main unit is the corresponding
1286    --    body, and no entities of the with'ed unit are referenced by the spec
1287    --    (an entity may still be referenced in the body, so this flag is used
1288    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1289    --    full details)
1290
1291    --  No_Initialization (Flag13-Sem)
1292    --    Present in N_Object_Declaration & N_Allocator to indicate
1293    --    that the object must not be initialized (by Initialize or a
1294    --    call to an init proc). This is needed for controlled aggregates.
1295    --    When the Object declaration has an expression, this flag means
1296    --    that this expression should not be taken into account (needed
1297    --    for in place initialization with aggregates)
1298
1299    --  No_Truncation (Flag17-Sem)
1300    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1301    --    only if the RM_Size of the source is greater than the RM_Size of the
1302    --    target for scalar operands. Normally in such a case we truncate some
1303    --    higher order bits of the source, and then sign/zero extend the result
1304    --    to form the output value. But if this flag is set, then we do not do
1305    --    any truncation, so for example, if an 8 bit input is converted to a
1306    --    5 bit result which is in fact stored in 8 bits, then the high order
1307    --    three bits of the target result will be copied from the source. This
1308    --    is used for properly setting out of range values for use by pragmas
1309    --    Initialize_Scalars and Normalize_Scalars.
1310
1311    --  OK_For_Stream (Flag4-Sem)
1312    --    Present in N_Attribute_Definition clauses for stream attributes. If
1313    --    set, indicates that the attribute is permitted even though the type
1314    --    involved is a limited type. In the case of a protected type, the
1315    --    result is to stream all components (including discriminants) in
1316    --    lexical order. For other limited types, the effect is simply to
1317    --    use the corresponding stream routine for the full type. This flag
1318    --    is used for internally generated code, where the streaming of these
1319    --    types is required, even though not normally allowed by the language.
1320
1321    --  Original_Discriminant (Node2-Sem)
1322    --    Present in identifiers. Used in references to discriminants that
1323    --    appear in generic units. Because the names of the discriminants
1324    --    may be different in an instance, we use this field to recover the
1325    --    position of the discriminant in the original type, and replace it
1326    --    with the discriminant at the same position in the instantiated type.
1327
1328    --  Original_Entity (Node2-Sem)
1329    --    Present in numeric literals. Used to denote the named number that
1330    --    has been constant-folded into the given literal. If literal is from
1331    --    source, or the result of some other constant-folding operation, then
1332    --    Original_Entity is empty. This field is needed to handle properly
1333    --    named numbers in generic units, where the Associated_Node field
1334    --    interferes with the Entity field, making it impossible to preserve
1335    --    the original entity at the point of instantiation (ASIS problem).
1336
1337    --  Others_Discrete_Choices (List1-Sem)
1338    --    When a case statement or variant is analyzed, the semantic checks
1339    --    determine the actual list of choices that correspond to an others
1340    --    choice. This list is materialized for later use by the expander
1341    --    and the Others_Discrete_Choices field of an N_Others_Choice node
1342    --    points to this materialized list of choices, which is in standard
1343    --    format for a list of discrete choices, except that of course it
1344    --    cannot contain an N_Others_Choice entry.
1345
1346    --  Parameter_List_Truncated (Flag17-Sem)
1347    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes.
1348    --    Set (for OpenVMS ports of GNAT only) if the parameter list is
1349    --    truncated as a result of a First_Optional_Parameter specification
1350    --    in an Import_Function, Import_Procedure, or Import_Valued_Procedure
1351    --    pragma. The truncation is done by the expander by removing trailing
1352    --    parameters from the argument list, in accordance with the set of
1353    --    rules allowing such parameter removal. In particular, parameters
1354    --    can be removed working from the end of the parameter list backwards
1355    --    up to and including the entry designated by First_Optional_Parameter
1356    --    in the Import pragma. Parameters can be removed if they are implicit
1357    --    and the default value is a known-at-compile-time value, including
1358    --    the use of the Null_Parameter attribute, or if explicit parameter
1359    --    values are present that match the corresponding defaults.
1360
1361    --  Parent_Spec (Node4-Sem)
1362    --    For a library unit that is a child unit spec (package or subprogram
1363    --    declaration, generic declaration or instantiation, or library level
1364    --    rename, this field points to the compilation unit node for the parent
1365    --    package specification. This field is Empty for library bodies (the
1366    --    parent spec in this case can be found from the corresponding spec).
1367
1368    --  Present_Expr (Uint3-Sem)
1369    --    Present in an N_Variant node. This has a meaningful value only after
1370    --    Gigi has back annotated the tree with representation information.
1371    --    At this point, it contains a reference to a gcc expression that
1372    --    depends on the values of one or more discriminants. Give a set of
1373    --    discriminant values, this expression evaluates to False (zero) if
1374    --    variant is not present, and True (non-zero) if it is present. See
1375    --    unit Repinfo for further details on gigi back annotation. This
1376    --    field is used during ASIS processing (data decomposition annex)
1377    --    to determine if a field is present or not.
1378
1379    --  Print_In_Hex (Flag13-Sem)
1380    --    Set on an N_Integer_Literal node to indicate that the value should
1381    --    be printed in hexadecimal in the sprint listing. Has no effect on
1382    --    legality or semantics of program, only on the displayed output.
1383    --    This is used to clarify output from the packed array cases.
1384
1385    --  Procedure_To_Call (Node4-Sem)
1386    --    Present in N_Allocator. N_Free_Statement, and N_Return_Statement
1387    --    nodes. References the entity for the declaration of the procedure
1388    --    to be called to accomplish the required operation (i.e. for the
1389    --    Allocate procedure in the case of N_Allocator and N_Return_Statement
1390    --    (for allocating the return value), and for the Deallocate procedure
1391    --    in the case of N_Free_Statement.
1392
1393    --  Raises_Constraint_Error (Flag7-Sem)
1394    --    Set on an expression whose evaluation will definitely fail a
1395    --    constraint error check. In the case of static expressions, this
1396    --    flag must be set accurately (and if it is set, the expression is
1397    --    typically illegal unless it appears as a non-elaborated branch of
1398    --    a short-circuit form). For a non-static expression, this flag may
1399    --    be set whenever an expression (e.g. an aggregate) is known to raise
1400    --    constraint error. If set, the expression definitely will raise CE
1401    --    if elaborated at runtime. If not set, the expression may or may
1402    --    not raise CE. In other words, on static expressions, the flag is
1403    --    set accurately, on non-static expressions it is set conservatively.
1404
1405    --  Redundant_Use (Flag13-Sem)
1406    --    A flag present in nodes that can appear as an operand in a use
1407    --    clause or use type clause (identifiers, expanded names, attribute
1408    --    references). Set to indicate that a use is redundant (and therefore
1409    --    need not be undone on scope exit).
1410
1411    --  Return_Type (Node2-Sem)
1412    --    Present in N_Return_Statement node. For a procedure, this is set
1413    --    to Standard_Void_Type. For a function it references the entity
1414    --    for the returned type.
1415
1416    --  Rounded_Result (Flag18-Sem)
1417    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1418    --    Used in the fixed-point cases to indicate that the result must be
1419    --    rounded as a result of the use of the 'Round attribute. Also used
1420    --    for integer N_Op_Divide nodes to indicate that the result should
1421    --    be rounded to the nearest integer (breaking ties away from zero),
1422    --    rather than truncated towards zero as usual. These rounded integer
1423    --    operations are the result of expansion of rounded fixed-point
1424    --    divide, conersion and multiplication operations.
1425
1426    --  Scope (Node3-Sem)
1427    --    Present in defining identifiers, defining character literals and
1428    --    defining operator symbols (i.e. in all entities). The entities of
1429    --    a scope all use this field to reference the corresponding scope
1430    --    entity. See Einfo for further details.
1431
1432    --  Shift_Count_OK (Flag4-Sem)
1433    --    A flag present in shift nodes to indicate that the shift count is
1434    --    known to be in range, i.e. is in the range from zero to word length
1435    --    minus one. If this flag is not set, then the shift count may be
1436    --    outside this range, i.e. larger than the word length, and the code
1437    --    must ensure that such shift counts give the appropriate result.
1438
1439    --  Source_Type (Node1-Sem)
1440    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1441    --    source type entity for the unchecked conversion instantiation
1442    --    which gigi must do size validation for.
1443
1444    --  Static_Processing_OK (Flag4-Sem)
1445    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1446    --    flag is set, the full value of the aggregate can be determined at
1447    --    compile time and the aggregate can be passed as is to the back-end.
1448    --    In this event it is irrelevant whether this flag is set or not.
1449    --    However, if the Compile_Time_Known_Aggregate flag is not set but
1450    --    Static_Processing_OK is set, the aggregate can (but need not) be
1451    --    converted into a compile time known aggregate by the expander.
1452    --    See Sem_Aggr for the specific conditions under which an aggregate
1453    --    has its Static_Processing_OK flag set.
1454
1455    --  Storage_Pool (Node1-Sem)
1456    --    Present in N_Allocator, N_Free_Statement and N_Return_Statement
1457    --    nodes. References the entity for the storage pool to be used for
1458    --    the allocate or free call or for the allocation of the returned
1459    --    value from a function. Empty indicates that the global default
1460    --    default pool is to be used. Note that in the case of a return
1461    --    statement, this field is set only if the function returns a
1462    --    value of a type whose size is not known at compile time on the
1463    --    secondary stack. It is never set on targets for which the target
1464    --    parameter Targparm.Functions_Return_By_DSP_On_Target is True.
1465
1466    --  Target_Type (Node2-Sem)
1467    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1468    --    target type entity for the unchecked conversion instantiation
1469    --    which gigi must do size validation for.
1470
1471    --  Task_Body_Procedure (Node2-Sem)
1472    --    Present in task type declaration nodes. Points to the entity for
1473    --    the task body procedure (as further described in Exp_Ch9, task
1474    --    bodies are expanded into procedures). A convenient function to
1475    --    retrieve this field is Sem_Util.Get_Task_Body_Procedure.
1476
1477    --  Then_Actions (List3-Sem)
1478    --    This field is present in conditional expression nodes. During code
1479    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1480    --    actions at an appropriate place in the tree to get elaborated at the
1481    --    right time. For conditional expressions, we have to be sure that the
1482    --    actions for the Then branch are only elaborated if the condition is
1483    --    True. The Then_Actions field is used as a temporary parking place
1484    --    for these actions. The final tree is always rewritten to eliminate
1485    --    the need for this field, so in the tree passed to Gigi, this field
1486    --    is always set to No_List.
1487
1488    --  Treat_Fixed_As_Integer (Flag14-Sem)
1489    --    This flag appears in operator nodes for divide, multiply, mod and
1490    --    rem on fixed-point operands. It indicates that the operands are
1491    --    to be treated as integer values, ignoring small values. This flag
1492    --    is only set as a result of expansion of fixed-point operations.
1493    --    Typically a fixed-point multplication in the source generates
1494    --    subsidiary multiplication and division operations that work with
1495    --    the underlying integer values and have this flag set. Note that
1496    --    this flag is not needed on other arithmetic operations (add, neg,
1497    --    subtract etc) since in these cases it is always the case that fixed
1498    --    is treated as integer. The Etype field MUST be set if this flag
1499    --    is set. The analyzer knows to leave such nodes alone, and whoever
1500    --    makes them must set the correct Etype value.
1501
1502    --  TSS_Elist (Elist3-Sem)
1503    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1504    --    entries for each TSS (type support subprogram) associated with the
1505    --    frozen type. The elements of the list are the entities for the
1506    --    subprograms (see package Exp_TSS for further details). Set to
1507    --    No_Elist if there are no type support subprograms for the type
1508    --    or if the freeze node is not for a type.
1509
1510    --  Unreferenced_In_Spec (Flag7-Sem)
1511    --    Present in N_With_Clause nodes. Set if the with clause is on the
1512    --    package or subprogram spec where the main unit is the corresponding
1513    --    body, and is not referenced by the spec (it may still be referenced
1514    --    by the body, so this flag is used to generate the proper message
1515    --    (see Sem_Util.Check_Unused_Withs for details)
1516
1517    --  Was_Originally_Stub (Flag13-Sem)
1518    --    This flag is set in the node for a proper body that replaces a
1519    --    stub. During the analysis procedure, stubs in some situations
1520    --    get rewritten by the corresponding bodies, and we set this flag
1521    --    to remember that this happened. Note that it is not good enough
1522    --    to rely on the use of Original_Tree here because of the case of
1523    --    nested instantiations where the substituted node can be copied.
1524
1525    --  Zero_Cost_Handling (Flag5-Sem)
1526    --    This flag is set in all handled sequence of statement and exception
1527    --    handler nodes if eceptions are to be handled using the zero-cost
1528    --    mechanism (see Ada.Exceptions and System.Exceptions in files
1529    --    a-except.ads/adb and s-except.ads for full details). What gigi
1530    --    needs to do for such a handler is simply to put the code in the
1531    --    handler somewhere. The front end has generated all necessary labels.
1532
1533    --------------------------------------------------
1534    -- Note on Use of End_Label and End_Span Fields --
1535    --------------------------------------------------
1536
1537    --  Several constructs have end lines:
1538
1539    --    Loop Statement             end loop [loop_IDENTIFIER];
1540    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1541    --    Task Definition            end [task_IDENTIFIER]
1542    --    Protected Definition       end [protected_IDENTIFIER]
1543    --    Protected Body             end [protected_IDENTIFIER]
1544
1545    --    Block Statement            end [block_IDENTIFIER];
1546    --    Subprogram Body            end [DESIGNATOR];
1547    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1548    --    Task Body                  end [task_IDENTIFIER];
1549    --    Accept Statement           end [entry_IDENTIFIER]];
1550    --    Entry Body                 end [entry_IDENTIFIER];
1551
1552    --    If Statement               end if;
1553    --    Case Statement             end case;
1554
1555    --    Record Definition          end record;
1556    --    Enumeration Definition     );
1557
1558    --  The End_Label and End_Span fields are used to mark the locations
1559    --  of these lines, and also keep track of the label in the case where
1560    --  a label is present.
1561
1562    --  For the first group above, the End_Label field of the corresponding
1563    --  node is used to point to the label identifier. In the case where
1564    --  there is no label in the source, the parser supplies a dummy
1565    --  identifier (with Comes_From_Source set to False), and the Sloc
1566    --  of this dummy identifier marks the location of the token following
1567    --  the END token.
1568
1569    --  For the second group, the use of End_Label is similar, but the
1570    --  End_Label is found in the N_Handled_Sequence_Of_Statements node.
1571    --  This is done simply because in some cases there is no room in
1572    --  the parent node.
1573
1574    --  For the third group, there is never any label, and instead of
1575    --  using End_Label, we use the End_Span field which gives the
1576    --  location of the token following END, relative to the starting
1577    --  Sloc of the construct, i.e. add Sloc (Node) + End_Span (Node)
1578    --  to get the Sloc of the IF or CASE following the End_Label.
1579
1580    --  The record definition case is handled specially, we treat it
1581    --  as though it required an optional label which is never present,
1582    --  and so the parser always builds a dummy identifier with Comes
1583    --  From Source set False. The reason we do this, rather than using
1584    --  End_Span in this case, is that we want to generate a cross-ref
1585    --  entry for the end of a record, since it represents a scope for
1586    --  name declaration purposes.
1587
1588    --  The enumeration definition case is handled in an exactly similar
1589    --  manner, building a dummy identifier to get a cross-reference.
1590
1591    --  Note: the reason we store the difference as a Uint, instead of
1592    --  storing the Source_Ptr value directly, is that Source_Ptr values
1593    --  cannot be distinguished from other types of values, and we count
1594    --  on all general use fields being self describing. To make things
1595    --  easier for clients, note that we provide function End_Location,
1596    --  and procedure Set_End_Location to allow access to the logical
1597    --  value (which is the Source_Ptr value for the end token).
1598
1599    ---------------------
1600    -- Syntactic Nodes --
1601    ---------------------
1602
1603       ---------------------
1604       -- 2.3  Identifier --
1605       ---------------------
1606
1607       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1608       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1609
1610       --  An IDENTIFIER shall not be a reserved word
1611
1612       --  In the Ada grammar identifiers are the bottom level tokens which
1613       --  have very few semantics. Actual program identifiers are direct
1614       --  names. If we were being 100% honest with the grammar, then we would
1615       --  have a node called N_Direct_Name which would point to an identifier.
1616       --  However, that's too many extra nodes, so we just use the N_Identifier
1617       --  node directly as a direct name, and it contains the expression fields
1618       --  and Entity field that correspond to its use as a direct name. In
1619       --  those few cases where identifiers appear in contexts where they are
1620       --  not direct names (pragmas, pragma argument associations, attribute
1621       --  references and attribute definition clauses), the Chars field of the
1622       --  node contains the Name_Id for the identifier name.
1623
1624       --  Note: in GNAT, a reserved word can be treated as an identifier
1625       --  in two cases. First, an incorrect use of a reserved word as an
1626       --  identifier is diagnosed and then treated as a normal identifier.
1627       --  Second, an attribute designator of the form of a reserved word
1628       --  (access, delta, digits, range) is treated as an identifier.
1629
1630       --  Note: The set of letters that is permitted in an identifier depends
1631       --  on the character set in use. See package Csets for full details.
1632
1633       --  N_Identifier
1634       --  Sloc points to identifier
1635       --  Chars (Name1) contains the Name_Id for the identifier
1636       --  Entity (Node4-Sem)
1637       --  Associated_Node (Node4-Sem)
1638       --  Original_Discriminant (Node2-Sem)
1639       --  Redundant_Use (Flag13-Sem)
1640       --  Has_Private_View (Flag11-Sem) (set in generic units)
1641       --  plus fields for expression
1642
1643       --------------------------
1644       -- 2.4  Numeric Literal --
1645       --------------------------
1646
1647       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1648
1649       ----------------------------
1650       -- 2.4.1  Decimal Literal --
1651       ----------------------------
1652
1653       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1654
1655       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1656
1657       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1658
1659       --  Decimal literals appear in the tree as either integer literal nodes
1660       --  or real literal nodes, depending on whether a period is present.
1661
1662       --  Note: literal nodes appear as a result of direct use of literals
1663       --  in the source program, and also as the result of evaluating
1664       --  expressions at compile time. In the latter case, it is possible
1665       --  to construct real literals that have no syntactic representation
1666       --  using the standard literal format. Such literals are listed by
1667       --  Sprint using the notation [numerator / denominator].
1668
1669       --  N_Integer_Literal
1670       --  Sloc points to literal
1671       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1672       --  has been constant-folded into its literal value.
1673       --  Intval (Uint3) contains integer value of literal
1674       --  plus fields for expression
1675       --  Print_In_Hex (Flag13-Sem)
1676
1677       --  N_Real_Literal
1678       --  Sloc points to literal
1679       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1680       --  has been constant-folded into its literal value.
1681       --  Realval (Ureal3) contains real value of literal
1682       --  Corresponding_Integer_Value (Uint4-Sem)
1683       --  Is_Machine_Number (Flag11-Sem)
1684       --  plus fields for expression
1685
1686       --------------------------
1687       -- 2.4.2  Based Literal --
1688       --------------------------
1689
1690       --  BASED_LITERAL ::=
1691       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1692
1693       --  BASE ::= NUMERAL
1694
1695       --  BASED_NUMERAL ::=
1696       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1697
1698       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1699
1700       --  Based literals appear in the tree as either integer literal nodes
1701       --  or real literal nodes, depending on whether a period is present.
1702
1703       ----------------------------
1704       -- 2.5  Character Literal --
1705       ----------------------------
1706
1707       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1708
1709       --  N_Character_Literal
1710       --  Sloc points to literal
1711       --  Chars (Name1) contains the Name_Id for the identifier
1712       --  Char_Literal_Value (Char_Code2) contains the literal value
1713       --  Entity (Node4-Sem)
1714       --  Associated_Node (Node4-Sem)
1715       --  Has_Private_View (Flag11-Sem) set in generic units.
1716       --  plus fields for expression
1717
1718       --  Note: the Entity field will be missing (and set to Empty) for
1719       --  character literals whose type is Standard.Wide_Character or
1720       --  Standard.Character or a type derived from one of these two.
1721       --  In this case the character literal stands for its own coding.
1722       --  The reason we take this irregular short cut is to avoid the
1723       --  need to build lots of junk defining character literal nodes.
1724
1725       -------------------------
1726       -- 2.6  String Literal --
1727       -------------------------
1728
1729       --  STRING LITERAL ::= "{STRING_ELEMENT}"
1730
1731       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
1732       --  single GRAPHIC_CHARACTER other than a quotation mark.
1733
1734       --  N_String_Literal
1735       --  Sloc points to literal
1736       --  Strval (Str3) contains Id of string value
1737       --  Has_Wide_Character (Flag11-Sem)
1738       --  plus fields for expression
1739
1740       ------------------
1741       -- 2.7  Comment --
1742       ------------------
1743
1744       --  A COMMENT starts with two adjacent hyphens and extends up to the
1745       --  end of the line. A COMMENT may appear on any line of a program.
1746
1747       --  Comments are skipped by the scanner and do not appear in the tree.
1748       --  It is possible to reconstruct the position of comments with respect
1749       --  to the elements of the tree by using the source position (Sloc)
1750       --  pointers that appear in every tree node.
1751
1752       -----------------
1753       -- 2.8  Pragma --
1754       -----------------
1755
1756       --  PRAGMA ::= pragma IDENTIFIER
1757       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1758
1759       --  Note that a pragma may appear in the tree anywhere a declaration
1760       --  or a statement may appear, as well as in some other situations
1761       --  which are explicitly documented.
1762
1763       --  N_Pragma
1764       --  Sloc points to PRAGMA
1765       --  Chars (Name1) identifier name from pragma identifier
1766       --  Pragma_Argument_Associations (List2) (set to No_List if none)
1767       --  Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1768       --  Next_Rep_Item (Node4-Sem)
1769
1770       --------------------------------------
1771       -- 2.8  Pragma Argument Association --
1772       --------------------------------------
1773
1774       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
1775       --    [pragma_argument_IDENTIFIER =>] NAME
1776       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
1777
1778       --  N_Pragma_Argument_Association
1779       --  Sloc points to first token in association
1780       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
1781       --  Expression (Node3)
1782
1783       ------------------------
1784       -- 2.9  Reserved Word --
1785       ------------------------
1786
1787       --  Reserved words are parsed by the scanner, and returned as the
1788       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1789
1790       ----------------------------
1791       -- 3.1  Basic Declaration --
1792       ----------------------------
1793
1794       --  BASIC_DECLARATION ::=
1795       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
1796       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
1797       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
1798       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
1799       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
1800       --  | GENERIC_INSTANTIATION
1801
1802       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1803       --  see further description in section on semantic nodes.
1804
1805       --  Also, in the tree that is constructed, a pragma may appear
1806       --  anywhere that a declaration may appear.
1807
1808       ------------------------------
1809       -- 3.1  Defining Identifier --
1810       ------------------------------
1811
1812       --  DEFINING_IDENTIFIER ::= IDENTIFIER
1813
1814       --  A defining identifier is an entity, which has additional fields
1815       --  depending on the setting of the Ekind field. These additional
1816       --  fields are defined (and access subprograms declared) in package
1817       --  Einfo.
1818
1819       --  Note: N_Defining_Identifier is an extended node whose fields are
1820       --  deliberate layed out to match the layout of fields in an ordinary
1821       --  N_Identifier node allowing for easy alteration of an identifier
1822       --  node into a defining identifier node. For details, see procedure
1823       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1824
1825       --  N_Defining_Identifier
1826       --  Sloc points to identifier
1827       --  Chars (Name1) contains the Name_Id for the identifier
1828       --  Next_Entity (Node2-Sem)
1829       --  Scope (Node3-Sem)
1830       --  Etype (Node5-Sem)
1831
1832       -----------------------------
1833       -- 3.2.1  Type Declaration --
1834       -----------------------------
1835
1836       --  TYPE_DECLARATION ::=
1837       --    FULL_TYPE_DECLARATION
1838       --  | INCOMPLETE_TYPE_DECLARATION
1839       --  | PRIVATE_TYPE_DECLARATION
1840       --  | PRIVATE_EXTENSION_DECLARATION
1841
1842       ----------------------------------
1843       -- 3.2.1  Full Type Declaration --
1844       ----------------------------------
1845
1846       --  FULL_TYPE_DECLARATION ::=
1847       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1848       --      is TYPE_DEFINITION;
1849       --  | TASK_TYPE_DECLARATION
1850       --  | PROTECTED_TYPE_DECLARATION
1851
1852       --  The full type declaration node is used only for the first case. The
1853       --  second case (concurrent type declaration), is represented directly
1854       --  by a task type declaration or a protected type declaration.
1855
1856       --  N_Full_Type_Declaration
1857       --  Sloc points to TYPE
1858       --  Defining_Identifier (Node1)
1859       --  Discriminant_Specifications (List4) (set to No_List if none)
1860       --  Type_Definition (Node3)
1861       --  Discr_Check_Funcs_Built (Flag11-Sem)
1862
1863       ----------------------------
1864       -- 3.2.1  Type Definition --
1865       ----------------------------
1866
1867       --  TYPE_DEFINITION ::=
1868       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
1869       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
1870       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
1871       --  | DERIVED_TYPE_DEFINITION
1872
1873       --------------------------------
1874       -- 3.2.2  Subtype Declaration --
1875       --------------------------------
1876
1877       --  SUBTYPE_DECLARATION ::=
1878       --    subtype DEFINING_IDENTIFIER is SUBTYPE_INDICATION;
1879
1880       --  The subtype indication field is set to Empty for subtypes
1881       --  declared in package Standard (Positive, Natural).
1882
1883       --  N_Subtype_Declaration
1884       --  Sloc points to SUBTYPE
1885       --  Defining_Identifier (Node1)
1886       --  Subtype_Indication (Node5)
1887       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
1888       --  Exception_Junk (Flag11-Sem)
1889
1890       -------------------------------
1891       -- 3.2.2  Subtype Indication --
1892       -------------------------------
1893
1894       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
1895
1896       --  Note: if no constraint is present, the subtype indication appears
1897       --  directly in the tree as a subtype mark. The N_Subtype_Indication
1898       --  node is used only if a constraint is present.
1899
1900       --  Note: the reason that this node has expression fields is that a
1901       --  subtype indication can appear as an operand of a membership test.
1902
1903       --  N_Subtype_Indication
1904       --  Sloc points to first token of subtype mark
1905       --  Subtype_Mark (Node4)
1906       --  Constraint (Node3)
1907       --  Etype (Node5-Sem)
1908       --  Must_Not_Freeze (Flag8-Sem)
1909
1910       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
1911       --  reason for this redundancy is so that in a list of array index types,
1912       --  the Etype can be uniformly accessed to determine the subscript type.
1913       --  This means that no Itype is constructed for the actual subtype that
1914       --  is created by the subtype indication. If such an Itype is required,
1915       --  it is constructed in the context in which the indication appears.
1916
1917       -------------------------
1918       -- 3.2.2  Subtype Mark --
1919       -------------------------
1920
1921       --  SUBTYPE_MARK ::= subtype_NAME
1922
1923       -----------------------
1924       -- 3.2.2  Constraint --
1925       -----------------------
1926
1927       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
1928
1929       ------------------------------
1930       -- 3.2.2  Scalar Constraint --
1931       ------------------------------
1932
1933       --  SCALAR_CONSTRAINT ::=
1934       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
1935
1936       ---------------------------------
1937       -- 3.2.2  Composite Constraint --
1938       ---------------------------------
1939
1940       --  COMPOSITE_CONSTRAINT ::=
1941       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
1942
1943       -------------------------------
1944       -- 3.3.1  Object Declaration --
1945       -------------------------------
1946
1947       --  OBJECT_DECLARATION ::=
1948       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
1949       --      SUBTYPE_INDICATION [:= EXPRESSION];
1950       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
1951       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION];
1952       --  | SINGLE_TASK_DECLARATION
1953       --  | SINGLE_PROTECTED_DECLARATION
1954
1955       --  Note: aliased is not permitted in Ada 83 mode
1956
1957       --  The N_Object_Declaration node is only for the first two cases.
1958       --  Single task declaration is handled by P_Task (9.1)
1959       --  Single protected declaration is handled by P_protected (9.5)
1960
1961       --  Although the syntax allows multiple identifiers in the list, the
1962       --  semantics is as though successive declarations were given with
1963       --  identical type definition and expression components. To simplify
1964       --  semantic processing, the parser represents a multiple declaration
1965       --  case as a sequence of single declarations, using the More_Ids and
1966       --  Prev_Ids flags to preserve the original source form as described
1967       --  in the section on "Handling of Defining Identifier Lists".
1968
1969       --  Note: if a range check is required for the initialization
1970       --  expression then the Do_Range_Check flag is set in the Expression,
1971       --  with the check being done against the type given by the object
1972       --  definition, which is also the Etype of the defining identifier.
1973
1974       --  Note: the contents of the Expression field must be ignored (i.e.
1975       --  treated as though it were Empty) if No_Initialization is set True.
1976
1977       --  Note: the back end places some restrictions on the form of the
1978       --  Expression field. If the object being declared is Atomic, then
1979       --  the Expression may not have the form of an aggregate (since this
1980       --  might cause the back end to generate separate assignments). It
1981       --  also cannot be a reference to an object marked as a true constant
1982       --  (Is_True_Constant flag set), where the object is itself initalized
1983       --  with an aggregate. If necessary the front end must generate an
1984       --  extra temporary (with Is_True_Constant set False), and initialize
1985       --  this temporary as required (the temporary itself is not atomic).
1986
1987       --  N_Object_Declaration
1988       --  Sloc points to first identifier
1989       --  Defining_Identifier (Node1)
1990       --  Aliased_Present (Flag4) set if ALIASED appears
1991       --  Constant_Present (Flag17) set if CONSTANT appears
1992       --  Object_Definition (Node4) subtype indication/array type definition
1993       --  Expression (Node3) (set to Empty if not present)
1994       --  Handler_List_Entry (Node2-Sem)
1995       --  Corresponding_Generic_Association (Node5-Sem)
1996       --  More_Ids (Flag5) (set to False if no more identifiers in list)
1997       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
1998       --  No_Initialization (Flag13-Sem)
1999       --  Assignment_OK (Flag15-Sem)
2000       --  Exception_Junk (Flag11-Sem)
2001       --  Delay_Finalize_Attach (Flag14-Sem)
2002       --  Is_Subprogram_Descriptor (Flag16-Sem)
2003
2004       -------------------------------------
2005       -- 3.3.1  Defining Identifier List --
2006       -------------------------------------
2007
2008       --  DEFINING_IDENTIFIER_LIST ::=
2009       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2010
2011       -------------------------------
2012       -- 3.3.2  Number Declaration --
2013       -------------------------------
2014
2015       --  NUMBER_DECLARATION ::=
2016       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2017
2018       --  Although the syntax allows multiple identifiers in the list, the
2019       --  semantics is as though successive declarations were given with
2020       --  identical expressions. To simplify semantic processing, the parser
2021       --  represents a multiple declaration case as a sequence of single
2022       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2023       --  the original source form as described in the section on "Handling
2024       --  of Defining Identifier Lists".
2025
2026       --  N_Number_Declaration
2027       --  Sloc points to first identifier
2028       --  Defining_Identifier (Node1)
2029       --  Expression (Node3)
2030       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2031       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2032
2033       ----------------------------------
2034       -- 3.4  Derived Type Definition --
2035       ----------------------------------
2036
2037       --  DERIVED_TYPE_DEFINITION ::=
2038       --    [abstract] new parent_SUBTYPE_INDICATION [RECORD_EXTENSION_PART]
2039
2040       --  Note: ABSTRACT, record extension part not permitted in Ada 83 mode
2041
2042       --  Note: a record extension part is required if ABSTRACT is present
2043
2044       --  N_Derived_Type_Definition
2045       --  Sloc points to NEW
2046       --  Abstract_Present (Flag4)
2047       --  Subtype_Indication (Node5)
2048       --  Record_Extension_Part (Node3) (set to Empty if not present)
2049
2050       ---------------------------
2051       -- 3.5  Range Constraint --
2052       ---------------------------
2053
2054       --  RANGE_CONSTRAINT ::= range RANGE
2055
2056       --  N_Range_Constraint
2057       --  Sloc points to RANGE
2058       --  Range_Expression (Node4)
2059
2060       ----------------
2061       -- 3.5  Range --
2062       ----------------
2063
2064       --  RANGE ::=
2065       --    RANGE_ATTRIBUTE_REFERENCE
2066       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2067
2068       --  Note: the case of a range given as a range attribute reference
2069       --  appears directly in the tree as an attribute reference.
2070
2071       --  Note: the field name for a reference to a range is Range_Expression
2072       --  rather than Range, because range is a reserved keyword in Ada!
2073
2074       --  Note: the reason that this node has expression fields is that a
2075       --  range can appear as an operand of a membership test. The Etype
2076       --  field is the type of the range (we do NOT construct an implicit
2077       --  subtype to represent the range exactly).
2078
2079       --  N_Range
2080       --  Sloc points to ..
2081       --  Low_Bound (Node1)
2082       --  High_Bound (Node2)
2083       --  Includes_Infinities (Flag11)
2084       --  plus fields for expression
2085
2086       --  Note: if the range appears in a context, such as a subtype
2087       --  declaration, where range checks are required on one or both of
2088       --  the expression fields, then type conversion nodes are inserted
2089       --  to represent the required checks.
2090
2091       ----------------------------------------
2092       -- 3.5.1  Enumeration Type Definition --
2093       ----------------------------------------
2094
2095       --  ENUMERATION_TYPE_DEFINITION ::=
2096       --    (ENUMERATION_LITERAL_SPECIFICATION
2097       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2098
2099       --  Note: the Literals field in the node described below is null for
2100       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2101       --  which special processing handles these types as special cases.
2102
2103       --  N_Enumeration_Type_Definition
2104       --  Sloc points to left parenthesis
2105       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2106       --  End_Label (Node4) (set to Empty if internally generated record)
2107
2108       ----------------------------------------------
2109       -- 3.5.1  Enumeration Literal Specification --
2110       ----------------------------------------------
2111
2112       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2113       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2114
2115       ---------------------------------------
2116       -- 3.5.1  Defining Character Literal --
2117       ---------------------------------------
2118
2119       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2120
2121       --  A defining character literal is an entity, which has additional
2122       --  fields depending on the setting of the Ekind field. These
2123       --  additional fields are defined (and access subprograms declared)
2124       --  in package Einfo.
2125
2126       --  Note: N_Defining_Character_Literal is an extended node whose fields
2127       --  are deliberate layed out to match the layout of fields in an ordinary
2128       --  N_Character_Literal node allowing for easy alteration of a character
2129       --  literal node into a defining character literal node. For details, see
2130       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2131
2132       --  N_Defining_Character_Literal
2133       --  Sloc points to literal
2134       --  Chars (Name1) contains the Name_Id for the identifier
2135       --  Next_Entity (Node2-Sem)
2136       --  Scope (Node3-Sem)
2137       --  Etype (Node5-Sem)
2138
2139       ------------------------------------
2140       -- 3.5.4  Integer Type Definition --
2141       ------------------------------------
2142
2143       --  Note: there is an error in this rule in the latest version of the
2144       --  grammar, so we have retained the old rule pending clarification.
2145
2146       --  INTEGER_TYPE_DEFINITION ::=
2147       --    SIGNED_INTEGER_TYPE_DEFINITION
2148       --    MODULAR_TYPE_DEFINITION
2149
2150       -------------------------------------------
2151       -- 3.5.4  Signed Integer Type Definition --
2152       -------------------------------------------
2153
2154       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2155       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2156
2157       --  Note: the Low_Bound and High_Bound fields are set to Empty for
2158       --  integer types defined in package Standard.
2159
2160       --  N_Signed_Integer_Type_Definition
2161       --  Sloc points to RANGE
2162       --  Low_Bound (Node1)
2163       --  High_Bound (Node2)
2164
2165       -----------------------------------------
2166       -- 3.5.4  Unsigned Range Specification --
2167       -----------------------------------------
2168
2169       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2170
2171       --  N_Modular_Type_Definition
2172       --  Sloc points to MOD
2173       --  Expression (Node3)
2174
2175       ---------------------------------
2176       -- 3.5.6  Real Type Definition --
2177       ---------------------------------
2178
2179       --  REAL_TYPE_DEFINITION ::=
2180       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2181
2182       --------------------------------------
2183       -- 3.5.7  Floating Point Definition --
2184       --------------------------------------
2185
2186       --  FLOATING_POINT_DEFINITION ::=
2187       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2188
2189       --  Note: The Digits_Expression and Real_Range_Specifications fields
2190       --  are set to Empty for floating-point types declared in Standard.
2191
2192       --  N_Floating_Point_Definition
2193       --  Sloc points to DIGITS
2194       --  Digits_Expression (Node2)
2195       --  Real_Range_Specification (Node4) (set to Empty if not present)
2196
2197       -------------------------------------
2198       -- 3.5.7  Real Range Specification --
2199       -------------------------------------
2200
2201       --  REAL_RANGE_SPECIFICATION ::=
2202       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2203
2204       --  N_Real_Range_Specification
2205       --  Sloc points to RANGE
2206       --  Low_Bound (Node1)
2207       --  High_Bound (Node2)
2208
2209       -----------------------------------
2210       -- 3.5.9  Fixed Point Definition --
2211       -----------------------------------
2212
2213       --  FIXED_POINT_DEFINITION ::=
2214       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2215
2216       --------------------------------------------
2217       -- 3.5.9  Ordinary Fixed Point Definition --
2218       --------------------------------------------
2219
2220       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2221       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2222
2223       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2224
2225       --  Note: the Delta_Expression and Real_Range_Specification fields
2226       --  are set to Empty for fixed point types declared in Standard.
2227
2228       --  N_Ordinary_Fixed_Point_Definition
2229       --  Sloc points to DELTA
2230       --  Delta_Expression (Node3)
2231       --  Real_Range_Specification (Node4)
2232
2233       -------------------------------------------
2234       -- 3.5.9  Decimal Fixed Point Definition --
2235       -------------------------------------------
2236
2237       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2238       --    delta static_EXPRESSION
2239       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2240
2241       --  Note: decimal types are not permitted in Ada 83 mode
2242
2243       --  N_Decimal_Fixed_Point_Definition
2244       --  Sloc points to DELTA
2245       --  Delta_Expression (Node3)
2246       --  Digits_Expression (Node2)
2247       --  Real_Range_Specification (Node4) (set to Empty if not present)
2248
2249       ------------------------------
2250       -- 3.5.9  Digits Constraint --
2251       ------------------------------
2252
2253       --  DIGITS_CONSTRAINT ::=
2254       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2255
2256       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2257       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2258
2259       --  N_Digits_Constraint
2260       --  Sloc points to DIGITS
2261       --  Digits_Expression (Node2)
2262       --  Range_Constraint (Node4) (set to Empty if not present)
2263
2264       --------------------------------
2265       -- 3.6  Array Type Definition --
2266       --------------------------------
2267
2268       --  ARRAY_TYPE_DEFINITION ::=
2269       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2270
2271       -----------------------------------------
2272       -- 3.6  Unconstrained Array Definition --
2273       -----------------------------------------
2274
2275       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2276       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2277       --      COMPONENT_DEFINITION
2278
2279       --  Note: dimensionality of array is indicated by number of entries in
2280       --  the Subtype_Marks list, which has one entry for each dimension.
2281
2282       --  N_Unconstrained_Array_Definition
2283       --  Sloc points to ARRAY
2284       --  Subtype_Marks (List2)
2285       --  Component_Definition (Node4)
2286
2287       -----------------------------------
2288       -- 3.6  Index Subtype Definition --
2289       -----------------------------------
2290
2291       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2292
2293       --  There is no explicit node in the tree for an index subtype
2294       --  definition since the N_Unconstrained_Array_Definition node
2295       --  incorporates the type marks which appear in this context.
2296
2297       ---------------------------------------
2298       -- 3.6  Constrained Array Definition --
2299       ---------------------------------------
2300
2301       --  CONSTRAINED_ARRAY_DEFINITION ::=
2302       --    array (DISCRETE_SUBTYPE_DEFINITION
2303       --      {, DISCRETE_SUBTYPE_DEFINITION})
2304       --        of COMPONENT_DEFINITION
2305
2306       --  Note: dimensionality of array is indicated by number of entries
2307       --  in the Discrete_Subtype_Definitions list, which has one entry
2308       --  for each dimension.
2309
2310       --  N_Constrained_Array_Definition
2311       --  Sloc points to ARRAY
2312       --  Discrete_Subtype_Definitions (List2)
2313       --  Component_Definition (Node4)
2314
2315       --------------------------------------
2316       -- 3.6  Discrete Subtype Definition --
2317       --------------------------------------
2318
2319       --  DISCRETE_SUBTYPE_DEFINITION ::=
2320       --    discrete_SUBTYPE_INDICATION | RANGE
2321
2322       -------------------------------
2323       -- 3.6  Component Definition --
2324       -------------------------------
2325
2326       --  COMPONENT_DEFINITION ::=
2327       --    [aliased] SUBTYPE_INDICATION | ACCESS_DEFINITION
2328
2329       --  Note: although the syntax does not permit a component definition to
2330       --  be an anonymous array (and the parser will diagnose such an attempt
2331       --  with an appropriate message), it is possible for anonymous arrays
2332       --  to appear as component definitions. The semantics and back end handle
2333       --  this case properly, and the expander in fact generates such cases.
2334       --  Access_Definition is an optional field that gives support to Ada 0Y
2335       --  (AI-230). The parser generates nodes that have either the
2336       --  Subtype_Indication field or else the Access_Definition field.
2337
2338       --  N_Component_Definition
2339       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2340       --  Aliased_Present (Flag4)
2341       --  Subtype_Indication (Node5) (set to Empty if not present)
2342       --  Access_Definition (Node3) (set to Empty if not present)
2343
2344       -----------------------------
2345       -- 3.6.1  Index Constraint --
2346       -----------------------------
2347
2348       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2349
2350       --  It is not in general possible to distinguish between discriminant
2351       --  constraints and index constraints at parse time, since a simple
2352       --  name could be either the subtype mark of a discrete range, or an
2353       --  expression in a discriminant association with no name. Either
2354       --  entry appears simply as the name, and the semantic parse must
2355       --  distinguish between the two cases. Thus we use a common tree
2356       --  node format for both of these constraint types.
2357
2358       --  See Discriminant_Constraint for format of node
2359
2360       ---------------------------
2361       -- 3.6.1  Discrete Range --
2362       ---------------------------
2363
2364       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2365
2366       ----------------------------
2367       -- 3.7  Discriminant Part --
2368       ----------------------------
2369
2370       --  DISCRIMINANT_PART ::=
2371       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2372
2373       ------------------------------------
2374       -- 3.7  Unknown Discriminant Part --
2375       ------------------------------------
2376
2377       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2378
2379       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2380
2381       --  There is no explicit node in the tree for an unknown discriminant
2382       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2383       --  parent node.
2384
2385       ----------------------------------
2386       -- 3.7  Known Discriminant Part --
2387       ----------------------------------
2388
2389       --  KNOWN_DISCRIMINANT_PART ::=
2390       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2391
2392       -------------------------------------
2393       -- 3.7  Discriminant Specification --
2394       -------------------------------------
2395
2396       --  DISCRIMINANT_SPECIFICATION ::=
2397       --    DEFINING_IDENTIFIER_LIST : SUBTYPE_MARK
2398       --      [:= DEFAULT_EXPRESSION]
2399       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2400       --      [:= DEFAULT_EXPRESSION]
2401
2402       --  Although the syntax allows multiple identifiers in the list, the
2403       --  semantics is as though successive specifications were given with
2404       --  identical type definition and expression components. To simplify
2405       --  semantic processing, the parser represents a multiple declaration
2406       --  case as a sequence of single specifications, using the More_Ids and
2407       --  Prev_Ids flags to preserve the original source form as described
2408       --  in the section on "Handling of Defining Identifier Lists".
2409
2410       --  N_Discriminant_Specification
2411       --  Sloc points to first identifier
2412       --  Defining_Identifier (Node1)
2413       --  Discriminant_Type (Node5) subtype mark or
2414       --    access parameter definition
2415       --  Expression (Node3) (set to Empty if no default expression)
2416       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2417       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2418
2419       -----------------------------
2420       -- 3.7  Default Expression --
2421       -----------------------------
2422
2423       --  DEFAULT_EXPRESSION ::= EXPRESSION
2424
2425       ------------------------------------
2426       -- 3.7.1  Discriminant Constraint --
2427       ------------------------------------
2428
2429       --  DISCRIMINANT_CONSTRAINT ::=
2430       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2431
2432       --  It is not in general possible to distinguish between discriminant
2433       --  constraints and index constraints at parse time, since a simple
2434       --  name could be either the subtype mark of a discrete range, or an
2435       --  expression in a discriminant association with no name. Either
2436       --  entry appears simply as the name, and the semantic parse must
2437       --  distinguish between the two cases. Thus we use a common tree
2438       --  node format for both of these constraint types.
2439
2440       --  N_Index_Or_Discriminant_Constraint
2441       --  Sloc points to left paren
2442       --  Constraints (List1) points to list of discrete ranges or
2443       --    discriminant associations
2444
2445       -------------------------------------
2446       -- 3.7.1  Discriminant Association --
2447       -------------------------------------
2448
2449       --  DISCRIMINANT_ASSOCIATION ::=
2450       --    [discriminant_SELECTOR_NAME
2451       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2452
2453       --  Note: a discriminant association that has no selector name list
2454       --  appears directly as an expression in the tree.
2455
2456       --  N_Discriminant_Association
2457       --  Sloc points to first token of discriminant association
2458       --  Selector_Names (List1) (always non-empty, since if no selector
2459       --   names are present, this node is not used, see comment above)
2460       --  Expression (Node3)
2461
2462       ---------------------------------
2463       -- 3.8  Record Type Definition --
2464       ---------------------------------
2465
2466       --  RECORD_TYPE_DEFINITION ::=
2467       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2468
2469       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2470
2471       --  There is no explicit node in the tree for a record type definition.
2472       --  Instead the flags for Tagged_Present and Limited_Present appear in
2473       --  the N_Record_Definition node for a record definition appearing in
2474       --  the context of a record type definition.
2475
2476       ----------------------------
2477       -- 3.8  Record Definition --
2478       ----------------------------
2479
2480       --  RECORD_DEFINITION ::=
2481       --    record
2482       --      COMPONENT_LIST
2483       --    end record
2484       --  | null record
2485
2486       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2487       --  flags appear only for a record definition appearing in a record
2488       --  type definition.
2489
2490       --  Note: the NULL RECORD case is not permitted in Ada 83
2491
2492       --  N_Record_Definition
2493       --  Sloc points to RECORD or NULL
2494       --  End_Label (Node4) (set to Empty if internally generated record)
2495       --  Abstract_Present (Flag4)
2496       --  Tagged_Present (Flag15)
2497       --  Limited_Present (Flag17)
2498       --  Component_List (Node1) empty in null record case
2499       --  Null_Present (Flag13) set in null record case
2500
2501       -------------------------
2502       -- 3.8  Component List --
2503       -------------------------
2504
2505       --  COMPONENT_LIST ::=
2506       --    COMPONENT_ITEM {COMPONENT_ITEM}
2507       --  | {COMPONENT_ITEM} VARIANT_PART
2508       --  | null;
2509
2510       --  N_Component_List
2511       --  Sloc points to first token of component list
2512       --  Component_Items (List3)
2513       --  Variant_Part (Node4) (set to Empty if no variant part)
2514       --  Null_Present (Flag13)
2515
2516       -------------------------
2517       -- 3.8  Component Item --
2518       -------------------------
2519
2520       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2521
2522       --  Note: A component item can also be a pragma, and in the tree
2523       --  that is obtained after semantic processing, a component item
2524       --  can be an N_Null node resulting from a non-recognized pragma.
2525
2526       --------------------------------
2527       -- 3.8  Component Declaration --
2528       --------------------------------
2529
2530       --  COMPONENT_DECLARATION ::=
2531       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2532       --      [:= DEFAULT_EXPRESSION]
2533
2534       --  Note: although the syntax does not permit a component definition to
2535       --  be an anonymous array (and the parser will diagnose such an attempt
2536       --  with an appropriate message), it is possible for anonymous arrays
2537       --  to appear as component definitions. The semantics and back end handle
2538       --  this case properly, and the expander in fact generates such cases.
2539
2540       --  Although the syntax allows multiple identifiers in the list, the
2541       --  semantics is as though successive declarations were given with the
2542       --  same component definition and expression components. To simplify
2543       --  semantic processing, the parser represents a multiple declaration
2544       --  case as a sequence of single declarations, using the More_Ids and
2545       --  Prev_Ids flags to preserve the original source form as described
2546       --  in the section on "Handling of Defining Identifier Lists".
2547
2548       --  N_Component_Declaration
2549       --  Sloc points to first identifier
2550       --  Defining_Identifier (Node1)
2551       --  Component_Definition (Node4)
2552       --  Expression (Node3) (set to Empty if no default expression)
2553       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2554       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2555
2556       -------------------------
2557       -- 3.8.1  Variant Part --
2558       -------------------------
2559
2560       --  VARIANT_PART ::=
2561       --    case discriminant_DIRECT_NAME is
2562       --      VARIANT
2563       --      {VARIANT}
2564       --    end case;
2565
2566       --  Note: the variants list can contain pragmas as well as variants.
2567       --  In a properly formed program there is at least one variant.
2568
2569       --  N_Variant_Part
2570       --  Sloc points to CASE
2571       --  Name (Node2)
2572       --  Variants (List1)
2573
2574       --------------------
2575       -- 3.8.1  Variant --
2576       --------------------
2577
2578       --  VARIANT ::=
2579       --    when DISCRETE_CHOICE_LIST =>
2580       --      COMPONENT_LIST
2581
2582       --  N_Variant
2583       --  Sloc points to WHEN
2584       --  Discrete_Choices (List4)
2585       --  Component_List (Node1)
2586       --  Enclosing_Variant (Node2-Sem)
2587       --  Present_Expr (Uint3-Sem)
2588       --  Dcheck_Function (Node5-Sem)
2589
2590       ---------------------------------
2591       -- 3.8.1  Discrete Choice List --
2592       ---------------------------------
2593
2594       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2595
2596       ----------------------------
2597       -- 3.8.1  Discrete Choice --
2598       ----------------------------
2599
2600       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2601
2602       --  Note: in Ada 83 mode, the expression must be a simple expression
2603
2604       --  The only choice that appears explicitly is the OTHERS choice, as
2605       --  defined here. Other cases of discrete choice (expression and
2606       --  discrete range) appear directly. This production is also used
2607       --  for the OTHERS possibility of an exception choice.
2608
2609       --  Note: in accordance with the syntax, the parser does not check that
2610       --  OTHERS appears at the end on its own in a choice list context. This
2611       --  is a semantic check.
2612
2613       --  N_Others_Choice
2614       --  Sloc points to OTHERS
2615       --  Others_Discrete_Choices (List1-Sem)
2616       --  All_Others (Flag11-Sem)
2617
2618       ----------------------------------
2619       -- 3.9.1  Record Extension Part --
2620       ----------------------------------
2621
2622       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2623
2624       --  Note: record extension parts are not permitted in Ada 83 mode
2625
2626       ----------------------------------
2627       -- 3.10  Access Type Definition --
2628       ----------------------------------
2629
2630       --  ACCESS_TYPE_DEFINITION ::=
2631       --    ACCESS_TO_OBJECT_DEFINITION
2632       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2633
2634       ---------------------------------------
2635       -- 3.10  Access To Object Definition --
2636       ---------------------------------------
2637
2638       --  ACCESS_TO_OBJECT_DEFINITION ::=
2639       --    access [GENERAL_ACCESS_MODIFIER] SUBTYPE_INDICATION
2640
2641       --  N_Access_To_Object_Definition
2642       --  Sloc points to ACCESS
2643       --  All_Present (Flag15)
2644       --  Subtype_Indication (Node5)
2645       --  Constant_Present (Flag17)
2646
2647       -----------------------------------
2648       -- 3.10  General Access Modifier --
2649       -----------------------------------
2650
2651       --  GENERAL_ACCESS_MODIFIER ::= all | constant
2652
2653       --  Note: general access modifiers are not permitted in Ada 83 mode
2654
2655       --  There is no explicit node in the tree for general access modifier.
2656       --  Instead the All_Present or Constant_Present flags are set in the
2657       --  parent node.
2658
2659       -------------------------------------------
2660       -- 3.10  Access To Subprogram Definition --
2661       -------------------------------------------
2662
2663       --  ACCESS_TO_SUBPROGRAM_DEFINITION
2664       --    access [protected] procedure PARAMETER_PROFILE
2665       --  | access [protected] function PARAMETER_AND_RESULT_PROFILE
2666
2667       --  Note: access to subprograms are not permitted in Ada 83 mode
2668
2669       --  N_Access_Function_Definition
2670       --  Sloc points to ACCESS
2671       --  Protected_Present (Flag15)
2672       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2673       --  Subtype_Mark (Node4) result subtype
2674
2675       --  N_Access_Procedure_Definition
2676       --  Sloc points to ACCESS
2677       --  Protected_Present (Flag15)
2678       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2679
2680       -----------------------------
2681       -- 3.10  Access Definition --
2682       -----------------------------
2683
2684       --  ACCESS_DEFINITION ::= access SUBTYPE_MARK
2685
2686       --  N_Access_Definition
2687       --  Sloc points to ACCESS
2688       --  Subtype_Mark (Node4)
2689
2690       -----------------------------------------
2691       -- 3.10.1  Incomplete Type Declaration --
2692       -----------------------------------------
2693
2694       --  INCOMPLETE_TYPE_DECLARATION ::=
2695       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART];
2696
2697       --  N_Incomplete_Type_Declaration
2698       --  Sloc points to TYPE
2699       --  Defining_Identifier (Node1)
2700       --  Discriminant_Specifications (List4) (set to No_List if no
2701       --   discriminant part, or if the discriminant part is an
2702       --   unknown discriminant part)
2703       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2704
2705       ----------------------------
2706       -- 3.11  Declarative Part --
2707       ----------------------------
2708
2709       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2710
2711       --  Note: although the parser enforces the syntactic requirement that
2712       --  a declarative part can contain only declarations, the semantic
2713       --  processing may add statements to the list of actions in a
2714       --  declarative part, so the code generator should be prepared
2715       --  to accept a statement in this position.
2716
2717       ----------------------------
2718       -- 3.11  Declarative Item --
2719       ----------------------------
2720
2721       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2722
2723       ----------------------------------
2724       -- 3.11  Basic Declarative Item --
2725       ----------------------------------
2726
2727       --  BASIC_DECLARATIVE_ITEM ::=
2728       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2729
2730       ----------------
2731       -- 3.11  Body --
2732       ----------------
2733
2734       --  BODY ::= PROPER_BODY | BODY_STUB
2735
2736       -----------------------
2737       -- 3.11  Proper Body --
2738       -----------------------
2739
2740       --  PROPER_BODY ::=
2741       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2742
2743       ---------------
2744       -- 4.1  Name --
2745       ---------------
2746
2747       --  NAME ::=
2748       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
2749       --  | INDEXED_COMPONENT  | SLICE
2750       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2751       --  | TYPE_CONVERSION    | FUNCTION_CALL
2752       --  | CHARACTER_LITERAL
2753
2754       ----------------------
2755       -- 4.1  Direct Name --
2756       ----------------------
2757
2758       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2759
2760       -----------------
2761       -- 4.1  Prefix --
2762       -----------------
2763
2764       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2765
2766       -------------------------------
2767       -- 4.1  Explicit Dereference --
2768       -------------------------------
2769
2770       --  EXPLICIT_DEREFERENCE ::= NAME . all
2771
2772       --  N_Explicit_Dereference
2773       --  Sloc points to ALL
2774       --  Prefix (Node3)
2775       --  plus fields for expression
2776
2777       -------------------------------
2778       -- 4.1  Implicit Dereference --
2779       -------------------------------
2780
2781       --  IMPLICIT_DEREFERENCE ::= NAME
2782
2783       ------------------------------
2784       -- 4.1.1  Indexed Component --
2785       ------------------------------
2786
2787       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
2788
2789       --  Note: the parser may generate this node in some situations where it
2790       --  should be a function call. The semantic  pass must correct this
2791       --  misidentification (which is inevitable at the parser level).
2792
2793       --  N_Indexed_Component
2794       --  Sloc contains a copy of the Sloc value of the Prefix
2795       --  Prefix (Node3)
2796       --  Expressions (List1)
2797       --  plus fields for expression
2798
2799       --  Note: if any of the subscripts requires a range check, then the
2800       --  Do_Range_Check flag is set on the corresponding expression, with
2801       --  the index type being determined from the type of the Prefix, which
2802       --  references the array being indexed.
2803
2804       --  Note: in a fully analyzed and expanded indexed component node, and
2805       --  hence in any such node that gigi sees, if the prefix is an access
2806       --  type, then an explicit dereference operation has been inserted.
2807
2808       ------------------
2809       -- 4.1.2  Slice --
2810       ------------------
2811
2812       --  SLICE ::= PREFIX (DISCRETE_RANGE)
2813
2814       --  Note: an implicit subtype is created to describe the resulting
2815       --  type, so that the bounds of this type are the bounds of the slice.
2816
2817       --  N_Slice
2818       --  Sloc points to first token of prefix
2819       --  Prefix (Node3)
2820       --  Discrete_Range (Node4)
2821       --  plus fields for expression
2822
2823       -------------------------------
2824       -- 4.1.3  Selected Component --
2825       -------------------------------
2826
2827       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
2828
2829       --  Note: selected components that are semantically expanded names get
2830       --  changed during semantic processing into the separate N_Expanded_Name
2831       --  node. See description of this node in the section on semantic nodes.
2832
2833       --  N_Selected_Component
2834       --  Sloc points to period
2835       --  Prefix (Node3)
2836       --  Selector_Name (Node2)
2837       --  Associated_Node (Node4-Sem)
2838       --  Do_Discriminant_Check (Flag13-Sem)
2839       --  Is_In_Discriminant_Check (Flag11-Sem)
2840       --  plus fields for expression
2841
2842       --------------------------
2843       -- 4.1.3  Selector Name --
2844       --------------------------
2845
2846       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
2847
2848       --------------------------------
2849       -- 4.1.4  Attribute Reference --
2850       --------------------------------
2851
2852       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
2853
2854       --  Note: the syntax is quite ambiguous at this point. Consider:
2855
2856       --    A'Length (X)  X is part of the attribute designator
2857       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
2858       --    A'Class (X)   X is the expression of a type conversion
2859
2860       --  It would be possible for the parser to distinguish these cases
2861       --  by looking at the attribute identifier. However, that would mean
2862       --  more work in introducing new implementation defined attributes,
2863       --  and also it would mean that special processing for attributes
2864       --  would be scattered around, instead of being centralized in the
2865       --  semantic routine that handles an N_Attribute_Reference node.
2866       --  Consequently, the parser in all the above cases stores the
2867       --  expression (X in these examples) as a single element list in
2868       --  in the Expressions field of the N_Attribute_Reference node.
2869
2870       --  Similarly, for attributes like Max which take two arguments,
2871       --  we store the two arguments as a two element list in the
2872       --  Expressions field. Of course it is clear at parse time that
2873       --  this case is really a function call with an attribute as the
2874       --  prefix, but it turns out to be convenient to handle the two
2875       --  argument case in a similar manner to the one argument case,
2876       --  and indeed in general the parser will accept any number of
2877       --  expressions in this position and store them as a list in the
2878       --  attribute reference node. This allows for future addition of
2879       --  attributes that take more than two arguments.
2880
2881       --  Note: named associates are not permitted in function calls where
2882       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
2883       --  to skip the normal subprogram argument processing.
2884
2885       --  Note: for the attributes whose designators are technically keywords,
2886       --  i.e. digits, access, delta, range, the Attribute_Name field contains
2887       --  the corresponding name, even though no identifier is involved.
2888
2889       --  The flag OK_For_Stream is used in generated code to indicate that
2890       --  a stream attribute is permissible for a limited type, and results
2891       --  in the use of the stream attribute for the underlying full type,
2892       --  or in the case of a protected type, the components (including any
2893       --  disriminants) are merely streamed in order.
2894
2895       --  See Exp_Attr for a complete description of which attributes are
2896       --  passed onto Gigi, and which are handled entirely by the front end.
2897
2898       --  Gigi restriction: For the Pos attribute, the prefix cannot be
2899       --  a non-standard enumeration type or a nonzero/zero semantics
2900       --  boolean type, so the value is simply the stored representation.
2901
2902       --  Note: In generated code, the Address and Unrestricted_Access
2903       --  attributes can be applied to any expression, and the meaning is
2904       --  to create an object containing the value (the object is in the
2905       --  current stack frame), and pass the address of this value. If the
2906       --  Must_Be_Byte_Aligned flag is set, then the object whose address
2907       --  is taken must be on a byte (storage unit) boundary, and if it is
2908       --  not (or may not be), then the generated code must create a copy
2909       --  that is byte aligned, and pass the address of this copy.
2910
2911       --  N_Attribute_Reference
2912       --  Sloc points to apostrophe
2913       --  Prefix (Node3)
2914       --  Attribute_Name (Name2) identifier name from attribute designator
2915       --  Expressions (List1) (set to No_List if no associated expressions)
2916       --  Entity (Node4-Sem) used if the attribute yields a type
2917       --  Associated_Node (Node4-Sem)
2918       --  Do_Overflow_Check (Flag17-Sem)
2919       --  Redundant_Use (Flag13-Sem)
2920       --  OK_For_Stream (Flag4-Sem)
2921       --  Must_Be_Byte_Aligned (Flag14)
2922       --  plus fields for expression
2923
2924       ---------------------------------
2925       -- 4.1.4  Attribute Designator --
2926       ---------------------------------
2927
2928       --  ATTRIBUTE_DESIGNATOR ::=
2929       --    IDENTIFIER [(static_EXPRESSION)]
2930       --  | access | delta | digits
2931
2932       --  There is no explicit node in the tree for an attribute designator.
2933       --  Instead the Attribute_Name and Expressions fields of the parent
2934       --  node (N_Attribute_Reference node) hold the information.
2935
2936       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
2937       --  designator, then they are treated as identifiers internally
2938       --  rather than the keywords of the same name.
2939
2940       --------------------------------------
2941       -- 4.1.4  Range Attribute Reference --
2942       --------------------------------------
2943
2944       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
2945
2946       --  A range attribute reference is represented in the tree using the
2947       --  normal N_Attribute_Reference node.
2948
2949       ---------------------------------------
2950       -- 4.1.4  Range Attribute Designator --
2951       ---------------------------------------
2952
2953       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
2954
2955       --  A range attribute designator is represented in the tree using the
2956       --  normal N_Attribute_Reference node.
2957
2958       --------------------
2959       -- 4.3  Aggregate --
2960       --------------------
2961
2962       --  AGGREGATE ::=
2963       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
2964
2965       -----------------------------
2966       -- 4.3.1  Record Aggregate --
2967       -----------------------------
2968
2969       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
2970
2971       --  N_Aggregate
2972       --  Sloc points to left parenthesis
2973       --  Expressions (List1) (set to No_List if none or null record case)
2974       --  Component_Associations (List2) (set to No_List if none)
2975       --  Null_Record_Present (Flag17)
2976       --  Aggregate_Bounds (Node3-Sem)
2977       --  Associated_Node (Node4-Sem)
2978       --  Static_Processing_OK (Flag4-Sem)
2979       --  Compile_Time_Known_Aggregate (Flag18-Sem)
2980       --  Expansion_Delayed (Flag11-Sem)
2981       --  plus fields for expression
2982
2983       --  Note: this structure is used for both record and array aggregates
2984       --  since the two cases are not separable by the parser. The parser
2985       --  makes no attempt to enforce consistency here, so it is up to the
2986       --  semantic phase to make sure that the aggregate is consistent (i.e.
2987       --  that it is not a "half-and-half" case that mixes record and array
2988       --  syntax. In particular, for a record aggregate, the expressions
2989       --  field will be set if there are positional associations.
2990
2991       --  Note: gigi/gcc can handle array aggregates correctly providing that
2992       --  they are entirely positional, and the array subtype involved has a
2993       --  known at compile time length and is not bit packed, or a convention
2994       --  Fortran array with more than one dimension. If these conditions
2995       --  are not met, then the front end must translate the aggregate into
2996       --  an appropriate set  of assignments into a temporary.
2997
2998       --  Note: for the record aggregate case, gigi/gcc can handle all cases
2999       --  of record aggregates, including those for packed, and rep-claused
3000       --  records, and also variant records, providing that there are no
3001       --  variable length fields whose size is not known at runtime, and
3002       --  providing that the aggregate is presented in fully named form.
3003
3004       ----------------------------------------------
3005       -- 4.3.1  Record Component Association List --
3006       ----------------------------------------------
3007
3008       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3009       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3010       --   | null record
3011
3012       --  There is no explicit node in the tree for a record component
3013       --  association list. Instead the Null_Record_Present flag is set in
3014       --  the parent node for the NULL RECORD case.
3015
3016       ------------------------------------------------------
3017       -- 4.3.1  Record Component Association (also 4.3.3) --
3018       ------------------------------------------------------
3019
3020       --  RECORD_COMPONENT_ASSOCIATION ::=
3021       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3022
3023       --  N_Component_Association
3024       --  Sloc points to first selector name
3025       --  Choices (List1)
3026       --  Loop_Actions (List2-Sem)
3027       --  Expression (Node3)
3028       --  Box_Present (Flag15)
3029
3030       --  Note: this structure is used for both record component associations
3031       --  and array component associations, since the two cases aren't always
3032       --  separable by the parser. The choices list may represent either a
3033       --  list of selector names in the record aggregate case, or a list of
3034       --  discrete choices in the array aggregate case or an N_Others_Choice
3035       --  node (which appears as a singleton list). Box_Present gives support
3036       --  to Ada 0Y (AI-287).
3037
3038       ------------------------------------
3039       --  4.3.1  Commponent Choice List --
3040       ------------------------------------
3041
3042       --  COMPONENT_CHOICE_LIST ::=
3043       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3044       --  | others
3045
3046       --  The entries of a component choice list appear in the Choices list
3047       --  of the associated N_Component_Association, as either selector
3048       --  names, or as an N_Others_Choice node.
3049
3050       --------------------------------
3051       -- 4.3.2  Extension Aggregate --
3052       --------------------------------
3053
3054       --  EXTENSION_AGGREGATE ::=
3055       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3056
3057       --  Note: extension aggregates are not permitted in Ada 83 mode
3058
3059       --  N_Extension_Aggregate
3060       --  Sloc points to left parenthesis
3061       --  Ancestor_Part (Node3)
3062       --  Associated_Node (Node4-Sem)
3063       --  Expressions (List1) (set to No_List if none or null record case)
3064       --  Component_Associations (List2) (set to No_List if none)
3065       --  Null_Record_Present (Flag17)
3066       --  Expansion_Delayed (Flag11-Sem)
3067       --  plus fields for expression
3068
3069       --------------------------
3070       -- 4.3.2  Ancestor Part --
3071       --------------------------
3072
3073       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3074
3075       ----------------------------
3076       -- 4.3.3  Array Aggregate --
3077       ----------------------------
3078
3079       --  ARRAY_AGGREGATE ::=
3080       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3081
3082       ---------------------------------------
3083       -- 4.3.3  Positional Array Aggregate --
3084       ---------------------------------------
3085
3086       --  POSITIONAL_ARRAY_AGGREGATE ::=
3087       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3088       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3089
3090       --  See Record_Aggregate (4.3.1) for node structure
3091
3092       ----------------------------------
3093       -- 4.3.3  Named Array Aggregate --
3094       ----------------------------------
3095
3096       --  NAMED_ARRAY_AGGREGATE ::=
3097       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3098
3099       --  See Record_Aggregate (4.3.1) for node structure
3100
3101       ----------------------------------------
3102       -- 4.3.3  Array Component Association --
3103       ----------------------------------------
3104
3105       --  ARRAY_COMPONENT_ASSOCIATION ::=
3106       --    DISCRETE_CHOICE_LIST => EXPRESSION
3107
3108       --  See Record_Component_Association (4.3.1) for node structure
3109
3110       --------------------------------------------------
3111       -- 4.4  Expression/Relation/Term/Factor/Primary --
3112       --------------------------------------------------
3113
3114       --  EXPRESSION ::=
3115       --    RELATION {and RELATION} | RELATION {and then RELATION}
3116       --  | RELATION {or RELATION}  | RELATION {or else RELATION}
3117       --  | RELATION {xor RELATION}
3118
3119       --  RELATION ::=
3120       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3121       --  | SIMPLE_EXPRESSION [not] in RANGE
3122       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3123
3124       --  SIMPLE_EXPRESSION ::=
3125       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3126
3127       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3128
3129       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3130
3131       --  No nodes are generated for any of these constructs. Instead, the
3132       --  node for the operator appears directly. When we refer to an
3133       --  expression in this description, we mean any of the possible
3134       --  consistuent components of an expression (e.g. identifier is
3135       --  an example of an expression).
3136
3137       ------------------
3138       -- 4.4  Primary --
3139       ------------------
3140
3141       --  PRIMARY ::=
3142       --    NUMERIC_LITERAL  | null
3143       --  | STRING_LITERAL   | AGGREGATE
3144       --  | NAME             | QUALIFIED_EXPRESSION
3145       --  | ALLOCATOR        | (EXPRESSION)
3146
3147       --  Usually there is no explicit node in the tree for primary. Instead
3148       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3149       --  exceptions. First, there is an explicit node for a null primary.
3150
3151       --  N_Null
3152       --  Sloc points to NULL
3153       --  plus fields for expression
3154
3155       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3156       --  that the parser keep track of which subexpressions are enclosed
3157       --  in parentheses, and how many levels of parentheses are used. This
3158       --  information is required for optimization purposes, and also for
3159       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3160       --  conform with ((((1)))) in the body).
3161
3162       --  The parentheses are recorded by keeping a Paren_Count field in every
3163       --  subexpression node (it is actually present in all nodes, but only
3164       --  used in subexpression nodes). This count records the number of
3165       --  levels of parentheses. If the number of levels in the source exceeds
3166       --  the maximum accomodated by this count, then the count is simply left
3167       --  at the maximum value. This means that there are some pathalogical
3168       --  cases of failure to detect conformance failures (e.g. an expression
3169       --  with 500 levels of parens will conform with one with 501 levels),
3170       --  but we do not need to lose sleep over this.
3171
3172       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3173       --  type N_Parenthesized_Expression used to accurately record unlimited
3174       --  numbers of levels of parentheses. However, it turned out to be a
3175       --  real nuisance to have to take into account the possible presence of
3176       --  this node during semantic analysis, since basically parentheses have
3177       --  zero relevance to semantic analysis.
3178
3179       --  Note: the level of parentheses always present in things like
3180       --  aggregates does not count, only the parentheses in the primary
3181       --  (EXPRESSION) affect the setting of the Paren_Count field.
3182
3183       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3184       --  treated as though it were Empty) if No_Initialization is set True.
3185
3186       --------------------------------------
3187       -- 4.5  Short Circuit Control Forms --
3188       --------------------------------------
3189
3190       --  EXPRESSION ::=
3191       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3192
3193       --  Gigi restriction: For both these control forms, the operand and
3194       --  result types are always Standard.Boolean. The expander inserts the
3195       --  required conversion operations where needed to ensure this is the
3196       --  case.
3197
3198       --  N_And_Then
3199       --  Sloc points to AND of AND THEN
3200       --  Left_Opnd (Node2)
3201       --  Right_Opnd (Node3)
3202       --  Actions (List1-Sem)
3203       --  plus fields for expression
3204
3205       --  N_Or_Else
3206       --  Sloc points to OR of OR ELSE
3207       --  Left_Opnd (Node2)
3208       --  Right_Opnd (Node3)
3209       --  Actions (List1-Sem)
3210       --  plus fields for expression
3211
3212       --  Note: The Actions field is used to hold actions associated with
3213       --  the right hand operand. These have to be treated specially since
3214       --  they are not unconditionally executed. See Insert_Actions for a
3215       --  more detailed description of how these actions are handled.
3216
3217       ---------------------------
3218       -- 4.5  Membership Tests --
3219       ---------------------------
3220
3221       --  RELATION ::=
3222       --    SIMPLE_EXPRESSION [not] in RANGE
3223       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3224
3225       --  Note: although the grammar above allows only a range or a
3226       --  subtype mark, the parser in fact will accept any simple
3227       --  expression in place of a subtype mark. This means that the
3228       --  semantic analyzer must be prepared to deal with, and diagnose
3229       --  a simple expression other than a name for the right operand.
3230       --  This simplifies error recovery in the parser.
3231
3232       --  N_In
3233       --  Sloc points to IN
3234       --  Left_Opnd (Node2)
3235       --  Right_Opnd (Node3)
3236       --  plus fields for expression
3237
3238       --  N_Not_In
3239       --  Sloc points to NOT of NOT IN
3240       --  Left_Opnd (Node2)
3241       --  Right_Opnd (Node3)
3242       --  plus fields for expression
3243
3244       --------------------
3245       -- 4.5  Operators --
3246       --------------------
3247
3248       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3249
3250       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3251
3252       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3253
3254       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3255
3256       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3257
3258       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3259
3260       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3261
3262       --     x #* y
3263       --     x #/ y
3264       --     x #mod y
3265       --     x #rem y
3266
3267       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3268       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3269       --  All handling of smalls for multiplication and division is handled
3270       --  by the front end (mod and rem result only from expansion). Gigi
3271       --  thus never needs to worry about small values (for other operators
3272       --  operating on fixed-point, e.g. addition, the small value does not
3273       --  have any semantic effect anyway, these are always integer operations.
3274
3275       --  Gigi restriction: For all operators taking Boolean operands, the
3276       --  type is always Standard.Boolean. The expander inserts the required
3277       --  conversion operations where needed to ensure this is the case.
3278
3279       --  N_Op_And
3280       --  Sloc points to AND
3281       --  Do_Length_Check (Flag4-Sem)
3282       --  plus fields for binary operator
3283       --  plus fields for expression
3284
3285       --  N_Op_Or
3286       --  Sloc points to OR
3287       --  Do_Length_Check (Flag4-Sem)
3288       --  plus fields for binary operator
3289       --  plus fields for expression
3290
3291       --  N_Op_Xor
3292       --  Sloc points to XOR
3293       --  Do_Length_Check (Flag4-Sem)
3294       --  plus fields for binary operator
3295       --  plus fields for expression
3296
3297       --  N_Op_Eq
3298       --  Sloc points to =
3299       --  plus fields for binary operator
3300       --  plus fields for expression
3301
3302       --  N_Op_Ne
3303       --  Sloc points to /=
3304       --  plus fields for binary operator
3305       --  plus fields for expression
3306
3307       --  N_Op_Lt
3308       --  Sloc points to <
3309       --  plus fields for binary operator
3310       --  plus fields for expression
3311
3312       --  N_Op_Le
3313       --  Sloc points to <=
3314       --  plus fields for binary operator
3315       --  plus fields for expression
3316
3317       --  N_Op_Gt
3318       --  Sloc points to >
3319       --  plus fields for binary operator
3320       --  plus fields for expression
3321
3322       --  N_Op_Ge
3323       --  Sloc points to >=
3324       --  plus fields for binary operator
3325       --  plus fields for expression
3326
3327       --  N_Op_Add
3328       --  Sloc points to + (binary)
3329       --  plus fields for binary operator
3330       --  plus fields for expression
3331
3332       --  N_Op_Subtract
3333       --  Sloc points to - (binary)
3334       --  plus fields for binary operator
3335       --  plus fields for expression
3336
3337       --  N_Op_Concat
3338       --  Sloc points to &
3339       --  Is_Component_Left_Opnd (Flag13-Sem)
3340       --  Is_Component_Right_Opnd (Flag14-Sem)
3341       --  plus fields for binary operator
3342       --  plus fields for expression
3343
3344       --  N_Op_Multiply
3345       --  Sloc points to *
3346       --  Treat_Fixed_As_Integer (Flag14-Sem)
3347       --  Rounded_Result (Flag18-Sem)
3348       --  plus fields for binary operator
3349       --  plus fields for expression
3350
3351       --  N_Op_Divide
3352       --  Sloc points to /
3353       --  Treat_Fixed_As_Integer (Flag14-Sem)
3354       --  Do_Division_Check (Flag13-Sem)
3355       --  Rounded_Result (Flag18-Sem)
3356       --  plus fields for binary operator
3357       --  plus fields for expression
3358
3359       --  N_Op_Mod
3360       --  Sloc points to MOD
3361       --  Treat_Fixed_As_Integer (Flag14-Sem)
3362       --  Do_Division_Check (Flag13-Sem)
3363       --  plus fields for binary operator
3364       --  plus fields for expression
3365
3366       --  N_Op_Rem
3367       --  Sloc points to REM
3368       --  Treat_Fixed_As_Integer (Flag14-Sem)
3369       --  Do_Division_Check (Flag13-Sem)
3370       --  plus fields for binary operator
3371       --  plus fields for expression
3372
3373       --  N_Op_Expon
3374       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3375       --  Sloc points to **
3376       --  plus fields for binary operator
3377       --  plus fields for expression
3378
3379       --  N_Op_Plus
3380       --  Sloc points to + (unary)
3381       --  plus fields for unary operator
3382       --  plus fields for expression
3383
3384       --  N_Op_Minus
3385       --  Sloc points to - (unary)
3386       --  plus fields for unary operator
3387       --  plus fields for expression
3388
3389       --  N_Op_Abs
3390       --  Sloc points to ABS
3391       --  plus fields for unary operator
3392       --  plus fields for expression
3393
3394       --  N_Op_Not
3395       --  Sloc points to NOT
3396       --  plus fields for unary operator
3397       --  plus fields for expression
3398
3399       --  See also shift operators in section B.2
3400
3401       --  Note on fixed-point operations passed to Gigi: For adding operators,
3402       --  the semantics is to treat these simply as integer operations, with
3403       --  the small values being ignored (the bounds are already stored in
3404       --  units of small, so that constraint checking works as usual). For the
3405       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3406       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3407       --  thus treat these nodes in identical manner, ignoring small values.
3408
3409       --------------------------
3410       -- 4.6  Type Conversion --
3411       --------------------------
3412
3413       --  TYPE_CONVERSION ::=
3414       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3415
3416       --  In the (NAME) case, the name is stored as the expression
3417
3418       --  Note: the parser never generates a type conversion node, since it
3419       --  looks like an indexed component which is generated by preference.
3420       --  The semantic pass must correct this misidentification.
3421
3422       --  Gigi handles conversions that involve no change in the root type,
3423       --  and also all conversions from integer to floating-point types.
3424       --  Conversions from floating-point to integer are only handled in
3425       --  the case where Float_Truncate flag set. Other conversions from
3426       --  floating-point to integer (involving rounding) and all conversions
3427       --  involving fixed-point types are handled by the expander.
3428
3429       --  Sprint syntax if Float_Truncate set: X^(Y)
3430       --  Sprint syntax if Conversion_OK set X?(Y)
3431       --  Sprint syntax if both flags set X?^(Y)
3432
3433       --  Note: If either the operand or result type is fixed-point, Gigi will
3434       --  only see a type conversion node with Conversion_OK set. The front end
3435       --  takes care of all handling of small's for fixed-point conversions.
3436
3437       --  N_Type_Conversion
3438       --  Sloc points to first token of subtype mark
3439       --  Subtype_Mark (Node4)
3440       --  Expression (Node3)
3441       --  Do_Tag_Check (Flag13-Sem)
3442       --  Do_Length_Check (Flag4-Sem)
3443       --  Do_Overflow_Check (Flag17-Sem)
3444       --  Float_Truncate (Flag11-Sem)
3445       --  Rounded_Result (Flag18-Sem)
3446       --  Conversion_OK (Flag14-Sem)
3447       --  plus fields for expression
3448
3449       --  Note: if a range check is required, then the Do_Range_Check flag
3450       --  is set in the Expression with the check being done against the
3451       --  target type range (after the base type conversion, if any).
3452
3453       -------------------------------
3454       -- 4.7  Qualified Expression --
3455       -------------------------------
3456
3457       --  QUALIFIED_EXPRESSION ::=
3458       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3459
3460       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3461       --  the expression, so the Expression field of this node always points
3462       --  to a parenthesized expression in this case (i.e. Paren_Count will
3463       --  always be non-zero for the referenced expression if it is not an
3464       --  aggregate).
3465
3466       --  N_Qualified_Expression
3467       --  Sloc points to apostrophe
3468       --  Subtype_Mark (Node4)
3469       --  Expression (Node3) expression or aggregate
3470       --  plus fields for expression
3471
3472       --------------------
3473       -- 4.8  Allocator --
3474       --------------------
3475
3476       --  ALLOCATOR ::=
3477       --    new SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3478
3479       --  Sprint syntax (when storage pool present)
3480       --    new xxx (storage_pool = pool)
3481
3482       --  N_Allocator
3483       --  Sloc points to NEW
3484       --  Expression (Node3) subtype indication or qualified expression
3485       --  Storage_Pool (Node1-Sem)
3486       --  Procedure_To_Call (Node4-Sem)
3487       --  No_Initialization (Flag13-Sem)
3488       --  Do_Storage_Check (Flag17-Sem)
3489       --  plus fields for expression
3490
3491       ---------------------------------
3492       -- 5.1  Sequence Of Statements --
3493       ---------------------------------
3494
3495       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3496
3497       --  Note: Although the parser will not accept a declaration as a
3498       --  statement, the semantic analyzer may insert declarations (e.g.
3499       --  declarations of implicit types needed for execution of other
3500       --  statements) into a sequence of statements, so the code genmerator
3501       --  should be prepared to accept a declaration where a statement is
3502       --  expected. Note also that pragmas can appear as statements.
3503
3504       --------------------
3505       -- 5.1  Statement --
3506       --------------------
3507
3508       --  STATEMENT ::=
3509       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3510
3511       --  There is no explicit node in the tree for a statement. Instead, the
3512       --  individual statement appears directly. Labels are treated  as a
3513       --  kind of statement, i.e. they are linked into a statement list at
3514       --  the point they appear, so the labeled statement appears following
3515       --  the label or labels in the statement list.
3516
3517       ---------------------------
3518       -- 5.1  Simple Statement --
3519       ---------------------------
3520
3521       --  SIMPLE_STATEMENT ::=      NULL_STATEMENT
3522       --  | ASSIGNMENT_STATEMENT  | EXIT_STATEMENT
3523       --  | GOTO_STATEMENT        | PROCEDURE_CALL_STATEMENT
3524       --  | RETURN_STATEMENT      | ENTRY_CALL_STATEMENT
3525       --  | REQUEUE_STATEMENT     | DELAY_STATEMENT
3526       --  | ABORT_STATEMENT       | RAISE_STATEMENT
3527       --  | CODE_STATEMENT
3528
3529       -----------------------------
3530       -- 5.1  Compound Statement --
3531       -----------------------------
3532
3533       --  COMPOUND_STATEMENT ::=
3534       --    IF_STATEMENT         | CASE_STATEMENT
3535       --  | LOOP_STATEMENT       | BLOCK_STATEMENT
3536       --  | ACCEPT_STATEMENT     | SELECT_STATEMENT
3537
3538       -------------------------
3539       -- 5.1  Null Statement --
3540       -------------------------
3541
3542       --  NULL_STATEMENT ::= null;
3543
3544       --  N_Null_Statement
3545       --  Sloc points to NULL
3546
3547       ----------------
3548       -- 5.1  Label --
3549       ----------------
3550
3551       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3552
3553       --  Note that the occurrence of a label is not a defining identifier,
3554       --  but rather a referencing occurrence. The defining occurrence is
3555       --  in the implicit label declaration which occurs in the innermost
3556       --  enclosing block.
3557
3558       --  N_Label
3559       --  Sloc points to <<
3560       --  Identifier (Node1) direct name of statement identifier
3561       --  Exception_Junk (Flag11-Sem)
3562
3563       -------------------------------
3564       -- 5.1  Statement Identifier --
3565       -------------------------------
3566
3567       --  STATEMENT_INDENTIFIER ::= DIRECT_NAME
3568
3569       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3570       --  (not an OPERATOR_SYMBOL)
3571
3572       -------------------------------
3573       -- 5.2  Assignment Statement --
3574       -------------------------------
3575
3576       --  ASSIGNMENT_STATEMENT ::=
3577       --    variable_NAME := EXPRESSION;
3578
3579       --  N_Assignment_Statement
3580       --  Sloc points to :=
3581       --  Name (Node2)
3582       --  Expression (Node3)
3583       --  Do_Tag_Check (Flag13-Sem)
3584       --  Do_Length_Check (Flag4-Sem)
3585       --  Forwards_OK (Flag5-Sem)
3586       --  Backwards_OK (Flag6-Sem)
3587       --  No_Ctrl_Actions (Flag7-Sem)
3588
3589       --  Note: if a range check is required, then the Do_Range_Check flag
3590       --  is set in the Expression (right hand side), with the check being
3591       --  done against the type of the Name (left hand side).
3592
3593       --  Note: the back end places some restrictions on the form of the
3594       --  Expression field. If the object being assigned to is Atomic, then
3595       --  the Expression may not have the form of an aggregate (since this
3596       --  might cause the back end to generate separate assignments). It
3597       --  also cannot be a reference to an object marked as a true constant
3598       --  (Is_True_Constant flag set), where the object is itself initalized
3599       --  with an aggregate. If necessary the front end must generate an
3600       --  extra temporary (with Is_True_Constant set False), and initialize
3601       --  this temporary as required (the temporary itself is not atomic).
3602
3603       -----------------------
3604       -- 5.3  If Statement --
3605       -----------------------
3606
3607       --  IF_STATEMENT ::=
3608       --    if CONDITION then
3609       --      SEQUENCE_OF_STATEMENTS
3610       --    {elsif CONDITION then
3611       --      SEQUENCE_OF_STATEMENTS}
3612       --    [else
3613       --      SEQUENCE_OF_STATEMENTS]
3614       --    end if;
3615
3616       --  Gigi restriction: This expander ensures that the type of the
3617       --  Condition fields is always Standard.Boolean, even if the type
3618       --  in the source is some non-standard boolean type.
3619
3620       --  N_If_Statement
3621       --  Sloc points to IF
3622       --  Condition (Node1)
3623       --  Then_Statements (List2)
3624       --  Elsif_Parts (List3) (set to No_List if none present)
3625       --  Else_Statements (List4) (set to No_List if no else part present)
3626       --  End_Span (Uint5) (set to No_Uint if expander generated)
3627
3628       --  N_Elsif_Part
3629       --  Sloc points to ELSIF
3630       --  Condition (Node1)
3631       --  Then_Statements (List2)
3632       --  Condition_Actions (List3-Sem)
3633
3634       --------------------
3635       -- 5.3  Condition --
3636       --------------------
3637
3638       --  CONDITION ::= boolean_EXPRESSION
3639
3640       -------------------------
3641       -- 5.4  Case Statement --
3642       -------------------------
3643
3644       --  CASE_STATEMENT ::=
3645       --    case EXPRESSION is
3646       --      CASE_STATEMENT_ALTERNATIVE
3647       --      {CASE_STATEMENT_ALTERNATIVE}
3648       --    end case;
3649
3650       --  Note: the Alternatives can contain pragmas. These only occur at
3651       --  the start of the list, since any pragmas occurring after the first
3652       --  alternative are absorbed into the corresponding statement sequence.
3653
3654       --  N_Case_Statement
3655       --  Sloc points to CASE
3656       --  Expression (Node3)
3657       --  Alternatives (List4)
3658       --  End_Span (Uint5) (set to No_Uint if expander generated)
3659
3660       -------------------------------------
3661       -- 5.4  Case Statement Alternative --
3662       -------------------------------------
3663
3664       --  CASE_STATEMENT_ALTERNATIVE ::=
3665       --    when DISCRETE_CHOICE_LIST =>
3666       --      SEQUENCE_OF_STATEMENTS
3667
3668       --  N_Case_Statement_Alternative
3669       --  Sloc points to WHEN
3670       --  Discrete_Choices (List4)
3671       --  Statements (List3)
3672
3673       -------------------------
3674       -- 5.5  Loop Statement --
3675       -------------------------
3676
3677       --  LOOP_STATEMENT ::=
3678       --    [loop_STATEMENT_IDENTIFIER :]
3679       --      [ITERATION_SCHEME] loop
3680       --        SEQUENCE_OF_STATEMENTS
3681       --      end loop [loop_IDENTIFIER];
3682
3683       --  Note: The occurrence of a loop label is not a defining identifier
3684       --  but rather a referencing occurrence. The defining occurrence is in
3685       --  the implicit label declaration which occurs in the innermost
3686       --  enclosing block.
3687
3688       --  Note: there is always a loop statement identifier present in
3689       --  the tree, even if none was given in the source. In the case where
3690       --  no loop identifier is given in the source, the parser creates
3691       --  a name of the form _Loop_n, where n is a decimal integer (the
3692       --  two underlines ensure that the loop names created in this manner
3693       --  do not conflict with any user defined identifiers), and the flag
3694       --  Has_Created_Identifier is set to True. The only exception to the
3695       --  rule that all loop statement nodes have identifiers occurs for
3696       --  loops constructed by the expander, and the semantic analyzer will
3697       --  create and supply dummy loop identifiers in these cases.
3698
3699       --  N_Loop_Statement
3700       --  Sloc points to LOOP
3701       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
3702       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3703       --  Statements (List3)
3704       --  End_Label (Node4)
3705       --  Has_Created_Identifier (Flag15)
3706       --  Is_Null_Loop (Flag16)
3707
3708       --------------------------
3709       -- 5.5 Iteration Scheme --
3710       --------------------------
3711
3712       --  ITERATION_SCHEME ::=
3713       --    while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3714
3715       --  Gigi restriction: This expander ensures that the type of the
3716       --  Condition field is always Standard.Boolean, even if the type
3717       --  in the source is some non-standard boolean type.
3718
3719       --  N_Iteration_Scheme
3720       --  Sloc points to WHILE or FOR
3721       --  Condition (Node1) (set to Empty if FOR case)
3722       --  Condition_Actions (List3-Sem)
3723       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3724
3725       ---------------------------------------
3726       -- 5.5  Loop parameter specification --
3727       ---------------------------------------
3728
3729       --  LOOP_PARAMETER_SPECIFICATION ::=
3730       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3731
3732       --  N_Loop_Parameter_Specification
3733       --  Sloc points to first identifier
3734       --  Defining_Identifier (Node1)
3735       --  Reverse_Present (Flag15)
3736       --  Discrete_Subtype_Definition (Node4)
3737
3738       --------------------------
3739       -- 5.6  Block Statement --
3740       --------------------------
3741
3742       --  BLOCK_STATEMENT ::=
3743       --    [block_STATEMENT_IDENTIFIER:]
3744       --      [declare
3745       --        DECLARATIVE_PART]
3746       --      begin
3747       --        HANDLED_SEQUENCE_OF_STATEMENTS
3748       --      end [block_IDENTIFIER];
3749
3750       --  Note that the occurrence of a block identifier is not a defining
3751       --  identifier, but rather a referencing occurrence. The defining
3752       --  occurrence is in the implicit label declaration which occurs in
3753       --  the innermost enclosing block.
3754
3755       --  Note: there is always a block statement identifier present in
3756       --  the tree, even if none was given in the source. In the case where
3757       --  no block identifier is given in the source, the parser creates
3758       --  a name of the form _Block_n, where n is a decimal integer (the
3759       --  two underlines ensure that the block names created in this manner
3760       --  do not conflict with any user defined identifiers), and the flag
3761       --  Has_Created_Identifier is set to True. The only exception to the
3762       --  rule that all loop statement nodes have identifiers occurs for
3763       --  blocks constructed by the expander, and the semantic analyzer
3764       --  creates and supplies dummy names for the blocks).
3765
3766       --  N_Block_Statement
3767       --  Sloc points to DECLARE or BEGIN
3768       --  Identifier (Node1) block direct name (set to Empty if not present)
3769       --  Declarations (List2) (set to No_List if no DECLARE part)
3770       --  Handled_Statement_Sequence (Node4)
3771       --  Is_Task_Master (Flag5-Sem)
3772       --  Activation_Chain_Entity (Node3-Sem)
3773       --  Has_Created_Identifier (Flag15)
3774       --  Is_Task_Allocation_Block (Flag6)
3775       --  Is_Asynchronous_Call_Block (Flag7)
3776
3777       -------------------------
3778       -- 5.7  Exit Statement --
3779       -------------------------
3780
3781       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
3782
3783       --  Gigi restriction: This expander ensures that the type of the
3784       --  Condition field is always Standard.Boolean, even if the type
3785       --  in the source is some non-standard boolean type.
3786
3787       --  N_Exit_Statement
3788       --  Sloc points to EXIT
3789       --  Name (Node2) (set to Empty if no loop name present)
3790       --  Condition (Node1) (set to Empty if no when part present)
3791
3792       -------------------------
3793       -- 5.9  Goto Statement --
3794       -------------------------
3795
3796       --  GOTO_STATEMENT ::= goto label_NAME;
3797
3798       --  N_Goto_Statement
3799       --  Sloc points to GOTO
3800       --  Name (Node2)
3801       --  Exception_Junk (Flag11-Sem)
3802
3803       ---------------------------------
3804       -- 6.1  Subprogram Declaration --
3805       ---------------------------------
3806
3807       --  SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
3808
3809       --  N_Subprogram_Declaration
3810       --  Sloc points to FUNCTION or PROCEDURE
3811       --  Specification (Node1)
3812       --  Body_To_Inline (Node3-Sem)
3813       --  Corresponding_Body (Node5-Sem)
3814       --  Parent_Spec (Node4-Sem)
3815
3816       ------------------------------------------
3817       -- 6.1  Abstract Subprogram Declaration --
3818       ------------------------------------------
3819
3820       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
3821       --    SUBPROGRAM_SPECIFICATION is abstract;
3822
3823       --  N_Abstract_Subprogram_Declaration
3824       --  Sloc points to ABSTRACT
3825       --  Specification (Node1)
3826
3827       -----------------------------------
3828       -- 6.1  Subprogram Specification --
3829       -----------------------------------
3830
3831       --  SUBPROGRAM_SPECIFICATION ::=
3832       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
3833       --  | function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
3834
3835       --  Note: there are no separate nodes for the profiles, instead the
3836       --  information appears directly in the following nodes.
3837
3838       --  N_Function_Specification
3839       --  Sloc points to FUNCTION
3840       --  Defining_Unit_Name (Node1) (the designator)
3841       --  Elaboration_Boolean (Node2-Sem)
3842       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3843       --  Subtype_Mark (Node4) for return type
3844       --  Generic_Parent (Node5-Sem)
3845
3846       --  N_Procedure_Specification
3847       --  Sloc points to PROCEDURE
3848       --  Defining_Unit_Name (Node1)
3849       --  Elaboration_Boolean (Node2-Sem)
3850       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3851       --  Generic_Parent (Node5-Sem)
3852
3853       ---------------------
3854       -- 6.1  Designator --
3855       ---------------------
3856
3857       --  DESIGNATOR ::=
3858       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
3859
3860       --  Designators that are simply identifiers or operator symbols appear
3861       --  directly in the tree in this form. The following node is used only
3862       --  in the case where the designator has a parent unit name component.
3863
3864       --  N_Designator
3865       --  Sloc points to period
3866       --  Name (Node2) holds the parent unit name. Note that this is always
3867       --   non-Empty, since this node is only used for the case where a
3868       --   parent library unit package name is present.
3869       --  Identifier (Node1)
3870
3871       --  Note that the identifier can also be an operator symbol here.
3872
3873       ------------------------------
3874       -- 6.1  Defining Designator --
3875       ------------------------------
3876
3877       --  DEFINING_DESIGNATOR ::=
3878       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
3879
3880       -------------------------------------
3881       -- 6.1  Defining Program Unit Name --
3882       -------------------------------------
3883
3884       --  DEFINING_PROGRAM_UNIT_NAME ::=
3885       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
3886
3887       --  The parent unit name is present only in the case of a child unit
3888       --  name (permissible only for Ada 95 for a library level unit, i.e.
3889       --  a unit at scope level one). If no such name is present, the defining
3890       --  program unit name is represented simply as the defining identifier.
3891       --  In the child unit case, the following node is used to represent the
3892       --  child unit name.
3893
3894       --  N_Defining_Program_Unit_Name
3895       --  Sloc points to period
3896       --  Name (Node2) holds the parent unit name. Note that this is always
3897       --   non-Empty, since this node is only used for the case where a
3898       --   parent unit name is present.
3899       --  Defining_Identifier (Node1)
3900
3901       --------------------------
3902       -- 6.1  Operator Symbol --
3903       --------------------------
3904
3905       --  OPERATOR_SYMBOL ::= STRING_LITERAL
3906
3907       --  Note: the fields of the N_Operator_Symbol node are laid out to
3908       --  match the corresponding fields of an N_Character_Literal node. This
3909       --  allows easy conversion of the operator symbol node into a character
3910       --  literal node in the case where a string constant of the form of an
3911       --  operator symbol is scanned out as such, but turns out semantically
3912       --  to be a string literal that is not an operator. For details see
3913       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
3914
3915       --  N_Operator_Symbol
3916       --  Sloc points to literal
3917       --  Chars (Name1) contains the Name_Id for the operator symbol
3918       --  Strval (Str3) Id of string value. This is used if the operator
3919       --   symbol turns out to be a normal string after all.
3920       --  Entity (Node4-Sem)
3921       --  Associated_Node (Node4-Sem)
3922       --  Has_Private_View (Flag11-Sem) set in generic units.
3923       --  Etype (Node5-Sem)
3924
3925       --  Note: the Strval field may be set to No_String for generated
3926       --  operator symbols that are known not to be string literals
3927       --  semantically.
3928
3929       -----------------------------------
3930       -- 6.1  Defining Operator Symbol --
3931       -----------------------------------
3932
3933       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
3934
3935       --  A defining operator symbol is an entity, which has additional
3936       --  fields depending on the setting of the Ekind field. These
3937       --  additional fields are defined (and access subprograms declared)
3938       --  in package Einfo.
3939
3940       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
3941       --  are deliberately layed out to match the layout of fields in an
3942       --  ordinary N_Operator_Symbol node allowing for easy alteration of
3943       --  an operator symbol node into a defining operator symbol node.
3944       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
3945       --  for further details.
3946
3947       --  N_Defining_Operator_Symbol
3948       --  Sloc points to literal
3949       --  Chars (Name1) contains the Name_Id for the operator symbol
3950       --  Next_Entity (Node2-Sem)
3951       --  Scope (Node3-Sem)
3952       --  Etype (Node5-Sem)
3953
3954       ----------------------------
3955       -- 6.1  Parameter Profile --
3956       ----------------------------
3957
3958       --  PARAMETER_PROFILE ::= [FORMAL_PART]
3959
3960       ---------------------------------------
3961       -- 6.1  Parameter and Result Profile --
3962       ---------------------------------------
3963
3964       --  PARAMETER_AND_RESULT_PROFILE ::= [FORMAL_PART] return SUBTYPE_MARK
3965
3966       --  There is no explicit node in the tree for a parameter and result
3967       --  profile. Instead the information appears directly in the parent.
3968
3969       ----------------------
3970       -- 6.1  Formal part --
3971       ----------------------
3972
3973       --  FORMAL_PART ::=
3974       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
3975
3976       ----------------------------------
3977       -- 6.1  Parameter specification --
3978       ----------------------------------
3979
3980       --  PARAMETER_SPECIFICATION ::=
3981       --    DEFINING_IDENTIFIER_LIST : MODE SUBTYPE_MARK
3982       --      [:= DEFAULT_EXPRESSION]
3983       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3984       --      [:= DEFAULT_EXPRESSION]
3985
3986       --  Although the syntax allows multiple identifiers in the list, the
3987       --  semantics is as though successive specifications were given with
3988       --  identical type definition and expression components. To simplify
3989       --  semantic processing, the parser represents a multiple declaration
3990       --  case as a sequence of single Specifications, using the More_Ids and
3991       --  Prev_Ids flags to preserve the original source form as described
3992       --  in the section on "Handling of Defining Identifier Lists".
3993
3994       --  N_Parameter_Specification
3995       --  Sloc points to first identifier
3996       --  Defining_Identifier (Node1)
3997       --  In_Present (Flag15)
3998       --  Out_Present (Flag17)
3999       --  Parameter_Type (Node2) subtype mark or access definition
4000       --  Expression (Node3) (set to Empty if no default expression present)
4001       --  Do_Accessibility_Check (Flag13-Sem)
4002       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4003       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4004       --  Default_Expression (Node5-Sem)
4005
4006       ---------------
4007       -- 6.1  Mode --
4008       ---------------
4009
4010       --  MODE ::= [in] | in out | out
4011
4012       --  There is no explicit node in the tree for the Mode. Instead the
4013       --  In_Present and Out_Present flags are set in the parent node to
4014       --  record the presence of keywords specifying the mode.
4015
4016       --------------------------
4017       -- 6.3  Subprogram Body --
4018       --------------------------
4019
4020       --  SUBPROGRAM_BODY ::=
4021       --    SUBPROGRAM_SPECIFICATION is
4022       --      DECLARATIVE_PART
4023       --    begin
4024       --      HANDLED_SEQUENCE_OF_STATEMENTS
4025       --    end [DESIGNATOR];
4026
4027       --  N_Subprogram_Body
4028       --  Sloc points to FUNCTION or PROCEDURE
4029       --  Specification (Node1)
4030       --  Declarations (List2)
4031       --  Handled_Statement_Sequence (Node4)
4032       --  Activation_Chain_Entity (Node3-Sem)
4033       --  Corresponding_Spec (Node5-Sem)
4034       --  Acts_As_Spec (Flag4-Sem)
4035       --  Bad_Is_Detected (Flag15) used only by parser
4036       --  Do_Storage_Check (Flag17-Sem)
4037       --  Has_Priority_Pragma (Flag6-Sem)
4038       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4039       --  Is_Task_Master (Flag5-Sem)
4040       --  Was_Originally_Stub (Flag13-Sem)
4041
4042       -----------------------------------
4043       -- 6.4  Procedure Call Statement --
4044       -----------------------------------
4045
4046       --  PROCEDURE_CALL_STATEMENT ::=
4047       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4048
4049       --  Note: the reason that a procedure call has expression fields is
4050       --  that it semantically resembles an expression, e.g. overloading is
4051       --  allowed and a type is concocted for semantic processing purposes.
4052       --  Certain of these fields, such as Parens are not relevant, but it
4053       --  is easier to just supply all of them together!
4054
4055       --  N_Procedure_Call_Statement
4056       --  Sloc points to first token of name or prefix
4057       --  Name (Node2) stores name or prefix
4058       --  Parameter_Associations (List3) (set to No_List if no
4059       --   actual parameter part)
4060       --  First_Named_Actual (Node4-Sem)
4061       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4062       --  Do_Tag_Check (Flag13-Sem)
4063       --  No_Elaboration_Check (Flag14-Sem)
4064       --  Parameter_List_Truncated (Flag17-Sem)
4065       --  ABE_Is_Certain (Flag18-Sem)
4066       --  plus fields for expression
4067
4068       --  If any IN parameter requires a range check, then the corresponding
4069       --  argument expression has the Do_Range_Check flag set, and the range
4070       --  check is done against the formal type. Note that this argument
4071       --  expression may appear directly in the Parameter_Associations list,
4072       --  or may be a descendent of an N_Parameter_Association node that
4073       --  appears in this list.
4074
4075       ------------------------
4076       -- 6.4  Function Call --
4077       ------------------------
4078
4079       --  FUNCTION_CALL ::=
4080       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4081
4082       --  Note: the parser may generate an indexed component node or simply
4083       --  a name node instead of a function call node. The semantic pass must
4084       --  correct this misidentification.
4085
4086       --  N_Function_Call
4087       --  Sloc points to first token of name or prefix
4088       --  Name (Node2) stores name or prefix
4089       --  Parameter_Associations (List3) (set to No_List if no
4090       --   actual parameter part)
4091       --  First_Named_Actual (Node4-Sem)
4092       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4093       --  Do_Tag_Check (Flag13-Sem)
4094       --  No_Elaboration_Check (Flag14-Sem)
4095       --  Parameter_List_Truncated (Flag17-Sem)
4096       --  ABE_Is_Certain (Flag18-Sem)
4097       --  plus fields for expression
4098
4099       --------------------------------
4100       -- 6.4  Actual Parameter Part --
4101       --------------------------------
4102
4103       --  ACTUAL_PARAMETER_PART ::=
4104       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4105
4106       --------------------------------
4107       -- 6.4  Parameter Association --
4108       --------------------------------
4109
4110       --  PARAMETER_ASSOCIATION ::=
4111       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4112
4113       --  Note: the N_Parameter_Association node is built only if a formal
4114       --  parameter selector name is present, otherwise the parameter
4115       --  association appears in the tree simply as the node for the
4116       --  explicit actual parameter.
4117
4118       --  N_Parameter_Association
4119       --  Sloc points to formal parameter
4120       --  Selector_Name (Node2) (always non-Empty, since this node is
4121       --   only used if a formal parameter selector name is present)
4122       --  Explicit_Actual_Parameter (Node3)
4123       --  Next_Named_Actual (Node4-Sem)
4124
4125       ---------------------------
4126       -- 6.4  Actual Parameter --
4127       ---------------------------
4128
4129       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4130
4131       ---------------------------
4132       -- 6.5  Return Statement --
4133       ---------------------------
4134
4135       --  RETURN_STATEMENT ::= return [EXPRESSION];
4136
4137       --  N_Return_Statement
4138       --  Sloc points to RETURN
4139       --  Expression (Node3) (set to Empty if no expression present)
4140       --  Storage_Pool (Node1-Sem)
4141       --  Procedure_To_Call (Node4-Sem)
4142       --  Do_Tag_Check (Flag13-Sem)
4143       --  Return_Type (Node2-Sem)
4144       --  By_Ref (Flag5-Sem)
4145
4146       --  Note: if a range check is required, then Do_Range_Check is set
4147       --  on the Expression. The range check is against Return_Type.
4148
4149       ------------------------------
4150       -- 7.1  Package Declaration --
4151       ------------------------------
4152
4153       --  PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4154
4155       --  Note: the activation chain entity for a package spec is used for
4156       --  all tasks declared in the package spec, or in the package body.
4157
4158       --  N_Package_Declaration
4159       --  Sloc points to PACKAGE
4160       --  Specification (Node1)
4161       --  Corresponding_Body (Node5-Sem)
4162       --  Parent_Spec (Node4-Sem)
4163       --  Activation_Chain_Entity (Node3-Sem)
4164
4165       --------------------------------
4166       -- 7.1  Package Specification --
4167       --------------------------------
4168
4169       --  PACKAGE_SPECIFICATION ::=
4170       --    package DEFINING_PROGRAM_UNIT_NAME is
4171       --      {BASIC_DECLARATIVE_ITEM}
4172       --    [private
4173       --      {BASIC_DECLARATIVE_ITEM}]
4174       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4175
4176       --  N_Package_Specification
4177       --  Sloc points to PACKAGE
4178       --  Defining_Unit_Name (Node1)
4179       --  Visible_Declarations (List2)
4180       --  Private_Declarations (List3) (set to No_List if no private
4181       --   part present)
4182       --  End_Label (Node4)
4183       --  Generic_Parent (Node5-Sem)
4184       --  Limited_View_Installed (Flag18-Sem)
4185
4186       -----------------------
4187       -- 7.1  Package Body --
4188       -----------------------
4189
4190       --  PACKAGE_BODY ::=
4191       --    package body DEFINING_PROGRAM_UNIT_NAME is
4192       --      DECLARATIVE_PART
4193       --    [begin
4194       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4195       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4196
4197       --  N_Package_Body
4198       --  Sloc points to PACKAGE
4199       --  Defining_Unit_Name (Node1)
4200       --  Declarations (List2)
4201       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4202       --  Corresponding_Spec (Node5-Sem)
4203       --  Was_Originally_Stub (Flag13-Sem)
4204
4205       --  Note: if a source level package does not contain a handled sequence
4206       --  of statements, then the parser supplies a dummy one with a null
4207       --  sequence of statements. Comes_From_Source will be False in this
4208       --  constructed sequence. The reason we need this is for the End_Label
4209       --  field in the HSS.
4210
4211       -----------------------------------
4212       -- 7.4  Private Type Declaration --
4213       -----------------------------------
4214
4215       --  PRIVATE_TYPE_DECLARATION ::=
4216       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4217       --      is [[abstract] tagged] [limited] private;
4218
4219       --  Note: TAGGED is not permitted in Ada 83 mode
4220
4221       --  N_Private_Type_Declaration
4222       --  Sloc points to TYPE
4223       --  Defining_Identifier (Node1)
4224       --  Discriminant_Specifications (List4) (set to No_List if no
4225       --   discriminant part)
4226       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4227       --  Abstract_Present (Flag4)
4228       --  Tagged_Present (Flag15)
4229       --  Limited_Present (Flag17)
4230
4231       ----------------------------------------
4232       -- 7.4  Private Extension Declaration --
4233       ----------------------------------------
4234
4235       --  PRIVATE_EXTENSION_DECLARATION ::=
4236       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4237       --      [abstract] new ancestor_SUBTYPE_INDICATION with private;
4238
4239       --  Note: private extension declarations are not allowed in Ada 83 mode
4240
4241       --  N_Private_Extension_Declaration
4242       --  Sloc points to TYPE
4243       --  Defining_Identifier (Node1)
4244       --  Discriminant_Specifications (List4) (set to No_List if no
4245       --   discriminant part)
4246       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4247       --  Abstract_Present (Flag4)
4248       --  Subtype_Indication (Node5)
4249
4250       ---------------------
4251       -- 8.4  Use Clause --
4252       ---------------------
4253
4254       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4255
4256       -----------------------------
4257       -- 8.4  Use Package Clause --
4258       -----------------------------
4259
4260       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4261
4262       --  N_Use_Package_Clause
4263       --  Sloc points to USE
4264       --  Names (List2)
4265       --  Next_Use_Clause (Node3-Sem)
4266       --  Hidden_By_Use_Clause (Elist4-Sem)
4267
4268       --------------------------
4269       -- 8.4  Use Type Clause --
4270       --------------------------
4271
4272       --  USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4273
4274       --  Note: use type clause is not permitted in Ada 83 mode
4275
4276       --  N_Use_Type_Clause
4277       --  Sloc points to USE
4278       --  Subtype_Marks (List2)
4279       --  Next_Use_Clause (Node3-Sem)
4280       --  Hidden_By_Use_Clause (Elist4-Sem)
4281
4282       -------------------------------
4283       -- 8.5  Renaming Declaration --
4284       -------------------------------
4285
4286       --  RENAMING_DECLARATION ::=
4287       --    OBJECT_RENAMING_DECLARATION
4288       --  | EXCEPTION_RENAMING_DECLARATION
4289       --  | PACKAGE_RENAMING_DECLARATION
4290       --  | SUBPROGRAM_RENAMING_DECLARATION
4291       --  | GENERIC_RENAMING_DECLARATION
4292
4293       --------------------------------------
4294       -- 8.5  Object Renaming Declaration --
4295       --------------------------------------
4296
4297       --  OBJECT_RENAMING_DECLARATION ::=
4298       --    DEFINING_IDENTIFIER : SUBTYPE_MARK renames object_NAME;
4299       --  | DEFINING_IDENTIFIER : ACCESS_DEFINITION renames object_NAME;
4300
4301       --  Note: Access_Definition is an optional field that gives support to
4302       --  Ada 0Y (AI-230). The parser generates nodes that have either the
4303       --  Subtype_Indication field or else the Access_Definition field.
4304
4305       --  N_Object_Renaming_Declaration
4306       --  Sloc points to first identifier
4307       --  Defining_Identifier (Node1)
4308       --  Subtype_Mark (Node4) (set to Empty if not present)
4309       --  Access_Definition (Node3) (set to Empty if not present)
4310       --  Name (Node2)
4311       --  Corresponding_Generic_Association (Node5-Sem)
4312
4313       -----------------------------------------
4314       -- 8.5  Exception Renaming Declaration --
4315       -----------------------------------------
4316
4317       --  EXCEPTION_RENAMING_DECLARATION ::=
4318       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4319
4320       --  N_Exception_Renaming_Declaration
4321       --  Sloc points to first identifier
4322       --  Defining_Identifier (Node1)
4323       --  Name (Node2)
4324
4325       ---------------------------------------
4326       -- 8.5  Package Renaming Declaration --
4327       ---------------------------------------
4328
4329       --  PACKAGE_RENAMING_DECLARATION ::=
4330       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4331
4332       --  N_Package_Renaming_Declaration
4333       --  Sloc points to PACKAGE
4334       --  Defining_Unit_Name (Node1)
4335       --  Name (Node2)
4336       --  Parent_Spec (Node4-Sem)
4337
4338       ------------------------------------------
4339       -- 8.5  Subprogram Renaming Declaration --
4340       ------------------------------------------
4341
4342       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4343       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4344
4345       --  N_Subprogram_Renaming_Declaration
4346       --  Sloc points to RENAMES
4347       --  Specification (Node1)
4348       --  Name (Node2)
4349       --  Parent_Spec (Node4-Sem)
4350       --  Corresponding_Spec (Node5-Sem)
4351       --  From_Default (Flag6-Sem)
4352
4353       -----------------------------------------
4354       -- 8.5.5  Generic Renaming Declaration --
4355       -----------------------------------------
4356
4357       --  GENERIC_RENAMING_DECLARATION ::=
4358       --    generic package DEFINING_PROGRAM_UNIT_NAME
4359       --      renames generic_package_NAME
4360       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
4361       --      renames generic_procedure_NAME
4362       --  | generic function DEFINING_PROGRAM_UNIT_NAME
4363       --      renames generic_function_NAME
4364
4365       --  N_Generic_Package_Renaming_Declaration
4366       --  Sloc points to GENERIC
4367       --  Defining_Unit_Name (Node1)
4368       --  Name (Node2)
4369       --  Parent_Spec (Node4-Sem)
4370
4371       --  N_Generic_Procedure_Renaming_Declaration
4372       --  Sloc points to GENERIC
4373       --  Defining_Unit_Name (Node1)
4374       --  Name (Node2)
4375       --  Parent_Spec (Node4-Sem)
4376
4377       --  N_Generic_Function_Renaming_Declaration
4378       --  Sloc points to GENERIC
4379       --  Defining_Unit_Name (Node1)
4380       --  Name (Node2)
4381       --  Parent_Spec (Node4-Sem)
4382
4383       --------------------------------
4384       -- 9.1  Task Type Declaration --
4385       --------------------------------
4386
4387       --  TASK_TYPE_DECLARATION ::=
4388       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4389       --      [is TASK_DEFINITITION];
4390
4391       --  N_Task_Type_Declaration
4392       --  Sloc points to TASK
4393       --  Defining_Identifier (Node1)
4394       --  Task_Body_Procedure (Node2-Sem)
4395       --  Discriminant_Specifications (List4) (set to No_List if no
4396       --   discriminant part)
4397       --  Task_Definition (Node3) (set to Empty if not present)
4398       --  Corresponding_Body (Node5-Sem)
4399
4400       ----------------------------------
4401       -- 9.1  Single Task Declaration --
4402       ----------------------------------
4403
4404       --  SINGLE_TASK_DECLARATION ::=
4405       --    task DEFINING_IDENTIFIER [is TASK_DEFINITION];
4406
4407       --  N_Single_Task_Declaration
4408       --  Sloc points to TASK
4409       --  Defining_Identifier (Node1)
4410       --  Task_Definition (Node3) (set to Empty if not present)
4411
4412       --------------------------
4413       -- 9.1  Task Definition --
4414       --------------------------
4415
4416       --  TASK_DEFINITION ::=
4417       --      {TASK_ITEM}
4418       --    [private
4419       --      {TASK_ITEM}]
4420       --    end [task_IDENTIFIER]
4421
4422       --  Note: as a result of semantic analysis, the list of task items can
4423       --  include implicit type declarations resulting from entry families.
4424
4425       --  N_Task_Definition
4426       --  Sloc points to first token of task definition
4427       --  Visible_Declarations (List2)
4428       --  Private_Declarations (List3) (set to No_List if no private part)
4429       --  End_Label (Node4)
4430       --  Has_Priority_Pragma (Flag6-Sem)
4431       --  Has_Storage_Size_Pragma (Flag5-Sem)
4432       --  Has_Task_Info_Pragma (Flag7-Sem)
4433       --  Has_Task_Name_Pragma (Flag8-Sem)
4434
4435       --------------------
4436       -- 9.1  Task Item --
4437       --------------------
4438
4439       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4440
4441       --------------------
4442       -- 9.1  Task Body --
4443       --------------------
4444
4445       --  TASK_BODY ::=
4446       --    task body task_DEFINING_IDENTIFIER is
4447       --      DECLARATIVE_PART
4448       --    begin
4449       --      HANDLED_SEQUENCE_OF_STATEMENTS
4450       --    end [task_IDENTIFIER];
4451
4452       --  Gigi restriction: This node never appears.
4453
4454       --  N_Task_Body
4455       --  Sloc points to TASK
4456       --  Defining_Identifier (Node1)
4457       --  Declarations (List2)
4458       --  Handled_Statement_Sequence (Node4)
4459       --  Is_Task_Master (Flag5-Sem)
4460       --  Activation_Chain_Entity (Node3-Sem)
4461       --  Corresponding_Spec (Node5-Sem)
4462       --  Was_Originally_Stub (Flag13-Sem)
4463
4464       -------------------------------------
4465       -- 9.4  Protected Type Declaration --
4466       -------------------------------------
4467
4468       --  PROTECTED_TYPE_DECLARATION ::=
4469       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4470       --      is PROTECTED_DEFINITION;
4471
4472       --  Note: protected type declarations are not permitted in Ada 83 mode
4473
4474       --  N_Protected_Type_Declaration
4475       --  Sloc points to PROTECTED
4476       --  Defining_Identifier (Node1)
4477       --  Discriminant_Specifications (List4) (set to No_List if no
4478       --   discriminant part)
4479       --  Protected_Definition (Node3)
4480       --  Corresponding_Body (Node5-Sem)
4481
4482       ---------------------------------------
4483       -- 9.4  Single Protected Declaration --
4484       ---------------------------------------
4485
4486       --  SINGLE_PROTECTED_DECLARATION ::=
4487       --    protected DEFINING_IDENTIFIER is PROTECTED_DEFINITION;
4488
4489       --  Note: single protected declarations are not allowed in Ada 83 mode
4490
4491       --  N_Single_Protected_Declaration
4492       --  Sloc points to PROTECTED
4493       --  Defining_Identifier (Node1)
4494       --  Protected_Definition (Node3)
4495
4496       -------------------------------
4497       -- 9.4  Protected Definition --
4498       -------------------------------
4499
4500       --  PROTECTED_DEFINITION ::=
4501       --      {PROTECTED_OPERATION_DECLARATION}
4502       --    [private
4503       --      {PROTECTED_ELEMENT_DECLARATION}]
4504       --    end [protected_IDENTIFIER]
4505
4506       --  N_Protected_Definition
4507       --  Sloc points to first token of protected definition
4508       --  Visible_Declarations (List2)
4509       --  Private_Declarations (List3) (set to No_List if no private part)
4510       --  End_Label (Node4)
4511       --  Has_Priority_Pragma (Flag6-Sem)
4512
4513       ------------------------------------------
4514       -- 9.4  Protected Operation Declaration --
4515       ------------------------------------------
4516
4517       --  PROTECTED_OPERATION_DECLARATION ::=
4518       --    SUBPROGRAM_DECLARATION
4519       --  | ENTRY_DECLARATION
4520       --  | REPRESENTATION_CLAUSE
4521
4522       ----------------------------------------
4523       -- 9.4  Protected Element Declaration --
4524       ----------------------------------------
4525
4526       --  PROTECTED_ELEMENT_DECLARATION ::=
4527       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4528
4529       -------------------------
4530       -- 9.4  Protected Body --
4531       -------------------------
4532
4533       --  PROTECTED_BODY ::=
4534       --    protected body DEFINING_IDENTIFIER is
4535       --      {PROTECTED_OPERATION_ITEM}
4536       --    end [protected_IDENTIFIER];
4537
4538       --  Note: protected bodies are not allowed in Ada 83 mode
4539
4540       --  Gigi restriction: This node never appears.
4541
4542       --  N_Protected_Body
4543       --  Sloc points to PROTECTED
4544       --  Defining_Identifier (Node1)
4545       --  Declarations (List2) protected operation items (and pragmas)
4546       --  End_Label (Node4)
4547       --  Corresponding_Spec (Node5-Sem)
4548       --  Was_Originally_Stub (Flag13-Sem)
4549
4550       -----------------------------------
4551       -- 9.4  Protected Operation Item --
4552       -----------------------------------
4553
4554       --  PROTECTED_OPERATION_ITEM ::=
4555       --    SUBPROGRAM_DECLARATION
4556       --  | SUBPROGRAM_BODY
4557       --  | ENTRY_BODY
4558       --  | REPRESENTATION_CLAUSE
4559
4560       ------------------------------
4561       -- 9.5.2  Entry Declaration --
4562       ------------------------------
4563
4564       --  ENTRY_DECLARATION ::=
4565       --    entry DEFINING_IDENTIFIER
4566       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4567
4568       --  N_Entry_Declaration
4569       --  Sloc points to ENTRY
4570       --  Defining_Identifier (Node1)
4571       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4572       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4573       --  Corresponding_Body (Node5-Sem)
4574
4575       -----------------------------
4576       -- 9.5.2  Accept statement --
4577       -----------------------------
4578
4579       --  ACCEPT_STATEMENT ::=
4580       --    accept entry_DIRECT_NAME
4581       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4582       --        HANDLED_SEQUENCE_OF_STATEMENTS
4583       --    end [entry_IDENTIFIER]];
4584
4585       --  Gigi restriction: This node never appears.
4586
4587       --  Note: there are no explicit declarations allowed in an accept
4588       --  statement. However, the implicit declarations for any statement
4589       --  identifiers (labels and block/loop identifiers) are declarations
4590       --  that belong logically to the accept statement, and that is why
4591       --  there is a Declarations field in this node.
4592
4593       --  N_Accept_Statement
4594       --  Sloc points to ACCEPT
4595       --  Entry_Direct_Name (Node1)
4596       --  Entry_Index (Node5) (set to Empty if not present)
4597       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4598       --  Handled_Statement_Sequence (Node4)
4599       --  Declarations (List2) (set to No_List if no declarations)
4600
4601       ------------------------
4602       -- 9.5.2  Entry Index --
4603       ------------------------
4604
4605       --  ENTRY_INDEX ::= EXPRESSION
4606
4607       -----------------------
4608       -- 9.5.2  Entry Body --
4609       -----------------------
4610
4611       --  ENTRY_BODY ::=
4612       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4613       --      DECLARATIVE_PART
4614       --    begin
4615       --      HANDLED_SEQUENCE_OF_STATEMENTS
4616       --    end [entry_IDENTIFIER];
4617
4618       --  ENTRY_BARRIER ::= when CONDITION
4619
4620       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4621       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4622       --  too full (it would otherwise have too many fields)
4623
4624       --  Gigi restriction: This node never appears.
4625
4626       --  N_Entry_Body
4627       --  Sloc points to ENTRY
4628       --  Defining_Identifier (Node1)
4629       --  Entry_Body_Formal_Part (Node5)
4630       --  Declarations (List2)
4631       --  Handled_Statement_Sequence (Node4)
4632       --  Activation_Chain_Entity (Node3-Sem)
4633
4634       -----------------------------------
4635       -- 9.5.2  Entry Body Formal Part --
4636       -----------------------------------
4637
4638       --  ENTRY_BODY_FORMAL_PART ::=
4639       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4640
4641       --  Note that an entry body formal part node is present even if it is
4642       --  empty. This reflects the grammar, in which it is the components of
4643       --  the entry body formal part that are optional, not the entry body
4644       --  formal part itself. Also this means that the barrier condition
4645       --  always has somewhere to be stored.
4646
4647       --  Gigi restriction: This node never appears.
4648
4649       --  N_Entry_Body_Formal_Part
4650       --  Sloc points to first token
4651       --  Entry_Index_Specification (Node4) (set to Empty if not present)
4652       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4653       --  Condition (Node1) from entry barrier of entry body
4654
4655       --------------------------
4656       -- 9.5.2  Entry Barrier --
4657       --------------------------
4658
4659       --  ENTRY_BARRIER ::= when CONDITION
4660
4661       --------------------------------------
4662       -- 9.5.2  Entry Index Specification --
4663       --------------------------------------
4664
4665       --  ENTRY_INDEX_SPECIFICATION ::=
4666       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4667
4668       --  Gigi restriction: This node never appears.
4669
4670       --  N_Entry_Index_Specification
4671       --  Sloc points to FOR
4672       --  Defining_Identifier (Node1)
4673       --  Discrete_Subtype_Definition (Node4)
4674
4675       ---------------------------------
4676       -- 9.5.3  Entry Call Statement --
4677       ---------------------------------
4678
4679       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
4680
4681       --  The parser may generate a procedure call for this construct. The
4682       --  semantic pass must correct this misidentification where needed.
4683
4684       --  Gigi restriction: This node never appears.
4685
4686       --  N_Entry_Call_Statement
4687       --  Sloc points to first token of name
4688       --  Name (Node2)
4689       --  Parameter_Associations (List3) (set to No_List if no
4690       --   actual parameter part)
4691       --  First_Named_Actual (Node4-Sem)
4692
4693       ------------------------------
4694       -- 9.5.4  Requeue Statement --
4695       ------------------------------
4696
4697       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
4698
4699       --  Note: requeue statements are not permitted in Ada 83 mode
4700
4701       --  Gigi restriction: This node never appears.
4702
4703       --  N_Requeue_Statement
4704       --  Sloc points to REQUEUE
4705       --  Name (Node2)
4706       --  Abort_Present (Flag15)
4707
4708       --------------------------
4709       -- 9.6  Delay Statement --
4710       --------------------------
4711
4712       --  DELAY_STATEMENT ::=
4713       --    DELAY_UNTIL_STATEMENT
4714       --  | DELAY_RELATIVE_STATEMENT
4715
4716       --------------------------------
4717       -- 9.6  Delay Until Statement --
4718       --------------------------------
4719
4720       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
4721
4722       --  Note: delay until statements are not permitted in Ada 83 mode
4723
4724       --  Gigi restriction: This node never appears.
4725
4726       --  N_Delay_Until_Statement
4727       --  Sloc points to DELAY
4728       --  Expression (Node3)
4729
4730       -----------------------------------
4731       -- 9.6  Delay Relative Statement --
4732       -----------------------------------
4733
4734       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
4735
4736       --  Gigi restriction: This node never appears.
4737
4738       --  N_Delay_Relative_Statement
4739       --  Sloc points to DELAY
4740       --  Expression (Node3)
4741
4742       ---------------------------
4743       -- 9.7  Select Statement --
4744       ---------------------------
4745
4746       --  SELECT_STATEMENT ::=
4747       --    SELECTIVE_ACCEPT
4748       --  | TIMED_ENTRY_CALL
4749       --  | CONDITIONAL_ENTRY_CALL
4750       --  | ASYNCHRONOUS_SELECT
4751
4752       -----------------------------
4753       -- 9.7.1  Selective Accept --
4754       -----------------------------
4755
4756       --  SELECTIVE_ACCEPT ::=
4757       --    select
4758       --      [GUARD]
4759       --        SELECT_ALTERNATIVE
4760       --    {or
4761       --      [GUARD]
4762       --        SELECT_ALTERNATIVE}
4763       --    [else
4764       --      SEQUENCE_OF_STATEMENTS]
4765       --    end select;
4766
4767       --  Gigi restriction: This node never appears.
4768
4769       --  Note: the guard expression, if present, appears in the node for
4770       --  the select alternative.
4771
4772       --  N_Selective_Accept
4773       --  Sloc points to SELECT
4774       --  Select_Alternatives (List1)
4775       --  Else_Statements (List4) (set to No_List if no else part)
4776
4777       ------------------
4778       -- 9.7.1  Guard --
4779       ------------------
4780
4781       --  GUARD ::= when CONDITION =>
4782
4783       --  As noted above, the CONDITION that is part of a GUARD is included
4784       --  in the node for the select alernative for convenience.
4785
4786       -------------------------------
4787       -- 9.7.1  Select Alternative --
4788       -------------------------------
4789
4790       --  SELECT_ALTERNATIVE ::=
4791       --    ACCEPT_ALTERNATIVE
4792       --  | DELAY_ALTERNATIVE
4793       --  | TERMINATE_ALTERNATIVE
4794
4795       -------------------------------
4796       -- 9.7.1  Accept Alternative --
4797       -------------------------------
4798
4799       --  ACCEPT_ALTERNATIVE ::=
4800       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
4801
4802       --  Gigi restriction: This node never appears.
4803
4804       --  N_Accept_Alternative
4805       --  Sloc points to ACCEPT
4806       --  Accept_Statement (Node2)
4807       --  Condition (Node1) from the guard (set to Empty if no guard present)
4808       --  Statements (List3) (set to Empty_List if no statements)
4809       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
4810       --  Accept_Handler_Records (List5-Sem)
4811
4812       ------------------------------
4813       -- 9.7.1  Delay Alternative --
4814       ------------------------------
4815
4816       --  DELAY_ALTERNATIVE ::=
4817       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
4818
4819       --  Gigi restriction: This node never appears.
4820
4821       --  N_Delay_Alternative
4822       --  Sloc points to DELAY
4823       --  Delay_Statement (Node2)
4824       --  Condition (Node1) from the guard (set to Empty if no guard present)
4825       --  Statements (List3) (set to Empty_List if no statements)
4826       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
4827
4828       ----------------------------------
4829       -- 9.7.1  Terminate Alternative --
4830       ----------------------------------
4831
4832       --  TERMINATE_ALTERNATIVE ::= terminate;
4833
4834       --  Gigi restriction: This node never appears.
4835
4836       --  N_Terminate_Alternative
4837       --  Sloc points to TERMINATE
4838       --  Condition (Node1) from the guard (set to Empty if no guard present)
4839       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
4840       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
4841
4842       -----------------------------
4843       -- 9.7.2  Timed Entry Call --
4844       -----------------------------
4845
4846       --  TIMED_ENTRY_CALL ::=
4847       --    select
4848       --      ENTRY_CALL_ALTERNATIVE
4849       --    or
4850       --      DELAY_ALTERNATIVE
4851       --    end select;
4852
4853       --  Gigi restriction: This node never appears.
4854
4855       --  N_Timed_Entry_Call
4856       --  Sloc points to SELECT
4857       --  Entry_Call_Alternative (Node1)
4858       --  Delay_Alternative (Node4)
4859
4860       -----------------------------------
4861       -- 9.7.2  Entry Call Alternative --
4862       -----------------------------------
4863
4864       --  ENTRY_CALL_ALTERNATIVE ::=
4865       --    ENTRY_CALL_STATEMENT [SEQUENCE_OF_STATEMENTS]
4866
4867       --  Gigi restriction: This node never appears.
4868
4869       --  N_Entry_Call_Alternative
4870       --  Sloc points to first token of entry call statement
4871       --  Entry_Call_Statement (Node1)
4872       --  Statements (List3) (set to Empty_List if no statements)
4873       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
4874
4875       -----------------------------------
4876       -- 9.7.3  Conditional Entry Call --
4877       -----------------------------------
4878
4879       --  CONDITIONAL_ENTRY_CALL ::=
4880       --    select
4881       --      ENTRY_CALL_ALTERNATIVE
4882       --    else
4883       --      SEQUENCE_OF_STATEMENTS
4884       --    end select;
4885
4886       --  Gigi restriction: This node never appears.
4887
4888       --  N_Conditional_Entry_Call
4889       --  Sloc points to SELECT
4890       --  Entry_Call_Alternative (Node1)
4891       --  Else_Statements (List4)
4892
4893       --------------------------------
4894       -- 9.7.4  Asynchronous Select --
4895       --------------------------------
4896
4897       --  ASYNCHRONOUS_SELECT ::=
4898       --    select
4899       --      TRIGGERING_ALTERNATIVE
4900       --    then abort
4901       --      ABORTABLE_PART
4902       --    end select;
4903
4904       --  Note: asynchronous select is not permitted in Ada 83 mode
4905
4906       --  Gigi restriction: This node never appears.
4907
4908       --  N_Asynchronous_Select
4909       --  Sloc points to SELECT
4910       --  Triggering_Alternative (Node1)
4911       --  Abortable_Part (Node2)
4912
4913       -----------------------------------
4914       -- 9.7.4  Triggering Alternative --
4915       -----------------------------------
4916
4917       --  TRIGGERING_ALTERNATIVE ::=
4918       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
4919
4920       --  Gigi restriction: This node never appears.
4921
4922       --  N_Triggering_Alternative
4923       --  Sloc points to first token of triggering statement
4924       --  Triggering_Statement (Node1)
4925       --  Statements (List3) (set to Empty_List if no statements)
4926       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
4927
4928       ---------------------------------
4929       -- 9.7.4  Triggering Statement --
4930       ---------------------------------
4931
4932       --  TRIGGERING_STATEMENT ::= ENTRY_CALL_STATEMENT | DELAY_STATEMENT
4933
4934       ---------------------------
4935       -- 9.7.4  Abortable Part --
4936       ---------------------------
4937
4938       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
4939
4940       --  Gigi restriction: This node never appears.
4941
4942       --  N_Abortable_Part
4943       --  Sloc points to ABORT
4944       --  Statements (List3)
4945
4946       --------------------------
4947       -- 9.8  Abort Statement --
4948       --------------------------
4949
4950       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
4951
4952       --  Gigi restriction: This node never appears.
4953
4954       --  N_Abort_Statement
4955       --  Sloc points to ABORT
4956       --  Names (List2)
4957
4958       -------------------------
4959       -- 10.1.1  Compilation --
4960       -------------------------
4961
4962       --  COMPILATION ::= {COMPILATION_UNIT}
4963
4964       --  There is no explicit node in the tree for a compilation, since in
4965       --  general the compiler is processing only a single compilation unit
4966       --  at a time. It is possible to parse multiple units in syntax check
4967       --  only mode, but they the trees are discarded in any case.
4968
4969       ------------------------------
4970       -- 10.1.1  Compilation Unit --
4971       ------------------------------
4972
4973       --  COMPILATION_UNIT ::=
4974       --    CONTEXT_CLAUSE LIBRARY_ITEM
4975       --  | CONTEXT_CLAUSE SUBUNIT
4976
4977       --  The N_Compilation_Unit node itself respresents the above syntax.
4978       --  However, there are two additional items not reflected in the above
4979       --  syntax. First we have the global declarations that are added by the
4980       --  code generator. These are outer level declarations (so they cannot
4981       --  be represented as being inside the units). An example is the wrapper
4982       --  subprograms that are created to do ABE checking. As always a list of
4983       --  declarations can contain actions as well (i.e. statements), and such
4984       --  statements are executed as part of the elaboration of the unit. Note
4985       --  that all such declarations are elaborated before the library unit.
4986
4987       --  Similarly, certain actions need to be elaborated at the completion
4988       --  of elaboration of the library unit (notably the statement that sets
4989       --  the Boolean flag indicating that elaboration is complete).
4990
4991       --  The third item not reflected in the syntax is pragmas that appear
4992       --  after the compilation unit. As always pragmas are a problem since
4993       --  they are not part of the formal syntax, but can be stuck into the
4994       --  source following a set of ad hoc rules, and we have to find an ad
4995       --  hoc way of sticking them into the tree. For pragmas that appear
4996       --  before the library unit, we just consider them to be part of the
4997       --  context clause, and pragmas can appear in the Context_Items list
4998       --  of the compilation unit. However, pragmas can also appear after
4999       --  the library item.
5000
5001       --  To deal with all these problems, we create an auxiliary node for
5002       --  a compilation unit, referenced from the N_Compilation_Unit node
5003       --  that contains these three items.
5004
5005       --  N_Compilation_Unit
5006       --  Sloc points to first token of defining unit name
5007       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5008       --  Context_Items (List1) context items and pragmas preceding unit
5009       --  Private_Present (Flag15) set if library unit has private keyword
5010       --  Unit (Node2) library item or subunit
5011       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5012       --  Has_No_Elaboration_Code (Flag17-Sem)
5013       --  Body_Required (Flag13-Sem) set for spec if body is required
5014       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5015       --  First_Inlined_Subprogram (Node3-Sem)
5016
5017       --  N_Compilation_Unit_Aux
5018       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5019       --  Declarations (List2) (set to No_List if no global declarations)
5020       --  Actions (List1) (set to No_List if no actions)
5021       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5022       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5023
5024       --------------------------
5025       -- 10.1.1  Library Item --
5026       --------------------------
5027
5028       --  LIBRARY_ITEM ::=
5029       --    [private] LIBRARY_UNIT_DECLARATION
5030       --  | LIBRARY_UNIT_BODY
5031       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5032
5033       --  Note: PRIVATE is not allowed in Ada 83 mode
5034
5035       --  There is no explicit node in the tree for library item, instead
5036       --  the declaration or body, and the flag for private if present,
5037       --  appear in the N_Compilation_Unit clause.
5038
5039       ----------------------------------------
5040       -- 10.1.1  Library Unit Declararation --
5041       ----------------------------------------
5042
5043       --  LIBRARY_UNIT_DECLARATION ::=
5044       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5045       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5046
5047       -------------------------------------------------
5048       -- 10.1.1  Library Unit Renaming Declararation --
5049       -------------------------------------------------
5050
5051       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5052       --    PACKAGE_RENAMING_DECLARATION
5053       --  | GENERIC_RENAMING_DECLARATION
5054       --  | SUBPROGRAM_RENAMING_DECLARATION
5055
5056       -------------------------------
5057       -- 10.1.1  Library unit body --
5058       -------------------------------
5059
5060       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5061
5062       ------------------------------
5063       -- 10.1.1  Parent Unit Name --
5064       ------------------------------
5065
5066       --  PARENT_UNIT_NAME ::= NAME
5067
5068       ----------------------------
5069       -- 10.1.2  Context clause --
5070       ----------------------------
5071
5072       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5073
5074       --  The context clause can include pragmas, and any pragmas that appear
5075       --  before the context clause proper (i.e. all configuration pragmas,
5076       --  also appear at the front of this list).
5077
5078       --------------------------
5079       -- 10.1.2  Context_Item --
5080       --------------------------
5081
5082       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5083
5084       -------------------------
5085       -- 10.1.2  With clause --
5086       -------------------------
5087
5088       --  WITH_CLAUSE ::=
5089       --    with library_unit_NAME {,library_unit_NAME};
5090
5091       --  A separate With clause is built for each name, so that we have
5092       --  a Corresponding_Spec field for each with'ed spec. The flags
5093       --  First_Name and Last_Name are used to reconstruct the exact
5094       --  source form. When a list of names appears in one with clause,
5095       --  the first name in the list has First_Name set, and the last
5096       --  has Last_Name set. If the with clause has only one name, then
5097       --  both of the flags First_Name and Last_Name are set in this name.
5098
5099       --  Note: in the case of implicit with's that are installed by the
5100       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5101       --  set to Standard_Location, but it is incorrect to test the Sloc
5102       --  to find out if a with clause is implicit, test the flag instead.
5103
5104       --  N_With_Clause
5105       --  Sloc points to first token of library unit name
5106       --  Name (Node2)
5107       --  Library_Unit (Node4-Sem)
5108       --  Corresponding_Spec (Node5-Sem)
5109       --  First_Name (Flag5) (set to True if first name or only one name)
5110       --  Last_Name (Flag6) (set to True if last name or only one name)
5111       --  Context_Installed (Flag13-Sem)
5112       --  Elaborate_Present (Flag4-Sem)
5113       --  Elaborate_All_Present (Flag14-Sem)
5114       --  Private_Present (Flag15) set if with_clause has private keyword
5115       --  Implicit_With (Flag16-Sem)
5116       --  Limited_Present (Flag17)  set if LIMITED is present
5117       --  Limited_View_Installed (Flag18-Sem)
5118       --  Unreferenced_In_Spec (Flag7-Sem)
5119       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5120
5121       --  Note: Limited_Present and Limited_View_Installed give support to
5122       --        Ada 0Y (AI-50217).
5123       --  Similarly, Private_Present gives support to AI-50262.
5124
5125       ----------------------
5126       -- With_Type clause --
5127       ----------------------
5128
5129       --  This is a GNAT extension, used to implement mutually recursive
5130       --  types declared in different packages.
5131
5132       --  WITH_TYPE_CLAUSE ::=
5133       --    with type type_NAME is access | with type type_NAME is tagged
5134
5135       --  N_With_Type_Clause
5136       --  Sloc points to first token of type name
5137       --  Name (Node2)
5138       --  Tagged_Present (Flag15)
5139
5140       ---------------------
5141       -- 10.2  Body stub --
5142       ---------------------
5143
5144       --  BODY_STUB ::=
5145       --    SUBPROGRAM_BODY_STUB
5146       --  | PACKAGE_BODY_STUB
5147       --  | TASK_BODY_STUB
5148       --  | PROTECTED_BODY_STUB
5149
5150       ----------------------------------
5151       -- 10.1.3  Subprogram Body Stub --
5152       ----------------------------------
5153
5154       --  SUBPROGRAM_BODY_STUB ::=
5155       --    SUBPROGRAM_SPECIFICATION is separate;
5156
5157       --  N_Subprogram_Body_Stub
5158       --  Sloc points to FUNCTION or PROCEDURE
5159       --  Specification (Node1)
5160       --  Library_Unit (Node4-Sem) points to the subunit
5161       --  Corresponding_Body (Node5-Sem)
5162
5163       -------------------------------
5164       -- 10.1.3  Package Body Stub --
5165       -------------------------------
5166
5167       --  PACKAGE_BODY_STUB ::=
5168       --    package body DEFINING_IDENTIFIER is separate;
5169
5170       --  N_Package_Body_Stub
5171       --  Sloc points to PACKAGE
5172       --  Defining_Identifier (Node1)
5173       --  Library_Unit (Node4-Sem) points to the subunit
5174       --  Corresponding_Body (Node5-Sem)
5175
5176       ----------------------------
5177       -- 10.1.3  Task Body Stub --
5178       ----------------------------
5179
5180       --  TASK_BODY_STUB ::=
5181       --    task body DEFINING_IDENTIFIER is separate;
5182
5183       --  N_Task_Body_Stub
5184       --  Sloc points to TASK
5185       --  Defining_Identifier (Node1)
5186       --  Library_Unit (Node4-Sem) points to the subunit
5187       --  Corresponding_Body (Node5-Sem)
5188
5189       ---------------------------------
5190       -- 10.1.3  Protected Body Stub --
5191       ---------------------------------
5192
5193       --  PROTECTED_BODY_STUB ::=
5194       --    protected body DEFINING_IDENTIFIER is separate;
5195
5196       --  Note: protected body stubs are not allowed in Ada 83 mode
5197
5198       --  N_Protected_Body_Stub
5199       --  Sloc points to PROTECTED
5200       --  Defining_Identifier (Node1)
5201       --  Library_Unit (Node4-Sem) points to the subunit
5202       --  Corresponding_Body (Node5-Sem)
5203
5204       ---------------------
5205       -- 10.1.3  Subunit --
5206       ---------------------
5207
5208       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5209
5210       --  N_Subunit
5211       --  Sloc points to SEPARATE
5212       --  Name (Node2) is the name of the parent unit
5213       --  Proper_Body (Node1) is the subunit body
5214       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5215
5216       ---------------------------------
5217       -- 11.1  Exception Declaration --
5218       ---------------------------------
5219
5220       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5221
5222       --  For consistency with object declarations etc, the parser converts
5223       --  the case of multiple identifiers being declared to a series of
5224       --  declarations in which the expression is copied, using the More_Ids
5225       --  and Prev_Ids flags to remember the souce form as described in the
5226       --  section on "Handling of Defining Identifier Lists".
5227
5228       --  N_Exception_Declaration
5229       --  Sloc points to EXCEPTION
5230       --  Defining_Identifier (Node1)
5231       --  Expression (Node3-Sem)
5232       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5233       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5234
5235       ------------------------------------------
5236       -- 11.2  Handled Sequence Of Statements --
5237       ------------------------------------------
5238
5239       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5240       --      SEQUENCE_OF_STATEMENTS
5241       --    [exception
5242       --      EXCEPTION_HANDLER
5243       --      {EXCEPTION_HANDLER}]
5244       --    [at end
5245       --      cleanup_procedure_call (param, param, param, ...);]
5246
5247       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5248       --  used only internally currently, but is considered to be syntactic.
5249       --  At the moment, the only cleanup action allowed is a single call to
5250       --  a parameterless procedure, and the Identifier field of the node is
5251       --  the procedure to be called. Also there is a current restriction
5252       --  that exception handles and a cleanup cannot be present in the same
5253       --  frame, so at least one of Exception_Handlers or the Identifier must
5254       --  be missing.
5255
5256       --  Actually, more accurately, this restriction applies to the original
5257       --  source program. In the expanded tree, if the At_End_Proc field is
5258       --  present, then there will also be an exception handler of the form:
5259
5260       --     when all others =>
5261       --        cleanup;
5262       --        raise;
5263
5264       --  where cleanup is the procedure to be generated. The reason we do
5265       --  this is so that the front end can handle the necessary entries in
5266       --  the exception tables, and other exception handler actions required
5267       --  as part of the normal handling for exception handlers.
5268
5269       --  The AT END cleanup handler protects only the sequence of statements
5270       --  (not the associated declarations of the parent), just like exception
5271       --  handlers. The big difference is that the cleanup procedure is called
5272       --  on either a normal or an abnormal exit from the statement sequence.
5273
5274       --  Note: the list of Exception_Handlers can contain pragmas as well
5275       --  as actual handlers. In practice these pragmas can only occur at
5276       --  the start of the list, since any pragmas occurring later on will
5277       --  be included in the statement list of the corresponding handler.
5278
5279       --  Note: although in the Ada syntax, the sequence of statements in
5280       --  a handled sequence of statements can only contain statements, we
5281       --  allow free mixing of declarations and statements in the resulting
5282       --  expanded tree. This is for example used to deal with the case of
5283       --  a cleanup procedure that must handle declarations as well as the
5284       --  statements of a block.
5285
5286       --  N_Handled_Sequence_Of_Statements
5287       --  Sloc points to first token of first statement
5288       --  Statements (List3)
5289       --  End_Label (Node4) (set to Empty if expander generated)
5290       --  Exception_Handlers (List5) (set to No_List if none present)
5291       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5292       --  First_Real_Statement (Node2-Sem)
5293       --  Zero_Cost_Handling (Flag5-Sem)
5294
5295       --  Note: the parent always contains a Declarations field which contains
5296       --  declarations associated with the handled sequence of statements. This
5297       --  is true even in the case of an accept statement (see description of
5298       --  the N_Accept_Statement node).
5299
5300       --  End_Label refers to the containing construct.
5301
5302       -----------------------------
5303       -- 11.2  Exception Handler --
5304       -----------------------------
5305
5306       --  EXCEPTION_HANDLER ::=
5307       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5308       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5309       --        SEQUENCE_OF_STATEMENTS
5310
5311       --  Note: choice parameter specification is not allowed in Ada 83 mode
5312
5313       --  N_Exception_Handler
5314       --  Sloc points to WHEN
5315       --  Choice_Parameter (Node2) (set to Empty if not present)
5316       --  Exception_Choices (List4)
5317       --  Statements (List3)
5318       --  Zero_Cost_Handling (Flag5-Sem)
5319
5320       ------------------------------------------
5321       -- 11.2  Choice parameter specification --
5322       ------------------------------------------
5323
5324       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5325
5326       ----------------------------
5327       -- 11.2  Exception Choice --
5328       ----------------------------
5329
5330       --  EXCEPTION_CHOICE ::= exception_NAME | others
5331
5332       --  Except in the case of OTHERS, no explicit node appears in the tree
5333       --  for exception choice. Instead the exception name appears directly.
5334       --  An OTHERS choice is represented by a N_Others_Choice node (see
5335       --  section 3.8.1.
5336
5337       --  Note: for the exception choice created for an at end handler, the
5338       --  exception choice is an N_Others_Choice node with All_Others set.
5339
5340       ---------------------------
5341       -- 11.3  Raise Statement --
5342       ---------------------------
5343
5344       --  RAISE_STATEMENT ::= raise [exception_NAME];
5345
5346       --  N_Raise_Statement
5347       --  Sloc points to RAISE
5348       --  Name (Node2) (set to Empty if no exception name present)
5349
5350       -------------------------------
5351       -- 12.1  Generic Declaration --
5352       -------------------------------
5353
5354       --  GENERIC_DECLARATION ::=
5355       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5356
5357       ------------------------------------------
5358       -- 12.1  Generic Subprogram Declaration --
5359       ------------------------------------------
5360
5361       --  GENERIC_SUBPROGRAM_DECLARATION ::=
5362       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5363
5364       --  Note: Generic_Formal_Declarations can include pragmas
5365
5366       --  N_Generic_Subprogram_Declaration
5367       --  Sloc points to GENERIC
5368       --  Specification (Node1) subprogram specification
5369       --  Corresponding_Body (Node5-Sem)
5370       --  Generic_Formal_Declarations (List2) from generic formal part
5371       --  Parent_Spec (Node4-Sem)
5372
5373       ---------------------------------------
5374       -- 12.1  Generic Package Declaration --
5375       ---------------------------------------
5376
5377       --  GENERIC_PACKAGE_DECLARATION ::=
5378       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5379
5380       --  Note: when we do generics right, the Activation_Chain_Entity entry
5381       --  for this node can be removed (since the expander won't see generic
5382       --  units any more)???.
5383
5384       --  Note: Generic_Formal_Declarations can include pragmas
5385
5386       --  N_Generic_Package_Declaration
5387       --  Sloc points to GENERIC
5388       --  Specification (Node1) package specification
5389       --  Corresponding_Body (Node5-Sem)
5390       --  Generic_Formal_Declarations (List2) from generic formal part
5391       --  Parent_Spec (Node4-Sem)
5392       --  Activation_Chain_Entity (Node3-Sem)
5393
5394       -------------------------------
5395       -- 12.1  Generic Formal Part --
5396       -------------------------------
5397
5398       --  GENERIC_FORMAL_PART ::=
5399       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5400
5401       ------------------------------------------------
5402       -- 12.1  Generic Formal Parameter Declaration --
5403       ------------------------------------------------
5404
5405       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5406       --    FORMAL_OBJECT_DECLARATION
5407       --  | FORMAL_TYPE_DECLARATION
5408       --  | FORMAL_SUBPROGRAM_DECLARATION
5409       --  | FORMAL_PACKAGE_DECLARATION
5410
5411       ---------------------------------
5412       -- 12.3  Generic Instantiation --
5413       ---------------------------------
5414
5415       --  GENERIC_INSTANTIATION ::=
5416       --    package DEFINING_PROGRAM_UNIT_NAME is
5417       --      new generic_package_NAME [GENERIC_ACTUAL_PART];
5418       --  | procedure DEFINING_PROGRAM_UNIT_NAME is
5419       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5420       --  | function DEFINING_DESIGNATOR is
5421       --      new generic_function_NAME [GENERIC_ACTUAL_PART];
5422
5423       --  N_Package_Instantiation
5424       --  Sloc points to PACKAGE
5425       --  Defining_Unit_Name (Node1)
5426       --  Name (Node2)
5427       --  Generic_Associations (List3) (set to No_List if no
5428       --   generic actual part)
5429       --  Parent_Spec (Node4-Sem)
5430       --  Instance_Spec (Node5-Sem)
5431       --  ABE_Is_Certain (Flag18-Sem)
5432
5433       --  N_Procedure_Instantiation
5434       --  Sloc points to PROCEDURE
5435       --  Defining_Unit_Name (Node1)
5436       --  Name (Node2)
5437       --  Parent_Spec (Node4-Sem)
5438       --  Generic_Associations (List3) (set to No_List if no
5439       --   generic actual part)
5440       --  Instance_Spec (Node5-Sem)
5441       --  ABE_Is_Certain (Flag18-Sem)
5442
5443       --  N_Function_Instantiation
5444       --  Sloc points to FUNCTION
5445       --  Defining_Unit_Name (Node1)
5446       --  Name (Node2)
5447       --  Generic_Associations (List3) (set to No_List if no
5448       --   generic actual part)
5449       --  Parent_Spec (Node4-Sem)
5450       --  Instance_Spec (Node5-Sem)
5451       --  ABE_Is_Certain (Flag18-Sem)
5452
5453       ------------------------------
5454       -- 12.3 Generic Actual Part --
5455       ------------------------------
5456
5457       --  GENERIC_ACTUAL_PART ::=
5458       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5459
5460       -------------------------------
5461       -- 12.3  Generic Association --
5462       -------------------------------
5463
5464       --  GENERIC_ASSOCIATION ::=
5465       --    [generic_formal_parameter_SELECTOR_NAME =>]
5466       --      EXPLICIT_GENERIC_ACTUAL_PARAMETER
5467
5468       --  Note: unlike the procedure call case, a generic association node
5469       --  is generated for every association, even if no formal is present.
5470       --  In this case the parser will leave the Selector_Name field set
5471       --  to Empty, to be filled in later by the semantic pass.
5472
5473       --  N_Generic_Association
5474       --  Sloc points to first token of generic association
5475       --  Selector_Name (Node2) (set to Empty if no formal
5476       --   parameter selector name)
5477       --  Explicit_Generic_Actual_Parameter (Node1)
5478
5479       ---------------------------------------------
5480       -- 12.3  Explicit Generic Actual Parameter --
5481       ---------------------------------------------
5482
5483       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5484       --    EXPRESSION      | variable_NAME   | subprogram_NAME
5485       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
5486
5487       -------------------------------------
5488       -- 12.4  Formal Object Declaration --
5489       -------------------------------------
5490
5491       --  FORMAL_OBJECT_DECLARATION ::=
5492       --    DEFINING_IDENTIFIER_LIST :
5493       --      MODE SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5494
5495       --  Although the syntax allows multiple identifiers in the list, the
5496       --  semantics is as though successive declarations were given with
5497       --  identical type definition and expression components. To simplify
5498       --  semantic processing, the parser represents a multiple declaration
5499       --  case as a sequence of single declarations, using the More_Ids and
5500       --  Prev_Ids flags to preserve the original source form as described
5501       --  in the section on "Handling of Defining Identifier Lists".
5502
5503       --  N_Formal_Object_Declaration
5504       --  Sloc points to first identifier
5505       --  Defining_Identifier (Node1)
5506       --  In_Present (Flag15)
5507       --  Out_Present (Flag17)
5508       --  Subtype_Mark (Node4)
5509       --  Expression (Node3) (set to Empty if no default expression)
5510       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5511       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5512
5513       -----------------------------------
5514       -- 12.5  Formal Type Declaration --
5515       -----------------------------------
5516
5517       --  FORMAL_TYPE_DECLARATION ::=
5518       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5519       --      is FORMAL_TYPE_DEFINITION;
5520
5521       --  N_Formal_Type_Declaration
5522       --  Sloc points to TYPE
5523       --  Defining_Identifier (Node1)
5524       --  Formal_Type_Definition (Node3)
5525       --  Discriminant_Specifications (List4) (set to No_List if no
5526       --   discriminant part)
5527       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5528
5529       ----------------------------------
5530       -- 12.5  Formal type definition --
5531       ----------------------------------
5532
5533       --  FORMAL_TYPE_DEFINITION ::=
5534       --    FORMAL_PRIVATE_TYPE_DEFINITION
5535       --  | FORMAL_DERIVED_TYPE_DEFINITION
5536       --  | FORMAL_DISCRETE_TYPE_DEFINITION
5537       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5538       --  | FORMAL_MODULAR_TYPE_DEFINITION
5539       --  | FORMAL_FLOATING_POINT_DEFINITION
5540       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5541       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5542       --  | FORMAL_ARRAY_TYPE_DEFINITION
5543       --  | FORMAL_ACCESS_TYPE_DEFINITION
5544
5545       ---------------------------------------------
5546       -- 12.5.1  Formal Private Type Definition --
5547       ---------------------------------------------
5548
5549       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
5550       --    [[abstract] tagged] [limited] private
5551
5552       --  Note: TAGGED is not allowed in Ada 83 mode
5553
5554       --  N_Formal_Private_Type_Definition
5555       --  Sloc points to PRIVATE
5556       --  Abstract_Present (Flag4)
5557       --  Tagged_Present (Flag15)
5558       --  Limited_Present (Flag17)
5559
5560       --------------------------------------------
5561       -- 12.5.1  Formal Derived Type Definition --
5562       --------------------------------------------
5563
5564       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
5565       --    [abstract] new SUBTYPE_MARK [with private]
5566
5567       --  Note: this construct is not allowed in Ada 83 mode
5568
5569       --  N_Formal_Derived_Type_Definition
5570       --  Sloc points to NEW
5571       --  Subtype_Mark (Node4)
5572       --  Private_Present (Flag15)
5573       --  Abstract_Present (Flag4)
5574
5575       ---------------------------------------------
5576       -- 12.5.2  Formal Discrete Type Definition --
5577       ---------------------------------------------
5578
5579       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5580
5581       --  N_Formal_Discrete_Type_Definition
5582       --  Sloc points to (
5583
5584       ---------------------------------------------------
5585       -- 12.5.2  Formal Signed Integer Type Definition --
5586       ---------------------------------------------------
5587
5588       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5589
5590       --  N_Formal_Signed_Integer_Type_Definition
5591       --  Sloc points to RANGE
5592
5593       --------------------------------------------
5594       -- 12.5.2  Formal Modular Type Definition --
5595       --------------------------------------------
5596
5597       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5598
5599       --  N_Formal_Modular_Type_Definition
5600       --  Sloc points to MOD
5601
5602       ----------------------------------------------
5603       -- 12.5.2  Formal Floating Point Definition --
5604       ----------------------------------------------
5605
5606       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5607
5608       --  N_Formal_Floating_Point_Definition
5609       --  Sloc points to DIGITS
5610
5611       ----------------------------------------------------
5612       -- 12.5.2  Formal Ordinary Fixed Point Definition --
5613       ----------------------------------------------------
5614
5615       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5616
5617       --  N_Formal_Ordinary_Fixed_Point_Definition
5618       --  Sloc points to DELTA
5619
5620       ---------------------------------------------------
5621       -- 12.5.2  Formal Decimal Fixed Point Definition --
5622       ---------------------------------------------------
5623
5624       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5625
5626       --  Note: formal decimal fixed point definition not allowed in Ada 83
5627
5628       --  N_Formal_Decimal_Fixed_Point_Definition
5629       --  Sloc points to DELTA
5630
5631       ------------------------------------------
5632       -- 12.5.3  Formal Array Type Definition --
5633       ------------------------------------------
5634
5635       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5636
5637       -------------------------------------------
5638       -- 12.5.4  Formal Access Type Definition --
5639       -------------------------------------------
5640
5641       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
5642
5643       -----------------------------------------
5644       -- 12.6  Formal Subprogram Declaration --
5645       -----------------------------------------
5646
5647       --  FORMAL_SUBPROGRAM_DECLARATION ::=
5648       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
5649
5650       --  N_Formal_Subprogram_Declaration
5651       --  Sloc points to WITH
5652       --  Specification (Node1)
5653       --  Default_Name (Node2) (set to Empty if no subprogram default)
5654       --  Box_Present (Flag15)
5655
5656       --  Note: if no subprogram default is present, then Name is set
5657       --  to Empty, and Box_Present is False.
5658
5659       ------------------------------
5660       -- 12.6  Subprogram Default --
5661       ------------------------------
5662
5663       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
5664
5665       --  There is no separate node in the tree for a subprogram default.
5666       --  Instead the parent (N_Formal_Subprogram_Declaration) node contains
5667       --  the default name or box indication, as needed.
5668
5669       ------------------------
5670       -- 12.6  Default Name --
5671       ------------------------
5672
5673       --  DEFAULT_NAME ::= NAME
5674
5675       --------------------------------------
5676       -- 12.7  Formal Package Declaration --
5677       --------------------------------------
5678
5679       --  FORMAL_PACKAGE_DECLARATION ::=
5680       --    with package DEFINING_IDENTIFIER
5681       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
5682
5683       --  Note: formal package declarations not allowed in Ada 83 mode
5684
5685       --  N_Formal_Package_Declaration
5686       --  Sloc points to WITH
5687       --  Defining_Identifier (Node1)
5688       --  Name (Node2)
5689       --  Generic_Associations (List3) (set to No_List if (<>) case or
5690       --   empty generic actual part)
5691       --  Box_Present (Flag15)
5692       --  Instance_Spec (Node5-Sem)
5693       --  ABE_Is_Certain (Flag18-Sem)
5694
5695       --------------------------------------
5696       -- 12.7  Formal Package Actual Part --
5697       --------------------------------------
5698
5699       --  FORMAL_PACKAGE_ACTUAL_PART ::=
5700       --    (<>) | [GENERIC_ACTUAL_PART]
5701
5702       --  There is no explicit node in the tree for a formal package
5703       --  actual part. Instead the information appears in the parent node
5704       --  (i.e. the formal package declaration node itself).
5705
5706       ---------------------------------
5707       -- 13.1  Representation clause --
5708       ---------------------------------
5709
5710       --  REPRESENTATION_CLAUSE ::=
5711       --    ATTRIBUTE_DEFINITION_CLAUSE
5712       --  | ENUMERATION_REPRESENTATION_CLAUSE
5713       --  | RECORD_REPRESENTATION_CLAUSE
5714       --  | AT_CLAUSE
5715
5716       ----------------------
5717       -- 13.1  Local Name --
5718       ----------------------
5719
5720       --  LOCAL_NAME :=
5721       --    DIRECT_NAME
5722       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
5723       --  | library_unit_NAME
5724
5725       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
5726       --  as an attribute reference, which has essentially the same form.
5727
5728       ---------------------------------------
5729       -- 13.3  Attribute definition clause --
5730       ---------------------------------------
5731
5732       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
5733       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
5734       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
5735
5736       --  In Ada 83, the expression must be a simple expression and the
5737       --  local name must be a direct name.
5738
5739       --  Note: the only attribute definition clause that is processed by
5740       --  gigi is an address clause. For all other cases, the information
5741       --  is extracted by the front end and either results in setting entity
5742       --  information, e.g. Esize for the Size clause, or in appropriate
5743       --  expansion actions (e.g. in the case of Storage_Size).
5744
5745       --  For an address clause, Gigi constructs the appropriate addressing
5746       --  code. It also ensures that no aliasing optimizations are made
5747       --  for the object for which the address clause appears.
5748
5749       --  Note: for an address clause used to achieve an overlay:
5750
5751       --    A : Integer;
5752       --    B : Integer;
5753       --    for B'Address use A'Address;
5754
5755       --  the above rule means that Gigi will ensure that no optimizations
5756       --  will be made for B that would violate the implementation advice
5757       --  of RM 13.3(19). However, this advice applies only to B and not
5758       --  to A, which seems unfortunate. The GNAT front end will mark the
5759       --  object A as volatile to also prevent unwanted optimization
5760       --  assumptions based on no aliasing being made for B.
5761
5762       --  N_Attribute_Definition_Clause
5763       --  Sloc points to FOR
5764       --  Name (Node2) the local name
5765       --  Chars (Name1) the identifier name from the attribute designator
5766       --  Expression (Node3) the expression or name
5767       --  Next_Rep_Item (Node4-Sem)
5768       --  From_At_Mod (Flag4-Sem)
5769       --  Check_Address_Alignment (Flag11-Sem)
5770
5771       ---------------------------------------------
5772       -- 13.4  Enumeration representation clause --
5773       ---------------------------------------------
5774
5775       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
5776       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
5777
5778       --  In Ada 83, the name must be a direct name
5779
5780       --  N_Enumeration_Representation_Clause
5781       --  Sloc points to FOR
5782       --  Identifier (Node1) direct name
5783       --  Array_Aggregate (Node3)
5784       --  Next_Rep_Item (Node4-Sem)
5785
5786       ---------------------------------
5787       -- 13.4  Enumeration aggregate --
5788       ---------------------------------
5789
5790       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
5791
5792       ------------------------------------------
5793       -- 13.5.1  Record representation clause --
5794       ------------------------------------------
5795
5796       --  RECORD_REPRESENTATION_CLAUSE ::=
5797       --    for first_subtype_LOCAL_NAME use
5798       --      record [MOD_CLAUSE]
5799       --        {COMPONENT_CLAUSE}
5800       --      end record;
5801
5802       --  Gigi restriction: Mod_Clause is always Empty (if present it is
5803       --  replaced by a corresponding Alignment attribute definition clause).
5804
5805       --  Note: Component_Clauses can include pragmas
5806
5807       --  N_Record_Representation_Clause
5808       --  Sloc points to FOR
5809       --  Identifier (Node1) direct name
5810       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
5811       --  Component_Clauses (List3)
5812       --  Next_Rep_Item (Node4-Sem)
5813
5814       ------------------------------
5815       -- 13.5.1  Component clause --
5816       ------------------------------
5817
5818       --  COMPONENT_CLAUSE ::=
5819       --    component_LOCAL_NAME at POSITION
5820       --      range FIRST_BIT .. LAST_BIT;
5821
5822       --  N_Component_Clause
5823       --  Sloc points to AT
5824       --  Component_Name (Node1) points to Name or Attribute_Reference
5825       --  Position (Node2)
5826       --  First_Bit (Node3)
5827       --  Last_Bit (Node4)
5828
5829       ----------------------
5830       -- 13.5.1  Position --
5831       ----------------------
5832
5833       --  POSITION ::= static_EXPRESSION
5834
5835       -----------------------
5836       -- 13.5.1  First_Bit --
5837       -----------------------
5838
5839       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
5840
5841       ----------------------
5842       -- 13.5.1  Last_Bit --
5843       ----------------------
5844
5845       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
5846
5847       --------------------------
5848       -- 13.8  Code statement --
5849       --------------------------
5850
5851       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
5852
5853       --  Note: in GNAT, the qualified expression has the form
5854
5855       --    Asm_Insn'(Asm (...));
5856
5857       --      or
5858
5859       --    Asm_Insn'(Asm_Volatile (...))
5860
5861       --  See package System.Machine_Code in file s-maccod.ads for details
5862       --  on the allowed parameters to Asm[_Volatile]. There are two ways
5863       --  this node can arise, as a code statement, in which case the
5864       --  expression is the qualified expression, or as a result of the
5865       --  expansion of an intrinsic call to the Asm or Asm_Input procedure.
5866
5867       --  N_Code_Statement
5868       --  Sloc points to first token of the expression
5869       --  Expression (Node3)
5870
5871       --  Note: package Exp_Code contains an abstract functional interface
5872       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
5873
5874       ------------------------
5875       -- 13.12  Restriction --
5876       ------------------------
5877
5878       --  RESTRICTION ::=
5879       --    restriction_IDENTIFIER
5880       --  | restriction_parameter_IDENTIFIER => EXPRESSION
5881
5882       --  There is no explicit node for restrictions. Instead the restriction
5883       --  appears in normal pragma syntax as a pragma argument association,
5884       --  which has the same syntactic form.
5885
5886       --------------------------
5887       -- B.2  Shift Operators --
5888       --------------------------
5889
5890       --  Calls to the intrinsic shift functions are converted to one of
5891       --  the following shift nodes, which have the form of normal binary
5892       --  operator names. Note that for a given shift operation, one node
5893       --  covers all possible types, as for normal operators.
5894
5895       --  Note: it is perfectly permissible for the expander to generate
5896       --  shift operation nodes directly, in which case they will be analyzed
5897       --  and parsed in the usual manner.
5898
5899       --  Sprint syntax: shift-function-name!(expr, count)
5900
5901       --  Note: the Left_Opnd field holds the first argument (the value to
5902       --  be shifted). The Right_Opnd field holds the second argument (the
5903       --  shift count). The Chars field is the name of the intrinsic function.
5904
5905       --  N_Op_Rotate_Left
5906       --  Sloc points to the function name
5907       --  plus fields for binary operator
5908       --  plus fields for expression
5909       --  Shift_Count_OK (Flag4-Sem)
5910
5911       --  N_Op_Rotate_Right
5912       --  Sloc points to the function name
5913       --  plus fields for binary operator
5914       --  plus fields for expression
5915       --  Shift_Count_OK (Flag4-Sem)
5916
5917       --  N_Op_Shift_Left
5918       --  Sloc points to the function name
5919       --  plus fields for binary operator
5920       --  plus fields for expression
5921       --  Shift_Count_OK (Flag4-Sem)
5922
5923       --  N_Op_Shift_Right_Arithmetic
5924       --  Sloc points to the function name
5925       --  plus fields for binary operator
5926       --  plus fields for expression
5927       --  Shift_Count_OK (Flag4-Sem)
5928
5929       --  N_Op_Shift_Right
5930       --  Sloc points to the function name
5931       --  plus fields for binary operator
5932       --  plus fields for expression
5933       --  Shift_Count_OK (Flag4-Sem)
5934
5935    --------------------------
5936    -- Obsolescent Features --
5937    --------------------------
5938
5939       --  The syntax descriptions and tree nodes for obsolescent features are
5940       --  grouped together, corresponding to their location in appendix I in
5941       --  the RM. However, parsing and semantic analysis for these constructs
5942       --  is located in an appropriate chapter (see individual notes).
5943
5944       ---------------------------
5945       -- J.3  Delta Constraint --
5946       ---------------------------
5947
5948       --  Note: the parse routine for this construct is located in section
5949       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
5950       --  where delta constraint logically belongs.
5951
5952       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
5953
5954       --  N_Delta_Constraint
5955       --  Sloc points to DELTA
5956       --  Delta_Expression (Node3)
5957       --  Range_Constraint (Node4) (set to Empty if not present)
5958
5959       --------------------
5960       -- J.7  At Clause --
5961       --------------------
5962
5963       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
5964
5965       --  Note: the parse routine for this construct is located in Par-Ch13,
5966       --  and the semantic analysis is in Sem_Ch13, where at clause logically
5967       --  belongs if it were not obsolescent.
5968
5969       --  Note: in Ada 83 the expression must be a simple expression
5970
5971       --  Gigi restriction: This node never appears, it is rewritten as an
5972       --  address attribute definition clause.
5973
5974       --  N_At_Clause
5975       --  Sloc points to FOR
5976       --  Identifier (Node1)
5977       --  Expression (Node3)
5978
5979       ---------------------
5980       -- J.8  Mod clause --
5981       ---------------------
5982
5983       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
5984
5985       --  Note: the parse routine for this construct is located in Par-Ch13,
5986       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
5987       --  belongs if it were not obsolescent.
5988
5989       --  Note: in Ada 83, the expression must be a simple expression
5990
5991       --  Gigi restriction: this node never appears. It is replaced
5992       --  by a corresponding Alignment attribute definition clause.
5993
5994       --  Note: pragmas can appear before and after the MOD_CLAUSE since
5995       --  its name has "clause" in it. This is rather strange, but is quite
5996       --  definitely specified. The pragmas before are collected in the
5997       --  Pragmas_Before field of the mod clause node itself, and pragmas
5998       --  after are simply swallowed up in the list of component clauses.
5999
6000       --  N_Mod_Clause
6001       --  Sloc points to AT
6002       --  Expression (Node3)
6003       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6004
6005    --------------------
6006    -- Semantic Nodes --
6007    --------------------
6008
6009    --  These semantic nodes are used to hold additional semantic information.
6010    --  They are inserted into the tree as a result of semantic processing.
6011    --  Although there are no legitimate source syntax constructions that
6012    --  correspond directly to these nodes, we need a source syntax for the
6013    --  reconstructed tree printed by Sprint, and the node descriptions here
6014    --  show this syntax.
6015
6016       ----------------------------
6017       -- Conditional Expression --
6018       ----------------------------
6019
6020       --  This node is used to represent an expression corresponding to the
6021       --  C construct (condition ? then-expression : else_expression), where
6022       --  Expressions is a three element list, whose first expression is the
6023       --  condition, and whose second and third expressions are the then and
6024       --  else expressions respectively.
6025
6026       --  Note: the Then_Actions and Else_Actions fields are always set to
6027       --  No_List in the tree passed to Gigi. These fields are used only
6028       --  for temporary processing purposes in the expander.
6029
6030       --  Sprint syntax: (if expr then expr else expr)
6031
6032       --  N_Conditional_Expression
6033       --  Sloc points to related node
6034       --  Expressions (List1)
6035       --  Then_Actions (List2-Sem)
6036       --  Else_Actions (List3-Sem)
6037       --  plus fields for expression
6038
6039       --  Note: in the case where a debug source file is generated, the Sloc
6040       --  for this node points to the IF keyword in the Sprint file output.
6041
6042       -------------------
6043       -- Expanded_Name --
6044       -------------------
6045
6046       --  The N_Expanded_Name node is used to represent a selected component
6047       --  name that has been resolved to an expanded name. The semantic phase
6048       --  replaces N_Selected_Component nodes that represent names by the use
6049       --  of this node, leaving the N_Selected_Component node used only when
6050       --  the prefix is a record or protected type.
6051
6052       --  The fields of the N_Expanded_Name node are layed out identically
6053       --  to those of the N_Selected_Component node, allowing conversion of
6054       --  an expanded name node to a selected component node to be done
6055       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6056
6057       --  There is no special sprint syntax for an expanded name.
6058
6059       --  N_Expanded_Name
6060       --  Sloc points to the period
6061       --  Chars (Name1) copy of Chars field of selector name
6062       --  Prefix (Node3)
6063       --  Selector_Name (Node2)
6064       --  Entity (Node4-Sem)
6065       --  Associated_Node (Node4-Sem)
6066       --  Redundant_Use (Flag13-Sem)
6067       --  Has_Private_View (Flag11-Sem) set in generic units.
6068       --  plus fields for expression
6069
6070       --------------------
6071       -- Free Statement --
6072       --------------------
6073
6074       --  The N_Free_Statement node is generated as a result of a call to an
6075       --  instantiation of Unchecked_Deallocation. The instantiation of this
6076       --  generic is handled specially and generates this node directly.
6077
6078       --  Sprint syntax: free expression
6079
6080       --  N_Free_Statement
6081       --  Sloc is copied from the unchecked deallocation call
6082       --  Expression (Node3) argument to unchecked deallocation call
6083       --  Storage_Pool (Node1-Sem)
6084       --  Procedure_To_Call (Node4-Sem)
6085
6086       --  Note: in the case where a debug source file is generated, the Sloc
6087       --  for this node points to the FREE keyword in the Sprint file output.
6088
6089       -------------------
6090       -- Freeze Entity --
6091       -------------------
6092
6093       --  This node marks the point in a declarative part at which an entity
6094       --  declared therein becomes frozen. The expander places initialization
6095       --  procedures for types at those points. Gigi uses the freezing point
6096       --  to elaborate entities that may depend on previous private types.
6097
6098       --  See the section in Einfo "Delayed Freezing and Elaboration" for
6099       --  a full description of the use of this node.
6100
6101       --  The Entity field points back to the entity for the type (whose
6102       --  Freeze_Node field points back to this freeze node).
6103
6104       --  The Actions field contains a list of declarations and statements
6105       --  generated by the expander which are associated with the freeze
6106       --  node, and are elaborated as though the freeze node were replaced
6107       --  by this sequence of actions.
6108
6109       --  Note: the Sloc field in the freeze node references a construct
6110       --  associated with the freezing point. This is used for posting
6111       --  messages in some error/warning situations, e.g. the case where
6112       --  a primitive operation of a tagged type is declared too late.
6113
6114       --  Sprint syntax: freeze entity-name [
6115       --                   freeze actions
6116       --                 ]
6117
6118       --  N_Freeze_Entity
6119       --  Sloc points near freeze point (see above special note)
6120       --  Entity (Node4-Sem)
6121       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6122       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6123       --  Actions (List1) (set to No_List if no freeze actions)
6124       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6125
6126       --  The Actions field holds actions associated with the freeze. These
6127       --  actions are elaborated at the point where the type is frozen.
6128
6129       --  Note: in the case where a debug source file is generated, the Sloc
6130       --  for this node points to the FREEZE keyword in the Sprint file output.
6131
6132       --------------------------------
6133       -- Implicit Label Declaration --
6134       --------------------------------
6135
6136       --  An implicit label declaration is created for every occurrence of a
6137       --  label on a statement or a label on a block or loop. It is chained
6138       --  in the declarations of the innermost enclosing block as specified
6139       --  in RM section 5.1 (3).
6140
6141       --  The Defining_Identifier is the actual identifier for the
6142       --  statement identifier. Note that the occurrence of the label
6143       --  is a reference, NOT the defining occurrence. The defining
6144       --  occurrence occurs at the head of the innermost enclosing
6145       --  block, and is represented by this node.
6146
6147       --  Note: from the grammar, this might better be called an implicit
6148       --  statement identifier declaration, but the term we choose seems
6149       --  friendlier, since at least informally statement identifiers are
6150       --  called labels in both cases (i.e. when used in labels, and when
6151       --  used as the identifiers of blocks and loops).
6152
6153       --  Note: although this is logically a semantic node, since it does
6154       --  not correspond directly to a source syntax construction, these
6155       --  nodes are actually created by the parser in a post pass done just
6156       --  after parsing is complete, before semantic analysis is started (see
6157       --  the Par.Labl subunit in file par-labl.adb).
6158
6159       --  Sprint syntax: labelname : label;
6160
6161       --  N_Implicit_Label_Declaration
6162       --  Sloc points to the << of the label
6163       --  Defining_Identifier (Node1)
6164       --  Label_Construct (Node2-Sem)
6165
6166       --  Note: in the case where a debug source file is generated, the Sloc
6167       --  for this node points to the label name in the generated declaration.
6168
6169       ---------------------
6170       -- Itype_Reference --
6171       ---------------------
6172
6173       --  This node is used to create a reference to an Itype. The only
6174       --  purpose is to make sure that the Itype is defined if this is the
6175       --  first reference.
6176
6177       --  A typical use of this node is when an Itype is to be referenced in
6178       --  two branches of an if statement. In this case it is important that
6179       --  the first use of the Itype not be inside the conditional, since
6180       --  then it might not be defined if the wrong branch of the if is
6181       --  taken in the case where the definition generates elaboration code.
6182
6183       --  The Itype field points to the referenced Itype
6184
6185       --  sprint syntax: reference itype-name
6186
6187       --  N_Itype_Reference
6188       --  Sloc points to the node generating the reference
6189       --  Itype (Node1-Sem)
6190
6191       --  Note: in the case where a debug source file is generated, the Sloc
6192       --  for this node points to the REFERENCE keyword in the file output.
6193
6194       ---------------------
6195       -- Raise_xxx_Error --
6196       ---------------------
6197
6198       --  One of these nodes is created during semantic analysis to replace
6199       --  a node for an expression that is determined to definitely raise
6200       --  the corresponding exception.
6201
6202       --  The N_Raise_xxx_Error node may also stand alone in place
6203       --  of a declaration or statement, in which case it simply causes
6204       --  the exception to be raised (i.e. it is equivalent to a raise
6205       --  statement that raises the corresponding exception). This use
6206       --  is distinguished by the fact that the Etype in this case is
6207       --  Standard_Void_Type, In the subexprssion case, the Etype is the
6208       --  same as the type of the subexpression which it replaces.
6209
6210       --  If Condition is empty, then the raise is unconditional. If the
6211       --  Condition field is non-empty, it is a boolean expression which
6212       --  is first evaluated, and the exception is raised only if the
6213       --  value of the expression is True. In the unconditional case, the
6214       --  creation of this node is usually accompanied by a warning message
6215       --  error. The creation of this node will usually be accompanied by a
6216       --  message (unless it appears within the right operand of a short
6217       --  circuit form whose left argument is static and decisively
6218       --  eliminates elaboration of the raise operation.
6219
6220       --  The exception is generated with a message that contains the
6221       --  file name and line number, and then appended text. The Reason
6222       --  code shows the text to be added. The Reason code is an element
6223       --  of the type Types.RT_Exception_Code, and indicates both the
6224       --  message to be added, and the exception to be raised (which must
6225       --  match the node type). The value is stored by storing a Uint which
6226       --  is the Pos value of the enumeration element in this type.
6227
6228       --  Gigi restriction: This expander ensures that the type of the
6229       --  Condition field is always Standard.Boolean, even if the type
6230       --  in the source is some non-standard boolean type.
6231
6232       --  Sprint syntax: [xxx_error "msg"]
6233       --             or: [xxx_error when condition "msg"]
6234
6235       --  N_Raise_Constraint_Error
6236       --  Sloc references related construct
6237       --  Condition (Node1) (set to Empty if no condition)
6238       --  Reason (Uint3)
6239       --  plus fields for expression
6240
6241       --  N_Raise_Program_Error
6242       --  Sloc references related construct
6243       --  Condition (Node1) (set to Empty if no condition)
6244       --  Reason (Uint3)
6245       --  plus fields for expression
6246
6247       --  N_Raise_Storage_Error
6248       --  Sloc references related construct
6249       --  Condition (Node1) (set to Empty if no condition)
6250       --  Reason (Uint3)
6251       --  plus fields for expression
6252
6253       --  Note: Sloc is copied from the expression generating the exception.
6254       --  In the case where a debug source file is generated, the Sloc for
6255       --  this node points to the left bracket in the Sprint file output.
6256
6257       ---------------
6258       -- Reference --
6259       ---------------
6260
6261       --  For a number of purposes, we need to construct references to objects.
6262       --  These references are subsequently treated as normal access values.
6263       --  An example is the construction of the parameter block passed to a
6264       --  task entry. The N_Reference node is provided for this purpose. It is
6265       --  similar in effect to the use of the Unrestricted_Access attribute,
6266       --  and like Unrestricted_Access can be applied to objects which would
6267       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
6268       --  objects which are not aliased, and slices). In addition it can be
6269       --  applied to composite type values as well as objects, including string
6270       --  values and aggregates.
6271
6272       --  Note: we use the Prefix field for this expression so that the
6273       --  resulting node can be treated using common code with the attribute
6274       --  nodes for the 'Access and related attributes. Logically it would make
6275       --  more sense to call it an Expression field, but then we would have to
6276       --  special case the treatment of the N_Reference node.
6277
6278       --  Sprint syntax: prefix'reference
6279
6280       --  N_Reference
6281       --  Sloc is copied from the expression
6282       --  Prefix (Node3)
6283       --  plus fields for expression
6284
6285       --  Note: in the case where a debug source file is generated, the Sloc
6286       --  for this node points to the quote in the Sprint file output.
6287
6288       ---------------------
6289       -- Subprogram_Info --
6290       ---------------------
6291
6292       --  This node generates the appropriate Subprogram_Info value for a
6293       --  given procedure. See Ada.Exceptions for further details
6294
6295       --  Sprint syntax: subprog'subprogram_info
6296
6297       --  N_Subprogram_Info
6298       --  Sloc points to the entity for the procedure
6299       --  Identifier (Node1) identifier referencing the procedure
6300       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6301
6302       --  Note: in the case where a debug source file is generated, the Sloc
6303       --  for this node points to the quote in the Sprint file output.
6304
6305       --------------------------
6306       -- Unchecked Expression --
6307       --------------------------
6308
6309       --  An unchecked expression is one that must be analyzed and resolved
6310       --  with all checks off, regardless of the current setting of scope
6311       --  suppress flags.
6312
6313       --  Sprint syntax: `(expression).
6314
6315       --  Note: this node is always removed from the tree (and replaced by
6316       --  its constituent expression) on completion of analysis, so it only
6317       --  appears in intermediate trees, and will never be seen by Gigi.
6318
6319       --  N_Unchecked_Expression
6320       --  Sloc is a copy of the Sloc of the expression
6321       --  Expression (Node3)
6322       --  plus fields for expression
6323
6324       --  Note: in the case where a debug source file is generated, the Sloc
6325       --  for this node points to the back quote in the Sprint file output.
6326
6327       -------------------------------
6328       -- Unchecked Type Conversion --
6329       -------------------------------
6330
6331       --  An unchecked type conversion node represents the semantic action
6332       --  corresponding to a call to an instantiation of Unchecked_Conversion.
6333       --  It is generated as a result of actual use of Unchecked_Conversion
6334       --  and also the expander generates unchecked type conversion nodes
6335       --  directly for expansion of complex semantic actions.
6336
6337       --  Note: an unchecked type conversion is a variable as far as the
6338       --  semantics are concerned, which is convenient for the expander.
6339       --  This does not change what Ada source programs are legal, since
6340       --  clearly a function call to an instantiation of Unchecked_Conversion
6341       --  is not a variable in any case.
6342
6343       --  Sprint syntax: subtype-mark!(expression).
6344
6345       --  N_Unchecked_Type_Conversion
6346       --  Sloc points to related node in source
6347       --  Subtype_Mark (Node4)
6348       --  Expression (Node3)
6349       --  Kill_Range_Check (Flag11-Sem)
6350       --  No_Truncation (Flag17-Sem)
6351       --  plus fields for expression
6352
6353       --  Note: in the case where a debug source file is generated, the Sloc
6354       --  for this node points to the exclamation in the Sprint file output.
6355
6356       -----------------------------------
6357       -- Validate_Unchecked_Conversion --
6358       -----------------------------------
6359
6360       --  The front end does most of the validation of unchecked conversion,
6361       --  including checking sizes (this is done after the back end is called
6362       --  to take advantage of back-annotation of calculated sizes).
6363
6364       --  The front end also deals with specific cases that are not allowed
6365       --  e.g. involving unconstrained array types.
6366
6367       --  For the case of the standard gigi backend, this means that all
6368       --  checks are done in the front-end.
6369
6370       --  However, in the case of specialized back-ends, notably the JVM
6371       --  backend for JGNAT, additional requirements and restrictions apply
6372       --  to unchecked conversion, and these are most conveniently performed
6373       --  in the specialized back-end.
6374
6375       --  To accommodate this requirement, for such back ends, the following
6376       --  special node is generated recording an unchecked conversion that
6377       --  needs to be validated. The back end should post an appropriate
6378       --  error message if the unchecked conversion is invalid or warrants
6379       --  a special warning message.
6380
6381       --  Source_Type and Target_Type point to the entities for the two
6382       --  types involved in the unchecked conversion instantiation that
6383       --  is to be validated.
6384
6385       --  Sprint syntax: validate Unchecked_Conversion (source, target);
6386
6387       --  N_Validate_Unchecked_Conversion
6388       --  Sloc points to instantiation (location for warning message)
6389       --  Source_Type (Node1-Sem)
6390       --  Target_Type (Node2-Sem)
6391
6392       --  Note: in the case where a debug source file is generated, the Sloc
6393       --  for this node points to the VALIDATE keyword in the file output.
6394
6395    -----------
6396    -- Empty --
6397    -----------
6398
6399    --  Used as the contents of the Nkind field of the dummy Empty node
6400    --  and in some other situations to indicate an uninitialized value.
6401
6402    --  N_Empty
6403    --  Chars (Name1) is set to No_Name
6404
6405    -----------
6406    -- Error --
6407    -----------
6408
6409    --  Used as the contents of the Nkind field of the dummy Error node.
6410    --  Has an Etype field, which gets set to Any_Type later on, to help
6411    --  error recovery (Error_Posted is also set in the Error node).
6412
6413    --  N_Error
6414    --  Chars (Name1) is set to Error_Name
6415    --  Etype (Node5-Sem)
6416
6417    --------------------------
6418    -- Node Type Definition --
6419    --------------------------
6420
6421    --  The following is the definition of the Node_Kind type. As previously
6422    --  discussed, this is separated off to allow rearrangement of the order
6423    --  to facilitiate definition of subtype ranges. The comments show the
6424    --  subtype classes which apply to each set of node kinds. The first
6425    --  entry in the comment characterizes the following list of nodes.
6426
6427    type Node_Kind is (
6428       N_Unused_At_Start,
6429
6430       --  N_Representation_Clause
6431       N_At_Clause,
6432       N_Component_Clause,
6433       N_Enumeration_Representation_Clause,
6434       N_Mod_Clause,
6435       N_Record_Representation_Clause,
6436
6437       --  N_Representation_Clause, N_Has_Chars
6438       N_Attribute_Definition_Clause,
6439
6440       --  N_Has_Chars
6441       N_Empty,
6442       N_Pragma,
6443       N_Pragma_Argument_Association,
6444
6445       --  N_Has_Etype
6446       N_Error,
6447
6448       --  N_Entity, N_Has_Etype, N_Has_Chars
6449       N_Defining_Character_Literal,
6450       N_Defining_Identifier,
6451       N_Defining_Operator_Symbol,
6452
6453       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6454       N_Expanded_Name,
6455
6456       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
6457       --  N_Has_Chars, N_Has_Entity
6458       N_Identifier,
6459       N_Operator_Symbol,
6460
6461       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
6462       --  N_Has_Chars, N_Has_Entity
6463       N_Character_Literal,
6464
6465       --  N_Binary_Op, N_Op, N_Subexpr,
6466       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
6467       N_Op_Add,
6468       N_Op_Concat,
6469       N_Op_Expon,
6470       N_Op_Subtract,
6471
6472       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6473       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
6474
6475       N_Op_Divide,
6476       N_Op_Mod,
6477       N_Op_Multiply,
6478       N_Op_Rem,
6479
6480       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6481       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
6482       N_Op_And,
6483
6484       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6485       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean,
6486       --  N_Op_Compare
6487       N_Op_Eq,
6488       N_Op_Ge,
6489       N_Op_Gt,
6490       N_Op_Le,
6491       N_Op_Lt,
6492       N_Op_Ne,
6493
6494       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6495       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
6496       N_Op_Or,
6497       N_Op_Xor,
6498
6499       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6500       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
6501       N_Op_Rotate_Left,
6502       N_Op_Rotate_Right,
6503       N_Op_Shift_Left,
6504       N_Op_Shift_Right,
6505       N_Op_Shift_Right_Arithmetic,
6506
6507       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6508       --  N_Has_Chars, N_Has_Entity
6509       N_Op_Abs,
6510       N_Op_Minus,
6511       N_Op_Not,
6512       N_Op_Plus,
6513
6514       --  N_Subexpr, N_Has_Etype, N_Has_Entity
6515       N_Attribute_Reference,
6516
6517       --  N_Subexpr, N_Has_Etype
6518       N_And_Then,
6519       N_Conditional_Expression,
6520       N_Explicit_Dereference,
6521       N_Function_Call,
6522       N_In,
6523       N_Indexed_Component,
6524       N_Integer_Literal,
6525       N_Not_In,
6526       N_Null,
6527       N_Or_Else,
6528       N_Procedure_Call_Statement,
6529       N_Qualified_Expression,
6530
6531       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
6532
6533       N_Raise_Constraint_Error,
6534       N_Raise_Program_Error,
6535       N_Raise_Storage_Error,
6536
6537       --  N_Subexpr, N_Has_Etype
6538
6539       N_Aggregate,
6540       N_Allocator,
6541       N_Extension_Aggregate,
6542       N_Range,
6543       N_Real_Literal,
6544       N_Reference,
6545       N_Selected_Component,
6546       N_Slice,
6547       N_String_Literal,
6548       N_Subprogram_Info,
6549       N_Type_Conversion,
6550       N_Unchecked_Expression,
6551       N_Unchecked_Type_Conversion,
6552
6553       --  N_Has_Etype
6554       N_Subtype_Indication,
6555
6556       --  N_Declaration
6557       N_Component_Declaration,
6558       N_Entry_Declaration,
6559       N_Formal_Object_Declaration,
6560       N_Formal_Type_Declaration,
6561       N_Full_Type_Declaration,
6562       N_Incomplete_Type_Declaration,
6563       N_Loop_Parameter_Specification,
6564       N_Object_Declaration,
6565       N_Protected_Type_Declaration,
6566       N_Private_Extension_Declaration,
6567       N_Private_Type_Declaration,
6568       N_Subtype_Declaration,
6569
6570       --  N_Subprogram_Specification, N_Declaration
6571       N_Function_Specification,
6572       N_Procedure_Specification,
6573
6574       --  (nothing special)
6575       N_Entry_Index_Specification,
6576       N_Freeze_Entity,
6577
6578       --  N_Access_To_Subprogram_Definition
6579       N_Access_Function_Definition,
6580       N_Access_Procedure_Definition,
6581
6582       --  N_Later_Decl_Item,
6583       N_Task_Type_Declaration,
6584
6585       --  N_Body_Stub, N_Later_Decl_Item
6586       N_Package_Body_Stub,
6587       N_Protected_Body_Stub,
6588       N_Subprogram_Body_Stub,
6589       N_Task_Body_Stub,
6590
6591       --  N_Generic_Instantiation, N_Later_Decl_Item
6592       N_Function_Instantiation,
6593       N_Package_Instantiation,
6594       N_Procedure_Instantiation,
6595
6596       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
6597       N_Package_Body,
6598       N_Subprogram_Body,
6599
6600       --  N_Later_Decl_Item, N_Proper_Body
6601       N_Protected_Body,
6602       N_Task_Body,
6603
6604       --  N_Later_Decl_Item
6605       N_Implicit_Label_Declaration,
6606       N_Package_Declaration,
6607       N_Single_Task_Declaration,
6608       N_Subprogram_Declaration,
6609       N_Use_Package_Clause,
6610
6611       --  N_Generic_Declaration, N_Later_Decl_Item
6612       N_Generic_Package_Declaration,
6613       N_Generic_Subprogram_Declaration,
6614
6615       --  N_Array_Type_Definition
6616       N_Constrained_Array_Definition,
6617       N_Unconstrained_Array_Definition,
6618
6619       --  N_Renaming_Declaration
6620       N_Exception_Renaming_Declaration,
6621       N_Object_Renaming_Declaration,
6622       N_Package_Renaming_Declaration,
6623       N_Subprogram_Renaming_Declaration,
6624
6625       --  N_Generic_Renaming_Declarations, N_Renaming_Declaration
6626       N_Generic_Function_Renaming_Declaration,
6627       N_Generic_Package_Renaming_Declaration,
6628       N_Generic_Procedure_Renaming_Declaration,
6629
6630       --  N_Statement_Other_Than_Procedure_Call
6631       N_Abort_Statement,
6632       N_Accept_Statement,
6633       N_Assignment_Statement,
6634       N_Asynchronous_Select,
6635       N_Block_Statement,
6636       N_Case_Statement,
6637       N_Code_Statement,
6638       N_Conditional_Entry_Call,
6639       N_Delay_Relative_Statement,
6640       N_Delay_Until_Statement,
6641       N_Entry_Call_Statement,
6642       N_Free_Statement,
6643       N_Goto_Statement,
6644       N_Loop_Statement,
6645       N_Null_Statement,
6646       N_Raise_Statement,
6647       N_Requeue_Statement,
6648       N_Return_Statement,
6649       N_Selective_Accept,
6650       N_Timed_Entry_Call,
6651
6652       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
6653       N_Exit_Statement,
6654       N_If_Statement,
6655
6656       --  N_Has_Condition
6657       N_Accept_Alternative,
6658       N_Delay_Alternative,
6659       N_Elsif_Part,
6660       N_Entry_Body_Formal_Part,
6661       N_Iteration_Scheme,
6662       N_Terminate_Alternative,
6663
6664       --  Other nodes (not part of any subtype class)
6665       N_Abortable_Part,
6666       N_Abstract_Subprogram_Declaration,
6667       N_Access_Definition,
6668       N_Access_To_Object_Definition,
6669       N_Case_Statement_Alternative,
6670       N_Compilation_Unit,
6671       N_Compilation_Unit_Aux,
6672       N_Component_Association,
6673       N_Component_Definition,
6674       N_Component_List,
6675       N_Derived_Type_Definition,
6676       N_Decimal_Fixed_Point_Definition,
6677       N_Defining_Program_Unit_Name,
6678       N_Delta_Constraint,
6679       N_Designator,
6680       N_Digits_Constraint,
6681       N_Discriminant_Association,
6682       N_Discriminant_Specification,
6683       N_Enumeration_Type_Definition,
6684       N_Entry_Body,
6685       N_Entry_Call_Alternative,
6686       N_Exception_Declaration,
6687       N_Exception_Handler,
6688       N_Floating_Point_Definition,
6689       N_Formal_Decimal_Fixed_Point_Definition,
6690       N_Formal_Derived_Type_Definition,
6691       N_Formal_Discrete_Type_Definition,
6692       N_Formal_Floating_Point_Definition,
6693       N_Formal_Modular_Type_Definition,
6694       N_Formal_Ordinary_Fixed_Point_Definition,
6695       N_Formal_Package_Declaration,
6696       N_Formal_Private_Type_Definition,
6697       N_Formal_Signed_Integer_Type_Definition,
6698       N_Formal_Subprogram_Declaration,
6699       N_Generic_Association,
6700       N_Handled_Sequence_Of_Statements,
6701       N_Index_Or_Discriminant_Constraint,
6702       N_Itype_Reference,
6703       N_Label,
6704       N_Modular_Type_Definition,
6705       N_Number_Declaration,
6706       N_Ordinary_Fixed_Point_Definition,
6707       N_Others_Choice,
6708       N_Package_Specification,
6709       N_Parameter_Association,
6710       N_Parameter_Specification,
6711       N_Protected_Definition,
6712       N_Range_Constraint,
6713       N_Real_Range_Specification,
6714       N_Record_Definition,
6715       N_Signed_Integer_Type_Definition,
6716       N_Single_Protected_Declaration,
6717       N_Subunit,
6718       N_Task_Definition,
6719       N_Triggering_Alternative,
6720       N_Use_Type_Clause,
6721       N_Validate_Unchecked_Conversion,
6722       N_Variant,
6723       N_Variant_Part,
6724       N_With_Clause,
6725       N_With_Type_Clause,
6726       N_Unused_At_End);
6727
6728    for Node_Kind'Size use 8;
6729    --  The data structures in Atree assume this!
6730
6731    ----------------------------
6732    -- Node Class Definitions --
6733    ----------------------------
6734
6735    subtype N_Access_To_Subprogram_Definition is Node_Kind range
6736      N_Access_Function_Definition ..
6737      N_Access_Procedure_Definition;
6738
6739    subtype N_Array_Type_Definition is Node_Kind range
6740      N_Constrained_Array_Definition ..
6741      N_Unconstrained_Array_Definition;
6742
6743    subtype N_Binary_Op is Node_Kind range
6744      N_Op_Add ..
6745      N_Op_Shift_Right_Arithmetic;
6746
6747    subtype N_Body_Stub is Node_Kind range
6748      N_Package_Body_Stub ..
6749      N_Task_Body_Stub;
6750
6751    subtype N_Declaration is Node_Kind range
6752      N_Component_Declaration ..
6753      N_Procedure_Specification;
6754    --  Note: this includes all constructs normally thought of as declarations
6755    --  except those which are separately grouped as later declarations.
6756
6757    subtype N_Direct_Name is Node_Kind range
6758      N_Identifier ..
6759      N_Character_Literal;
6760
6761    subtype N_Entity is Node_Kind range
6762      N_Defining_Character_Literal ..
6763      N_Defining_Operator_Symbol;
6764
6765    subtype N_Generic_Declaration is Node_Kind range
6766      N_Generic_Package_Declaration ..
6767      N_Generic_Subprogram_Declaration;
6768
6769    subtype N_Generic_Instantiation is Node_Kind range
6770      N_Function_Instantiation ..
6771      N_Procedure_Instantiation;
6772
6773    subtype N_Generic_Renaming_Declaration is Node_Kind range
6774      N_Generic_Function_Renaming_Declaration ..
6775      N_Generic_Procedure_Renaming_Declaration;
6776
6777    subtype N_Has_Chars is Node_Kind range
6778      N_Attribute_Definition_Clause ..
6779      N_Op_Plus;
6780
6781    subtype N_Has_Entity is Node_Kind range
6782      N_Expanded_Name ..
6783      N_Attribute_Reference;
6784    --  Nodes that have Entity fields
6785    --  Warning: DOES NOT INCLUDE N_Freeze_Entity!
6786
6787    subtype N_Has_Etype is Node_Kind range
6788      N_Error ..
6789      N_Subtype_Indication;
6790
6791    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
6792       N_Op_Divide ..
6793       N_Op_Rem;
6794
6795    subtype N_Later_Decl_Item is Node_Kind range
6796      N_Task_Type_Declaration ..
6797      N_Generic_Subprogram_Declaration;
6798    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
6799    --  includes only those items which can appear as later declarative
6800    --  items. This also includes N_Implicit_Label_Declaration which is
6801    --  not specifically in the grammar but may appear as a valid later
6802    --  declarative items. It does NOT include N_Pragma which can also
6803    --  appear among later declarative items. It does however include
6804    --  N_Protected_Body, which is a bit peculiar, but harmless since
6805    --  this cannot appear in Ada 83 mode anyway.
6806
6807    subtype N_Op is Node_Kind range
6808      N_Op_Add ..
6809      N_Op_Plus;
6810
6811    subtype N_Op_Boolean is Node_Kind range
6812      N_Op_And ..
6813      N_Op_Xor;
6814    --  Binary operators which take operands of a boolean type, and yield
6815    --  a result of a boolean type.
6816
6817    subtype N_Op_Compare is Node_Kind range
6818      N_Op_Eq ..
6819      N_Op_Ne;
6820
6821    subtype N_Op_Shift is Node_Kind range
6822      N_Op_Rotate_Left ..
6823      N_Op_Shift_Right_Arithmetic;
6824
6825    subtype N_Proper_Body is Node_Kind range
6826      N_Package_Body ..
6827      N_Task_Body;
6828
6829    subtype N_Raise_xxx_Error is Node_Kind range
6830      N_Raise_Constraint_Error ..
6831      N_Raise_Storage_Error;
6832
6833    subtype N_Renaming_Declaration is Node_Kind range
6834      N_Exception_Renaming_Declaration ..
6835      N_Generic_Procedure_Renaming_Declaration;
6836
6837    subtype N_Representation_Clause is Node_Kind range
6838      N_At_Clause ..
6839      N_Attribute_Definition_Clause;
6840
6841    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
6842      N_Abort_Statement ..
6843      N_If_Statement;
6844    --  Note that this includes all statement types except for the cases of the
6845    --  N_Procedure_Call_Statement which is considered to be a subexpression
6846    --  (since overloading is possible, so it needs to go through the normal
6847    --  overloading resolution for expressions).
6848
6849    subtype N_Has_Condition is Node_Kind range
6850      N_Exit_Statement ..
6851      N_Terminate_Alternative;
6852    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
6853
6854    subtype N_Subexpr is Node_Kind range
6855      N_Expanded_Name ..
6856      N_Unchecked_Type_Conversion;
6857    --  Nodes with expression fields
6858
6859    subtype N_Subprogram_Specification is Node_Kind range
6860      N_Function_Specification ..
6861      N_Procedure_Specification;
6862
6863    subtype N_Unary_Op is Node_Kind range
6864      N_Op_Abs ..
6865      N_Op_Plus;
6866
6867    subtype N_Unit_Body is Node_Kind range
6868      N_Package_Body ..
6869      N_Subprogram_Body;
6870
6871    ---------------------------
6872    -- Node Access Functions --
6873    ---------------------------
6874
6875    --  The following functions return the contents of the indicated field of
6876    --  the node referenced by the argument, which is a Node_Id. They provide
6877    --  logical access to fields in the node which could be accessed using the
6878    --  Atree.Unchecked_Access package, but the idea is always to use these
6879    --  higher level routines which preserve strong typing. In debug mode,
6880    --  these routines check that they are being applied to an appropriate
6881    --  node, as well as checking that the node is in range.
6882
6883    function ABE_Is_Certain
6884      (N : Node_Id) return Boolean;    -- Flag18
6885
6886    function Abort_Present
6887      (N : Node_Id) return Boolean;    -- Flag15
6888
6889    function Abortable_Part
6890      (N : Node_Id) return Node_Id;    -- Node2
6891
6892    function Abstract_Present
6893      (N : Node_Id) return Boolean;    -- Flag4
6894
6895    function Accept_Handler_Records
6896      (N : Node_Id) return List_Id;    -- List5
6897
6898    function Accept_Statement
6899      (N : Node_Id) return Node_Id;    -- Node2
6900
6901    function Access_Definition
6902      (N : Node_Id) return Node_Id;    -- Node3
6903
6904    function Access_Types_To_Process
6905      (N : Node_Id) return Elist_Id;   -- Elist2
6906
6907    function Actions
6908      (N : Node_Id) return List_Id;    -- List1
6909
6910    function Activation_Chain_Entity
6911      (N : Node_Id) return Node_Id;    -- Node3
6912
6913    function Acts_As_Spec
6914      (N : Node_Id) return Boolean;    -- Flag4
6915
6916    function Aggregate_Bounds
6917      (N : Node_Id) return Node_Id;    -- Node3
6918
6919    function Aliased_Present
6920      (N : Node_Id) return Boolean;    -- Flag4
6921
6922    function All_Others
6923      (N : Node_Id) return Boolean;    -- Flag11
6924
6925    function All_Present
6926      (N : Node_Id) return Boolean;    -- Flag15
6927
6928    function Alternatives
6929      (N : Node_Id) return List_Id;    -- List4
6930
6931    function Ancestor_Part
6932      (N : Node_Id) return Node_Id;    -- Node3
6933
6934    function Array_Aggregate
6935      (N : Node_Id) return Node_Id;    -- Node3
6936
6937    function Assignment_OK
6938      (N : Node_Id) return Boolean;    -- Flag15
6939
6940    function Associated_Node
6941      (N : Node_Id) return Node_Id;    -- Node4
6942
6943    function At_End_Proc
6944      (N : Node_Id) return Node_Id;    -- Node1
6945
6946    function Attribute_Name
6947      (N : Node_Id) return Name_Id;    -- Name2
6948
6949    function Aux_Decls_Node
6950      (N : Node_Id) return Node_Id;    -- Node5
6951
6952    function Backwards_OK
6953      (N : Node_Id) return Boolean;    -- Flag6
6954
6955    function Bad_Is_Detected
6956      (N : Node_Id) return Boolean;    -- Flag15
6957
6958    function By_Ref
6959      (N : Node_Id) return Boolean;    -- Flag5
6960
6961    function Body_Required
6962      (N : Node_Id) return Boolean;    -- Flag13
6963
6964    function Body_To_Inline
6965      (N : Node_Id) return Node_Id;    -- Node3
6966
6967    function Box_Present
6968      (N : Node_Id) return Boolean;    -- Flag15
6969
6970    function Char_Literal_Value
6971      (N : Node_Id) return Char_Code;  -- Char_Code2
6972
6973    function Chars
6974      (N : Node_Id) return Name_Id;    -- Name1
6975
6976    function Check_Address_Alignment
6977      (N : Node_Id) return Boolean;    -- Flag11
6978
6979    function Choice_Parameter
6980      (N : Node_Id) return Node_Id;    -- Node2
6981
6982    function Choices
6983      (N : Node_Id) return List_Id;    -- List1
6984
6985    function Compile_Time_Known_Aggregate
6986      (N : Node_Id) return Boolean;    -- Flag18
6987
6988    function Component_Associations
6989      (N : Node_Id) return List_Id;    -- List2
6990
6991    function Component_Clauses
6992      (N : Node_Id) return List_Id;    -- List3
6993
6994    function Component_Definition
6995      (N : Node_Id) return Node_Id;    -- Node4
6996
6997    function Component_Items
6998      (N : Node_Id) return List_Id;    -- List3
6999
7000    function Component_List
7001      (N : Node_Id) return Node_Id;    -- Node1
7002
7003    function Component_Name
7004      (N : Node_Id) return Node_Id;    -- Node1
7005
7006    function Condition
7007      (N : Node_Id) return Node_Id;    -- Node1
7008
7009    function Condition_Actions
7010      (N : Node_Id) return List_Id;    -- List3
7011
7012    function Config_Pragmas
7013      (N : Node_Id) return List_Id;    -- List4
7014
7015    function Constant_Present
7016      (N : Node_Id) return Boolean;    -- Flag17
7017
7018    function Constraint
7019      (N : Node_Id) return Node_Id;    -- Node3
7020
7021    function Constraints
7022      (N : Node_Id) return List_Id;    -- List1
7023
7024    function Context_Installed
7025      (N : Node_Id) return Boolean;    -- Flag13
7026
7027    function Context_Items
7028      (N : Node_Id) return List_Id;    -- List1
7029
7030    function Controlling_Argument
7031      (N : Node_Id) return Node_Id;    -- Node1
7032
7033    function Conversion_OK
7034      (N : Node_Id) return Boolean;    -- Flag14
7035
7036    function Corresponding_Body
7037      (N : Node_Id) return Node_Id;    -- Node5
7038
7039    function Corresponding_Generic_Association
7040      (N : Node_Id) return Node_Id;    -- Node5
7041
7042    function Corresponding_Integer_Value
7043      (N : Node_Id) return Uint;       -- Uint4
7044
7045    function Corresponding_Spec
7046      (N : Node_Id) return Node_Id;    -- Node5
7047
7048    function Corresponding_Stub
7049      (N : Node_Id) return Node_Id;    -- Node3
7050
7051    function Dcheck_Function
7052      (N : Node_Id) return Entity_Id;  -- Node5
7053
7054    function Debug_Statement
7055      (N : Node_Id) return Node_Id;    -- Node3
7056
7057    function Declarations
7058      (N : Node_Id) return List_Id;    -- List2
7059
7060    function Default_Expression
7061      (N : Node_Id) return Node_Id;    -- Node5
7062
7063    function Default_Name
7064      (N : Node_Id) return Node_Id;    -- Node2
7065
7066    function Defining_Identifier
7067      (N : Node_Id) return Entity_Id;  -- Node1
7068
7069    function Defining_Unit_Name
7070      (N : Node_Id) return Node_Id;    -- Node1
7071
7072    function Delay_Alternative
7073      (N : Node_Id) return Node_Id;    -- Node4
7074
7075    function Delay_Finalize_Attach
7076      (N : Node_Id) return Boolean;    -- Flag14
7077
7078    function Delay_Statement
7079      (N : Node_Id) return Node_Id;    -- Node2
7080
7081    function Delta_Expression
7082      (N : Node_Id) return Node_Id;    -- Node3
7083
7084    function Digits_Expression
7085      (N : Node_Id) return Node_Id;    -- Node2
7086
7087    function Discr_Check_Funcs_Built
7088      (N : Node_Id) return Boolean;    -- Flag11
7089
7090    function Discrete_Choices
7091      (N : Node_Id) return List_Id;    -- List4
7092
7093    function Discrete_Range
7094      (N : Node_Id) return Node_Id;    -- Node4
7095
7096    function Discrete_Subtype_Definition
7097      (N : Node_Id) return Node_Id;    -- Node4
7098
7099    function Discrete_Subtype_Definitions
7100      (N : Node_Id) return List_Id;    -- List2
7101
7102    function Discriminant_Specifications
7103      (N : Node_Id) return List_Id;    -- List4
7104
7105    function Discriminant_Type
7106      (N : Node_Id) return Node_Id;    -- Node5
7107
7108    function Do_Accessibility_Check
7109      (N : Node_Id) return Boolean;    -- Flag13
7110
7111    function Do_Discriminant_Check
7112      (N : Node_Id) return Boolean;    -- Flag13
7113
7114    function Do_Division_Check
7115      (N : Node_Id) return Boolean;    -- Flag13
7116
7117    function Do_Length_Check
7118      (N : Node_Id) return Boolean;    -- Flag4
7119
7120    function Do_Overflow_Check
7121      (N : Node_Id) return Boolean;    -- Flag17
7122
7123    function Do_Range_Check
7124      (N : Node_Id) return Boolean;    -- Flag9
7125
7126    function Do_Storage_Check
7127      (N : Node_Id) return Boolean;    -- Flag17
7128
7129    function Do_Tag_Check
7130      (N : Node_Id) return Boolean;    -- Flag13
7131
7132    function Elaborate_All_Present
7133      (N : Node_Id) return Boolean;    -- Flag14
7134
7135    function Elaborate_Present
7136      (N : Node_Id) return Boolean;    -- Flag4
7137
7138    function Elaboration_Boolean
7139      (N : Node_Id) return Node_Id;    -- Node2
7140
7141    function Else_Actions
7142      (N : Node_Id) return List_Id;    -- List3
7143
7144    function Else_Statements
7145      (N : Node_Id) return List_Id;    -- List4
7146
7147    function Elsif_Parts
7148      (N : Node_Id) return List_Id;    -- List3
7149
7150    function Enclosing_Variant
7151      (N : Node_Id) return Node_Id;    -- Node2
7152
7153    function End_Label
7154      (N : Node_Id) return Node_Id;    -- Node4
7155
7156    function End_Span
7157      (N : Node_Id) return Uint;       -- Uint5
7158
7159    function Entity
7160      (N : Node_Id) return Node_Id;    -- Node4
7161
7162    function Entity_Or_Associated_Node
7163      (N : Node_Id) return Node_Id;    -- Node4
7164
7165    function Entry_Body_Formal_Part
7166      (N : Node_Id) return Node_Id;    -- Node5
7167
7168    function Entry_Call_Alternative
7169      (N : Node_Id) return Node_Id;    -- Node1
7170
7171    function Entry_Call_Statement
7172      (N : Node_Id) return Node_Id;    -- Node1
7173
7174    function Entry_Direct_Name
7175      (N : Node_Id) return Node_Id;    -- Node1
7176
7177    function Entry_Index
7178      (N : Node_Id) return Node_Id;    -- Node5
7179
7180    function Entry_Index_Specification
7181      (N : Node_Id) return Node_Id;    -- Node4
7182
7183    function Etype
7184      (N : Node_Id) return Node_Id;    -- Node5
7185
7186    function Exception_Choices
7187      (N : Node_Id) return List_Id;    -- List4
7188
7189    function Exception_Handlers
7190      (N : Node_Id) return List_Id;    -- List5
7191
7192    function Exception_Junk
7193      (N : Node_Id) return Boolean;    -- Flag11
7194
7195    function Explicit_Actual_Parameter
7196      (N : Node_Id) return Node_Id;    -- Node3
7197
7198    function Expansion_Delayed
7199      (N : Node_Id) return Boolean;    -- Flag11
7200
7201    function Explicit_Generic_Actual_Parameter
7202      (N : Node_Id) return Node_Id;    -- Node1
7203
7204    function Expression
7205      (N : Node_Id) return Node_Id;    -- Node3
7206
7207    function Expressions
7208      (N : Node_Id) return List_Id;    -- List1
7209
7210    function First_Bit
7211      (N : Node_Id) return Node_Id;    -- Node3
7212
7213    function First_Inlined_Subprogram
7214      (N : Node_Id) return Entity_Id;  -- Node3
7215
7216    function First_Name
7217      (N : Node_Id) return Boolean;    -- Flag5
7218
7219    function First_Named_Actual
7220      (N : Node_Id) return Node_Id;    -- Node4
7221
7222    function First_Real_Statement
7223      (N : Node_Id) return Node_Id;    -- Node2
7224
7225    function First_Subtype_Link
7226      (N : Node_Id) return Entity_Id;  -- Node5
7227
7228    function Float_Truncate
7229      (N : Node_Id) return Boolean;    -- Flag11
7230
7231    function Formal_Type_Definition
7232      (N : Node_Id) return Node_Id;    -- Node3
7233
7234    function Forwards_OK
7235      (N : Node_Id) return Boolean;    -- Flag5
7236
7237    function From_At_Mod
7238      (N : Node_Id) return Boolean;    -- Flag4
7239
7240    function From_Default
7241      (N : Node_Id) return Boolean;    -- Flag6
7242
7243    function Generic_Associations
7244      (N : Node_Id) return List_Id;    -- List3
7245
7246    function Generic_Formal_Declarations
7247      (N : Node_Id) return List_Id;    -- List2
7248
7249    function Generic_Parent
7250      (N : Node_Id) return Node_Id;    -- Node5
7251
7252    function Generic_Parent_Type
7253      (N : Node_Id) return Node_Id;    -- Node4
7254
7255    function Handled_Statement_Sequence
7256      (N : Node_Id) return Node_Id;    -- Node4
7257
7258    function Handler_List_Entry
7259      (N : Node_Id) return Node_Id;    -- Node2
7260
7261    function Has_Created_Identifier
7262      (N : Node_Id) return Boolean;    -- Flag15
7263
7264    function Has_Dynamic_Length_Check
7265      (N : Node_Id) return Boolean;    -- Flag10
7266
7267    function Has_Dynamic_Range_Check
7268      (N : Node_Id) return Boolean;    -- Flag12
7269
7270    function Has_No_Elaboration_Code
7271      (N : Node_Id) return Boolean;    -- Flag17
7272
7273    function Has_Priority_Pragma
7274      (N : Node_Id) return Boolean;    -- Flag6
7275
7276    function Has_Private_View
7277      (N : Node_Id) return Boolean;    -- Flag11
7278
7279    function Has_Storage_Size_Pragma
7280      (N : Node_Id) return Boolean;    -- Flag5
7281
7282    function Has_Task_Info_Pragma
7283      (N : Node_Id) return Boolean;    -- Flag7
7284
7285    function Has_Task_Name_Pragma
7286      (N : Node_Id) return Boolean;    -- Flag8
7287
7288    function Has_Wide_Character
7289      (N : Node_Id) return Boolean;    -- Flag11
7290
7291    function Hidden_By_Use_Clause
7292      (N : Node_Id) return Elist_Id;   -- Elist4
7293
7294    function High_Bound
7295      (N : Node_Id) return Node_Id;    -- Node2
7296
7297    function Identifier
7298      (N : Node_Id) return Node_Id;    -- Node1
7299
7300    function Implicit_With
7301      (N : Node_Id) return Boolean;    -- Flag16
7302
7303    function In_Present
7304      (N : Node_Id) return Boolean;    -- Flag15
7305
7306    function Includes_Infinities
7307      (N : Node_Id) return Boolean;    -- Flag11
7308
7309    function Instance_Spec
7310      (N : Node_Id) return Node_Id;    -- Node5
7311
7312    function Intval
7313      (N : Node_Id) return Uint;       -- Uint3
7314
7315    function Is_Asynchronous_Call_Block
7316      (N : Node_Id) return Boolean;    -- Flag7
7317
7318    function Is_Component_Left_Opnd
7319      (N : Node_Id) return Boolean;    -- Flag13
7320
7321    function Is_Component_Right_Opnd
7322      (N : Node_Id) return Boolean;    -- Flag14
7323
7324    function Is_Controlling_Actual
7325      (N : Node_Id) return Boolean;    -- Flag16
7326
7327    function Is_In_Discriminant_Check
7328      (N : Node_Id) return Boolean;    -- Flag11
7329
7330    function Is_Machine_Number
7331      (N : Node_Id) return Boolean;    -- Flag11
7332
7333    function Is_Null_Loop
7334      (N : Node_Id) return Boolean;    -- Flag16
7335
7336    function Is_Overloaded
7337      (N : Node_Id) return Boolean;    -- Flag5
7338
7339    function Is_Power_Of_2_For_Shift
7340      (N : Node_Id) return Boolean;    -- Flag13
7341
7342    function Is_Protected_Subprogram_Body
7343      (N : Node_Id) return Boolean;    -- Flag7
7344
7345    function Is_Static_Expression
7346      (N : Node_Id) return Boolean;    -- Flag6
7347
7348    function Is_Subprogram_Descriptor
7349      (N : Node_Id) return Boolean;    -- Flag16
7350
7351    function Is_Task_Allocation_Block
7352      (N : Node_Id) return Boolean;    -- Flag6
7353
7354    function Is_Task_Master
7355      (N : Node_Id) return Boolean;    -- Flag5
7356
7357    function Iteration_Scheme
7358      (N : Node_Id) return Node_Id;    -- Node2
7359
7360    function Itype
7361      (N : Node_Id) return Entity_Id;  -- Node1
7362
7363    function Kill_Range_Check
7364      (N : Node_Id) return Boolean;    -- Flag11
7365
7366    function Label_Construct
7367      (N : Node_Id) return Node_Id;    -- Node2
7368
7369    function Left_Opnd
7370      (N : Node_Id) return Node_Id;    -- Node2
7371
7372    function Last_Bit
7373      (N : Node_Id) return Node_Id;    -- Node4
7374
7375    function Last_Name
7376      (N : Node_Id) return Boolean;    -- Flag6
7377
7378    function Library_Unit
7379      (N : Node_Id) return Node_Id;    -- Node4
7380
7381    function Limited_View_Installed
7382      (N : Node_Id) return Boolean;    -- Flag18
7383
7384    function Limited_Present
7385      (N : Node_Id) return Boolean;    -- Flag17
7386
7387    function Literals
7388      (N : Node_Id) return List_Id;    -- List1
7389
7390    function Loop_Actions
7391      (N : Node_Id) return List_Id;    -- List2
7392
7393    function Loop_Parameter_Specification
7394      (N : Node_Id) return Node_Id;    -- Node4
7395
7396    function Low_Bound
7397      (N : Node_Id) return Node_Id;    -- Node1
7398
7399    function Mod_Clause
7400      (N : Node_Id) return Node_Id;    -- Node2
7401
7402    function More_Ids
7403      (N : Node_Id) return Boolean;    -- Flag5
7404
7405    function Must_Be_Byte_Aligned
7406      (N : Node_Id) return Boolean;    -- Flag14
7407
7408    function Must_Not_Freeze
7409      (N : Node_Id) return Boolean;    -- Flag8
7410
7411    function Name
7412      (N : Node_Id) return Node_Id;    -- Node2
7413
7414    function Names
7415      (N : Node_Id) return List_Id;    -- List2
7416
7417    function Next_Entity
7418      (N : Node_Id) return Node_Id;    -- Node2
7419
7420    function Next_Named_Actual
7421      (N : Node_Id) return Node_Id;    -- Node4
7422
7423    function Next_Rep_Item
7424      (N : Node_Id) return Node_Id;    -- Node4
7425
7426    function Next_Use_Clause
7427      (N : Node_Id) return Node_Id;    -- Node3
7428
7429    function No_Ctrl_Actions
7430      (N : Node_Id) return Boolean;    -- Flag7
7431
7432    function No_Elaboration_Check
7433      (N : Node_Id) return Boolean;    -- Flag14
7434
7435    function No_Entities_Ref_In_Spec
7436      (N : Node_Id) return Boolean;    -- Flag8
7437
7438    function No_Initialization
7439      (N : Node_Id) return Boolean;    -- Flag13
7440
7441    function No_Truncation
7442      (N : Node_Id) return Boolean;    -- Flag17
7443
7444    function Null_Present
7445      (N : Node_Id) return Boolean;    -- Flag13
7446
7447    function Null_Record_Present
7448      (N : Node_Id) return Boolean;    -- Flag17
7449
7450    function Object_Definition
7451      (N : Node_Id) return Node_Id;    -- Node4
7452
7453    function OK_For_Stream
7454      (N : Node_Id) return Boolean;    -- Flag4
7455
7456    function Original_Discriminant
7457      (N : Node_Id) return Node_Id;    -- Node2
7458
7459    function Original_Entity
7460      (N : Node_Id) return Entity_Id;  -- Node2
7461
7462    function Others_Discrete_Choices
7463      (N : Node_Id) return List_Id;    -- List1
7464
7465    function Out_Present
7466      (N : Node_Id) return Boolean;    -- Flag17
7467
7468    function Parameter_Associations
7469      (N : Node_Id) return List_Id;    -- List3
7470
7471    function Parameter_List_Truncated
7472      (N : Node_Id) return Boolean;    -- Flag17
7473
7474    function Parameter_Specifications
7475      (N : Node_Id) return List_Id;    -- List3
7476
7477    function Parameter_Type
7478      (N : Node_Id) return Node_Id;    -- Node2
7479
7480    function Parent_Spec
7481      (N : Node_Id) return Node_Id;    -- Node4
7482
7483    function Position
7484      (N : Node_Id) return Node_Id;    -- Node2
7485
7486    function Pragma_Argument_Associations
7487      (N : Node_Id) return List_Id;    -- List2
7488
7489    function Pragmas_After
7490      (N : Node_Id) return List_Id;    -- List5
7491
7492    function Pragmas_Before
7493      (N : Node_Id) return List_Id;    -- List4
7494
7495    function Prefix
7496      (N : Node_Id) return Node_Id;    -- Node3
7497
7498    function Present_Expr
7499      (N : Node_Id) return Uint;       -- Uint3
7500
7501    function Prev_Ids
7502      (N : Node_Id) return Boolean;    -- Flag6
7503
7504    function Print_In_Hex
7505      (N : Node_Id) return Boolean;    -- Flag13
7506
7507    function Private_Declarations
7508      (N : Node_Id) return List_Id;    -- List3
7509
7510    function Private_Present
7511      (N : Node_Id) return Boolean;    -- Flag15
7512
7513    function Procedure_To_Call
7514      (N : Node_Id) return Node_Id;    -- Node4
7515
7516    function Proper_Body
7517      (N : Node_Id) return Node_Id;    -- Node1
7518
7519    function Protected_Definition
7520      (N : Node_Id) return Node_Id;    -- Node3
7521
7522    function Protected_Present
7523      (N : Node_Id) return Boolean;    -- Flag15
7524
7525    function Raises_Constraint_Error
7526      (N : Node_Id) return Boolean;    -- Flag7
7527
7528    function Range_Constraint
7529      (N : Node_Id) return Node_Id;    -- Node4
7530
7531    function Range_Expression
7532      (N : Node_Id) return Node_Id;    -- Node4
7533
7534    function Real_Range_Specification
7535      (N : Node_Id) return Node_Id;    -- Node4
7536
7537    function Realval
7538      (N : Node_Id) return Ureal;      -- Ureal3
7539
7540    function Reason
7541      (N : Node_Id) return Uint;       -- Uint3
7542
7543    function Record_Extension_Part
7544      (N : Node_Id) return Node_Id;    -- Node3
7545
7546    function Redundant_Use
7547      (N : Node_Id) return Boolean;    -- Flag13
7548
7549    function Return_Type
7550      (N : Node_Id) return Node_Id;    -- Node2
7551
7552    function Reverse_Present
7553      (N : Node_Id) return Boolean;    -- Flag15
7554
7555    function Right_Opnd
7556      (N : Node_Id) return Node_Id;    -- Node3
7557
7558    function Rounded_Result
7559      (N : Node_Id) return Boolean;    -- Flag18
7560
7561    function Scope
7562      (N : Node_Id) return Node_Id;    -- Node3
7563
7564    function Select_Alternatives
7565      (N : Node_Id) return List_Id;    -- List1
7566
7567    function Selector_Name
7568      (N : Node_Id) return Node_Id;    -- Node2
7569
7570    function Selector_Names
7571      (N : Node_Id) return List_Id;    -- List1
7572
7573    function Shift_Count_OK
7574      (N : Node_Id) return Boolean;    -- Flag4
7575
7576    function Source_Type
7577      (N : Node_Id) return Entity_Id;  -- Node1
7578
7579    function Specification
7580      (N : Node_Id) return Node_Id;    -- Node1
7581
7582    function Statements
7583      (N : Node_Id) return List_Id;    -- List3
7584
7585    function Static_Processing_OK
7586      (N : Node_Id) return Boolean;    -- Flag4
7587
7588    function Storage_Pool
7589      (N : Node_Id) return Node_Id;    -- Node1
7590
7591    function Strval
7592      (N : Node_Id) return String_Id;  -- Str3
7593
7594    function Subtype_Indication
7595      (N : Node_Id) return Node_Id;    -- Node5
7596
7597    function Subtype_Mark
7598      (N : Node_Id) return Node_Id;    -- Node4
7599
7600    function Subtype_Marks
7601      (N : Node_Id) return List_Id;    -- List2
7602
7603    function Tagged_Present
7604      (N : Node_Id) return Boolean;    -- Flag15
7605
7606    function Target_Type
7607      (N : Node_Id) return Entity_Id;  -- Node2
7608
7609    function Task_Body_Procedure
7610      (N : Node_Id) return Entity_Id;  -- Node2
7611
7612    function Task_Definition
7613      (N : Node_Id) return Node_Id;    -- Node3
7614
7615    function Then_Actions
7616      (N : Node_Id) return List_Id;    -- List2
7617
7618    function Then_Statements
7619      (N : Node_Id) return List_Id;    -- List2
7620
7621    function Treat_Fixed_As_Integer
7622      (N : Node_Id) return Boolean;    -- Flag14
7623
7624    function Triggering_Alternative
7625      (N : Node_Id) return Node_Id;    -- Node1
7626
7627    function Triggering_Statement
7628      (N : Node_Id) return Node_Id;    -- Node1
7629
7630    function TSS_Elist
7631      (N : Node_Id) return Elist_Id;   -- Elist3
7632
7633    function Type_Definition
7634      (N : Node_Id) return Node_Id;    -- Node3
7635
7636    function Unit
7637      (N : Node_Id) return Node_Id;    -- Node2
7638
7639    function Unknown_Discriminants_Present
7640      (N : Node_Id) return Boolean;    -- Flag13
7641
7642    function Unreferenced_In_Spec
7643      (N : Node_Id) return Boolean;    -- Flag7
7644
7645    function Variant_Part
7646      (N : Node_Id) return Node_Id;    -- Node4
7647
7648    function Variants
7649      (N : Node_Id) return List_Id;    -- List1
7650
7651    function Visible_Declarations
7652      (N : Node_Id) return List_Id;    -- List2
7653
7654    function Was_Originally_Stub
7655      (N : Node_Id) return Boolean;    -- Flag13
7656
7657    function Zero_Cost_Handling
7658      (N : Node_Id) return Boolean;    -- Flag5
7659
7660    --  End functions (note used by xsinfo utility program to end processing)
7661
7662    ----------------------------
7663    -- Node Update Procedures --
7664    ----------------------------
7665
7666    --  These are the corresponding node update routines, which again provide
7667    --  a high level logical access with type checking. In addition to setting
7668    --  the indicated field of the node N to the given Val, in the case of
7669    --  tree pointers (List1-4), the parent pointer of the Val node is set to
7670    --  point back to node N. This automates the setting of the parent pointer.
7671
7672    procedure Set_ABE_Is_Certain
7673      (N : Node_Id; Val : Boolean := True);    -- Flag18
7674
7675    procedure Set_Abort_Present
7676      (N : Node_Id; Val : Boolean := True);    -- Flag15
7677
7678    procedure Set_Abortable_Part
7679      (N : Node_Id; Val : Node_Id);            -- Node2
7680
7681    procedure Set_Abstract_Present
7682      (N : Node_Id; Val : Boolean := True);    -- Flag4
7683
7684    procedure Set_Accept_Handler_Records
7685      (N : Node_Id; Val : List_Id);            -- List5
7686
7687    procedure Set_Accept_Statement
7688      (N : Node_Id; Val : Node_Id);            -- Node2
7689
7690    procedure Set_Access_Definition
7691      (N : Node_Id; Val : Node_Id);            -- Node3
7692
7693    procedure Set_Access_Types_To_Process
7694      (N : Node_Id; Val : Elist_Id);           -- Elist2
7695
7696    procedure Set_Actions
7697      (N : Node_Id; Val : List_Id);            -- List1
7698
7699    procedure Set_Activation_Chain_Entity
7700      (N : Node_Id; Val : Node_Id);            -- Node3
7701
7702    procedure Set_Acts_As_Spec
7703      (N : Node_Id; Val : Boolean := True);    -- Flag4
7704
7705    procedure Set_Aggregate_Bounds
7706      (N : Node_Id; Val : Node_Id);            -- Node3
7707
7708    procedure Set_Aliased_Present
7709      (N : Node_Id; Val : Boolean := True);    -- Flag4
7710
7711    procedure Set_All_Others
7712      (N : Node_Id; Val : Boolean := True);    -- Flag11
7713
7714    procedure Set_All_Present
7715      (N : Node_Id; Val : Boolean := True);    -- Flag15
7716
7717    procedure Set_Alternatives
7718      (N : Node_Id; Val : List_Id);            -- List4
7719
7720    procedure Set_Ancestor_Part
7721      (N : Node_Id; Val : Node_Id);            -- Node3
7722
7723    procedure Set_Array_Aggregate
7724      (N : Node_Id; Val : Node_Id);            -- Node3
7725
7726    procedure Set_Assignment_OK
7727      (N : Node_Id; Val : Boolean := True);    -- Flag15
7728
7729    procedure Set_Associated_Node
7730      (N : Node_Id; Val : Node_Id);            -- Node4
7731
7732    procedure Set_Attribute_Name
7733      (N : Node_Id; Val : Name_Id);            -- Name2
7734
7735    procedure Set_At_End_Proc
7736      (N : Node_Id; Val : Node_Id);            -- Node1
7737
7738    procedure Set_Aux_Decls_Node
7739      (N : Node_Id; Val : Node_Id);            -- Node5
7740
7741    procedure Set_Backwards_OK
7742      (N : Node_Id; Val : Boolean := True);    -- Flag6
7743
7744    procedure Set_Bad_Is_Detected
7745      (N : Node_Id; Val : Boolean := True);    -- Flag15
7746
7747    procedure Set_Body_Required
7748      (N : Node_Id; Val : Boolean := True);    -- Flag13
7749
7750    procedure Set_Body_To_Inline
7751      (N : Node_Id; Val : Node_Id);            -- Node3
7752
7753    procedure Set_Box_Present
7754      (N : Node_Id; Val : Boolean := True);    -- Flag15
7755
7756    procedure Set_By_Ref
7757      (N : Node_Id; Val : Boolean := True);    -- Flag5
7758
7759    procedure Set_Char_Literal_Value
7760      (N : Node_Id; Val : Char_Code);          -- Char_Code2
7761
7762    procedure Set_Chars
7763      (N : Node_Id; Val : Name_Id);            -- Name1
7764
7765    procedure Set_Check_Address_Alignment
7766      (N : Node_Id; Val : Boolean := True);    -- Flag11
7767
7768    procedure Set_Choice_Parameter
7769      (N : Node_Id; Val : Node_Id);            -- Node2
7770
7771    procedure Set_Choices
7772      (N : Node_Id; Val : List_Id);            -- List1
7773
7774    procedure Set_Compile_Time_Known_Aggregate
7775      (N : Node_Id; Val : Boolean := True);    -- Flag18
7776
7777    procedure Set_Component_Associations
7778      (N : Node_Id; Val : List_Id);            -- List2
7779
7780    procedure Set_Component_Clauses
7781      (N : Node_Id; Val : List_Id);            -- List3
7782
7783    procedure Set_Component_Definition
7784      (N : Node_Id; Val : Node_Id);            -- Node4
7785
7786    procedure Set_Component_Items
7787      (N : Node_Id; Val : List_Id);            -- List3
7788
7789    procedure Set_Component_List
7790      (N : Node_Id; Val : Node_Id);            -- Node1
7791
7792    procedure Set_Component_Name
7793      (N : Node_Id; Val : Node_Id);            -- Node1
7794
7795    procedure Set_Condition
7796      (N : Node_Id; Val : Node_Id);            -- Node1
7797
7798    procedure Set_Condition_Actions
7799      (N : Node_Id; Val : List_Id);            -- List3
7800
7801    procedure Set_Config_Pragmas
7802      (N : Node_Id; Val : List_Id);            -- List4
7803
7804    procedure Set_Constant_Present
7805      (N : Node_Id; Val : Boolean := True);    -- Flag17
7806
7807    procedure Set_Constraint
7808      (N : Node_Id; Val : Node_Id);            -- Node3
7809
7810    procedure Set_Constraints
7811      (N : Node_Id; Val : List_Id);            -- List1
7812
7813    procedure Set_Context_Installed
7814      (N : Node_Id; Val : Boolean := True);    -- Flag13
7815
7816    procedure Set_Context_Items
7817      (N : Node_Id; Val : List_Id);            -- List1
7818
7819    procedure Set_Controlling_Argument
7820      (N : Node_Id; Val : Node_Id);            -- Node1
7821
7822    procedure Set_Conversion_OK
7823      (N : Node_Id; Val : Boolean := True);    -- Flag14
7824
7825    procedure Set_Corresponding_Body
7826      (N : Node_Id; Val : Node_Id);            -- Node5
7827
7828    procedure Set_Corresponding_Generic_Association
7829      (N : Node_Id; Val : Node_Id);            -- Node5
7830
7831    procedure Set_Corresponding_Integer_Value
7832      (N : Node_Id; Val : Uint);               -- Uint4
7833
7834    procedure Set_Corresponding_Spec
7835      (N : Node_Id; Val : Node_Id);            -- Node5
7836
7837    procedure Set_Corresponding_Stub
7838      (N : Node_Id; Val : Node_Id);            -- Node3
7839
7840    procedure Set_Dcheck_Function
7841      (N : Node_Id; Val : Entity_Id);          -- Node5
7842
7843    procedure Set_Debug_Statement
7844      (N : Node_Id; Val : Node_Id);            -- Node3
7845
7846    procedure Set_Declarations
7847      (N : Node_Id; Val : List_Id);            -- List2
7848
7849    procedure Set_Default_Expression
7850      (N : Node_Id; Val : Node_Id);            -- Node5
7851
7852    procedure Set_Default_Name
7853      (N : Node_Id; Val : Node_Id);            -- Node2
7854
7855    procedure Set_Defining_Identifier
7856      (N : Node_Id; Val : Entity_Id);          -- Node1
7857
7858    procedure Set_Defining_Unit_Name
7859      (N : Node_Id; Val : Node_Id);            -- Node1
7860
7861    procedure Set_Delay_Alternative
7862      (N : Node_Id; Val : Node_Id);            -- Node4
7863
7864    procedure Set_Delay_Finalize_Attach
7865      (N : Node_Id; Val : Boolean := True);    -- Flag14
7866
7867    procedure Set_Delay_Statement
7868      (N : Node_Id; Val : Node_Id);            -- Node2
7869
7870    procedure Set_Delta_Expression
7871      (N : Node_Id; Val : Node_Id);            -- Node3
7872
7873    procedure Set_Digits_Expression
7874      (N : Node_Id; Val : Node_Id);            -- Node2
7875
7876    procedure Set_Discr_Check_Funcs_Built
7877      (N : Node_Id; Val : Boolean := True);    -- Flag11
7878
7879    procedure Set_Discrete_Choices
7880      (N : Node_Id; Val : List_Id);            -- List4
7881
7882    procedure Set_Discrete_Range
7883      (N : Node_Id; Val : Node_Id);            -- Node4
7884
7885    procedure Set_Discrete_Subtype_Definition
7886      (N : Node_Id; Val : Node_Id);            -- Node4
7887
7888    procedure Set_Discrete_Subtype_Definitions
7889      (N : Node_Id; Val : List_Id);            -- List2
7890
7891    procedure Set_Discriminant_Specifications
7892      (N : Node_Id; Val : List_Id);            -- List4
7893
7894    procedure Set_Discriminant_Type
7895      (N : Node_Id; Val : Node_Id);            -- Node5
7896
7897    procedure Set_Do_Accessibility_Check
7898      (N : Node_Id; Val : Boolean := True);    -- Flag13
7899
7900    procedure Set_Do_Discriminant_Check
7901      (N : Node_Id; Val : Boolean := True);    -- Flag13
7902
7903    procedure Set_Do_Division_Check
7904      (N : Node_Id; Val : Boolean := True);    -- Flag13
7905
7906    procedure Set_Do_Length_Check
7907      (N : Node_Id; Val : Boolean := True);    -- Flag4
7908
7909    procedure Set_Do_Overflow_Check
7910      (N : Node_Id; Val : Boolean := True);    -- Flag17
7911
7912    procedure Set_Do_Range_Check
7913      (N : Node_Id; Val : Boolean := True);    -- Flag9
7914
7915    procedure Set_Do_Storage_Check
7916      (N : Node_Id; Val : Boolean := True);    -- Flag17
7917
7918    procedure Set_Do_Tag_Check
7919      (N : Node_Id; Val : Boolean := True);    -- Flag13
7920
7921    procedure Set_Elaborate_All_Present
7922      (N : Node_Id; Val : Boolean := True);    -- Flag14
7923
7924    procedure Set_Elaborate_Present
7925      (N : Node_Id; Val : Boolean := True);    -- Flag4
7926
7927    procedure Set_Elaboration_Boolean
7928      (N : Node_Id; Val : Node_Id);            -- Node2
7929
7930    procedure Set_Else_Actions
7931      (N : Node_Id; Val : List_Id);            -- List3
7932
7933    procedure Set_Else_Statements
7934      (N : Node_Id; Val : List_Id);            -- List4
7935
7936    procedure Set_Elsif_Parts
7937      (N : Node_Id; Val : List_Id);            -- List3
7938
7939    procedure Set_Enclosing_Variant
7940      (N : Node_Id; Val : Node_Id);            -- Node2
7941
7942    procedure Set_End_Label
7943      (N : Node_Id; Val : Node_Id);            -- Node4
7944
7945    procedure Set_End_Span
7946      (N : Node_Id; Val : Uint);               -- Uint5
7947
7948    procedure Set_Entity
7949      (N : Node_Id; Val : Node_Id);            -- Node4
7950
7951    procedure Set_Entry_Body_Formal_Part
7952      (N : Node_Id; Val : Node_Id);            -- Node5
7953
7954    procedure Set_Entry_Call_Alternative
7955      (N : Node_Id; Val : Node_Id);            -- Node1
7956
7957    procedure Set_Entry_Call_Statement
7958      (N : Node_Id; Val : Node_Id);            -- Node1
7959
7960    procedure Set_Entry_Direct_Name
7961      (N : Node_Id; Val : Node_Id);            -- Node1
7962
7963    procedure Set_Entry_Index
7964      (N : Node_Id; Val : Node_Id);            -- Node5
7965
7966    procedure Set_Entry_Index_Specification
7967      (N : Node_Id; Val : Node_Id);            -- Node4
7968
7969    procedure Set_Etype
7970      (N : Node_Id; Val : Node_Id);            -- Node5
7971
7972    procedure Set_Exception_Choices
7973      (N : Node_Id; Val : List_Id);            -- List4
7974
7975    procedure Set_Exception_Handlers
7976      (N : Node_Id; Val : List_Id);            -- List5
7977
7978    procedure Set_Exception_Junk
7979      (N : Node_Id; Val : Boolean := True);    -- Flag11
7980
7981    procedure Set_Expansion_Delayed
7982      (N : Node_Id; Val : Boolean := True);    -- Flag11
7983
7984    procedure Set_Explicit_Actual_Parameter
7985      (N : Node_Id; Val : Node_Id);            -- Node3
7986
7987    procedure Set_Explicit_Generic_Actual_Parameter
7988      (N : Node_Id; Val : Node_Id);            -- Node1
7989
7990    procedure Set_Expression
7991      (N : Node_Id; Val : Node_Id);            -- Node3
7992
7993    procedure Set_Expressions
7994      (N : Node_Id; Val : List_Id);            -- List1
7995
7996    procedure Set_First_Bit
7997      (N : Node_Id; Val : Node_Id);            -- Node3
7998
7999    procedure Set_First_Inlined_Subprogram
8000      (N : Node_Id; Val : Entity_Id);          -- Node3
8001
8002    procedure Set_First_Name
8003      (N : Node_Id; Val : Boolean := True);    -- Flag5
8004
8005    procedure Set_First_Named_Actual
8006      (N : Node_Id; Val : Node_Id);            -- Node4
8007
8008    procedure Set_First_Real_Statement
8009      (N : Node_Id; Val : Node_Id);            -- Node2
8010
8011    procedure Set_First_Subtype_Link
8012      (N : Node_Id; Val : Entity_Id);          -- Node5
8013
8014    procedure Set_Float_Truncate
8015      (N : Node_Id; Val : Boolean := True);    -- Flag11
8016
8017    procedure Set_Formal_Type_Definition
8018      (N : Node_Id; Val : Node_Id);            -- Node3
8019
8020    procedure Set_Forwards_OK
8021      (N : Node_Id; Val : Boolean := True);    -- Flag5
8022
8023    procedure Set_From_At_Mod
8024      (N : Node_Id; Val : Boolean := True);    -- Flag4
8025
8026    procedure Set_From_Default
8027      (N : Node_Id; Val : Boolean := True);    -- Flag6
8028
8029    procedure Set_Generic_Associations
8030      (N : Node_Id; Val : List_Id);            -- List3
8031
8032    procedure Set_Generic_Formal_Declarations
8033      (N : Node_Id; Val : List_Id);            -- List2
8034
8035    procedure Set_Generic_Parent
8036      (N : Node_Id; Val : Node_Id);            -- Node5
8037
8038    procedure Set_Generic_Parent_Type
8039      (N : Node_Id; Val : Node_Id);            -- Node4
8040
8041    procedure Set_Handled_Statement_Sequence
8042      (N : Node_Id; Val : Node_Id);            -- Node4
8043
8044    procedure Set_Handler_List_Entry
8045      (N : Node_Id; Val : Node_Id);            -- Node2
8046
8047    procedure Set_Has_Created_Identifier
8048      (N : Node_Id; Val : Boolean := True);    -- Flag15
8049
8050    procedure Set_Has_Dynamic_Length_Check
8051      (N : Node_Id; Val : Boolean := True);    -- Flag10
8052
8053    procedure Set_Has_Dynamic_Range_Check
8054      (N : Node_Id; Val : Boolean := True);    -- Flag12
8055
8056    procedure Set_Has_No_Elaboration_Code
8057      (N : Node_Id; Val : Boolean := True);    -- Flag17
8058
8059    procedure Set_Has_Priority_Pragma
8060      (N : Node_Id; Val : Boolean := True);    -- Flag6
8061
8062    procedure Set_Has_Private_View
8063      (N : Node_Id; Val : Boolean := True);    -- Flag11
8064
8065    procedure Set_Has_Storage_Size_Pragma
8066      (N : Node_Id; Val : Boolean := True);    -- Flag5
8067
8068    procedure Set_Has_Task_Info_Pragma
8069      (N : Node_Id; Val : Boolean := True);    -- Flag7
8070
8071    procedure Set_Has_Task_Name_Pragma
8072      (N : Node_Id; Val : Boolean := True);    -- Flag8
8073
8074    procedure Set_Has_Wide_Character
8075      (N : Node_Id; Val : Boolean := True);    -- Flag11
8076
8077    procedure Set_Hidden_By_Use_Clause
8078      (N : Node_Id; Val : Elist_Id);           -- Elist4
8079
8080    procedure Set_High_Bound
8081      (N : Node_Id; Val : Node_Id);            -- Node2
8082
8083    procedure Set_Identifier
8084      (N : Node_Id; Val : Node_Id);            -- Node1
8085
8086    procedure Set_Implicit_With
8087      (N : Node_Id; Val : Boolean := True);    -- Flag16
8088
8089    procedure Set_In_Present
8090      (N : Node_Id; Val : Boolean := True);    -- Flag15
8091
8092    procedure Set_Includes_Infinities
8093      (N : Node_Id; Val : Boolean := True);    -- Flag11
8094
8095    procedure Set_Instance_Spec
8096      (N : Node_Id; Val : Node_Id);            -- Node5
8097
8098    procedure Set_Intval
8099      (N : Node_Id; Val : Uint);               -- Uint3
8100
8101    procedure Set_Is_Asynchronous_Call_Block
8102      (N : Node_Id; Val : Boolean := True);    -- Flag7
8103
8104    procedure Set_Is_Component_Left_Opnd
8105      (N : Node_Id; Val : Boolean := True);    -- Flag13
8106
8107    procedure Set_Is_Component_Right_Opnd
8108      (N : Node_Id; Val : Boolean := True);    -- Flag14
8109
8110    procedure Set_Is_Controlling_Actual
8111      (N : Node_Id; Val : Boolean := True);    -- Flag16
8112
8113    procedure Set_Is_In_Discriminant_Check
8114      (N : Node_Id; Val : Boolean := True);    -- Flag11
8115
8116    procedure Set_Is_Machine_Number
8117      (N : Node_Id; Val : Boolean := True);    -- Flag11
8118
8119    procedure Set_Is_Null_Loop
8120      (N : Node_Id; Val : Boolean := True);    -- Flag16
8121
8122    procedure Set_Is_Overloaded
8123      (N : Node_Id; Val : Boolean := True);    -- Flag5
8124
8125    procedure Set_Is_Power_Of_2_For_Shift
8126      (N : Node_Id; Val : Boolean := True);    -- Flag13
8127
8128    procedure Set_Is_Protected_Subprogram_Body
8129      (N : Node_Id; Val : Boolean := True);    -- Flag7
8130
8131    procedure Set_Is_Static_Expression
8132      (N : Node_Id; Val : Boolean := True);    -- Flag6
8133
8134    procedure Set_Is_Subprogram_Descriptor
8135      (N : Node_Id; Val : Boolean := True);    -- Flag16
8136
8137    procedure Set_Is_Task_Allocation_Block
8138      (N : Node_Id; Val : Boolean := True);    -- Flag6
8139
8140    procedure Set_Is_Task_Master
8141      (N : Node_Id; Val : Boolean := True);    -- Flag5
8142
8143    procedure Set_Iteration_Scheme
8144      (N : Node_Id; Val : Node_Id);            -- Node2
8145
8146    procedure Set_Itype
8147      (N : Node_Id; Val : Entity_Id);          -- Node1
8148
8149    procedure Set_Kill_Range_Check
8150      (N : Node_Id; Val : Boolean := True);    -- Flag11
8151
8152    procedure Set_Last_Bit
8153      (N : Node_Id; Val : Node_Id);            -- Node4
8154
8155    procedure Set_Last_Name
8156      (N : Node_Id; Val : Boolean := True);    -- Flag6
8157
8158    procedure Set_Library_Unit
8159      (N : Node_Id; Val : Node_Id);            -- Node4
8160
8161    procedure Set_Label_Construct
8162      (N : Node_Id; Val : Node_Id);            -- Node2
8163
8164    procedure Set_Left_Opnd
8165      (N : Node_Id; Val : Node_Id);            -- Node2
8166
8167    procedure Set_Limited_View_Installed
8168      (N : Node_Id; Val : Boolean := True);    -- Flag18
8169
8170    procedure Set_Limited_Present
8171      (N : Node_Id; Val : Boolean := True);    -- Flag17
8172
8173    procedure Set_Literals
8174      (N : Node_Id; Val : List_Id);            -- List1
8175
8176    procedure Set_Loop_Actions
8177      (N : Node_Id; Val : List_Id);            -- List2
8178
8179    procedure Set_Loop_Parameter_Specification
8180      (N : Node_Id; Val : Node_Id);            -- Node4
8181
8182    procedure Set_Low_Bound
8183      (N : Node_Id; Val : Node_Id);            -- Node1
8184
8185    procedure Set_Mod_Clause
8186      (N : Node_Id; Val : Node_Id);            -- Node2
8187
8188    procedure Set_More_Ids
8189      (N : Node_Id; Val : Boolean := True);    -- Flag5
8190
8191    procedure Set_Must_Be_Byte_Aligned
8192      (N : Node_Id; Val : Boolean := True);    -- Flag14
8193
8194    procedure Set_Must_Not_Freeze
8195      (N : Node_Id; Val : Boolean := True);    -- Flag8
8196
8197    procedure Set_Name
8198      (N : Node_Id; Val : Node_Id);            -- Node2
8199
8200    procedure Set_Names
8201      (N : Node_Id; Val : List_Id);            -- List2
8202
8203    procedure Set_Next_Entity
8204      (N : Node_Id; Val : Node_Id);            -- Node2
8205
8206    procedure Set_Next_Named_Actual
8207      (N : Node_Id; Val : Node_Id);            -- Node4
8208
8209    procedure Set_Next_Rep_Item
8210      (N : Node_Id; Val : Node_Id);            -- Node4
8211
8212    procedure Set_Next_Use_Clause
8213      (N : Node_Id; Val : Node_Id);            -- Node3
8214
8215    procedure Set_No_Ctrl_Actions
8216      (N : Node_Id; Val : Boolean := True);    -- Flag7
8217
8218    procedure Set_No_Elaboration_Check
8219      (N : Node_Id; Val : Boolean := True);    -- Flag14
8220
8221    procedure Set_No_Entities_Ref_In_Spec
8222      (N : Node_Id; Val : Boolean := True);    -- Flag8
8223
8224    procedure Set_No_Initialization
8225      (N : Node_Id; Val : Boolean := True);    -- Flag13
8226
8227    procedure Set_No_Truncation
8228      (N : Node_Id; Val : Boolean := True);    -- Flag17
8229
8230    procedure Set_Null_Present
8231      (N : Node_Id; Val : Boolean := True);    -- Flag13
8232
8233    procedure Set_Null_Record_Present
8234      (N : Node_Id; Val : Boolean := True);    -- Flag17
8235
8236    procedure Set_Object_Definition
8237      (N : Node_Id; Val : Node_Id);            -- Node4
8238
8239    procedure Set_OK_For_Stream
8240      (N : Node_Id; Val : Boolean := True);    -- Flag4
8241
8242    procedure Set_Original_Discriminant
8243      (N : Node_Id; Val : Node_Id);            -- Node2
8244
8245    procedure Set_Original_Entity
8246      (N : Node_Id; Val : Entity_Id);          -- Node2
8247
8248    procedure Set_Others_Discrete_Choices
8249      (N : Node_Id; Val : List_Id);            -- List1
8250
8251    procedure Set_Out_Present
8252      (N : Node_Id; Val : Boolean := True);    -- Flag17
8253
8254    procedure Set_Parameter_Associations
8255      (N : Node_Id; Val : List_Id);            -- List3
8256
8257    procedure Set_Parameter_List_Truncated
8258      (N : Node_Id; Val : Boolean := True);    -- Flag17
8259
8260    procedure Set_Parameter_Specifications
8261      (N : Node_Id; Val : List_Id);            -- List3
8262
8263    procedure Set_Parameter_Type
8264      (N : Node_Id; Val : Node_Id);            -- Node2
8265
8266    procedure Set_Parent_Spec
8267      (N : Node_Id; Val : Node_Id);            -- Node4
8268
8269    procedure Set_Position
8270      (N : Node_Id; Val : Node_Id);            -- Node2
8271
8272    procedure Set_Pragma_Argument_Associations
8273      (N : Node_Id; Val : List_Id);            -- List2
8274
8275    procedure Set_Pragmas_After
8276      (N : Node_Id; Val : List_Id);            -- List5
8277
8278    procedure Set_Pragmas_Before
8279      (N : Node_Id; Val : List_Id);            -- List4
8280
8281    procedure Set_Prefix
8282      (N : Node_Id; Val : Node_Id);            -- Node3
8283
8284    procedure Set_Present_Expr
8285      (N : Node_Id; Val : Uint);               -- Uint3
8286
8287    procedure Set_Prev_Ids
8288      (N : Node_Id; Val : Boolean := True);    -- Flag6
8289
8290    procedure Set_Print_In_Hex
8291      (N : Node_Id; Val : Boolean := True);    -- Flag13
8292
8293    procedure Set_Private_Declarations
8294      (N : Node_Id; Val : List_Id);            -- List3
8295
8296    procedure Set_Private_Present
8297      (N : Node_Id; Val : Boolean := True);    -- Flag15
8298
8299    procedure Set_Procedure_To_Call
8300      (N : Node_Id; Val : Node_Id);            -- Node4
8301
8302    procedure Set_Proper_Body
8303      (N : Node_Id; Val : Node_Id);            -- Node1
8304
8305    procedure Set_Protected_Definition
8306      (N : Node_Id; Val : Node_Id);            -- Node3
8307
8308    procedure Set_Protected_Present
8309      (N : Node_Id; Val : Boolean := True);    -- Flag15
8310
8311    procedure Set_Raises_Constraint_Error
8312      (N : Node_Id; Val : Boolean := True);    -- Flag7
8313
8314    procedure Set_Range_Constraint
8315      (N : Node_Id; Val : Node_Id);            -- Node4
8316
8317    procedure Set_Range_Expression
8318      (N : Node_Id; Val : Node_Id);            -- Node4
8319
8320    procedure Set_Real_Range_Specification
8321      (N : Node_Id; Val : Node_Id);            -- Node4
8322
8323    procedure Set_Realval
8324      (N : Node_Id; Val : Ureal);              -- Ureal3
8325
8326    procedure Set_Reason
8327      (N : Node_Id; Val : Uint);               -- Uint3
8328
8329    procedure Set_Record_Extension_Part
8330      (N : Node_Id; Val : Node_Id);            -- Node3
8331
8332    procedure Set_Redundant_Use
8333      (N : Node_Id; Val : Boolean := True);    -- Flag13
8334
8335    procedure Set_Return_Type
8336      (N : Node_Id; Val : Node_Id);            -- Node2
8337
8338    procedure Set_Reverse_Present
8339      (N : Node_Id; Val : Boolean := True);    -- Flag15
8340
8341    procedure Set_Right_Opnd
8342      (N : Node_Id; Val : Node_Id);            -- Node3
8343
8344    procedure Set_Rounded_Result
8345      (N : Node_Id; Val : Boolean := True);    -- Flag18
8346
8347    procedure Set_Scope
8348      (N : Node_Id; Val : Node_Id);            -- Node3
8349
8350    procedure Set_Select_Alternatives
8351      (N : Node_Id; Val : List_Id);            -- List1
8352
8353    procedure Set_Selector_Name
8354      (N : Node_Id; Val : Node_Id);            -- Node2
8355
8356    procedure Set_Selector_Names
8357      (N : Node_Id; Val : List_Id);            -- List1
8358
8359    procedure Set_Shift_Count_OK
8360      (N : Node_Id; Val : Boolean := True);    -- Flag4
8361
8362    procedure Set_Source_Type
8363      (N : Node_Id; Val : Entity_Id);          -- Node1
8364
8365    procedure Set_Specification
8366      (N : Node_Id; Val : Node_Id);            -- Node1
8367
8368    procedure Set_Statements
8369      (N : Node_Id; Val : List_Id);            -- List3
8370
8371    procedure Set_Static_Processing_OK
8372      (N : Node_Id; Val : Boolean);            -- Flag4
8373
8374    procedure Set_Storage_Pool
8375      (N : Node_Id; Val : Node_Id);            -- Node1
8376
8377    procedure Set_Strval
8378      (N : Node_Id; Val : String_Id);          -- Str3
8379
8380    procedure Set_Subtype_Indication
8381      (N : Node_Id; Val : Node_Id);            -- Node5
8382
8383    procedure Set_Subtype_Mark
8384      (N : Node_Id; Val : Node_Id);            -- Node4
8385
8386    procedure Set_Subtype_Marks
8387      (N : Node_Id; Val : List_Id);            -- List2
8388
8389    procedure Set_Tagged_Present
8390      (N : Node_Id; Val : Boolean := True);    -- Flag15
8391
8392    procedure Set_Target_Type
8393      (N : Node_Id; Val : Entity_Id);          -- Node2
8394
8395    procedure Set_Task_Body_Procedure
8396      (N : Node_Id; Val : Entity_Id);          -- Node2
8397
8398    procedure Set_Task_Definition
8399      (N : Node_Id; Val : Node_Id);            -- Node3
8400
8401    procedure Set_Then_Actions
8402      (N : Node_Id; Val : List_Id);            -- List2
8403
8404    procedure Set_Then_Statements
8405      (N : Node_Id; Val : List_Id);            -- List2
8406
8407    procedure Set_Treat_Fixed_As_Integer
8408      (N : Node_Id; Val : Boolean := True);    -- Flag14
8409
8410    procedure Set_Triggering_Alternative
8411      (N : Node_Id; Val : Node_Id);            -- Node1
8412
8413    procedure Set_Triggering_Statement
8414      (N : Node_Id; Val : Node_Id);            -- Node1
8415
8416    procedure Set_TSS_Elist
8417      (N : Node_Id; Val : Elist_Id);           -- Elist3
8418
8419    procedure Set_Type_Definition
8420      (N : Node_Id; Val : Node_Id);            -- Node3
8421
8422    procedure Set_Unit
8423      (N : Node_Id; Val : Node_Id);            -- Node2
8424
8425    procedure Set_Unknown_Discriminants_Present
8426      (N : Node_Id; Val : Boolean := True);    -- Flag13
8427
8428    procedure Set_Unreferenced_In_Spec
8429      (N : Node_Id; Val : Boolean := True);    -- Flag7
8430
8431    procedure Set_Variant_Part
8432      (N : Node_Id; Val : Node_Id);            -- Node4
8433
8434    procedure Set_Variants
8435      (N : Node_Id; Val : List_Id);            -- List1
8436
8437    procedure Set_Visible_Declarations
8438      (N : Node_Id; Val : List_Id);            -- List2
8439
8440    procedure Set_Was_Originally_Stub
8441      (N : Node_Id; Val : Boolean := True);    -- Flag13
8442
8443    procedure Set_Zero_Cost_Handling
8444      (N : Node_Id; Val : Boolean := True);    -- Flag5
8445
8446    -------------------------
8447    -- Iterator Procedures --
8448    -------------------------
8449
8450    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
8451
8452    procedure Next_Entity       (N : in out Node_Id);
8453    procedure Next_Named_Actual (N : in out Node_Id);
8454    procedure Next_Rep_Item     (N : in out Node_Id);
8455    procedure Next_Use_Clause   (N : in out Node_Id);
8456
8457    --------------------------------------
8458    -- Logical Access to End_Span Field --
8459    --------------------------------------
8460
8461    function End_Location (N : Node_Id) return Source_Ptr;
8462    --  N is an N_If_Statement or N_Case_Statement node, and this
8463    --  function returns the location of the IF token in the END IF
8464    --  sequence by translating the value of the End_Span field.
8465
8466    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
8467    --  N is an N_If_Statement or N_Case_Statement node. This procedure
8468    --  sets the End_Span field to correspond to the given value S. In
8469    --  other words, End_Span is set to the difference between S and
8470    --  Sloc (N), the starting location.
8471
8472    --------------------
8473    -- Inline Pragmas --
8474    --------------------
8475
8476    pragma Inline (ABE_Is_Certain);
8477    pragma Inline (Abort_Present);
8478    pragma Inline (Abortable_Part);
8479    pragma Inline (Abstract_Present);
8480    pragma Inline (Accept_Handler_Records);
8481    pragma Inline (Accept_Statement);
8482    pragma Inline (Access_Definition);
8483    pragma Inline (Access_Types_To_Process);
8484    pragma Inline (Actions);
8485    pragma Inline (Activation_Chain_Entity);
8486    pragma Inline (Acts_As_Spec);
8487    pragma Inline (Aggregate_Bounds);
8488    pragma Inline (Aliased_Present);
8489    pragma Inline (All_Others);
8490    pragma Inline (All_Present);
8491    pragma Inline (Alternatives);
8492    pragma Inline (Ancestor_Part);
8493    pragma Inline (Array_Aggregate);
8494    pragma Inline (Assignment_OK);
8495    pragma Inline (Associated_Node);
8496    pragma Inline (At_End_Proc);
8497    pragma Inline (Attribute_Name);
8498    pragma Inline (Aux_Decls_Node);
8499    pragma Inline (Backwards_OK);
8500    pragma Inline (Bad_Is_Detected);
8501    pragma Inline (Body_To_Inline);
8502    pragma Inline (Body_Required);
8503    pragma Inline (By_Ref);
8504    pragma Inline (Box_Present);
8505    pragma Inline (Char_Literal_Value);
8506    pragma Inline (Chars);
8507    pragma Inline (Check_Address_Alignment);
8508    pragma Inline (Choice_Parameter);
8509    pragma Inline (Choices);
8510    pragma Inline (Compile_Time_Known_Aggregate);
8511    pragma Inline (Component_Associations);
8512    pragma Inline (Component_Clauses);
8513    pragma Inline (Component_Definition);
8514    pragma Inline (Component_Items);
8515    pragma Inline (Component_List);
8516    pragma Inline (Component_Name);
8517    pragma Inline (Condition);
8518    pragma Inline (Condition_Actions);
8519    pragma Inline (Config_Pragmas);
8520    pragma Inline (Constant_Present);
8521    pragma Inline (Constraint);
8522    pragma Inline (Constraints);
8523    pragma Inline (Context_Installed);
8524    pragma Inline (Context_Items);
8525    pragma Inline (Controlling_Argument);
8526    pragma Inline (Conversion_OK);
8527    pragma Inline (Corresponding_Body);
8528    pragma Inline (Corresponding_Generic_Association);
8529    pragma Inline (Corresponding_Integer_Value);
8530    pragma Inline (Corresponding_Spec);
8531    pragma Inline (Corresponding_Stub);
8532    pragma Inline (Dcheck_Function);
8533    pragma Inline (Debug_Statement);
8534    pragma Inline (Declarations);
8535    pragma Inline (Default_Expression);
8536    pragma Inline (Default_Name);
8537    pragma Inline (Defining_Identifier);
8538    pragma Inline (Defining_Unit_Name);
8539    pragma Inline (Delay_Alternative);
8540    pragma Inline (Delay_Finalize_Attach);
8541    pragma Inline (Delay_Statement);
8542    pragma Inline (Delta_Expression);
8543    pragma Inline (Digits_Expression);
8544    pragma Inline (Discr_Check_Funcs_Built);
8545    pragma Inline (Discrete_Choices);
8546    pragma Inline (Discrete_Range);
8547    pragma Inline (Discrete_Subtype_Definition);
8548    pragma Inline (Discrete_Subtype_Definitions);
8549    pragma Inline (Discriminant_Specifications);
8550    pragma Inline (Discriminant_Type);
8551    pragma Inline (Do_Accessibility_Check);
8552    pragma Inline (Do_Discriminant_Check);
8553    pragma Inline (Do_Length_Check);
8554    pragma Inline (Do_Division_Check);
8555    pragma Inline (Do_Overflow_Check);
8556    pragma Inline (Do_Range_Check);
8557    pragma Inline (Do_Storage_Check);
8558    pragma Inline (Do_Tag_Check);
8559    pragma Inline (Elaborate_Present);
8560    pragma Inline (Elaborate_All_Present);
8561    pragma Inline (Elaboration_Boolean);
8562    pragma Inline (Else_Actions);
8563    pragma Inline (Else_Statements);
8564    pragma Inline (Elsif_Parts);
8565    pragma Inline (Enclosing_Variant);
8566    pragma Inline (End_Label);
8567    pragma Inline (End_Span);
8568    pragma Inline (Entity);
8569    pragma Inline (Entity_Or_Associated_Node);
8570    pragma Inline (Entry_Body_Formal_Part);
8571    pragma Inline (Entry_Call_Alternative);
8572    pragma Inline (Entry_Call_Statement);
8573    pragma Inline (Entry_Direct_Name);
8574    pragma Inline (Entry_Index);
8575    pragma Inline (Entry_Index_Specification);
8576    pragma Inline (Etype);
8577    pragma Inline (Exception_Choices);
8578    pragma Inline (Exception_Junk);
8579    pragma Inline (Exception_Handlers);
8580    pragma Inline (Expansion_Delayed);
8581    pragma Inline (Explicit_Actual_Parameter);
8582    pragma Inline (Explicit_Generic_Actual_Parameter);
8583    pragma Inline (Expression);
8584    pragma Inline (Expressions);
8585    pragma Inline (First_Bit);
8586    pragma Inline (First_Inlined_Subprogram);
8587    pragma Inline (First_Name);
8588    pragma Inline (First_Named_Actual);
8589    pragma Inline (First_Real_Statement);
8590    pragma Inline (First_Subtype_Link);
8591    pragma Inline (Float_Truncate);
8592    pragma Inline (Formal_Type_Definition);
8593    pragma Inline (Forwards_OK);
8594    pragma Inline (From_At_Mod);
8595    pragma Inline (From_Default);
8596    pragma Inline (Generic_Associations);
8597    pragma Inline (Generic_Formal_Declarations);
8598    pragma Inline (Generic_Parent);
8599    pragma Inline (Generic_Parent_Type);
8600    pragma Inline (Handled_Statement_Sequence);
8601    pragma Inline (Handler_List_Entry);
8602    pragma Inline (Has_Created_Identifier);
8603    pragma Inline (Has_Dynamic_Length_Check);
8604    pragma Inline (Has_Dynamic_Range_Check);
8605    pragma Inline (Has_No_Elaboration_Code);
8606    pragma Inline (Has_Priority_Pragma);
8607    pragma Inline (Has_Private_View);
8608    pragma Inline (Has_Storage_Size_Pragma);
8609    pragma Inline (Has_Task_Info_Pragma);
8610    pragma Inline (Has_Task_Name_Pragma);
8611    pragma Inline (Has_Wide_Character);
8612    pragma Inline (Hidden_By_Use_Clause);
8613    pragma Inline (High_Bound);
8614    pragma Inline (Identifier);
8615    pragma Inline (Implicit_With);
8616    pragma Inline (Includes_Infinities);
8617    pragma Inline (In_Present);
8618    pragma Inline (Instance_Spec);
8619    pragma Inline (Intval);
8620    pragma Inline (Is_Asynchronous_Call_Block);
8621    pragma Inline (Is_Component_Left_Opnd);
8622    pragma Inline (Is_Component_Right_Opnd);
8623    pragma Inline (Is_Controlling_Actual);
8624    pragma Inline (Is_In_Discriminant_Check);
8625    pragma Inline (Is_Machine_Number);
8626    pragma Inline (Is_Null_Loop);
8627    pragma Inline (Is_Overloaded);
8628    pragma Inline (Is_Power_Of_2_For_Shift);
8629    pragma Inline (Is_Protected_Subprogram_Body);
8630    pragma Inline (Is_Static_Expression);
8631    pragma Inline (Is_Subprogram_Descriptor);
8632    pragma Inline (Is_Task_Allocation_Block);
8633    pragma Inline (Is_Task_Master);
8634    pragma Inline (Iteration_Scheme);
8635    pragma Inline (Itype);
8636    pragma Inline (Kill_Range_Check);
8637    pragma Inline (Last_Bit);
8638    pragma Inline (Last_Name);
8639    pragma Inline (Library_Unit);
8640    pragma Inline (Label_Construct);
8641    pragma Inline (Left_Opnd);
8642    pragma Inline (Limited_View_Installed);
8643    pragma Inline (Limited_Present);
8644    pragma Inline (Literals);
8645    pragma Inline (Loop_Actions);
8646    pragma Inline (Loop_Parameter_Specification);
8647    pragma Inline (Low_Bound);
8648    pragma Inline (Mod_Clause);
8649    pragma Inline (More_Ids);
8650    pragma Inline (Must_Be_Byte_Aligned);
8651    pragma Inline (Must_Not_Freeze);
8652    pragma Inline (Name);
8653    pragma Inline (Names);
8654    pragma Inline (Next_Entity);
8655    pragma Inline (Next_Named_Actual);
8656    pragma Inline (Next_Rep_Item);
8657    pragma Inline (Next_Use_Clause);
8658    pragma Inline (No_Ctrl_Actions);
8659    pragma Inline (No_Elaboration_Check);
8660    pragma Inline (No_Entities_Ref_In_Spec);
8661    pragma Inline (No_Initialization);
8662    pragma Inline (No_Truncation);
8663    pragma Inline (Null_Present);
8664    pragma Inline (Null_Record_Present);
8665    pragma Inline (Object_Definition);
8666    pragma Inline (OK_For_Stream);
8667    pragma Inline (Original_Discriminant);
8668    pragma Inline (Original_Entity);
8669    pragma Inline (Others_Discrete_Choices);
8670    pragma Inline (Out_Present);
8671    pragma Inline (Parameter_Associations);
8672    pragma Inline (Parameter_Specifications);
8673    pragma Inline (Parameter_List_Truncated);
8674    pragma Inline (Parameter_Type);
8675    pragma Inline (Parent_Spec);
8676    pragma Inline (Position);
8677    pragma Inline (Pragma_Argument_Associations);
8678    pragma Inline (Pragmas_After);
8679    pragma Inline (Pragmas_Before);
8680    pragma Inline (Prefix);
8681    pragma Inline (Present_Expr);
8682    pragma Inline (Prev_Ids);
8683    pragma Inline (Print_In_Hex);
8684    pragma Inline (Private_Declarations);
8685    pragma Inline (Private_Present);
8686    pragma Inline (Procedure_To_Call);
8687    pragma Inline (Proper_Body);
8688    pragma Inline (Protected_Definition);
8689    pragma Inline (Protected_Present);
8690    pragma Inline (Raises_Constraint_Error);
8691    pragma Inline (Range_Constraint);
8692    pragma Inline (Range_Expression);
8693    pragma Inline (Real_Range_Specification);
8694    pragma Inline (Realval);
8695    pragma Inline (Reason);
8696    pragma Inline (Record_Extension_Part);
8697    pragma Inline (Redundant_Use);
8698    pragma Inline (Return_Type);
8699    pragma Inline (Reverse_Present);
8700    pragma Inline (Right_Opnd);
8701    pragma Inline (Rounded_Result);
8702    pragma Inline (Scope);
8703    pragma Inline (Select_Alternatives);
8704    pragma Inline (Selector_Name);
8705    pragma Inline (Selector_Names);
8706    pragma Inline (Shift_Count_OK);
8707    pragma Inline (Source_Type);
8708    pragma Inline (Specification);
8709    pragma Inline (Statements);
8710    pragma Inline (Static_Processing_OK);
8711    pragma Inline (Storage_Pool);
8712    pragma Inline (Strval);
8713    pragma Inline (Subtype_Indication);
8714    pragma Inline (Subtype_Mark);
8715    pragma Inline (Subtype_Marks);
8716    pragma Inline (Tagged_Present);
8717    pragma Inline (Target_Type);
8718    pragma Inline (Task_Body_Procedure);
8719    pragma Inline (Task_Definition);
8720    pragma Inline (Then_Actions);
8721    pragma Inline (Then_Statements);
8722    pragma Inline (Triggering_Alternative);
8723    pragma Inline (Triggering_Statement);
8724    pragma Inline (Treat_Fixed_As_Integer);
8725    pragma Inline (TSS_Elist);
8726    pragma Inline (Type_Definition);
8727    pragma Inline (Unit);
8728    pragma Inline (Unknown_Discriminants_Present);
8729    pragma Inline (Unreferenced_In_Spec);
8730    pragma Inline (Variant_Part);
8731    pragma Inline (Variants);
8732    pragma Inline (Visible_Declarations);
8733    pragma Inline (Was_Originally_Stub);
8734    pragma Inline (Zero_Cost_Handling);
8735
8736    pragma Inline (Set_ABE_Is_Certain);
8737    pragma Inline (Set_Abort_Present);
8738    pragma Inline (Set_Abortable_Part);
8739    pragma Inline (Set_Abstract_Present);
8740    pragma Inline (Set_Accept_Handler_Records);
8741    pragma Inline (Set_Accept_Statement);
8742    pragma Inline (Set_Access_Definition);
8743    pragma Inline (Set_Access_Types_To_Process);
8744    pragma Inline (Set_Actions);
8745    pragma Inline (Set_Activation_Chain_Entity);
8746    pragma Inline (Set_Acts_As_Spec);
8747    pragma Inline (Set_Aggregate_Bounds);
8748    pragma Inline (Set_Aliased_Present);
8749    pragma Inline (Set_All_Others);
8750    pragma Inline (Set_All_Present);
8751    pragma Inline (Set_Alternatives);
8752    pragma Inline (Set_Ancestor_Part);
8753    pragma Inline (Set_Array_Aggregate);
8754    pragma Inline (Set_Assignment_OK);
8755    pragma Inline (Set_Associated_Node);
8756    pragma Inline (Set_At_End_Proc);
8757    pragma Inline (Set_Attribute_Name);
8758    pragma Inline (Set_Aux_Decls_Node);
8759    pragma Inline (Set_Backwards_OK);
8760    pragma Inline (Set_Bad_Is_Detected);
8761    pragma Inline (Set_Body_To_Inline);
8762    pragma Inline (Set_Body_Required);
8763    pragma Inline (Set_By_Ref);
8764    pragma Inline (Set_Box_Present);
8765    pragma Inline (Set_Char_Literal_Value);
8766    pragma Inline (Set_Chars);
8767    pragma Inline (Set_Check_Address_Alignment);
8768    pragma Inline (Set_Choice_Parameter);
8769    pragma Inline (Set_Choices);
8770    pragma Inline (Set_Compile_Time_Known_Aggregate);
8771    pragma Inline (Set_Component_Associations);
8772    pragma Inline (Set_Component_Clauses);
8773    pragma Inline (Set_Component_Definition);
8774    pragma Inline (Set_Component_Items);
8775    pragma Inline (Set_Component_List);
8776    pragma Inline (Set_Component_Name);
8777    pragma Inline (Set_Condition);
8778    pragma Inline (Set_Condition_Actions);
8779    pragma Inline (Set_Config_Pragmas);
8780    pragma Inline (Set_Constant_Present);
8781    pragma Inline (Set_Constraint);
8782    pragma Inline (Set_Constraints);
8783    pragma Inline (Set_Context_Installed);
8784    pragma Inline (Set_Context_Items);
8785    pragma Inline (Set_Controlling_Argument);
8786    pragma Inline (Set_Conversion_OK);
8787    pragma Inline (Set_Corresponding_Body);
8788    pragma Inline (Set_Corresponding_Generic_Association);
8789    pragma Inline (Set_Corresponding_Integer_Value);
8790    pragma Inline (Set_Corresponding_Spec);
8791    pragma Inline (Set_Corresponding_Stub);
8792    pragma Inline (Set_Dcheck_Function);
8793    pragma Inline (Set_Debug_Statement);
8794    pragma Inline (Set_Declarations);
8795    pragma Inline (Set_Default_Expression);
8796    pragma Inline (Set_Default_Name);
8797    pragma Inline (Set_Defining_Identifier);
8798    pragma Inline (Set_Defining_Unit_Name);
8799    pragma Inline (Set_Delay_Alternative);
8800    pragma Inline (Set_Delay_Finalize_Attach);
8801    pragma Inline (Set_Delay_Statement);
8802    pragma Inline (Set_Delta_Expression);
8803    pragma Inline (Set_Digits_Expression);
8804    pragma Inline (Set_Discr_Check_Funcs_Built);
8805    pragma Inline (Set_Discrete_Choices);
8806    pragma Inline (Set_Discrete_Range);
8807    pragma Inline (Set_Discrete_Subtype_Definition);
8808    pragma Inline (Set_Discrete_Subtype_Definitions);
8809    pragma Inline (Set_Discriminant_Specifications);
8810    pragma Inline (Set_Discriminant_Type);
8811    pragma Inline (Set_Do_Accessibility_Check);
8812    pragma Inline (Set_Do_Discriminant_Check);
8813    pragma Inline (Set_Do_Length_Check);
8814    pragma Inline (Set_Do_Division_Check);
8815    pragma Inline (Set_Do_Overflow_Check);
8816    pragma Inline (Set_Do_Range_Check);
8817    pragma Inline (Set_Do_Storage_Check);
8818    pragma Inline (Set_Do_Tag_Check);
8819    pragma Inline (Set_Elaborate_Present);
8820    pragma Inline (Set_Elaborate_All_Present);
8821    pragma Inline (Set_Elaboration_Boolean);
8822    pragma Inline (Set_Else_Actions);
8823    pragma Inline (Set_Else_Statements);
8824    pragma Inline (Set_Elsif_Parts);
8825    pragma Inline (Set_Enclosing_Variant);
8826    pragma Inline (Set_End_Label);
8827    pragma Inline (Set_End_Span);
8828    pragma Inline (Set_Entity);
8829    pragma Inline (Set_Entry_Body_Formal_Part);
8830    pragma Inline (Set_Entry_Call_Alternative);
8831    pragma Inline (Set_Entry_Call_Statement);
8832    pragma Inline (Set_Entry_Direct_Name);
8833    pragma Inline (Set_Entry_Index);
8834    pragma Inline (Set_Entry_Index_Specification);
8835    pragma Inline (Set_Etype);
8836    pragma Inline (Set_Exception_Choices);
8837    pragma Inline (Set_Exception_Junk);
8838    pragma Inline (Set_Exception_Handlers);
8839    pragma Inline (Set_Expansion_Delayed);
8840    pragma Inline (Set_Explicit_Actual_Parameter);
8841    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
8842    pragma Inline (Set_Expression);
8843    pragma Inline (Set_Expressions);
8844    pragma Inline (Set_First_Bit);
8845    pragma Inline (Set_First_Inlined_Subprogram);
8846    pragma Inline (Set_First_Name);
8847    pragma Inline (Set_First_Named_Actual);
8848    pragma Inline (Set_First_Real_Statement);
8849    pragma Inline (Set_First_Subtype_Link);
8850    pragma Inline (Set_Float_Truncate);
8851    pragma Inline (Set_Formal_Type_Definition);
8852    pragma Inline (Set_Forwards_OK);
8853    pragma Inline (Set_From_At_Mod);
8854    pragma Inline (Set_From_Default);
8855    pragma Inline (Set_Generic_Associations);
8856    pragma Inline (Set_Generic_Formal_Declarations);
8857    pragma Inline (Set_Generic_Parent);
8858    pragma Inline (Set_Generic_Parent_Type);
8859    pragma Inline (Set_Handled_Statement_Sequence);
8860    pragma Inline (Set_Handler_List_Entry);
8861    pragma Inline (Set_Has_Created_Identifier);
8862    pragma Inline (Set_Has_Dynamic_Length_Check);
8863    pragma Inline (Set_Has_Dynamic_Range_Check);
8864    pragma Inline (Set_Has_No_Elaboration_Code);
8865    pragma Inline (Set_Has_Priority_Pragma);
8866    pragma Inline (Set_Has_Private_View);
8867    pragma Inline (Set_Has_Storage_Size_Pragma);
8868    pragma Inline (Set_Has_Task_Info_Pragma);
8869    pragma Inline (Set_Has_Task_Name_Pragma);
8870    pragma Inline (Set_Has_Wide_Character);
8871    pragma Inline (Set_Hidden_By_Use_Clause);
8872    pragma Inline (Set_High_Bound);
8873    pragma Inline (Set_Identifier);
8874    pragma Inline (Set_Implicit_With);
8875    pragma Inline (Set_Includes_Infinities);
8876    pragma Inline (Set_In_Present);
8877    pragma Inline (Set_Instance_Spec);
8878    pragma Inline (Set_Intval);
8879    pragma Inline (Set_Is_Asynchronous_Call_Block);
8880    pragma Inline (Set_Is_Component_Left_Opnd);
8881    pragma Inline (Set_Is_Component_Right_Opnd);
8882    pragma Inline (Set_Is_Controlling_Actual);
8883    pragma Inline (Set_Is_In_Discriminant_Check);
8884    pragma Inline (Set_Is_Machine_Number);
8885    pragma Inline (Set_Is_Null_Loop);
8886    pragma Inline (Set_Is_Overloaded);
8887    pragma Inline (Set_Is_Power_Of_2_For_Shift);
8888    pragma Inline (Set_Is_Protected_Subprogram_Body);
8889    pragma Inline (Set_Is_Static_Expression);
8890    pragma Inline (Set_Is_Subprogram_Descriptor);
8891    pragma Inline (Set_Is_Task_Allocation_Block);
8892    pragma Inline (Set_Is_Task_Master);
8893    pragma Inline (Set_Iteration_Scheme);
8894    pragma Inline (Set_Itype);
8895    pragma Inline (Set_Kill_Range_Check);
8896    pragma Inline (Set_Last_Bit);
8897    pragma Inline (Set_Last_Name);
8898    pragma Inline (Set_Library_Unit);
8899    pragma Inline (Set_Label_Construct);
8900    pragma Inline (Set_Left_Opnd);
8901    pragma Inline (Set_Limited_View_Installed);
8902    pragma Inline (Set_Limited_Present);
8903    pragma Inline (Set_Literals);
8904    pragma Inline (Set_Loop_Actions);
8905    pragma Inline (Set_Loop_Parameter_Specification);
8906    pragma Inline (Set_Low_Bound);
8907    pragma Inline (Set_Mod_Clause);
8908    pragma Inline (Set_More_Ids);
8909    pragma Inline (Set_Must_Be_Byte_Aligned);
8910    pragma Inline (Set_Must_Not_Freeze);
8911    pragma Inline (Set_Name);
8912    pragma Inline (Set_Names);
8913    pragma Inline (Set_Next_Entity);
8914    pragma Inline (Set_Next_Named_Actual);
8915    pragma Inline (Set_Next_Use_Clause);
8916    pragma Inline (Set_No_Ctrl_Actions);
8917    pragma Inline (Set_No_Elaboration_Check);
8918    pragma Inline (Set_No_Entities_Ref_In_Spec);
8919    pragma Inline (Set_No_Initialization);
8920    pragma Inline (Set_No_Truncation);
8921    pragma Inline (Set_Null_Present);
8922    pragma Inline (Set_Null_Record_Present);
8923    pragma Inline (Set_Object_Definition);
8924    pragma Inline (Set_OK_For_Stream);
8925    pragma Inline (Set_Original_Discriminant);
8926    pragma Inline (Set_Original_Entity);
8927    pragma Inline (Set_Others_Discrete_Choices);
8928    pragma Inline (Set_Out_Present);
8929    pragma Inline (Set_Parameter_Associations);
8930    pragma Inline (Set_Parameter_Specifications);
8931    pragma Inline (Set_Parameter_List_Truncated);
8932    pragma Inline (Set_Parameter_Type);
8933    pragma Inline (Set_Parent_Spec);
8934    pragma Inline (Set_Position);
8935    pragma Inline (Set_Pragma_Argument_Associations);
8936    pragma Inline (Set_Pragmas_After);
8937    pragma Inline (Set_Pragmas_Before);
8938    pragma Inline (Set_Prefix);
8939    pragma Inline (Set_Present_Expr);
8940    pragma Inline (Set_Prev_Ids);
8941    pragma Inline (Set_Print_In_Hex);
8942    pragma Inline (Set_Private_Declarations);
8943    pragma Inline (Set_Private_Present);
8944    pragma Inline (Set_Procedure_To_Call);
8945    pragma Inline (Set_Proper_Body);
8946    pragma Inline (Set_Protected_Definition);
8947    pragma Inline (Set_Protected_Present);
8948    pragma Inline (Set_Raises_Constraint_Error);
8949    pragma Inline (Set_Range_Constraint);
8950    pragma Inline (Set_Range_Expression);
8951    pragma Inline (Set_Real_Range_Specification);
8952    pragma Inline (Set_Realval);
8953    pragma Inline (Set_Reason);
8954    pragma Inline (Set_Record_Extension_Part);
8955    pragma Inline (Set_Redundant_Use);
8956    pragma Inline (Set_Return_Type);
8957    pragma Inline (Set_Reverse_Present);
8958    pragma Inline (Set_Right_Opnd);
8959    pragma Inline (Set_Rounded_Result);
8960    pragma Inline (Set_Scope);
8961    pragma Inline (Set_Select_Alternatives);
8962    pragma Inline (Set_Selector_Name);
8963    pragma Inline (Set_Selector_Names);
8964    pragma Inline (Set_Shift_Count_OK);
8965    pragma Inline (Set_Source_Type);
8966    pragma Inline (Set_Specification);
8967    pragma Inline (Set_Statements);
8968    pragma Inline (Set_Static_Processing_OK);
8969    pragma Inline (Set_Storage_Pool);
8970    pragma Inline (Set_Strval);
8971    pragma Inline (Set_Subtype_Indication);
8972    pragma Inline (Set_Subtype_Mark);
8973    pragma Inline (Set_Subtype_Marks);
8974    pragma Inline (Set_Tagged_Present);
8975    pragma Inline (Set_Target_Type);
8976    pragma Inline (Set_Task_Body_Procedure);
8977    pragma Inline (Set_Task_Definition);
8978    pragma Inline (Set_Then_Actions);
8979    pragma Inline (Set_Then_Statements);
8980    pragma Inline (Set_Triggering_Alternative);
8981    pragma Inline (Set_Triggering_Statement);
8982    pragma Inline (Set_Treat_Fixed_As_Integer);
8983    pragma Inline (Set_TSS_Elist);
8984    pragma Inline (Set_Type_Definition);
8985    pragma Inline (Set_Unit);
8986    pragma Inline (Set_Unknown_Discriminants_Present);
8987    pragma Inline (Set_Unreferenced_In_Spec);
8988    pragma Inline (Set_Variant_Part);
8989    pragma Inline (Set_Variants);
8990    pragma Inline (Set_Visible_Declarations);
8991    pragma Inline (Set_Was_Originally_Stub);
8992    pragma Inline (Set_Zero_Cost_Handling);
8993
8994 end Sinfo;