OSDN Git Service

* gcc.dg/tree-ssa/ssa-dse-10.c: Clean up all dse dump files.
[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-2007, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19 -- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
20 -- Boston, MA 02110-1301, USA.                                              --
21 --                                                                          --
22 -- 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 structure
36 --  is used to represent the syntax of an Ada program.
37
38 --  The grammar in the RM is followed very closely in the tree
39 --  design, and is repeated as part of this source file.
40
41 --  The tree contains not only the full syntactic representation of the
42 --  program, but also the results of semantic analysis. In particular, the
43 --  nodes for defining identifiers, defining character literals and defining
44 --  operator symbols, collectively referred to as entities, represent what
45 --  would normally be regarded as the symbol table information. In addition a
46 --  number of the tree nodes contain semantic information.
47
48 --  WARNING: Several files are automatically generated from this package.
49 --  See below for details.
50
51 with Namet;  use Namet;
52 with Types;  use Types;
53 with Uintp;  use Uintp;
54 with Urealp; use Urealp;
55
56 package Sinfo is
57
58    ---------------------------------
59    -- Making Changes to This File --
60    ---------------------------------
61
62    --  If changes are made to this file, a number of related steps must be
63    --  carried out to ensure consistency. First, if a field access function is
64    --  added, it appears in seven places:
65
66    --    The documentation associated with the node
67    --    The spec of the access function in sinfo.ads
68    --    The body of the access function in sinfo.adb
69    --    The pragma Inline at the end of sinfo.ads for the access function
70    --    The spec of the set procedure in sinfo.ads
71    --    The body of the set procedure in sinfo.adb
72    --    The pragma Inline at the end of sinfo.ads for the set procedure
73
74    --  The field chosen must be consistent in all places, and, for a node that
75    --  is a subexpression, must not overlap any of the standard expression
76    --  fields.
77
78    --  In addition, if any of the standard expression fields is changed, then
79    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
80    --  must be updated appropriately, since it special cases expression fields.
81
82    --  If a new tree node is added, then the following changes are made
83
84    --    Add it to the documentation in the appropriate place
85    --    Add its fields to this documentation section
86    --    Define it in the appropriate classification in Node_Kind
87    --    In the body (sinfo), add entries to the access functions for all
88    --     its fields (except standard expression fields) to include the new
89    --     node in the checks.
90    --    Add an appropriate section to the case statement in sprint.adb
91    --    Add an appropriate section to the case statement in sem.adb
92    --    Add an appropriate section to the case statement in exp_util.adb
93    --     (Insert_Actions procedure)
94    --    For a subexpression, add an appropriate section to the case
95    --     statement in sem_eval.adb
96    --    For a subexpression, add an appropriate section to the case
97    --     statement in sem_res.adb
98
99    --  Finally, four utility programs must be run:
100
101    --    Run CSinfo to check that you have made the changes consistently. It
102    --     checks most of the rules given above, with clear error messages. This
103    --     utility reads sinfo.ads and sinfo.adb and generates a report to
104    --     standard output.
105
106    --    Run XSinfo to create sinfo.h, the corresponding C header. This
107    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
108    --     not need to read sinfo.adb, since the contents of the body are
109    --     algorithmically determinable from the spec.
110
111    --    Run XTreeprs to create treeprs.ads, an updated version of the module
112    --     that is used to drive the tree print routine. This utility reads (but
113    --     does not modify) treeprs.adt, the template that provides the basic
114    --     structure of the file, and then fills in the data from the comments
115    --     in sinfo.ads.
116
117    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
118    --     spec of the Nmake package which contains functions for constructing
119    --     nodes.
120
121    --  All of the above steps except CSinfo are done automatically by the
122    --  build scripts when you do a full bootstrap.
123
124    --  Note: sometime we could write a utility that actually generated the body
125    --  of sinfo from the spec instead of simply checking it, since, as noted
126    --  above, the contents of the body can be determined from the spec.
127
128    --------------------------------
129    -- Implicit Nodes in the Tree --
130    --------------------------------
131
132    --  Generally the structure of the tree very closely follows the grammar as
133    --  defined in the RM. However, certain nodes are omitted to save space and
134    --  simplify semantic processing. Two general classes of such omitted nodes
135    --  are as follows:
136
137    --   If the only possibilities for a non-terminal are one or more other
138    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
139    --   corresponding node is omitted from the tree, and the target construct
140    --   appears directly. For example, a real type definition is either
141    --   floating point definition or a fixed point definition. No explicit node
142    --   appears for real type definition. Instead either the floating point
143    --   definition or fixed point definition appears directly.
144
145    --   If a non-terminal corresponds to a list of some other non-terminal
146    --   (possibly with separating punctuation), then usually it is omitted from
147    --   the tree, and a list of components appears instead. For example,
148    --   sequence of statements does not appear explicitly in the tree. Instead
149    --   a list of statements appears directly.
150
151    --  Some additional cases of omitted nodes occur and are documented
152    --  individually. In particular, many nodes are omitted in the tree
153    --  generated for an expression.
154
155    -------------------------------------------
156    -- Handling of Defining Identifier Lists --
157    -------------------------------------------
158
159    --  In several declarative forms in the syntax, lists of defining
160    --  identifiers appear (object declarations, component declarations, number
161    --  declarations etc.)
162
163    --  The semantics of such statements are equivalent to a series of identical
164    --  declarations of single defining identifiers (except that conformance
165    --  checks require the same grouping of identifiers in the parameter case).
166
167    --  To simplify semantic processing, the parser breaks down such multiple
168    --  declaration cases into sequences of single declarations, duplicating
169    --  type and initialization information as required. The flags More_Ids and
170    --  Prev_Ids are used to record the original form of the source in the case
171    --  where the original source used a list of names, More_Ids being set on
172    --  all but the last name and Prev_Ids being set on all but the first name.
173    --  These flags are used to reconstruct the original source (e.g. in the
174    --  Sprint package), and also are included in the conformance checks, but
175    --  otherwise have no semantic significance.
176
177    --  Note: the reason that we use More_Ids and Prev_Ids rather than
178    --  First_Name and Last_Name flags is so that the flags are off in the
179    --  normal one identifier case, which minimizes tree print output.
180
181    -----------------------
182    -- Use of Node Lists --
183    -----------------------
184
185    --  With a few exceptions, if a construction of the form {non-terminal}
186    --  appears in the tree, lists are used in the corresponding tree node (see
187    --  package Nlists for handling of node lists). In this case a field of the
188    --  parent node points to a list of nodes for the non-terminal. The field
189    --  name for such fields has a plural name which always ends in "s". For
190    --  example, a case statement has a field Alternatives pointing to list of
191    --  case statement alternative nodes.
192
193    --  Only fields pointing to lists have names ending in "s", so generally the
194    --  structure is strongly typed, fields not ending in s point to single
195    --  nodes, and fields ending in s point to lists.
196
197    --  The following example shows how a traversal of a list is written. We
198    --  suppose here that Stmt points to a N_Case_Statement node which has a
199    --  list field called Alternatives:
200
201    --   Alt := First (Alternatives (Stmt));
202    --   while Present (Alt) loop
203    --      ..
204    --      -- processing for case statement alternative Alt
205    --      ..
206    --      Alt := Next (Alt);
207    --   end loop;
208
209    --  The Present function tests for Empty, which in this case signals the end
210    --  of the list. First returns Empty immediately if the list is empty.
211    --  Present is defined in Atree, First and Next are defined in Nlists.
212
213    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
214    --  contexts, which is handled as described in the previous section, and
215    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
216    --  using the First_Name and Last_Name flags, as further detailed in the
217    --  description of the N_With_Clause node.
218
219    -------------
220    -- Pragmas --
221    -------------
222
223    --  Pragmas can appear in many different context, but are not included in
224    --  the grammar. Still they must appear in the tree, so they can be properly
225    --  processed.
226
227    --  Two approaches are used. In some cases, an extra field is defined in an
228    --  appropriate node that contains a list of pragmas appearing in the
229    --  expected context. For example pragmas can appear before an
230    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
231    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
232
233    --  The other approach is to simply allow pragmas to appear in syntactic
234    --  lists where the grammar (of course) does not include the possibility.
235    --  For example, the Variants field of an N_Variant_Part node points to a
236    --  list that can contain both N_Pragma and N_Variant nodes.
237
238    --  To make processing easier in the latter case, the Nlists package
239    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
240    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
241    --  ignoring all pragmas.
242
243    --  In the case of the variants list, we can either write:
244
245    --      Variant := First (Variants (N));
246    --      while Present (Variant) loop
247    --         ...
248    --         Variant := Next (Variant);
249    --      end loop;
250
251    --  or
252
253    --      Variant := First_Non_Pragma (Variants (N));
254    --      while Present (Variant) loop
255    --         ...
256    --         Variant := Next_Non_Pragma (Variant);
257    --      end loop;
258
259    --  In the first form of the loop, Variant can either be an N_Pragma or an
260    --  N_Variant node. In the second form, Variant can only be N_Variant since
261    --  all pragmas are skipped.
262
263    ---------------------
264    -- Optional Fields --
265    ---------------------
266
267    --  Fields which correspond to a section of the syntax enclosed in square
268    --  brackets are generally omitted (and the corresponding field set to Empty
269    --  for a node, or No_List for a list). The documentation of such fields
270    --  notes these cases. One exception to this rule occurs in the case of
271    --  possibly empty statement sequences (such as the sequence of statements
272    --  in an entry call alternative). Such cases appear in the syntax rules as
273    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
274    --  statement sequences always contain an empty list (not No_List) if no
275    --  statements are present.
276
277    --  Note: the utility program that constructs the body and spec of the Nmake
278    --  package relies on the format of the comments to determine if a field
279    --  should have a default value in the corresponding make routine. The rule
280    --  is that if the first line of the description of the field contains the
281    --  string "(set to xxx if", then a default value of xxx is provided for
282    --  this field in the corresponding Make_yyy routine.
283
284    -----------------------------------
285    -- Note on Body/Spec Terminology --
286    -----------------------------------
287
288    --  In informal discussions about Ada, it is customary to refer to package
289    --  and subprogram specs and bodies. However, this is not technically
290    --  correct, what is normally referred to as a spec or specification is in
291    --  fact a package declaration or subprogram declaration. We are careful in
292    --  GNAT to use the correct terminology and in particular, the full word
293    --  specification is never used as an incorrect substitute for declaration.
294    --  The structure and terminology used in the tree also reflects the grammar
295    --  and thus uses declaration and specification in the technically correct
296    --  manner.
297
298    --  However, there are contexts in which the informal terminology is useful.
299    --  We have the word "body" to refer to the Interp_Etype declared by the
300    --  declaration of a unit body, and in some contexts we need similar term to
301    --  refer to the entity declared by the package or subprogram declaration,
302    --  and simply using declaration can be confusing since the body also has a
303    --  declaration.
304
305    --  An example of such a context is the link between the package body and
306    --  its declaration. With_Declaration is confusing, since the package body
307    --  itself is a declaration.
308
309    --  To deal with this problem, we reserve the informal term Spec, i.e. the
310    --  popular abbreviation used in this context, to refer to the entity
311    --  declared by the package or subprogram declaration. So in the above
312    --  example case, the field in the body is called With_Spec.
313
314    --  Another important context for the use of the word Spec is in error
315    --  messages, where a hyper-correct use of declaration would be confusing to
316    --  a typical Ada programmer, and even for an expert programmer can cause
317    --  confusion since the body has a declaration as well.
318
319    --  So, to summarize:
320
321    --     Declaration    always refers to the syntactic entity that is called
322    --                    a declaration. In particular, subprogram declaration
323    --                    and package declaration are used to describe the
324    --                    syntactic entity that includes the semicolon.
325
326    --     Specification  always refers to the syntactic entity that is called
327    --                    a specification. In particular, the terms procedure
328    --                    specification, function specification, package
329    --                    specification, subprogram specification always refer
330    --                    to the syntactic entity that has no semicolon.
331
332    --     Spec           is an informal term, used to refer to the entity
333    --                    that is declared by a task declaration, protected
334    --                    declaration, generic declaration, subprogram
335    --                    declaration or package declaration.
336
337    --  This convention is followed throughout the GNAT documentation
338    --  both internal and external, and in all error message text.
339
340    ------------------------
341    -- Internal Use Nodes --
342    ------------------------
343
344    --  These are Node_Kind settings used in the internal implementation which
345    --  are not logically part of the specification.
346
347    --  N_Unused_At_Start
348    --  Completely unused entry at the start of the enumeration type. This
349    --  is inserted so that no legitimate value is zero, which helps to get
350    --  better debugging behavior, since zero is a likely uninitialized value).
351
352    --  N_Unused_At_End
353    --  Completely unused entry at the end of the enumeration type. This is
354    --  handy so that arrays with Node_Kind as the index type have an extra
355    --  entry at the end (see for example the use of the Pchar_Pos_Array in
356    --  Treepr, where the extra entry provides the limit value when dealing with
357    --  the last used entry in the array).
358
359    -----------------------------------------
360    -- Note on the settings of Sloc fields --
361    -----------------------------------------
362
363    --  The Sloc field of nodes that come from the source is set by the parser.
364    --  For internal nodes, and nodes generated during expansion the Sloc is
365    --  usually set in the call to the constructor for the node. In general the
366    --  Sloc value chosen for an internal node is the Sloc of the source node
367    --  whose processing is responsible for the expansion. For example, the Sloc
368    --  of an inherited primitive operation is the Sloc of the corresponding
369    --  derived type declaration.
370
371    --  For the nodes of a generic instantiation, the Sloc value is encoded to
372    --  represent both the original Sloc in the generic unit, and the Sloc of
373    --  the instantiation itself. See Sinput.ads for details.
374
375    --  Subprogram instances create two callable entities: one is the visible
376    --  subprogram instance, and the other is an anonymous subprogram nested
377    --  within a wrapper package that contains the renamings for the actuals.
378    --  Both of these entities have the Sloc of the defining entity in the
379    --  instantiation node. This simplifies some ASIS queries.
380
381    -----------------------
382    -- Field Definitions --
383    -----------------------
384
385    --  In the following node definitions, all fields, both syntactic and
386    --  semantic, are documented. The one exception is in the case of entities
387    --  (defining indentifiers, character literals and operator symbols), where
388    --  the usage of the fields depends on the entity kind. Entity fields are
389    --  fully documented in the separate package Einfo.
390
391    --  In the node definitions, three common sets of fields are abbreviated to
392    --  save both space in the documentation, and also space in the string
393    --  (defined in Tree_Print_Strings) used to print trees. The following
394    --  abbreviations are used:
395
396    --  Note: the utility program that creates the Treeprs spec (in the file
397    --  xtreeprs.adb) knows about the special fields here, so it must be
398    --  modified if any change is made to these fields.
399
400    --    "plus fields for binary operator"
401    --       Chars                    (Name1)      Name_Id for the operator
402    --       Left_Opnd                (Node2)      left operand expression
403    --       Right_Opnd               (Node3)      right operand expression
404    --       Entity                   (Node4-Sem)  defining entity for operator
405    --       Associated_Node          (Node4-Sem)  for generic processing
406    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
407    --       Has_Private_View         (Flag11-Sem) set in generic units.
408
409    --    "plus fields for unary operator"
410    --       Chars                    (Name1)      Name_Id for the operator
411    --       Right_Opnd               (Node3)      right operand expression
412    --       Entity                   (Node4-Sem)  defining entity for operator
413    --       Associated_Node          (Node4-Sem)  for generic processing
414    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
415    --       Has_Private_View         (Flag11-Sem) set in generic units.
416
417    --    "plus fields for expression"
418    --       Paren_Count                           number of parentheses levels
419    --       Etype                    (Node5-Sem)  type of the expression
420    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
421    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
422    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
423    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
424    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
425    --       Assignment_OK            (Flag15-Sem) set if modification is OK
426    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
427
428    --  Note: see under (EXPRESSION) for further details on the use of
429    --  the Paren_Count field to record the number of parentheses levels.
430
431    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
432    --  The actual definition of this type is given later (the reason for this
433    --  is that we want the descriptions ordered by logical chapter in the RM,
434    --  but the type definition is reordered to facilitate the definition of
435    --  some subtype ranges. The individual descriptions of the nodes show how
436    --  the various fields are used in each node kind, as well as providing
437    --  logical names for the fields. Functions and procedures are provided for
438    --  accessing and setting these fields 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 (Flag1)
461    --    This flag is used to indicate that a node (and all its children have
462    --    been analyzed. It is used to avoid reanalysis of a node that has
463    --    already been analyzed, both for efficiency and functional correctness
464    --    reasons.
465
466    --  Comes_From_Source (Flag2)
467    --    This flag is on for any nodes built by the scanner or parser from the
468    --    source program, and off for any nodes built by the analyzer or
469    --    expander. It indicates that a node comes from the original source.
470    --    This flag is defined in Atree.
471
472    --  Error_Posted (Flag3)
473    --    This flag is used to avoid multiple error messages being posted on or
474    --    referring to the same node. This flag is set if an error message
475    --    refers to a node or is posted on its source location, and has the
476    --    effect of inhibiting further messages involving this same node.
477
478    --  Local_Raise_Statements (Elist1)
479    --    This field is present in exception handler nodes. It is set to
480    --    No_Elist in the normal case. If there is at least one raise statement
481    --    which can potentially be handled as a local raise, then this field
482    --    points to a list of raise nodes, which are calls to a routine to raise
483    --    an exception. These are raise nodes which can be optimized into gotos
484    --    if the handler turns out to meet the conditions which permit this
485    --    transformation. Note that this does NOT include instances of the
486    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
487    --    handled by the back end (using the N_Push/N_Pop mechanism).
488
489    --  Has_Dynamic_Length_Check (Flag10-Sem)
490    --    This flag is present on all nodes. It is set to indicate that one of
491    --    the routines in unit Checks has generated a length check action which
492    --    has been inserted at the flagged node. This is used to avoid the
493    --    generation of duplicate checks.
494
495    --  Has_Dynamic_Range_Check (Flag12-Sem)
496    --    This flag is present on all nodes. It is set to indicate that one of
497    --    the routines in unit Checks has generated a range check action which
498    --    has been inserted at the flagged node. This is used to avoid the
499    --    generation of duplicate checks.
500
501    --  Has_Local_Raise (Flag8-Sem)
502    --    Present in exception handler nodes. Set if the handler can be entered
503    --    via a local raise that gets transformed to a goto statement. This will
504    --    always be set if Local_Raise_Statements is non-empty, but can also be
505    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
506    --    nodes requiring generation of back end checks.
507
508    ------------------------------------
509    -- Description of Semantic Fields --
510    ------------------------------------
511
512    --  The meaning of the syntactic fields is generally clear from their names
513    --  without any further description, since the names are chosen to
514    --  correspond very closely to the syntax in the reference manual. This
515    --  section describes the usage of the semantic fields, which are used to
516    --  contain additional information determined during semantic analysis.
517
518    --  ABE_Is_Certain (Flag18-Sem)
519    --    This flag is set in an instantiation node or a call node is determined
520    --    to be sure to raise an ABE. This is used to trigger special handling
521    --    of such cases, particularly in the instantiation case where we avoid
522    --    instantiating the body if this flag is set. This flag is also present
523    --    in an N_Formal_Package_Declaration_Node since formal package
524    --    declarations are treated like instantiations, but it is always set to
525    --    False in this context.
526
527    --  Accept_Handler_Records (List5-Sem)
528    --    This field is present only in an N_Accept_Alternative node. It is used
529    --    to temporarily hold the exception handler records from an accept
530    --    statement in a selective accept. These exception handlers will
531    --    eventually be placed in the Handler_Records list of the procedure
532    --    built for this accept (see Expand_N_Selective_Accept procedure in
533    --    Exp_Ch9 for further details).
534
535    --  Access_Types_To_Process (Elist2-Sem)
536    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
537    --    Contains the list of access types which may require specific treatment
538    --    when the nature of the type completion is completely known. An example
539    --    of such treatement is the generation of the associated_final_chain.
540
541    --  Actions (List1-Sem)
542    --    This field contains a sequence of actions that are associated with the
543    --    node holding the field. See the individual node types for details of
544    --    how this field is used, as well as the description of the specific use
545    --    for a particular node type.
546
547    --  Activation_Chain_Entity (Node3-Sem)
548    --    This is used in tree nodes representing task activators (blocks,
549    --    subprogram bodies, package declarations, and task bodies). It is
550    --    initially Empty, and then gets set to point to the entity for the
551    --    declared Activation_Chain variable when the first task is declared.
552    --    When tasks are declared in the corresponding declarative region this
553    --    entity is located by name (its name is always _Chain) and the declared
554    --    tasks are added to the chain. Note that N_Extended_Return_Statement
555    --    does not have this attribute, although it does have an activation
556    --    chain. This chain is used to store the tasks temporarily, and is not
557    --    used for activating them. On successful completion of the return
558    --    statement, the tasks are moved to the caller's chain, and the caller
559    --    activates them.
560
561    --  Acts_As_Spec (Flag4-Sem)
562    --    A flag set in the N_Subprogram_Body node for a subprogram body which
563    --    is acting as its own spec. This flag also appears in the compilation
564    --    unit node at the library level for such a subprogram (see further
565    --    description in spec of Lib package).
566
567    --  Actual_Designated_Subtype (Node4-Sem)
568    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
569    --    needs to known the dynamic constrained subtype of the designated
570    --    object, this attribute is set to that type. This is done for
571    --    N_Free_Statements for access-to-classwide types and access to
572    --    unconstrained packed array types, and for N_Explicit_Dereference when
573    --    the designated type is an unconstrained packed array and the
574    --    dereference is the prefix of a 'Size attribute reference.
575
576    --  Aggregate_Bounds (Node3-Sem)
577    --    Present in array N_Aggregate nodes. If the aggregate contains
578    --    component associations this field points to an N_Range node whose
579    --    bounds give the lowest and highest discrete choice values. If the
580    --    named aggregate contains a dynamic or null choice this field is empty.
581    --    If the aggregate contains positional elements this field points to an
582    --    N_Integer_Literal node giving the number of positional elements. Note
583    --    that if the aggregate contains positional elements and an other choice
584    --    the N_Integer_Literal only accounts for the number of positional
585    --    elements.
586
587    --  All_Others (Flag11-Sem)
588    --    Present in an N_Others_Choice node. This flag is set in the case of an
589    --    others exception where all exceptions are to be caught, even those
590    --    that are not normally handled (in particular the tasking abort
591    --    signal). This is used for translation of the at end handler into a
592    --    normal exception handler.
593
594    --  Assignment_OK (Flag15-Sem)
595    --    This flag is set in a subexpression node for an object, indicating
596    --    that the associated object can be modified, even if this would not
597    --    normally be permissible (either by direct assignment, or by being
598    --    passed as an out or in-out parameter). This is used by the expander
599    --    for a number of purposes, including initialzation of constants and
600    --    limited type objects (such as tasks), setting discriminant fields,
601    --    setting tag values, etc. N_Object_Declaration nodes also have this
602    --    flag defined. Here it is used to indicate that an initialization
603    --    expression is valid, even where it would normally not be allowed (e.g.
604    --    where the type involved is limited).
605
606    --  Associated_Node (Node4-Sem)
607    --    Present in nodes that can denote an entity: identifiers, character
608    --    literals, operator symbols, expanded names, operator nodes, and
609    --    attribute reference nodes (all these nodes have an Entity field). This
610    --    field is also present in N_Aggregate, N_Selected_Component, and
611    --    N_Extension_Aggregate nodes. This field is used in generic processing
612    --    to create links between the generic template and the generic copy. See
613    --    Sem_Ch12.Get_Associated_Node for full details. Note that this field
614    --    overlaps Entity, which is fine, since, as explained in Sem_Ch12, the
615    --    normal function of Entity is not required at the point where the
616    --    Associated_Node is set. Note also, that in generic templates, this
617    --    means that the Entity field does not necessarily point to an Entity.
618    --    Since the back end is expected to ignore generic templates, this is
619    --    harmless.
620
621    --  At_End_Proc (Node1)
622    --    This field is present in an N_Handled_Sequence_Of_Statements node. It
623    --    contains an identifier reference for the cleanup procedure to be
624    --    called. See description of this node for further details.
625
626    --  Backwards_OK (Flag6-Sem)
627    --    A flag present in the N_Assignment_Statement node. It is used only if
628    --    the type being assigned is an array type, and is set if analysis
629    --    determines that it is definitely safe to do the copy backwards, i.e.
630    --    starting at the highest addressed element. Note that if neither of the
631    --    flags Forwards_OK or Backwards_OK is set, it means that the front end
632    --    could not determine that either direction is definitely safe, and a
633    --    runtime check may be required if the backend cannot figure it out.
634
635    --  Body_To_Inline (Node3-Sem)
636    --    present in subprogram declarations. Denotes analyzed but unexpanded
637    --    body of subprogram, to be used when inlining calls. Present when the
638    --    subprogram has an Inline pragma and inlining is enabled. If the
639    --    declaration is completed by a renaming_as_body, and the renamed en-
640    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
641    --    which is used directly in later calls to the original subprogram.
642
643    --  Body_Required (Flag13-Sem)
644    --    A flag that appears in the N_Compilation_Unit node indicating that the
645    --    corresponding unit requires a body. For the package case, this
646    --    indicates that a completion is required. In Ada 95, if the flag is not
647    --    set for the package case, then a body may not be present. In Ada 83,
648    --    if the flag is not set for the package case, then body is optional.
649    --    For a subprogram declaration, the flag is set except in the case where
650    --    a pragma Import or Interface applies, in which case no body is
651    --    permitted (in Ada 83 or Ada 95).
652
653    --  By_Ref (Flag5-Sem)
654    --    A flag present in N_Simple_Return_Statement and
655    --    N_Extended_Return_Statement.
656    --    It is set when the returned expression is already allocated on the
657    --    secondary stack and thus the result is passed by reference rather
658    --    than copied another time.
659
660    --  Check_Address_Alignment (Flag11-Sem)
661    --    A flag present in N_Attribute_Definition clause for a 'Address
662    --    attribute definition. This flag is set if a dynamic check should be
663    --    generated at the freeze point for the entity to which this address
664    --    clause applies. The reason that we need this flag is that we want to
665    --    check for range checks being suppressed at the point where the
666    --    attribute definition clause is given, rather than testing this at the
667    --    freeze point.
668
669    --  Coextensions (Elist4-Sem)
670    --    Present in allocators nodes. Points to list of allocators for the
671    --    access discriminants of the allocated object.
672
673    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
674    --    Present in N_Simple_Return_Statement nodes. True if this node was
675    --    constructed as part of the expansion of an
676    --    N_Extended_Return_Statement.
677
678    --  Compile_Time_Known_Aggregate (Flag18-Sem)
679    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
680    --    evaluated at compile time without raising constraint error. Such
681    --    aggregates can be passed as is to Gigi without any expansion. See
682    --    Sem_Aggr for the specific conditions under which an aggregate has this
683    --    flag set. See also the flag Static_Processing_OK.
684
685    --  Condition_Actions (List3-Sem)
686    --    This field appears in else-if nodes and in the iteration scheme node
687    --    for while loops. This field is only used during semantic processing to
688    --    temporarily hold actions inserted into the tree. In the tree passed to
689    --    gigi, the condition actions field is always set to No_List. For
690    --    details on how this field is used, see the routine Insert_Actions in
691    --    package Exp_Util, and also the expansion routines for the relevant
692    --    nodes.
693
694    --  Controlling_Argument (Node1-Sem)
695    --    This field is set in procedure and function call nodes if the call is
696    --    a dispatching call (it is Empty for a non-dispatching call). It
697    --    indicates the source of the call's controlling tag. For procedure
698    --    calls, the Controlling_Argument is one of the actuals. For function
699    --    that has a dispatching result, it is an entity in the context of the
700    --    call that can provide a tag, or else it is the tag of the root type of
701    --    the class. It can also specify a tag directly rather than being a
702    --    tagged object. The latter is needed by the implementations of AI-239
703    --    and AI-260.
704
705    --  Conversion_OK (Flag14-Sem)
706    --    A flag set on type conversion nodes to indicate that the conversion is
707    --    to be considered as being valid, even though it is the case that the
708    --    conversion is not valid Ada. This is used for Enum_Rep, Fixed_Value
709    --    and Integer_Value attributes, for internal conversions done for
710    --    fixed-point operations, and for certain conversions for calls to
711    --    initialization procedures. If Conversion_OK is set, then Etype must be
712    --    set (the analyzer assumes that Etype has been set). For the case of
713    --    fixed-point operands, it also indicates that the conversion is to be
714    --    direct conversion of the underlying integer result, with no regard to
715    --    the small operand.
716
717    --  Corresponding_Body (Node5-Sem)
718    --    This field is set in subprogram declarations, package declarations,
719    --    entry declarations of protected types, and in generic units. It
720    --    points to the defining entity for the corresponding body (NOT the
721    --    node for the body itself).
722
723    --  Corresponding_Formal_Spec (Node3-Sem)
724    --    This field is set in subprogram renaming declarations, where it points
725    --    to the defining entity for a formal subprogram in the case where the
726    --    renaming corresponds to a generic formal subprogram association in an
727    --    instantiation. The field is Empty if the renaming does not correspond
728    --    to such a formal association.
729
730    --  Corresponding_Generic_Association (Node5-Sem)
731    --    This field is defined for object declarations and object renaming
732    --    declarations. It is set for the declarations within an instance that
733    --    map generic formals to their actuals. If set, the field points to
734    --    a generic_association which is the original parent of the expression
735    --    or name appearing in the declaration. This simplifies ASIS queries.
736
737    --  Corresponding_Integer_Value (Uint4-Sem)
738    --    This field is set in real literals of fixed-point types (it is not
739    --    used for floating-point types). It contains the integer value used
740    --    to represent the fixed-point value. It is also set on the universal
741    --    real literals used to represent bounds of fixed-point base types
742    --    and their first named subtypes.
743
744    --  Corresponding_Spec (Node5-Sem)
745    --    This field is set in subprogram, package, task, and protected body
746    --    nodes, where it points to the defining entity in the corresponding
747    --    spec. The attribute is also set in N_With_Clause nodes, where it
748    --    points to the defining entity for the with'ed spec, and in a
749    --    subprogram renaming declaration when it is a Renaming_As_Body. The
750    --    field is Empty if there is no corresponding spec, as in the case of a
751    --    subprogram body that serves as its own spec.
752
753    --  Corresponding_Stub (Node3-Sem)
754    --    This field is present in an N_Subunit node. It holds the node in
755    --    the parent unit that is the stub declaration for the subunit. it is
756    --    set when analysis of the stub forces loading of the proper body. If
757    --    expansion of the proper body creates new declarative nodes, they are
758    --    inserted at the point of the corresponding_stub.
759
760    --  Dcheck_Function (Node5-Sem)
761    --    This field is present in an N_Variant node, It references the entity
762    --    for the discriminant checking function for the variant.
763
764    --  Debug_Statement (Node3)
765    --    This field is present in an N_Pragma node. It is used only for a Debug
766    --    pragma. The parameter is of the form of an expression, as required by
767    --    the pragma syntax, but is actually a procedure call. To simplify
768    --    semantic processing, the parser creates a copy of the argument
769    --    rearranged into a procedure call statement and places it in the
770    --    Debug_Statement field. Note that this field is considered syntactic
771    --    field, since it is created by the parser.
772
773    --  Default_Expression (Node5-Sem)
774    --    This field is Empty if there is no default expression. If there is a
775    --    simple default expression (one with no side effects), then this field
776    --    simply contains a copy of the Expression field (both point to the tree
777    --    for the default expression). Default_Expression is used for
778    --    conformance checking.
779
780    --  Discr_Check_Funcs_Built (Flag11-Sem)
781    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
782    --    discriminant checking functions are constructed. The purpose is to
783    --    avoid attempting to set these functions more than once.
784
785    --  Do_Accessibility_Check (Flag13-Sem)
786    --    This flag is set on N_Parameter_Specification nodes to indicate
787    --    that an accessibility check is required for the parameter. It is
788    --    not yet decided who takes care of this check (TBD ???).
789
790    --  Do_Discriminant_Check (Flag13-Sem)
791    --    This flag is set on N_Selected_Component nodes to indicate that a
792    --    discriminant check is required using the discriminant check routine
793    --    associated with the selector. The actual check is generated by the
794    --    expander when processing selected components.
795
796    --  Do_Division_Check (Flag13-Sem)
797    --    This flag is set on a division operator (/ mod rem) to indicate
798    --    that a zero divide check is required. The actual check is dealt
799    --    with by the backend (all the front end does is to set the flag).
800
801    --  Do_Length_Check (Flag4-Sem)
802    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
803    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
804    --    is required. It is not determined who deals with this flag (???).
805
806    --  Do_Overflow_Check (Flag17-Sem)
807    --    This flag is set on an operator where an overflow check is required on
808    --    the operation. The actual check is dealt with by the backend (all the
809    --    front end does is to set the flag). The other cases where this flag is
810    --    used is on a Type_Conversion node and for attribute reference nodes.
811    --    For a type conversion, it means that the conversion is from one base
812    --    type to another, and the value may not fit in the target base type.
813    --    See also the description of Do_Range_Check for this case. The only
814    --    attribute references which use this flag are Pred and Succ, where it
815    --    means that the result should be checked for going outside the base
816    --    range.
817
818    --  Do_Range_Check (Flag9-Sem)
819    --    This flag is set on an expression which appears in a context where
820    --    a range check is required. The target type is clear from the
821    --    context. The contexts in which this flag can appear are limited to
822    --    the following.
823
824    --      Right side of an assignment. In this case the target type is
825    --      taken from the left side of the assignment, which is referenced
826    --      by the Name of the N_Assignment_Statement node.
827
828    --      Subscript expressions in an indexed component. In this case the
829    --      target type is determined from the type of the array, which is
830    --      referenced by the Prefix of the N_Indexed_Component node.
831
832    --      Argument expression for a parameter, appearing either directly in
833    --      the Parameter_Associations list of a call or as the Expression of an
834    --      N_Parameter_Association node that appears in this list. In either
835    --      case, the check is against the type of the formal. Note that the
836    --      flag is relevant only in IN and IN OUT parameters, and will be
837    --      ignored for OUT parameters, where no check is required in the call,
838    --      and if a check is required on the return, it is generated explicitly
839    --      with a type conversion.
840
841    --      Initialization expression for the initial value in an object
842    --      declaration. In this case the Do_Range_Check flag is set on
843    --      the initialization expression, and the check is against the
844    --      range of the type of the object being declared.
845
846    --      The expression of a type conversion. In this case the range check is
847    --      against the target type of the conversion. See also the use of
848    --      Do_Overflow_Check on a type conversion. The distinction is that the
849    --      overflow check protects against a value that is outside the range of
850    --      the target base type, whereas a range check checks that the
851    --      resulting value (which is a value of the base type of the target
852    --      type), satisfies the range constraint of the target type.
853
854    --    Note: when a range check is required in contexts other than those
855    --    listed above (e.g. in a return statement), an additional type
856    --    conversion node is introduced to represent the required check.
857
858    --  Do_Storage_Check (Flag17-Sem)
859    --    This flag is set in an N_Allocator node to indicate that a storage
860    --    check is required for the allocation, or in an N_Subprogram_Body node
861    --    to indicate that a stack check is required in the subprogram prolog.
862    --    The N_Allocator case is handled by the routine that expands the call
863    --    to the runtime routine. The N_Subprogram_Body case is handled by the
864    --    backend, and all the semantics does is set the flag.
865
866    --  Do_Tag_Check (Flag13-Sem)
867    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
868    --    N_Procedure_Call_Statement, N_Type_Conversion,
869    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
870    --    node to indicate that the tag check can be suppressed. It is not
871    --    yet decided how this flag is used (TBD ???).
872
873    --  Elaborate_Present (Flag4-Sem)
874    --    This flag is set in the N_With_Clause node to indicate that pragma
875    --    Elaborate pragma appears for the with'ed units.
876
877    --  Elaborate_All_Desirable (Flag9-Sem)
878    --    This flag is set in the N_With_Clause mode to indicate that the static
879    --    elaboration processing has determined that an Elaborate_All pragma is
880    --    desirable for correct elaboration for this unit.
881
882    --  Elaborate_All_Present (Flag14-Sem)
883    --    This flag is set in the N_With_Clause node to indicate that a
884    --    pragma Elaborate_All pragma appears for the with'ed units.
885
886    --  Elaborate_Desirable (Flag11-Sem)
887    --    This flag is set in the N_With_Clause mode to indicate that the static
888    --    elaboration processing has determined that an Elaborate pragma is
889    --    desirable for correct elaboration for this unit.
890
891    --  Elaboration_Boolean (Node2-Sem)
892    --    This field is present in function and procedure specification
893    --    nodes. If set, it points to the entity for a Boolean flag that
894    --    must be tested for certain calls to check for access before
895    --    elaboration. See body of Sem_Elab for further details. This
896    --    field is Empty if no elaboration boolean is required.
897
898    --  Else_Actions (List3-Sem)
899    --    This field is present in conditional expression nodes. During code
900    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
901    --    actions at an appropriate place in the tree to get elaborated at the
902    --    right time. For conditional expressions, we have to be sure that the
903    --    actions for the Else branch are only elaborated if the condition is
904    --    False. The Else_Actions field is used as a temporary parking place for
905    --    these actions. The final tree is always rewritten to eliminate the
906    --    need for this field, so in the tree passed to Gigi, this field is
907    --    always set to No_List.
908
909    --  Enclosing_Variant (Node2-Sem)
910    --    This field is present in the N_Variant node and identifies the
911    --    Node_Id corresponding to the immediately enclosing variant when
912    --    the variant is nested, and N_Empty otherwise. Set during semantic
913    --    processing of the variant part of a record type.
914
915    --  Entity (Node4-Sem)
916    --    Appears in all direct names (identifier, character literal, operator
917    --    symbol), as well as expanded names, and attributes that denote
918    --    entities, such as 'Class. Points to the entity for the corresponding
919    --    defining occurrence. Set after name resolution. In the case of
920    --    identifiers in a WITH list, the corresponding defining occurrence is
921    --    in a separately compiled file, and this pointer must be set using the
922    --    library Load procedure. Note that during name resolution, the value in
923    --    Entity may be temporarily incorrect (e.g. during overload resolution,
924    --    Entity is initially set to the first possible correct interpretation,
925    --    and then later modified if necessary to contain the correct value
926    --    after resolution). Note that this field overlaps Associated_Node,
927    --    which is used during generic processing (see Sem_Ch12 for details).
928    --    Note also that in generic templates, this means that the Entity field
929    --    does not always point to an Entity. Since the back end is expected to
930    --    ignore generic templates, this is harmless. Note that this field also
931    --    appears in N_Attribute_Definition_Clause nodes. It is used only for
932    --    stream attributes definition clauses. In this case, it denotes a
933    --    (possibly dummy) subprogram entity that is conceptually declared at
934    --    the point of the clause. Thus the visibility of the attribute
935    --    definition clause (in the sense of 8.3(23) as amended by AI-195) can
936    --    be checked by testing the visibility of that subprogram.
937
938    --  Entity_Or_Associated_Node (Node4-Sem)
939    --    A synonym for both Entity and Associated_Node. Used by convention in
940    --    the code when referencing this field in cases where it is not known
941    --    whether the field contains an Entity or an Associated_Node.
942
943    --  Etype (Node5-Sem)
944    --    Appears in all expression nodes, all direct names, and all entities.
945    --    Points to the entity for the related type. Set after type resolution.
946    --    Normally this is the actual subtype of the expression. However, in
947    --    certain contexts such as the right side of an assignment, subscripts,
948    --    arguments to calls, returned value in a function, initial value etc.
949    --    it is the desired target type. In the event that this is different
950    --    from the actual type, the Do_Range_Check flag will be set if a range
951    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
952    --    points to an essentially arbitrary choice from the possible set of
953    --    types.
954
955    --  Exception_Junk (Flag8-Sem)
956    --    This flag is set in a various nodes appearing in a statement sequence
957    --    to indicate that the corresponding node is an artifact of the
958    --    generated code for exception handling, and should be ignored when
959    --    analyzing the control flow of the relevant sequence of statements
960    --    (e.g. to check that it does not end with a bad return statement).
961
962    --  Exception_Label (Node5-Sem)
963    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
964    --    to be used for transforming the corresponding exception into a goto,
965    --    or contains Empty, if this exception is not to be transformed. Also
966    --    appears in N_Exception_Handler nodes, where, if set, it indicates
967    --    that there may be a local raise for the handler, so that expansion
968    --    to allow a goto is required (and this field contains the label for
969    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
970
971    --  Expansion_Delayed (Flag11-Sem)
972    --    Set on aggregates and extension aggregates that need a top-down rather
973    --    than bottom up expansion. Typically aggregate expansion happens bottom
974    --    up. For nested aggregates the expansion is delayed until the enclosing
975    --    aggregate itself is expanded, e.g. in the context of a declaration. To
976    --    delay it we set this flag. This is done to avoid creating a temporary
977    --    for each level of a nested aggregates, and also to prevent the
978    --    premature generation of constraint checks. This is also a requirement
979    --    if we want to generate the proper attachment to the internal
980    --    finalization lists (for record with controlled components). Top down
981    --    expansion of aggregates is also used for in-place array aggregate
982    --    assignment or initialization. When the full context is known, the
983    --    target of the assignment or initialization is used to generate the
984    --    left-hand side of individual assignment to each sub-component.
985
986    --  First_Inlined_Subprogram (Node3-Sem)
987    --    Present in the N_Compilation_Unit node for the main program. Points to
988    --    a chain of entities for subprograms that are to be inlined. The
989    --    Next_Inlined_Subprogram field of these entities is used as a link
990    --    pointer with Empty marking the end of the list. This field is Empty if
991    --    there are no inlined subprograms or inlining is not active.
992
993    --  First_Named_Actual (Node4-Sem)
994    --    Present in procedure call statement and function call nodes, and also
995    --    in Intrinsic nodes. Set during semantic analysis to point to the first
996    --    named parameter where parameters are ordered by declaration order (as
997    --    opposed to the actual order in the call which may be different due to
998    --    named associations). Note: this field points to the explicit actual
999    --    parameter itself, not the N_Parameter_Association node (its parent).
1000
1001    --  First_Real_Statement (Node2-Sem)
1002    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1003    --    Empty. Used only when declarations are moved into the statement part
1004    --    of a construct as a result of wrapping an AT END handler that is
1005    --    required to cover the declarations. In this case, this field is used
1006    --    to remember the location in the statements list of the first real
1007    --    statement, i.e. the statement that used to be first in the statement
1008    --    list before the declarations were prepended.
1009
1010    --  First_Subtype_Link (Node5-Sem)
1011    --    Present in N_Freeze_Entity node for an anonymous base type that is
1012    --    implicitly created by the declaration of a first subtype. It points to
1013    --    the entity for the first subtype.
1014
1015    --  Float_Truncate (Flag11-Sem)
1016    --    A flag present in type conversion nodes. This is used for float to
1017    --    integer conversions where truncation is required rather than rounding.
1018    --    Note that Gigi does not handle type conversions from real to integer
1019    --    with rounding (see Expand_N_Type_Conversion).
1020
1021    --  Forwards_OK (Flag5-Sem)
1022    --    A flag present in the N_Assignment_Statement node. It is used only if
1023    --    the type being assigned is an array type, and is set if analysis
1024    --    determines that it is definitely safe to do the copy forwards, i.e.
1025    --    starting at the lowest addressed element. Note that if neither of the
1026    --    flags Forwards_OK or Backwards_OK is set, it means that the front end
1027    --    could not determine that either direction is definitely safe, and a
1028    --    runtime check is required.
1029
1030    --  From_At_Mod (Flag4-Sem)
1031    --    This flag is set on the attribute definition clause node that is
1032    --    generated by a transformation of an at mod phrase in a record
1033    --    representation clause. This is used to give slightly different (Ada 83
1034    --    compatible) semantics to such a clause, namely it is used to specify a
1035    --    minimum acceptable alignment for the base type and all subtypes. In
1036    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1037    --    must be a multiple of the given value, and the representation clause
1038    --    is considered to be type specific instead of subtype specific.
1039
1040    --  From_Default (Flag6-Sem)
1041    --    This flag is set on the subprogram renaming declaration created in an
1042    --    instance for a formal subprogram, when the formal is declared with a
1043    --    box, and there is no explicit actual. If the flag is present, the
1044    --    declaration is treated as an implicit reference to the formal in the
1045    --    ali file.
1046
1047    --  Generic_Parent (Node5-Sem)
1048    --    Generic_Parent is defined on declaration nodes that are instances. The
1049    --    value of Generic_Parent is the generic entity from which the instance
1050    --    is obtained. Generic_Parent is also defined for the renaming
1051    --    declarations and object declarations created for the actuals in an
1052    --    instantiation. The generic parent of such a declaration is the
1053    --    corresponding generic association in the Instantiation node.
1054
1055    --  Generic_Parent_Type (Node4-Sem)
1056    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1057    --    actuals of formal private and derived types. Within the instance, the
1058    --    operations on the actual are those inherited from the parent. For a
1059    --    formal private type, the parent type is the generic type itself. The
1060    --    Generic_Parent_Type is also used in an instance to determine whether a
1061    --    private operation overrides an inherited one.
1062
1063    --  Handler_List_Entry (Node2-Sem)
1064    --    This field is present in N_Object_Declaration nodes. It is set only
1065    --    for the Handler_Record entry generated for an exception in zero cost
1066    --    exception handling mode. It references the corresponding item in the
1067    --    handler list, and is used to delete this entry if the corresponding
1068    --    handler is deleted during optimization. For further details on why
1069    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1070
1071    --  Has_No_Elaboration_Code (Flag17-Sem)
1072    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1073    --    or not elaboration code is present for this unit. It is initially set
1074    --    true for subprogram specs and bodies and for all generic units and
1075    --    false for non-generic package specs and bodies. Gigi may set the flag
1076    --    in the non-generic package case if it determines that no elaboration
1077    --    code is generated. Note that this flag is not related to the
1078    --    Is_Preelaborated status, there can be preelaborated packages that
1079    --    generate elaboration code, and non- preelaborated packages which do
1080    --    not generate elaboration code.
1081
1082    --  Has_Priority_Pragma (Flag6-Sem)
1083    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1084    --    N_Protected_Definition nodes to flag the presence of either a Priority
1085    --    or Interrupt_Priority pragma in the declaration sequence (public or
1086    --    private in the task and protected cases)
1087
1088    --  Has_Private_View (Flag11-Sem)
1089    --    A flag present in generic nodes that have an entity, to indicate that
1090    --    the node has a private type. Used to exchange private and full
1091    --    declarations if the visibility at instantiation is different from the
1092    --    visibility at generic definition.
1093
1094    --  Has_Self_Reference (Flag13-Sem)
1095    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1096    --    of the expressions contains an access attribute reference to the
1097    --    enclosing type. Such a self-reference can only appear in default-
1098    --    initialized aggregate for a record type.
1099
1100    --  Has_Storage_Size_Pragma (Flag5-Sem)
1101    --    A flag present in an N_Task_Definition node to flag the presence of a
1102    --    Storage_Size pragma.
1103
1104    --  Has_Task_Info_Pragma (Flag7-Sem)
1105    --    A flag present in an N_Task_Definition node to flag the presence of a
1106    --    Task_Info pragma. Used to detect duplicate pragmas.
1107
1108    --  Has_Task_Name_Pragma (Flag8-Sem)
1109    --    A flag present in N_Task_Definition nodes to flag the presence of a
1110    --    Task_Name pragma in the declaration sequence for the task.
1111
1112    --  Has_Wide_Character (Flag11-Sem)
1113    --    Present in string literals, set if any wide character (i.e. character
1114    --    code outside the Character range) appears in the string.
1115
1116    --  Hidden_By_Use_Clause (Elist4-Sem)
1117    --     An entity list present in use clauses that appear within
1118    --     instantiations. For the resolution of local entities, entities
1119    --     introduced by these use clauses have priority over global ones, and
1120    --     outer entities must be explicitly hidden/restored on exit.
1121
1122    --  Implicit_With (Flag16-Sem)
1123    --    This flag is set in the N_With_Clause node that is implicitly
1124    --    generated for runtime units that are loaded by the expander, and also
1125    --    for package System, if it is loaded implicitly by a use of the
1126    --    'Address or 'Tag attribute.
1127
1128    --  Includes_Infinities (Flag11-Sem)
1129    --    This flag is present in N_Range nodes. It is set for the range of
1130    --    unconstrained float types defined in Standard, which include not only
1131    --    the given range of values, but also legtitimately can include infinite
1132    --    values. This flag is false for any float type for which an explicit
1133    --    range is given by the programmer, even if that range is identical to
1134    --    the range for Float.
1135
1136    --  Instance_Spec (Node5-Sem)
1137    --    This field is present in generic instantiation nodes, and also in
1138    --    formal package declaration nodes (formal package declarations are
1139    --    treated in a manner very similar to package instantiations). It points
1140    --    to the node for the spec of the instance, inserted as part of the
1141    --    semantic processing for instantiations in Sem_Ch12.
1142
1143    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1144    --    A flag set in a Block_Statement node to indicate that it is the
1145    --    expansion of an asynchronous entry call. Such a block needs cleanup
1146    --    handler to assure that the call is cancelled.
1147
1148    --  Is_Component_Left_Opnd  (Flag13-Sem)
1149    --  Is_Component_Right_Opnd (Flag14-Sem)
1150    --    Present in concatenation nodes, to indicate that the corresponding
1151    --    operand is of the component type of the result. Used in resolving
1152    --    concatenation nodes in instances.
1153
1154    --  Is_Controlling_Actual (Flag16-Sem)
1155    --    This flag is set on in an expression that is a controlling argument in
1156    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1157    --    details of its use.
1158
1159    --  Is_Dynamic_Coextension (Flag18-Sem)
1160    --    Present in allocator nodes, to indicate that this is an allocator
1161    --    for an access discriminant of a dynamically allocated object. The
1162    --    coextension must be deallocated and finalized at the same time as
1163    --    the enclosing object.
1164
1165    --  Is_Entry_Barrier_Function (Flag8-Sem)
1166    --    This flag is set in an N_Subprogram_Body node which is the expansion
1167    --    of an entry barrier from a protected entry body. It is used for the
1168    --    circuitry checking for incorrect use of Current_Task.
1169
1170    --  Is_In_Discriminant_Check (Flag11-Sem)
1171    --    This flag is present in a selected component, and is used to indicate
1172    --    that the reference occurs within a discriminant check. The
1173    --    significance is that optimizations based on assuming that the
1174    --    discriminant check has a correct value cannot be performed in this
1175    --    case (or the disriminant check may be optimized away!)
1176
1177    --  Is_Machine_Number (Flag11-Sem)
1178    --    This flag is set in an N_Real_Literal node to indicate that the value
1179    --    is a machine number. This avoids some unnecessary cases of converting
1180    --    real literals to machine numbers.
1181
1182    --  Is_Null_Loop (Flag16-Sem)
1183    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1184    --    can be determined to be null at compile time. This is used to suppress
1185    --    any warnings that would otherwise be issued inside the loop since they
1186    --    are probably not useful.
1187
1188    --  Is_Overloaded (Flag5-Sem)
1189    --    A flag present in all expression nodes. Used temporarily during
1190    --    overloading determination. The setting of this flag is not relevant
1191    --    once overloading analysis is complete.
1192
1193    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1194    --    A flag present only in N_Op_Expon nodes. It is set when the
1195    --    exponentiation is of the forma 2 ** N, where the type of N is an
1196    --    unsigned integral subtype whose size does not exceed the size of
1197    --    Standard_Integer (i.e. a type that can be safely converted to
1198    --    Natural), and the exponentiation appears as the right operand of an
1199    --    integer multiplication or an integer division where the dividend is
1200    --    unsigned. It is also required that overflow checking is off for both
1201    --    the exponentiation and the multiply/divide node. If this set of
1202    --    conditions holds, and the flag is set, then the division or
1203    --    multiplication can be (and is) converted to a shift.
1204
1205    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1206    --    A flag set in a Subprogram_Body block to indicate that it is the
1207    --    implemenation of a protected subprogram. Such a body needs cleanup
1208    --    handler to make sure that the associated protected object is unlocked
1209    --    when the subprogram completes.
1210
1211    --  Is_Static_Coextension (Flag14-Sem)
1212    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1213    --    of an object allocated on the stack rather than the heap.
1214
1215    --  Is_Static_Expression (Flag6-Sem)
1216    --    Indicates that an expression is a static expression (RM 4.9). See spec
1217    --    of package Sem_Eval for full details on the use of this flag.
1218
1219    --  Is_Subprogram_Descriptor (Flag16-Sem)
1220    --    Present in N_Object_Declaration, and set only for the object
1221    --    declaration generated for a subprogram descriptor in fast exception
1222    --    mode. See Exp_Ch11 for details of use.
1223
1224    --  Is_Task_Allocation_Block (Flag6-Sem)
1225    --    A flag set in a Block_Statement node to indicate that it is the
1226    --    expansion of a task allocator, or the allocator of an object
1227    --    containing tasks. Such a block requires a cleanup handler to call
1228    --    Expunge_Unactivted_Tasks to complete any tasks that have been
1229    --    allocated but not activated when the allocator completes abnormally.
1230
1231    --  Is_Task_Master (Flag5-Sem)
1232    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1233    --    indicate that the construct is a task master (i.e. has declared tasks
1234    --    or declares an access to a task type).
1235
1236    --  Itype (Node1-Sem)
1237    --    Used in N_Itype_Reference node to reference an itype for which it is
1238    --    important to ensure that it is defined. See description of this node
1239    --    for further details.
1240
1241    --  Kill_Range_Check (Flag11-Sem)
1242    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1243    --    result should not be subjected to range checks. This is used for the
1244    --    implementation of Normalize_Scalars.
1245
1246    --  Label_Construct (Node2-Sem)
1247    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1248    --    N_Block_Statement or N_Loop_Statement node to which the label
1249    --    declaration applies. This is not currently used in the compiler
1250    --    itself, but it is useful in the implementation of ASIS queries.
1251    --    This field is left empty for the special labels generated as part
1252    --    of expanding raise statements with a local exception handler.
1253
1254    --  Library_Unit (Node4-Sem)
1255    --    In a stub node, Library_Unit points to the compilation unit node of
1256    --    the corresponding subunit.
1257    --
1258    --    In a with clause node, Library_Unit points to the spec of the with'ed
1259    --    unit.
1260    --
1261    --    In a compilation unit node, the usage depends on the unit type:
1262    --
1263    --     For a subprogram body, Library_Unit points to the compilation unit
1264    --     node of the corresponding spec, unless Acts_As_Spec is set, in which
1265    --     case it points to itself.
1266    --
1267    --     For a package body, Library_Unit points to the compilation unit of
1268    --     the corresponding package spec.
1269    --
1270    --     For a subprogram spec to which pragma Inline applies, Library_Unit
1271    --     points to the compilation unit node of the corresponding body, if
1272    --     inlining is active.
1273    --
1274    --     For a generic declaration, Library_Unit points to the compilation
1275    --     unit node of the corresponding generic body.
1276    --
1277    --     For a subunit, Library_Unit points to the compilation unit node of
1278    --     the parent body.
1279    --
1280    --    Note that this field is not used to hold the parent pointer for child
1281    --    unit (which might in any case need to use it for some other purpose as
1282    --    described above). Instead for a child unit, implicit with's are
1283    --    generated for all parents.
1284
1285    --  Loop_Actions (List2-Sem)
1286    --    A list present in Component_Association nodes in array aggregates.
1287    --    Used to collect actions that must be executed within the loop because
1288    --    they may need to be evaluated anew each time through.
1289
1290    --  Limited_View_Installed (Flag18-Sem)
1291    --    Present in With_Clauses and in package specifications. If set on
1292    --    with_clause, it indicates that this clause has created the current
1293    --    limited view of the designated package. On a package specification, it
1294    --    indicates that the limited view has already been created because the
1295    --    package is mentioned in a limited_with_clause in the closure of the
1296    --    unit being compiled.
1297
1298    --  Local_Raise_Not_OK (Flag7-Sem)
1299    --    Present in N_Exception_Handler nodes. Set if the handler contains
1300    --    a construct (reraise statement, or call to subprogram in package
1301    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1302    --    for a local raise (one that could otherwise be converted to a goto).
1303
1304    --  Must_Be_Byte_Aligned (Flag14-Sem)
1305    --    This flag is present in N_Attribute_Reference nodes. It can be set
1306    --    only for the Address and Unrestricted_Access attributes. If set it
1307    --    means that the object for which the address/access is given must be on
1308    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1309    --    of the object is to be made before taking the address (this copy is in
1310    --    the current scope on the stack frame). This is used for certain cases
1311    --    of code generated by the expander that passes parameters by address.
1312    --
1313    --    The reason the copy is not made by the front end is that the back end
1314    --    has more information about type layout and may be able to (but is not
1315    --    guaranteed to) prevent making unnecessary copies.
1316
1317    --  Must_Not_Freeze (Flag8-Sem)
1318    --    A flag present in all expression nodes. Normally expressions cause
1319    --    freezing as described in the RM. If this flag is set, then this is
1320    --    inhibited. This is used by the analyzer and expander to label nodes
1321    --    that are created by semantic analysis or expansion and which must not
1322    --    cause freezing even though they normally would. This flag is also
1323    --    present in an N_Subtype_Indication node, since we also use these in
1324    --    calls to Freeze_Expression.
1325
1326    --  Next_Entity (Node2-Sem)
1327    --    Present in defining identifiers, defining character literals and
1328    --    defining operator symbols (i.e. in all entities). The entities of a
1329    --    scope are chained, and this field is used as the forward pointer for
1330    --    this list. See Einfo for further details.
1331
1332    --  Next_Named_Actual (Node4-Sem)
1333    --    Present in parameter association node. Set during semantic analysis to
1334    --    point to the next named parameter, where parameters are ordered by
1335    --    declaration order (as opposed to the actual order in the call, which
1336    --    may be different due to named associations). Not that this field
1337    --    points to the explicit actual parameter itself, not to the
1338    --    N_Parameter_Association node (its parent).
1339
1340    --  Next_Rep_Item (Node5-Sem)
1341    --    Present in pragma nodes and attribute definition nodes. Used to link
1342    --    representation items that apply to an entity. See description of
1343    --    First_Rep_Item field in Einfo for full details.
1344
1345    --  Next_Use_Clause (Node3-Sem)
1346    --    While use clauses are active during semantic processing, they are
1347    --    chained from the scope stack entry, using Next_Use_Clause as a link
1348    --    pointer, with Empty marking the end of the list. The head pointer is
1349    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1350    --    processing (i.e. when Gigi sees the tree, the contents of this field
1351    --    is undefined and should not be read).
1352
1353    --  No_Ctrl_Actions (Flag7-Sem)
1354    --    Present in N_Assignment_Statement to indicate that no finalize nor nor
1355    --    adjust should take place on this assignment eventhough the rhs is
1356    --    controlled. This is used in init procs and aggregate expansions where
1357    --    the generated assignments are more initialisations than real
1358    --    assignments.
1359
1360    --  No_Elaboration_Check (Flag14-Sem)
1361    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1362    --    that no elaboration check is needed on the call, because it appears in
1363    --    the context of a local Suppress pragma. This is used on calls within
1364    --    task bodies, where the actual elaboration checks are applied after
1365    --    analysis, when the local scope stack is not present.
1366
1367    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1368    --    Present in N_With_Clause nodes. Set if the with clause is on the
1369    --    package or subprogram spec where the main unit is the corresponding
1370    --    body, and no entities of the with'ed unit are referenced by the spec
1371    --    (an entity may still be referenced in the body, so this flag is used
1372    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1373    --    full details)
1374
1375    --  No_Initialization (Flag13-Sem)
1376    --    Present in N_Object_Declaration & N_Allocator to indicate that the
1377    --    object must not be initialized (by Initialize or call to an init
1378    --    proc). This is needed for controlled aggregates. When the Object
1379    --    declaration has an expression, this flag means that this expression
1380    --    should not be taken into account (needed for in place initialization
1381    --    with aggregates)
1382
1383    --  No_Truncation (Flag17-Sem)
1384    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1385    --    only if the RM_Size of the source is greater than the RM_Size of the
1386    --    target for scalar operands. Normally in such a case we truncate some
1387    --    higher order bits of the source, and then sign/zero extend the result
1388    --    to form the output value. But if this flag is set, then we do not do
1389    --    any truncation, so for example, if an 8 bit input is converted to 5
1390    --    bit result which is in fact stored in 8 bits, then the high order
1391    --    three bits of the target result will be copied from the source. This
1392    --    is used for properly setting out of range values for use by pragmas
1393    --    Initialize_Scalars and Normalize_Scalars.
1394
1395    --  Original_Discriminant (Node2-Sem)
1396    --    Present in identifiers. Used in references to discriminants that
1397    --    appear in generic units. Because the names of the discriminants may be
1398    --    different in an instance, we use this field to recover the position of
1399    --    the discriminant in the original type, and replace it with the
1400    --    discriminant at the same position in the instantiated type.
1401
1402    --  Original_Entity (Node2-Sem)
1403    --    Present in numeric literals. Used to denote the named number that has
1404    --    been constant-folded into the given literal. If literal is from
1405    --    source, or the result of some other constant-folding operation, then
1406    --    Original_Entity is empty. This field is needed to handle properly
1407    --    named numbers in generic units, where the Associated_Node field
1408    --    interferes with the Entity field, making it impossible to preserve the
1409    --    original entity at the point of instantiation (ASIS problem).
1410
1411    --  Others_Discrete_Choices (List1-Sem)
1412    --    When a case statement or variant is analyzed, the semantic checks
1413    --    determine the actual list of choices that correspond to an others
1414    --    choice. This list is materialized for later use by the expander and
1415    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1416    --    this materialized list of choices, which is in standard format for a
1417    --    list of discrete choices, except that of course it cannot contain an
1418    --    N_Others_Choice entry.
1419
1420    --  Parameter_List_Truncated (Flag17-Sem)
1421    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1422    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1423    --    a result of a First_Optional_Parameter specification in an
1424    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1425    --    The truncation is done by the expander by removing trailing parameters
1426    --    from the argument list, in accordance with the set of rules allowing
1427    --    such parameter removal. In particular, parameters can be removed
1428    --    working from the end of the parameter list backwards up to and
1429    --    including the entry designated by First_Optional_Parameter in the
1430    --    Import pragma. Parameters can be removed if they are implicit and the
1431    --    default value is a known-at-compile-time value, including the use of
1432    --    the Null_Parameter attribute, or if explicit parameter values are
1433    --    present that match the corresponding defaults.
1434
1435    --  Parent_Spec (Node4-Sem)
1436    --    For a library unit that is a child unit spec (package or subprogram
1437    --    declaration, generic declaration or instantiation, or library level
1438    --    rename, this field points to the compilation unit node for the parent
1439    --    package specification. This field is Empty for library bodies (the
1440    --    parent spec in this case can be found from the corresponding spec).
1441
1442    --  Present_Expr (Uint3-Sem)
1443    --    Present in an N_Variant node. This has a meaningful value only after
1444    --    Gigi has back annotated the tree with representation information. At
1445    --    this point, it contains a reference to a gcc expression that depends
1446    --    on the values of one or more discriminants. Give a set of discriminant
1447    --    values, this expression evaluates to False (zero) if variant is not
1448    --    present, and True (non-zero) if it is present. See unit Repinfo for
1449    --    further details on gigi back annotation. This field is used during
1450    --    ASIS processing (data decomposition annex) to determine if a field is
1451    --    present or not.
1452
1453    --  Print_In_Hex (Flag13-Sem)
1454    --    Set on an N_Integer_Literal node to indicate that the value should be
1455    --    printed in hexadecimal in the sprint listing. Has no effect on
1456    --    legality or semantics of program, only on the displayed output. This
1457    --    is used to clarify output from the packed array cases.
1458
1459    --  Procedure_To_Call (Node2-Sem)
1460    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1461    --    and N_Extended_Return_Statement nodes. References the entity for the
1462    --    declaration of the procedure to be called to accomplish the required
1463    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1464    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1465    --    allocating the return value), and for the Deallocate procedure in the
1466    --    case of N_Free_Statement.
1467
1468    --  Raises_Constraint_Error (Flag7-Sem)
1469    --    Set on an expression whose evaluation will definitely fail constraint
1470    --    error check. In the case of static expressions, this flag must be set
1471    --    accurately (and if it is set, the expression is typically illegal
1472    --    unless it appears as a non-elaborated branch of a short-circuit form).
1473    --    For a non-static expression, this flag may be set whenever an
1474    --    expression (e.g. an aggregate) is known to raise constraint error. If
1475    --    set, the expression definitely will raise CE if elaborated at runtime.
1476    --    If not set, the expression may or may not raise CE. In other words, on
1477    --    static expressions, the flag is set accurately, on non-static
1478    --    expressions it is set conservatively.
1479
1480    --  Redundant_Use (Flag13-Sem)
1481    --    Present in nodes that can appear as an operand in a use clause or use
1482    --    type clause (identifiers, expanded names, attribute references). Set
1483    --    to indicate that a use is redundant (and therefore need not be undone
1484    --    on scope exit).
1485
1486    --  Renaming_Exception (Node2-Sem)
1487    --    Present in N_Exception_Declaration node. Used to point back to the
1488    --    exception renaming for an exception declared within a subprogram.
1489    --    What happens is that an exception declared in a subprogram is moved
1490    --    to the library level with a unique name, and the original exception
1491    --    becomes a renaming. This link from the library level exception to the
1492    --    renaming declaration allows registering of the proper exception name.
1493
1494    --  Return_Statement_Entity (Node5-Sem)
1495    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1496    --    Points to an E_Return_Statement representing the return statement.
1497
1498    --  Return_Object_Declarations (List3)
1499    --    Present in N_Extended_Return_Statement.
1500    --    Points to a list initially containing a single
1501    --    N_Object_Declaration representing the return object.
1502    --    We use a list (instead of just a pointer to the object decl)
1503    --    because Analyze wants to insert extra actions on this list.
1504
1505    --  Rounded_Result (Flag18-Sem)
1506    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1507    --    Used in the fixed-point cases to indicate that the result must be
1508    --    rounded as a result of the use of the 'Round attribute. Also used for
1509    --    integer N_Op_Divide nodes to indicate that the result should be
1510    --    rounded to the nearest integer (breaking ties away from zero), rather
1511    --    than truncated towards zero as usual. These rounded integer operations
1512    --    are the result of expansion of rounded fixed-point divide, conversion
1513    --    and multiplication operations.
1514
1515    --  Scope (Node3-Sem)
1516    --    Present in defining identifiers, defining character literals and
1517    --    defining operator symbols (i.e. in all entities). The entities of a
1518    --    scope all use this field to reference the corresponding scope entity.
1519    --    See Einfo for further details.
1520
1521    --  Shift_Count_OK (Flag4-Sem)
1522    --    A flag present in shift nodes to indicate that the shift count is
1523    --    known to be in range, i.e. is in the range from zero to word length
1524    --    minus one. If this flag is not set, then the shift count may be
1525    --    outside this range, i.e. larger than the word length, and the code
1526    --    must ensure that such shift counts give the appropriate result.
1527
1528    --  Source_Type (Node1-Sem)
1529    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1530    --    source type entity for the unchecked conversion instantiation
1531    --    which gigi must do size validation for.
1532
1533    --  Static_Processing_OK (Flag4-Sem)
1534    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1535    --    flag is set, the full value of the aggregate can be determined at
1536    --    compile time and the aggregate can be passed as is to the back-end.
1537    --    In this event it is irrelevant whether this flag is set or not.
1538    --    However, if the flag Compile_Time_Known_Aggregate is not set but
1539    --    Static_Processing_OK is set, the aggregate can (but need not) be
1540    --    converted into a compile time known aggregate by the expander. See
1541    --    Sem_Aggr for the specific conditions under which an aggregate has its
1542    --    Static_Processing_OK flag set.
1543
1544    --  Storage_Pool (Node1-Sem)
1545    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1546    --    and N_Extended_Return_Statement nodes. References the entity for the
1547    --    storage pool to be used for the allocate or free call or for the
1548    --    allocation of the returned value from function. Empty indicates that
1549    --    the global default default pool is to be used. Note that in the case
1550    --    of a return statement, this field is set only if the function returns
1551    --    value of a type whose size is not known at compile time on the
1552    --    secondary stack.
1553
1554    --  Target_Type (Node2-Sem)
1555    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1556    --    type entity for the unchecked conversion instantiation which gigi must
1557    --    do size validation for.
1558
1559    --  Then_Actions (List3-Sem)
1560    --    This field is present in conditional expression nodes. During code
1561    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1562    --    actions at an appropriate place in the tree to get elaborated at the
1563    --    right time. For conditional expressions, we have to be sure that the
1564    --    actions for the Then branch are only elaborated if the condition is
1565    --    True. The Then_Actions field is used as a temporary parking place for
1566    --    these actions. The final tree is always rewritten to eliminate the
1567    --    need for this field, so in the tree passed to Gigi, this field is
1568    --    always set to No_List.
1569
1570    --  Treat_Fixed_As_Integer (Flag14-Sem)
1571    --    This flag appears in operator nodes for divide, multiply, mod and rem
1572    --    on fixed-point operands. It indicates that the operands are to be
1573    --    treated as integer values, ignoring small values. This flag is only
1574    --    set as a result of expansion of fixed-point operations. Typically a
1575    --    fixed-point multplication in the source generates subsidiary
1576    --    multiplication and division operations that work with the underlying
1577    --    integer values and have this flag set. Note that this flag is not
1578    --    needed on other arithmetic operations (add, neg, subtract etc) since
1579    --    in these cases it is always the case that fixed is treated as integer.
1580    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1581    --    leave such nodes alone, and whoever makes them must set the correct
1582    --    Etype value.
1583
1584    --  TSS_Elist (Elist3-Sem)
1585    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1586    --    entries for each TSS (type support subprogram) associated with the
1587    --    frozen type. The elements of the list are the entities for the
1588    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1589    --    if there are no type support subprograms for the type or if the freeze
1590    --    node is not for a type.
1591
1592    --  Unreferenced_In_Spec (Flag7-Sem)
1593    --    Present in N_With_Clause nodes. Set if the with clause is on the
1594    --    package or subprogram spec where the main unit is the corresponding
1595    --    body, and is not referenced by the spec (it may still be referenced by
1596    --    the body, so this flag is used to generate the proper message (see
1597    --    Sem_Util.Check_Unused_Withs for details)
1598
1599    --  Was_Originally_Stub (Flag13-Sem)
1600    --    This flag is set in the node for a proper body that replaces stub.
1601    --    During the analysis procedure, stubs in some situations get rewritten
1602    --    by the corresponding bodies, and we set this flag to remember that
1603    --    this happened. Note that it is not good enough to rely on the use of
1604    --    Original_Node here because of the case of nested instantiations where
1605    --    the substituted node can be copied.
1606
1607    --  Zero_Cost_Handling (Flag5-Sem)
1608    --    This flag is set in all handled sequence of statement and exception
1609    --    handler nodes if eceptions are to be handled using the zero-cost
1610    --    mechanism (see Ada.Exceptions and System.Exceptions in files
1611    --    a-except.ads/adb and s-except.ads for full details). What gigi needs
1612    --    to do for such a handler is simply to put the code in the handler
1613    --    somewhere. The front end has generated all necessary labels.
1614
1615    --------------------------------------------------
1616    -- Note on Use of End_Label and End_Span Fields --
1617    --------------------------------------------------
1618
1619    --  Several constructs have end lines:
1620
1621    --    Loop Statement             end loop [loop_IDENTIFIER];
1622    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1623    --    Task Definition            end [task_IDENTIFIER]
1624    --    Protected Definition       end [protected_IDENTIFIER]
1625    --    Protected Body             end [protected_IDENTIFIER]
1626
1627    --    Block Statement            end [block_IDENTIFIER];
1628    --    Subprogram Body            end [DESIGNATOR];
1629    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1630    --    Task Body                  end [task_IDENTIFIER];
1631    --    Accept Statement           end [entry_IDENTIFIER]];
1632    --    Entry Body                 end [entry_IDENTIFIER];
1633
1634    --    If Statement               end if;
1635    --    Case Statement             end case;
1636
1637    --    Record Definition          end record;
1638    --    Enumeration Definition     );
1639
1640    --  The End_Label and End_Span fields are used to mark the locations of
1641    --  these lines, and also keep track of the label in the case where a label
1642    --  is present.
1643
1644    --  For the first group above, the End_Label field of the corresponding node
1645    --  is used to point to the label identifier. In the case where there is no
1646    --  label in the source, the parser supplies a dummy identifier (with
1647    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1648    --  marks the location of the token following the END token.
1649
1650    --  For the second group, the use of End_Label is similar, but the End_Label
1651    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1652    --  simply because in some cases there is no room in the parent node.
1653
1654    --  For the third group, there is never any label, and instead of using
1655    --  End_Label, we use the End_Span field which gives the location of the
1656    --  token following END, relative to the starting Sloc of the construct,
1657    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1658    --  following the End_Label.
1659
1660    --  The record definition case is handled specially, we treat it as though
1661    --  it required an optional label which is never present, and so the parser
1662    --  always builds a dummy identifier with Comes From Source set False. The
1663    --  reason we do this, rather than using End_Span in this case, is that we
1664    --  want to generate a cross-ref entry for the end of a record, since it
1665    --  represents a scope for name declaration purposes.
1666
1667    --  The enumeration definition case is handled in an exactly similar manner,
1668    --  building a dummy identifier to get a cross-reference.
1669
1670    --  Note: the reason we store the difference as a Uint, instead of storing
1671    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
1672    --  distinguished from other types of values, and we count on all general
1673    --  use fields being self describing. To make things easier for clients,
1674    --  note that we provide function End_Location, and procedure
1675    --  Set_End_Location to allow access to the logical value (which is the
1676    --  Source_Ptr value for the end token).
1677
1678    ---------------------
1679    -- Syntactic Nodes --
1680    ---------------------
1681
1682       ---------------------
1683       -- 2.3  Identifier --
1684       ---------------------
1685
1686       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1687       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1688
1689       --  An IDENTIFIER shall not be a reserved word
1690
1691       --  In the Ada grammar identifiers are the bottom level tokens which have
1692       --  very few semantics. Actual program identifiers are direct names. If
1693       --  we were being 100% honest with the grammar, then we would have a node
1694       --  called N_Direct_Name which would point to an identifier. However,
1695       --  that's too many extra nodes, so we just use the N_Identifier node
1696       --  directly as a direct name, and it contains the expression fields and
1697       --  Entity field that correspond to its use as a direct name. In those
1698       --  few cases where identifiers appear in contexts where they are not
1699       --  direct names (pragmas, pragma argument associations, attribute
1700       --  references and attribute definition clauses), the Chars field of the
1701       --  node contains the Name_Id for the identifier name.
1702
1703       --  Note: in GNAT, a reserved word can be treated as an identifier in two
1704       --  cases. First, an incorrect use of a reserved word as an identifier is
1705       --  diagnosed and then treated as a normal identifier. Second, an
1706       --  attribute designator of the form of a reserved word (access, delta,
1707       --  digits, range) is treated as an identifier.
1708
1709       --  Note: The set of letters that is permitted in an identifier depends
1710       --  on the character set in use. See package Csets for full details.
1711
1712       --  N_Identifier
1713       --  Sloc points to identifier
1714       --  Chars (Name1) contains the Name_Id for the identifier
1715       --  Entity (Node4-Sem)
1716       --  Associated_Node (Node4-Sem)
1717       --  Original_Discriminant (Node2-Sem)
1718       --  Redundant_Use (Flag13-Sem)
1719       --  Has_Private_View (Flag11-Sem) (set in generic units)
1720       --  plus fields for expression
1721
1722       --------------------------
1723       -- 2.4  Numeric Literal --
1724       --------------------------
1725
1726       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1727
1728       ----------------------------
1729       -- 2.4.1  Decimal Literal --
1730       ----------------------------
1731
1732       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1733
1734       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1735
1736       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1737
1738       --  Decimal literals appear in the tree as either integer literal nodes
1739       --  or real literal nodes, depending on whether a period is present.
1740
1741       --  Note: literal nodes appear as a result of direct use of literals
1742       --  in the source program, and also as the result of evaluating
1743       --  expressions at compile time. In the latter case, it is possible
1744       --  to construct real literals that have no syntactic representation
1745       --  using the standard literal format. Such literals are listed by
1746       --  Sprint using the notation [numerator / denominator].
1747
1748       --  Note: the value of an integer literal node created by the front end
1749       --  is never outside the range of values of the base type. However, it
1750       --  can be the case that the value is outside the range of the
1751       --  particular subtype. This happens in the case of integer overflows
1752       --  with checks suppressed.
1753
1754       --  N_Integer_Literal
1755       --  Sloc points to literal
1756       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1757       --  has been constant-folded into its literal value.
1758       --  Intval (Uint3) contains integer value of literal
1759       --  plus fields for expression
1760       --  Print_In_Hex (Flag13-Sem)
1761
1762       --  N_Real_Literal
1763       --  Sloc points to literal
1764       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1765       --  has been constant-folded into its literal value.
1766       --  Realval (Ureal3) contains real value of literal
1767       --  Corresponding_Integer_Value (Uint4-Sem)
1768       --  Is_Machine_Number (Flag11-Sem)
1769       --  plus fields for expression
1770
1771       --------------------------
1772       -- 2.4.2  Based Literal --
1773       --------------------------
1774
1775       --  BASED_LITERAL ::=
1776       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1777
1778       --  BASE ::= NUMERAL
1779
1780       --  BASED_NUMERAL ::=
1781       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1782
1783       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1784
1785       --  Based literals appear in the tree as either integer literal nodes
1786       --  or real literal nodes, depending on whether a period is present.
1787
1788       ----------------------------
1789       -- 2.5  Character Literal --
1790       ----------------------------
1791
1792       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1793
1794       --  N_Character_Literal
1795       --  Sloc points to literal
1796       --  Chars (Name1) contains the Name_Id for the identifier
1797       --  Char_Literal_Value (Uint2) contains the literal value
1798       --  Entity (Node4-Sem)
1799       --  Associated_Node (Node4-Sem)
1800       --  Has_Private_View (Flag11-Sem) set in generic units.
1801       --  plus fields for expression
1802
1803       --  Note: the Entity field will be missing (set to Empty) for character
1804       --  literals whose type is Standard.Wide_Character or Standard.Character
1805       --  or a type derived from one of these two. In this case the character
1806       --  literal stands for its own coding. The reason we take this irregular
1807       --  short cut is to avoid the need to build lots of junk defining
1808       --  character literal nodes.
1809
1810       -------------------------
1811       -- 2.6  String Literal --
1812       -------------------------
1813
1814       --  STRING LITERAL ::= "{STRING_ELEMENT}"
1815
1816       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
1817       --  single GRAPHIC_CHARACTER other than a quotation mark.
1818       --
1819       --  Is_Folded_In_Parser is True if the parser created this literal by
1820       --  folding a sequence of "&" operators. For example, if the source code
1821       --  says "aaa" & "bbb" & "ccc", and the produces "aaabbbccc", the flag is
1822       --  set. This flag is needed because the parser doesn't know about
1823       --  visibility, so the folded result might be wrong, and semantic
1824       --  analysis needs to check for that.
1825
1826       --  N_String_Literal
1827       --  Sloc points to literal
1828       --  Strval (Str3) contains Id of string value
1829       --  Has_Wide_Character (Flag11-Sem)
1830       --  Is_Folded_In_Parser (Flag4)
1831       --  plus fields for expression
1832
1833       ------------------
1834       -- 2.7  Comment --
1835       ------------------
1836
1837       --  A COMMENT starts with two adjacent hyphens and extends up to the
1838       --  end of the line. A COMMENT may appear on any line of a program.
1839
1840       --  Comments are skipped by the scanner and do not appear in the tree.
1841       --  It is possible to reconstruct the position of comments with respect
1842       --  to the elements of the tree by using the source position (Sloc)
1843       --  pointers that appear in every tree node.
1844
1845       -----------------
1846       -- 2.8  Pragma --
1847       -----------------
1848
1849       --  PRAGMA ::= pragma IDENTIFIER
1850       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1851
1852       --  Note that a pragma may appear in the tree anywhere a declaration
1853       --  or a statement may appear, as well as in some other situations
1854       --  which are explicitly documented.
1855
1856       --  N_Pragma
1857       --  Sloc points to PRAGMA
1858       --  Chars (Name1) identifier name from pragma identifier
1859       --  Pragma_Argument_Associations (List2) (set to No_List if none)
1860       --  Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1861       --  Next_Rep_Item (Node5-Sem)
1862
1863       --  Note: we should have a section on what pragmas are passed on to
1864       --  the back end to be processed. This section should note that pragma
1865       --  Psect_Object is always converted to Common_Object, but there are
1866       --  undoubtedly many other similar notes required ???
1867
1868       --------------------------------------
1869       -- 2.8  Pragma Argument Association --
1870       --------------------------------------
1871
1872       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
1873       --    [pragma_argument_IDENTIFIER =>] NAME
1874       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
1875
1876       --  N_Pragma_Argument_Association
1877       --  Sloc points to first token in association
1878       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
1879       --  Expression (Node3)
1880
1881       ------------------------
1882       -- 2.9  Reserved Word --
1883       ------------------------
1884
1885       --  Reserved words are parsed by the scanner, and returned as the
1886       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1887
1888       ----------------------------
1889       -- 3.1  Basic Declaration --
1890       ----------------------------
1891
1892       --  BASIC_DECLARATION ::=
1893       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
1894       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
1895       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
1896       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
1897       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
1898       --  | GENERIC_INSTANTIATION
1899
1900       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1901       --  see further description in section on semantic nodes.
1902
1903       --  Also, in the tree that is constructed, a pragma may appear
1904       --  anywhere that a declaration may appear.
1905
1906       ------------------------------
1907       -- 3.1  Defining Identifier --
1908       ------------------------------
1909
1910       --  DEFINING_IDENTIFIER ::= IDENTIFIER
1911
1912       --  A defining identifier is an entity, which has additional fields
1913       --  depending on the setting of the Ekind field. These additional
1914       --  fields are defined (and access subprograms declared) in package
1915       --  Einfo.
1916
1917       --  Note: N_Defining_Identifier is an extended node whose fields are
1918       --  deliberate layed out to match the layout of fields in an ordinary
1919       --  N_Identifier node allowing for easy alteration of an identifier
1920       --  node into a defining identifier node. For details, see procedure
1921       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1922
1923       --  N_Defining_Identifier
1924       --  Sloc points to identifier
1925       --  Chars (Name1) contains the Name_Id for the identifier
1926       --  Next_Entity (Node2-Sem)
1927       --  Scope (Node3-Sem)
1928       --  Etype (Node5-Sem)
1929
1930       -----------------------------
1931       -- 3.2.1  Type Declaration --
1932       -----------------------------
1933
1934       --  TYPE_DECLARATION ::=
1935       --    FULL_TYPE_DECLARATION
1936       --  | INCOMPLETE_TYPE_DECLARATION
1937       --  | PRIVATE_TYPE_DECLARATION
1938       --  | PRIVATE_EXTENSION_DECLARATION
1939
1940       ----------------------------------
1941       -- 3.2.1  Full Type Declaration --
1942       ----------------------------------
1943
1944       --  FULL_TYPE_DECLARATION ::=
1945       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1946       --      is TYPE_DEFINITION;
1947       --  | TASK_TYPE_DECLARATION
1948       --  | PROTECTED_TYPE_DECLARATION
1949
1950       --  The full type declaration node is used only for the first case. The
1951       --  second case (concurrent type declaration), is represented directly
1952       --  by a task type declaration or a protected type declaration.
1953
1954       --  N_Full_Type_Declaration
1955       --  Sloc points to TYPE
1956       --  Defining_Identifier (Node1)
1957       --  Discriminant_Specifications (List4) (set to No_List if none)
1958       --  Type_Definition (Node3)
1959       --  Discr_Check_Funcs_Built (Flag11-Sem)
1960
1961       ----------------------------
1962       -- 3.2.1  Type Definition --
1963       ----------------------------
1964
1965       --  TYPE_DEFINITION ::=
1966       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
1967       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
1968       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
1969       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
1970
1971       --------------------------------
1972       -- 3.2.2  Subtype Declaration --
1973       --------------------------------
1974
1975       --  SUBTYPE_DECLARATION ::=
1976       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
1977
1978       --  The subtype indication field is set to Empty for subtypes
1979       --  declared in package Standard (Positive, Natural).
1980
1981       --  N_Subtype_Declaration
1982       --  Sloc points to SUBTYPE
1983       --  Defining_Identifier (Node1)
1984       --  Null_Exclusion_Present (Flag11)
1985       --  Subtype_Indication (Node5)
1986       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
1987       --  Exception_Junk (Flag8-Sem)
1988
1989       -------------------------------
1990       -- 3.2.2  Subtype Indication --
1991       -------------------------------
1992
1993       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
1994
1995       --  Note: if no constraint is present, the subtype indication appears
1996       --  directly in the tree as a subtype mark. The N_Subtype_Indication
1997       --  node is used only if a constraint is present.
1998
1999       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2000       --  with the null-exclusion part (see AI-231), we had to introduce a new
2001       --  attribute in all the parents of subtype_indication nodes to indicate
2002       --  if the null-exclusion is present.
2003
2004       --  Note: the reason that this node has expression fields is that a
2005       --  subtype indication can appear as an operand of a membership test.
2006
2007       --  N_Subtype_Indication
2008       --  Sloc points to first token of subtype mark
2009       --  Subtype_Mark (Node4)
2010       --  Constraint (Node3)
2011       --  Etype (Node5-Sem)
2012       --  Must_Not_Freeze (Flag8-Sem)
2013
2014       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2015       --  reason for this redundancy is so that in a list of array index types,
2016       --  the Etype can be uniformly accessed to determine the subscript type.
2017       --  This means that no Itype is constructed for the actual subtype that
2018       --  is created by the subtype indication. If such an Itype is required,
2019       --  it is constructed in the context in which the indication appears.
2020
2021       -------------------------
2022       -- 3.2.2  Subtype Mark --
2023       -------------------------
2024
2025       --  SUBTYPE_MARK ::= subtype_NAME
2026
2027       -----------------------
2028       -- 3.2.2  Constraint --
2029       -----------------------
2030
2031       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2032
2033       ------------------------------
2034       -- 3.2.2  Scalar Constraint --
2035       ------------------------------
2036
2037       --  SCALAR_CONSTRAINT ::=
2038       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2039
2040       ---------------------------------
2041       -- 3.2.2  Composite Constraint --
2042       ---------------------------------
2043
2044       --  COMPOSITE_CONSTRAINT ::=
2045       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2046
2047       -------------------------------
2048       -- 3.3.1  Object Declaration --
2049       -------------------------------
2050
2051       --  OBJECT_DECLARATION ::=
2052       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2053       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2054       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2055       --      ACCESS_DEFINITION [:= EXPRESSION];
2056       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2057       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2058       --  | SINGLE_TASK_DECLARATION
2059       --  | SINGLE_PROTECTED_DECLARATION
2060
2061       --  Note: aliased is not permitted in Ada 83 mode
2062
2063       --  The N_Object_Declaration node is only for the first two cases.
2064       --  Single task declaration is handled by P_Task (9.1)
2065       --  Single protected declaration is handled by P_protected (9.5)
2066
2067       --  Although the syntax allows multiple identifiers in the list, the
2068       --  semantics is as though successive declarations were given with
2069       --  identical type definition and expression components. To simplify
2070       --  semantic processing, the parser represents a multiple declaration
2071       --  case as a sequence of single declarations, using the More_Ids and
2072       --  Prev_Ids flags to preserve the original source form as described
2073       --  in the section on "Handling of Defining Identifier Lists".
2074
2075       --  The flag Has_Init_Expression is set if an initializing expression
2076       --  is present. Normally it is set if and only if Expression contains
2077       --  a non-empty value, but there is an exception to this. When the
2078       --  initializing expression is an aggregate which requires explicit
2079       --  assignments, the Expression field gets set to Empty, but this flag
2080       --  is still set, so we don't forget we had an initializing expression.
2081
2082       --  Note: if a range check is required for the initialization
2083       --  expression then the Do_Range_Check flag is set in the Expression,
2084       --  with the check being done against the type given by the object
2085       --  definition, which is also the Etype of the defining identifier.
2086
2087       --  Note: the contents of the Expression field must be ignored (i.e.
2088       --  treated as though it were Empty) if No_Initialization is set True.
2089
2090       --  Note: the back end places some restrictions on the form of the
2091       --  Expression field. If the object being declared is Atomic, then
2092       --  the Expression may not have the form of an aggregate (since this
2093       --  might cause the back end to generate separate assignments). It
2094       --  also cannot be a reference to an object marked as a true constant
2095       --  (Is_True_Constant flag set), where the object is itself initalized
2096       --  with an aggregate. If necessary the front end must generate an
2097       --  extra temporary (with Is_True_Constant set False), and initialize
2098       --  this temporary as required (the temporary itself is not atomic).
2099
2100       --  Note: there is not node kind for object definition. Instead, the
2101       --  corresponding field holds a subtype indication, an array type
2102       --  definition, or (Ada 2005, AI-406) an access definition.
2103
2104       --  N_Object_Declaration
2105       --  Sloc points to first identifier
2106       --  Defining_Identifier (Node1)
2107       --  Aliased_Present (Flag4) set if ALIASED appears
2108       --  Constant_Present (Flag17) set if CONSTANT appears
2109       --  Null_Exclusion_Present (Flag11)
2110       --  Object_Definition (Node4) subtype indic./array type def./ access def.
2111       --  Expression (Node3) (set to Empty if not present)
2112       --  Handler_List_Entry (Node2-Sem)
2113       --  Corresponding_Generic_Association (Node5-Sem)
2114       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2115       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2116       --  No_Initialization (Flag13-Sem)
2117       --  Assignment_OK (Flag15-Sem)
2118       --  Exception_Junk (Flag8-Sem)
2119       --  Is_Subprogram_Descriptor (Flag16-Sem)
2120       --  Has_Init_Expression (Flag14)
2121
2122       -------------------------------------
2123       -- 3.3.1  Defining Identifier List --
2124       -------------------------------------
2125
2126       --  DEFINING_IDENTIFIER_LIST ::=
2127       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2128
2129       -------------------------------
2130       -- 3.3.2  Number Declaration --
2131       -------------------------------
2132
2133       --  NUMBER_DECLARATION ::=
2134       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2135
2136       --  Although the syntax allows multiple identifiers in the list, the
2137       --  semantics is as though successive declarations were given with
2138       --  identical expressions. To simplify semantic processing, the parser
2139       --  represents a multiple declaration case as a sequence of single
2140       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2141       --  the original source form as described in the section on "Handling
2142       --  of Defining Identifier Lists".
2143
2144       --  N_Number_Declaration
2145       --  Sloc points to first identifier
2146       --  Defining_Identifier (Node1)
2147       --  Expression (Node3)
2148       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2149       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2150
2151       ----------------------------------
2152       -- 3.4  Derived Type Definition --
2153       ----------------------------------
2154
2155       --  DERIVED_TYPE_DEFINITION ::=
2156       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2157       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2158
2159       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2160       --  in Ada 83 mode
2161
2162       --  Note: a record extension part is required if ABSTRACT is present
2163
2164       --  N_Derived_Type_Definition
2165       --  Sloc points to NEW
2166       --  Abstract_Present (Flag4)
2167       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2168       --  Subtype_Indication (Node5)
2169       --  Record_Extension_Part (Node3) (set to Empty if not present)
2170       --  Limited_Present (Flag17)
2171       --  Task_Present (Flag5) set in task interfaces
2172       --  Protected_Present (Flag6) set in protected interfaces
2173       --  Synchronized_Present (Flag7) set in interfaces
2174       --  Interface_List (List2) (set to No_List if none)
2175       --  Interface_Present (Flag16) set in abstract interfaces
2176
2177       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2178       --        Interface_List, and Interface_Present are used for abstract
2179       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2180
2181       ---------------------------
2182       -- 3.5  Range Constraint --
2183       ---------------------------
2184
2185       --  RANGE_CONSTRAINT ::= range RANGE
2186
2187       --  N_Range_Constraint
2188       --  Sloc points to RANGE
2189       --  Range_Expression (Node4)
2190
2191       ----------------
2192       -- 3.5  Range --
2193       ----------------
2194
2195       --  RANGE ::=
2196       --    RANGE_ATTRIBUTE_REFERENCE
2197       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2198
2199       --  Note: the case of a range given as a range attribute reference
2200       --  appears directly in the tree as an attribute reference.
2201
2202       --  Note: the field name for a reference to a range is Range_Expression
2203       --  rather than Range, because range is a reserved keyword in Ada!
2204
2205       --  Note: the reason that this node has expression fields is that a
2206       --  range can appear as an operand of a membership test. The Etype
2207       --  field is the type of the range (we do NOT construct an implicit
2208       --  subtype to represent the range exactly).
2209
2210       --  N_Range
2211       --  Sloc points to ..
2212       --  Low_Bound (Node1)
2213       --  High_Bound (Node2)
2214       --  Includes_Infinities (Flag11)
2215       --  plus fields for expression
2216
2217       --  Note: if the range appears in a context, such as a subtype
2218       --  declaration, where range checks are required on one or both of
2219       --  the expression fields, then type conversion nodes are inserted
2220       --  to represent the required checks.
2221
2222       ----------------------------------------
2223       -- 3.5.1  Enumeration Type Definition --
2224       ----------------------------------------
2225
2226       --  ENUMERATION_TYPE_DEFINITION ::=
2227       --    (ENUMERATION_LITERAL_SPECIFICATION
2228       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2229
2230       --  Note: the Literals field in the node described below is null for
2231       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2232       --  which special processing handles these types as special cases.
2233
2234       --  N_Enumeration_Type_Definition
2235       --  Sloc points to left parenthesis
2236       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2237       --  End_Label (Node4) (set to Empty if internally generated record)
2238
2239       ----------------------------------------------
2240       -- 3.5.1  Enumeration Literal Specification --
2241       ----------------------------------------------
2242
2243       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2244       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2245
2246       ---------------------------------------
2247       -- 3.5.1  Defining Character Literal --
2248       ---------------------------------------
2249
2250       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2251
2252       --  A defining character literal is an entity, which has additional
2253       --  fields depending on the setting of the Ekind field. These
2254       --  additional fields are defined (and access subprograms declared)
2255       --  in package Einfo.
2256
2257       --  Note: N_Defining_Character_Literal is an extended node whose fields
2258       --  are deliberate layed out to match the layout of fields in an ordinary
2259       --  N_Character_Literal node allowing for easy alteration of a character
2260       --  literal node into a defining character literal node. For details, see
2261       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2262
2263       --  N_Defining_Character_Literal
2264       --  Sloc points to literal
2265       --  Chars (Name1) contains the Name_Id for the identifier
2266       --  Next_Entity (Node2-Sem)
2267       --  Scope (Node3-Sem)
2268       --  Etype (Node5-Sem)
2269
2270       ------------------------------------
2271       -- 3.5.4  Integer Type Definition --
2272       ------------------------------------
2273
2274       --  Note: there is an error in this rule in the latest version of the
2275       --  grammar, so we have retained the old rule pending clarification.
2276
2277       --  INTEGER_TYPE_DEFINITION ::=
2278       --    SIGNED_INTEGER_TYPE_DEFINITION
2279       --  | MODULAR_TYPE_DEFINITION
2280
2281       -------------------------------------------
2282       -- 3.5.4  Signed Integer Type Definition --
2283       -------------------------------------------
2284
2285       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2286       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2287
2288       --  Note: the Low_Bound and High_Bound fields are set to Empty
2289       --  for integer types defined in package Standard.
2290
2291       --  N_Signed_Integer_Type_Definition
2292       --  Sloc points to RANGE
2293       --  Low_Bound (Node1)
2294       --  High_Bound (Node2)
2295
2296       ------------------------------------
2297       -- 3.5.4  Modular Type Definition --
2298       ------------------------------------
2299
2300       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2301
2302       --  N_Modular_Type_Definition
2303       --  Sloc points to MOD
2304       --  Expression (Node3)
2305
2306       ---------------------------------
2307       -- 3.5.6  Real Type Definition --
2308       ---------------------------------
2309
2310       --  REAL_TYPE_DEFINITION ::=
2311       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2312
2313       --------------------------------------
2314       -- 3.5.7  Floating Point Definition --
2315       --------------------------------------
2316
2317       --  FLOATING_POINT_DEFINITION ::=
2318       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2319
2320       --  Note: The Digits_Expression and Real_Range_Specifications fields
2321       --  are set to Empty for floating-point types declared in Standard.
2322
2323       --  N_Floating_Point_Definition
2324       --  Sloc points to DIGITS
2325       --  Digits_Expression (Node2)
2326       --  Real_Range_Specification (Node4) (set to Empty if not present)
2327
2328       -------------------------------------
2329       -- 3.5.7  Real Range Specification --
2330       -------------------------------------
2331
2332       --  REAL_RANGE_SPECIFICATION ::=
2333       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2334
2335       --  N_Real_Range_Specification
2336       --  Sloc points to RANGE
2337       --  Low_Bound (Node1)
2338       --  High_Bound (Node2)
2339
2340       -----------------------------------
2341       -- 3.5.9  Fixed Point Definition --
2342       -----------------------------------
2343
2344       --  FIXED_POINT_DEFINITION ::=
2345       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2346
2347       --------------------------------------------
2348       -- 3.5.9  Ordinary Fixed Point Definition --
2349       --------------------------------------------
2350
2351       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2352       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2353
2354       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2355
2356       --  N_Ordinary_Fixed_Point_Definition
2357       --  Sloc points to DELTA
2358       --  Delta_Expression (Node3)
2359       --  Real_Range_Specification (Node4)
2360
2361       -------------------------------------------
2362       -- 3.5.9  Decimal Fixed Point Definition --
2363       -------------------------------------------
2364
2365       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2366       --    delta static_EXPRESSION
2367       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2368
2369       --  Note: decimal types are not permitted in Ada 83 mode
2370
2371       --  N_Decimal_Fixed_Point_Definition
2372       --  Sloc points to DELTA
2373       --  Delta_Expression (Node3)
2374       --  Digits_Expression (Node2)
2375       --  Real_Range_Specification (Node4) (set to Empty if not present)
2376
2377       ------------------------------
2378       -- 3.5.9  Digits Constraint --
2379       ------------------------------
2380
2381       --  DIGITS_CONSTRAINT ::=
2382       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2383
2384       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2385       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2386
2387       --  N_Digits_Constraint
2388       --  Sloc points to DIGITS
2389       --  Digits_Expression (Node2)
2390       --  Range_Constraint (Node4) (set to Empty if not present)
2391
2392       --------------------------------
2393       -- 3.6  Array Type Definition --
2394       --------------------------------
2395
2396       --  ARRAY_TYPE_DEFINITION ::=
2397       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2398
2399       -----------------------------------------
2400       -- 3.6  Unconstrained Array Definition --
2401       -----------------------------------------
2402
2403       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2404       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2405       --      COMPONENT_DEFINITION
2406
2407       --  Note: dimensionality of array is indicated by number of entries in
2408       --  the Subtype_Marks list, which has one entry for each dimension.
2409
2410       --  N_Unconstrained_Array_Definition
2411       --  Sloc points to ARRAY
2412       --  Subtype_Marks (List2)
2413       --  Component_Definition (Node4)
2414
2415       -----------------------------------
2416       -- 3.6  Index Subtype Definition --
2417       -----------------------------------
2418
2419       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2420
2421       --  There is no explicit node in the tree for an index subtype
2422       --  definition since the N_Unconstrained_Array_Definition node
2423       --  incorporates the type marks which appear in this context.
2424
2425       ---------------------------------------
2426       -- 3.6  Constrained Array Definition --
2427       ---------------------------------------
2428
2429       --  CONSTRAINED_ARRAY_DEFINITION ::=
2430       --    array (DISCRETE_SUBTYPE_DEFINITION
2431       --      {, DISCRETE_SUBTYPE_DEFINITION})
2432       --        of COMPONENT_DEFINITION
2433
2434       --  Note: dimensionality of array is indicated by number of entries
2435       --  in the Discrete_Subtype_Definitions list, which has one entry
2436       --  for each dimension.
2437
2438       --  N_Constrained_Array_Definition
2439       --  Sloc points to ARRAY
2440       --  Discrete_Subtype_Definitions (List2)
2441       --  Component_Definition (Node4)
2442
2443       --------------------------------------
2444       -- 3.6  Discrete Subtype Definition --
2445       --------------------------------------
2446
2447       --  DISCRETE_SUBTYPE_DEFINITION ::=
2448       --    discrete_SUBTYPE_INDICATION | RANGE
2449
2450       -------------------------------
2451       -- 3.6  Component Definition --
2452       -------------------------------
2453
2454       --  COMPONENT_DEFINITION ::=
2455       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2456
2457       --  Note: although the syntax does not permit a component definition to
2458       --  be an anonymous array (and the parser will diagnose such an attempt
2459       --  with an appropriate message), it is possible for anonymous arrays
2460       --  to appear as component definitions. The semantics and back end handle
2461       --  this case properly, and the expander in fact generates such cases.
2462       --  Access_Definition is an optional field that gives support to
2463       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2464       --  Subtype_Indication field or else the Access_Definition field.
2465
2466       --  N_Component_Definition
2467       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2468       --  Aliased_Present (Flag4)
2469       --  Null_Exclusion_Present (Flag11)
2470       --  Subtype_Indication (Node5) (set to Empty if not present)
2471       --  Access_Definition (Node3) (set to Empty if not present)
2472
2473       -----------------------------
2474       -- 3.6.1  Index Constraint --
2475       -----------------------------
2476
2477       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2478
2479       --  It is not in general possible to distinguish between discriminant
2480       --  constraints and index constraints at parse time, since a simple
2481       --  name could be either the subtype mark of a discrete range, or an
2482       --  expression in a discriminant association with no name. Either
2483       --  entry appears simply as the name, and the semantic parse must
2484       --  distinguish between the two cases. Thus we use a common tree
2485       --  node format for both of these constraint types.
2486
2487       --  See Discriminant_Constraint for format of node
2488
2489       ---------------------------
2490       -- 3.6.1  Discrete Range --
2491       ---------------------------
2492
2493       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2494
2495       ----------------------------
2496       -- 3.7  Discriminant Part --
2497       ----------------------------
2498
2499       --  DISCRIMINANT_PART ::=
2500       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2501
2502       ------------------------------------
2503       -- 3.7  Unknown Discriminant Part --
2504       ------------------------------------
2505
2506       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2507
2508       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2509
2510       --  There is no explicit node in the tree for an unknown discriminant
2511       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2512       --  parent node.
2513
2514       ----------------------------------
2515       -- 3.7  Known Discriminant Part --
2516       ----------------------------------
2517
2518       --  KNOWN_DISCRIMINANT_PART ::=
2519       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2520
2521       -------------------------------------
2522       -- 3.7  Discriminant Specification --
2523       -------------------------------------
2524
2525       --  DISCRIMINANT_SPECIFICATION ::=
2526       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2527       --      [:= DEFAULT_EXPRESSION]
2528       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2529       --      [:= DEFAULT_EXPRESSION]
2530
2531       --  Although the syntax allows multiple identifiers in the list, the
2532       --  semantics is as though successive specifications were given with
2533       --  identical type definition and expression components. To simplify
2534       --  semantic processing, the parser represents a multiple declaration
2535       --  case as a sequence of single specifications, using the More_Ids and
2536       --  Prev_Ids flags to preserve the original source form as described
2537       --  in the section on "Handling of Defining Identifier Lists".
2538
2539       --  N_Discriminant_Specification
2540       --  Sloc points to first identifier
2541       --  Defining_Identifier (Node1)
2542       --  Null_Exclusion_Present (Flag11)
2543       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2544       --  Expression (Node3) (set to Empty if no default expression)
2545       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2546       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2547
2548       -----------------------------
2549       -- 3.7  Default Expression --
2550       -----------------------------
2551
2552       --  DEFAULT_EXPRESSION ::= EXPRESSION
2553
2554       ------------------------------------
2555       -- 3.7.1  Discriminant Constraint --
2556       ------------------------------------
2557
2558       --  DISCRIMINANT_CONSTRAINT ::=
2559       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2560
2561       --  It is not in general possible to distinguish between discriminant
2562       --  constraints and index constraints at parse time, since a simple
2563       --  name could be either the subtype mark of a discrete range, or an
2564       --  expression in a discriminant association with no name. Either
2565       --  entry appears simply as the name, and the semantic parse must
2566       --  distinguish between the two cases. Thus we use a common tree
2567       --  node format for both of these constraint types.
2568
2569       --  N_Index_Or_Discriminant_Constraint
2570       --  Sloc points to left paren
2571       --  Constraints (List1) points to list of discrete ranges or
2572       --    discriminant associations
2573
2574       -------------------------------------
2575       -- 3.7.1  Discriminant Association --
2576       -------------------------------------
2577
2578       --  DISCRIMINANT_ASSOCIATION ::=
2579       --    [discriminant_SELECTOR_NAME
2580       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2581
2582       --  Note: a discriminant association that has no selector name list
2583       --  appears directly as an expression in the tree.
2584
2585       --  N_Discriminant_Association
2586       --  Sloc points to first token of discriminant association
2587       --  Selector_Names (List1) (always non-empty, since if no selector
2588       --   names are present, this node is not used, see comment above)
2589       --  Expression (Node3)
2590
2591       ---------------------------------
2592       -- 3.8  Record Type Definition --
2593       ---------------------------------
2594
2595       --  RECORD_TYPE_DEFINITION ::=
2596       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2597
2598       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2599
2600       --  There is no explicit node in the tree for a record type definition.
2601       --  Instead the flags for Tagged_Present and Limited_Present appear in
2602       --  the N_Record_Definition node for a record definition appearing in
2603       --  the context of a record type definition.
2604
2605       ----------------------------
2606       -- 3.8  Record Definition --
2607       ----------------------------
2608
2609       --  RECORD_DEFINITION ::=
2610       --    record
2611       --      COMPONENT_LIST
2612       --    end record
2613       --  | null record
2614
2615       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2616       --  flags appear only for a record definition appearing in a record
2617       --  type definition.
2618
2619       --  Note: the NULL RECORD case is not permitted in Ada 83
2620
2621       --  N_Record_Definition
2622       --  Sloc points to RECORD or NULL
2623       --  End_Label (Node4) (set to Empty if internally generated record)
2624       --  Abstract_Present (Flag4)
2625       --  Tagged_Present (Flag15)
2626       --  Limited_Present (Flag17)
2627       --  Component_List (Node1) empty in null record case
2628       --  Null_Present (Flag13) set in null record case
2629       --  Task_Present (Flag5) set in task interfaces
2630       --  Protected_Present (Flag6) set in protected interfaces
2631       --  Synchronized_Present (Flag7) set in interfaces
2632       --  Interface_Present (Flag16) set in abstract interfaces
2633       --  Interface_List (List2) (set to No_List if none)
2634
2635       --  Note: Task_Present, Protected_Present, Synchronized _Present,
2636       --        Interface_List and Interface_Present are used for abstract
2637       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2638
2639       -------------------------
2640       -- 3.8  Component List --
2641       -------------------------
2642
2643       --  COMPONENT_LIST ::=
2644       --    COMPONENT_ITEM {COMPONENT_ITEM}
2645       --  | {COMPONENT_ITEM} VARIANT_PART
2646       --  | null;
2647
2648       --  N_Component_List
2649       --  Sloc points to first token of component list
2650       --  Component_Items (List3)
2651       --  Variant_Part (Node4) (set to Empty if no variant part)
2652       --  Null_Present (Flag13)
2653
2654       -------------------------
2655       -- 3.8  Component Item --
2656       -------------------------
2657
2658       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2659
2660       --  Note: A component item can also be a pragma, and in the tree
2661       --  that is obtained after semantic processing, a component item
2662       --  can be an N_Null node resulting from a non-recognized pragma.
2663
2664       --------------------------------
2665       -- 3.8  Component Declaration --
2666       --------------------------------
2667
2668       --  COMPONENT_DECLARATION ::=
2669       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2670       --      [:= DEFAULT_EXPRESSION]
2671
2672       --  Note: although the syntax does not permit a component definition to
2673       --  be an anonymous array (and the parser will diagnose such an attempt
2674       --  with an appropriate message), it is possible for anonymous arrays
2675       --  to appear as component definitions. The semantics and back end handle
2676       --  this case properly, and the expander in fact generates such cases.
2677
2678       --  Although the syntax allows multiple identifiers in the list, the
2679       --  semantics is as though successive declarations were given with the
2680       --  same component definition and expression components. To simplify
2681       --  semantic processing, the parser represents a multiple declaration
2682       --  case as a sequence of single declarations, using the More_Ids and
2683       --  Prev_Ids flags to preserve the original source form as described
2684       --  in the section on "Handling of Defining Identifier Lists".
2685
2686       --  N_Component_Declaration
2687       --  Sloc points to first identifier
2688       --  Defining_Identifier (Node1)
2689       --  Component_Definition (Node4)
2690       --  Expression (Node3) (set to Empty if no default expression)
2691       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2692       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2693
2694       -------------------------
2695       -- 3.8.1  Variant Part --
2696       -------------------------
2697
2698       --  VARIANT_PART ::=
2699       --    case discriminant_DIRECT_NAME is
2700       --      VARIANT
2701       --      {VARIANT}
2702       --    end case;
2703
2704       --  Note: the variants list can contain pragmas as well as variants.
2705       --  In a properly formed program there is at least one variant.
2706
2707       --  N_Variant_Part
2708       --  Sloc points to CASE
2709       --  Name (Node2)
2710       --  Variants (List1)
2711
2712       --------------------
2713       -- 3.8.1  Variant --
2714       --------------------
2715
2716       --  VARIANT ::=
2717       --    when DISCRETE_CHOICE_LIST =>
2718       --      COMPONENT_LIST
2719
2720       --  N_Variant
2721       --  Sloc points to WHEN
2722       --  Discrete_Choices (List4)
2723       --  Component_List (Node1)
2724       --  Enclosing_Variant (Node2-Sem)
2725       --  Present_Expr (Uint3-Sem)
2726       --  Dcheck_Function (Node5-Sem)
2727
2728       ---------------------------------
2729       -- 3.8.1  Discrete Choice List --
2730       ---------------------------------
2731
2732       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2733
2734       ----------------------------
2735       -- 3.8.1  Discrete Choice --
2736       ----------------------------
2737
2738       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2739
2740       --  Note: in Ada 83 mode, the expression must be a simple expression
2741
2742       --  The only choice that appears explicitly is the OTHERS choice, as
2743       --  defined here. Other cases of discrete choice (expression and
2744       --  discrete range) appear directly. This production is also used
2745       --  for the OTHERS possibility of an exception choice.
2746
2747       --  Note: in accordance with the syntax, the parser does not check that
2748       --  OTHERS appears at the end on its own in a choice list context. This
2749       --  is a semantic check.
2750
2751       --  N_Others_Choice
2752       --  Sloc points to OTHERS
2753       --  Others_Discrete_Choices (List1-Sem)
2754       --  All_Others (Flag11-Sem)
2755
2756       ----------------------------------
2757       -- 3.9.1  Record Extension Part --
2758       ----------------------------------
2759
2760       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2761
2762       --  Note: record extension parts are not permitted in Ada 83 mode
2763
2764       --------------------------------------
2765       -- 3.9.4  Interface Type Definition --
2766       --------------------------------------
2767
2768       --  INTERFACE_TYPE_DEFINITION ::=
2769       --    [limited | task | protected | synchronized]
2770       --    interface [interface_list]
2771
2772       --  Note: Interfaces are implemented with N_Record_Definition and
2773       --        N_Derived_Type_Definition nodes because most of the support
2774       --        for the analysis of abstract types has been reused to
2775       --        analyze abstract interfaces.
2776
2777       ----------------------------------
2778       -- 3.10  Access Type Definition --
2779       ----------------------------------
2780
2781       --  ACCESS_TYPE_DEFINITION ::=
2782       --    ACCESS_TO_OBJECT_DEFINITION
2783       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2784
2785       --------------------------
2786       -- 3.10  Null Exclusion --
2787       --------------------------
2788
2789       --  NULL_EXCLUSION ::= not null
2790
2791       ---------------------------------------
2792       -- 3.10  Access To Object Definition --
2793       ---------------------------------------
2794
2795       --  ACCESS_TO_OBJECT_DEFINITION ::=
2796       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2797       --    SUBTYPE_INDICATION
2798
2799       --  N_Access_To_Object_Definition
2800       --  Sloc points to ACCESS
2801       --  All_Present (Flag15)
2802       --  Null_Exclusion_Present (Flag11)
2803       --  Subtype_Indication (Node5)
2804       --  Constant_Present (Flag17)
2805
2806       -----------------------------------
2807       -- 3.10  General Access Modifier --
2808       -----------------------------------
2809
2810       --  GENERAL_ACCESS_MODIFIER ::= all | constant
2811
2812       --  Note: general access modifiers are not permitted in Ada 83 mode
2813
2814       --  There is no explicit node in the tree for general access modifier.
2815       --  Instead the All_Present or Constant_Present flags are set in the
2816       --  parent node.
2817
2818       -------------------------------------------
2819       -- 3.10  Access To Subprogram Definition --
2820       -------------------------------------------
2821
2822       --  ACCESS_TO_SUBPROGRAM_DEFINITION
2823       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2824       --  | [NULL_EXCLUSION] access [protected] function
2825       --    PARAMETER_AND_RESULT_PROFILE
2826
2827       --  Note: access to subprograms are not permitted in Ada 83 mode
2828
2829       --  N_Access_Function_Definition
2830       --  Sloc points to ACCESS
2831       --  Null_Exclusion_Present (Flag11)
2832       --  Protected_Present (Flag6)
2833       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2834       --  Result_Definition (Node4) result subtype (subtype mark or access def)
2835
2836       --  N_Access_Procedure_Definition
2837       --  Sloc points to ACCESS
2838       --  Null_Exclusion_Present (Flag11)
2839       --  Protected_Present (Flag6)
2840       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2841
2842       -----------------------------
2843       -- 3.10  Access Definition --
2844       -----------------------------
2845
2846       --  ACCESS_DEFINITION ::=
2847       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2848       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2849
2850       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
2851
2852       --  N_Access_Definition
2853       --  Sloc points to ACCESS
2854       --  Null_Exclusion_Present (Flag11)
2855       --  All_Present (Flag15)
2856       --  Constant_Present (Flag17)
2857       --  Subtype_Mark (Node4)
2858       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2859
2860       -----------------------------------------
2861       -- 3.10.1  Incomplete Type Declaration --
2862       -----------------------------------------
2863
2864       --  INCOMPLETE_TYPE_DECLARATION ::=
2865       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2866
2867       --  N_Incomplete_Type_Declaration
2868       --  Sloc points to TYPE
2869       --  Defining_Identifier (Node1)
2870       --  Discriminant_Specifications (List4) (set to No_List if no
2871       --   discriminant part, or if the discriminant part is an
2872       --   unknown discriminant part)
2873       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2874       --  Tagged_Present (Flag15)
2875
2876       ----------------------------
2877       -- 3.11  Declarative Part --
2878       ----------------------------
2879
2880       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2881
2882       --  Note: although the parser enforces the syntactic requirement that
2883       --  a declarative part can contain only declarations, the semantic
2884       --  processing may add statements to the list of actions in a
2885       --  declarative part, so the code generator should be prepared
2886       --  to accept a statement in this position.
2887
2888       ----------------------------
2889       -- 3.11  Declarative Item --
2890       ----------------------------
2891
2892       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2893
2894       ----------------------------------
2895       -- 3.11  Basic Declarative Item --
2896       ----------------------------------
2897
2898       --  BASIC_DECLARATIVE_ITEM ::=
2899       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2900
2901       ----------------
2902       -- 3.11  Body --
2903       ----------------
2904
2905       --  BODY ::= PROPER_BODY | BODY_STUB
2906
2907       -----------------------
2908       -- 3.11  Proper Body --
2909       -----------------------
2910
2911       --  PROPER_BODY ::=
2912       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2913
2914       ---------------
2915       -- 4.1  Name --
2916       ---------------
2917
2918       --  NAME ::=
2919       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
2920       --  | INDEXED_COMPONENT  | SLICE
2921       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2922       --  | TYPE_CONVERSION    | FUNCTION_CALL
2923       --  | CHARACTER_LITERAL
2924
2925       ----------------------
2926       -- 4.1  Direct Name --
2927       ----------------------
2928
2929       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2930
2931       -----------------
2932       -- 4.1  Prefix --
2933       -----------------
2934
2935       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2936
2937       -------------------------------
2938       -- 4.1  Explicit Dereference --
2939       -------------------------------
2940
2941       --  EXPLICIT_DEREFERENCE ::= NAME . all
2942
2943       --  N_Explicit_Dereference
2944       --  Sloc points to ALL
2945       --  Prefix (Node3)
2946       --  Actual_Designated_Subtype (Node4-Sem)
2947       --  plus fields for expression
2948
2949       -------------------------------
2950       -- 4.1  Implicit Dereference --
2951       -------------------------------
2952
2953       --  IMPLICIT_DEREFERENCE ::= NAME
2954
2955       ------------------------------
2956       -- 4.1.1  Indexed Component --
2957       ------------------------------
2958
2959       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
2960
2961       --  Note: the parser may generate this node in some situations where it
2962       --  should be a function call. The semantic  pass must correct this
2963       --  misidentification (which is inevitable at the parser level).
2964
2965       --  N_Indexed_Component
2966       --  Sloc contains a copy of the Sloc value of the Prefix
2967       --  Prefix (Node3)
2968       --  Expressions (List1)
2969       --  plus fields for expression
2970
2971       --  Note: if any of the subscripts requires a range check, then the
2972       --  Do_Range_Check flag is set on the corresponding expression, with
2973       --  the index type being determined from the type of the Prefix, which
2974       --  references the array being indexed.
2975
2976       --  Note: in a fully analyzed and expanded indexed component node, and
2977       --  hence in any such node that gigi sees, if the prefix is an access
2978       --  type, then an explicit dereference operation has been inserted.
2979
2980       ------------------
2981       -- 4.1.2  Slice --
2982       ------------------
2983
2984       --  SLICE ::= PREFIX (DISCRETE_RANGE)
2985
2986       --  Note: an implicit subtype is created to describe the resulting
2987       --  type, so that the bounds of this type are the bounds of the slice.
2988
2989       --  N_Slice
2990       --  Sloc points to first token of prefix
2991       --  Prefix (Node3)
2992       --  Discrete_Range (Node4)
2993       --  plus fields for expression
2994
2995       -------------------------------
2996       -- 4.1.3  Selected Component --
2997       -------------------------------
2998
2999       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3000
3001       --  Note: selected components that are semantically expanded names get
3002       --  changed during semantic processing into the separate N_Expanded_Name
3003       --  node. See description of this node in the section on semantic nodes.
3004
3005       --  N_Selected_Component
3006       --  Sloc points to period
3007       --  Prefix (Node3)
3008       --  Selector_Name (Node2)
3009       --  Associated_Node (Node4-Sem)
3010       --  Do_Discriminant_Check (Flag13-Sem)
3011       --  Is_In_Discriminant_Check (Flag11-Sem)
3012       --  plus fields for expression
3013
3014       --------------------------
3015       -- 4.1.3  Selector Name --
3016       --------------------------
3017
3018       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3019
3020       --------------------------------
3021       -- 4.1.4  Attribute Reference --
3022       --------------------------------
3023
3024       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3025
3026       --  Note: the syntax is quite ambiguous at this point. Consider:
3027
3028       --    A'Length (X)  X is part of the attribute designator
3029       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3030       --    A'Class (X)   X is the expression of a type conversion
3031
3032       --  It would be possible for the parser to distinguish these cases
3033       --  by looking at the attribute identifier. However, that would mean
3034       --  more work in introducing new implementation defined attributes,
3035       --  and also it would mean that special processing for attributes
3036       --  would be scattered around, instead of being centralized in the
3037       --  semantic routine that handles an N_Attribute_Reference node.
3038       --  Consequently, the parser in all the above cases stores the
3039       --  expression (X in these examples) as a single element list in
3040       --  in the Expressions field of the N_Attribute_Reference node.
3041
3042       --  Similarly, for attributes like Max which take two arguments,
3043       --  we store the two arguments as a two element list in the
3044       --  Expressions field. Of course it is clear at parse time that
3045       --  this case is really a function call with an attribute as the
3046       --  prefix, but it turns out to be convenient to handle the two
3047       --  argument case in a similar manner to the one argument case,
3048       --  and indeed in general the parser will accept any number of
3049       --  expressions in this position and store them as a list in the
3050       --  attribute reference node. This allows for future addition of
3051       --  attributes that take more than two arguments.
3052
3053       --  Note: named associates are not permitted in function calls where
3054       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3055       --  to skip the normal subprogram argument processing.
3056
3057       --  Note: for the attributes whose designators are technically keywords,
3058       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3059       --  the corresponding name, even though no identifier is involved.
3060
3061       --  Note: the generated code may contain stream attributes applied to
3062       --  limited types for which no stream routines exist officially. In such
3063       --  case, the result is to use the stream attribute for the underlying
3064       --  full type, or in the case of a protected type, the components
3065       --  (including any disriminants) are merely streamed in order.
3066
3067       --  See Exp_Attr for a complete description of which attributes are
3068       --  passed onto Gigi, and which are handled entirely by the front end.
3069
3070       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3071       --  a non-standard enumeration type or a nonzero/zero semantics
3072       --  boolean type, so the value is simply the stored representation.
3073
3074       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3075       --  references a subprogram that is a renaming, then the front end must
3076       --  rewrite the attribute to refer directly to the renamed entity.
3077
3078       --  Note: In generated code, the Address and Unrestricted_Access
3079       --  attributes can be applied to any expression, and the meaning is
3080       --  to create an object containing the value (the object is in the
3081       --  current stack frame), and pass the address of this value. If the
3082       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3083       --  is taken must be on a byte (storage unit) boundary, and if it is
3084       --  not (or may not be), then the generated code must create a copy
3085       --  that is byte aligned, and pass the address of this copy.
3086
3087       --  N_Attribute_Reference
3088       --  Sloc points to apostrophe
3089       --  Prefix (Node3)
3090       --  Attribute_Name (Name2) identifier name from attribute designator
3091       --  Expressions (List1) (set to No_List if no associated expressions)
3092       --  Entity (Node4-Sem) used if the attribute yields a type
3093       --  Associated_Node (Node4-Sem)
3094       --  Do_Overflow_Check (Flag17-Sem)
3095       --  Redundant_Use (Flag13-Sem)
3096       --  Must_Be_Byte_Aligned (Flag14)
3097       --  plus fields for expression
3098
3099       ---------------------------------
3100       -- 4.1.4  Attribute Designator --
3101       ---------------------------------
3102
3103       --  ATTRIBUTE_DESIGNATOR ::=
3104       --    IDENTIFIER [(static_EXPRESSION)]
3105       --  | access | delta | digits
3106
3107       --  There is no explicit node in the tree for an attribute designator.
3108       --  Instead the Attribute_Name and Expressions fields of the parent
3109       --  node (N_Attribute_Reference node) hold the information.
3110
3111       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3112       --  designator, then they are treated as identifiers internally
3113       --  rather than the keywords of the same name.
3114
3115       --------------------------------------
3116       -- 4.1.4  Range Attribute Reference --
3117       --------------------------------------
3118
3119       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3120
3121       --  A range attribute reference is represented in the tree using the
3122       --  normal N_Attribute_Reference node.
3123
3124       ---------------------------------------
3125       -- 4.1.4  Range Attribute Designator --
3126       ---------------------------------------
3127
3128       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3129
3130       --  A range attribute designator is represented in the tree using the
3131       --  normal N_Attribute_Reference node.
3132
3133       --------------------
3134       -- 4.3  Aggregate --
3135       --------------------
3136
3137       --  AGGREGATE ::=
3138       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3139
3140       -----------------------------
3141       -- 4.3.1  Record Aggregate --
3142       -----------------------------
3143
3144       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3145
3146       --  N_Aggregate
3147       --  Sloc points to left parenthesis
3148       --  Expressions (List1) (set to No_List if none or null record case)
3149       --  Component_Associations (List2) (set to No_List if none)
3150       --  Null_Record_Present (Flag17)
3151       --  Aggregate_Bounds (Node3-Sem)
3152       --  Associated_Node (Node4-Sem)
3153       --  Static_Processing_OK (Flag4-Sem)
3154       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3155       --  Expansion_Delayed (Flag11-Sem)
3156       --  Has_Self_Reference (Flag13-Sem)
3157       --  plus fields for expression
3158
3159       --  Note: this structure is used for both record and array aggregates
3160       --  since the two cases are not separable by the parser. The parser
3161       --  makes no attempt to enforce consistency here, so it is up to the
3162       --  semantic phase to make sure that the aggregate is consistent (i.e.
3163       --  that it is not a "half-and-half" case that mixes record and array
3164       --  syntax. In particular, for a record aggregate, the expressions
3165       --  field will be set if there are positional associations.
3166
3167       --  Note: N_Aggregate is not used for all aggregates; in particular,
3168       --  there is a separate node kind for extension aggregates.
3169
3170       --  Note: gigi/gcc can handle array aggregates correctly providing that
3171       --  they are entirely positional, and the array subtype involved has a
3172       --  known at compile time length and is not bit packed, or a convention
3173       --  Fortran array with more than one dimension. If these conditions
3174       --  are not met, then the front end must translate the aggregate into
3175       --  an appropriate set of assignments into a temporary.
3176
3177       --  Note: for the record aggregate case, gigi/gcc can handle all cases
3178       --  of record aggregates, including those for packed, and rep-claused
3179       --  records, and also variant records, providing that there are no
3180       --  variable length fields whose size is not known at runtime, and
3181       --  providing that the aggregate is presented in fully named form.
3182
3183       ----------------------------------------------
3184       -- 4.3.1  Record Component Association List --
3185       ----------------------------------------------
3186
3187       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3188       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3189       --   | null record
3190
3191       --  There is no explicit node in the tree for a record component
3192       --  association list. Instead the Null_Record_Present flag is set in
3193       --  the parent node for the NULL RECORD case.
3194
3195       ------------------------------------------------------
3196       -- 4.3.1  Record Component Association (also 4.3.3) --
3197       ------------------------------------------------------
3198
3199       --  RECORD_COMPONENT_ASSOCIATION ::=
3200       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3201
3202       --  N_Component_Association
3203       --  Sloc points to first selector name
3204       --  Choices (List1)
3205       --  Loop_Actions (List2-Sem)
3206       --  Expression (Node3)
3207       --  Box_Present (Flag15)
3208
3209       --  Note: this structure is used for both record component associations
3210       --  and array component associations, since the two cases aren't always
3211       --  separable by the parser. The choices list may represent either a
3212       --  list of selector names in the record aggregate case, or a list of
3213       --  discrete choices in the array aggregate case or an N_Others_Choice
3214       --  node (which appears as a singleton list). Box_Present gives support
3215       --  to Ada 2005 (AI-287).
3216
3217       -----------------------------------
3218       -- 4.3.1  Commponent Choice List --
3219       -----------------------------------
3220
3221       --  COMPONENT_CHOICE_LIST ::=
3222       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3223       --  | others
3224
3225       --  The entries of a component choice list appear in the Choices list
3226       --  of the associated N_Component_Association, as either selector
3227       --  names, or as an N_Others_Choice node.
3228
3229       --------------------------------
3230       -- 4.3.2  Extension Aggregate --
3231       --------------------------------
3232
3233       --  EXTENSION_AGGREGATE ::=
3234       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3235
3236       --  Note: extension aggregates are not permitted in Ada 83 mode
3237
3238       --  N_Extension_Aggregate
3239       --  Sloc points to left parenthesis
3240       --  Ancestor_Part (Node3)
3241       --  Associated_Node (Node4-Sem)
3242       --  Expressions (List1) (set to No_List if none or null record case)
3243       --  Component_Associations (List2) (set to No_List if none)
3244       --  Null_Record_Present (Flag17)
3245       --  Expansion_Delayed (Flag11-Sem)
3246       --  Has_Self_Reference (Flag13-Sem)
3247       --  plus fields for expression
3248
3249       --------------------------
3250       -- 4.3.2  Ancestor Part --
3251       --------------------------
3252
3253       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3254
3255       ----------------------------
3256       -- 4.3.3  Array Aggregate --
3257       ----------------------------
3258
3259       --  ARRAY_AGGREGATE ::=
3260       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3261
3262       ---------------------------------------
3263       -- 4.3.3  Positional Array Aggregate --
3264       ---------------------------------------
3265
3266       --  POSITIONAL_ARRAY_AGGREGATE ::=
3267       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3268       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3269
3270       --  See Record_Aggregate (4.3.1) for node structure
3271
3272       ----------------------------------
3273       -- 4.3.3  Named Array Aggregate --
3274       ----------------------------------
3275
3276       --  NAMED_ARRAY_AGGREGATE ::=
3277       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3278
3279       --  See Record_Aggregate (4.3.1) for node structure
3280
3281       ----------------------------------------
3282       -- 4.3.3  Array Component Association --
3283       ----------------------------------------
3284
3285       --  ARRAY_COMPONENT_ASSOCIATION ::=
3286       --    DISCRETE_CHOICE_LIST => EXPRESSION
3287
3288       --  See Record_Component_Association (4.3.1) for node structure
3289
3290       --------------------------------------------------
3291       -- 4.4  Expression/Relation/Term/Factor/Primary --
3292       --------------------------------------------------
3293
3294       --  EXPRESSION ::=
3295       --    RELATION {and RELATION} | RELATION {and then RELATION}
3296       --  | RELATION {or RELATION}  | RELATION {or else RELATION}
3297       --  | RELATION {xor RELATION}
3298
3299       --  RELATION ::=
3300       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3301       --  | SIMPLE_EXPRESSION [not] in RANGE
3302       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3303
3304       --  SIMPLE_EXPRESSION ::=
3305       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3306
3307       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3308
3309       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3310
3311       --  No nodes are generated for any of these constructs. Instead, the
3312       --  node for the operator appears directly. When we refer to an
3313       --  expression in this description, we mean any of the possible
3314       --  consistuent components of an expression (e.g. identifier is
3315       --  an example of an expression).
3316
3317       ------------------
3318       -- 4.4  Primary --
3319       ------------------
3320
3321       --  PRIMARY ::=
3322       --    NUMERIC_LITERAL  | null
3323       --  | STRING_LITERAL   | AGGREGATE
3324       --  | NAME             | QUALIFIED_EXPRESSION
3325       --  | ALLOCATOR        | (EXPRESSION)
3326
3327       --  Usually there is no explicit node in the tree for primary. Instead
3328       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3329       --  exceptions. First, there is an explicit node for a null primary.
3330
3331       --  N_Null
3332       --  Sloc points to NULL
3333       --  plus fields for expression
3334
3335       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3336       --  that the parser keep track of which subexpressions are enclosed
3337       --  in parentheses, and how many levels of parentheses are used. This
3338       --  information is required for optimization purposes, and also for
3339       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3340       --  conform with ((((1)))) in the body).
3341
3342       --  The parentheses are recorded by keeping a Paren_Count field in every
3343       --  subexpression node (it is actually present in all nodes, but only
3344       --  used in subexpression nodes). This count records the number of
3345       --  levels of parentheses. If the number of levels in the source exceeds
3346       --  the maximum accomodated by this count, then the count is simply left
3347       --  at the maximum value. This means that there are some pathalogical
3348       --  cases of failure to detect conformance failures (e.g. an expression
3349       --  with 500 levels of parens will conform with one with 501 levels),
3350       --  but we do not need to lose sleep over this.
3351
3352       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3353       --  type N_Parenthesized_Expression used to accurately record unlimited
3354       --  numbers of levels of parentheses. However, it turned out to be a
3355       --  real nuisance to have to take into account the possible presence of
3356       --  this node during semantic analysis, since basically parentheses have
3357       --  zero relevance to semantic analysis.
3358
3359       --  Note: the level of parentheses always present in things like
3360       --  aggregates does not count, only the parentheses in the primary
3361       --  (EXPRESSION) affect the setting of the Paren_Count field.
3362
3363       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3364       --  treated as though it were Empty) if No_Initialization is set True.
3365
3366       --------------------------------------
3367       -- 4.5  Short Circuit Control Forms --
3368       --------------------------------------
3369
3370       --  EXPRESSION ::=
3371       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3372
3373       --  Gigi restriction: For both these control forms, the operand and
3374       --  result types are always Standard.Boolean. The expander inserts the
3375       --  required conversion operations where needed to ensure this is the
3376       --  case.
3377
3378       --  N_And_Then
3379       --  Sloc points to AND of AND THEN
3380       --  Left_Opnd (Node2)
3381       --  Right_Opnd (Node3)
3382       --  Actions (List1-Sem)
3383       --  plus fields for expression
3384
3385       --  N_Or_Else
3386       --  Sloc points to OR of OR ELSE
3387       --  Left_Opnd (Node2)
3388       --  Right_Opnd (Node3)
3389       --  Actions (List1-Sem)
3390       --  plus fields for expression
3391
3392       --  Note: The Actions field is used to hold actions associated with
3393       --  the right hand operand. These have to be treated specially since
3394       --  they are not unconditionally executed. See Insert_Actions for a
3395       --  more detailed description of how these actions are handled.
3396
3397       ---------------------------
3398       -- 4.5  Membership Tests --
3399       ---------------------------
3400
3401       --  RELATION ::=
3402       --    SIMPLE_EXPRESSION [not] in RANGE
3403       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3404
3405       --  Note: although the grammar above allows only a range or a
3406       --  subtype mark, the parser in fact will accept any simple
3407       --  expression in place of a subtype mark. This means that the
3408       --  semantic analyzer must be prepared to deal with, and diagnose
3409       --  a simple expression other than a name for the right operand.
3410       --  This simplifies error recovery in the parser.
3411
3412       --  N_In
3413       --  Sloc points to IN
3414       --  Left_Opnd (Node2)
3415       --  Right_Opnd (Node3)
3416       --  plus fields for expression
3417
3418       --  N_Not_In
3419       --  Sloc points to NOT of NOT IN
3420       --  Left_Opnd (Node2)
3421       --  Right_Opnd (Node3)
3422       --  plus fields for expression
3423
3424       --------------------
3425       -- 4.5  Operators --
3426       --------------------
3427
3428       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3429
3430       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3431
3432       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3433
3434       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3435
3436       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3437
3438       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3439
3440       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3441
3442       --     x #* y
3443       --     x #/ y
3444       --     x #mod y
3445       --     x #rem y
3446
3447       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3448       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3449       --  All handling of smalls for multiplication and division is handled
3450       --  by the front end (mod and rem result only from expansion). Gigi
3451       --  thus never needs to worry about small values (for other operators
3452       --  operating on fixed-point, e.g. addition, the small value does not
3453       --  have any semantic effect anyway, these are always integer operations.
3454
3455       --  Gigi restriction: For all operators taking Boolean operands, the
3456       --  type is always Standard.Boolean. The expander inserts the required
3457       --  conversion operations where needed to ensure this is the case.
3458
3459       --  N_Op_And
3460       --  Sloc points to AND
3461       --  Do_Length_Check (Flag4-Sem)
3462       --  plus fields for binary operator
3463       --  plus fields for expression
3464
3465       --  N_Op_Or
3466       --  Sloc points to OR
3467       --  Do_Length_Check (Flag4-Sem)
3468       --  plus fields for binary operator
3469       --  plus fields for expression
3470
3471       --  N_Op_Xor
3472       --  Sloc points to XOR
3473       --  Do_Length_Check (Flag4-Sem)
3474       --  plus fields for binary operator
3475       --  plus fields for expression
3476
3477       --  N_Op_Eq
3478       --  Sloc points to =
3479       --  plus fields for binary operator
3480       --  plus fields for expression
3481
3482       --  N_Op_Ne
3483       --  Sloc points to /=
3484       --  plus fields for binary operator
3485       --  plus fields for expression
3486
3487       --  N_Op_Lt
3488       --  Sloc points to <
3489       --  plus fields for binary operator
3490       --  plus fields for expression
3491
3492       --  N_Op_Le
3493       --  Sloc points to <=
3494       --  plus fields for binary operator
3495       --  plus fields for expression
3496
3497       --  N_Op_Gt
3498       --  Sloc points to >
3499       --  plus fields for binary operator
3500       --  plus fields for expression
3501
3502       --  N_Op_Ge
3503       --  Sloc points to >=
3504       --  plus fields for binary operator
3505       --  plus fields for expression
3506
3507       --  N_Op_Add
3508       --  Sloc points to + (binary)
3509       --  plus fields for binary operator
3510       --  plus fields for expression
3511
3512       --  N_Op_Subtract
3513       --  Sloc points to - (binary)
3514       --  plus fields for binary operator
3515       --  plus fields for expression
3516
3517       --  N_Op_Concat
3518       --  Sloc points to &
3519       --  Is_Component_Left_Opnd (Flag13-Sem)
3520       --  Is_Component_Right_Opnd (Flag14-Sem)
3521       --  plus fields for binary operator
3522       --  plus fields for expression
3523
3524       --  N_Op_Multiply
3525       --  Sloc points to *
3526       --  Treat_Fixed_As_Integer (Flag14-Sem)
3527       --  Rounded_Result (Flag18-Sem)
3528       --  plus fields for binary operator
3529       --  plus fields for expression
3530
3531       --  N_Op_Divide
3532       --  Sloc points to /
3533       --  Treat_Fixed_As_Integer (Flag14-Sem)
3534       --  Do_Division_Check (Flag13-Sem)
3535       --  Rounded_Result (Flag18-Sem)
3536       --  plus fields for binary operator
3537       --  plus fields for expression
3538
3539       --  N_Op_Mod
3540       --  Sloc points to MOD
3541       --  Treat_Fixed_As_Integer (Flag14-Sem)
3542       --  Do_Division_Check (Flag13-Sem)
3543       --  plus fields for binary operator
3544       --  plus fields for expression
3545
3546       --  N_Op_Rem
3547       --  Sloc points to REM
3548       --  Treat_Fixed_As_Integer (Flag14-Sem)
3549       --  Do_Division_Check (Flag13-Sem)
3550       --  plus fields for binary operator
3551       --  plus fields for expression
3552
3553       --  N_Op_Expon
3554       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3555       --  Sloc points to **
3556       --  plus fields for binary operator
3557       --  plus fields for expression
3558
3559       --  N_Op_Plus
3560       --  Sloc points to + (unary)
3561       --  plus fields for unary operator
3562       --  plus fields for expression
3563
3564       --  N_Op_Minus
3565       --  Sloc points to - (unary)
3566       --  plus fields for unary operator
3567       --  plus fields for expression
3568
3569       --  N_Op_Abs
3570       --  Sloc points to ABS
3571       --  plus fields for unary operator
3572       --  plus fields for expression
3573
3574       --  N_Op_Not
3575       --  Sloc points to NOT
3576       --  plus fields for unary operator
3577       --  plus fields for expression
3578
3579       --  See also shift operators in section B.2
3580
3581       --  Note on fixed-point operations passed to Gigi: For adding operators,
3582       --  the semantics is to treat these simply as integer operations, with
3583       --  the small values being ignored (the bounds are already stored in
3584       --  units of small, so that constraint checking works as usual). For the
3585       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3586       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3587       --  thus treat these nodes in identical manner, ignoring small values.
3588
3589       --------------------------
3590       -- 4.6  Type Conversion --
3591       --------------------------
3592
3593       --  TYPE_CONVERSION ::=
3594       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3595
3596       --  In the (NAME) case, the name is stored as the expression
3597
3598       --  Note: the parser never generates a type conversion node, since it
3599       --  looks like an indexed component which is generated by preference.
3600       --  The semantic pass must correct this misidentification.
3601
3602       --  Gigi handles conversions that involve no change in the root type,
3603       --  and also all conversions from integer to floating-point types.
3604       --  Conversions from floating-point to integer are only handled in
3605       --  the case where Float_Truncate flag set. Other conversions from
3606       --  floating-point to integer (involving rounding) and all conversions
3607       --  involving fixed-point types are handled by the expander.
3608
3609       --  Sprint syntax if Float_Truncate set: X^(Y)
3610       --  Sprint syntax if Conversion_OK set X?(Y)
3611       --  Sprint syntax if both flags set X?^(Y)
3612
3613       --  Note: If either the operand or result type is fixed-point, Gigi will
3614       --  only see a type conversion node with Conversion_OK set. The front end
3615       --  takes care of all handling of small's for fixed-point conversions.
3616
3617       --  N_Type_Conversion
3618       --  Sloc points to first token of subtype mark
3619       --  Subtype_Mark (Node4)
3620       --  Expression (Node3)
3621       --  Do_Tag_Check (Flag13-Sem)
3622       --  Do_Length_Check (Flag4-Sem)
3623       --  Do_Overflow_Check (Flag17-Sem)
3624       --  Float_Truncate (Flag11-Sem)
3625       --  Rounded_Result (Flag18-Sem)
3626       --  Conversion_OK (Flag14-Sem)
3627       --  plus fields for expression
3628
3629       --  Note: if a range check is required, then the Do_Range_Check flag
3630       --  is set in the Expression with the check being done against the
3631       --  target type range (after the base type conversion, if any).
3632
3633       -------------------------------
3634       -- 4.7  Qualified Expression --
3635       -------------------------------
3636
3637       --  QUALIFIED_EXPRESSION ::=
3638       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3639
3640       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3641       --  the expression, so the Expression field of this node always points
3642       --  to a parenthesized expression in this case (i.e. Paren_Count will
3643       --  always be non-zero for the referenced expression if it is not an
3644       --  aggregate).
3645
3646       --  N_Qualified_Expression
3647       --  Sloc points to apostrophe
3648       --  Subtype_Mark (Node4)
3649       --  Expression (Node3) expression or aggregate
3650       --  plus fields for expression
3651
3652       --------------------
3653       -- 4.8  Allocator --
3654       --------------------
3655
3656       --  ALLOCATOR ::=
3657       --    new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3658
3659       --  Sprint syntax (when storage pool present)
3660       --    new xxx (storage_pool = pool)
3661
3662       --  N_Allocator
3663       --  Sloc points to NEW
3664       --  Expression (Node3) subtype indication or qualified expression
3665       --  Null_Exclusion_Present (Flag11)
3666       --  Storage_Pool (Node1-Sem)
3667       --  Procedure_To_Call (Node2-Sem)
3668       --  Coextensions (Elist4-Sem)
3669       --  No_Initialization (Flag13-Sem)
3670       --  Is_Static_Coextension (Flag14-Sem)
3671       --  Do_Storage_Check (Flag17-Sem)
3672       --  Is_Dynamic_Coextension (Flag18-Sem)
3673       --  plus fields for expression
3674
3675       ---------------------------------
3676       -- 5.1  Sequence Of Statements --
3677       ---------------------------------
3678
3679       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3680
3681       --  Note: Although the parser will not accept a declaration as a
3682       --  statement, the semantic analyzer may insert declarations (e.g.
3683       --  declarations of implicit types needed for execution of other
3684       --  statements) into a sequence of statements, so the code genmerator
3685       --  should be prepared to accept a declaration where a statement is
3686       --  expected. Note also that pragmas can appear as statements.
3687
3688       --------------------
3689       -- 5.1  Statement --
3690       --------------------
3691
3692       --  STATEMENT ::=
3693       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3694
3695       --  There is no explicit node in the tree for a statement. Instead, the
3696       --  individual statement appears directly. Labels are treated  as a
3697       --  kind of statement, i.e. they are linked into a statement list at
3698       --  the point they appear, so the labeled statement appears following
3699       --  the label or labels in the statement list.
3700
3701       ---------------------------
3702       -- 5.1  Simple Statement --
3703       ---------------------------
3704
3705       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
3706       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
3707       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
3708       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3709       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
3710       --  | ABORT_STATEMENT         | RAISE_STATEMENT
3711       --  | CODE_STATEMENT
3712
3713       -----------------------------
3714       -- 5.1  Compound Statement --
3715       -----------------------------
3716
3717       --  COMPOUND_STATEMENT ::=
3718       --    IF_STATEMENT              | CASE_STATEMENT
3719       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
3720       --  | EXTENDED_RETURN_STATEMENT
3721       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
3722
3723       -------------------------
3724       -- 5.1  Null Statement --
3725       -------------------------
3726
3727       --  NULL_STATEMENT ::= null;
3728
3729       --  N_Null_Statement
3730       --  Sloc points to NULL
3731
3732       ----------------
3733       -- 5.1  Label --
3734       ----------------
3735
3736       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3737
3738       --  Note that the occurrence of a label is not a defining identifier,
3739       --  but rather a referencing occurrence. The defining occurrence is
3740       --  in the implicit label declaration which occurs in the innermost
3741       --  enclosing block.
3742
3743       --  N_Label
3744       --  Sloc points to <<
3745       --  Identifier (Node1) direct name of statement identifier
3746       --  Exception_Junk (Flag8-Sem)
3747
3748       -------------------------------
3749       -- 5.1  Statement Identifier --
3750       -------------------------------
3751
3752       --  STATEMENT_INDENTIFIER ::= DIRECT_NAME
3753
3754       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3755       --  (not an OPERATOR_SYMBOL)
3756
3757       -------------------------------
3758       -- 5.2  Assignment Statement --
3759       -------------------------------
3760
3761       --  ASSIGNMENT_STATEMENT ::=
3762       --    variable_NAME := EXPRESSION;
3763
3764       --  N_Assignment_Statement
3765       --  Sloc points to :=
3766       --  Name (Node2)
3767       --  Expression (Node3)
3768       --  Do_Tag_Check (Flag13-Sem)
3769       --  Do_Length_Check (Flag4-Sem)
3770       --  Forwards_OK (Flag5-Sem)
3771       --  Backwards_OK (Flag6-Sem)
3772       --  No_Ctrl_Actions (Flag7-Sem)
3773
3774       --  Note: if a range check is required, then the Do_Range_Check flag
3775       --  is set in the Expression (right hand side), with the check being
3776       --  done against the type of the Name (left hand side).
3777
3778       --  Note: the back end places some restrictions on the form of the
3779       --  Expression field. If the object being assigned to is Atomic, then
3780       --  the Expression may not have the form of an aggregate (since this
3781       --  might cause the back end to generate separate assignments). It
3782       --  also cannot be a reference to an object marked as a true constant
3783       --  (Is_True_Constant flag set), where the object is itself initalized
3784       --  with an aggregate. If necessary the front end must generate an
3785       --  extra temporary (with Is_True_Constant set False), and initialize
3786       --  this temporary as required (the temporary itself is not atomic).
3787
3788       -----------------------
3789       -- 5.3  If Statement --
3790       -----------------------
3791
3792       --  IF_STATEMENT ::=
3793       --    if CONDITION then
3794       --      SEQUENCE_OF_STATEMENTS
3795       --    {elsif CONDITION then
3796       --      SEQUENCE_OF_STATEMENTS}
3797       --    [else
3798       --      SEQUENCE_OF_STATEMENTS]
3799       --    end if;
3800
3801       --  Gigi restriction: This expander ensures that the type of the
3802       --  Condition fields is always Standard.Boolean, even if the type
3803       --  in the source is some non-standard boolean type.
3804
3805       --  N_If_Statement
3806       --  Sloc points to IF
3807       --  Condition (Node1)
3808       --  Then_Statements (List2)
3809       --  Elsif_Parts (List3) (set to No_List if none present)
3810       --  Else_Statements (List4) (set to No_List if no else part present)
3811       --  End_Span (Uint5) (set to No_Uint if expander generated)
3812
3813       --  N_Elsif_Part
3814       --  Sloc points to ELSIF
3815       --  Condition (Node1)
3816       --  Then_Statements (List2)
3817       --  Condition_Actions (List3-Sem)
3818
3819       --------------------
3820       -- 5.3  Condition --
3821       --------------------
3822
3823       --  CONDITION ::= boolean_EXPRESSION
3824
3825       -------------------------
3826       -- 5.4  Case Statement --
3827       -------------------------
3828
3829       --  CASE_STATEMENT ::=
3830       --    case EXPRESSION is
3831       --      CASE_STATEMENT_ALTERNATIVE
3832       --      {CASE_STATEMENT_ALTERNATIVE}
3833       --    end case;
3834
3835       --  Note: the Alternatives can contain pragmas. These only occur at
3836       --  the start of the list, since any pragmas occurring after the first
3837       --  alternative are absorbed into the corresponding statement sequence.
3838
3839       --  N_Case_Statement
3840       --  Sloc points to CASE
3841       --  Expression (Node3)
3842       --  Alternatives (List4)
3843       --  End_Span (Uint5) (set to No_Uint if expander generated)
3844
3845       -------------------------------------
3846       -- 5.4  Case Statement Alternative --
3847       -------------------------------------
3848
3849       --  CASE_STATEMENT_ALTERNATIVE ::=
3850       --    when DISCRETE_CHOICE_LIST =>
3851       --      SEQUENCE_OF_STATEMENTS
3852
3853       --  N_Case_Statement_Alternative
3854       --  Sloc points to WHEN
3855       --  Discrete_Choices (List4)
3856       --  Statements (List3)
3857
3858       -------------------------
3859       -- 5.5  Loop Statement --
3860       -------------------------
3861
3862       --  LOOP_STATEMENT ::=
3863       --    [loop_STATEMENT_IDENTIFIER :]
3864       --      [ITERATION_SCHEME] loop
3865       --        SEQUENCE_OF_STATEMENTS
3866       --      end loop [loop_IDENTIFIER];
3867
3868       --  Note: The occurrence of a loop label is not a defining identifier
3869       --  but rather a referencing occurrence. The defining occurrence is in
3870       --  the implicit label declaration which occurs in the innermost
3871       --  enclosing block.
3872
3873       --  Note: there is always a loop statement identifier present in
3874       --  the tree, even if none was given in the source. In the case where
3875       --  no loop identifier is given in the source, the parser creates
3876       --  a name of the form _Loop_n, where n is a decimal integer (the
3877       --  two underlines ensure that the loop names created in this manner
3878       --  do not conflict with any user defined identifiers), and the flag
3879       --  Has_Created_Identifier is set to True. The only exception to the
3880       --  rule that all loop statement nodes have identifiers occurs for
3881       --  loops constructed by the expander, and the semantic analyzer will
3882       --  create and supply dummy loop identifiers in these cases.
3883
3884       --  N_Loop_Statement
3885       --  Sloc points to LOOP
3886       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
3887       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3888       --  Statements (List3)
3889       --  End_Label (Node4)
3890       --  Has_Created_Identifier (Flag15)
3891       --  Is_Null_Loop (Flag16)
3892
3893       --------------------------
3894       -- 5.5 Iteration Scheme --
3895       --------------------------
3896
3897       --  ITERATION_SCHEME ::=
3898       --    while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3899
3900       --  Gigi restriction: This expander ensures that the type of the
3901       --  Condition field is always Standard.Boolean, even if the type
3902       --  in the source is some non-standard boolean type.
3903
3904       --  N_Iteration_Scheme
3905       --  Sloc points to WHILE or FOR
3906       --  Condition (Node1) (set to Empty if FOR case)
3907       --  Condition_Actions (List3-Sem)
3908       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3909
3910       ---------------------------------------
3911       -- 5.5  Loop parameter specification --
3912       ---------------------------------------
3913
3914       --  LOOP_PARAMETER_SPECIFICATION ::=
3915       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3916
3917       --  N_Loop_Parameter_Specification
3918       --  Sloc points to first identifier
3919       --  Defining_Identifier (Node1)
3920       --  Reverse_Present (Flag15)
3921       --  Discrete_Subtype_Definition (Node4)
3922
3923       --------------------------
3924       -- 5.6  Block Statement --
3925       --------------------------
3926
3927       --  BLOCK_STATEMENT ::=
3928       --    [block_STATEMENT_IDENTIFIER:]
3929       --      [declare
3930       --        DECLARATIVE_PART]
3931       --      begin
3932       --        HANDLED_SEQUENCE_OF_STATEMENTS
3933       --      end [block_IDENTIFIER];
3934
3935       --  Note that the occurrence of a block identifier is not a defining
3936       --  identifier, but rather a referencing occurrence. The defining
3937       --  occurrence is an E_Block entity declared by the implicit label
3938       --  declaration which occurs in the innermost enclosing block statement
3939       --  or body; the block identifier denotes that E_Block.
3940
3941       --  For block statements that come from source code, there is always a
3942       --  block statement identifier present in the tree, denoting an
3943       --  E_Block. In the case where no block identifier is given in the
3944       --  source, the parser creates a name of the form B_n, where n is a
3945       --  decimal integer, and the flag Has_Created_Identifier is set to
3946       --  True. Blocks constructed by the expander usually have no identifier,
3947       --  and no corresponding entity.
3948
3949       --  Note: the block statement created for an extended return statement
3950       --  has an entity, and this entity is an E_Return_Statement, rather than
3951       --  the usual E_Block.
3952
3953       --  Note: Exception_Junk is set for the wrapping blocks created during
3954       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
3955
3956       --  N_Block_Statement
3957       --  Sloc points to DECLARE or BEGIN
3958       --  Identifier (Node1) block direct name (set to Empty if not present)
3959       --  Declarations (List2) (set to No_List if no DECLARE part)
3960       --  Handled_Statement_Sequence (Node4)
3961       --  Is_Task_Master (Flag5-Sem)
3962       --  Activation_Chain_Entity (Node3-Sem)
3963       --  Has_Created_Identifier (Flag15)
3964       --  Is_Task_Allocation_Block (Flag6)
3965       --  Is_Asynchronous_Call_Block (Flag7)
3966       --  Exception_Junk (Flag8-Sem)
3967
3968       -------------------------
3969       -- 5.7  Exit Statement --
3970       -------------------------
3971
3972       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
3973
3974       --  Gigi restriction: This expander ensures that the type of the
3975       --  Condition field is always Standard.Boolean, even if the type
3976       --  in the source is some non-standard boolean type.
3977
3978       --  N_Exit_Statement
3979       --  Sloc points to EXIT
3980       --  Name (Node2) (set to Empty if no loop name present)
3981       --  Condition (Node1) (set to Empty if no when part present)
3982
3983       -------------------------
3984       -- 5.9  Goto Statement --
3985       -------------------------
3986
3987       --  GOTO_STATEMENT ::= goto label_NAME;
3988
3989       --  N_Goto_Statement
3990       --  Sloc points to GOTO
3991       --  Name (Node2)
3992       --  Exception_Junk (Flag8-Sem)
3993
3994       ---------------------------------
3995       -- 6.1  Subprogram Declaration --
3996       ---------------------------------
3997
3998       --  SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
3999
4000       --  N_Subprogram_Declaration
4001       --  Sloc points to FUNCTION or PROCEDURE
4002       --  Specification (Node1)
4003       --  Body_To_Inline (Node3-Sem)
4004       --  Corresponding_Body (Node5-Sem)
4005       --  Parent_Spec (Node4-Sem)
4006
4007       ------------------------------------------
4008       -- 6.1  Abstract Subprogram Declaration --
4009       ------------------------------------------
4010
4011       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4012       --    SUBPROGRAM_SPECIFICATION is abstract;
4013
4014       --  N_Abstract_Subprogram_Declaration
4015       --  Sloc points to ABSTRACT
4016       --  Specification (Node1)
4017
4018       -----------------------------------
4019       -- 6.1  Subprogram Specification --
4020       -----------------------------------
4021
4022       --  SUBPROGRAM_SPECIFICATION ::=
4023       --    [[not] overriding]
4024       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4025       --  | [[not] overriding]
4026       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4027
4028       --  Note: there are no separate nodes for the profiles, instead the
4029       --  information appears directly in the following nodes.
4030
4031       --  N_Function_Specification
4032       --  Sloc points to FUNCTION
4033       --  Defining_Unit_Name (Node1) (the designator)
4034       --  Elaboration_Boolean (Node2-Sem)
4035       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4036       --  Null_Exclusion_Present (Flag11)
4037       --  Result_Definition (Node4) for result subtype
4038       --  Generic_Parent (Node5-Sem)
4039       --  Must_Override (Flag14) set if overriding indicator present
4040       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4041
4042       --  N_Procedure_Specification
4043       --  Sloc points to PROCEDURE
4044       --  Defining_Unit_Name (Node1)
4045       --  Elaboration_Boolean (Node2-Sem)
4046       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4047       --  Generic_Parent (Node5-Sem)
4048       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4049       --  Must_Override (Flag14) set if overriding indicator present
4050       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4051
4052       --  Note: overriding indicator is an Ada 2005 feature
4053
4054       ---------------------
4055       -- 6.1  Designator --
4056       ---------------------
4057
4058       --  DESIGNATOR ::=
4059       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4060
4061       --  Designators that are simply identifiers or operator symbols appear
4062       --  directly in the tree in this form. The following node is used only
4063       --  in the case where the designator has a parent unit name component.
4064
4065       --  N_Designator
4066       --  Sloc points to period
4067       --  Name (Node2) holds the parent unit name. Note that this is always
4068       --   non-Empty, since this node is only used for the case where a
4069       --   parent library unit package name is present.
4070       --  Identifier (Node1)
4071
4072       --  Note that the identifier can also be an operator symbol here
4073
4074       ------------------------------
4075       -- 6.1  Defining Designator --
4076       ------------------------------
4077
4078       --  DEFINING_DESIGNATOR ::=
4079       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4080
4081       -------------------------------------
4082       -- 6.1  Defining Program Unit Name --
4083       -------------------------------------
4084
4085       --  DEFINING_PROGRAM_UNIT_NAME ::=
4086       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4087
4088       --  The parent unit name is present only in the case of a child unit
4089       --  name (permissible only for Ada 95 for a library level unit, i.e.
4090       --  a unit at scope level one). If no such name is present, the defining
4091       --  program unit name is represented simply as the defining identifier.
4092       --  In the child unit case, the following node is used to represent the
4093       --  child unit name.
4094
4095       --  N_Defining_Program_Unit_Name
4096       --  Sloc points to period
4097       --  Name (Node2) holds the parent unit name. Note that this is always
4098       --   non-Empty, since this node is only used for the case where a
4099       --   parent unit name is present.
4100       --  Defining_Identifier (Node1)
4101
4102       --------------------------
4103       -- 6.1  Operator Symbol --
4104       --------------------------
4105
4106       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4107
4108       --  Note: the fields of the N_Operator_Symbol node are laid out to
4109       --  match the corresponding fields of an N_Character_Literal node. This
4110       --  allows easy conversion of the operator symbol node into a character
4111       --  literal node in the case where a string constant of the form of an
4112       --  operator symbol is scanned out as such, but turns out semantically
4113       --  to be a string literal that is not an operator. For details see
4114       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4115
4116       --  N_Operator_Symbol
4117       --  Sloc points to literal
4118       --  Chars (Name1) contains the Name_Id for the operator symbol
4119       --  Strval (Str3) Id of string value. This is used if the operator
4120       --   symbol turns out to be a normal string after all.
4121       --  Entity (Node4-Sem)
4122       --  Associated_Node (Node4-Sem)
4123       --  Has_Private_View (Flag11-Sem) set in generic units.
4124       --  Etype (Node5-Sem)
4125
4126       --  Note: the Strval field may be set to No_String for generated
4127       --  operator symbols that are known not to be string literals
4128       --  semantically.
4129
4130       -----------------------------------
4131       -- 6.1  Defining Operator Symbol --
4132       -----------------------------------
4133
4134       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4135
4136       --  A defining operator symbol is an entity, which has additional
4137       --  fields depending on the setting of the Ekind field. These
4138       --  additional fields are defined (and access subprograms declared)
4139       --  in package Einfo.
4140
4141       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4142       --  are deliberately layed out to match the layout of fields in an
4143       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4144       --  an operator symbol node into a defining operator symbol node.
4145       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4146       --  for further details.
4147
4148       --  N_Defining_Operator_Symbol
4149       --  Sloc points to literal
4150       --  Chars (Name1) contains the Name_Id for the operator symbol
4151       --  Next_Entity (Node2-Sem)
4152       --  Scope (Node3-Sem)
4153       --  Etype (Node5-Sem)
4154
4155       ----------------------------
4156       -- 6.1  Parameter Profile --
4157       ----------------------------
4158
4159       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4160
4161       ---------------------------------------
4162       -- 6.1  Parameter and Result Profile --
4163       ---------------------------------------
4164
4165       --  PARAMETER_AND_RESULT_PROFILE ::=
4166       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4167       --  | [FORMAL_PART] return ACCESS_DEFINITION
4168
4169       --  There is no explicit node in the tree for a parameter and result
4170       --  profile. Instead the information appears directly in the parent.
4171
4172       ----------------------
4173       -- 6.1  Formal part --
4174       ----------------------
4175
4176       --  FORMAL_PART ::=
4177       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4178
4179       ----------------------------------
4180       -- 6.1  Parameter specification --
4181       ----------------------------------
4182
4183       --  PARAMETER_SPECIFICATION ::=
4184       --    DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4185       --      [:= DEFAULT_EXPRESSION]
4186       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4187       --      [:= DEFAULT_EXPRESSION]
4188
4189       --  Although the syntax allows multiple identifiers in the list, the
4190       --  semantics is as though successive specifications were given with
4191       --  identical type definition and expression components. To simplify
4192       --  semantic processing, the parser represents a multiple declaration
4193       --  case as a sequence of single Specifications, using the More_Ids and
4194       --  Prev_Ids flags to preserve the original source form as described
4195       --  in the section on "Handling of Defining Identifier Lists".
4196
4197       --  N_Parameter_Specification
4198       --  Sloc points to first identifier
4199       --  Defining_Identifier (Node1)
4200       --  In_Present (Flag15)
4201       --  Out_Present (Flag17)
4202       --  Null_Exclusion_Present (Flag11)
4203       --  Parameter_Type (Node2) subtype mark or access definition
4204       --  Expression (Node3) (set to Empty if no default expression present)
4205       --  Do_Accessibility_Check (Flag13-Sem)
4206       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4207       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4208       --  Default_Expression (Node5-Sem)
4209
4210       ---------------
4211       -- 6.1  Mode --
4212       ---------------
4213
4214       --  MODE ::= [in] | in out | out
4215
4216       --  There is no explicit node in the tree for the Mode. Instead the
4217       --  In_Present and Out_Present flags are set in the parent node to
4218       --  record the presence of keywords specifying the mode.
4219
4220       --------------------------
4221       -- 6.3  Subprogram Body --
4222       --------------------------
4223
4224       --  SUBPROGRAM_BODY ::=
4225       --    SUBPROGRAM_SPECIFICATION is
4226       --      DECLARATIVE_PART
4227       --    begin
4228       --      HANDLED_SEQUENCE_OF_STATEMENTS
4229       --    end [DESIGNATOR];
4230
4231       --  N_Subprogram_Body
4232       --  Sloc points to FUNCTION or PROCEDURE
4233       --  Specification (Node1)
4234       --  Declarations (List2)
4235       --  Handled_Statement_Sequence (Node4)
4236       --  Activation_Chain_Entity (Node3-Sem)
4237       --  Corresponding_Spec (Node5-Sem)
4238       --  Acts_As_Spec (Flag4-Sem)
4239       --  Bad_Is_Detected (Flag15) used only by parser
4240       --  Do_Storage_Check (Flag17-Sem)
4241       --  Has_Priority_Pragma (Flag6-Sem)
4242       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4243       --  Is_Entry_Barrier_Function (Flag8-Sem)
4244       --  Is_Task_Master (Flag5-Sem)
4245       --  Was_Originally_Stub (Flag13-Sem)
4246
4247       -----------------------------------
4248       -- 6.4  Procedure Call Statement --
4249       -----------------------------------
4250
4251       --  PROCEDURE_CALL_STATEMENT ::=
4252       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4253
4254       --  Note: the reason that a procedure call has expression fields is
4255       --  that it semantically resembles an expression, e.g. overloading is
4256       --  allowed and a type is concocted for semantic processing purposes.
4257       --  Certain of these fields, such as Parens are not relevant, but it
4258       --  is easier to just supply all of them together!
4259
4260       --  N_Procedure_Call_Statement
4261       --  Sloc points to first token of name or prefix
4262       --  Name (Node2) stores name or prefix
4263       --  Parameter_Associations (List3) (set to No_List if no
4264       --   actual parameter part)
4265       --  First_Named_Actual (Node4-Sem)
4266       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4267       --  Do_Tag_Check (Flag13-Sem)
4268       --  No_Elaboration_Check (Flag14-Sem)
4269       --  Parameter_List_Truncated (Flag17-Sem)
4270       --  ABE_Is_Certain (Flag18-Sem)
4271       --  plus fields for expression
4272
4273       --  If any IN parameter requires a range check, then the corresponding
4274       --  argument expression has the Do_Range_Check flag set, and the range
4275       --  check is done against the formal type. Note that this argument
4276       --  expression may appear directly in the Parameter_Associations list,
4277       --  or may be a descendent of an N_Parameter_Association node that
4278       --  appears in this list.
4279
4280       ------------------------
4281       -- 6.4  Function Call --
4282       ------------------------
4283
4284       --  FUNCTION_CALL ::=
4285       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4286
4287       --  Note: the parser may generate an indexed component node or simply
4288       --  a name node instead of a function call node. The semantic pass must
4289       --  correct this misidentification.
4290
4291       --  N_Function_Call
4292       --  Sloc points to first token of name or prefix
4293       --  Name (Node2) stores name or prefix
4294       --  Parameter_Associations (List3) (set to No_List if no
4295       --   actual parameter part)
4296       --  First_Named_Actual (Node4-Sem)
4297       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4298       --  Do_Tag_Check (Flag13-Sem)
4299       --  No_Elaboration_Check (Flag14-Sem)
4300       --  Parameter_List_Truncated (Flag17-Sem)
4301       --  ABE_Is_Certain (Flag18-Sem)
4302       --  plus fields for expression
4303
4304       --------------------------------
4305       -- 6.4  Actual Parameter Part --
4306       --------------------------------
4307
4308       --  ACTUAL_PARAMETER_PART ::=
4309       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4310
4311       --------------------------------
4312       -- 6.4  Parameter Association --
4313       --------------------------------
4314
4315       --  PARAMETER_ASSOCIATION ::=
4316       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4317
4318       --  Note: the N_Parameter_Association node is built only if a formal
4319       --  parameter selector name is present, otherwise the parameter
4320       --  association appears in the tree simply as the node for the
4321       --  explicit actual parameter.
4322
4323       --  N_Parameter_Association
4324       --  Sloc points to formal parameter
4325       --  Selector_Name (Node2) (always non-Empty)
4326       --  Explicit_Actual_Parameter (Node3)
4327       --  Next_Named_Actual (Node4-Sem)
4328
4329       ---------------------------
4330       -- 6.4  Actual Parameter --
4331       ---------------------------
4332
4333       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4334
4335       ---------------------------
4336       -- 6.5  Return Statement --
4337       ---------------------------
4338
4339       --  RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4340
4341       --  In Ada 2005, we have:
4342
4343       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4344
4345       --  EXTENDED_RETURN_STATEMENT ::=
4346       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4347       --                                           [:= EXPRESSION] [do
4348       --      HANDLED_SEQUENCE_OF_STATEMENTS
4349       --    end return];
4350
4351       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4352
4353       --  So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4354       --  "return statement" is defined in 6.5 to mean a
4355       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4356
4357       --  N_Return_Statement
4358       --  Sloc points to RETURN
4359       --  Return_Statement_Entity (Node5-Sem)
4360       --  Expression (Node3) (set to Empty if no expression present)
4361       --  Storage_Pool (Node1-Sem)
4362       --  Procedure_To_Call (Node2-Sem)
4363       --  Do_Tag_Check (Flag13-Sem)
4364       --  By_Ref (Flag5-Sem)
4365       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4366
4367       --  N_Return_Statement represents a simple_return_statement, and is
4368       --  renamed to be N_Simple_Return_Statement below. Clients should refer
4369       --  to N_Simple_Return_Statement. We retain N_Return_Statement because
4370       --  that's how gigi knows it. See also renaming of Make_Return_Statement
4371       --  as Make_Simple_Return_Statement in Sem_Util.
4372
4373       --  Note: Return_Statement_Entity points to an E_Return_Statement
4374
4375       --  If a range check is required, then Do_Range_Check is set on the
4376       --  Expression. The check is against the return subtype of the function.
4377
4378       --  N_Extended_Return_Statement
4379       --  Sloc points to RETURN
4380       --  Return_Statement_Entity (Node5-Sem)
4381       --  Return_Object_Declarations (List3)
4382       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
4383       --  Storage_Pool (Node1-Sem)
4384       --  Procedure_To_Call (Node2-Sem)
4385       --  Do_Tag_Check (Flag13-Sem)
4386       --  By_Ref (Flag5-Sem)
4387
4388       --  Note: Return_Statement_Entity points to an E_Return_Statement.
4389       --  Note that Return_Object_Declarations is a list containing the
4390       --  N_Object_Declaration -- see comment on this field above.
4391       --  The declared object will have Is_Return_Object = True.
4392       --  There is no such syntactic category as return_object_declaration
4393       --  in the RM. Return_Object_Declarations represents this portion of
4394       --  the syntax for EXTENDED_RETURN_STATEMENT:
4395       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4396       --                                      [:= EXPRESSION]
4397
4398       --  There are two entities associated with an extended_return_statement:
4399       --  the Return_Statement_Entity represents the statement itself, and the
4400       --  Defining_Identifier of the Object_Declaration in
4401       --  Return_Object_Declarations represents the object being
4402       --  returned. N_Simple_Return_Statement has only the former.
4403
4404       ------------------------------
4405       -- 7.1  Package Declaration --
4406       ------------------------------
4407
4408       --  PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4409
4410       --  Note: the activation chain entity for a package spec is used for
4411       --  all tasks declared in the package spec, or in the package body.
4412
4413       --  N_Package_Declaration
4414       --  Sloc points to PACKAGE
4415       --  Specification (Node1)
4416       --  Corresponding_Body (Node5-Sem)
4417       --  Parent_Spec (Node4-Sem)
4418       --  Activation_Chain_Entity (Node3-Sem)
4419
4420       --------------------------------
4421       -- 7.1  Package Specification --
4422       --------------------------------
4423
4424       --  PACKAGE_SPECIFICATION ::=
4425       --    package DEFINING_PROGRAM_UNIT_NAME is
4426       --      {BASIC_DECLARATIVE_ITEM}
4427       --    [private
4428       --      {BASIC_DECLARATIVE_ITEM}]
4429       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4430
4431       --  N_Package_Specification
4432       --  Sloc points to PACKAGE
4433       --  Defining_Unit_Name (Node1)
4434       --  Visible_Declarations (List2)
4435       --  Private_Declarations (List3) (set to No_List if no private
4436       --   part present)
4437       --  End_Label (Node4)
4438       --  Generic_Parent (Node5-Sem)
4439       --  Limited_View_Installed (Flag18-Sem)
4440
4441       -----------------------
4442       -- 7.1  Package Body --
4443       -----------------------
4444
4445       --  PACKAGE_BODY ::=
4446       --    package body DEFINING_PROGRAM_UNIT_NAME is
4447       --      DECLARATIVE_PART
4448       --    [begin
4449       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4450       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4451
4452       --  N_Package_Body
4453       --  Sloc points to PACKAGE
4454       --  Defining_Unit_Name (Node1)
4455       --  Declarations (List2)
4456       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4457       --  Corresponding_Spec (Node5-Sem)
4458       --  Was_Originally_Stub (Flag13-Sem)
4459
4460       --  Note: if a source level package does not contain a handled sequence
4461       --  of statements, then the parser supplies a dummy one with a null
4462       --  sequence of statements. Comes_From_Source will be False in this
4463       --  constructed sequence. The reason we need this is for the End_Label
4464       --  field in the HSS.
4465
4466       -----------------------------------
4467       -- 7.4  Private Type Declaration --
4468       -----------------------------------
4469
4470       --  PRIVATE_TYPE_DECLARATION ::=
4471       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4472       --      is [[abstract] tagged] [limited] private;
4473
4474       --  Note: TAGGED is not permitted in Ada 83 mode
4475
4476       --  N_Private_Type_Declaration
4477       --  Sloc points to TYPE
4478       --  Defining_Identifier (Node1)
4479       --  Discriminant_Specifications (List4) (set to No_List if no
4480       --   discriminant part)
4481       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4482       --  Abstract_Present (Flag4)
4483       --  Tagged_Present (Flag15)
4484       --  Limited_Present (Flag17)
4485
4486       ----------------------------------------
4487       -- 7.4  Private Extension Declaration --
4488       ----------------------------------------
4489
4490       --  PRIVATE_EXTENSION_DECLARATION ::=
4491       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4492       --      [abstract] [limited | synchronized]
4493       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4494       --           with private;
4495
4496       --  Note: LIMITED, and private extension declarations are not allowed
4497       --        in Ada 83 mode.
4498
4499       --  N_Private_Extension_Declaration
4500       --  Sloc points to TYPE
4501       --  Defining_Identifier (Node1)
4502       --  Discriminant_Specifications (List4) (set to No_List if no
4503       --   discriminant part)
4504       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4505       --  Abstract_Present (Flag4)
4506       --  Limited_Present (Flag17)
4507       --  Synchronized_Present (Flag7)
4508       --  Subtype_Indication (Node5)
4509       --  Interface_List (List2) (set to No_List if none)
4510
4511       ---------------------
4512       -- 8.4  Use Clause --
4513       ---------------------
4514
4515       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4516
4517       -----------------------------
4518       -- 8.4  Use Package Clause --
4519       -----------------------------
4520
4521       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4522
4523       --  N_Use_Package_Clause
4524       --  Sloc points to USE
4525       --  Names (List2)
4526       --  Next_Use_Clause (Node3-Sem)
4527       --  Hidden_By_Use_Clause (Elist4-Sem)
4528
4529       --------------------------
4530       -- 8.4  Use Type Clause --
4531       --------------------------
4532
4533       --  USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4534
4535       --  Note: use type clause is not permitted in Ada 83 mode
4536
4537       --  N_Use_Type_Clause
4538       --  Sloc points to USE
4539       --  Subtype_Marks (List2)
4540       --  Next_Use_Clause (Node3-Sem)
4541       --  Hidden_By_Use_Clause (Elist4-Sem)
4542
4543       -------------------------------
4544       -- 8.5  Renaming Declaration --
4545       -------------------------------
4546
4547       --  RENAMING_DECLARATION ::=
4548       --    OBJECT_RENAMING_DECLARATION
4549       --  | EXCEPTION_RENAMING_DECLARATION
4550       --  | PACKAGE_RENAMING_DECLARATION
4551       --  | SUBPROGRAM_RENAMING_DECLARATION
4552       --  | GENERIC_RENAMING_DECLARATION
4553
4554       --------------------------------------
4555       -- 8.5  Object Renaming Declaration --
4556       --------------------------------------
4557
4558       --  OBJECT_RENAMING_DECLARATION ::=
4559       --    DEFINING_IDENTIFIER :
4560       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4561       --  | DEFINING_IDENTIFIER :
4562       --      ACCESS_DEFINITION renames object_NAME;
4563
4564       --  Note: Access_Definition is an optional field that gives support to
4565       --  Ada 2005 (AI-230). The parser generates nodes that have either the
4566       --  Subtype_Indication field or else the Access_Definition field.
4567
4568       --  N_Object_Renaming_Declaration
4569       --  Sloc points to first identifier
4570       --  Defining_Identifier (Node1)
4571       --  Null_Exclusion_Present (Flag11) (set to False if not present)
4572       --  Subtype_Mark (Node4) (set to Empty if not present)
4573       --  Access_Definition (Node3) (set to Empty if not present)
4574       --  Name (Node2)
4575       --  Corresponding_Generic_Association (Node5-Sem)
4576
4577       -----------------------------------------
4578       -- 8.5  Exception Renaming Declaration --
4579       -----------------------------------------
4580
4581       --  EXCEPTION_RENAMING_DECLARATION ::=
4582       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4583
4584       --  N_Exception_Renaming_Declaration
4585       --  Sloc points to first identifier
4586       --  Defining_Identifier (Node1)
4587       --  Name (Node2)
4588
4589       ---------------------------------------
4590       -- 8.5  Package Renaming Declaration --
4591       ---------------------------------------
4592
4593       --  PACKAGE_RENAMING_DECLARATION ::=
4594       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4595
4596       --  N_Package_Renaming_Declaration
4597       --  Sloc points to PACKAGE
4598       --  Defining_Unit_Name (Node1)
4599       --  Name (Node2)
4600       --  Parent_Spec (Node4-Sem)
4601
4602       ------------------------------------------
4603       -- 8.5  Subprogram Renaming Declaration --
4604       ------------------------------------------
4605
4606       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4607       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4608
4609       --  N_Subprogram_Renaming_Declaration
4610       --  Sloc points to RENAMES
4611       --  Specification (Node1)
4612       --  Name (Node2)
4613       --  Parent_Spec (Node4-Sem)
4614       --  Corresponding_Spec (Node5-Sem)
4615       --  Corresponding_Formal_Spec (Node3-Sem)
4616       --  From_Default (Flag6-Sem)
4617
4618       -----------------------------------------
4619       -- 8.5.5  Generic Renaming Declaration --
4620       -----------------------------------------
4621
4622       --  GENERIC_RENAMING_DECLARATION ::=
4623       --    generic package DEFINING_PROGRAM_UNIT_NAME
4624       --      renames generic_package_NAME
4625       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
4626       --      renames generic_procedure_NAME
4627       --  | generic function DEFINING_PROGRAM_UNIT_NAME
4628       --      renames generic_function_NAME
4629
4630       --  N_Generic_Package_Renaming_Declaration
4631       --  Sloc points to GENERIC
4632       --  Defining_Unit_Name (Node1)
4633       --  Name (Node2)
4634       --  Parent_Spec (Node4-Sem)
4635
4636       --  N_Generic_Procedure_Renaming_Declaration
4637       --  Sloc points to GENERIC
4638       --  Defining_Unit_Name (Node1)
4639       --  Name (Node2)
4640       --  Parent_Spec (Node4-Sem)
4641
4642       --  N_Generic_Function_Renaming_Declaration
4643       --  Sloc points to GENERIC
4644       --  Defining_Unit_Name (Node1)
4645       --  Name (Node2)
4646       --  Parent_Spec (Node4-Sem)
4647
4648       --------------------------------
4649       -- 9.1  Task Type Declaration --
4650       --------------------------------
4651
4652       --  TASK_TYPE_DECLARATION ::=
4653       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4654       --      [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4655
4656       --  N_Task_Type_Declaration
4657       --  Sloc points to TASK
4658       --  Defining_Identifier (Node1)
4659       --  Discriminant_Specifications (List4) (set to No_List if no
4660       --   discriminant part)
4661       --  Interface_List (List2) (set to No_List if none)
4662       --  Task_Definition (Node3) (set to Empty if not present)
4663       --  Corresponding_Body (Node5-Sem)
4664
4665       ----------------------------------
4666       -- 9.1  Single Task Declaration --
4667       ----------------------------------
4668
4669       --  SINGLE_TASK_DECLARATION ::=
4670       --    task DEFINING_IDENTIFIER
4671       --      [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4672
4673       --  N_Single_Task_Declaration
4674       --  Sloc points to TASK
4675       --  Defining_Identifier (Node1)
4676       --  Interface_List (List2) (set to No_List if none)
4677       --  Task_Definition (Node3) (set to Empty if not present)
4678
4679       --------------------------
4680       -- 9.1  Task Definition --
4681       --------------------------
4682
4683       --  TASK_DEFINITION ::=
4684       --      {TASK_ITEM}
4685       --    [private
4686       --      {TASK_ITEM}]
4687       --    end [task_IDENTIFIER]
4688
4689       --  Note: as a result of semantic analysis, the list of task items can
4690       --  include implicit type declarations resulting from entry families.
4691
4692       --  N_Task_Definition
4693       --  Sloc points to first token of task definition
4694       --  Visible_Declarations (List2)
4695       --  Private_Declarations (List3) (set to No_List if no private part)
4696       --  End_Label (Node4)
4697       --  Has_Priority_Pragma (Flag6-Sem)
4698       --  Has_Storage_Size_Pragma (Flag5-Sem)
4699       --  Has_Task_Info_Pragma (Flag7-Sem)
4700       --  Has_Task_Name_Pragma (Flag8-Sem)
4701
4702       --------------------
4703       -- 9.1  Task Item --
4704       --------------------
4705
4706       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4707
4708       --------------------
4709       -- 9.1  Task Body --
4710       --------------------
4711
4712       --  TASK_BODY ::=
4713       --    task body task_DEFINING_IDENTIFIER is
4714       --      DECLARATIVE_PART
4715       --    begin
4716       --      HANDLED_SEQUENCE_OF_STATEMENTS
4717       --    end [task_IDENTIFIER];
4718
4719       --  Gigi restriction: This node never appears
4720
4721       --  N_Task_Body
4722       --  Sloc points to TASK
4723       --  Defining_Identifier (Node1)
4724       --  Declarations (List2)
4725       --  Handled_Statement_Sequence (Node4)
4726       --  Is_Task_Master (Flag5-Sem)
4727       --  Activation_Chain_Entity (Node3-Sem)
4728       --  Corresponding_Spec (Node5-Sem)
4729       --  Was_Originally_Stub (Flag13-Sem)
4730
4731       -------------------------------------
4732       -- 9.4  Protected Type Declaration --
4733       -------------------------------------
4734
4735       --  PROTECTED_TYPE_DECLARATION ::=
4736       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4737       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4738
4739       --  Note: protected type declarations are not permitted in Ada 83 mode
4740
4741       --  N_Protected_Type_Declaration
4742       --  Sloc points to PROTECTED
4743       --  Defining_Identifier (Node1)
4744       --  Discriminant_Specifications (List4) (set to No_List if no
4745       --   discriminant part)
4746       --  Interface_List (List2) (set to No_List if none)
4747       --  Protected_Definition (Node3)
4748       --  Corresponding_Body (Node5-Sem)
4749
4750       ---------------------------------------
4751       -- 9.4  Single Protected Declaration --
4752       ---------------------------------------
4753
4754       --  SINGLE_PROTECTED_DECLARATION ::=
4755       --    protected DEFINING_IDENTIFIER
4756       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4757
4758       --  Note: single protected declarations are not allowed in Ada 83 mode
4759
4760       --  N_Single_Protected_Declaration
4761       --  Sloc points to PROTECTED
4762       --  Defining_Identifier (Node1)
4763       --  Interface_List (List2) (set to No_List if none)
4764       --  Protected_Definition (Node3)
4765
4766       -------------------------------
4767       -- 9.4  Protected Definition --
4768       -------------------------------
4769
4770       --  PROTECTED_DEFINITION ::=
4771       --      {PROTECTED_OPERATION_DECLARATION}
4772       --    [private
4773       --      {PROTECTED_ELEMENT_DECLARATION}]
4774       --    end [protected_IDENTIFIER]
4775
4776       --  N_Protected_Definition
4777       --  Sloc points to first token of protected definition
4778       --  Visible_Declarations (List2)
4779       --  Private_Declarations (List3) (set to No_List if no private part)
4780       --  End_Label (Node4)
4781       --  Has_Priority_Pragma (Flag6-Sem)
4782
4783       ------------------------------------------
4784       -- 9.4  Protected Operation Declaration --
4785       ------------------------------------------
4786
4787       --  PROTECTED_OPERATION_DECLARATION ::=
4788       --    SUBPROGRAM_DECLARATION
4789       --  | ENTRY_DECLARATION
4790       --  | REPRESENTATION_CLAUSE
4791
4792       ----------------------------------------
4793       -- 9.4  Protected Element Declaration --
4794       ----------------------------------------
4795
4796       --  PROTECTED_ELEMENT_DECLARATION ::=
4797       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4798
4799       -------------------------
4800       -- 9.4  Protected Body --
4801       -------------------------
4802
4803       --  PROTECTED_BODY ::=
4804       --    protected body DEFINING_IDENTIFIER is
4805       --      {PROTECTED_OPERATION_ITEM}
4806       --    end [protected_IDENTIFIER];
4807
4808       --  Note: protected bodies are not allowed in Ada 83 mode
4809
4810       --  Gigi restriction: This node never appears
4811
4812       --  N_Protected_Body
4813       --  Sloc points to PROTECTED
4814       --  Defining_Identifier (Node1)
4815       --  Declarations (List2) protected operation items (and pragmas)
4816       --  End_Label (Node4)
4817       --  Corresponding_Spec (Node5-Sem)
4818       --  Was_Originally_Stub (Flag13-Sem)
4819
4820       -----------------------------------
4821       -- 9.4  Protected Operation Item --
4822       -----------------------------------
4823
4824       --  PROTECTED_OPERATION_ITEM ::=
4825       --    SUBPROGRAM_DECLARATION
4826       --  | SUBPROGRAM_BODY
4827       --  | ENTRY_BODY
4828       --  | REPRESENTATION_CLAUSE
4829
4830       ------------------------------
4831       -- 9.5.2  Entry Declaration --
4832       ------------------------------
4833
4834       --  ENTRY_DECLARATION ::=
4835       --    [[not] overriding]
4836       --    entry DEFINING_IDENTIFIER
4837       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4838
4839       --  N_Entry_Declaration
4840       --  Sloc points to ENTRY
4841       --  Defining_Identifier (Node1)
4842       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4843       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4844       --  Corresponding_Body (Node5-Sem)
4845       --  Must_Override (Flag14) set if overriding indicator present
4846       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4847
4848       --  Note: overriding indicator is an Ada 2005 feature
4849
4850       -----------------------------
4851       -- 9.5.2  Accept statement --
4852       -----------------------------
4853
4854       --  ACCEPT_STATEMENT ::=
4855       --    accept entry_DIRECT_NAME
4856       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4857       --        HANDLED_SEQUENCE_OF_STATEMENTS
4858       --    end [entry_IDENTIFIER]];
4859
4860       --  Gigi restriction: This node never appears
4861
4862       --  Note: there are no explicit declarations allowed in an accept
4863       --  statement. However, the implicit declarations for any statement
4864       --  identifiers (labels and block/loop identifiers) are declarations
4865       --  that belong logically to the accept statement, and that is why
4866       --  there is a Declarations field in this node.
4867
4868       --  N_Accept_Statement
4869       --  Sloc points to ACCEPT
4870       --  Entry_Direct_Name (Node1)
4871       --  Entry_Index (Node5) (set to Empty if not present)
4872       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4873       --  Handled_Statement_Sequence (Node4)
4874       --  Declarations (List2) (set to No_List if no declarations)
4875
4876       ------------------------
4877       -- 9.5.2  Entry Index --
4878       ------------------------
4879
4880       --  ENTRY_INDEX ::= EXPRESSION
4881
4882       -----------------------
4883       -- 9.5.2  Entry Body --
4884       -----------------------
4885
4886       --  ENTRY_BODY ::=
4887       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4888       --      DECLARATIVE_PART
4889       --    begin
4890       --      HANDLED_SEQUENCE_OF_STATEMENTS
4891       --    end [entry_IDENTIFIER];
4892
4893       --  ENTRY_BARRIER ::= when CONDITION
4894
4895       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4896       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4897       --  too full (it would otherwise have too many fields)
4898
4899       --  Gigi restriction: This node never appears
4900
4901       --  N_Entry_Body
4902       --  Sloc points to ENTRY
4903       --  Defining_Identifier (Node1)
4904       --  Entry_Body_Formal_Part (Node5)
4905       --  Declarations (List2)
4906       --  Handled_Statement_Sequence (Node4)
4907       --  Activation_Chain_Entity (Node3-Sem)
4908
4909       -----------------------------------
4910       -- 9.5.2  Entry Body Formal Part --
4911       -----------------------------------
4912
4913       --  ENTRY_BODY_FORMAL_PART ::=
4914       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4915
4916       --  Note that an entry body formal part node is present even if it is
4917       --  empty. This reflects the grammar, in which it is the components of
4918       --  the entry body formal part that are optional, not the entry body
4919       --  formal part itself. Also this means that the barrier condition
4920       --  always has somewhere to be stored.
4921
4922       --  Gigi restriction: This node never appears
4923
4924       --  N_Entry_Body_Formal_Part
4925       --  Sloc points to first token
4926       --  Entry_Index_Specification (Node4) (set to Empty if not present)
4927       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4928       --  Condition (Node1) from entry barrier of entry body
4929
4930       --------------------------
4931       -- 9.5.2  Entry Barrier --
4932       --------------------------
4933
4934       --  ENTRY_BARRIER ::= when CONDITION
4935
4936       --------------------------------------
4937       -- 9.5.2  Entry Index Specification --
4938       --------------------------------------
4939
4940       --  ENTRY_INDEX_SPECIFICATION ::=
4941       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4942
4943       --  Gigi restriction: This node never appears
4944
4945       --  N_Entry_Index_Specification
4946       --  Sloc points to FOR
4947       --  Defining_Identifier (Node1)
4948       --  Discrete_Subtype_Definition (Node4)
4949
4950       ---------------------------------
4951       -- 9.5.3  Entry Call Statement --
4952       ---------------------------------
4953
4954       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
4955
4956       --  The parser may generate a procedure call for this construct. The
4957       --  semantic pass must correct this misidentification where needed.
4958
4959       --  Gigi restriction: This node never appears
4960
4961       --  N_Entry_Call_Statement
4962       --  Sloc points to first token of name
4963       --  Name (Node2)
4964       --  Parameter_Associations (List3) (set to No_List if no
4965       --   actual parameter part)
4966       --  First_Named_Actual (Node4-Sem)
4967
4968       ------------------------------
4969       -- 9.5.4  Requeue Statement --
4970       ------------------------------
4971
4972       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
4973
4974       --  Note: requeue statements are not permitted in Ada 83 mode
4975
4976       --  Gigi restriction: This node never appears
4977
4978       --  N_Requeue_Statement
4979       --  Sloc points to REQUEUE
4980       --  Name (Node2)
4981       --  Abort_Present (Flag15)
4982
4983       --------------------------
4984       -- 9.6  Delay Statement --
4985       --------------------------
4986
4987       --  DELAY_STATEMENT ::=
4988       --    DELAY_UNTIL_STATEMENT
4989       --  | DELAY_RELATIVE_STATEMENT
4990
4991       --------------------------------
4992       -- 9.6  Delay Until Statement --
4993       --------------------------------
4994
4995       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
4996
4997       --  Note: delay until statements are not permitted in Ada 83 mode
4998
4999       --  Gigi restriction: This node never appears
5000
5001       --  N_Delay_Until_Statement
5002       --  Sloc points to DELAY
5003       --  Expression (Node3)
5004
5005       -----------------------------------
5006       -- 9.6  Delay Relative Statement --
5007       -----------------------------------
5008
5009       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5010
5011       --  Gigi restriction: This node never appears
5012
5013       --  N_Delay_Relative_Statement
5014       --  Sloc points to DELAY
5015       --  Expression (Node3)
5016
5017       ---------------------------
5018       -- 9.7  Select Statement --
5019       ---------------------------
5020
5021       --  SELECT_STATEMENT ::=
5022       --    SELECTIVE_ACCEPT
5023       --  | TIMED_ENTRY_CALL
5024       --  | CONDITIONAL_ENTRY_CALL
5025       --  | ASYNCHRONOUS_SELECT
5026
5027       -----------------------------
5028       -- 9.7.1  Selective Accept --
5029       -----------------------------
5030
5031       --  SELECTIVE_ACCEPT ::=
5032       --    select
5033       --      [GUARD]
5034       --        SELECT_ALTERNATIVE
5035       --    {or
5036       --      [GUARD]
5037       --        SELECT_ALTERNATIVE}
5038       --    [else
5039       --      SEQUENCE_OF_STATEMENTS]
5040       --    end select;
5041
5042       --  Gigi restriction: This node never appears
5043
5044       --  Note: the guard expression, if present, appears in the node for
5045       --  the select alternative.
5046
5047       --  N_Selective_Accept
5048       --  Sloc points to SELECT
5049       --  Select_Alternatives (List1)
5050       --  Else_Statements (List4) (set to No_List if no else part)
5051
5052       ------------------
5053       -- 9.7.1  Guard --
5054       ------------------
5055
5056       --  GUARD ::= when CONDITION =>
5057
5058       --  As noted above, the CONDITION that is part of a GUARD is included
5059       --  in the node for the select alernative for convenience.
5060
5061       -------------------------------
5062       -- 9.7.1  Select Alternative --
5063       -------------------------------
5064
5065       --  SELECT_ALTERNATIVE ::=
5066       --    ACCEPT_ALTERNATIVE
5067       --  | DELAY_ALTERNATIVE
5068       --  | TERMINATE_ALTERNATIVE
5069
5070       -------------------------------
5071       -- 9.7.1  Accept Alternative --
5072       -------------------------------
5073
5074       --  ACCEPT_ALTERNATIVE ::=
5075       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5076
5077       --  Gigi restriction: This node never appears
5078
5079       --  N_Accept_Alternative
5080       --  Sloc points to ACCEPT
5081       --  Accept_Statement (Node2)
5082       --  Condition (Node1) from the guard (set to Empty if no guard present)
5083       --  Statements (List3) (set to Empty_List if no statements)
5084       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5085       --  Accept_Handler_Records (List5-Sem)
5086
5087       ------------------------------
5088       -- 9.7.1  Delay Alternative --
5089       ------------------------------
5090
5091       --  DELAY_ALTERNATIVE ::=
5092       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5093
5094       --  Gigi restriction: This node never appears
5095
5096       --  N_Delay_Alternative
5097       --  Sloc points to DELAY
5098       --  Delay_Statement (Node2)
5099       --  Condition (Node1) from the guard (set to Empty if no guard present)
5100       --  Statements (List3) (set to Empty_List if no statements)
5101       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5102
5103       ----------------------------------
5104       -- 9.7.1  Terminate Alternative --
5105       ----------------------------------
5106
5107       --  TERMINATE_ALTERNATIVE ::= terminate;
5108
5109       --  Gigi restriction: This node never appears
5110
5111       --  N_Terminate_Alternative
5112       --  Sloc points to TERMINATE
5113       --  Condition (Node1) from the guard (set to Empty if no guard present)
5114       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5115       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5116
5117       -----------------------------
5118       -- 9.7.2  Timed Entry Call --
5119       -----------------------------
5120
5121       --  TIMED_ENTRY_CALL ::=
5122       --    select
5123       --      ENTRY_CALL_ALTERNATIVE
5124       --    or
5125       --      DELAY_ALTERNATIVE
5126       --    end select;
5127
5128       --  Gigi restriction: This node never appears
5129
5130       --  N_Timed_Entry_Call
5131       --  Sloc points to SELECT
5132       --  Entry_Call_Alternative (Node1)
5133       --  Delay_Alternative (Node4)
5134
5135       -----------------------------------
5136       -- 9.7.2  Entry Call Alternative --
5137       -----------------------------------
5138
5139       --  ENTRY_CALL_ALTERNATIVE ::=
5140       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5141
5142       --  PROCEDURE_OR_ENTRY_CALL ::=
5143       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5144
5145       --  Gigi restriction: This node never appears
5146
5147       --  N_Entry_Call_Alternative
5148       --  Sloc points to first token of entry call statement
5149       --  Entry_Call_Statement (Node1)
5150       --  Statements (List3) (set to Empty_List if no statements)
5151       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5152
5153       -----------------------------------
5154       -- 9.7.3  Conditional Entry Call --
5155       -----------------------------------
5156
5157       --  CONDITIONAL_ENTRY_CALL ::=
5158       --    select
5159       --      ENTRY_CALL_ALTERNATIVE
5160       --    else
5161       --      SEQUENCE_OF_STATEMENTS
5162       --    end select;
5163
5164       --  Gigi restriction: This node never appears
5165
5166       --  N_Conditional_Entry_Call
5167       --  Sloc points to SELECT
5168       --  Entry_Call_Alternative (Node1)
5169       --  Else_Statements (List4)
5170
5171       --------------------------------
5172       -- 9.7.4  Asynchronous Select --
5173       --------------------------------
5174
5175       --  ASYNCHRONOUS_SELECT ::=
5176       --    select
5177       --      TRIGGERING_ALTERNATIVE
5178       --    then abort
5179       --      ABORTABLE_PART
5180       --    end select;
5181
5182       --  Note: asynchronous select is not permitted in Ada 83 mode
5183
5184       --  Gigi restriction: This node never appears
5185
5186       --  N_Asynchronous_Select
5187       --  Sloc points to SELECT
5188       --  Triggering_Alternative (Node1)
5189       --  Abortable_Part (Node2)
5190
5191       -----------------------------------
5192       -- 9.7.4  Triggering Alternative --
5193       -----------------------------------
5194
5195       --  TRIGGERING_ALTERNATIVE ::=
5196       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5197
5198       --  Gigi restriction: This node never appears
5199
5200       --  N_Triggering_Alternative
5201       --  Sloc points to first token of triggering statement
5202       --  Triggering_Statement (Node1)
5203       --  Statements (List3) (set to Empty_List if no statements)
5204       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5205
5206       ---------------------------------
5207       -- 9.7.4  Triggering Statement --
5208       ---------------------------------
5209
5210       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5211
5212       ---------------------------
5213       -- 9.7.4  Abortable Part --
5214       ---------------------------
5215
5216       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5217
5218       --  Gigi restriction: This node never appears
5219
5220       --  N_Abortable_Part
5221       --  Sloc points to ABORT
5222       --  Statements (List3)
5223
5224       --------------------------
5225       -- 9.8  Abort Statement --
5226       --------------------------
5227
5228       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5229
5230       --  Gigi restriction: This node never appears
5231
5232       --  N_Abort_Statement
5233       --  Sloc points to ABORT
5234       --  Names (List2)
5235
5236       -------------------------
5237       -- 10.1.1  Compilation --
5238       -------------------------
5239
5240       --  COMPILATION ::= {COMPILATION_UNIT}
5241
5242       --  There is no explicit node in the tree for a compilation, since in
5243       --  general the compiler is processing only a single compilation unit
5244       --  at a time. It is possible to parse multiple units in syntax check
5245       --  only mode, but they the trees are discarded in any case.
5246
5247       ------------------------------
5248       -- 10.1.1  Compilation Unit --
5249       ------------------------------
5250
5251       --  COMPILATION_UNIT ::=
5252       --    CONTEXT_CLAUSE LIBRARY_ITEM
5253       --  | CONTEXT_CLAUSE SUBUNIT
5254
5255       --  The N_Compilation_Unit node itself respresents the above syntax.
5256       --  However, there are two additional items not reflected in the above
5257       --  syntax. First we have the global declarations that are added by the
5258       --  code generator. These are outer level declarations (so they cannot
5259       --  be represented as being inside the units). An example is the wrapper
5260       --  subprograms that are created to do ABE checking. As always a list of
5261       --  declarations can contain actions as well (i.e. statements), and such
5262       --  statements are executed as part of the elaboration of the unit. Note
5263       --  that all such declarations are elaborated before the library unit.
5264
5265       --  Similarly, certain actions need to be elaborated at the completion
5266       --  of elaboration of the library unit (notably the statement that sets
5267       --  the Boolean flag indicating that elaboration is complete).
5268
5269       --  The third item not reflected in the syntax is pragmas that appear
5270       --  after the compilation unit. As always pragmas are a problem since
5271       --  they are not part of the formal syntax, but can be stuck into the
5272       --  source following a set of ad hoc rules, and we have to find an ad
5273       --  hoc way of sticking them into the tree. For pragmas that appear
5274       --  before the library unit, we just consider them to be part of the
5275       --  context clause, and pragmas can appear in the Context_Items list
5276       --  of the compilation unit. However, pragmas can also appear after
5277       --  the library item.
5278
5279       --  To deal with all these problems, we create an auxiliary node for
5280       --  a compilation unit, referenced from the N_Compilation_Unit node
5281       --  that contains these three items.
5282
5283       --  N_Compilation_Unit
5284       --  Sloc points to first token of defining unit name
5285       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5286       --  Context_Items (List1) context items and pragmas preceding unit
5287       --  Private_Present (Flag15) set if library unit has private keyword
5288       --  Unit (Node2) library item or subunit
5289       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5290       --  Has_No_Elaboration_Code (Flag17-Sem)
5291       --  Body_Required (Flag13-Sem) set for spec if body is required
5292       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5293       --  First_Inlined_Subprogram (Node3-Sem)
5294
5295       --  N_Compilation_Unit_Aux
5296       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5297       --  Declarations (List2) (set to No_List if no global declarations)
5298       --  Actions (List1) (set to No_List if no actions)
5299       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5300       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5301
5302       --------------------------
5303       -- 10.1.1  Library Item --
5304       --------------------------
5305
5306       --  LIBRARY_ITEM ::=
5307       --    [private] LIBRARY_UNIT_DECLARATION
5308       --  | LIBRARY_UNIT_BODY
5309       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5310
5311       --  Note: PRIVATE is not allowed in Ada 83 mode
5312
5313       --  There is no explicit node in the tree for library item, instead
5314       --  the declaration or body, and the flag for private if present,
5315       --  appear in the N_Compilation_Unit clause.
5316
5317       ----------------------------------------
5318       -- 10.1.1  Library Unit Declararation --
5319       ----------------------------------------
5320
5321       --  LIBRARY_UNIT_DECLARATION ::=
5322       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5323       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5324
5325       -------------------------------------------------
5326       -- 10.1.1  Library Unit Renaming Declararation --
5327       -------------------------------------------------
5328
5329       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5330       --    PACKAGE_RENAMING_DECLARATION
5331       --  | GENERIC_RENAMING_DECLARATION
5332       --  | SUBPROGRAM_RENAMING_DECLARATION
5333
5334       -------------------------------
5335       -- 10.1.1  Library unit body --
5336       -------------------------------
5337
5338       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5339
5340       ------------------------------
5341       -- 10.1.1  Parent Unit Name --
5342       ------------------------------
5343
5344       --  PARENT_UNIT_NAME ::= NAME
5345
5346       ----------------------------
5347       -- 10.1.2  Context clause --
5348       ----------------------------
5349
5350       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5351
5352       --  The context clause can include pragmas, and any pragmas that appear
5353       --  before the context clause proper (i.e. all configuration pragmas,
5354       --  also appear at the front of this list).
5355
5356       --------------------------
5357       -- 10.1.2  Context_Item --
5358       --------------------------
5359
5360       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5361
5362       -------------------------
5363       -- 10.1.2  With clause --
5364       -------------------------
5365
5366       --  WITH_CLAUSE ::=
5367       --    with library_unit_NAME {,library_unit_NAME};
5368
5369       --  A separate With clause is built for each name, so that we have
5370       --  a Corresponding_Spec field for each with'ed spec. The flags
5371       --  First_Name and Last_Name are used to reconstruct the exact
5372       --  source form. When a list of names appears in one with clause,
5373       --  the first name in the list has First_Name set, and the last
5374       --  has Last_Name set. If the with clause has only one name, then
5375       --  both of the flags First_Name and Last_Name are set in this name.
5376
5377       --  Note: in the case of implicit with's that are installed by the
5378       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5379       --  set to Standard_Location, but it is incorrect to test the Sloc
5380       --  to find out if a with clause is implicit, test the flag instead.
5381
5382       --  N_With_Clause
5383       --  Sloc points to first token of library unit name
5384       --  Name (Node2)
5385       --  Library_Unit (Node4-Sem)
5386       --  Corresponding_Spec (Node5-Sem)
5387       --  First_Name (Flag5) (set to True if first name or only one name)
5388       --  Last_Name (Flag6) (set to True if last name or only one name)
5389       --  Context_Installed (Flag13-Sem)
5390       --  Elaborate_Present (Flag4-Sem)
5391       --  Elaborate_All_Present (Flag14-Sem)
5392       --  Elaborate_All_Desirable (Flag9-Sem)
5393       --  Elaborate_Desirable (Flag11-Sem)
5394       --  Private_Present (Flag15) set if with_clause has private keyword
5395       --  Implicit_With (Flag16-Sem)
5396       --  Limited_Present (Flag17)  set if LIMITED is present
5397       --  Limited_View_Installed (Flag18-Sem)
5398       --  Unreferenced_In_Spec (Flag7-Sem)
5399       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5400
5401       --  Note: Limited_Present and Limited_View_Installed give support to
5402       --        Ada 2005 (AI-50217).
5403       --  Similarly, Private_Present gives support to AI-50262.
5404
5405       ----------------------
5406       -- With_Type clause --
5407       ----------------------
5408
5409       --  This is a GNAT extension, used to implement mutually recursive
5410       --  types declared in different packages.
5411       --  Note: this is now obsolete. The functionality of this construct
5412       --  is now implemented by the Ada 2005 Limited_with_Clause.
5413
5414       ---------------------
5415       -- 10.2  Body stub --
5416       ---------------------
5417
5418       --  BODY_STUB ::=
5419       --    SUBPROGRAM_BODY_STUB
5420       --  | PACKAGE_BODY_STUB
5421       --  | TASK_BODY_STUB
5422       --  | PROTECTED_BODY_STUB
5423
5424       ----------------------------------
5425       -- 10.1.3  Subprogram Body Stub --
5426       ----------------------------------
5427
5428       --  SUBPROGRAM_BODY_STUB ::=
5429       --    SUBPROGRAM_SPECIFICATION is separate;
5430
5431       --  N_Subprogram_Body_Stub
5432       --  Sloc points to FUNCTION or PROCEDURE
5433       --  Specification (Node1)
5434       --  Library_Unit (Node4-Sem) points to the subunit
5435       --  Corresponding_Body (Node5-Sem)
5436
5437       -------------------------------
5438       -- 10.1.3  Package Body Stub --
5439       -------------------------------
5440
5441       --  PACKAGE_BODY_STUB ::=
5442       --    package body DEFINING_IDENTIFIER is separate;
5443
5444       --  N_Package_Body_Stub
5445       --  Sloc points to PACKAGE
5446       --  Defining_Identifier (Node1)
5447       --  Library_Unit (Node4-Sem) points to the subunit
5448       --  Corresponding_Body (Node5-Sem)
5449
5450       ----------------------------
5451       -- 10.1.3  Task Body Stub --
5452       ----------------------------
5453
5454       --  TASK_BODY_STUB ::=
5455       --    task body DEFINING_IDENTIFIER is separate;
5456
5457       --  N_Task_Body_Stub
5458       --  Sloc points to TASK
5459       --  Defining_Identifier (Node1)
5460       --  Library_Unit (Node4-Sem) points to the subunit
5461       --  Corresponding_Body (Node5-Sem)
5462
5463       ---------------------------------
5464       -- 10.1.3  Protected Body Stub --
5465       ---------------------------------
5466
5467       --  PROTECTED_BODY_STUB ::=
5468       --    protected body DEFINING_IDENTIFIER is separate;
5469
5470       --  Note: protected body stubs are not allowed in Ada 83 mode
5471
5472       --  N_Protected_Body_Stub
5473       --  Sloc points to PROTECTED
5474       --  Defining_Identifier (Node1)
5475       --  Library_Unit (Node4-Sem) points to the subunit
5476       --  Corresponding_Body (Node5-Sem)
5477
5478       ---------------------
5479       -- 10.1.3  Subunit --
5480       ---------------------
5481
5482       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5483
5484       --  N_Subunit
5485       --  Sloc points to SEPARATE
5486       --  Name (Node2) is the name of the parent unit
5487       --  Proper_Body (Node1) is the subunit body
5488       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5489
5490       ---------------------------------
5491       -- 11.1  Exception Declaration --
5492       ---------------------------------
5493
5494       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5495
5496       --  For consistency with object declarations etc, the parser converts
5497       --  the case of multiple identifiers being declared to a series of
5498       --  declarations in which the expression is copied, using the More_Ids
5499       --  and Prev_Ids flags to remember the souce form as described in the
5500       --  section on "Handling of Defining Identifier Lists".
5501
5502       --  N_Exception_Declaration
5503       --  Sloc points to EXCEPTION
5504       --  Defining_Identifier (Node1)
5505       --  Expression (Node3-Sem)
5506       --  Renaming_Exception (Node2-Sem)
5507       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5508       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5509
5510       ------------------------------------------
5511       -- 11.2  Handled Sequence Of Statements --
5512       ------------------------------------------
5513
5514       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5515       --      SEQUENCE_OF_STATEMENTS
5516       --    [exception
5517       --      EXCEPTION_HANDLER
5518       --      {EXCEPTION_HANDLER}]
5519       --    [at end
5520       --      cleanup_procedure_call (param, param, param, ...);]
5521
5522       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5523       --  used only internally currently, but is considered to be syntactic.
5524       --  At the moment, the only cleanup action allowed is a single call to
5525       --  a parameterless procedure, and the Identifier field of the node is
5526       --  the procedure to be called. Also there is a current restriction
5527       --  that exception handles and a cleanup cannot be present in the same
5528       --  frame, so at least one of Exception_Handlers or the Identifier must
5529       --  be missing.
5530
5531       --  Actually, more accurately, this restriction applies to the original
5532       --  source program. In the expanded tree, if the At_End_Proc field is
5533       --  present, then there will also be an exception handler of the form:
5534
5535       --     when all others =>
5536       --        cleanup;
5537       --        raise;
5538
5539       --  where cleanup is the procedure to be generated. The reason we do
5540       --  this is so that the front end can handle the necessary entries in
5541       --  the exception tables, and other exception handler actions required
5542       --  as part of the normal handling for exception handlers.
5543
5544       --  The AT END cleanup handler protects only the sequence of statements
5545       --  (not the associated declarations of the parent), just like exception
5546       --  handlers. The big difference is that the cleanup procedure is called
5547       --  on either a normal or an abnormal exit from the statement sequence.
5548
5549       --  Note: the list of Exception_Handlers can contain pragmas as well
5550       --  as actual handlers. In practice these pragmas can only occur at
5551       --  the start of the list, since any pragmas occurring later on will
5552       --  be included in the statement list of the corresponding handler.
5553
5554       --  Note: although in the Ada syntax, the sequence of statements in
5555       --  a handled sequence of statements can only contain statements, we
5556       --  allow free mixing of declarations and statements in the resulting
5557       --  expanded tree. This is for example used to deal with the case of
5558       --  a cleanup procedure that must handle declarations as well as the
5559       --  statements of a block.
5560
5561       --  N_Handled_Sequence_Of_Statements
5562       --  Sloc points to first token of first statement
5563       --  Statements (List3)
5564       --  End_Label (Node4) (set to Empty if expander generated)
5565       --  Exception_Handlers (List5) (set to No_List if none present)
5566       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5567       --  First_Real_Statement (Node2-Sem)
5568       --  Zero_Cost_Handling (Flag5-Sem)
5569
5570       --  Note: the parent always contains a Declarations field which contains
5571       --  declarations associated with the handled sequence of statements. This
5572       --  is true even in the case of an accept statement (see description of
5573       --  the N_Accept_Statement node).
5574
5575       --  End_Label refers to the containing construct
5576
5577       -----------------------------
5578       -- 11.2  Exception Handler --
5579       -----------------------------
5580
5581       --  EXCEPTION_HANDLER ::=
5582       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5583       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5584       --        SEQUENCE_OF_STATEMENTS
5585
5586       --  Note: choice parameter specification is not allowed in Ada 83 mode
5587
5588       --  N_Exception_Handler
5589       --  Sloc points to WHEN
5590       --  Choice_Parameter (Node2) (set to Empty if not present)
5591       --  Exception_Choices (List4)
5592       --  Statements (List3)
5593       --  Exception_Label (Node5-Sem) (set to Empty of not present)
5594       --  Zero_Cost_Handling (Flag5-Sem)
5595       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5596       --  Local_Raise_Not_OK (Flag7-Sem)
5597       --  Has_Local_Raise (Flag8-Sem)
5598
5599       ------------------------------------------
5600       -- 11.2  Choice parameter specification --
5601       ------------------------------------------
5602
5603       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5604
5605       ----------------------------
5606       -- 11.2  Exception Choice --
5607       ----------------------------
5608
5609       --  EXCEPTION_CHOICE ::= exception_NAME | others
5610
5611       --  Except in the case of OTHERS, no explicit node appears in the tree
5612       --  for exception choice. Instead the exception name appears directly.
5613       --  An OTHERS choice is represented by a N_Others_Choice node (see
5614       --  section 3.8.1.
5615
5616       --  Note: for the exception choice created for an at end handler, the
5617       --  exception choice is an N_Others_Choice node with All_Others set.
5618
5619       ---------------------------
5620       -- 11.3  Raise Statement --
5621       ---------------------------
5622
5623       --  RAISE_STATEMENT ::= raise [exception_NAME];
5624
5625       --  In Ada 2005, we have
5626
5627       --  RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5628
5629       --  N_Raise_Statement
5630       --  Sloc points to RAISE
5631       --  Name (Node2) (set to Empty if no exception name present)
5632       --  Expression (Node3) (set to Empty if no expression present)
5633
5634       -------------------------------
5635       -- 12.1  Generic Declaration --
5636       -------------------------------
5637
5638       --  GENERIC_DECLARATION ::=
5639       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5640
5641       ------------------------------------------
5642       -- 12.1  Generic Subprogram Declaration --
5643       ------------------------------------------
5644
5645       --  GENERIC_SUBPROGRAM_DECLARATION ::=
5646       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5647
5648       --  Note: Generic_Formal_Declarations can include pragmas
5649
5650       --  N_Generic_Subprogram_Declaration
5651       --  Sloc points to GENERIC
5652       --  Specification (Node1) subprogram specification
5653       --  Corresponding_Body (Node5-Sem)
5654       --  Generic_Formal_Declarations (List2) from generic formal part
5655       --  Parent_Spec (Node4-Sem)
5656
5657       ---------------------------------------
5658       -- 12.1  Generic Package Declaration --
5659       ---------------------------------------
5660
5661       --  GENERIC_PACKAGE_DECLARATION ::=
5662       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5663
5664       --  Note: when we do generics right, the Activation_Chain_Entity entry
5665       --  for this node can be removed (since the expander won't see generic
5666       --  units any more)???.
5667
5668       --  Note: Generic_Formal_Declarations can include pragmas
5669
5670       --  N_Generic_Package_Declaration
5671       --  Sloc points to GENERIC
5672       --  Specification (Node1) package specification
5673       --  Corresponding_Body (Node5-Sem)
5674       --  Generic_Formal_Declarations (List2) from generic formal part
5675       --  Parent_Spec (Node4-Sem)
5676       --  Activation_Chain_Entity (Node3-Sem)
5677
5678       -------------------------------
5679       -- 12.1  Generic Formal Part --
5680       -------------------------------
5681
5682       --  GENERIC_FORMAL_PART ::=
5683       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5684
5685       ------------------------------------------------
5686       -- 12.1  Generic Formal Parameter Declaration --
5687       ------------------------------------------------
5688
5689       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5690       --    FORMAL_OBJECT_DECLARATION
5691       --  | FORMAL_TYPE_DECLARATION
5692       --  | FORMAL_SUBPROGRAM_DECLARATION
5693       --  | FORMAL_PACKAGE_DECLARATION
5694
5695       ---------------------------------
5696       -- 12.3  Generic Instantiation --
5697       ---------------------------------
5698
5699       --  GENERIC_INSTANTIATION ::=
5700       --    package DEFINING_PROGRAM_UNIT_NAME is
5701       --      new generic_package_NAME [GENERIC_ACTUAL_PART];
5702       --  | [[not] overriding]
5703       --    procedure DEFINING_PROGRAM_UNIT_NAME is
5704       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5705       --  | [[not] overriding]
5706       --    function DEFINING_DESIGNATOR is
5707       --      new generic_function_NAME [GENERIC_ACTUAL_PART];
5708
5709       --  N_Package_Instantiation
5710       --  Sloc points to PACKAGE
5711       --  Defining_Unit_Name (Node1)
5712       --  Name (Node2)
5713       --  Generic_Associations (List3) (set to No_List if no
5714       --   generic actual part)
5715       --  Parent_Spec (Node4-Sem)
5716       --  Instance_Spec (Node5-Sem)
5717       --  ABE_Is_Certain (Flag18-Sem)
5718
5719       --  N_Procedure_Instantiation
5720       --  Sloc points to PROCEDURE
5721       --  Defining_Unit_Name (Node1)
5722       --  Name (Node2)
5723       --  Parent_Spec (Node4-Sem)
5724       --  Generic_Associations (List3) (set to No_List if no
5725       --   generic actual part)
5726       --  Instance_Spec (Node5-Sem)
5727       --  Must_Override (Flag14) set if overriding indicator present
5728       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5729       --  ABE_Is_Certain (Flag18-Sem)
5730
5731       --  N_Function_Instantiation
5732       --  Sloc points to FUNCTION
5733       --  Defining_Unit_Name (Node1)
5734       --  Name (Node2)
5735       --  Generic_Associations (List3) (set to No_List if no
5736       --   generic actual part)
5737       --  Parent_Spec (Node4-Sem)
5738       --  Instance_Spec (Node5-Sem)
5739       --  Must_Override (Flag14) set if overriding indicator present
5740       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5741       --  ABE_Is_Certain (Flag18-Sem)
5742
5743       --  Note: overriding indicator is an Ada 2005 feature
5744
5745       ------------------------------
5746       -- 12.3 Generic Actual Part --
5747       ------------------------------
5748
5749       --  GENERIC_ACTUAL_PART ::=
5750       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5751
5752       -------------------------------
5753       -- 12.3  Generic Association --
5754       -------------------------------
5755
5756       --  GENERIC_ASSOCIATION ::=
5757       --    [generic_formal_parameter_SELECTOR_NAME =>]
5758
5759       --  Note: unlike the procedure call case, a generic association node
5760       --  is generated for every association, even if no formal is present.
5761       --  In this case the parser will leave the Selector_Name field set
5762       --  to Empty, to be filled in later by the semantic pass.
5763
5764       --  In Ada 2005, a formal may be associated with a box, if the
5765       --  association is part of the list of actuals for a formal package.
5766       --  If the association is given by  OTHERS => <>, the association is
5767       --  an N_Others_Choice.
5768
5769       --  N_Generic_Association
5770       --  Sloc points to first token of generic association
5771       --  Selector_Name (Node2) (set to Empty if no formal
5772       --   parameter selector name)
5773       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5774       --  Box_Present (Flag15) (for formal_package associations with a box)
5775
5776       ---------------------------------------------
5777       -- 12.3  Explicit Generic Actual Parameter --
5778       ---------------------------------------------
5779
5780       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5781       --    EXPRESSION      | variable_NAME   | subprogram_NAME
5782       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
5783
5784       -------------------------------------
5785       -- 12.4  Formal Object Declaration --
5786       -------------------------------------
5787
5788       --  FORMAL_OBJECT_DECLARATION ::=
5789       --    DEFINING_IDENTIFIER_LIST :
5790       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5791       --  | DEFINING_IDENTIFIER_LIST :
5792       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5793
5794       --  Although the syntax allows multiple identifiers in the list, the
5795       --  semantics is as though successive declarations were given with
5796       --  identical type definition and expression components. To simplify
5797       --  semantic processing, the parser represents a multiple declaration
5798       --  case as a sequence of single declarations, using the More_Ids and
5799       --  Prev_Ids flags to preserve the original source form as described
5800       --  in the section on "Handling of Defining Identifier Lists".
5801
5802       --  N_Formal_Object_Declaration
5803       --  Sloc points to first identifier
5804       --  Defining_Identifier (Node1)
5805       --  In_Present (Flag15)
5806       --  Out_Present (Flag17)
5807       --  Null_Exclusion_Present (Flag11) (set to False if not present)
5808       --  Subtype_Mark (Node4) (set to Empty if not present)
5809       --  Access_Definition (Node3) (set to Empty if not present)
5810       --  Default_Expression (Node5) (set to Empty if no default expression)
5811       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5812       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5813
5814       -----------------------------------
5815       -- 12.5  Formal Type Declaration --
5816       -----------------------------------
5817
5818       --  FORMAL_TYPE_DECLARATION ::=
5819       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5820       --      is FORMAL_TYPE_DEFINITION;
5821
5822       --  N_Formal_Type_Declaration
5823       --  Sloc points to TYPE
5824       --  Defining_Identifier (Node1)
5825       --  Formal_Type_Definition (Node3)
5826       --  Discriminant_Specifications (List4) (set to No_List if no
5827       --   discriminant part)
5828       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5829
5830       ----------------------------------
5831       -- 12.5  Formal type definition --
5832       ----------------------------------
5833
5834       --  FORMAL_TYPE_DEFINITION ::=
5835       --    FORMAL_PRIVATE_TYPE_DEFINITION
5836       --  | FORMAL_DERIVED_TYPE_DEFINITION
5837       --  | FORMAL_DISCRETE_TYPE_DEFINITION
5838       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5839       --  | FORMAL_MODULAR_TYPE_DEFINITION
5840       --  | FORMAL_FLOATING_POINT_DEFINITION
5841       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5842       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5843       --  | FORMAL_ARRAY_TYPE_DEFINITION
5844       --  | FORMAL_ACCESS_TYPE_DEFINITION
5845       --  | FORMAL_INTERFACE_TYPE_DEFINITION
5846
5847       ---------------------------------------------
5848       -- 12.5.1  Formal Private Type Definition --
5849       ---------------------------------------------
5850
5851       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
5852       --    [[abstract] tagged] [limited] private
5853
5854       --  Note: TAGGED is not allowed in Ada 83 mode
5855
5856       --  N_Formal_Private_Type_Definition
5857       --  Sloc points to PRIVATE
5858       --  Abstract_Present (Flag4)
5859       --  Tagged_Present (Flag15)
5860       --  Limited_Present (Flag17)
5861
5862       --------------------------------------------
5863       -- 12.5.1  Formal Derived Type Definition --
5864       --------------------------------------------
5865
5866       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
5867       --    [abstract] [limited | synchronized]
5868       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5869       --  Note: this construct is not allowed in Ada 83 mode
5870
5871       --  N_Formal_Derived_Type_Definition
5872       --  Sloc points to NEW
5873       --  Subtype_Mark (Node4)
5874       --  Private_Present (Flag15)
5875       --  Abstract_Present (Flag4)
5876       --  Limited_Present (Flag17)
5877       --  Synchronized_Present (Flag7)
5878       --  Interface_List (List2) (set to No_List if none)
5879
5880       ---------------------------------------------
5881       -- 12.5.2  Formal Discrete Type Definition --
5882       ---------------------------------------------
5883
5884       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5885
5886       --  N_Formal_Discrete_Type_Definition
5887       --  Sloc points to (
5888
5889       ---------------------------------------------------
5890       -- 12.5.2  Formal Signed Integer Type Definition --
5891       ---------------------------------------------------
5892
5893       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5894
5895       --  N_Formal_Signed_Integer_Type_Definition
5896       --  Sloc points to RANGE
5897
5898       --------------------------------------------
5899       -- 12.5.2  Formal Modular Type Definition --
5900       --------------------------------------------
5901
5902       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5903
5904       --  N_Formal_Modular_Type_Definition
5905       --  Sloc points to MOD
5906
5907       ----------------------------------------------
5908       -- 12.5.2  Formal Floating Point Definition --
5909       ----------------------------------------------
5910
5911       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5912
5913       --  N_Formal_Floating_Point_Definition
5914       --  Sloc points to DIGITS
5915
5916       ----------------------------------------------------
5917       -- 12.5.2  Formal Ordinary Fixed Point Definition --
5918       ----------------------------------------------------
5919
5920       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5921
5922       --  N_Formal_Ordinary_Fixed_Point_Definition
5923       --  Sloc points to DELTA
5924
5925       ---------------------------------------------------
5926       -- 12.5.2  Formal Decimal Fixed Point Definition --
5927       ---------------------------------------------------
5928
5929       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5930
5931       --  Note: formal decimal fixed point definition not allowed in Ada 83
5932
5933       --  N_Formal_Decimal_Fixed_Point_Definition
5934       --  Sloc points to DELTA
5935
5936       ------------------------------------------
5937       -- 12.5.3  Formal Array Type Definition --
5938       ------------------------------------------
5939
5940       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5941
5942       -------------------------------------------
5943       -- 12.5.4  Formal Access Type Definition --
5944       -------------------------------------------
5945
5946       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
5947
5948       ----------------------------------------------
5949       -- 12.5.5  Formal Interface Type Definition --
5950       ----------------------------------------------
5951
5952       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
5953
5954       -----------------------------------------
5955       -- 12.6  Formal Subprogram Declaration --
5956       -----------------------------------------
5957
5958       --  FORMAL_SUBPROGRAM_DECLARATION ::=
5959       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
5960       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
5961
5962       --------------------------------------------------
5963       -- 12.6  Formal Concrete Subprogram Declaration --
5964       --------------------------------------------------
5965
5966       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
5967       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
5968
5969       --  N_Formal_Concrete_Subprogram_Declaration
5970       --  Sloc points to WITH
5971       --  Specification (Node1)
5972       --  Default_Name (Node2) (set to Empty if no subprogram default)
5973       --  Box_Present (Flag15)
5974
5975       --  Note: if no subprogram default is present, then Name is set
5976       --  to Empty, and Box_Present is False.
5977
5978       --------------------------------------------------
5979       -- 12.6  Formal Abstract Subprogram Declaration --
5980       --------------------------------------------------
5981
5982       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
5983       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
5984
5985       --  N_Formal_Abstract_Subprogram_Declaration
5986       --  Sloc points to WITH
5987       --  Specification (Node1)
5988       --  Default_Name (Node2) (set to Empty if no subprogram default)
5989       --  Box_Present (Flag15)
5990
5991       --  Note: if no subprogram default is present, then Name is set
5992       --  to Empty, and Box_Present is False.
5993
5994       ------------------------------
5995       -- 12.6  Subprogram Default --
5996       ------------------------------
5997
5998       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
5999
6000       --  There is no separate node in the tree for a subprogram default.
6001       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6002       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6003       --  default name or box indication, as needed.
6004
6005       ------------------------
6006       -- 12.6  Default Name --
6007       ------------------------
6008
6009       --  DEFAULT_NAME ::= NAME
6010
6011       --------------------------------------
6012       -- 12.7  Formal Package Declaration --
6013       --------------------------------------
6014
6015       --  FORMAL_PACKAGE_DECLARATION ::=
6016       --    with package DEFINING_IDENTIFIER
6017       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6018
6019       --  Note: formal package declarations not allowed in Ada 83 mode
6020
6021       --  N_Formal_Package_Declaration
6022       --  Sloc points to WITH
6023       --  Defining_Identifier (Node1)
6024       --  Name (Node2)
6025       --  Generic_Associations (List3) (set to No_List if (<>) case or
6026       --   empty generic actual part)
6027       --  Box_Present (Flag15)
6028       --  Instance_Spec (Node5-Sem)
6029       --  ABE_Is_Certain (Flag18-Sem)
6030
6031       --------------------------------------
6032       -- 12.7  Formal Package Actual Part --
6033       --------------------------------------
6034
6035       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6036       --    ([OTHERS] => <>)
6037       --    | [GENERIC_ACTUAL_PART]
6038       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6039
6040       --  FORMAL_PACKAGE_ASSOCIATION ::=
6041       --   GENERIC_ASSOCIATION
6042       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6043
6044       --  There is no explicit node in the tree for a formal package actual
6045       --  part. Instead the information appears in the parent node (i.e. the
6046       --  formal package declaration node itself).
6047
6048       --  There is no explicit node for a formal package association. All of
6049       --  them are represented either by a generic association, possibly with
6050       --  Box_Present, or by an N_Others_Choice.
6051
6052       ---------------------------------
6053       -- 13.1  Representation clause --
6054       ---------------------------------
6055
6056       --  REPRESENTATION_CLAUSE ::=
6057       --    ATTRIBUTE_DEFINITION_CLAUSE
6058       --  | ENUMERATION_REPRESENTATION_CLAUSE
6059       --  | RECORD_REPRESENTATION_CLAUSE
6060       --  | AT_CLAUSE
6061
6062       ----------------------
6063       -- 13.1  Local Name --
6064       ----------------------
6065
6066       --  LOCAL_NAME :=
6067       --    DIRECT_NAME
6068       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6069       --  | library_unit_NAME
6070
6071       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6072       --  as an attribute reference, which has essentially the same form.
6073
6074       ---------------------------------------
6075       -- 13.3  Attribute definition clause --
6076       ---------------------------------------
6077
6078       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6079       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6080       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6081
6082       --  In Ada 83, the expression must be a simple expression and the
6083       --  local name must be a direct name.
6084
6085       --  Note: the only attribute definition clause that is processed by
6086       --  gigi is an address clause. For all other cases, the information
6087       --  is extracted by the front end and either results in setting entity
6088       --  information, e.g. Esize for the Size clause, or in appropriate
6089       --  expansion actions (e.g. in the case of Storage_Size).
6090
6091       --  For an address clause, Gigi constructs the appropriate addressing
6092       --  code. It also ensures that no aliasing optimizations are made
6093       --  for the object for which the address clause appears.
6094
6095       --  Note: for an address clause used to achieve an overlay:
6096
6097       --    A : Integer;
6098       --    B : Integer;
6099       --    for B'Address use A'Address;
6100
6101       --  the above rule means that Gigi will ensure that no optimizations
6102       --  will be made for B that would violate the implementation advice
6103       --  of RM 13.3(19). However, this advice applies only to B and not
6104       --  to A, which seems unfortunate. The GNAT front end will mark the
6105       --  object A as volatile to also prevent unwanted optimization
6106       --  assumptions based on no aliasing being made for B.
6107
6108       --  N_Attribute_Definition_Clause
6109       --  Sloc points to FOR
6110       --  Name (Node2) the local name
6111       --  Chars (Name1) the identifier name from the attribute designator
6112       --  Expression (Node3) the expression or name
6113       --  Entity (Node4-Sem)
6114       --  Next_Rep_Item (Node5-Sem)
6115       --  From_At_Mod (Flag4-Sem)
6116       --  Check_Address_Alignment (Flag11-Sem)
6117
6118       ---------------------------------------------
6119       -- 13.4  Enumeration representation clause --
6120       ---------------------------------------------
6121
6122       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6123       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6124
6125       --  In Ada 83, the name must be a direct name
6126
6127       --  N_Enumeration_Representation_Clause
6128       --  Sloc points to FOR
6129       --  Identifier (Node1) direct name
6130       --  Array_Aggregate (Node3)
6131       --  Next_Rep_Item (Node5-Sem)
6132
6133       ---------------------------------
6134       -- 13.4  Enumeration aggregate --
6135       ---------------------------------
6136
6137       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6138
6139       ------------------------------------------
6140       -- 13.5.1  Record representation clause --
6141       ------------------------------------------
6142
6143       --  RECORD_REPRESENTATION_CLAUSE ::=
6144       --    for first_subtype_LOCAL_NAME use
6145       --      record [MOD_CLAUSE]
6146       --        {COMPONENT_CLAUSE}
6147       --      end record;
6148
6149       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6150       --  replaced by a corresponding Alignment attribute definition clause).
6151
6152       --  Note: Component_Clauses can include pragmas
6153
6154       --  N_Record_Representation_Clause
6155       --  Sloc points to FOR
6156       --  Identifier (Node1) direct name
6157       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6158       --  Component_Clauses (List3)
6159       --  Next_Rep_Item (Node5-Sem)
6160
6161       ------------------------------
6162       -- 13.5.1  Component clause --
6163       ------------------------------
6164
6165       --  COMPONENT_CLAUSE ::=
6166       --    component_LOCAL_NAME at POSITION
6167       --      range FIRST_BIT .. LAST_BIT;
6168
6169       --  N_Component_Clause
6170       --  Sloc points to AT
6171       --  Component_Name (Node1) points to Name or Attribute_Reference
6172       --  Position (Node2)
6173       --  First_Bit (Node3)
6174       --  Last_Bit (Node4)
6175
6176       ----------------------
6177       -- 13.5.1  Position --
6178       ----------------------
6179
6180       --  POSITION ::= static_EXPRESSION
6181
6182       -----------------------
6183       -- 13.5.1  First_Bit --
6184       -----------------------
6185
6186       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6187
6188       ----------------------
6189       -- 13.5.1  Last_Bit --
6190       ----------------------
6191
6192       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6193
6194       --------------------------
6195       -- 13.8  Code statement --
6196       --------------------------
6197
6198       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6199
6200       --  Note: in GNAT, the qualified expression has the form
6201
6202       --    Asm_Insn'(Asm (...));
6203
6204       --  See package System.Machine_Code in file s-maccod.ads for details on
6205       --  the allowed parameters to Asm. There are two ways this node can
6206       --  arise, as a code statement, in which case the expression is the
6207       --  qualified expression, or as a result of the expansion of an intrinsic
6208       --  call to the Asm or Asm_Input procedure.
6209
6210       --  N_Code_Statement
6211       --  Sloc points to first token of the expression
6212       --  Expression (Node3)
6213
6214       --  Note: package Exp_Code contains an abstract functional interface
6215       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
6216
6217       ------------------------
6218       -- 13.12  Restriction --
6219       ------------------------
6220
6221       --  RESTRICTION ::=
6222       --    restriction_IDENTIFIER
6223       --  | restriction_parameter_IDENTIFIER => EXPRESSION
6224
6225       --  There is no explicit node for restrictions. Instead the restriction
6226       --  appears in normal pragma syntax as a pragma argument association,
6227       --  which has the same syntactic form.
6228
6229       --------------------------
6230       -- B.2  Shift Operators --
6231       --------------------------
6232
6233       --  Calls to the intrinsic shift functions are converted to one of
6234       --  the following shift nodes, which have the form of normal binary
6235       --  operator names. Note that for a given shift operation, one node
6236       --  covers all possible types, as for normal operators.
6237
6238       --  Note: it is perfectly permissible for the expander to generate
6239       --  shift operation nodes directly, in which case they will be analyzed
6240       --  and parsed in the usual manner.
6241
6242       --  Sprint syntax: shift-function-name!(expr, count)
6243
6244       --  Note: the Left_Opnd field holds the first argument (the value to
6245       --  be shifted). The Right_Opnd field holds the second argument (the
6246       --  shift count). The Chars field is the name of the intrinsic function.
6247
6248       --  N_Op_Rotate_Left
6249       --  Sloc points to the function name
6250       --  plus fields for binary operator
6251       --  plus fields for expression
6252       --  Shift_Count_OK (Flag4-Sem)
6253
6254       --  N_Op_Rotate_Right
6255       --  Sloc points to the function name
6256       --  plus fields for binary operator
6257       --  plus fields for expression
6258       --  Shift_Count_OK (Flag4-Sem)
6259
6260       --  N_Op_Shift_Left
6261       --  Sloc points to the function name
6262       --  plus fields for binary operator
6263       --  plus fields for expression
6264       --  Shift_Count_OK (Flag4-Sem)
6265
6266       --  N_Op_Shift_Right_Arithmetic
6267       --  Sloc points to the function name
6268       --  plus fields for binary operator
6269       --  plus fields for expression
6270       --  Shift_Count_OK (Flag4-Sem)
6271
6272       --  N_Op_Shift_Right
6273       --  Sloc points to the function name
6274       --  plus fields for binary operator
6275       --  plus fields for expression
6276       --  Shift_Count_OK (Flag4-Sem)
6277
6278    --------------------------
6279    -- Obsolescent Features --
6280    --------------------------
6281
6282       --  The syntax descriptions and tree nodes for obsolescent features are
6283       --  grouped together, corresponding to their location in appendix I in
6284       --  the RM. However, parsing and semantic analysis for these constructs
6285       --  is located in an appropriate chapter (see individual notes).
6286
6287       ---------------------------
6288       -- J.3  Delta Constraint --
6289       ---------------------------
6290
6291       --  Note: the parse routine for this construct is located in section
6292       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6293       --  where delta constraint logically belongs.
6294
6295       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6296
6297       --  N_Delta_Constraint
6298       --  Sloc points to DELTA
6299       --  Delta_Expression (Node3)
6300       --  Range_Constraint (Node4) (set to Empty if not present)
6301
6302       --------------------
6303       -- J.7  At Clause --
6304       --------------------
6305
6306       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6307
6308       --  Note: the parse routine for this construct is located in Par-Ch13,
6309       --  and the semantic analysis is in Sem_Ch13, where at clause logically
6310       --  belongs if it were not obsolescent.
6311
6312       --  Note: in Ada 83 the expression must be a simple expression
6313
6314       --  Gigi restriction: This node never appears, it is rewritten as an
6315       --  address attribute definition clause.
6316
6317       --  N_At_Clause
6318       --  Sloc points to FOR
6319       --  Identifier (Node1)
6320       --  Expression (Node3)
6321
6322       ---------------------
6323       -- J.8  Mod clause --
6324       ---------------------
6325
6326       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
6327
6328       --  Note: the parse routine for this construct is located in Par-Ch13,
6329       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
6330       --  belongs if it were not obsolescent.
6331
6332       --  Note: in Ada 83, the expression must be a simple expression
6333
6334       --  Gigi restriction: this node never appears. It is replaced
6335       --  by a corresponding Alignment attribute definition clause.
6336
6337       --  Note: pragmas can appear before and after the MOD_CLAUSE since
6338       --  its name has "clause" in it. This is rather strange, but is quite
6339       --  definitely specified. The pragmas before are collected in the
6340       --  Pragmas_Before field of the mod clause node itself, and pragmas
6341       --  after are simply swallowed up in the list of component clauses.
6342
6343       --  N_Mod_Clause
6344       --  Sloc points to AT
6345       --  Expression (Node3)
6346       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6347
6348    --------------------
6349    -- Semantic Nodes --
6350    --------------------
6351
6352    --  These semantic nodes are used to hold additional semantic information.
6353    --  They are inserted into the tree as a result of semantic processing.
6354    --  Although there are no legitimate source syntax constructions that
6355    --  correspond directly to these nodes, we need a source syntax for the
6356    --  reconstructed tree printed by Sprint, and the node descriptions here
6357    --  show this syntax.
6358
6359       ----------------------------
6360       -- Conditional Expression --
6361       ----------------------------
6362
6363       --  This node is used to represent an expression corresponding to the
6364       --  C construct (condition ? then-expression : else_expression), where
6365       --  Expressions is a three element list, whose first expression is the
6366       --  condition, and whose second and third expressions are the then and
6367       --  else expressions respectively.
6368
6369       --  Note: the Then_Actions and Else_Actions fields are always set to
6370       --  No_List in the tree passed to Gigi. These fields are used only
6371       --  for temporary processing purposes in the expander.
6372
6373       --  Sprint syntax: (if expr then expr else expr)
6374
6375       --  N_Conditional_Expression
6376       --  Sloc points to related node
6377       --  Expressions (List1)
6378       --  Then_Actions (List2-Sem)
6379       --  Else_Actions (List3-Sem)
6380       --  plus fields for expression
6381
6382       --  Note: in the case where a debug source file is generated, the Sloc
6383       --  for this node points to the IF keyword in the Sprint file output.
6384
6385       -------------------
6386       -- Expanded_Name --
6387       -------------------
6388
6389       --  The N_Expanded_Name node is used to represent a selected component
6390       --  name that has been resolved to an expanded name. The semantic phase
6391       --  replaces N_Selected_Component nodes that represent names by the use
6392       --  of this node, leaving the N_Selected_Component node used only when
6393       --  the prefix is a record or protected type.
6394
6395       --  The fields of the N_Expanded_Name node are layed out identically
6396       --  to those of the N_Selected_Component node, allowing conversion of
6397       --  an expanded name node to a selected component node to be done
6398       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6399
6400       --  There is no special sprint syntax for an expanded name
6401
6402       --  N_Expanded_Name
6403       --  Sloc points to the period
6404       --  Chars (Name1) copy of Chars field of selector name
6405       --  Prefix (Node3)
6406       --  Selector_Name (Node2)
6407       --  Entity (Node4-Sem)
6408       --  Associated_Node (Node4-Sem)
6409       --  Redundant_Use (Flag13-Sem)
6410       --  Has_Private_View (Flag11-Sem) set in generic units.
6411       --  plus fields for expression
6412
6413       --------------------
6414       -- Free Statement --
6415       --------------------
6416
6417       --  The N_Free_Statement node is generated as a result of a call to an
6418       --  instantiation of Unchecked_Deallocation. The instantiation of this
6419       --  generic is handled specially and generates this node directly.
6420
6421       --  Sprint syntax: free expression
6422
6423       --  N_Free_Statement
6424       --  Sloc is copied from the unchecked deallocation call
6425       --  Expression (Node3) argument to unchecked deallocation call
6426       --  Storage_Pool (Node1-Sem)
6427       --  Procedure_To_Call (Node2-Sem)
6428       --  Actual_Designated_Subtype (Node4-Sem)
6429
6430       --  Note: in the case where a debug source file is generated, the Sloc
6431       --  for this node points to the FREE keyword in the Sprint file output.
6432
6433       -------------------
6434       -- Freeze Entity --
6435       -------------------
6436
6437       --  This node marks the point in a declarative part at which an entity
6438       --  declared therein becomes frozen. The expander places initialization
6439       --  procedures for types at those points. Gigi uses the freezing point
6440       --  to elaborate entities that may depend on previous private types.
6441
6442       --  See the section in Einfo "Delayed Freezing and Elaboration" for
6443       --  a full description of the use of this node.
6444
6445       --  The Entity field points back to the entity for the type (whose
6446       --  Freeze_Node field points back to this freeze node).
6447
6448       --  The Actions field contains a list of declarations and statements
6449       --  generated by the expander which are associated with the freeze
6450       --  node, and are elaborated as though the freeze node were replaced
6451       --  by this sequence of actions.
6452
6453       --  Note: the Sloc field in the freeze node references a construct
6454       --  associated with the freezing point. This is used for posting
6455       --  messages in some error/warning situations, e.g. the case where
6456       --  a primitive operation of a tagged type is declared too late.
6457
6458       --  Sprint syntax: freeze entity-name [
6459       --                   freeze actions
6460       --                 ]
6461
6462       --  N_Freeze_Entity
6463       --  Sloc points near freeze point (see above special note)
6464       --  Entity (Node4-Sem)
6465       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6466       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6467       --  Actions (List1) (set to No_List if no freeze actions)
6468       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6469
6470       --  The Actions field holds actions associated with the freeze. These
6471       --  actions are elaborated at the point where the type is frozen.
6472
6473       --  Note: in the case where a debug source file is generated, the Sloc
6474       --  for this node points to the FREEZE keyword in the Sprint file output.
6475
6476       --------------------------------
6477       -- Implicit Label Declaration --
6478       --------------------------------
6479
6480       --  An implicit label declaration is created for every occurrence of a
6481       --  label on a statement or a label on a block or loop. It is chained
6482       --  in the declarations of the innermost enclosing block as specified
6483       --  in RM section 5.1 (3).
6484
6485       --  The Defining_Identifier is the actual identifier for the
6486       --  statement identifier. Note that the occurrence of the label
6487       --  is a reference, NOT the defining occurrence. The defining
6488       --  occurrence occurs at the head of the innermost enclosing
6489       --  block, and is represented by this node.
6490
6491       --  Note: from the grammar, this might better be called an implicit
6492       --  statement identifier declaration, but the term we choose seems
6493       --  friendlier, since at least informally statement identifiers are
6494       --  called labels in both cases (i.e. when used in labels, and when
6495       --  used as the identifiers of blocks and loops).
6496
6497       --  Note: although this is logically a semantic node, since it does
6498       --  not correspond directly to a source syntax construction, these
6499       --  nodes are actually created by the parser in a post pass done just
6500       --  after parsing is complete, before semantic analysis is started (see
6501       --  the Par.Labl subunit in file par-labl.adb).
6502
6503       --  Sprint syntax: labelname : label;
6504
6505       --  N_Implicit_Label_Declaration
6506       --  Sloc points to the << of the label
6507       --  Defining_Identifier (Node1)
6508       --  Label_Construct (Node2-Sem)
6509
6510       --  Note: in the case where a debug source file is generated, the Sloc
6511       --  for this node points to the label name in the generated declaration.
6512
6513       ---------------------
6514       -- Itype_Reference --
6515       ---------------------
6516
6517       --  This node is used to create a reference to an Itype. The only
6518       --  purpose is to make sure that the Itype is defined if this is the
6519       --  first reference.
6520
6521       --  A typical use of this node is when an Itype is to be referenced in
6522       --  two branches of an if statement. In this case it is important that
6523       --  the first use of the Itype not be inside the conditional, since
6524       --  then it might not be defined if the wrong branch of the if is
6525       --  taken in the case where the definition generates elaboration code.
6526
6527       --  The Itype field points to the referenced Itype
6528
6529       --  sprint syntax: reference itype-name
6530
6531       --  N_Itype_Reference
6532       --  Sloc points to the node generating the reference
6533       --  Itype (Node1-Sem)
6534
6535       --  Note: in the case where a debug source file is generated, the Sloc
6536       --  for this node points to the REFERENCE keyword in the file output.
6537
6538       ---------------------
6539       -- Raise_xxx_Error --
6540       ---------------------
6541
6542       --  One of these nodes is created during semantic analysis to replace
6543       --  a node for an expression that is determined to definitely raise
6544       --  the corresponding exception.
6545
6546       --  The N_Raise_xxx_Error node may also stand alone in place
6547       --  of a declaration or statement, in which case it simply causes
6548       --  the exception to be raised (i.e. it is equivalent to a raise
6549       --  statement that raises the corresponding exception). This use
6550       --  is distinguished by the fact that the Etype in this case is
6551       --  Standard_Void_Type, In the subexprssion case, the Etype is the
6552       --  same as the type of the subexpression which it replaces.
6553
6554       --  If Condition is empty, then the raise is unconditional. If the
6555       --  Condition field is non-empty, it is a boolean expression which
6556       --  is first evaluated, and the exception is raised only if the
6557       --  value of the expression is True. In the unconditional case, the
6558       --  creation of this node is usually accompanied by a warning message
6559       --  error. The creation of this node will usually be accompanied by a
6560       --  message (unless it appears within the right operand of a short
6561       --  circuit form whose left argument is static and decisively
6562       --  eliminates elaboration of the raise operation. The condition field
6563       --  can ONLY be present when the node is used as a statement form, it
6564       --  may NOT be present in the case where the node appears within an
6565       --  expression.
6566
6567       --  The exception is generated with a message that contains the
6568       --  file name and line number, and then appended text. The Reason
6569       --  code shows the text to be added. The Reason code is an element
6570       --  of the type Types.RT_Exception_Code, and indicates both the
6571       --  message to be added, and the exception to be raised (which must
6572       --  match the node type). The value is stored by storing a Uint which
6573       --  is the Pos value of the enumeration element in this type.
6574
6575       --  Gigi restriction: This expander ensures that the type of the
6576       --  Condition field is always Standard.Boolean, even if the type
6577       --  in the source is some non-standard boolean type.
6578
6579       --  Sprint syntax: [xxx_error "msg"]
6580       --             or: [xxx_error when condition "msg"]
6581
6582       --  N_Raise_Constraint_Error
6583       --  Sloc references related construct
6584       --  Condition (Node1) (set to Empty if no condition)
6585       --  Reason (Uint3)
6586       --  plus fields for expression
6587
6588       --  N_Raise_Program_Error
6589       --  Sloc references related construct
6590       --  Condition (Node1) (set to Empty if no condition)
6591       --  Reason (Uint3)
6592       --  plus fields for expression
6593
6594       --  N_Raise_Storage_Error
6595       --  Sloc references related construct
6596       --  Condition (Node1) (set to Empty if no condition)
6597       --  Reason (Uint3)
6598       --  plus fields for expression
6599
6600       --  Note: Sloc is copied from the expression generating the exception.
6601       --  In the case where a debug source file is generated, the Sloc for
6602       --  this node points to the left bracket in the Sprint file output.
6603
6604       --  Note: the back end may be required to translate these nodes into
6605       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6606
6607       ---------------------------------------------
6608       -- Optimization of Exception Raise to Goto --
6609       ---------------------------------------------
6610
6611       --  In some cases, the front end will determine that any exception raised
6612       --  by the back end for a certain exception should be transformed into a
6613       --  goto statement.
6614
6615       --  There are three kinds of exceptions raised by the back end (note that
6616       --  for this purpose we consider gigi to be part of the back end in the
6617       --  gcc case):
6618
6619       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
6620       --     2. Exceptions from checks triggered by Do_xxx_Check flags
6621       --     3. Other cases not specifically marked by the front end
6622
6623       --  Normally all such exceptions are translated into calls to the proper
6624       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
6625       --  and the exception message.
6626
6627       --  The front end may determine that for a particular sequence of code,
6628       --  exceptions in any of these three categories for a particular builtin
6629       --  exception should result in a goto, rather than a call to Rcheck_xx.
6630       --  The exact sequence to be generated is:
6631
6632       --      Local_Raise (exception'Identity);
6633       --      goto Label
6634
6635       --  The front end marks such a sequence of code by bracketing it with
6636       --  push and pop nodes:
6637
6638       --       N_Push_xxx_Label (referencing the label)
6639       --       ...
6640       --       (code where transformation is expected for exception xxx)
6641       --       ...
6642       --       N_Pop_xxx_Label
6643
6644       --  The use of push/pop reflects the fact that such regions can properly
6645       --  nest, and one special case is a subregion in which no transformation
6646       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6647       --  Exception_Label field is Empty.
6648
6649       --  N_Push_Constraint_Error_Label
6650       --  Sloc references first statement in region covered
6651       --  Exception_Label (Node5-Sem)
6652
6653       --  N_Push_Program_Error_Label
6654       --  Sloc references first statement in region covered
6655       --  Exception_Label (Node5-Sem)
6656
6657       --  N_Push_Storage_Error_Label
6658       --  Sloc references first statement in region covered
6659       --  Exception_Label (Node5-Sem)
6660
6661       --  N_Pop_Constraint_Error_Label
6662       --  Sloc references last statement in region covered
6663
6664       --  N_Pop_Program_Error_Label
6665       --  Sloc references last statement in region covered
6666
6667       --  N_Pop_Storage_Error_Label
6668       --  Sloc references last statement in region covered
6669
6670       ---------------
6671       -- Reference --
6672       ---------------
6673
6674       --  For a number of purposes, we need to construct references to objects.
6675       --  These references are subsequently treated as normal access values.
6676       --  An example is the construction of the parameter block passed to a
6677       --  task entry. The N_Reference node is provided for this purpose. It is
6678       --  similar in effect to the use of the Unrestricted_Access attribute,
6679       --  and like Unrestricted_Access can be applied to objects which would
6680       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
6681       --  objects which are not aliased, and slices). In addition it can be
6682       --  applied to composite type values as well as objects, including string
6683       --  values and aggregates.
6684
6685       --  Note: we use the Prefix field for this expression so that the
6686       --  resulting node can be treated using common code with the attribute
6687       --  nodes for the 'Access and related attributes. Logically it would make
6688       --  more sense to call it an Expression field, but then we would have to
6689       --  special case the treatment of the N_Reference node.
6690
6691       --  Sprint syntax: prefix'reference
6692
6693       --  N_Reference
6694       --  Sloc is copied from the expression
6695       --  Prefix (Node3)
6696       --  plus fields for expression
6697
6698       --  Note: in the case where a debug source file is generated, the Sloc
6699       --  for this node points to the quote in the Sprint file output.
6700
6701       ---------------------
6702       -- Subprogram_Info --
6703       ---------------------
6704
6705       --  This node generates the appropriate Subprogram_Info value for a
6706       --  given procedure. See Ada.Exceptions for further details
6707
6708       --  Sprint syntax: subprog'subprogram_info
6709
6710       --  N_Subprogram_Info
6711       --  Sloc points to the entity for the procedure
6712       --  Identifier (Node1) identifier referencing the procedure
6713       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6714
6715       --  Note: in the case where a debug source file is generated, the Sloc
6716       --  for this node points to the quote in the Sprint file output.
6717
6718       --------------------------
6719       -- Unchecked Expression --
6720       --------------------------
6721
6722       --  An unchecked expression is one that must be analyzed and resolved
6723       --  with all checks off, regardless of the current setting of scope
6724       --  suppress flags.
6725
6726       --  Sprint syntax: `(expression)
6727
6728       --  Note: this node is always removed from the tree (and replaced by
6729       --  its constituent expression) on completion of analysis, so it only
6730       --  appears in intermediate trees, and will never be seen by Gigi.
6731
6732       --  N_Unchecked_Expression
6733       --  Sloc is a copy of the Sloc of the expression
6734       --  Expression (Node3)
6735       --  plus fields for expression
6736
6737       --  Note: in the case where a debug source file is generated, the Sloc
6738       --  for this node points to the back quote in the Sprint file output.
6739
6740       -------------------------------
6741       -- Unchecked Type Conversion --
6742       -------------------------------
6743
6744       --  An unchecked type conversion node represents the semantic action
6745       --  corresponding to a call to an instantiation of Unchecked_Conversion.
6746       --  It is generated as a result of actual use of Unchecked_Conversion
6747       --  and also the expander generates unchecked type conversion nodes
6748       --  directly for expansion of complex semantic actions.
6749
6750       --  Note: an unchecked type conversion is a variable as far as the
6751       --  semantics are concerned, which is convenient for the expander.
6752       --  This does not change what Ada source programs are legal, since
6753       --  clearly a function call to an instantiation of Unchecked_Conversion
6754       --  is not a variable in any case.
6755
6756       --  Sprint syntax: subtype-mark!(expression)
6757
6758       --  N_Unchecked_Type_Conversion
6759       --  Sloc points to related node in source
6760       --  Subtype_Mark (Node4)
6761       --  Expression (Node3)
6762       --  Kill_Range_Check (Flag11-Sem)
6763       --  No_Truncation (Flag17-Sem)
6764       --  plus fields for expression
6765
6766       --  Note: in the case where a debug source file is generated, the Sloc
6767       --  for this node points to the exclamation in the Sprint file output.
6768
6769       -----------------------------------
6770       -- Validate_Unchecked_Conversion --
6771       -----------------------------------
6772
6773       --  The front end does most of the validation of unchecked conversion,
6774       --  including checking sizes (this is done after the back end is called
6775       --  to take advantage of back-annotation of calculated sizes).
6776
6777       --  The front end also deals with specific cases that are not allowed
6778       --  e.g. involving unconstrained array types.
6779
6780       --  For the case of the standard gigi backend, this means that all
6781       --  checks are done in the front-end.
6782
6783       --  However, in the case of specialized back-ends, notably the JVM
6784       --  backend for JGNAT, additional requirements and restrictions apply
6785       --  to unchecked conversion, and these are most conveniently performed
6786       --  in the specialized back-end.
6787
6788       --  To accommodate this requirement, for such back ends, the following
6789       --  special node is generated recording an unchecked conversion that
6790       --  needs to be validated. The back end should post an appropriate
6791       --  error message if the unchecked conversion is invalid or warrants
6792       --  a special warning message.
6793
6794       --  Source_Type and Target_Type point to the entities for the two
6795       --  types involved in the unchecked conversion instantiation that
6796       --  is to be validated.
6797
6798       --  Sprint syntax: validate Unchecked_Conversion (source, target);
6799
6800       --  N_Validate_Unchecked_Conversion
6801       --  Sloc points to instantiation (location for warning message)
6802       --  Source_Type (Node1-Sem)
6803       --  Target_Type (Node2-Sem)
6804
6805       --  Note: in the case where a debug source file is generated, the Sloc
6806       --  for this node points to the VALIDATE keyword in the file output.
6807
6808    -----------
6809    -- Empty --
6810    -----------
6811
6812    --  Used as the contents of the Nkind field of the dummy Empty node
6813    --  and in some other situations to indicate an uninitialized value.
6814
6815    --  N_Empty
6816    --  Chars (Name1) is set to No_Name
6817
6818    -----------
6819    -- Error --
6820    -----------
6821
6822    --  Used as the contents of the Nkind field of the dummy Error node.
6823    --  Has an Etype field, which gets set to Any_Type later on, to help
6824    --  error recovery (Error_Posted is also set in the Error node).
6825
6826    --  N_Error
6827    --  Chars (Name1) is set to Error_Name
6828    --  Etype (Node5-Sem)
6829
6830    --------------------------
6831    -- Node Type Definition --
6832    --------------------------
6833
6834    --  The following is the definition of the Node_Kind type. As previously
6835    --  discussed, this is separated off to allow rearrangement of the order
6836    --  to facilitiate definition of subtype ranges. The comments show the
6837    --  subtype classes which apply to each set of node kinds. The first
6838    --  entry in the comment characterizes the following list of nodes.
6839
6840    type Node_Kind is (
6841       N_Unused_At_Start,
6842
6843       --  N_Representation_Clause
6844
6845       N_At_Clause,
6846       N_Component_Clause,
6847       N_Enumeration_Representation_Clause,
6848       N_Mod_Clause,
6849       N_Record_Representation_Clause,
6850
6851       --  N_Representation_Clause, N_Has_Chars
6852
6853       N_Attribute_Definition_Clause,
6854
6855       --  N_Has_Chars
6856
6857       N_Empty,
6858       N_Pragma,
6859       N_Pragma_Argument_Association,
6860
6861       --  N_Has_Etype
6862
6863       N_Error,
6864
6865       --  N_Entity, N_Has_Etype, N_Has_Chars
6866
6867       N_Defining_Character_Literal,
6868       N_Defining_Identifier,
6869       N_Defining_Operator_Symbol,
6870
6871       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6872
6873       N_Expanded_Name,
6874
6875       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
6876       --  N_Has_Chars, N_Has_Entity
6877
6878       N_Identifier,
6879       N_Operator_Symbol,
6880
6881       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
6882       --  N_Has_Chars, N_Has_Entity
6883
6884       N_Character_Literal,
6885
6886       --  N_Binary_Op, N_Op, N_Subexpr,
6887       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
6888
6889       N_Op_Add,
6890       N_Op_Concat,
6891       N_Op_Expon,
6892       N_Op_Subtract,
6893
6894       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6895       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6896
6897       N_Op_Divide,
6898       N_Op_Mod,
6899       N_Op_Multiply,
6900       N_Op_Rem,
6901
6902       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6903       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
6904
6905       N_Op_And,
6906
6907       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6908       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6909
6910       N_Op_Eq,
6911       N_Op_Ge,
6912       N_Op_Gt,
6913       N_Op_Le,
6914       N_Op_Lt,
6915       N_Op_Ne,
6916
6917       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6918       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
6919
6920       N_Op_Or,
6921       N_Op_Xor,
6922
6923       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6924       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
6925
6926       N_Op_Rotate_Left,
6927       N_Op_Rotate_Right,
6928       N_Op_Shift_Left,
6929       N_Op_Shift_Right,
6930       N_Op_Shift_Right_Arithmetic,
6931
6932       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6933       --  N_Has_Chars, N_Has_Entity
6934
6935       N_Op_Abs,
6936       N_Op_Minus,
6937       N_Op_Not,
6938       N_Op_Plus,
6939
6940       --  N_Subexpr, N_Has_Etype, N_Has_Entity
6941
6942       N_Attribute_Reference,
6943
6944       --  N_Subexpr, N_Has_Etype, N_Membership_Test
6945
6946       N_In,
6947       N_Not_In,
6948
6949       --  N_Subexpr, N_Has_Etype
6950
6951       N_And_Then,
6952       N_Conditional_Expression,
6953       N_Explicit_Dereference,
6954       N_Function_Call,
6955
6956       N_Indexed_Component,
6957       N_Integer_Literal,
6958
6959       N_Null,
6960       N_Or_Else,
6961       N_Procedure_Call_Statement,
6962       N_Qualified_Expression,
6963
6964       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
6965
6966       N_Raise_Constraint_Error,
6967       N_Raise_Program_Error,
6968       N_Raise_Storage_Error,
6969
6970       --  N_Subexpr, N_Has_Etype
6971
6972       N_Aggregate,
6973       N_Allocator,
6974       N_Extension_Aggregate,
6975       N_Range,
6976       N_Real_Literal,
6977       N_Reference,
6978       N_Selected_Component,
6979       N_Slice,
6980       N_String_Literal,
6981       N_Subprogram_Info,
6982       N_Type_Conversion,
6983       N_Unchecked_Expression,
6984       N_Unchecked_Type_Conversion,
6985
6986       --  N_Has_Etype
6987
6988       N_Subtype_Indication,
6989
6990       --  N_Declaration
6991
6992       N_Component_Declaration,
6993       N_Entry_Declaration,
6994       N_Formal_Object_Declaration,
6995       N_Formal_Type_Declaration,
6996       N_Full_Type_Declaration,
6997       N_Incomplete_Type_Declaration,
6998       N_Loop_Parameter_Specification,
6999       N_Object_Declaration,
7000       N_Protected_Type_Declaration,
7001       N_Private_Extension_Declaration,
7002       N_Private_Type_Declaration,
7003       N_Subtype_Declaration,
7004
7005       --  N_Subprogram_Specification, N_Declaration
7006
7007       N_Function_Specification,
7008       N_Procedure_Specification,
7009
7010       --  N_Access_To_Subprogram_Definition
7011
7012       N_Access_Function_Definition,
7013       N_Access_Procedure_Definition,
7014
7015       --  N_Later_Decl_Item
7016
7017       N_Task_Type_Declaration,
7018
7019       --  N_Body_Stub, N_Later_Decl_Item
7020
7021       N_Package_Body_Stub,
7022       N_Protected_Body_Stub,
7023       N_Subprogram_Body_Stub,
7024       N_Task_Body_Stub,
7025
7026       --  N_Generic_Instantiation, N_Later_Decl_Item
7027       --  N_Subprogram_Instantiation
7028
7029       N_Function_Instantiation,
7030       N_Procedure_Instantiation,
7031
7032       --  N_Generic_Instantiation, N_Later_Decl_Item
7033
7034       N_Package_Instantiation,
7035
7036       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7037
7038       N_Package_Body,
7039       N_Subprogram_Body,
7040
7041       --  N_Later_Decl_Item, N_Proper_Body
7042
7043       N_Protected_Body,
7044       N_Task_Body,
7045
7046       --  N_Later_Decl_Item
7047
7048       N_Implicit_Label_Declaration,
7049       N_Package_Declaration,
7050       N_Single_Task_Declaration,
7051       N_Subprogram_Declaration,
7052       N_Use_Package_Clause,
7053
7054       --  N_Generic_Declaration, N_Later_Decl_Item
7055
7056       N_Generic_Package_Declaration,
7057       N_Generic_Subprogram_Declaration,
7058
7059       --  N_Array_Type_Definition
7060
7061       N_Constrained_Array_Definition,
7062       N_Unconstrained_Array_Definition,
7063
7064       --  N_Renaming_Declaration
7065
7066       N_Exception_Renaming_Declaration,
7067       N_Object_Renaming_Declaration,
7068       N_Package_Renaming_Declaration,
7069       N_Subprogram_Renaming_Declaration,
7070
7071       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
7072
7073       N_Generic_Function_Renaming_Declaration,
7074       N_Generic_Package_Renaming_Declaration,
7075       N_Generic_Procedure_Renaming_Declaration,
7076
7077       --  N_Statement_Other_Than_Procedure_Call
7078
7079       N_Abort_Statement,
7080       N_Accept_Statement,
7081       N_Assignment_Statement,
7082       N_Asynchronous_Select,
7083       N_Block_Statement,
7084       N_Case_Statement,
7085       N_Code_Statement,
7086       N_Conditional_Entry_Call,
7087
7088       --  N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7089
7090       N_Delay_Relative_Statement,
7091       N_Delay_Until_Statement,
7092
7093       --  N_Statement_Other_Than_Procedure_Call
7094
7095       N_Entry_Call_Statement,
7096       N_Free_Statement,
7097       N_Goto_Statement,
7098       N_Loop_Statement,
7099       N_Null_Statement,
7100       N_Raise_Statement,
7101       N_Requeue_Statement,
7102       N_Return_Statement, -- renamed as N_Simple_Return_Statement in Sem_Util
7103       N_Extended_Return_Statement,
7104       N_Selective_Accept,
7105       N_Timed_Entry_Call,
7106
7107       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7108
7109       N_Exit_Statement,
7110       N_If_Statement,
7111
7112       --  N_Has_Condition
7113
7114       N_Accept_Alternative,
7115       N_Delay_Alternative,
7116       N_Elsif_Part,
7117       N_Entry_Body_Formal_Part,
7118       N_Iteration_Scheme,
7119       N_Terminate_Alternative,
7120
7121       --  N_Formal_Subprogram_Declaration
7122
7123       N_Formal_Abstract_Subprogram_Declaration,
7124       N_Formal_Concrete_Subprogram_Declaration,
7125
7126       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
7127
7128       N_Push_Constraint_Error_Label,
7129       N_Push_Program_Error_Label,
7130       N_Push_Storage_Error_Label,
7131
7132       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7133
7134       N_Pop_Constraint_Error_Label,
7135       N_Pop_Program_Error_Label,
7136       N_Pop_Storage_Error_Label,
7137
7138       --  Other nodes (not part of any subtype class)
7139
7140       N_Abortable_Part,
7141       N_Abstract_Subprogram_Declaration,
7142       N_Access_Definition,
7143       N_Access_To_Object_Definition,
7144       N_Case_Statement_Alternative,
7145       N_Compilation_Unit,
7146       N_Compilation_Unit_Aux,
7147       N_Component_Association,
7148       N_Component_Definition,
7149       N_Component_List,
7150       N_Derived_Type_Definition,
7151       N_Decimal_Fixed_Point_Definition,
7152       N_Defining_Program_Unit_Name,
7153       N_Delta_Constraint,
7154       N_Designator,
7155       N_Digits_Constraint,
7156       N_Discriminant_Association,
7157       N_Discriminant_Specification,
7158       N_Enumeration_Type_Definition,
7159       N_Entry_Body,
7160       N_Entry_Call_Alternative,
7161       N_Entry_Index_Specification,
7162       N_Exception_Declaration,
7163       N_Exception_Handler,
7164       N_Floating_Point_Definition,
7165       N_Formal_Decimal_Fixed_Point_Definition,
7166       N_Formal_Derived_Type_Definition,
7167       N_Formal_Discrete_Type_Definition,
7168       N_Formal_Floating_Point_Definition,
7169       N_Formal_Modular_Type_Definition,
7170       N_Formal_Ordinary_Fixed_Point_Definition,
7171       N_Formal_Package_Declaration,
7172       N_Formal_Private_Type_Definition,
7173       N_Formal_Signed_Integer_Type_Definition,
7174       N_Freeze_Entity,
7175       N_Generic_Association,
7176       N_Handled_Sequence_Of_Statements,
7177       N_Index_Or_Discriminant_Constraint,
7178       N_Itype_Reference,
7179       N_Label,
7180       N_Modular_Type_Definition,
7181       N_Number_Declaration,
7182       N_Ordinary_Fixed_Point_Definition,
7183       N_Others_Choice,
7184       N_Package_Specification,
7185       N_Parameter_Association,
7186       N_Parameter_Specification,
7187       N_Protected_Definition,
7188       N_Range_Constraint,
7189       N_Real_Range_Specification,
7190       N_Record_Definition,
7191       N_Signed_Integer_Type_Definition,
7192       N_Single_Protected_Declaration,
7193       N_Subunit,
7194       N_Task_Definition,
7195       N_Triggering_Alternative,
7196       N_Use_Type_Clause,
7197       N_Validate_Unchecked_Conversion,
7198       N_Variant,
7199       N_Variant_Part,
7200       N_With_Clause,
7201       N_Unused_At_End);
7202
7203    for Node_Kind'Size use 8;
7204    --  The data structures in Atree assume this!
7205
7206    ----------------------------
7207    -- Node Class Definitions --
7208    ----------------------------
7209
7210    subtype N_Access_To_Subprogram_Definition is Node_Kind range
7211      N_Access_Function_Definition ..
7212      N_Access_Procedure_Definition;
7213
7214    subtype N_Array_Type_Definition is Node_Kind range
7215      N_Constrained_Array_Definition ..
7216      N_Unconstrained_Array_Definition;
7217
7218    subtype N_Binary_Op is Node_Kind range
7219      N_Op_Add ..
7220      N_Op_Shift_Right_Arithmetic;
7221
7222    subtype N_Body_Stub is Node_Kind range
7223      N_Package_Body_Stub ..
7224      N_Task_Body_Stub;
7225
7226    subtype N_Declaration is Node_Kind range
7227      N_Component_Declaration ..
7228      N_Procedure_Specification;
7229    --  Note: this includes all constructs normally thought of as declarations
7230    --  except those which are separately grouped as later declarations.
7231
7232    subtype N_Delay_Statement is Node_Kind range
7233       N_Delay_Relative_Statement ..
7234       N_Delay_Until_Statement;
7235
7236    subtype N_Direct_Name is Node_Kind range
7237      N_Identifier ..
7238      N_Character_Literal;
7239
7240    subtype N_Entity is Node_Kind range
7241      N_Defining_Character_Literal ..
7242      N_Defining_Operator_Symbol;
7243
7244    subtype N_Formal_Subprogram_Declaration is Node_Kind range
7245      N_Formal_Abstract_Subprogram_Declaration ..
7246      N_Formal_Concrete_Subprogram_Declaration;
7247
7248    subtype N_Generic_Declaration is Node_Kind range
7249      N_Generic_Package_Declaration ..
7250      N_Generic_Subprogram_Declaration;
7251
7252    subtype N_Generic_Instantiation is Node_Kind range
7253      N_Function_Instantiation ..
7254      N_Package_Instantiation;
7255
7256    subtype N_Generic_Renaming_Declaration is Node_Kind range
7257      N_Generic_Function_Renaming_Declaration ..
7258      N_Generic_Procedure_Renaming_Declaration;
7259
7260    subtype N_Has_Chars is Node_Kind range
7261      N_Attribute_Definition_Clause ..
7262      N_Op_Plus;
7263
7264    subtype N_Has_Entity is Node_Kind range
7265      N_Expanded_Name ..
7266      N_Attribute_Reference;
7267    --  Nodes that have Entity fields
7268    --  Warning: DOES NOT INCLUDE N_Freeze_Entity!
7269
7270    subtype N_Has_Etype is Node_Kind range
7271      N_Error ..
7272      N_Subtype_Indication;
7273
7274    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7275       N_Op_Divide ..
7276       N_Op_Rem;
7277
7278    subtype N_Multiplying_Operator is Node_Kind range
7279       N_Op_Divide ..
7280       N_Op_Rem;
7281
7282    subtype N_Later_Decl_Item is Node_Kind range
7283      N_Task_Type_Declaration ..
7284      N_Generic_Subprogram_Declaration;
7285    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7286    --  includes only those items which can appear as later declarative
7287    --  items. This also includes N_Implicit_Label_Declaration which is
7288    --  not specifically in the grammar but may appear as a valid later
7289    --  declarative items. It does NOT include N_Pragma which can also
7290    --  appear among later declarative items. It does however include
7291    --  N_Protected_Body, which is a bit peculiar, but harmless since
7292    --  this cannot appear in Ada 83 mode anyway.
7293
7294    subtype N_Membership_Test is Node_Kind range
7295       N_In ..
7296       N_Not_In;
7297
7298    subtype N_Op is Node_Kind range
7299      N_Op_Add ..
7300      N_Op_Plus;
7301
7302    subtype N_Op_Boolean is Node_Kind range
7303      N_Op_And ..
7304      N_Op_Xor;
7305    --  Binary operators which take operands of a boolean type, and yield
7306    --  a result of a boolean type.
7307
7308    subtype N_Op_Compare is Node_Kind range
7309      N_Op_Eq ..
7310      N_Op_Ne;
7311
7312    subtype N_Op_Shift is Node_Kind range
7313      N_Op_Rotate_Left ..
7314      N_Op_Shift_Right_Arithmetic;
7315
7316    subtype N_Proper_Body is Node_Kind range
7317      N_Package_Body ..
7318      N_Task_Body;
7319
7320    subtype N_Push_xxx_Label is Node_Kind range
7321      N_Push_Constraint_Error_Label ..
7322      N_Push_Storage_Error_Label;
7323
7324    subtype N_Pop_xxx_Label is Node_Kind range
7325      N_Pop_Constraint_Error_Label ..
7326      N_Pop_Storage_Error_Label;
7327
7328    subtype N_Push_Pop_xxx_Label is Node_Kind range
7329      N_Push_Constraint_Error_Label ..
7330      N_Pop_Storage_Error_Label;
7331
7332    subtype N_Raise_xxx_Error is Node_Kind range
7333      N_Raise_Constraint_Error ..
7334      N_Raise_Storage_Error;
7335
7336    subtype N_Renaming_Declaration is Node_Kind range
7337      N_Exception_Renaming_Declaration ..
7338      N_Generic_Procedure_Renaming_Declaration;
7339
7340    subtype N_Representation_Clause is Node_Kind range
7341      N_At_Clause ..
7342      N_Attribute_Definition_Clause;
7343
7344    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7345      N_Abort_Statement ..
7346      N_If_Statement;
7347    --  Note that this includes all statement types except for the cases of the
7348    --  N_Procedure_Call_Statement which is considered to be a subexpression
7349    --  (since overloading is possible, so it needs to go through the normal
7350    --  overloading resolution for expressions).
7351
7352    subtype N_Subprogram_Instantiation is Node_Kind range
7353      N_Function_Instantiation ..
7354      N_Procedure_Instantiation;
7355
7356    subtype N_Has_Condition is Node_Kind range
7357      N_Exit_Statement ..
7358      N_Terminate_Alternative;
7359    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
7360
7361    subtype N_Subexpr is Node_Kind range
7362      N_Expanded_Name ..
7363      N_Unchecked_Type_Conversion;
7364    --  Nodes with expression fields
7365
7366    subtype N_Subprogram_Specification is Node_Kind range
7367      N_Function_Specification ..
7368      N_Procedure_Specification;
7369
7370    subtype N_Unary_Op is Node_Kind range
7371      N_Op_Abs ..
7372      N_Op_Plus;
7373
7374    subtype N_Unit_Body is Node_Kind range
7375      N_Package_Body ..
7376      N_Subprogram_Body;
7377
7378    ---------------------------
7379    -- Node Access Functions --
7380    ---------------------------
7381
7382    --  The following functions return the contents of the indicated field of
7383    --  the node referenced by the argument, which is a Node_Id. They provide
7384    --  logical access to fields in the node which could be accessed using the
7385    --  Atree.Unchecked_Access package, but the idea is always to use these
7386    --  higher level routines which preserve strong typing. In debug mode,
7387    --  these routines check that they are being applied to an appropriate
7388    --  node, as well as checking that the node is in range.
7389
7390    function ABE_Is_Certain
7391      (N : Node_Id) return Boolean;    -- Flag18
7392
7393    function Abort_Present
7394      (N : Node_Id) return Boolean;    -- Flag15
7395
7396    function Abortable_Part
7397      (N : Node_Id) return Node_Id;    -- Node2
7398
7399    function Abstract_Present
7400      (N : Node_Id) return Boolean;    -- Flag4
7401
7402    function Accept_Handler_Records
7403      (N : Node_Id) return List_Id;    -- List5
7404
7405    function Accept_Statement
7406      (N : Node_Id) return Node_Id;    -- Node2
7407
7408    function Access_Definition
7409      (N : Node_Id) return Node_Id;    -- Node3
7410
7411    function Access_To_Subprogram_Definition
7412      (N : Node_Id) return Node_Id;    -- Node3
7413
7414    function Access_Types_To_Process
7415      (N : Node_Id) return Elist_Id;   -- Elist2
7416
7417    function Actions
7418      (N : Node_Id) return List_Id;    -- List1
7419
7420    function Activation_Chain_Entity
7421      (N : Node_Id) return Node_Id;    -- Node3
7422
7423    function Acts_As_Spec
7424      (N : Node_Id) return Boolean;    -- Flag4
7425
7426    function Actual_Designated_Subtype
7427      (N : Node_Id) return Node_Id;    -- Node4
7428
7429    function Aggregate_Bounds
7430      (N : Node_Id) return Node_Id;    -- Node3
7431
7432    function Aliased_Present
7433      (N : Node_Id) return Boolean;    -- Flag4
7434
7435    function All_Others
7436      (N : Node_Id) return Boolean;    -- Flag11
7437
7438    function All_Present
7439      (N : Node_Id) return Boolean;    -- Flag15
7440
7441    function Alternatives
7442      (N : Node_Id) return List_Id;    -- List4
7443
7444    function Ancestor_Part
7445      (N : Node_Id) return Node_Id;    -- Node3
7446
7447    function Array_Aggregate
7448      (N : Node_Id) return Node_Id;    -- Node3
7449
7450    function Assignment_OK
7451      (N : Node_Id) return Boolean;    -- Flag15
7452
7453    function Associated_Node
7454      (N : Node_Id) return Node_Id;    -- Node4
7455
7456    function At_End_Proc
7457      (N : Node_Id) return Node_Id;    -- Node1
7458
7459    function Attribute_Name
7460      (N : Node_Id) return Name_Id;    -- Name2
7461
7462    function Aux_Decls_Node
7463      (N : Node_Id) return Node_Id;    -- Node5
7464
7465    function Backwards_OK
7466      (N : Node_Id) return Boolean;    -- Flag6
7467
7468    function Bad_Is_Detected
7469      (N : Node_Id) return Boolean;    -- Flag15
7470
7471    function By_Ref
7472      (N : Node_Id) return Boolean;    -- Flag5
7473
7474    function Body_Required
7475      (N : Node_Id) return Boolean;    -- Flag13
7476
7477    function Body_To_Inline
7478      (N : Node_Id) return Node_Id;    -- Node3
7479
7480    function Box_Present
7481      (N : Node_Id) return Boolean;    -- Flag15
7482
7483    function Char_Literal_Value
7484      (N : Node_Id) return Uint;       -- Uint2
7485
7486    function Chars
7487      (N : Node_Id) return Name_Id;    -- Name1
7488
7489    function Check_Address_Alignment
7490      (N : Node_Id) return Boolean;    -- Flag11
7491
7492    function Choice_Parameter
7493      (N : Node_Id) return Node_Id;    -- Node2
7494
7495    function Choices
7496      (N : Node_Id) return List_Id;    -- List1
7497
7498    function Coextensions
7499       (N : Node_Id) return Elist_Id;  -- Elist4
7500
7501    function Comes_From_Extended_Return_Statement
7502      (N : Node_Id) return Boolean;    -- Flag18
7503
7504    function Compile_Time_Known_Aggregate
7505      (N : Node_Id) return Boolean;    -- Flag18
7506
7507    function Component_Associations
7508      (N : Node_Id) return List_Id;    -- List2
7509
7510    function Component_Clauses
7511      (N : Node_Id) return List_Id;    -- List3
7512
7513    function Component_Definition
7514      (N : Node_Id) return Node_Id;    -- Node4
7515
7516    function Component_Items
7517      (N : Node_Id) return List_Id;    -- List3
7518
7519    function Component_List
7520      (N : Node_Id) return Node_Id;    -- Node1
7521
7522    function Component_Name
7523      (N : Node_Id) return Node_Id;    -- Node1
7524
7525    function Condition
7526      (N : Node_Id) return Node_Id;    -- Node1
7527
7528    function Condition_Actions
7529      (N : Node_Id) return List_Id;    -- List3
7530
7531    function Config_Pragmas
7532      (N : Node_Id) return List_Id;    -- List4
7533
7534    function Constant_Present
7535      (N : Node_Id) return Boolean;    -- Flag17
7536
7537    function Constraint
7538      (N : Node_Id) return Node_Id;    -- Node3
7539
7540    function Constraints
7541      (N : Node_Id) return List_Id;    -- List1
7542
7543    function Context_Installed
7544      (N : Node_Id) return Boolean;    -- Flag13
7545
7546    function Context_Items
7547      (N : Node_Id) return List_Id;    -- List1
7548
7549    function Controlling_Argument
7550      (N : Node_Id) return Node_Id;    -- Node1
7551
7552    function Conversion_OK
7553      (N : Node_Id) return Boolean;    -- Flag14
7554
7555    function Corresponding_Body
7556      (N : Node_Id) return Node_Id;    -- Node5
7557
7558    function Corresponding_Formal_Spec
7559      (N : Node_Id) return Node_Id;    -- Node3
7560
7561    function Corresponding_Generic_Association
7562      (N : Node_Id) return Node_Id;    -- Node5
7563
7564    function Corresponding_Integer_Value
7565      (N : Node_Id) return Uint;       -- Uint4
7566
7567    function Corresponding_Spec
7568      (N : Node_Id) return Node_Id;    -- Node5
7569
7570    function Corresponding_Stub
7571      (N : Node_Id) return Node_Id;    -- Node3
7572
7573    function Dcheck_Function
7574      (N : Node_Id) return Entity_Id;  -- Node5
7575
7576    function Debug_Statement
7577      (N : Node_Id) return Node_Id;    -- Node3
7578
7579    function Declarations
7580      (N : Node_Id) return List_Id;    -- List2
7581
7582    function Default_Expression
7583      (N : Node_Id) return Node_Id;    -- Node5
7584
7585    function Default_Name
7586      (N : Node_Id) return Node_Id;    -- Node2
7587
7588    function Defining_Identifier
7589      (N : Node_Id) return Entity_Id;  -- Node1
7590
7591    function Defining_Unit_Name
7592      (N : Node_Id) return Node_Id;    -- Node1
7593
7594    function Delay_Alternative
7595      (N : Node_Id) return Node_Id;    -- Node4
7596
7597    function Delay_Statement
7598      (N : Node_Id) return Node_Id;    -- Node2
7599
7600    function Delta_Expression
7601      (N : Node_Id) return Node_Id;    -- Node3
7602
7603    function Digits_Expression
7604      (N : Node_Id) return Node_Id;    -- Node2
7605
7606    function Discr_Check_Funcs_Built
7607      (N : Node_Id) return Boolean;    -- Flag11
7608
7609    function Discrete_Choices
7610      (N : Node_Id) return List_Id;    -- List4
7611
7612    function Discrete_Range
7613      (N : Node_Id) return Node_Id;    -- Node4
7614
7615    function Discrete_Subtype_Definition
7616      (N : Node_Id) return Node_Id;    -- Node4
7617
7618    function Discrete_Subtype_Definitions
7619      (N : Node_Id) return List_Id;    -- List2
7620
7621    function Discriminant_Specifications
7622      (N : Node_Id) return List_Id;    -- List4
7623
7624    function Discriminant_Type
7625      (N : Node_Id) return Node_Id;    -- Node5
7626
7627    function Do_Accessibility_Check
7628      (N : Node_Id) return Boolean;    -- Flag13
7629
7630    function Do_Discriminant_Check
7631      (N : Node_Id) return Boolean;    -- Flag13
7632
7633    function Do_Division_Check
7634      (N : Node_Id) return Boolean;    -- Flag13
7635
7636    function Do_Length_Check
7637      (N : Node_Id) return Boolean;    -- Flag4
7638
7639    function Do_Overflow_Check
7640      (N : Node_Id) return Boolean;    -- Flag17
7641
7642    function Do_Range_Check
7643      (N : Node_Id) return Boolean;    -- Flag9
7644
7645    function Do_Storage_Check
7646      (N : Node_Id) return Boolean;    -- Flag17
7647
7648    function Do_Tag_Check
7649      (N : Node_Id) return Boolean;    -- Flag13
7650
7651    function Elaborate_All_Desirable
7652      (N : Node_Id) return Boolean;    -- Flag9
7653
7654    function Elaborate_All_Present
7655      (N : Node_Id) return Boolean;    -- Flag14
7656
7657    function Elaborate_Desirable
7658      (N : Node_Id) return Boolean;    -- Flag11
7659
7660    function Elaborate_Present
7661      (N : Node_Id) return Boolean;    -- Flag4
7662
7663    function Elaboration_Boolean
7664      (N : Node_Id) return Node_Id;    -- Node2
7665
7666    function Else_Actions
7667      (N : Node_Id) return List_Id;    -- List3
7668
7669    function Else_Statements
7670      (N : Node_Id) return List_Id;    -- List4
7671
7672    function Elsif_Parts
7673      (N : Node_Id) return List_Id;    -- List3
7674
7675    function Enclosing_Variant
7676      (N : Node_Id) return Node_Id;    -- Node2
7677
7678    function End_Label
7679      (N : Node_Id) return Node_Id;    -- Node4
7680
7681    function End_Span
7682      (N : Node_Id) return Uint;       -- Uint5
7683
7684    function Entity
7685      (N : Node_Id) return Node_Id;    -- Node4
7686
7687    function Entity_Or_Associated_Node
7688      (N : Node_Id) return Node_Id;    -- Node4
7689
7690    function Entry_Body_Formal_Part
7691      (N : Node_Id) return Node_Id;    -- Node5
7692
7693    function Entry_Call_Alternative
7694      (N : Node_Id) return Node_Id;    -- Node1
7695
7696    function Entry_Call_Statement
7697      (N : Node_Id) return Node_Id;    -- Node1
7698
7699    function Entry_Direct_Name
7700      (N : Node_Id) return Node_Id;    -- Node1
7701
7702    function Entry_Index
7703      (N : Node_Id) return Node_Id;    -- Node5
7704
7705    function Entry_Index_Specification
7706      (N : Node_Id) return Node_Id;    -- Node4
7707
7708    function Etype
7709      (N : Node_Id) return Node_Id;    -- Node5
7710
7711    function Exception_Choices
7712      (N : Node_Id) return List_Id;    -- List4
7713
7714    function Exception_Handlers
7715      (N : Node_Id) return List_Id;    -- List5
7716
7717    function Exception_Junk
7718      (N : Node_Id) return Boolean;    -- Flag8
7719
7720    function Exception_Label
7721      (N : Node_Id) return Node_Id;    -- Node5
7722
7723    function Explicit_Actual_Parameter
7724      (N : Node_Id) return Node_Id;    -- Node3
7725
7726    function Expansion_Delayed
7727      (N : Node_Id) return Boolean;    -- Flag11
7728
7729    function Explicit_Generic_Actual_Parameter
7730      (N : Node_Id) return Node_Id;    -- Node1
7731
7732    function Expression
7733      (N : Node_Id) return Node_Id;    -- Node3
7734
7735    function Expressions
7736      (N : Node_Id) return List_Id;    -- List1
7737
7738    function First_Bit
7739      (N : Node_Id) return Node_Id;    -- Node3
7740
7741    function First_Inlined_Subprogram
7742      (N : Node_Id) return Entity_Id;  -- Node3
7743
7744    function First_Name
7745      (N : Node_Id) return Boolean;    -- Flag5
7746
7747    function First_Named_Actual
7748      (N : Node_Id) return Node_Id;    -- Node4
7749
7750    function First_Real_Statement
7751      (N : Node_Id) return Node_Id;    -- Node2
7752
7753    function First_Subtype_Link
7754      (N : Node_Id) return Entity_Id;  -- Node5
7755
7756    function Float_Truncate
7757      (N : Node_Id) return Boolean;    -- Flag11
7758
7759    function Formal_Type_Definition
7760      (N : Node_Id) return Node_Id;    -- Node3
7761
7762    function Forwards_OK
7763      (N : Node_Id) return Boolean;    -- Flag5
7764
7765    function From_At_Mod
7766      (N : Node_Id) return Boolean;    -- Flag4
7767
7768    function From_Default
7769      (N : Node_Id) return Boolean;    -- Flag6
7770
7771    function Generic_Associations
7772      (N : Node_Id) return List_Id;    -- List3
7773
7774    function Generic_Formal_Declarations
7775      (N : Node_Id) return List_Id;    -- List2
7776
7777    function Generic_Parent
7778      (N : Node_Id) return Node_Id;    -- Node5
7779
7780    function Generic_Parent_Type
7781      (N : Node_Id) return Node_Id;    -- Node4
7782
7783    function Handled_Statement_Sequence
7784      (N : Node_Id) return Node_Id;    -- Node4
7785
7786    function Handler_List_Entry
7787      (N : Node_Id) return Node_Id;    -- Node2
7788
7789    function Has_Created_Identifier
7790      (N : Node_Id) return Boolean;    -- Flag15
7791
7792    function Has_Dynamic_Length_Check
7793      (N : Node_Id) return Boolean;    -- Flag10
7794
7795    function Has_Dynamic_Range_Check
7796      (N : Node_Id) return Boolean;    -- Flag12
7797
7798    function Has_Init_Expression
7799      (N : Node_Id) return Boolean;    -- Flag14
7800
7801    function Has_Local_Raise
7802      (N : Node_Id) return Boolean;    -- Flag8
7803
7804    function Has_No_Elaboration_Code
7805      (N : Node_Id) return Boolean;    -- Flag17
7806
7807    function Has_Priority_Pragma
7808      (N : Node_Id) return Boolean;    -- Flag6
7809
7810    function Has_Private_View
7811      (N : Node_Id) return Boolean;    -- Flag11
7812
7813    function Has_Self_Reference
7814      (N : Node_Id) return Boolean;    -- Flag13
7815
7816    function Has_Storage_Size_Pragma
7817      (N : Node_Id) return Boolean;    -- Flag5
7818
7819    function Has_Task_Info_Pragma
7820      (N : Node_Id) return Boolean;    -- Flag7
7821
7822    function Has_Task_Name_Pragma
7823      (N : Node_Id) return Boolean;    -- Flag8
7824
7825    function Has_Wide_Character
7826      (N : Node_Id) return Boolean;    -- Flag11
7827
7828    function Hidden_By_Use_Clause
7829      (N : Node_Id) return Elist_Id;   -- Elist4
7830
7831    function High_Bound
7832      (N : Node_Id) return Node_Id;    -- Node2
7833
7834    function Identifier
7835      (N : Node_Id) return Node_Id;    -- Node1
7836
7837    function Interface_List
7838      (N : Node_Id) return List_Id;    -- List2
7839
7840    function Interface_Present
7841      (N : Node_Id) return Boolean;    -- Flag16
7842
7843    function Implicit_With
7844      (N : Node_Id) return Boolean;    -- Flag16
7845
7846    function In_Present
7847      (N : Node_Id) return Boolean;    -- Flag15
7848
7849    function Includes_Infinities
7850      (N : Node_Id) return Boolean;    -- Flag11
7851
7852    function Instance_Spec
7853      (N : Node_Id) return Node_Id;    -- Node5
7854
7855    function Intval
7856      (N : Node_Id) return Uint;       -- Uint3
7857
7858    function Is_Asynchronous_Call_Block
7859      (N : Node_Id) return Boolean;    -- Flag7
7860
7861    function Is_Component_Left_Opnd
7862      (N : Node_Id) return Boolean;    -- Flag13
7863
7864    function Is_Component_Right_Opnd
7865      (N : Node_Id) return Boolean;    -- Flag14
7866
7867    function Is_Controlling_Actual
7868      (N : Node_Id) return Boolean;    -- Flag16
7869
7870    function Is_Dynamic_Coextension
7871      (N : Node_Id) return Boolean;    -- Flag18
7872
7873    function Is_Entry_Barrier_Function
7874      (N : Node_Id) return Boolean;    -- Flag8
7875
7876    function Is_Folded_In_Parser
7877      (N : Node_Id) return Boolean;    -- Flag4
7878
7879    function Is_In_Discriminant_Check
7880      (N : Node_Id) return Boolean;    -- Flag11
7881
7882    function Is_Machine_Number
7883      (N : Node_Id) return Boolean;    -- Flag11
7884
7885    function Is_Null_Loop
7886      (N : Node_Id) return Boolean;    -- Flag16
7887
7888    function Is_Overloaded
7889      (N : Node_Id) return Boolean;    -- Flag5
7890
7891    function Is_Power_Of_2_For_Shift
7892      (N : Node_Id) return Boolean;    -- Flag13
7893
7894    function Is_Protected_Subprogram_Body
7895      (N : Node_Id) return Boolean;    -- Flag7
7896
7897    function Is_Static_Coextension
7898      (N : Node_Id) return Boolean;    -- Flag14
7899
7900    function Is_Static_Expression
7901      (N : Node_Id) return Boolean;    -- Flag6
7902
7903    function Is_Subprogram_Descriptor
7904      (N : Node_Id) return Boolean;    -- Flag16
7905
7906    function Is_Task_Allocation_Block
7907      (N : Node_Id) return Boolean;    -- Flag6
7908
7909    function Is_Task_Master
7910      (N : Node_Id) return Boolean;    -- Flag5
7911
7912    function Iteration_Scheme
7913      (N : Node_Id) return Node_Id;    -- Node2
7914
7915    function Itype
7916      (N : Node_Id) return Entity_Id;  -- Node1
7917
7918    function Kill_Range_Check
7919      (N : Node_Id) return Boolean;    -- Flag11
7920
7921    function Label_Construct
7922      (N : Node_Id) return Node_Id;    -- Node2
7923
7924    function Left_Opnd
7925      (N : Node_Id) return Node_Id;    -- Node2
7926
7927    function Last_Bit
7928      (N : Node_Id) return Node_Id;    -- Node4
7929
7930    function Last_Name
7931      (N : Node_Id) return Boolean;    -- Flag6
7932
7933    function Library_Unit
7934      (N : Node_Id) return Node_Id;    -- Node4
7935
7936    function Limited_View_Installed
7937      (N : Node_Id) return Boolean;    -- Flag18
7938
7939    function Limited_Present
7940      (N : Node_Id) return Boolean;    -- Flag17
7941
7942    function Literals
7943      (N : Node_Id) return List_Id;    -- List1
7944
7945    function Local_Raise_Not_OK
7946      (N : Node_Id) return Boolean;    -- Flag7
7947
7948    function Local_Raise_Statements
7949      (N : Node_Id) return Elist_Id;   -- Elist1
7950
7951    function Loop_Actions
7952      (N : Node_Id) return List_Id;    -- List2
7953
7954    function Loop_Parameter_Specification
7955      (N : Node_Id) return Node_Id;    -- Node4
7956
7957    function Low_Bound
7958      (N : Node_Id) return Node_Id;    -- Node1
7959
7960    function Mod_Clause
7961      (N : Node_Id) return Node_Id;    -- Node2
7962
7963    function More_Ids
7964      (N : Node_Id) return Boolean;    -- Flag5
7965
7966    function Must_Be_Byte_Aligned
7967      (N : Node_Id) return Boolean;    -- Flag14
7968
7969    function Must_Not_Freeze
7970      (N : Node_Id) return Boolean;    -- Flag8
7971
7972    function Must_Not_Override
7973      (N : Node_Id) return Boolean;    -- Flag15
7974
7975    function Must_Override
7976      (N : Node_Id) return Boolean;    -- Flag14
7977
7978    function Name
7979      (N : Node_Id) return Node_Id;    -- Node2
7980
7981    function Names
7982      (N : Node_Id) return List_Id;    -- List2
7983
7984    function Next_Entity
7985      (N : Node_Id) return Node_Id;    -- Node2
7986
7987    function Next_Named_Actual
7988      (N : Node_Id) return Node_Id;    -- Node4
7989
7990    function Next_Rep_Item
7991      (N : Node_Id) return Node_Id;    -- Node5
7992
7993    function Next_Use_Clause
7994      (N : Node_Id) return Node_Id;    -- Node3
7995
7996    function No_Ctrl_Actions
7997      (N : Node_Id) return Boolean;    -- Flag7
7998
7999    function No_Elaboration_Check
8000      (N : Node_Id) return Boolean;    -- Flag14
8001
8002    function No_Entities_Ref_In_Spec
8003      (N : Node_Id) return Boolean;    -- Flag8
8004
8005    function No_Initialization
8006      (N : Node_Id) return Boolean;    -- Flag13
8007
8008    function No_Truncation
8009      (N : Node_Id) return Boolean;    -- Flag17
8010
8011    function Null_Present
8012      (N : Node_Id) return Boolean;    -- Flag13
8013
8014    function Null_Exclusion_Present
8015      (N : Node_Id) return Boolean;    -- Flag11
8016
8017    function Null_Record_Present
8018      (N : Node_Id) return Boolean;    -- Flag17
8019
8020    function Object_Definition
8021      (N : Node_Id) return Node_Id;    -- Node4
8022
8023    function Original_Discriminant
8024      (N : Node_Id) return Node_Id;    -- Node2
8025
8026    function Original_Entity
8027      (N : Node_Id) return Entity_Id;  -- Node2
8028
8029    function Others_Discrete_Choices
8030      (N : Node_Id) return List_Id;    -- List1
8031
8032    function Out_Present
8033      (N : Node_Id) return Boolean;    -- Flag17
8034
8035    function Parameter_Associations
8036      (N : Node_Id) return List_Id;    -- List3
8037
8038    function Parameter_List_Truncated
8039      (N : Node_Id) return Boolean;    -- Flag17
8040
8041    function Parameter_Specifications
8042      (N : Node_Id) return List_Id;    -- List3
8043
8044    function Parameter_Type
8045      (N : Node_Id) return Node_Id;    -- Node2
8046
8047    function Parent_Spec
8048      (N : Node_Id) return Node_Id;    -- Node4
8049
8050    function Position
8051      (N : Node_Id) return Node_Id;    -- Node2
8052
8053    function Pragma_Argument_Associations
8054      (N : Node_Id) return List_Id;    -- List2
8055
8056    function Pragmas_After
8057      (N : Node_Id) return List_Id;    -- List5
8058
8059    function Pragmas_Before
8060      (N : Node_Id) return List_Id;    -- List4
8061
8062    function Prefix
8063      (N : Node_Id) return Node_Id;    -- Node3
8064
8065    function Present_Expr
8066      (N : Node_Id) return Uint;       -- Uint3
8067
8068    function Prev_Ids
8069      (N : Node_Id) return Boolean;    -- Flag6
8070
8071    function Print_In_Hex
8072      (N : Node_Id) return Boolean;    -- Flag13
8073
8074    function Private_Declarations
8075      (N : Node_Id) return List_Id;    -- List3
8076
8077    function Private_Present
8078      (N : Node_Id) return Boolean;    -- Flag15
8079
8080    function Procedure_To_Call
8081      (N : Node_Id) return Node_Id;    -- Node2
8082
8083    function Proper_Body
8084      (N : Node_Id) return Node_Id;    -- Node1
8085
8086    function Protected_Definition
8087      (N : Node_Id) return Node_Id;    -- Node3
8088
8089    function Protected_Present
8090      (N : Node_Id) return Boolean;    -- Flag6
8091
8092    function Raises_Constraint_Error
8093      (N : Node_Id) return Boolean;    -- Flag7
8094
8095    function Range_Constraint
8096      (N : Node_Id) return Node_Id;    -- Node4
8097
8098    function Range_Expression
8099      (N : Node_Id) return Node_Id;    -- Node4
8100
8101    function Real_Range_Specification
8102      (N : Node_Id) return Node_Id;    -- Node4
8103
8104    function Realval
8105      (N : Node_Id) return Ureal;      -- Ureal3
8106
8107    function Reason
8108      (N : Node_Id) return Uint;       -- Uint3
8109
8110    function Record_Extension_Part
8111      (N : Node_Id) return Node_Id;    -- Node3
8112
8113    function Redundant_Use
8114      (N : Node_Id) return Boolean;    -- Flag13
8115
8116    function Renaming_Exception
8117      (N : Node_Id) return Node_Id;    -- Node2
8118
8119    function Result_Definition
8120      (N : Node_Id) return Node_Id;    -- Node4
8121
8122    function Return_Object_Declarations
8123      (N : Node_Id) return List_Id;    -- List3
8124
8125    function Return_Statement_Entity
8126      (N : Node_Id) return Node_Id;    -- Node5
8127
8128    function Reverse_Present
8129      (N : Node_Id) return Boolean;    -- Flag15
8130
8131    function Right_Opnd
8132      (N : Node_Id) return Node_Id;    -- Node3
8133
8134    function Rounded_Result
8135      (N : Node_Id) return Boolean;    -- Flag18
8136
8137    function Scope
8138      (N : Node_Id) return Node_Id;    -- Node3
8139
8140    function Select_Alternatives
8141      (N : Node_Id) return List_Id;    -- List1
8142
8143    function Selector_Name
8144      (N : Node_Id) return Node_Id;    -- Node2
8145
8146    function Selector_Names
8147      (N : Node_Id) return List_Id;    -- List1
8148
8149    function Shift_Count_OK
8150      (N : Node_Id) return Boolean;    -- Flag4
8151
8152    function Source_Type
8153      (N : Node_Id) return Entity_Id;  -- Node1
8154
8155    function Specification
8156      (N : Node_Id) return Node_Id;    -- Node1
8157
8158    function Statements
8159      (N : Node_Id) return List_Id;    -- List3
8160
8161    function Static_Processing_OK
8162      (N : Node_Id) return Boolean;    -- Flag4
8163
8164    function Storage_Pool
8165      (N : Node_Id) return Node_Id;    -- Node1
8166
8167    function Strval
8168      (N : Node_Id) return String_Id;  -- Str3
8169
8170    function Subtype_Indication
8171      (N : Node_Id) return Node_Id;    -- Node5
8172
8173    function Subtype_Mark
8174      (N : Node_Id) return Node_Id;    -- Node4
8175
8176    function Subtype_Marks
8177      (N : Node_Id) return List_Id;    -- List2
8178
8179    function Synchronized_Present
8180      (N : Node_Id) return Boolean;    -- Flag7
8181
8182    function Tagged_Present
8183      (N : Node_Id) return Boolean;    -- Flag15
8184
8185    function Target_Type
8186      (N : Node_Id) return Entity_Id;  -- Node2
8187
8188    function Task_Definition
8189      (N : Node_Id) return Node_Id;    -- Node3
8190
8191    function Task_Present
8192      (N : Node_Id) return Boolean;    -- Flag5
8193
8194    function Then_Actions
8195      (N : Node_Id) return List_Id;    -- List2
8196
8197    function Then_Statements
8198      (N : Node_Id) return List_Id;    -- List2
8199
8200    function Treat_Fixed_As_Integer
8201      (N : Node_Id) return Boolean;    -- Flag14
8202
8203    function Triggering_Alternative
8204      (N : Node_Id) return Node_Id;    -- Node1
8205
8206    function Triggering_Statement
8207      (N : Node_Id) return Node_Id;    -- Node1
8208
8209    function TSS_Elist
8210      (N : Node_Id) return Elist_Id;   -- Elist3
8211
8212    function Type_Definition
8213      (N : Node_Id) return Node_Id;    -- Node3
8214
8215    function Unit
8216      (N : Node_Id) return Node_Id;    -- Node2
8217
8218    function Unknown_Discriminants_Present
8219      (N : Node_Id) return Boolean;    -- Flag13
8220
8221    function Unreferenced_In_Spec
8222      (N : Node_Id) return Boolean;    -- Flag7
8223
8224    function Variant_Part
8225      (N : Node_Id) return Node_Id;    -- Node4
8226
8227    function Variants
8228      (N : Node_Id) return List_Id;    -- List1
8229
8230    function Visible_Declarations
8231      (N : Node_Id) return List_Id;    -- List2
8232
8233    function Was_Originally_Stub
8234      (N : Node_Id) return Boolean;    -- Flag13
8235
8236    function Zero_Cost_Handling
8237      (N : Node_Id) return Boolean;    -- Flag5
8238
8239    --  End functions (note used by xsinfo utility program to end processing)
8240
8241    ----------------------------
8242    -- Node Update Procedures --
8243    ----------------------------
8244
8245    --  These are the corresponding node update routines, which again provide
8246    --  a high level logical access with type checking. In addition to setting
8247    --  the indicated field of the node N to the given Val, in the case of
8248    --  tree pointers (List1-4), the parent pointer of the Val node is set to
8249    --  point back to node N. This automates the setting of the parent pointer.
8250
8251    procedure Set_ABE_Is_Certain
8252      (N : Node_Id; Val : Boolean := True);    -- Flag18
8253
8254    procedure Set_Abort_Present
8255      (N : Node_Id; Val : Boolean := True);    -- Flag15
8256
8257    procedure Set_Abortable_Part
8258      (N : Node_Id; Val : Node_Id);            -- Node2
8259
8260    procedure Set_Abstract_Present
8261      (N : Node_Id; Val : Boolean := True);    -- Flag4
8262
8263    procedure Set_Accept_Handler_Records
8264      (N : Node_Id; Val : List_Id);            -- List5
8265
8266    procedure Set_Accept_Statement
8267      (N : Node_Id; Val : Node_Id);            -- Node2
8268
8269    procedure Set_Access_Definition
8270      (N : Node_Id; Val : Node_Id);            -- Node3
8271
8272    procedure Set_Access_To_Subprogram_Definition
8273      (N : Node_Id; Val : Node_Id);            -- Node3
8274
8275    procedure Set_Access_Types_To_Process
8276      (N : Node_Id; Val : Elist_Id);           -- Elist2
8277
8278    procedure Set_Actions
8279      (N : Node_Id; Val : List_Id);            -- List1
8280
8281    procedure Set_Activation_Chain_Entity
8282      (N : Node_Id; Val : Node_Id);            -- Node3
8283
8284    procedure Set_Acts_As_Spec
8285      (N : Node_Id; Val : Boolean := True);    -- Flag4
8286
8287    procedure Set_Actual_Designated_Subtype
8288      (N : Node_Id; Val : Node_Id);            -- Node4
8289
8290    procedure Set_Aggregate_Bounds
8291      (N : Node_Id; Val : Node_Id);            -- Node3
8292
8293    procedure Set_Aliased_Present
8294      (N : Node_Id; Val : Boolean := True);    -- Flag4
8295
8296    procedure Set_All_Others
8297      (N : Node_Id; Val : Boolean := True);    -- Flag11
8298
8299    procedure Set_All_Present
8300      (N : Node_Id; Val : Boolean := True);    -- Flag15
8301
8302    procedure Set_Alternatives
8303      (N : Node_Id; Val : List_Id);            -- List4
8304
8305    procedure Set_Ancestor_Part
8306      (N : Node_Id; Val : Node_Id);            -- Node3
8307
8308    procedure Set_Array_Aggregate
8309      (N : Node_Id; Val : Node_Id);            -- Node3
8310
8311    procedure Set_Assignment_OK
8312      (N : Node_Id; Val : Boolean := True);    -- Flag15
8313
8314    procedure Set_Associated_Node
8315      (N : Node_Id; Val : Node_Id);            -- Node4
8316
8317    procedure Set_Attribute_Name
8318      (N : Node_Id; Val : Name_Id);            -- Name2
8319
8320    procedure Set_At_End_Proc
8321      (N : Node_Id; Val : Node_Id);            -- Node1
8322
8323    procedure Set_Aux_Decls_Node
8324      (N : Node_Id; Val : Node_Id);            -- Node5
8325
8326    procedure Set_Backwards_OK
8327      (N : Node_Id; Val : Boolean := True);    -- Flag6
8328
8329    procedure Set_Bad_Is_Detected
8330      (N : Node_Id; Val : Boolean := True);    -- Flag15
8331
8332    procedure Set_Body_Required
8333      (N : Node_Id; Val : Boolean := True);    -- Flag13
8334
8335    procedure Set_Body_To_Inline
8336      (N : Node_Id; Val : Node_Id);            -- Node3
8337
8338    procedure Set_Box_Present
8339      (N : Node_Id; Val : Boolean := True);    -- Flag15
8340
8341    procedure Set_By_Ref
8342      (N : Node_Id; Val : Boolean := True);    -- Flag5
8343
8344    procedure Set_Char_Literal_Value
8345      (N : Node_Id; Val : Uint);               -- Uint2
8346
8347    procedure Set_Chars
8348      (N : Node_Id; Val : Name_Id);            -- Name1
8349
8350    procedure Set_Check_Address_Alignment
8351      (N : Node_Id; Val : Boolean := True);    -- Flag11
8352
8353    procedure Set_Choice_Parameter
8354      (N : Node_Id; Val : Node_Id);            -- Node2
8355
8356    procedure Set_Coextensions
8357      (N : Node_Id; Val : Elist_Id);           -- Elist4
8358
8359    procedure Set_Choices
8360      (N : Node_Id; Val : List_Id);            -- List1
8361
8362    procedure Set_Comes_From_Extended_Return_Statement
8363      (N : Node_Id; Val : Boolean := True);    -- Flag18
8364
8365    procedure Set_Compile_Time_Known_Aggregate
8366      (N : Node_Id; Val : Boolean := True);    -- Flag18
8367
8368    procedure Set_Component_Associations
8369      (N : Node_Id; Val : List_Id);            -- List2
8370
8371    procedure Set_Component_Clauses
8372      (N : Node_Id; Val : List_Id);            -- List3
8373
8374    procedure Set_Component_Definition
8375      (N : Node_Id; Val : Node_Id);            -- Node4
8376
8377    procedure Set_Component_Items
8378      (N : Node_Id; Val : List_Id);            -- List3
8379
8380    procedure Set_Component_List
8381      (N : Node_Id; Val : Node_Id);            -- Node1
8382
8383    procedure Set_Component_Name
8384      (N : Node_Id; Val : Node_Id);            -- Node1
8385
8386    procedure Set_Condition
8387      (N : Node_Id; Val : Node_Id);            -- Node1
8388
8389    procedure Set_Condition_Actions
8390      (N : Node_Id; Val : List_Id);            -- List3
8391
8392    procedure Set_Config_Pragmas
8393      (N : Node_Id; Val : List_Id);            -- List4
8394
8395    procedure Set_Constant_Present
8396      (N : Node_Id; Val : Boolean := True);    -- Flag17
8397
8398    procedure Set_Constraint
8399      (N : Node_Id; Val : Node_Id);            -- Node3
8400
8401    procedure Set_Constraints
8402      (N : Node_Id; Val : List_Id);            -- List1
8403
8404    procedure Set_Context_Installed
8405      (N : Node_Id; Val : Boolean := True);    -- Flag13
8406
8407    procedure Set_Context_Items
8408      (N : Node_Id; Val : List_Id);            -- List1
8409
8410    procedure Set_Controlling_Argument
8411      (N : Node_Id; Val : Node_Id);            -- Node1
8412
8413    procedure Set_Conversion_OK
8414      (N : Node_Id; Val : Boolean := True);    -- Flag14
8415
8416    procedure Set_Corresponding_Body
8417      (N : Node_Id; Val : Node_Id);            -- Node5
8418
8419    procedure Set_Corresponding_Formal_Spec
8420      (N : Node_Id; Val : Node_Id);            -- Node3
8421
8422    procedure Set_Corresponding_Generic_Association
8423      (N : Node_Id; Val : Node_Id);            -- Node5
8424
8425    procedure Set_Corresponding_Integer_Value
8426      (N : Node_Id; Val : Uint);               -- Uint4
8427
8428    procedure Set_Corresponding_Spec
8429      (N : Node_Id; Val : Node_Id);            -- Node5
8430
8431    procedure Set_Corresponding_Stub
8432      (N : Node_Id; Val : Node_Id);            -- Node3
8433
8434    procedure Set_Dcheck_Function
8435      (N : Node_Id; Val : Entity_Id);          -- Node5
8436
8437    procedure Set_Debug_Statement
8438      (N : Node_Id; Val : Node_Id);            -- Node3
8439
8440    procedure Set_Declarations
8441      (N : Node_Id; Val : List_Id);            -- List2
8442
8443    procedure Set_Default_Expression
8444      (N : Node_Id; Val : Node_Id);            -- Node5
8445
8446    procedure Set_Default_Name
8447      (N : Node_Id; Val : Node_Id);            -- Node2
8448
8449    procedure Set_Defining_Identifier
8450      (N : Node_Id; Val : Entity_Id);          -- Node1
8451
8452    procedure Set_Defining_Unit_Name
8453      (N : Node_Id; Val : Node_Id);            -- Node1
8454
8455    procedure Set_Delay_Alternative
8456      (N : Node_Id; Val : Node_Id);            -- Node4
8457
8458    procedure Set_Delay_Statement
8459      (N : Node_Id; Val : Node_Id);            -- Node2
8460
8461    procedure Set_Delta_Expression
8462      (N : Node_Id; Val : Node_Id);            -- Node3
8463
8464    procedure Set_Digits_Expression
8465      (N : Node_Id; Val : Node_Id);            -- Node2
8466
8467    procedure Set_Discr_Check_Funcs_Built
8468      (N : Node_Id; Val : Boolean := True);    -- Flag11
8469
8470    procedure Set_Discrete_Choices
8471      (N : Node_Id; Val : List_Id);            -- List4
8472
8473    procedure Set_Discrete_Range
8474      (N : Node_Id; Val : Node_Id);            -- Node4
8475
8476    procedure Set_Discrete_Subtype_Definition
8477      (N : Node_Id; Val : Node_Id);            -- Node4
8478
8479    procedure Set_Discrete_Subtype_Definitions
8480      (N : Node_Id; Val : List_Id);            -- List2
8481
8482    procedure Set_Discriminant_Specifications
8483      (N : Node_Id; Val : List_Id);            -- List4
8484
8485    procedure Set_Discriminant_Type
8486      (N : Node_Id; Val : Node_Id);            -- Node5
8487
8488    procedure Set_Do_Accessibility_Check
8489      (N : Node_Id; Val : Boolean := True);    -- Flag13
8490
8491    procedure Set_Do_Discriminant_Check
8492      (N : Node_Id; Val : Boolean := True);    -- Flag13
8493
8494    procedure Set_Do_Division_Check
8495      (N : Node_Id; Val : Boolean := True);    -- Flag13
8496
8497    procedure Set_Do_Length_Check
8498      (N : Node_Id; Val : Boolean := True);    -- Flag4
8499
8500    procedure Set_Do_Overflow_Check
8501      (N : Node_Id; Val : Boolean := True);    -- Flag17
8502
8503    procedure Set_Do_Range_Check
8504      (N : Node_Id; Val : Boolean := True);    -- Flag9
8505
8506    procedure Set_Do_Storage_Check
8507      (N : Node_Id; Val : Boolean := True);    -- Flag17
8508
8509    procedure Set_Do_Tag_Check
8510      (N : Node_Id; Val : Boolean := True);    -- Flag13
8511
8512    procedure Set_Elaborate_All_Desirable
8513      (N : Node_Id; Val : Boolean := True);    -- Flag9
8514
8515    procedure Set_Elaborate_All_Present
8516      (N : Node_Id; Val : Boolean := True);    -- Flag14
8517
8518    procedure Set_Elaborate_Desirable
8519      (N : Node_Id; Val : Boolean := True);    -- Flag11
8520
8521    procedure Set_Elaborate_Present
8522      (N : Node_Id; Val : Boolean := True);    -- Flag4
8523
8524    procedure Set_Elaboration_Boolean
8525      (N : Node_Id; Val : Node_Id);            -- Node2
8526
8527    procedure Set_Else_Actions
8528      (N : Node_Id; Val : List_Id);            -- List3
8529
8530    procedure Set_Else_Statements
8531      (N : Node_Id; Val : List_Id);            -- List4
8532
8533    procedure Set_Elsif_Parts
8534      (N : Node_Id; Val : List_Id);            -- List3
8535
8536    procedure Set_Enclosing_Variant
8537      (N : Node_Id; Val : Node_Id);            -- Node2
8538
8539    procedure Set_End_Label
8540      (N : Node_Id; Val : Node_Id);            -- Node4
8541
8542    procedure Set_End_Span
8543      (N : Node_Id; Val : Uint);               -- Uint5
8544
8545    procedure Set_Entity
8546      (N : Node_Id; Val : Node_Id);            -- Node4
8547
8548    procedure Set_Entry_Body_Formal_Part
8549      (N : Node_Id; Val : Node_Id);            -- Node5
8550
8551    procedure Set_Entry_Call_Alternative
8552      (N : Node_Id; Val : Node_Id);            -- Node1
8553
8554    procedure Set_Entry_Call_Statement
8555      (N : Node_Id; Val : Node_Id);            -- Node1
8556
8557    procedure Set_Entry_Direct_Name
8558      (N : Node_Id; Val : Node_Id);            -- Node1
8559
8560    procedure Set_Entry_Index
8561      (N : Node_Id; Val : Node_Id);            -- Node5
8562
8563    procedure Set_Entry_Index_Specification
8564      (N : Node_Id; Val : Node_Id);            -- Node4
8565
8566    procedure Set_Etype
8567      (N : Node_Id; Val : Node_Id);            -- Node5
8568
8569    procedure Set_Exception_Choices
8570      (N : Node_Id; Val : List_Id);            -- List4
8571
8572    procedure Set_Exception_Handlers
8573      (N : Node_Id; Val : List_Id);            -- List5
8574
8575    procedure Set_Exception_Junk
8576      (N : Node_Id; Val : Boolean := True);    -- Flag8
8577
8578    procedure Set_Exception_Label
8579      (N : Node_Id; Val : Node_Id);            -- Node5
8580
8581    procedure Set_Expansion_Delayed
8582      (N : Node_Id; Val : Boolean := True);    -- Flag11
8583
8584    procedure Set_Explicit_Actual_Parameter
8585      (N : Node_Id; Val : Node_Id);            -- Node3
8586
8587    procedure Set_Explicit_Generic_Actual_Parameter
8588      (N : Node_Id; Val : Node_Id);            -- Node1
8589
8590    procedure Set_Expression
8591      (N : Node_Id; Val : Node_Id);            -- Node3
8592
8593    procedure Set_Expressions
8594      (N : Node_Id; Val : List_Id);            -- List1
8595
8596    procedure Set_First_Bit
8597      (N : Node_Id; Val : Node_Id);            -- Node3
8598
8599    procedure Set_First_Inlined_Subprogram
8600      (N : Node_Id; Val : Entity_Id);          -- Node3
8601
8602    procedure Set_First_Name
8603      (N : Node_Id; Val : Boolean := True);    -- Flag5
8604
8605    procedure Set_First_Named_Actual
8606      (N : Node_Id; Val : Node_Id);            -- Node4
8607
8608    procedure Set_First_Real_Statement
8609      (N : Node_Id; Val : Node_Id);            -- Node2
8610
8611    procedure Set_First_Subtype_Link
8612      (N : Node_Id; Val : Entity_Id);          -- Node5
8613
8614    procedure Set_Float_Truncate
8615      (N : Node_Id; Val : Boolean := True);    -- Flag11
8616
8617    procedure Set_Formal_Type_Definition
8618      (N : Node_Id; Val : Node_Id);            -- Node3
8619
8620    procedure Set_Forwards_OK
8621      (N : Node_Id; Val : Boolean := True);    -- Flag5
8622
8623    procedure Set_From_At_Mod
8624      (N : Node_Id; Val : Boolean := True);    -- Flag4
8625
8626    procedure Set_From_Default
8627      (N : Node_Id; Val : Boolean := True);    -- Flag6
8628
8629    procedure Set_Generic_Associations
8630      (N : Node_Id; Val : List_Id);            -- List3
8631
8632    procedure Set_Generic_Formal_Declarations
8633      (N : Node_Id; Val : List_Id);            -- List2
8634
8635    procedure Set_Generic_Parent
8636      (N : Node_Id; Val : Node_Id);            -- Node5
8637
8638    procedure Set_Generic_Parent_Type
8639      (N : Node_Id; Val : Node_Id);            -- Node4
8640
8641    procedure Set_Handled_Statement_Sequence
8642      (N : Node_Id; Val : Node_Id);            -- Node4
8643
8644    procedure Set_Handler_List_Entry
8645      (N : Node_Id; Val : Node_Id);            -- Node2
8646
8647    procedure Set_Has_Created_Identifier
8648      (N : Node_Id; Val : Boolean := True);    -- Flag15
8649
8650    procedure Set_Has_Dynamic_Length_Check
8651      (N : Node_Id; Val : Boolean := True);    -- Flag10
8652
8653    procedure Set_Has_Dynamic_Range_Check
8654      (N : Node_Id; Val : Boolean := True);    -- Flag12
8655
8656    procedure Set_Has_Init_Expression
8657      (N : Node_Id; Val : Boolean := True);    -- Flag14
8658
8659    procedure Set_Has_Local_Raise
8660      (N : Node_Id; Val : Boolean := True);    -- Flag8
8661
8662    procedure Set_Has_No_Elaboration_Code
8663      (N : Node_Id; Val : Boolean := True);    -- Flag17
8664
8665    procedure Set_Has_Priority_Pragma
8666      (N : Node_Id; Val : Boolean := True);    -- Flag6
8667
8668    procedure Set_Has_Private_View
8669      (N : Node_Id; Val : Boolean := True);    -- Flag11
8670
8671    procedure Set_Has_Self_Reference
8672      (N : Node_Id; Val : Boolean := True);    -- Flag13
8673
8674    procedure Set_Has_Storage_Size_Pragma
8675      (N : Node_Id; Val : Boolean := True);    -- Flag5
8676
8677    procedure Set_Has_Task_Info_Pragma
8678      (N : Node_Id; Val : Boolean := True);    -- Flag7
8679
8680    procedure Set_Has_Task_Name_Pragma
8681      (N : Node_Id; Val : Boolean := True);    -- Flag8
8682
8683    procedure Set_Has_Wide_Character
8684      (N : Node_Id; Val : Boolean := True);    -- Flag11
8685
8686    procedure Set_Hidden_By_Use_Clause
8687      (N : Node_Id; Val : Elist_Id);           -- Elist4
8688
8689    procedure Set_High_Bound
8690      (N : Node_Id; Val : Node_Id);            -- Node2
8691
8692    procedure Set_Identifier
8693      (N : Node_Id; Val : Node_Id);            -- Node1
8694
8695    procedure Set_Interface_List
8696      (N : Node_Id; Val : List_Id);            -- List2
8697
8698    procedure Set_Interface_Present
8699      (N : Node_Id; Val : Boolean := True);    -- Flag16
8700
8701    procedure Set_Implicit_With
8702      (N : Node_Id; Val : Boolean := True);    -- Flag16
8703
8704    procedure Set_In_Present
8705      (N : Node_Id; Val : Boolean := True);    -- Flag15
8706
8707    procedure Set_Includes_Infinities
8708      (N : Node_Id; Val : Boolean := True);    -- Flag11
8709
8710    procedure Set_Instance_Spec
8711      (N : Node_Id; Val : Node_Id);            -- Node5
8712
8713    procedure Set_Intval
8714      (N : Node_Id; Val : Uint);               -- Uint3
8715
8716    procedure Set_Is_Asynchronous_Call_Block
8717      (N : Node_Id; Val : Boolean := True);    -- Flag7
8718
8719    procedure Set_Is_Component_Left_Opnd
8720      (N : Node_Id; Val : Boolean := True);    -- Flag13
8721
8722    procedure Set_Is_Component_Right_Opnd
8723      (N : Node_Id; Val : Boolean := True);    -- Flag14
8724
8725    procedure Set_Is_Controlling_Actual
8726      (N : Node_Id; Val : Boolean := True);    -- Flag16
8727
8728    procedure Set_Is_Dynamic_Coextension
8729      (N : Node_Id; Val : Boolean := True);    -- Flag18
8730
8731    procedure Set_Is_Entry_Barrier_Function
8732      (N : Node_Id; Val : Boolean := True);    -- Flag8
8733
8734    procedure Set_Is_Folded_In_Parser
8735      (N : Node_Id; Val : Boolean := True);    -- Flag4
8736
8737    procedure Set_Is_In_Discriminant_Check
8738      (N : Node_Id; Val : Boolean := True);    -- Flag11
8739
8740    procedure Set_Is_Machine_Number
8741      (N : Node_Id; Val : Boolean := True);    -- Flag11
8742
8743    procedure Set_Is_Null_Loop
8744      (N : Node_Id; Val : Boolean := True);    -- Flag16
8745
8746    procedure Set_Is_Overloaded
8747      (N : Node_Id; Val : Boolean := True);    -- Flag5
8748
8749    procedure Set_Is_Power_Of_2_For_Shift
8750      (N : Node_Id; Val : Boolean := True);    -- Flag13
8751
8752    procedure Set_Is_Protected_Subprogram_Body
8753      (N : Node_Id; Val : Boolean := True);    -- Flag7
8754
8755    procedure Set_Is_Static_Coextension
8756      (N : Node_Id; Val : Boolean := True);    -- Flag14
8757
8758    procedure Set_Is_Static_Expression
8759      (N : Node_Id; Val : Boolean := True);    -- Flag6
8760
8761    procedure Set_Is_Subprogram_Descriptor
8762      (N : Node_Id; Val : Boolean := True);    -- Flag16
8763
8764    procedure Set_Is_Task_Allocation_Block
8765      (N : Node_Id; Val : Boolean := True);    -- Flag6
8766
8767    procedure Set_Is_Task_Master
8768      (N : Node_Id; Val : Boolean := True);    -- Flag5
8769
8770    procedure Set_Iteration_Scheme
8771      (N : Node_Id; Val : Node_Id);            -- Node2
8772
8773    procedure Set_Itype
8774      (N : Node_Id; Val : Entity_Id);          -- Node1
8775
8776    procedure Set_Kill_Range_Check
8777      (N : Node_Id; Val : Boolean := True);    -- Flag11
8778
8779    procedure Set_Last_Bit
8780      (N : Node_Id; Val : Node_Id);            -- Node4
8781
8782    procedure Set_Last_Name
8783      (N : Node_Id; Val : Boolean := True);    -- Flag6
8784
8785    procedure Set_Library_Unit
8786      (N : Node_Id; Val : Node_Id);            -- Node4
8787
8788    procedure Set_Label_Construct
8789      (N : Node_Id; Val : Node_Id);            -- Node2
8790
8791    procedure Set_Left_Opnd
8792      (N : Node_Id; Val : Node_Id);            -- Node2
8793
8794    procedure Set_Limited_View_Installed
8795      (N : Node_Id; Val : Boolean := True);    -- Flag18
8796
8797    procedure Set_Limited_Present
8798      (N : Node_Id; Val : Boolean := True);    -- Flag17
8799
8800    procedure Set_Literals
8801      (N : Node_Id; Val : List_Id);            -- List1
8802
8803    procedure Set_Local_Raise_Not_OK
8804      (N : Node_Id; Val : Boolean := True);    -- Flag7
8805
8806    procedure Set_Local_Raise_Statements
8807      (N : Node_Id; Val : Elist_Id);           -- Elist1
8808
8809    procedure Set_Loop_Actions
8810      (N : Node_Id; Val : List_Id);            -- List2
8811
8812    procedure Set_Loop_Parameter_Specification
8813      (N : Node_Id; Val : Node_Id);            -- Node4
8814
8815    procedure Set_Low_Bound
8816      (N : Node_Id; Val : Node_Id);            -- Node1
8817
8818    procedure Set_Mod_Clause
8819      (N : Node_Id; Val : Node_Id);            -- Node2
8820
8821    procedure Set_More_Ids
8822      (N : Node_Id; Val : Boolean := True);    -- Flag5
8823
8824    procedure Set_Must_Be_Byte_Aligned
8825      (N : Node_Id; Val : Boolean := True);    -- Flag14
8826
8827    procedure Set_Must_Not_Freeze
8828      (N : Node_Id; Val : Boolean := True);    -- Flag8
8829
8830    procedure Set_Must_Not_Override
8831      (N : Node_Id; Val : Boolean := True);    -- Flag15
8832
8833    procedure Set_Must_Override
8834      (N : Node_Id; Val : Boolean := True);    -- Flag14
8835
8836    procedure Set_Name
8837      (N : Node_Id; Val : Node_Id);            -- Node2
8838
8839    procedure Set_Names
8840      (N : Node_Id; Val : List_Id);            -- List2
8841
8842    procedure Set_Next_Entity
8843      (N : Node_Id; Val : Node_Id);            -- Node2
8844
8845    procedure Set_Next_Named_Actual
8846      (N : Node_Id; Val : Node_Id);            -- Node4
8847
8848    procedure Set_Next_Rep_Item
8849      (N : Node_Id; Val : Node_Id);            -- Node5
8850
8851    procedure Set_Next_Use_Clause
8852      (N : Node_Id; Val : Node_Id);            -- Node3
8853
8854    procedure Set_No_Ctrl_Actions
8855      (N : Node_Id; Val : Boolean := True);    -- Flag7
8856
8857    procedure Set_No_Elaboration_Check
8858      (N : Node_Id; Val : Boolean := True);    -- Flag14
8859
8860    procedure Set_No_Entities_Ref_In_Spec
8861      (N : Node_Id; Val : Boolean := True);    -- Flag8
8862
8863    procedure Set_No_Initialization
8864      (N : Node_Id; Val : Boolean := True);    -- Flag13
8865
8866    procedure Set_No_Truncation
8867      (N : Node_Id; Val : Boolean := True);    -- Flag17
8868
8869    procedure Set_Null_Present
8870      (N : Node_Id; Val : Boolean := True);    -- Flag13
8871
8872    procedure Set_Null_Exclusion_Present
8873      (N : Node_Id; Val : Boolean := True);    -- Flag11
8874
8875    procedure Set_Null_Record_Present
8876      (N : Node_Id; Val : Boolean := True);    -- Flag17
8877
8878    procedure Set_Object_Definition
8879      (N : Node_Id; Val : Node_Id);            -- Node4
8880
8881    procedure Set_Original_Discriminant
8882      (N : Node_Id; Val : Node_Id);            -- Node2
8883
8884    procedure Set_Original_Entity
8885      (N : Node_Id; Val : Entity_Id);          -- Node2
8886
8887    procedure Set_Others_Discrete_Choices
8888      (N : Node_Id; Val : List_Id);            -- List1
8889
8890    procedure Set_Out_Present
8891      (N : Node_Id; Val : Boolean := True);    -- Flag17
8892
8893    procedure Set_Parameter_Associations
8894      (N : Node_Id; Val : List_Id);            -- List3
8895
8896    procedure Set_Parameter_List_Truncated
8897      (N : Node_Id; Val : Boolean := True);    -- Flag17
8898
8899    procedure Set_Parameter_Specifications
8900      (N : Node_Id; Val : List_Id);            -- List3
8901
8902    procedure Set_Parameter_Type
8903      (N : Node_Id; Val : Node_Id);            -- Node2
8904
8905    procedure Set_Parent_Spec
8906      (N : Node_Id; Val : Node_Id);            -- Node4
8907
8908    procedure Set_Position
8909      (N : Node_Id; Val : Node_Id);            -- Node2
8910
8911    procedure Set_Pragma_Argument_Associations
8912      (N : Node_Id; Val : List_Id);            -- List2
8913
8914    procedure Set_Pragmas_After
8915      (N : Node_Id; Val : List_Id);            -- List5
8916
8917    procedure Set_Pragmas_Before
8918      (N : Node_Id; Val : List_Id);            -- List4
8919
8920    procedure Set_Prefix
8921      (N : Node_Id; Val : Node_Id);            -- Node3
8922
8923    procedure Set_Present_Expr
8924      (N : Node_Id; Val : Uint);               -- Uint3
8925
8926    procedure Set_Prev_Ids
8927      (N : Node_Id; Val : Boolean := True);    -- Flag6
8928
8929    procedure Set_Print_In_Hex
8930      (N : Node_Id; Val : Boolean := True);    -- Flag13
8931
8932    procedure Set_Private_Declarations
8933      (N : Node_Id; Val : List_Id);            -- List3
8934
8935    procedure Set_Private_Present
8936      (N : Node_Id; Val : Boolean := True);    -- Flag15
8937
8938    procedure Set_Procedure_To_Call
8939      (N : Node_Id; Val : Node_Id);            -- Node2
8940
8941    procedure Set_Proper_Body
8942      (N : Node_Id; Val : Node_Id);            -- Node1
8943
8944    procedure Set_Protected_Definition
8945      (N : Node_Id; Val : Node_Id);            -- Node3
8946
8947    procedure Set_Protected_Present
8948      (N : Node_Id; Val : Boolean := True);    -- Flag6
8949
8950    procedure Set_Raises_Constraint_Error
8951      (N : Node_Id; Val : Boolean := True);    -- Flag7
8952
8953    procedure Set_Range_Constraint
8954      (N : Node_Id; Val : Node_Id);            -- Node4
8955
8956    procedure Set_Range_Expression
8957      (N : Node_Id; Val : Node_Id);            -- Node4
8958
8959    procedure Set_Real_Range_Specification
8960      (N : Node_Id; Val : Node_Id);            -- Node4
8961
8962    procedure Set_Realval
8963      (N : Node_Id; Val : Ureal);              -- Ureal3
8964
8965    procedure Set_Reason
8966      (N : Node_Id; Val : Uint);               -- Uint3
8967
8968    procedure Set_Record_Extension_Part
8969      (N : Node_Id; Val : Node_Id);            -- Node3
8970
8971    procedure Set_Redundant_Use
8972      (N : Node_Id; Val : Boolean := True);    -- Flag13
8973
8974    procedure Set_Renaming_Exception
8975      (N : Node_Id; Val : Node_Id);            -- Node2
8976
8977    procedure Set_Result_Definition
8978      (N : Node_Id; Val : Node_Id);            -- Node4
8979
8980    procedure Set_Return_Object_Declarations
8981      (N : Node_Id; Val : List_Id);            -- List3
8982
8983    procedure Set_Return_Statement_Entity
8984      (N : Node_Id; Val : Node_Id);            -- Node5
8985
8986    procedure Set_Reverse_Present
8987      (N : Node_Id; Val : Boolean := True);    -- Flag15
8988
8989    procedure Set_Right_Opnd
8990      (N : Node_Id; Val : Node_Id);            -- Node3
8991
8992    procedure Set_Rounded_Result
8993      (N : Node_Id; Val : Boolean := True);    -- Flag18
8994
8995    procedure Set_Scope
8996      (N : Node_Id; Val : Node_Id);            -- Node3
8997
8998    procedure Set_Select_Alternatives
8999      (N : Node_Id; Val : List_Id);            -- List1
9000
9001    procedure Set_Selector_Name
9002      (N : Node_Id; Val : Node_Id);            -- Node2
9003
9004    procedure Set_Selector_Names
9005      (N : Node_Id; Val : List_Id);            -- List1
9006
9007    procedure Set_Shift_Count_OK
9008      (N : Node_Id; Val : Boolean := True);    -- Flag4
9009
9010    procedure Set_Source_Type
9011      (N : Node_Id; Val : Entity_Id);          -- Node1
9012
9013    procedure Set_Specification
9014      (N : Node_Id; Val : Node_Id);            -- Node1
9015
9016    procedure Set_Statements
9017      (N : Node_Id; Val : List_Id);            -- List3
9018
9019    procedure Set_Static_Processing_OK
9020      (N : Node_Id; Val : Boolean);            -- Flag4
9021
9022    procedure Set_Storage_Pool
9023      (N : Node_Id; Val : Node_Id);            -- Node1
9024
9025    procedure Set_Strval
9026      (N : Node_Id; Val : String_Id);          -- Str3
9027
9028    procedure Set_Subtype_Indication
9029      (N : Node_Id; Val : Node_Id);            -- Node5
9030
9031    procedure Set_Subtype_Mark
9032      (N : Node_Id; Val : Node_Id);            -- Node4
9033
9034    procedure Set_Subtype_Marks
9035      (N : Node_Id; Val : List_Id);            -- List2
9036
9037    procedure Set_Synchronized_Present
9038      (N : Node_Id; Val : Boolean := True);    -- Flag7
9039
9040    procedure Set_Tagged_Present
9041      (N : Node_Id; Val : Boolean := True);    -- Flag15
9042
9043    procedure Set_Target_Type
9044      (N : Node_Id; Val : Entity_Id);          -- Node2
9045
9046    procedure Set_Task_Definition
9047      (N : Node_Id; Val : Node_Id);            -- Node3
9048
9049    procedure Set_Task_Present
9050      (N : Node_Id; Val : Boolean := True);    -- Flag5
9051
9052    procedure Set_Then_Actions
9053      (N : Node_Id; Val : List_Id);            -- List2
9054
9055    procedure Set_Then_Statements
9056      (N : Node_Id; Val : List_Id);            -- List2
9057
9058    procedure Set_Treat_Fixed_As_Integer
9059      (N : Node_Id; Val : Boolean := True);    -- Flag14
9060
9061    procedure Set_Triggering_Alternative
9062      (N : Node_Id; Val : Node_Id);            -- Node1
9063
9064    procedure Set_Triggering_Statement
9065      (N : Node_Id; Val : Node_Id);            -- Node1
9066
9067    procedure Set_TSS_Elist
9068      (N : Node_Id; Val : Elist_Id);           -- Elist3
9069
9070    procedure Set_Type_Definition
9071      (N : Node_Id; Val : Node_Id);            -- Node3
9072
9073    procedure Set_Unit
9074      (N : Node_Id; Val : Node_Id);            -- Node2
9075
9076    procedure Set_Unknown_Discriminants_Present
9077      (N : Node_Id; Val : Boolean := True);    -- Flag13
9078
9079    procedure Set_Unreferenced_In_Spec
9080      (N : Node_Id; Val : Boolean := True);    -- Flag7
9081
9082    procedure Set_Variant_Part
9083      (N : Node_Id; Val : Node_Id);            -- Node4
9084
9085    procedure Set_Variants
9086      (N : Node_Id; Val : List_Id);            -- List1
9087
9088    procedure Set_Visible_Declarations
9089      (N : Node_Id; Val : List_Id);            -- List2
9090
9091    procedure Set_Was_Originally_Stub
9092      (N : Node_Id; Val : Boolean := True);    -- Flag13
9093
9094    procedure Set_Zero_Cost_Handling
9095      (N : Node_Id; Val : Boolean := True);    -- Flag5
9096
9097    -------------------------
9098    -- Iterator Procedures --
9099    -------------------------
9100
9101    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9102
9103    procedure Next_Entity       (N : in out Node_Id);
9104    procedure Next_Named_Actual (N : in out Node_Id);
9105    procedure Next_Rep_Item     (N : in out Node_Id);
9106    procedure Next_Use_Clause   (N : in out Node_Id);
9107
9108    --------------------------------------
9109    -- Logical Access to End_Span Field --
9110    --------------------------------------
9111
9112    function End_Location (N : Node_Id) return Source_Ptr;
9113    --  N is an N_If_Statement or N_Case_Statement node, and this
9114    --  function returns the location of the IF token in the END IF
9115    --  sequence by translating the value of the End_Span field.
9116
9117    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9118    --  N is an N_If_Statement or N_Case_Statement node. This procedure
9119    --  sets the End_Span field to correspond to the given value S. In
9120    --  other words, End_Span is set to the difference between S and
9121    --  Sloc (N), the starting location.
9122
9123    -----------------------------
9124    -- Syntactic Parent Tables --
9125    -----------------------------
9126
9127    --  These tables show for each node, and for each of the five fields,
9128    --  whether the corresponding field is syntactic (True) or semantic (False).
9129    --  Unused entries are also set to False.
9130
9131    subtype Field_Num is Natural range 1 .. 5;
9132
9133    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9134
9135    --  Following entries can be built automatically from the sinfo sources
9136    --  using the makeisf utility (currently this program is in spitbol).
9137
9138      N_Identifier =>
9139        (1 => True,    --  Chars (Name1)
9140         2 => False,   --  Original_Discriminant (Node2-Sem)
9141         3 => False,   --  unused
9142         4 => False,   --  Entity (Node4-Sem)
9143         5 => False),  --  Etype (Node5-Sem)
9144
9145      N_Integer_Literal =>
9146        (1 => False,   --  unused
9147         2 => False,   --  Original_Entity (Node2-Sem)
9148         3 => True,    --  Intval (Uint3)
9149         4 => False,   --  unused
9150         5 => False),  --  Etype (Node5-Sem)
9151
9152      N_Real_Literal =>
9153        (1 => False,   --  unused
9154         2 => False,   --  Original_Entity (Node2-Sem)
9155         3 => True,    --  Realval (Ureal3)
9156         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
9157         5 => False),  --  Etype (Node5-Sem)
9158
9159      N_Character_Literal =>
9160        (1 => True,    --  Chars (Name1)
9161         2 => True,    --  Char_Literal_Value (Uint2)
9162         3 => False,   --  unused
9163         4 => False,   --  Entity (Node4-Sem)
9164         5 => False),  --  Etype (Node5-Sem)
9165
9166      N_String_Literal =>
9167        (1 => False,   --  unused
9168         2 => False,   --  unused
9169         3 => True,    --  Strval (Str3)
9170         4 => False,   --  unused
9171         5 => False),  --  Etype (Node5-Sem)
9172
9173      N_Pragma =>
9174        (1 => True,    --  Chars (Name1)
9175         2 => True,    --  Pragma_Argument_Associations (List2)
9176         3 => True,    --  Debug_Statement (Node3)
9177         4 => False,   --  Entity (Node4-Sem)
9178         5 => False),  --  Next_Rep_Item (Node5-Sem)
9179
9180      N_Pragma_Argument_Association =>
9181        (1 => True,    --  Chars (Name1)
9182         2 => False,   --  unused
9183         3 => True,    --  Expression (Node3)
9184         4 => False,   --  unused
9185         5 => False),  --  unused
9186
9187      N_Defining_Identifier =>
9188        (1 => True,    --  Chars (Name1)
9189         2 => False,   --  Next_Entity (Node2-Sem)
9190         3 => False,   --  Scope (Node3-Sem)
9191         4 => False,   --  unused
9192         5 => False),  --  Etype (Node5-Sem)
9193
9194      N_Full_Type_Declaration =>
9195        (1 => True,    --  Defining_Identifier (Node1)
9196         2 => False,   --  unused
9197         3 => True,    --  Type_Definition (Node3)
9198         4 => True,    --  Discriminant_Specifications (List4)
9199         5 => False),  --  unused
9200
9201      N_Subtype_Declaration =>
9202        (1 => True,    --  Defining_Identifier (Node1)
9203         2 => False,   --  unused
9204         3 => False,   --  unused
9205         4 => False,   --  Generic_Parent_Type (Node4-Sem)
9206         5 => True),   --  Subtype_Indication (Node5)
9207
9208      N_Subtype_Indication =>
9209        (1 => False,   --  unused
9210         2 => False,   --  unused
9211         3 => True,    --  Constraint (Node3)
9212         4 => True,    --  Subtype_Mark (Node4)
9213         5 => False),  --  Etype (Node5-Sem)
9214
9215      N_Object_Declaration =>
9216        (1 => True,    --  Defining_Identifier (Node1)
9217         2 => False,   --  Handler_List_Entry (Node2-Sem)
9218         3 => True,    --  Expression (Node3)
9219         4 => True,    --  Object_Definition (Node4)
9220         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
9221
9222      N_Number_Declaration =>
9223        (1 => True,    --  Defining_Identifier (Node1)
9224         2 => False,   --  unused
9225         3 => True,    --  Expression (Node3)
9226         4 => False,   --  unused
9227         5 => False),  --  unused
9228
9229      N_Derived_Type_Definition =>
9230        (1 => False,   --  unused
9231         2 => True,    --  Interface_List (List2)
9232         3 => True,    --  Record_Extension_Part (Node3)
9233         4 => False,   --  unused
9234         5 => True),   --  Subtype_Indication (Node5)
9235
9236      N_Range_Constraint =>
9237        (1 => False,   --  unused
9238         2 => False,   --  unused
9239         3 => False,   --  unused
9240         4 => True,    --  Range_Expression (Node4)
9241         5 => False),  --  unused
9242
9243      N_Range =>
9244        (1 => True,    --  Low_Bound (Node1)
9245         2 => True,    --  High_Bound (Node2)
9246         3 => False,   --  unused
9247         4 => False,   --  unused
9248         5 => False),  --  Etype (Node5-Sem)
9249
9250      N_Enumeration_Type_Definition =>
9251        (1 => True,    --  Literals (List1)
9252         2 => False,   --  unused
9253         3 => False,   --  unused
9254         4 => True,    --  End_Label (Node4)
9255         5 => False),  --  unused
9256
9257      N_Defining_Character_Literal =>
9258        (1 => True,    --  Chars (Name1)
9259         2 => False,   --  Next_Entity (Node2-Sem)
9260         3 => False,   --  Scope (Node3-Sem)
9261         4 => False,   --  unused
9262         5 => False),  --  Etype (Node5-Sem)
9263
9264      N_Signed_Integer_Type_Definition =>
9265        (1 => True,    --  Low_Bound (Node1)
9266         2 => True,    --  High_Bound (Node2)
9267         3 => False,   --  unused
9268         4 => False,   --  unused
9269         5 => False),  --  unused
9270
9271      N_Modular_Type_Definition =>
9272        (1 => False,   --  unused
9273         2 => False,   --  unused
9274         3 => True,    --  Expression (Node3)
9275         4 => False,   --  unused
9276         5 => False),  --  unused
9277
9278      N_Floating_Point_Definition =>
9279        (1 => False,   --  unused
9280         2 => True,    --  Digits_Expression (Node2)
9281         3 => False,   --  unused
9282         4 => True,    --  Real_Range_Specification (Node4)
9283         5 => False),  --  unused
9284
9285      N_Real_Range_Specification =>
9286        (1 => True,    --  Low_Bound (Node1)
9287         2 => True,    --  High_Bound (Node2)
9288         3 => False,   --  unused
9289         4 => False,   --  unused
9290         5 => False),  --  unused
9291
9292      N_Ordinary_Fixed_Point_Definition =>
9293        (1 => False,   --  unused
9294         2 => False,   --  unused
9295         3 => True,    --  Delta_Expression (Node3)
9296         4 => True,    --  Real_Range_Specification (Node4)
9297         5 => False),  --  unused
9298
9299      N_Decimal_Fixed_Point_Definition =>
9300        (1 => False,   --  unused
9301         2 => True,    --  Digits_Expression (Node2)
9302         3 => True,    --  Delta_Expression (Node3)
9303         4 => True,    --  Real_Range_Specification (Node4)
9304         5 => False),  --  unused
9305
9306      N_Digits_Constraint =>
9307        (1 => False,   --  unused
9308         2 => True,    --  Digits_Expression (Node2)
9309         3 => False,   --  unused
9310         4 => True,    --  Range_Constraint (Node4)
9311         5 => False),  --  unused
9312
9313      N_Unconstrained_Array_Definition =>
9314        (1 => False,   --  unused
9315         2 => True,    --  Subtype_Marks (List2)
9316         3 => False,   --  unused
9317         4 => True,    --  Component_Definition (Node4)
9318         5 => False),  --  unused
9319
9320      N_Constrained_Array_Definition =>
9321        (1 => False,   --  unused
9322         2 => True,    --  Discrete_Subtype_Definitions (List2)
9323         3 => False,   --  unused
9324         4 => True,    --  Component_Definition (Node4)
9325         5 => False),  --  unused
9326
9327      N_Component_Definition =>
9328        (1 => False,   --  unused
9329         2 => False,   --  unused
9330         3 => True,    --  Access_Definition (Node3)
9331         4 => False,   --  unused
9332         5 => True),   --  Subtype_Indication (Node5)
9333
9334      N_Discriminant_Specification =>
9335        (1 => True,    --  Defining_Identifier (Node1)
9336         2 => False,   --  unused
9337         3 => True,    --  Expression (Node3)
9338         4 => False,   --  unused
9339         5 => True),   --  Discriminant_Type (Node5)
9340
9341      N_Index_Or_Discriminant_Constraint =>
9342        (1 => True,    --  Constraints (List1)
9343         2 => False,   --  unused
9344         3 => False,   --  unused
9345         4 => False,   --  unused
9346         5 => False),  --  unused
9347
9348      N_Discriminant_Association =>
9349        (1 => True,    --  Selector_Names (List1)
9350         2 => False,   --  unused
9351         3 => True,    --  Expression (Node3)
9352         4 => False,   --  unused
9353         5 => False),  --  unused
9354
9355      N_Record_Definition =>
9356        (1 => True,    --  Component_List (Node1)
9357         2 => True,    --  Interface_List (List2)
9358         3 => False,   --  unused
9359         4 => True,    --  End_Label (Node4)
9360         5 => False),  --  unused
9361
9362      N_Component_List =>
9363        (1 => False,   --  unused
9364         2 => False,   --  unused
9365         3 => True,    --  Component_Items (List3)
9366         4 => True,    --  Variant_Part (Node4)
9367         5 => False),  --  unused
9368
9369      N_Component_Declaration =>
9370        (1 => True,    --  Defining_Identifier (Node1)
9371         2 => False,   --  unused
9372         3 => True,    --  Expression (Node3)
9373         4 => True,    --  Component_Definition (Node4)
9374         5 => False),  --  unused
9375
9376      N_Variant_Part =>
9377        (1 => True,    --  Variants (List1)
9378         2 => True,    --  Name (Node2)
9379         3 => False,   --  unused
9380         4 => False,   --  unused
9381         5 => False),  --  unused
9382
9383      N_Variant =>
9384        (1 => True,    --  Component_List (Node1)
9385         2 => False,   --  Enclosing_Variant (Node2-Sem)
9386         3 => False,   --  Present_Expr (Uint3-Sem)
9387         4 => True,    --  Discrete_Choices (List4)
9388         5 => False),  --  Dcheck_Function (Node5-Sem)
9389
9390      N_Others_Choice =>
9391        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
9392         2 => False,   --  unused
9393         3 => False,   --  unused
9394         4 => False,   --  unused
9395         5 => False),  --  unused
9396
9397      N_Access_To_Object_Definition =>
9398        (1 => False,   --  unused
9399         2 => False,   --  unused
9400         3 => False,   --  unused
9401         4 => False,   --  unused
9402         5 => True),   --  Subtype_Indication (Node5)
9403
9404      N_Access_Function_Definition =>
9405        (1 => False,   --  unused
9406         2 => False,   --  unused
9407         3 => True,    --  Parameter_Specifications (List3)
9408         4 => True,    --  Result_Definition (Node4)
9409         5 => False),  --  unused
9410
9411      N_Access_Procedure_Definition =>
9412        (1 => False,   --  unused
9413         2 => False,   --  unused
9414         3 => True,    --  Parameter_Specifications (List3)
9415         4 => False,   --  unused
9416         5 => False),  --  unused
9417
9418      N_Access_Definition =>
9419        (1 => False,   --  unused
9420         2 => False,   --  unused
9421         3 => True,    --  Access_To_Subprogram_Definition (Node3)
9422         4 => True,    --  Subtype_Mark (Node4)
9423         5 => False),  --  unused
9424
9425      N_Incomplete_Type_Declaration =>
9426        (1 => True,    --  Defining_Identifier (Node1)
9427         2 => False,   --  unused
9428         3 => False,   --  unused
9429         4 => True,    --  Discriminant_Specifications (List4)
9430         5 => False),  --  unused
9431
9432      N_Explicit_Dereference =>
9433        (1 => False,   --  unused
9434         2 => False,   --  unused
9435         3 => True,    --  Prefix (Node3)
9436         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
9437         5 => False),  --  Etype (Node5-Sem)
9438
9439      N_Indexed_Component =>
9440        (1 => True,    --  Expressions (List1)
9441         2 => False,   --  unused
9442         3 => True,    --  Prefix (Node3)
9443         4 => False,   --  unused
9444         5 => False),  --  Etype (Node5-Sem)
9445
9446      N_Slice =>
9447        (1 => False,   --  unused
9448         2 => False,   --  unused
9449         3 => True,    --  Prefix (Node3)
9450         4 => True,    --  Discrete_Range (Node4)
9451         5 => False),  --  Etype (Node5-Sem)
9452
9453      N_Selected_Component =>
9454        (1 => False,   --  unused
9455         2 => True,    --  Selector_Name (Node2)
9456         3 => True,    --  Prefix (Node3)
9457         4 => False,   --  unused
9458         5 => False),  --  Etype (Node5-Sem)
9459
9460      N_Attribute_Reference =>
9461        (1 => True,    --  Expressions (List1)
9462         2 => True,    --  Attribute_Name (Name2)
9463         3 => True,    --  Prefix (Node3)
9464         4 => False,   --  Entity (Node4-Sem)
9465         5 => False),  --  Etype (Node5-Sem)
9466
9467      N_Aggregate =>
9468        (1 => True,    --  Expressions (List1)
9469         2 => True,    --  Component_Associations (List2)
9470         3 => False,   --  Aggregate_Bounds (Node3-Sem)
9471         4 => False,   --  unused
9472         5 => False),  --  Etype (Node5-Sem)
9473
9474      N_Component_Association =>
9475        (1 => True,    --  Choices (List1)
9476         2 => False,   --  Loop_Actions (List2-Sem)
9477         3 => True,    --  Expression (Node3)
9478         4 => False,   --  unused
9479         5 => False),  --  unused
9480
9481      N_Extension_Aggregate =>
9482        (1 => True,    --  Expressions (List1)
9483         2 => True,    --  Component_Associations (List2)
9484         3 => True,    --  Ancestor_Part (Node3)
9485         4 => False,   --  unused
9486         5 => False),  --  Etype (Node5-Sem)
9487
9488      N_Null =>
9489        (1 => False,   --  unused
9490         2 => False,   --  unused
9491         3 => False,   --  unused
9492         4 => False,   --  unused
9493         5 => False),  --  Etype (Node5-Sem)
9494
9495      N_And_Then =>
9496        (1 => False,   --  Actions (List1-Sem)
9497         2 => True,    --  Left_Opnd (Node2)
9498         3 => True,    --  Right_Opnd (Node3)
9499         4 => False,   --  unused
9500         5 => False),  --  Etype (Node5-Sem)
9501
9502      N_Or_Else =>
9503        (1 => False,   --  Actions (List1-Sem)
9504         2 => True,    --  Left_Opnd (Node2)
9505         3 => True,    --  Right_Opnd (Node3)
9506         4 => False,   --  unused
9507         5 => False),  --  Etype (Node5-Sem)
9508
9509      N_In =>
9510        (1 => False,   --  unused
9511         2 => True,    --  Left_Opnd (Node2)
9512         3 => True,    --  Right_Opnd (Node3)
9513         4 => False,   --  unused
9514         5 => False),  --  Etype (Node5-Sem)
9515
9516      N_Not_In =>
9517        (1 => False,   --  unused
9518         2 => True,    --  Left_Opnd (Node2)
9519         3 => True,    --  Right_Opnd (Node3)
9520         4 => False,   --  unused
9521         5 => False),  --  Etype (Node5-Sem)
9522
9523      N_Op_And =>
9524        (1 => True,    --  Chars (Name1)
9525         2 => True,    --  Left_Opnd (Node2)
9526         3 => True,    --  Right_Opnd (Node3)
9527         4 => False,   --  Entity (Node4-Sem)
9528         5 => False),  --  Etype (Node5-Sem)
9529
9530      N_Op_Or =>
9531        (1 => True,    --  Chars (Name1)
9532         2 => True,    --  Left_Opnd (Node2)
9533         3 => True,    --  Right_Opnd (Node3)
9534         4 => False,   --  Entity (Node4-Sem)
9535         5 => False),  --  Etype (Node5-Sem)
9536
9537      N_Op_Xor =>
9538        (1 => True,    --  Chars (Name1)
9539         2 => True,    --  Left_Opnd (Node2)
9540         3 => True,    --  Right_Opnd (Node3)
9541         4 => False,   --  Entity (Node4-Sem)
9542         5 => False),  --  Etype (Node5-Sem)
9543
9544      N_Op_Eq =>
9545        (1 => True,    --  Chars (Name1)
9546         2 => True,    --  Left_Opnd (Node2)
9547         3 => True,    --  Right_Opnd (Node3)
9548         4 => False,   --  Entity (Node4-Sem)
9549         5 => False),  --  Etype (Node5-Sem)
9550
9551      N_Op_Ne =>
9552        (1 => True,    --  Chars (Name1)
9553         2 => True,    --  Left_Opnd (Node2)
9554         3 => True,    --  Right_Opnd (Node3)
9555         4 => False,   --  Entity (Node4-Sem)
9556         5 => False),  --  Etype (Node5-Sem)
9557
9558      N_Op_Lt =>
9559        (1 => True,    --  Chars (Name1)
9560         2 => True,    --  Left_Opnd (Node2)
9561         3 => True,    --  Right_Opnd (Node3)
9562         4 => False,   --  Entity (Node4-Sem)
9563         5 => False),  --  Etype (Node5-Sem)
9564
9565      N_Op_Le =>
9566        (1 => True,    --  Chars (Name1)
9567         2 => True,    --  Left_Opnd (Node2)
9568         3 => True,    --  Right_Opnd (Node3)
9569         4 => False,   --  Entity (Node4-Sem)
9570         5 => False),  --  Etype (Node5-Sem)
9571
9572      N_Op_Gt =>
9573        (1 => True,    --  Chars (Name1)
9574         2 => True,    --  Left_Opnd (Node2)
9575         3 => True,    --  Right_Opnd (Node3)
9576         4 => False,   --  Entity (Node4-Sem)
9577         5 => False),  --  Etype (Node5-Sem)
9578
9579      N_Op_Ge =>
9580        (1 => True,    --  Chars (Name1)
9581         2 => True,    --  Left_Opnd (Node2)
9582         3 => True,    --  Right_Opnd (Node3)
9583         4 => False,   --  Entity (Node4-Sem)
9584         5 => False),  --  Etype (Node5-Sem)
9585
9586      N_Op_Add =>
9587        (1 => True,    --  Chars (Name1)
9588         2 => True,    --  Left_Opnd (Node2)
9589         3 => True,    --  Right_Opnd (Node3)
9590         4 => False,   --  Entity (Node4-Sem)
9591         5 => False),  --  Etype (Node5-Sem)
9592
9593      N_Op_Subtract =>
9594        (1 => True,    --  Chars (Name1)
9595         2 => True,    --  Left_Opnd (Node2)
9596         3 => True,    --  Right_Opnd (Node3)
9597         4 => False,   --  Entity (Node4-Sem)
9598         5 => False),  --  Etype (Node5-Sem)
9599
9600      N_Op_Concat =>
9601        (1 => True,    --  Chars (Name1)
9602         2 => True,    --  Left_Opnd (Node2)
9603         3 => True,    --  Right_Opnd (Node3)
9604         4 => False,   --  Entity (Node4-Sem)
9605         5 => False),  --  Etype (Node5-Sem)
9606
9607      N_Op_Multiply =>
9608        (1 => True,    --  Chars (Name1)
9609         2 => True,    --  Left_Opnd (Node2)
9610         3 => True,    --  Right_Opnd (Node3)
9611         4 => False,   --  Entity (Node4-Sem)
9612         5 => False),  --  Etype (Node5-Sem)
9613
9614      N_Op_Divide =>
9615        (1 => True,    --  Chars (Name1)
9616         2 => True,    --  Left_Opnd (Node2)
9617         3 => True,    --  Right_Opnd (Node3)
9618         4 => False,   --  Entity (Node4-Sem)
9619         5 => False),  --  Etype (Node5-Sem)
9620
9621      N_Op_Mod =>
9622        (1 => True,    --  Chars (Name1)
9623         2 => True,    --  Left_Opnd (Node2)
9624         3 => True,    --  Right_Opnd (Node3)
9625         4 => False,   --  Entity (Node4-Sem)
9626         5 => False),  --  Etype (Node5-Sem)
9627
9628      N_Op_Rem =>
9629        (1 => True,    --  Chars (Name1)
9630         2 => True,    --  Left_Opnd (Node2)
9631         3 => True,    --  Right_Opnd (Node3)
9632         4 => False,   --  Entity (Node4-Sem)
9633         5 => False),  --  Etype (Node5-Sem)
9634
9635      N_Op_Expon =>
9636        (1 => True,    --  Chars (Name1)
9637         2 => True,    --  Left_Opnd (Node2)
9638         3 => True,    --  Right_Opnd (Node3)
9639         4 => False,   --  Entity (Node4-Sem)
9640         5 => False),  --  Etype (Node5-Sem)
9641
9642      N_Op_Plus =>
9643        (1 => True,    --  Chars (Name1)
9644         2 => False,   --  unused
9645         3 => True,    --  Right_Opnd (Node3)
9646         4 => False,   --  Entity (Node4-Sem)
9647         5 => False),  --  Etype (Node5-Sem)
9648
9649      N_Op_Minus =>
9650        (1 => True,    --  Chars (Name1)
9651         2 => False,   --  unused
9652         3 => True,    --  Right_Opnd (Node3)
9653         4 => False,   --  Entity (Node4-Sem)
9654         5 => False),  --  Etype (Node5-Sem)
9655
9656      N_Op_Abs =>
9657        (1 => True,    --  Chars (Name1)
9658         2 => False,   --  unused
9659         3 => True,    --  Right_Opnd (Node3)
9660         4 => False,   --  Entity (Node4-Sem)
9661         5 => False),  --  Etype (Node5-Sem)
9662
9663      N_Op_Not =>
9664        (1 => True,    --  Chars (Name1)
9665         2 => False,   --  unused
9666         3 => True,    --  Right_Opnd (Node3)
9667         4 => False,   --  Entity (Node4-Sem)
9668         5 => False),  --  Etype (Node5-Sem)
9669
9670      N_Type_Conversion =>
9671        (1 => False,   --  unused
9672         2 => False,   --  unused
9673         3 => True,    --  Expression (Node3)
9674         4 => True,    --  Subtype_Mark (Node4)
9675         5 => False),  --  Etype (Node5-Sem)
9676
9677      N_Qualified_Expression =>
9678        (1 => False,   --  unused
9679         2 => False,   --  unused
9680         3 => True,    --  Expression (Node3)
9681         4 => True,    --  Subtype_Mark (Node4)
9682         5 => False),  --  Etype (Node5-Sem)
9683
9684      N_Allocator =>
9685        (1 => False,   --  Storage_Pool (Node1-Sem)
9686         2 => False,   --  Procedure_To_Call (Node2-Sem)
9687         3 => True,    --  Expression (Node3)
9688         4 => False,   --  Coextensions (Elist4-Sem)
9689         5 => False),  --  Etype (Node5-Sem)
9690
9691      N_Null_Statement =>
9692        (1 => False,   --  unused
9693         2 => False,   --  unused
9694         3 => False,   --  unused
9695         4 => False,   --  unused
9696         5 => False),  --  unused
9697
9698      N_Label =>
9699        (1 => True,    --  Identifier (Node1)
9700         2 => False,   --  unused
9701         3 => False,   --  unused
9702         4 => False,   --  unused
9703         5 => False),  --  unused
9704
9705      N_Assignment_Statement =>
9706        (1 => False,   --  unused
9707         2 => True,    --  Name (Node2)
9708         3 => True,    --  Expression (Node3)
9709         4 => False,   --  unused
9710         5 => False),  --  unused
9711
9712      N_If_Statement =>
9713        (1 => True,    --  Condition (Node1)
9714         2 => True,    --  Then_Statements (List2)
9715         3 => True,    --  Elsif_Parts (List3)
9716         4 => True,    --  Else_Statements (List4)
9717         5 => True),   --  End_Span (Uint5)
9718
9719      N_Elsif_Part =>
9720        (1 => True,    --  Condition (Node1)
9721         2 => True,    --  Then_Statements (List2)
9722         3 => False,   --  Condition_Actions (List3-Sem)
9723         4 => False,   --  unused
9724         5 => False),  --  unused
9725
9726      N_Case_Statement =>
9727        (1 => False,   --  unused
9728         2 => False,   --  unused
9729         3 => True,    --  Expression (Node3)
9730         4 => True,    --  Alternatives (List4)
9731         5 => True),   --  End_Span (Uint5)
9732
9733      N_Case_Statement_Alternative =>
9734        (1 => False,   --  unused
9735         2 => False,   --  unused
9736         3 => True,    --  Statements (List3)
9737         4 => True,    --  Discrete_Choices (List4)
9738         5 => False),  --  unused
9739
9740      N_Loop_Statement =>
9741        (1 => True,    --  Identifier (Node1)
9742         2 => True,    --  Iteration_Scheme (Node2)
9743         3 => True,    --  Statements (List3)
9744         4 => True,    --  End_Label (Node4)
9745         5 => False),  --  unused
9746
9747      N_Iteration_Scheme =>
9748        (1 => True,    --  Condition (Node1)
9749         2 => False,   --  unused
9750         3 => False,   --  Condition_Actions (List3-Sem)
9751         4 => True,    --  Loop_Parameter_Specification (Node4)
9752         5 => False),  --  unused
9753
9754      N_Loop_Parameter_Specification =>
9755        (1 => True,    --  Defining_Identifier (Node1)
9756         2 => False,   --  unused
9757         3 => False,   --  unused
9758         4 => True,    --  Discrete_Subtype_Definition (Node4)
9759         5 => False),  --  unused
9760
9761      N_Block_Statement =>
9762        (1 => True,    --  Identifier (Node1)
9763         2 => True,    --  Declarations (List2)
9764         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
9765         4 => True,    --  Handled_Statement_Sequence (Node4)
9766         5 => False),  --  unused
9767
9768      N_Exit_Statement =>
9769        (1 => True,    --  Condition (Node1)
9770         2 => True,    --  Name (Node2)
9771         3 => False,   --  unused
9772         4 => False,   --  unused
9773         5 => False),  --  unused
9774
9775      N_Goto_Statement =>
9776        (1 => False,   --  unused
9777         2 => True,    --  Name (Node2)
9778         3 => False,   --  unused
9779         4 => False,   --  unused
9780         5 => False),  --  unused
9781
9782      N_Subprogram_Declaration =>
9783        (1 => True,    --  Specification (Node1)
9784         2 => False,   --  unused
9785         3 => False,   --  Body_To_Inline (Node3-Sem)
9786         4 => False,   --  Parent_Spec (Node4-Sem)
9787         5 => False),  --  Corresponding_Body (Node5-Sem)
9788
9789      N_Abstract_Subprogram_Declaration =>
9790        (1 => True,    --  Specification (Node1)
9791         2 => False,   --  unused
9792         3 => False,   --  unused
9793         4 => False,   --  unused
9794         5 => False),  --  unused
9795
9796      N_Function_Specification =>
9797        (1 => True,    --  Defining_Unit_Name (Node1)
9798         2 => False,   --  Elaboration_Boolean (Node2-Sem)
9799         3 => True,    --  Parameter_Specifications (List3)
9800         4 => True,    --  Result_Definition (Node4)
9801         5 => False),  --  Generic_Parent (Node5-Sem)
9802
9803      N_Procedure_Specification =>
9804        (1 => True,    --  Defining_Unit_Name (Node1)
9805         2 => False,   --  Elaboration_Boolean (Node2-Sem)
9806         3 => True,    --  Parameter_Specifications (List3)
9807         4 => False,   --  unused
9808         5 => False),  --  Generic_Parent (Node5-Sem)
9809
9810      N_Designator =>
9811        (1 => True,    --  Identifier (Node1)
9812         2 => True,    --  Name (Node2)
9813         3 => False,   --  unused
9814         4 => False,   --  unused
9815         5 => False),  --  unused
9816
9817      N_Defining_Program_Unit_Name =>
9818        (1 => True,    --  Defining_Identifier (Node1)
9819         2 => True,    --  Name (Node2)
9820         3 => False,   --  unused
9821         4 => False,   --  unused
9822         5 => False),  --  unused
9823
9824      N_Operator_Symbol =>
9825        (1 => True,    --  Chars (Name1)
9826         2 => False,   --  unused
9827         3 => True,    --  Strval (Str3)
9828         4 => False,   --  Entity (Node4-Sem)
9829         5 => False),  --  Etype (Node5-Sem)
9830
9831      N_Defining_Operator_Symbol =>
9832        (1 => True,    --  Chars (Name1)
9833         2 => False,   --  Next_Entity (Node2-Sem)
9834         3 => False,   --  Scope (Node3-Sem)
9835         4 => False,   --  unused
9836         5 => False),  --  Etype (Node5-Sem)
9837
9838      N_Parameter_Specification =>
9839        (1 => True,    --  Defining_Identifier (Node1)
9840         2 => True,    --  Parameter_Type (Node2)
9841         3 => True,    --  Expression (Node3)
9842         4 => False,   --  unused
9843         5 => False),  --  Default_Expression (Node5-Sem)
9844
9845      N_Subprogram_Body =>
9846        (1 => True,    --  Specification (Node1)
9847         2 => True,    --  Declarations (List2)
9848         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
9849         4 => True,    --  Handled_Statement_Sequence (Node4)
9850         5 => False),  --  Corresponding_Spec (Node5-Sem)
9851
9852      N_Procedure_Call_Statement =>
9853        (1 => False,   --  Controlling_Argument (Node1-Sem)
9854         2 => True,    --  Name (Node2)
9855         3 => True,    --  Parameter_Associations (List3)
9856         4 => False,   --  First_Named_Actual (Node4-Sem)
9857         5 => False),  --  Etype (Node5-Sem)
9858
9859      N_Function_Call =>
9860        (1 => False,   --  Controlling_Argument (Node1-Sem)
9861         2 => True,    --  Name (Node2)
9862         3 => True,    --  Parameter_Associations (List3)
9863         4 => False,   --  First_Named_Actual (Node4-Sem)
9864         5 => False),  --  Etype (Node5-Sem)
9865
9866      N_Parameter_Association =>
9867        (1 => False,   --  unused
9868         2 => True,    --  Selector_Name (Node2)
9869         3 => True,    --  Explicit_Actual_Parameter (Node3)
9870         4 => False,   --  Next_Named_Actual (Node4-Sem)
9871         5 => False),  --  unused
9872
9873      N_Return_Statement =>
9874        (1 => False,   --  Storage_Pool (Node1-Sem)
9875         2 => False,   --  Procedure_To_Call (Node2-Sem)
9876         3 => True,    --  Expression (Node3)
9877         4 => False,   --  unused
9878         5 => False),  --  Return_Statement_Entity (Node5-Sem)
9879
9880      N_Extended_Return_Statement =>
9881        (1 => False,   --  Storage_Pool (Node1-Sem)
9882         2 => False,   --  Procedure_To_Call (Node2-Sem)
9883         3 => True,    --  Return_Object_Declarations (List3)
9884         4 => True,    --  Handled_Statement_Sequence (Node4)
9885         5 => False),  --  Return_Statement_Entity (Node5-Sem)
9886
9887      N_Package_Declaration =>
9888        (1 => True,    --  Specification (Node1)
9889         2 => False,   --  unused
9890         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
9891         4 => False,   --  Parent_Spec (Node4-Sem)
9892         5 => False),  --  Corresponding_Body (Node5-Sem)
9893
9894      N_Package_Specification =>
9895        (1 => True,    --  Defining_Unit_Name (Node1)
9896         2 => True,    --  Visible_Declarations (List2)
9897         3 => True,    --  Private_Declarations (List3)
9898         4 => True,    --  End_Label (Node4)
9899         5 => False),  --  Generic_Parent (Node5-Sem)
9900
9901      N_Package_Body =>
9902        (1 => True,    --  Defining_Unit_Name (Node1)
9903         2 => True,    --  Declarations (List2)
9904         3 => False,   --  unused
9905         4 => True,    --  Handled_Statement_Sequence (Node4)
9906         5 => False),  --  Corresponding_Spec (Node5-Sem)
9907
9908      N_Private_Type_Declaration =>
9909        (1 => True,    --  Defining_Identifier (Node1)
9910         2 => False,   --  unused
9911         3 => False,   --  unused
9912         4 => True,    --  Discriminant_Specifications (List4)
9913         5 => False),  --  unused
9914
9915      N_Private_Extension_Declaration =>
9916        (1 => True,    --  Defining_Identifier (Node1)
9917         2 => True,    --  Interface_List (List2)
9918         3 => False,   --  unused
9919         4 => True,    --  Discriminant_Specifications (List4)
9920         5 => True),   --  Subtype_Indication (Node5)
9921
9922      N_Use_Package_Clause =>
9923        (1 => False,   --  unused
9924         2 => True,    --  Names (List2)
9925         3 => False,   --  Next_Use_Clause (Node3-Sem)
9926         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
9927         5 => False),  --  unused
9928
9929      N_Use_Type_Clause =>
9930        (1 => False,   --  unused
9931         2 => True,    --  Subtype_Marks (List2)
9932         3 => False,   --  Next_Use_Clause (Node3-Sem)
9933         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
9934         5 => False),  --  unused
9935
9936      N_Object_Renaming_Declaration =>
9937        (1 => True,    --  Defining_Identifier (Node1)
9938         2 => True,    --  Name (Node2)
9939         3 => True,    --  Access_Definition (Node3)
9940         4 => True,    --  Subtype_Mark (Node4)
9941         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
9942
9943      N_Exception_Renaming_Declaration =>
9944        (1 => True,    --  Defining_Identifier (Node1)
9945         2 => True,    --  Name (Node2)
9946         3 => False,   --  unused
9947         4 => False,   --  unused
9948         5 => False),  --  unused
9949
9950      N_Package_Renaming_Declaration =>
9951        (1 => True,    --  Defining_Unit_Name (Node1)
9952         2 => True,    --  Name (Node2)
9953         3 => False,   --  unused
9954         4 => False,   --  Parent_Spec (Node4-Sem)
9955         5 => False),  --  unused
9956
9957      N_Subprogram_Renaming_Declaration =>
9958        (1 => True,    --  Specification (Node1)
9959         2 => True,    --  Name (Node2)
9960         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
9961         4 => False,   --  Parent_Spec (Node4-Sem)
9962         5 => False),  --  Corresponding_Spec (Node5-Sem)
9963
9964      N_Generic_Package_Renaming_Declaration =>
9965        (1 => True,    --  Defining_Unit_Name (Node1)
9966         2 => True,    --  Name (Node2)
9967         3 => False,   --  unused
9968         4 => False,   --  Parent_Spec (Node4-Sem)
9969         5 => False),  --  unused
9970
9971      N_Generic_Procedure_Renaming_Declaration =>
9972        (1 => True,    --  Defining_Unit_Name (Node1)
9973         2 => True,    --  Name (Node2)
9974         3 => False,   --  unused
9975         4 => False,   --  Parent_Spec (Node4-Sem)
9976         5 => False),  --  unused
9977
9978      N_Generic_Function_Renaming_Declaration =>
9979        (1 => True,    --  Defining_Unit_Name (Node1)
9980         2 => True,    --  Name (Node2)
9981         3 => False,   --  unused
9982         4 => False,   --  Parent_Spec (Node4-Sem)
9983         5 => False),  --  unused
9984
9985      N_Task_Type_Declaration =>
9986        (1 => True,    --  Defining_Identifier (Node1)
9987         2 => True,    --  Interface_List (List2)
9988         3 => True,    --  Task_Definition (Node3)
9989         4 => True,    --  Discriminant_Specifications (List4)
9990         5 => False),  --  Corresponding_Body (Node5-Sem)
9991
9992      N_Single_Task_Declaration =>
9993        (1 => True,    --  Defining_Identifier (Node1)
9994         2 => True,    --  Interface_List (List2)
9995         3 => True,    --  Task_Definition (Node3)
9996         4 => False,   --  unused
9997         5 => False),  --  unused
9998
9999      N_Task_Definition =>
10000        (1 => False,   --  unused
10001         2 => True,    --  Visible_Declarations (List2)
10002         3 => True,    --  Private_Declarations (List3)
10003         4 => True,    --  End_Label (Node4)
10004         5 => False),  --  unused
10005
10006      N_Task_Body =>
10007        (1 => True,    --  Defining_Identifier (Node1)
10008         2 => True,    --  Declarations (List2)
10009         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10010         4 => True,    --  Handled_Statement_Sequence (Node4)
10011         5 => False),  --  Corresponding_Spec (Node5-Sem)
10012
10013      N_Protected_Type_Declaration =>
10014        (1 => True,    --  Defining_Identifier (Node1)
10015         2 => True,    --  Interface_List (List2)
10016         3 => True,    --  Protected_Definition (Node3)
10017         4 => True,    --  Discriminant_Specifications (List4)
10018         5 => False),  --  Corresponding_Body (Node5-Sem)
10019
10020      N_Single_Protected_Declaration =>
10021        (1 => True,    --  Defining_Identifier (Node1)
10022         2 => True,    --  Interface_List (List2)
10023         3 => True,    --  Protected_Definition (Node3)
10024         4 => False,   --  unused
10025         5 => False),  --  unused
10026
10027      N_Protected_Definition =>
10028        (1 => False,   --  unused
10029         2 => True,    --  Visible_Declarations (List2)
10030         3 => True,    --  Private_Declarations (List3)
10031         4 => True,    --  End_Label (Node4)
10032         5 => False),  --  unused
10033
10034      N_Protected_Body =>
10035        (1 => True,    --  Defining_Identifier (Node1)
10036         2 => True,    --  Declarations (List2)
10037         3 => False,   --  unused
10038         4 => True,    --  End_Label (Node4)
10039         5 => False),  --  Corresponding_Spec (Node5-Sem)
10040
10041      N_Entry_Declaration =>
10042        (1 => True,    --  Defining_Identifier (Node1)
10043         2 => False,   --  unused
10044         3 => True,    --  Parameter_Specifications (List3)
10045         4 => True,    --  Discrete_Subtype_Definition (Node4)
10046         5 => False),  --  Corresponding_Body (Node5-Sem)
10047
10048      N_Accept_Statement =>
10049        (1 => True,    --  Entry_Direct_Name (Node1)
10050         2 => True,    --  Declarations (List2)
10051         3 => True,    --  Parameter_Specifications (List3)
10052         4 => True,    --  Handled_Statement_Sequence (Node4)
10053         5 => True),   --  Entry_Index (Node5)
10054
10055      N_Entry_Body =>
10056        (1 => True,    --  Defining_Identifier (Node1)
10057         2 => True,    --  Declarations (List2)
10058         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10059         4 => True,    --  Handled_Statement_Sequence (Node4)
10060         5 => True),   --  Entry_Body_Formal_Part (Node5)
10061
10062      N_Entry_Body_Formal_Part =>
10063        (1 => True,    --  Condition (Node1)
10064         2 => False,   --  unused
10065         3 => True,    --  Parameter_Specifications (List3)
10066         4 => True,    --  Entry_Index_Specification (Node4)
10067         5 => False),  --  unused
10068
10069      N_Entry_Index_Specification =>
10070        (1 => True,    --  Defining_Identifier (Node1)
10071         2 => False,   --  unused
10072         3 => False,   --  unused
10073         4 => True,    --  Discrete_Subtype_Definition (Node4)
10074         5 => False),  --  unused
10075
10076      N_Entry_Call_Statement =>
10077        (1 => False,   --  unused
10078         2 => True,    --  Name (Node2)
10079         3 => True,    --  Parameter_Associations (List3)
10080         4 => False,   --  First_Named_Actual (Node4-Sem)
10081         5 => False),  --  unused
10082
10083      N_Requeue_Statement =>
10084        (1 => False,   --  unused
10085         2 => True,    --  Name (Node2)
10086         3 => False,   --  unused
10087         4 => False,   --  unused
10088         5 => False),  --  unused
10089
10090      N_Delay_Until_Statement =>
10091        (1 => False,   --  unused
10092         2 => False,   --  unused
10093         3 => True,    --  Expression (Node3)
10094         4 => False,   --  unused
10095         5 => False),  --  unused
10096
10097      N_Delay_Relative_Statement =>
10098        (1 => False,   --  unused
10099         2 => False,   --  unused
10100         3 => True,    --  Expression (Node3)
10101         4 => False,   --  unused
10102         5 => False),  --  unused
10103
10104      N_Selective_Accept =>
10105        (1 => True,    --  Select_Alternatives (List1)
10106         2 => False,   --  unused
10107         3 => False,   --  unused
10108         4 => True,    --  Else_Statements (List4)
10109         5 => False),  --  unused
10110
10111      N_Accept_Alternative =>
10112        (1 => True,    --  Condition (Node1)
10113         2 => True,    --  Accept_Statement (Node2)
10114         3 => True,    --  Statements (List3)
10115         4 => True,    --  Pragmas_Before (List4)
10116         5 => False),  --  Accept_Handler_Records (List5-Sem)
10117
10118      N_Delay_Alternative =>
10119        (1 => True,    --  Condition (Node1)
10120         2 => True,    --  Delay_Statement (Node2)
10121         3 => True,    --  Statements (List3)
10122         4 => True,    --  Pragmas_Before (List4)
10123         5 => False),  --  unused
10124
10125      N_Terminate_Alternative =>
10126        (1 => True,    --  Condition (Node1)
10127         2 => False,   --  unused
10128         3 => False,   --  unused
10129         4 => True,    --  Pragmas_Before (List4)
10130         5 => True),   --  Pragmas_After (List5)
10131
10132      N_Timed_Entry_Call =>
10133        (1 => True,    --  Entry_Call_Alternative (Node1)
10134         2 => False,   --  unused
10135         3 => False,   --  unused
10136         4 => True,    --  Delay_Alternative (Node4)
10137         5 => False),  --  unused
10138
10139      N_Entry_Call_Alternative =>
10140        (1 => True,    --  Entry_Call_Statement (Node1)
10141         2 => False,   --  unused
10142         3 => True,    --  Statements (List3)
10143         4 => True,    --  Pragmas_Before (List4)
10144         5 => False),  --  unused
10145
10146      N_Conditional_Entry_Call =>
10147        (1 => True,    --  Entry_Call_Alternative (Node1)
10148         2 => False,   --  unused
10149         3 => False,   --  unused
10150         4 => True,    --  Else_Statements (List4)
10151         5 => False),  --  unused
10152
10153      N_Asynchronous_Select =>
10154        (1 => True,    --  Triggering_Alternative (Node1)
10155         2 => True,    --  Abortable_Part (Node2)
10156         3 => False,   --  unused
10157         4 => False,   --  unused
10158         5 => False),  --  unused
10159
10160      N_Triggering_Alternative =>
10161        (1 => True,    --  Triggering_Statement (Node1)
10162         2 => False,   --  unused
10163         3 => True,    --  Statements (List3)
10164         4 => True,    --  Pragmas_Before (List4)
10165         5 => False),  --  unused
10166
10167      N_Abortable_Part =>
10168        (1 => False,   --  unused
10169         2 => False,   --  unused
10170         3 => True,    --  Statements (List3)
10171         4 => False,   --  unused
10172         5 => False),  --  unused
10173
10174      N_Abort_Statement =>
10175        (1 => False,   --  unused
10176         2 => True,    --  Names (List2)
10177         3 => False,   --  unused
10178         4 => False,   --  unused
10179         5 => False),  --  unused
10180
10181      N_Compilation_Unit =>
10182        (1 => True,    --  Context_Items (List1)
10183         2 => True,    --  Unit (Node2)
10184         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
10185         4 => False,   --  Library_Unit (Node4-Sem)
10186         5 => True),   --  Aux_Decls_Node (Node5)
10187
10188      N_Compilation_Unit_Aux =>
10189        (1 => True,    --  Actions (List1)
10190         2 => True,    --  Declarations (List2)
10191         3 => False,   --  unused
10192         4 => True,    --  Config_Pragmas (List4)
10193         5 => True),   --  Pragmas_After (List5)
10194
10195      N_With_Clause =>
10196        (1 => False,   --  unused
10197         2 => True,    --  Name (Node2)
10198         3 => False,   --  unused
10199         4 => False,   --  Library_Unit (Node4-Sem)
10200         5 => False),  --  Corresponding_Spec (Node5-Sem)
10201
10202      N_Subprogram_Body_Stub =>
10203        (1 => True,    --  Specification (Node1)
10204         2 => False,   --  unused
10205         3 => False,   --  unused
10206         4 => False,   --  Library_Unit (Node4-Sem)
10207         5 => False),  --  Corresponding_Body (Node5-Sem)
10208
10209      N_Package_Body_Stub =>
10210        (1 => True,    --  Defining_Identifier (Node1)
10211         2 => False,   --  unused
10212         3 => False,   --  unused
10213         4 => False,   --  Library_Unit (Node4-Sem)
10214         5 => False),  --  Corresponding_Body (Node5-Sem)
10215
10216      N_Task_Body_Stub =>
10217        (1 => True,    --  Defining_Identifier (Node1)
10218         2 => False,   --  unused
10219         3 => False,   --  unused
10220         4 => False,   --  Library_Unit (Node4-Sem)
10221         5 => False),  --  Corresponding_Body (Node5-Sem)
10222
10223      N_Protected_Body_Stub =>
10224        (1 => True,    --  Defining_Identifier (Node1)
10225         2 => False,   --  unused
10226         3 => False,   --  unused
10227         4 => False,   --  Library_Unit (Node4-Sem)
10228         5 => False),  --  Corresponding_Body (Node5-Sem)
10229
10230      N_Subunit =>
10231        (1 => True,    --  Proper_Body (Node1)
10232         2 => True,    --  Name (Node2)
10233         3 => False,   --  Corresponding_Stub (Node3-Sem)
10234         4 => False,   --  unused
10235         5 => False),  --  unused
10236
10237      N_Exception_Declaration =>
10238        (1 => True,    --  Defining_Identifier (Node1)
10239         2 => False,   --  unused
10240         3 => False,   --  Expression (Node3-Sem)
10241         4 => False,   --  unused
10242         5 => False),  --  unused
10243
10244      N_Handled_Sequence_Of_Statements =>
10245        (1 => True,    --  At_End_Proc (Node1)
10246         2 => False,   --  First_Real_Statement (Node2-Sem)
10247         3 => True,    --  Statements (List3)
10248         4 => True,    --  End_Label (Node4)
10249         5 => True),   --  Exception_Handlers (List5)
10250
10251      N_Exception_Handler =>
10252        (1 => False,   --  Local_Raise_Statements (Elist1)
10253         2 => True,    --  Choice_Parameter (Node2)
10254         3 => True,    --  Statements (List3)
10255         4 => True,    --  Exception_Choices (List4)
10256         5 => False),  --  Exception_Label (Node5)
10257
10258      N_Raise_Statement =>
10259        (1 => False,   --  unused
10260         2 => True,    --  Name (Node2)
10261         3 => True,    --  Expression (Node3)
10262         4 => False,   --  unused
10263         5 => False),  --  unused
10264
10265      N_Generic_Subprogram_Declaration =>
10266        (1 => True,    --  Specification (Node1)
10267         2 => True,    --  Generic_Formal_Declarations (List2)
10268         3 => False,   --  unused
10269         4 => False,   --  Parent_Spec (Node4-Sem)
10270         5 => False),  --  Corresponding_Body (Node5-Sem)
10271
10272      N_Generic_Package_Declaration =>
10273        (1 => True,    --  Specification (Node1)
10274         2 => True,    --  Generic_Formal_Declarations (List2)
10275         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10276         4 => False,   --  Parent_Spec (Node4-Sem)
10277         5 => False),  --  Corresponding_Body (Node5-Sem)
10278
10279      N_Package_Instantiation =>
10280        (1 => True,    --  Defining_Unit_Name (Node1)
10281         2 => True,    --  Name (Node2)
10282         3 => True,    --  Generic_Associations (List3)
10283         4 => False,   --  Parent_Spec (Node4-Sem)
10284         5 => False),  --  Instance_Spec (Node5-Sem)
10285
10286      N_Procedure_Instantiation =>
10287        (1 => True,    --  Defining_Unit_Name (Node1)
10288         2 => True,    --  Name (Node2)
10289         3 => True,    --  Generic_Associations (List3)
10290         4 => False,   --  Parent_Spec (Node4-Sem)
10291         5 => False),  --  Instance_Spec (Node5-Sem)
10292
10293      N_Function_Instantiation =>
10294        (1 => True,    --  Defining_Unit_Name (Node1)
10295         2 => True,    --  Name (Node2)
10296         3 => True,    --  Generic_Associations (List3)
10297         4 => False,   --  Parent_Spec (Node4-Sem)
10298         5 => False),  --  Instance_Spec (Node5-Sem)
10299
10300      N_Generic_Association =>
10301        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
10302         2 => True,    --  Selector_Name (Node2)
10303         3 => False,   --  unused
10304         4 => False,   --  unused
10305         5 => False),  --  unused
10306
10307      N_Formal_Object_Declaration =>
10308        (1 => True,    --  Defining_Identifier (Node1)
10309         2 => False,   --  unused
10310         3 => True,    --  Access_Definition (Node3)
10311         4 => True,    --  Subtype_Mark (Node4)
10312         5 => True),   --  Default_Expression (Node5)
10313
10314      N_Formal_Type_Declaration =>
10315        (1 => True,    --  Defining_Identifier (Node1)
10316         2 => False,   --  unused
10317         3 => True,    --  Formal_Type_Definition (Node3)
10318         4 => True,    --  Discriminant_Specifications (List4)
10319         5 => False),  --  unused
10320
10321      N_Formal_Private_Type_Definition =>
10322        (1 => False,   --  unused
10323         2 => False,   --  unused
10324         3 => False,   --  unused
10325         4 => False,   --  unused
10326         5 => False),  --  unused
10327
10328      N_Formal_Derived_Type_Definition =>
10329        (1 => False,   --  unused
10330         2 => True,    --  Interface_List (List2)
10331         3 => False,   --  unused
10332         4 => True,    --  Subtype_Mark (Node4)
10333         5 => False),  --  unused
10334
10335      N_Formal_Discrete_Type_Definition =>
10336        (1 => False,   --  unused
10337         2 => False,   --  unused
10338         3 => False,   --  unused
10339         4 => False,   --  unused
10340         5 => False),  --  unused
10341
10342      N_Formal_Signed_Integer_Type_Definition =>
10343        (1 => False,   --  unused
10344         2 => False,   --  unused
10345         3 => False,   --  unused
10346         4 => False,   --  unused
10347         5 => False),  --  unused
10348
10349      N_Formal_Modular_Type_Definition =>
10350        (1 => False,   --  unused
10351         2 => False,   --  unused
10352         3 => False,   --  unused
10353         4 => False,   --  unused
10354         5 => False),  --  unused
10355
10356      N_Formal_Floating_Point_Definition =>
10357        (1 => False,   --  unused
10358         2 => False,   --  unused
10359         3 => False,   --  unused
10360         4 => False,   --  unused
10361         5 => False),  --  unused
10362
10363      N_Formal_Ordinary_Fixed_Point_Definition =>
10364        (1 => False,   --  unused
10365         2 => False,   --  unused
10366         3 => False,   --  unused
10367         4 => False,   --  unused
10368         5 => False),  --  unused
10369
10370      N_Formal_Decimal_Fixed_Point_Definition =>
10371        (1 => False,   --  unused
10372         2 => False,   --  unused
10373         3 => False,   --  unused
10374         4 => False,   --  unused
10375         5 => False),  --  unused
10376
10377      N_Formal_Concrete_Subprogram_Declaration =>
10378        (1 => True,    --  Specification (Node1)
10379         2 => True,    --  Default_Name (Node2)
10380         3 => False,   --  unused
10381         4 => False,   --  unused
10382         5 => False),  --  unused
10383
10384      N_Formal_Abstract_Subprogram_Declaration =>
10385        (1 => True,    --  Specification (Node1)
10386         2 => True,    --  Default_Name (Node2)
10387         3 => False,   --  unused
10388         4 => False,   --  unused
10389         5 => False),  --  unused
10390
10391      N_Formal_Package_Declaration =>
10392        (1 => True,    --  Defining_Identifier (Node1)
10393         2 => True,    --  Name (Node2)
10394         3 => True,    --  Generic_Associations (List3)
10395         4 => False,   --  unused
10396         5 => False),  --  Instance_Spec (Node5-Sem)
10397
10398      N_Attribute_Definition_Clause =>
10399        (1 => True,    --  Chars (Name1)
10400         2 => True,    --  Name (Node2)
10401         3 => True,    --  Expression (Node3)
10402         4 => False,   --  unused
10403         5 => False),  --  Next_Rep_Item (Node5-Sem)
10404
10405      N_Enumeration_Representation_Clause =>
10406        (1 => True,    --  Identifier (Node1)
10407         2 => False,   --  unused
10408         3 => True,    --  Array_Aggregate (Node3)
10409         4 => False,   --  unused
10410         5 => False),  --  Next_Rep_Item (Node5-Sem)
10411
10412      N_Record_Representation_Clause =>
10413        (1 => True,    --  Identifier (Node1)
10414         2 => True,    --  Mod_Clause (Node2)
10415         3 => True,    --  Component_Clauses (List3)
10416         4 => False,   --  unused
10417         5 => False),  --  Next_Rep_Item (Node5-Sem)
10418
10419      N_Component_Clause =>
10420        (1 => True,    --  Component_Name (Node1)
10421         2 => True,    --  Position (Node2)
10422         3 => True,    --  First_Bit (Node3)
10423         4 => True,    --  Last_Bit (Node4)
10424         5 => False),  --  unused
10425
10426      N_Code_Statement =>
10427        (1 => False,   --  unused
10428         2 => False,   --  unused
10429         3 => True,    --  Expression (Node3)
10430         4 => False,   --  unused
10431         5 => False),  --  unused
10432
10433      N_Op_Rotate_Left =>
10434        (1 => True,    --  Chars (Name1)
10435         2 => True,    --  Left_Opnd (Node2)
10436         3 => True,    --  Right_Opnd (Node3)
10437         4 => False,   --  Entity (Node4-Sem)
10438         5 => False),  --  Etype (Node5-Sem)
10439
10440      N_Op_Rotate_Right =>
10441        (1 => True,    --  Chars (Name1)
10442         2 => True,    --  Left_Opnd (Node2)
10443         3 => True,    --  Right_Opnd (Node3)
10444         4 => False,   --  Entity (Node4-Sem)
10445         5 => False),  --  Etype (Node5-Sem)
10446
10447      N_Op_Shift_Left =>
10448        (1 => True,    --  Chars (Name1)
10449         2 => True,    --  Left_Opnd (Node2)
10450         3 => True,    --  Right_Opnd (Node3)
10451         4 => False,   --  Entity (Node4-Sem)
10452         5 => False),  --  Etype (Node5-Sem)
10453
10454      N_Op_Shift_Right_Arithmetic =>
10455        (1 => True,    --  Chars (Name1)
10456         2 => True,    --  Left_Opnd (Node2)
10457         3 => True,    --  Right_Opnd (Node3)
10458         4 => False,   --  Entity (Node4-Sem)
10459         5 => False),  --  Etype (Node5-Sem)
10460
10461      N_Op_Shift_Right =>
10462        (1 => True,    --  Chars (Name1)
10463         2 => True,    --  Left_Opnd (Node2)
10464         3 => True,    --  Right_Opnd (Node3)
10465         4 => False,   --  Entity (Node4-Sem)
10466         5 => False),  --  Etype (Node5-Sem)
10467
10468      N_Delta_Constraint =>
10469        (1 => False,   --  unused
10470         2 => False,   --  unused
10471         3 => True,    --  Delta_Expression (Node3)
10472         4 => True,    --  Range_Constraint (Node4)
10473         5 => False),  --  unused
10474
10475      N_At_Clause =>
10476        (1 => True,    --  Identifier (Node1)
10477         2 => False,   --  unused
10478         3 => True,    --  Expression (Node3)
10479         4 => False,   --  unused
10480         5 => False),  --  unused
10481
10482      N_Mod_Clause =>
10483        (1 => False,   --  unused
10484         2 => False,   --  unused
10485         3 => True,    --  Expression (Node3)
10486         4 => True,    --  Pragmas_Before (List4)
10487         5 => False),  --  unused
10488
10489      N_Conditional_Expression =>
10490        (1 => True,    --  Expressions (List1)
10491         2 => False,   --  Then_Actions (List2-Sem)
10492         3 => False,   --  Else_Actions (List3-Sem)
10493         4 => False,   --  unused
10494         5 => False),  --  Etype (Node5-Sem)
10495
10496      N_Expanded_Name =>
10497        (1 => True,    --  Chars (Name1)
10498         2 => True,    --  Selector_Name (Node2)
10499         3 => True,    --  Prefix (Node3)
10500         4 => False,   --  Entity (Node4-Sem)
10501         5 => False),  --  Etype (Node5-Sem)
10502
10503      N_Free_Statement =>
10504        (1 => False,   --  Storage_Pool (Node1-Sem)
10505         2 => False,   --  Procedure_To_Call (Node2-Sem)
10506         3 => True,    --  Expression (Node3)
10507         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10508         5 => False),  --  unused
10509
10510      N_Freeze_Entity =>
10511        (1 => True,    --  Actions (List1)
10512         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
10513         3 => False,   --  TSS_Elist (Elist3-Sem)
10514         4 => False,   --  Entity (Node4-Sem)
10515         5 => False),  --  First_Subtype_Link (Node5-Sem)
10516
10517      N_Implicit_Label_Declaration =>
10518        (1 => True,    --  Defining_Identifier (Node1)
10519         2 => False,   --  Label_Construct (Node2-Sem)
10520         3 => False,   --  unused
10521         4 => False,   --  unused
10522         5 => False),  --  unused
10523
10524      N_Itype_Reference =>
10525        (1 => False,   --  Itype (Node1-Sem)
10526         2 => False,   --  unused
10527         3 => False,   --  unused
10528         4 => False,   --  unused
10529         5 => False),  --  unused
10530
10531      N_Raise_Constraint_Error =>
10532        (1 => True,    --  Condition (Node1)
10533         2 => False,   --  unused
10534         3 => True,    --  Reason (Uint3)
10535         4 => False,   --  unused
10536         5 => False),  --  Etype (Node5-Sem)
10537
10538      N_Raise_Program_Error =>
10539        (1 => True,    --  Condition (Node1)
10540         2 => False,   --  unused
10541         3 => True,    --  Reason (Uint3)
10542         4 => False,   --  unused
10543         5 => False),  --  Etype (Node5-Sem)
10544
10545      N_Raise_Storage_Error =>
10546        (1 => True,    --  Condition (Node1)
10547         2 => False,   --  unused
10548         3 => True,    --  Reason (Uint3)
10549         4 => False,   --  unused
10550         5 => False),  --  Etype (Node5-Sem)
10551
10552      N_Push_Constraint_Error_Label =>
10553        (1 => False,   --  unused
10554         2 => False,   --  unused
10555         3 => False,   --  unused
10556         4 => False,   --  unused
10557         5 => False),  --  unused
10558
10559      N_Push_Program_Error_Label =>
10560        (1 => False,   --  Exception_Label
10561         2 => False,   --  unused
10562         3 => False,   --  unused
10563         4 => False,   --  unused
10564         5 => False),  --  Exception_Label
10565
10566      N_Push_Storage_Error_Label =>
10567        (1 => False,   --  Exception_Label
10568         2 => False,   --  unused
10569         3 => False,   --  unused
10570         4 => False,   --  unused
10571         5 => False),  --  Exception_Label
10572
10573      N_Pop_Constraint_Error_Label =>
10574        (1 => False,   --  unused
10575         2 => False,   --  unused
10576         3 => False,   --  unused
10577         4 => False,   --  unused
10578         5 => False),  --  unused
10579
10580      N_Pop_Program_Error_Label =>
10581        (1 => False,   --  unused
10582         2 => False,   --  unused
10583         3 => False,   --  unused
10584         4 => False,   --  unused
10585         5 => False),  --  unused
10586
10587      N_Pop_Storage_Error_Label =>
10588        (1 => False,   --  unused
10589         2 => False,   --  unused
10590         3 => False,   --  unused
10591         4 => False,   --  unused
10592         5 => False),  --  unused
10593
10594      N_Reference =>
10595        (1 => False,   --  unused
10596         2 => False,   --  unused
10597         3 => True,    --  Prefix (Node3)
10598         4 => False,   --  unused
10599         5 => False),  --  Etype (Node5-Sem)
10600
10601      N_Subprogram_Info =>
10602        (1 => True,    --  Identifier (Node1)
10603         2 => False,   --  unused
10604         3 => False,   --  unused
10605         4 => False,   --  unused
10606         5 => False),  --  Etype (Node5-Sem)
10607
10608      N_Unchecked_Expression =>
10609        (1 => False,   --  unused
10610         2 => False,   --  unused
10611         3 => True,    --  Expression (Node3)
10612         4 => False,   --  unused
10613         5 => False),  --  Etype (Node5-Sem)
10614
10615      N_Unchecked_Type_Conversion =>
10616        (1 => False,   --  unused
10617         2 => False,   --  unused
10618         3 => True,    --  Expression (Node3)
10619         4 => True,    --  Subtype_Mark (Node4)
10620         5 => False),  --  Etype (Node5-Sem)
10621
10622      N_Validate_Unchecked_Conversion =>
10623        (1 => False,   --  Source_Type (Node1-Sem)
10624         2 => False,   --  Target_Type (Node2-Sem)
10625         3 => False,   --  unused
10626         4 => False,   --  unused
10627         5 => False),  --  unused
10628
10629    --  End of inserted output from makeisf program
10630
10631    --  Entries for Empty, Error and Unused. Even thought these have a Chars
10632    --  field for debugging purposes, they are not really syntactic fields, so
10633    --  we mark all fields as unused.
10634
10635      N_Empty =>
10636        (1 => False,   --  unused
10637         2 => False,   --  unused
10638         3 => False,   --  unused
10639         4 => False,   --  unused
10640         5 => False),  --  unused
10641
10642      N_Error =>
10643        (1 => False,   --  unused
10644         2 => False,   --  unused
10645         3 => False,   --  unused
10646         4 => False,   --  unused
10647         5 => False),  --  unused
10648
10649      N_Unused_At_Start =>
10650        (1 => False,   --  unused
10651         2 => False,   --  unused
10652         3 => False,   --  unused
10653         4 => False,   --  unused
10654         5 => False),  --  unused
10655
10656      N_Unused_At_End =>
10657        (1 => False,   --  unused
10658         2 => False,   --  unused
10659         3 => False,   --  unused
10660         4 => False,   --  unused
10661         5 => False)); --  unused
10662
10663    --------------------
10664    -- Inline Pragmas --
10665    --------------------
10666
10667    pragma Inline (ABE_Is_Certain);
10668    pragma Inline (Abort_Present);
10669    pragma Inline (Abortable_Part);
10670    pragma Inline (Abstract_Present);
10671    pragma Inline (Accept_Handler_Records);
10672    pragma Inline (Accept_Statement);
10673    pragma Inline (Access_Definition);
10674    pragma Inline (Access_To_Subprogram_Definition);
10675    pragma Inline (Access_Types_To_Process);
10676    pragma Inline (Actions);
10677    pragma Inline (Activation_Chain_Entity);
10678    pragma Inline (Acts_As_Spec);
10679    pragma Inline (Actual_Designated_Subtype);
10680    pragma Inline (Aggregate_Bounds);
10681    pragma Inline (Aliased_Present);
10682    pragma Inline (All_Others);
10683    pragma Inline (All_Present);
10684    pragma Inline (Alternatives);
10685    pragma Inline (Ancestor_Part);
10686    pragma Inline (Array_Aggregate);
10687    pragma Inline (Assignment_OK);
10688    pragma Inline (Associated_Node);
10689    pragma Inline (At_End_Proc);
10690    pragma Inline (Attribute_Name);
10691    pragma Inline (Aux_Decls_Node);
10692    pragma Inline (Backwards_OK);
10693    pragma Inline (Bad_Is_Detected);
10694    pragma Inline (Body_To_Inline);
10695    pragma Inline (Body_Required);
10696    pragma Inline (By_Ref);
10697    pragma Inline (Box_Present);
10698    pragma Inline (Char_Literal_Value);
10699    pragma Inline (Chars);
10700    pragma Inline (Check_Address_Alignment);
10701    pragma Inline (Choice_Parameter);
10702    pragma Inline (Choices);
10703    pragma Inline (Coextensions);
10704    pragma Inline (Comes_From_Extended_Return_Statement);
10705    pragma Inline (Compile_Time_Known_Aggregate);
10706    pragma Inline (Component_Associations);
10707    pragma Inline (Component_Clauses);
10708    pragma Inline (Component_Definition);
10709    pragma Inline (Component_Items);
10710    pragma Inline (Component_List);
10711    pragma Inline (Component_Name);
10712    pragma Inline (Condition);
10713    pragma Inline (Condition_Actions);
10714    pragma Inline (Config_Pragmas);
10715    pragma Inline (Constant_Present);
10716    pragma Inline (Constraint);
10717    pragma Inline (Constraints);
10718    pragma Inline (Context_Installed);
10719    pragma Inline (Context_Items);
10720    pragma Inline (Controlling_Argument);
10721    pragma Inline (Conversion_OK);
10722    pragma Inline (Corresponding_Body);
10723    pragma Inline (Corresponding_Formal_Spec);
10724    pragma Inline (Corresponding_Generic_Association);
10725    pragma Inline (Corresponding_Integer_Value);
10726    pragma Inline (Corresponding_Spec);
10727    pragma Inline (Corresponding_Stub);
10728    pragma Inline (Dcheck_Function);
10729    pragma Inline (Debug_Statement);
10730    pragma Inline (Declarations);
10731    pragma Inline (Default_Expression);
10732    pragma Inline (Default_Name);
10733    pragma Inline (Defining_Identifier);
10734    pragma Inline (Defining_Unit_Name);
10735    pragma Inline (Delay_Alternative);
10736    pragma Inline (Delay_Statement);
10737    pragma Inline (Delta_Expression);
10738    pragma Inline (Digits_Expression);
10739    pragma Inline (Discr_Check_Funcs_Built);
10740    pragma Inline (Discrete_Choices);
10741    pragma Inline (Discrete_Range);
10742    pragma Inline (Discrete_Subtype_Definition);
10743    pragma Inline (Discrete_Subtype_Definitions);
10744    pragma Inline (Discriminant_Specifications);
10745    pragma Inline (Discriminant_Type);
10746    pragma Inline (Do_Accessibility_Check);
10747    pragma Inline (Do_Discriminant_Check);
10748    pragma Inline (Do_Length_Check);
10749    pragma Inline (Do_Division_Check);
10750    pragma Inline (Do_Overflow_Check);
10751    pragma Inline (Do_Range_Check);
10752    pragma Inline (Do_Storage_Check);
10753    pragma Inline (Do_Tag_Check);
10754    pragma Inline (Elaborate_Present);
10755    pragma Inline (Elaborate_All_Desirable);
10756    pragma Inline (Elaborate_All_Present);
10757    pragma Inline (Elaborate_Desirable);
10758    pragma Inline (Elaboration_Boolean);
10759    pragma Inline (Else_Actions);
10760    pragma Inline (Else_Statements);
10761    pragma Inline (Elsif_Parts);
10762    pragma Inline (Enclosing_Variant);
10763    pragma Inline (End_Label);
10764    pragma Inline (End_Span);
10765    pragma Inline (Entity);
10766    pragma Inline (Entity_Or_Associated_Node);
10767    pragma Inline (Entry_Body_Formal_Part);
10768    pragma Inline (Entry_Call_Alternative);
10769    pragma Inline (Entry_Call_Statement);
10770    pragma Inline (Entry_Direct_Name);
10771    pragma Inline (Entry_Index);
10772    pragma Inline (Entry_Index_Specification);
10773    pragma Inline (Etype);
10774    pragma Inline (Exception_Choices);
10775    pragma Inline (Exception_Handlers);
10776    pragma Inline (Exception_Junk);
10777    pragma Inline (Exception_Label);
10778    pragma Inline (Expansion_Delayed);
10779    pragma Inline (Explicit_Actual_Parameter);
10780    pragma Inline (Explicit_Generic_Actual_Parameter);
10781    pragma Inline (Expression);
10782    pragma Inline (Expressions);
10783    pragma Inline (First_Bit);
10784    pragma Inline (First_Inlined_Subprogram);
10785    pragma Inline (First_Name);
10786    pragma Inline (First_Named_Actual);
10787    pragma Inline (First_Real_Statement);
10788    pragma Inline (First_Subtype_Link);
10789    pragma Inline (Float_Truncate);
10790    pragma Inline (Formal_Type_Definition);
10791    pragma Inline (Forwards_OK);
10792    pragma Inline (From_At_Mod);
10793    pragma Inline (From_Default);
10794    pragma Inline (Generic_Associations);
10795    pragma Inline (Generic_Formal_Declarations);
10796    pragma Inline (Generic_Parent);
10797    pragma Inline (Generic_Parent_Type);
10798    pragma Inline (Handled_Statement_Sequence);
10799    pragma Inline (Handler_List_Entry);
10800    pragma Inline (Has_Created_Identifier);
10801    pragma Inline (Has_Dynamic_Length_Check);
10802    pragma Inline (Has_Dynamic_Range_Check);
10803    pragma Inline (Has_Init_Expression);
10804    pragma Inline (Has_Local_Raise);
10805    pragma Inline (Has_Self_Reference);
10806    pragma Inline (Has_No_Elaboration_Code);
10807    pragma Inline (Has_Priority_Pragma);
10808    pragma Inline (Has_Private_View);
10809    pragma Inline (Has_Storage_Size_Pragma);
10810    pragma Inline (Has_Task_Info_Pragma);
10811    pragma Inline (Has_Task_Name_Pragma);
10812    pragma Inline (Has_Wide_Character);
10813    pragma Inline (Hidden_By_Use_Clause);
10814    pragma Inline (High_Bound);
10815    pragma Inline (Identifier);
10816    pragma Inline (Implicit_With);
10817    pragma Inline (Interface_List);
10818    pragma Inline (Interface_Present);
10819    pragma Inline (Includes_Infinities);
10820    pragma Inline (In_Present);
10821    pragma Inline (Instance_Spec);
10822    pragma Inline (Intval);
10823    pragma Inline (Is_Asynchronous_Call_Block);
10824    pragma Inline (Is_Component_Left_Opnd);
10825    pragma Inline (Is_Component_Right_Opnd);
10826    pragma Inline (Is_Controlling_Actual);
10827    pragma Inline (Is_Dynamic_Coextension);
10828    pragma Inline (Is_Entry_Barrier_Function);
10829    pragma Inline (Is_Folded_In_Parser);
10830    pragma Inline (Is_In_Discriminant_Check);
10831    pragma Inline (Is_Machine_Number);
10832    pragma Inline (Is_Null_Loop);
10833    pragma Inline (Is_Overloaded);
10834    pragma Inline (Is_Power_Of_2_For_Shift);
10835    pragma Inline (Is_Protected_Subprogram_Body);
10836    pragma Inline (Is_Static_Coextension);
10837    pragma Inline (Is_Static_Expression);
10838    pragma Inline (Is_Subprogram_Descriptor);
10839    pragma Inline (Is_Task_Allocation_Block);
10840    pragma Inline (Is_Task_Master);
10841    pragma Inline (Iteration_Scheme);
10842    pragma Inline (Itype);
10843    pragma Inline (Kill_Range_Check);
10844    pragma Inline (Last_Bit);
10845    pragma Inline (Last_Name);
10846    pragma Inline (Library_Unit);
10847    pragma Inline (Label_Construct);
10848    pragma Inline (Left_Opnd);
10849    pragma Inline (Limited_View_Installed);
10850    pragma Inline (Limited_Present);
10851    pragma Inline (Literals);
10852    pragma Inline (Local_Raise_Not_OK);
10853    pragma Inline (Local_Raise_Statements);
10854    pragma Inline (Loop_Actions);
10855    pragma Inline (Loop_Parameter_Specification);
10856    pragma Inline (Low_Bound);
10857    pragma Inline (Mod_Clause);
10858    pragma Inline (More_Ids);
10859    pragma Inline (Must_Be_Byte_Aligned);
10860    pragma Inline (Must_Not_Freeze);
10861    pragma Inline (Must_Not_Override);
10862    pragma Inline (Must_Override);
10863    pragma Inline (Name);
10864    pragma Inline (Names);
10865    pragma Inline (Next_Entity);
10866    pragma Inline (Next_Named_Actual);
10867    pragma Inline (Next_Rep_Item);
10868    pragma Inline (Next_Use_Clause);
10869    pragma Inline (No_Ctrl_Actions);
10870    pragma Inline (No_Elaboration_Check);
10871    pragma Inline (No_Entities_Ref_In_Spec);
10872    pragma Inline (No_Initialization);
10873    pragma Inline (No_Truncation);
10874    pragma Inline (Null_Present);
10875    pragma Inline (Null_Exclusion_Present);
10876    pragma Inline (Null_Record_Present);
10877    pragma Inline (Object_Definition);
10878    pragma Inline (Original_Discriminant);
10879    pragma Inline (Original_Entity);
10880    pragma Inline (Others_Discrete_Choices);
10881    pragma Inline (Out_Present);
10882    pragma Inline (Parameter_Associations);
10883    pragma Inline (Parameter_Specifications);
10884    pragma Inline (Parameter_List_Truncated);
10885    pragma Inline (Parameter_Type);
10886    pragma Inline (Parent_Spec);
10887    pragma Inline (Position);
10888    pragma Inline (Pragma_Argument_Associations);
10889    pragma Inline (Pragmas_After);
10890    pragma Inline (Pragmas_Before);
10891    pragma Inline (Prefix);
10892    pragma Inline (Present_Expr);
10893    pragma Inline (Prev_Ids);
10894    pragma Inline (Print_In_Hex);
10895    pragma Inline (Private_Declarations);
10896    pragma Inline (Private_Present);
10897    pragma Inline (Procedure_To_Call);
10898    pragma Inline (Proper_Body);
10899    pragma Inline (Protected_Definition);
10900    pragma Inline (Protected_Present);
10901    pragma Inline (Raises_Constraint_Error);
10902    pragma Inline (Range_Constraint);
10903    pragma Inline (Range_Expression);
10904    pragma Inline (Real_Range_Specification);
10905    pragma Inline (Realval);
10906    pragma Inline (Reason);
10907    pragma Inline (Record_Extension_Part);
10908    pragma Inline (Redundant_Use);
10909    pragma Inline (Renaming_Exception);
10910    pragma Inline (Result_Definition);
10911    pragma Inline (Return_Object_Declarations);
10912    pragma Inline (Return_Statement_Entity);
10913    pragma Inline (Reverse_Present);
10914    pragma Inline (Right_Opnd);
10915    pragma Inline (Rounded_Result);
10916    pragma Inline (Scope);
10917    pragma Inline (Select_Alternatives);
10918    pragma Inline (Selector_Name);
10919    pragma Inline (Selector_Names);
10920    pragma Inline (Shift_Count_OK);
10921    pragma Inline (Source_Type);
10922    pragma Inline (Specification);
10923    pragma Inline (Statements);
10924    pragma Inline (Static_Processing_OK);
10925    pragma Inline (Storage_Pool);
10926    pragma Inline (Strval);
10927    pragma Inline (Subtype_Indication);
10928    pragma Inline (Subtype_Mark);
10929    pragma Inline (Subtype_Marks);
10930    pragma Inline (Synchronized_Present);
10931    pragma Inline (Tagged_Present);
10932    pragma Inline (Target_Type);
10933    pragma Inline (Task_Definition);
10934    pragma Inline (Task_Present);
10935    pragma Inline (Then_Actions);
10936    pragma Inline (Then_Statements);
10937    pragma Inline (Triggering_Alternative);
10938    pragma Inline (Triggering_Statement);
10939    pragma Inline (Treat_Fixed_As_Integer);
10940    pragma Inline (TSS_Elist);
10941    pragma Inline (Type_Definition);
10942    pragma Inline (Unit);
10943    pragma Inline (Unknown_Discriminants_Present);
10944    pragma Inline (Unreferenced_In_Spec);
10945    pragma Inline (Variant_Part);
10946    pragma Inline (Variants);
10947    pragma Inline (Visible_Declarations);
10948    pragma Inline (Was_Originally_Stub);
10949    pragma Inline (Zero_Cost_Handling);
10950
10951    pragma Inline (Set_ABE_Is_Certain);
10952    pragma Inline (Set_Abort_Present);
10953    pragma Inline (Set_Abortable_Part);
10954    pragma Inline (Set_Abstract_Present);
10955    pragma Inline (Set_Accept_Handler_Records);
10956    pragma Inline (Set_Accept_Statement);
10957    pragma Inline (Set_Access_Definition);
10958    pragma Inline (Set_Access_To_Subprogram_Definition);
10959    pragma Inline (Set_Access_Types_To_Process);
10960    pragma Inline (Set_Actions);
10961    pragma Inline (Set_Activation_Chain_Entity);
10962    pragma Inline (Set_Acts_As_Spec);
10963    pragma Inline (Set_Actual_Designated_Subtype);
10964    pragma Inline (Set_Aggregate_Bounds);
10965    pragma Inline (Set_Aliased_Present);
10966    pragma Inline (Set_All_Others);
10967    pragma Inline (Set_All_Present);
10968    pragma Inline (Set_Alternatives);
10969    pragma Inline (Set_Ancestor_Part);
10970    pragma Inline (Set_Array_Aggregate);
10971    pragma Inline (Set_Assignment_OK);
10972    pragma Inline (Set_Associated_Node);
10973    pragma Inline (Set_At_End_Proc);
10974    pragma Inline (Set_Attribute_Name);
10975    pragma Inline (Set_Aux_Decls_Node);
10976    pragma Inline (Set_Backwards_OK);
10977    pragma Inline (Set_Bad_Is_Detected);
10978    pragma Inline (Set_Body_To_Inline);
10979    pragma Inline (Set_Body_Required);
10980    pragma Inline (Set_By_Ref);
10981    pragma Inline (Set_Box_Present);
10982    pragma Inline (Set_Char_Literal_Value);
10983    pragma Inline (Set_Chars);
10984    pragma Inline (Set_Check_Address_Alignment);
10985    pragma Inline (Set_Choice_Parameter);
10986    pragma Inline (Set_Choices);
10987    pragma Inline (Set_Coextensions);
10988    pragma Inline (Set_Comes_From_Extended_Return_Statement);
10989    pragma Inline (Set_Compile_Time_Known_Aggregate);
10990    pragma Inline (Set_Component_Associations);
10991    pragma Inline (Set_Component_Clauses);
10992    pragma Inline (Set_Component_Definition);
10993    pragma Inline (Set_Component_Items);
10994    pragma Inline (Set_Component_List);
10995    pragma Inline (Set_Component_Name);
10996    pragma Inline (Set_Condition);
10997    pragma Inline (Set_Condition_Actions);
10998    pragma Inline (Set_Config_Pragmas);
10999    pragma Inline (Set_Constant_Present);
11000    pragma Inline (Set_Constraint);
11001    pragma Inline (Set_Constraints);
11002    pragma Inline (Set_Context_Installed);
11003    pragma Inline (Set_Context_Items);
11004    pragma Inline (Set_Controlling_Argument);
11005    pragma Inline (Set_Conversion_OK);
11006    pragma Inline (Set_Corresponding_Body);
11007    pragma Inline (Set_Corresponding_Formal_Spec);
11008    pragma Inline (Set_Corresponding_Generic_Association);
11009    pragma Inline (Set_Corresponding_Integer_Value);
11010    pragma Inline (Set_Corresponding_Spec);
11011    pragma Inline (Set_Corresponding_Stub);
11012    pragma Inline (Set_Dcheck_Function);
11013    pragma Inline (Set_Debug_Statement);
11014    pragma Inline (Set_Declarations);
11015    pragma Inline (Set_Default_Expression);
11016    pragma Inline (Set_Default_Name);
11017    pragma Inline (Set_Defining_Identifier);
11018    pragma Inline (Set_Defining_Unit_Name);
11019    pragma Inline (Set_Delay_Alternative);
11020    pragma Inline (Set_Delay_Statement);
11021    pragma Inline (Set_Delta_Expression);
11022    pragma Inline (Set_Digits_Expression);
11023    pragma Inline (Set_Discr_Check_Funcs_Built);
11024    pragma Inline (Set_Discrete_Choices);
11025    pragma Inline (Set_Discrete_Range);
11026    pragma Inline (Set_Discrete_Subtype_Definition);
11027    pragma Inline (Set_Discrete_Subtype_Definitions);
11028    pragma Inline (Set_Discriminant_Specifications);
11029    pragma Inline (Set_Discriminant_Type);
11030    pragma Inline (Set_Do_Accessibility_Check);
11031    pragma Inline (Set_Do_Discriminant_Check);
11032    pragma Inline (Set_Do_Length_Check);
11033    pragma Inline (Set_Do_Division_Check);
11034    pragma Inline (Set_Do_Overflow_Check);
11035    pragma Inline (Set_Do_Range_Check);
11036    pragma Inline (Set_Do_Storage_Check);
11037    pragma Inline (Set_Do_Tag_Check);
11038    pragma Inline (Set_Elaborate_Present);
11039    pragma Inline (Set_Elaborate_All_Desirable);
11040    pragma Inline (Set_Elaborate_All_Present);
11041    pragma Inline (Set_Elaborate_Desirable);
11042    pragma Inline (Set_Elaboration_Boolean);
11043    pragma Inline (Set_Else_Actions);
11044    pragma Inline (Set_Else_Statements);
11045    pragma Inline (Set_Elsif_Parts);
11046    pragma Inline (Set_Enclosing_Variant);
11047    pragma Inline (Set_End_Label);
11048    pragma Inline (Set_End_Span);
11049    pragma Inline (Set_Entity);
11050    pragma Inline (Set_Entry_Body_Formal_Part);
11051    pragma Inline (Set_Entry_Call_Alternative);
11052    pragma Inline (Set_Entry_Call_Statement);
11053    pragma Inline (Set_Entry_Direct_Name);
11054    pragma Inline (Set_Entry_Index);
11055    pragma Inline (Set_Entry_Index_Specification);
11056    pragma Inline (Set_Etype);
11057    pragma Inline (Set_Exception_Choices);
11058    pragma Inline (Set_Exception_Handlers);
11059    pragma Inline (Set_Exception_Junk);
11060    pragma Inline (Set_Exception_Label);
11061    pragma Inline (Set_Expansion_Delayed);
11062    pragma Inline (Set_Explicit_Actual_Parameter);
11063    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11064    pragma Inline (Set_Expression);
11065    pragma Inline (Set_Expressions);
11066    pragma Inline (Set_First_Bit);
11067    pragma Inline (Set_First_Inlined_Subprogram);
11068    pragma Inline (Set_First_Name);
11069    pragma Inline (Set_First_Named_Actual);
11070    pragma Inline (Set_First_Real_Statement);
11071    pragma Inline (Set_First_Subtype_Link);
11072    pragma Inline (Set_Float_Truncate);
11073    pragma Inline (Set_Formal_Type_Definition);
11074    pragma Inline (Set_Forwards_OK);
11075    pragma Inline (Set_From_At_Mod);
11076    pragma Inline (Set_From_Default);
11077    pragma Inline (Set_Generic_Associations);
11078    pragma Inline (Set_Generic_Formal_Declarations);
11079    pragma Inline (Set_Generic_Parent);
11080    pragma Inline (Set_Generic_Parent_Type);
11081    pragma Inline (Set_Handled_Statement_Sequence);
11082    pragma Inline (Set_Handler_List_Entry);
11083    pragma Inline (Set_Has_Created_Identifier);
11084    pragma Inline (Set_Has_Dynamic_Length_Check);
11085    pragma Inline (Set_Has_Init_Expression);
11086    pragma Inline (Set_Has_Local_Raise);
11087    pragma Inline (Set_Has_Dynamic_Range_Check);
11088    pragma Inline (Set_Has_No_Elaboration_Code);
11089    pragma Inline (Set_Has_Priority_Pragma);
11090    pragma Inline (Set_Has_Private_View);
11091    pragma Inline (Set_Has_Storage_Size_Pragma);
11092    pragma Inline (Set_Has_Task_Info_Pragma);
11093    pragma Inline (Set_Has_Task_Name_Pragma);
11094    pragma Inline (Set_Has_Wide_Character);
11095    pragma Inline (Set_Hidden_By_Use_Clause);
11096    pragma Inline (Set_High_Bound);
11097    pragma Inline (Set_Identifier);
11098    pragma Inline (Set_Implicit_With);
11099    pragma Inline (Set_Includes_Infinities);
11100    pragma Inline (Set_Interface_List);
11101    pragma Inline (Set_Interface_Present);
11102    pragma Inline (Set_In_Present);
11103    pragma Inline (Set_Instance_Spec);
11104    pragma Inline (Set_Intval);
11105    pragma Inline (Set_Is_Asynchronous_Call_Block);
11106    pragma Inline (Set_Is_Component_Left_Opnd);
11107    pragma Inline (Set_Is_Component_Right_Opnd);
11108    pragma Inline (Set_Is_Controlling_Actual);
11109    pragma Inline (Set_Is_Dynamic_Coextension);
11110    pragma Inline (Set_Is_Entry_Barrier_Function);
11111    pragma Inline (Set_Is_Folded_In_Parser);
11112    pragma Inline (Set_Is_In_Discriminant_Check);
11113    pragma Inline (Set_Is_Machine_Number);
11114    pragma Inline (Set_Is_Null_Loop);
11115    pragma Inline (Set_Is_Overloaded);
11116    pragma Inline (Set_Is_Power_Of_2_For_Shift);
11117    pragma Inline (Set_Is_Protected_Subprogram_Body);
11118    pragma Inline (Set_Has_Self_Reference);
11119    pragma Inline (Set_Is_Static_Coextension);
11120    pragma Inline (Set_Is_Static_Expression);
11121    pragma Inline (Set_Is_Subprogram_Descriptor);
11122    pragma Inline (Set_Is_Task_Allocation_Block);
11123    pragma Inline (Set_Is_Task_Master);
11124    pragma Inline (Set_Iteration_Scheme);
11125    pragma Inline (Set_Itype);
11126    pragma Inline (Set_Kill_Range_Check);
11127    pragma Inline (Set_Last_Bit);
11128    pragma Inline (Set_Last_Name);
11129    pragma Inline (Set_Library_Unit);
11130    pragma Inline (Set_Label_Construct);
11131    pragma Inline (Set_Left_Opnd);
11132    pragma Inline (Set_Limited_View_Installed);
11133    pragma Inline (Set_Limited_Present);
11134    pragma Inline (Set_Literals);
11135    pragma Inline (Set_Local_Raise_Not_OK);
11136    pragma Inline (Set_Local_Raise_Statements);
11137    pragma Inline (Set_Loop_Actions);
11138    pragma Inline (Set_Loop_Parameter_Specification);
11139    pragma Inline (Set_Low_Bound);
11140    pragma Inline (Set_Mod_Clause);
11141    pragma Inline (Set_More_Ids);
11142    pragma Inline (Set_Must_Be_Byte_Aligned);
11143    pragma Inline (Set_Must_Not_Freeze);
11144    pragma Inline (Set_Must_Not_Override);
11145    pragma Inline (Set_Must_Override);
11146    pragma Inline (Set_Name);
11147    pragma Inline (Set_Names);
11148    pragma Inline (Set_Next_Entity);
11149    pragma Inline (Set_Next_Named_Actual);
11150    pragma Inline (Set_Next_Use_Clause);
11151    pragma Inline (Set_No_Ctrl_Actions);
11152    pragma Inline (Set_No_Elaboration_Check);
11153    pragma Inline (Set_No_Entities_Ref_In_Spec);
11154    pragma Inline (Set_No_Initialization);
11155    pragma Inline (Set_No_Truncation);
11156    pragma Inline (Set_Null_Present);
11157    pragma Inline (Set_Null_Exclusion_Present);
11158    pragma Inline (Set_Null_Record_Present);
11159    pragma Inline (Set_Object_Definition);
11160    pragma Inline (Set_Original_Discriminant);
11161    pragma Inline (Set_Original_Entity);
11162    pragma Inline (Set_Others_Discrete_Choices);
11163    pragma Inline (Set_Out_Present);
11164    pragma Inline (Set_Parameter_Associations);
11165    pragma Inline (Set_Parameter_Specifications);
11166    pragma Inline (Set_Parameter_List_Truncated);
11167    pragma Inline (Set_Parameter_Type);
11168    pragma Inline (Set_Parent_Spec);
11169    pragma Inline (Set_Position);
11170    pragma Inline (Set_Pragma_Argument_Associations);
11171    pragma Inline (Set_Pragmas_After);
11172    pragma Inline (Set_Pragmas_Before);
11173    pragma Inline (Set_Prefix);
11174    pragma Inline (Set_Present_Expr);
11175    pragma Inline (Set_Prev_Ids);
11176    pragma Inline (Set_Print_In_Hex);
11177    pragma Inline (Set_Private_Declarations);
11178    pragma Inline (Set_Private_Present);
11179    pragma Inline (Set_Procedure_To_Call);
11180    pragma Inline (Set_Proper_Body);
11181    pragma Inline (Set_Protected_Definition);
11182    pragma Inline (Set_Protected_Present);
11183    pragma Inline (Set_Raises_Constraint_Error);
11184    pragma Inline (Set_Range_Constraint);
11185    pragma Inline (Set_Range_Expression);
11186    pragma Inline (Set_Real_Range_Specification);
11187    pragma Inline (Set_Realval);
11188    pragma Inline (Set_Reason);
11189    pragma Inline (Set_Record_Extension_Part);
11190    pragma Inline (Set_Redundant_Use);
11191    pragma Inline (Set_Renaming_Exception);
11192    pragma Inline (Set_Result_Definition);
11193    pragma Inline (Set_Return_Object_Declarations);
11194    pragma Inline (Set_Reverse_Present);
11195    pragma Inline (Set_Right_Opnd);
11196    pragma Inline (Set_Rounded_Result);
11197    pragma Inline (Set_Scope);
11198    pragma Inline (Set_Select_Alternatives);
11199    pragma Inline (Set_Selector_Name);
11200    pragma Inline (Set_Selector_Names);
11201    pragma Inline (Set_Shift_Count_OK);
11202    pragma Inline (Set_Source_Type);
11203    pragma Inline (Set_Specification);
11204    pragma Inline (Set_Statements);
11205    pragma Inline (Set_Static_Processing_OK);
11206    pragma Inline (Set_Storage_Pool);
11207    pragma Inline (Set_Strval);
11208    pragma Inline (Set_Subtype_Indication);
11209    pragma Inline (Set_Subtype_Mark);
11210    pragma Inline (Set_Subtype_Marks);
11211    pragma Inline (Set_Synchronized_Present);
11212    pragma Inline (Set_Tagged_Present);
11213    pragma Inline (Set_Target_Type);
11214    pragma Inline (Set_Task_Definition);
11215    pragma Inline (Set_Task_Present);
11216    pragma Inline (Set_Then_Actions);
11217    pragma Inline (Set_Then_Statements);
11218    pragma Inline (Set_Triggering_Alternative);
11219    pragma Inline (Set_Triggering_Statement);
11220    pragma Inline (Set_Treat_Fixed_As_Integer);
11221    pragma Inline (Set_TSS_Elist);
11222    pragma Inline (Set_Type_Definition);
11223    pragma Inline (Set_Unit);
11224    pragma Inline (Set_Unknown_Discriminants_Present);
11225    pragma Inline (Set_Unreferenced_In_Spec);
11226    pragma Inline (Set_Variant_Part);
11227    pragma Inline (Set_Variants);
11228    pragma Inline (Set_Visible_Declarations);
11229    pragma Inline (Set_Was_Originally_Stub);
11230    pragma Inline (Set_Zero_Cost_Handling);
11231
11232    N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11233    --  Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11234    --  should refer to N_Simple_Return_Statement.
11235
11236 end Sinfo;