OSDN Git Service

2012-01-05 Richard Guenther <rguenther@suse.de>
[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-2011, 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 3,  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.                                     --
17 --                                                                          --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception,   --
20 -- version 3.1, as published by the Free Software Foundation.               --
21 --                                                                          --
22 -- You should have received a copy of the GNU General Public License and    --
23 -- a copy of the GCC Runtime Library Exception along with this program;     --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
25 -- <http://www.gnu.org/licenses/>.                                          --
26 --                                                                          --
27 -- GNAT was originally developed  by the GNAT team at  New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
29 --                                                                          --
30 ------------------------------------------------------------------------------
31
32 --  This package defines the structure of the abstract syntax tree. The Tree
33 --  package provides a basic tree structure. Sinfo describes how this structure
34 --  is used to represent the syntax of an Ada program.
35
36 --  The grammar in the RM is followed very closely in the tree design, and is
37 --  repeated as part of this source file.
38
39 --  The tree contains not only the full syntactic representation of the
40 --  program, but also the results of semantic analysis. In particular, the
41 --  nodes for defining identifiers, defining character literals and defining
42 --  operator symbols, collectively referred to as entities, represent what
43 --  would normally be regarded as the symbol table information. In addition a
44 --  number of the tree nodes contain semantic information.
45
46 --  WARNING: Several files are automatically generated from this package.
47 --  See below for details.
48
49 with Namet;  use Namet;
50 with Types;  use Types;
51 with Uintp;  use Uintp;
52 with Urealp; use Urealp;
53
54 package Sinfo is
55
56    ---------------------------------
57    -- Making Changes to This File --
58    ---------------------------------
59
60    --  If changes are made to this file, a number of related steps must be
61    --  carried out to ensure consistency. First, if a field access function is
62    --  added, it appears in these places:
63
64    --    In sinfo.ads:
65    --      The documentation associated with the field (if semantic)
66    --      The documentation associated with the node
67    --      The spec of the access function
68    --      The spec of the set procedure
69    --      The entries in Is_Syntactic_Field
70    --      The pragma Inline for the access function
71    --      The pragma Inline for the set procedure
72    --    In sinfo.adb:
73    --      The body of the access function
74    --      The body of the set procedure
75
76    --  The field chosen must be consistent in all places, and, for a node that
77    --  is a subexpression, must not overlap any of the standard expression
78    --  fields.
79
80    --  In addition, if any of the standard expression fields is changed, then
81    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
82    --  must be updated appropriately, since it special cases expression fields.
83
84    --  If a new tree node is added, then the following changes are made
85
86    --    Add it to the documentation in the appropriate place
87    --    Add its fields to this documentation section
88    --    Define it in the appropriate classification in Node_Kind
89    --    In the body (sinfo), add entries to the access functions for all
90    --     its fields (except standard expression fields) to include the new
91    --     node in the checks.
92    --    Add an appropriate section to the case statement in sprint.adb
93    --    Add an appropriate section to the case statement in sem.adb
94    --    Add an appropriate section to the case statement in exp_util.adb
95    --     (Insert_Actions procedure)
96    --    For a subexpression, add an appropriate section to the case
97    --     statement in sem_eval.adb
98    --    For a subexpression, add an appropriate section to the case
99    --     statement in sem_res.adb
100
101    --  Finally, four utility programs must be run:
102
103    --    (Optional.) Run CSinfo to check that you have made the changes
104    --     consistently. It checks most of the rules given above. This utility
105    --     reads sinfo.ads and sinfo.adb and generates a report to standard
106    --     output. This step is optional because XSinfo runs CSinfo.
107
108    --    Run XSinfo to create sinfo.h, the corresponding C header. This
109    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
110    --     not need to read sinfo.adb, since the contents of the body are
111    --     algorithmically determinable from the spec.
112
113    --    Run XTreeprs to create treeprs.ads, an updated version of the module
114    --     that is used to drive the tree print routine. This utility reads (but
115    --     does not modify) treeprs.adt, the template that provides the basic
116    --     structure of the file, and then fills in the data from the comments
117    --     in sinfo.ads.
118
119    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
120    --     spec of the Nmake package which contains functions for constructing
121    --     nodes.
122
123    --  The above steps are done automatically by the build scripts when you do
124    --  a full bootstrap.
125
126    --  Note: sometime we could write a utility that actually generated the body
127    --  of sinfo from the spec instead of simply checking it, since, as noted
128    --  above, the contents of the body can be determined from the spec.
129
130    --------------------------------
131    -- Implicit Nodes in the Tree --
132    --------------------------------
133
134    --  Generally the structure of the tree very closely follows the grammar as
135    --  defined in the RM. However, certain nodes are omitted to save space and
136    --  simplify semantic processing. Two general classes of such omitted nodes
137    --  are as follows:
138
139    --   If the only possibilities for a non-terminal are one or more other
140    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
141    --   corresponding node is omitted from the tree, and the target construct
142    --   appears directly. For example, a real type definition is either
143    --   floating point definition or a fixed point definition. No explicit node
144    --   appears for real type definition. Instead either the floating point
145    --   definition or fixed point definition appears directly.
146
147    --   If a non-terminal corresponds to a list of some other non-terminal
148    --   (possibly with separating punctuation), then usually it is omitted from
149    --   the tree, and a list of components appears instead. For example,
150    --   sequence of statements does not appear explicitly in the tree. Instead
151    --   a list of statements appears directly.
152
153    --  Some additional cases of omitted nodes occur and are documented
154    --  individually. In particular, many nodes are omitted in the tree
155    --  generated for an expression.
156
157    -------------------------------------------
158    -- Handling of Defining Identifier Lists --
159    -------------------------------------------
160
161    --  In several declarative forms in the syntax, lists of defining
162    --  identifiers appear (object declarations, component declarations, number
163    --  declarations etc.)
164
165    --  The semantics of such statements are equivalent to a series of identical
166    --  declarations of single defining identifiers (except that conformance
167    --  checks require the same grouping of identifiers in the parameter case).
168
169    --  To simplify semantic processing, the parser breaks down such multiple
170    --  declaration cases into sequences of single declarations, duplicating
171    --  type and initialization information as required. The flags More_Ids and
172    --  Prev_Ids are used to record the original form of the source in the case
173    --  where the original source used a list of names, More_Ids being set on
174    --  all but the last name and Prev_Ids being set on all but the first name.
175    --  These flags are used to reconstruct the original source (e.g. in the
176    --  Sprint package), and also are included in the conformance checks, but
177    --  otherwise have no semantic significance.
178
179    --  Note: the reason that we use More_Ids and Prev_Ids rather than
180    --  First_Name and Last_Name flags is so that the flags are off in the
181    --  normal one identifier case, which minimizes tree print output.
182
183    -----------------------
184    -- Use of Node Lists --
185    -----------------------
186
187    --  With a few exceptions, if a construction of the form {non-terminal}
188    --  appears in the tree, lists are used in the corresponding tree node (see
189    --  package Nlists for handling of node lists). In this case a field of the
190    --  parent node points to a list of nodes for the non-terminal. The field
191    --  name for such fields has a plural name which always ends in "s". For
192    --  example, a case statement has a field Alternatives pointing to list of
193    --  case statement alternative nodes.
194
195    --  Only fields pointing to lists have names ending in "s", so generally the
196    --  structure is strongly typed, fields not ending in s point to single
197    --  nodes, and fields ending in s point to lists.
198
199    --  The following example shows how a traversal of a list is written. We
200    --  suppose here that Stmt points to a N_Case_Statement node which has a
201    --  list field called Alternatives:
202
203    --   Alt := First (Alternatives (Stmt));
204    --   while Present (Alt) loop
205    --      ..
206    --      -- processing for case statement alternative Alt
207    --      ..
208    --      Alt := Next (Alt);
209    --   end loop;
210
211    --  The Present function tests for Empty, which in this case signals the end
212    --  of the list. First returns Empty immediately if the list is empty.
213    --  Present is defined in Atree, First and Next are defined in Nlists.
214
215    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
216    --  contexts, which is handled as described in the previous section, and
217    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
218    --  using the First_Name and Last_Name flags, as further detailed in the
219    --  description of the N_With_Clause node.
220
221    -------------
222    -- Pragmas --
223    -------------
224
225    --  Pragmas can appear in many different context, but are not included in
226    --  the grammar. Still they must appear in the tree, so they can be properly
227    --  processed.
228
229    --  Two approaches are used. In some cases, an extra field is defined in an
230    --  appropriate node that contains a list of pragmas appearing in the
231    --  expected context. For example pragmas can appear before an
232    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
233    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
234
235    --  The other approach is to simply allow pragmas to appear in syntactic
236    --  lists where the grammar (of course) does not include the possibility.
237    --  For example, the Variants field of an N_Variant_Part node points to a
238    --  list that can contain both N_Pragma and N_Variant nodes.
239
240    --  To make processing easier in the latter case, the Nlists package
241    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
242    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
243    --  ignoring all pragmas.
244
245    --  In the case of the variants list, we can either write:
246
247    --      Variant := First (Variants (N));
248    --      while Present (Variant) loop
249    --         ...
250    --         Variant := Next (Variant);
251    --      end loop;
252
253    --  or
254
255    --      Variant := First_Non_Pragma (Variants (N));
256    --      while Present (Variant) loop
257    --         ...
258    --         Variant := Next_Non_Pragma (Variant);
259    --      end loop;
260
261    --  In the first form of the loop, Variant can either be an N_Pragma or an
262    --  N_Variant node. In the second form, Variant can only be N_Variant since
263    --  all pragmas are skipped.
264
265    ---------------------
266    -- Optional Fields --
267    ---------------------
268
269    --  Fields which correspond to a section of the syntax enclosed in square
270    --  brackets are generally omitted (and the corresponding field set to Empty
271    --  for a node, or No_List for a list). The documentation of such fields
272    --  notes these cases. One exception to this rule occurs in the case of
273    --  possibly empty statement sequences (such as the sequence of statements
274    --  in an entry call alternative). Such cases appear in the syntax rules as
275    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
276    --  statement sequences always contain an empty list (not No_List) if no
277    --  statements are present.
278
279    --  Note: the utility program that constructs the body and spec of the Nmake
280    --  package relies on the format of the comments to determine if a field
281    --  should have a default value in the corresponding make routine. The rule
282    --  is that if the first line of the description of the field contains the
283    --  string "(set to xxx if", then a default value of xxx is provided for
284    --  this field in the corresponding Make_yyy routine.
285
286    -----------------------------------
287    -- Note on Body/Spec Terminology --
288    -----------------------------------
289
290    --  In informal discussions about Ada, it is customary to refer to package
291    --  and subprogram specs and bodies. However, this is not technically
292    --  correct, what is normally referred to as a spec or specification is in
293    --  fact a package declaration or subprogram declaration. We are careful in
294    --  GNAT to use the correct terminology and in particular, the full word
295    --  specification is never used as an incorrect substitute for declaration.
296    --  The structure and terminology used in the tree also reflects the grammar
297    --  and thus uses declaration and specification in the technically correct
298    --  manner.
299
300    --  However, there are contexts in which the informal terminology is useful.
301    --  We have the word "body" to refer to the Interp_Etype declared by the
302    --  declaration of a unit body, and in some contexts we need similar term to
303    --  refer to the entity declared by the package or subprogram declaration,
304    --  and simply using declaration can be confusing since the body also has a
305    --  declaration.
306
307    --  An example of such a context is the link between the package body and
308    --  its declaration. With_Declaration is confusing, since the package body
309    --  itself is a declaration.
310
311    --  To deal with this problem, we reserve the informal term Spec, i.e. the
312    --  popular abbreviation used in this context, to refer to the entity
313    --  declared by the package or subprogram declaration. So in the above
314    --  example case, the field in the body is called With_Spec.
315
316    --  Another important context for the use of the word Spec is in error
317    --  messages, where a hyper-correct use of declaration would be confusing to
318    --  a typical Ada programmer, and even for an expert programmer can cause
319    --  confusion since the body has a declaration as well.
320
321    --  So, to summarize:
322
323    --     Declaration    always refers to the syntactic entity that is called
324    --                    a declaration. In particular, subprogram declaration
325    --                    and package declaration are used to describe the
326    --                    syntactic entity that includes the semicolon.
327
328    --     Specification  always refers to the syntactic entity that is called
329    --                    a specification. In particular, the terms procedure
330    --                    specification, function specification, package
331    --                    specification, subprogram specification always refer
332    --                    to the syntactic entity that has no semicolon.
333
334    --     Spec           is an informal term, used to refer to the entity
335    --                    that is declared by a task declaration, protected
336    --                    declaration, generic declaration, subprogram
337    --                    declaration or package declaration.
338
339    --  This convention is followed throughout the GNAT documentation
340    --  both internal and external, and in all error message text.
341
342    ------------------------
343    -- Internal Use Nodes --
344    ------------------------
345
346    --  These are Node_Kind settings used in the internal implementation which
347    --  are not logically part of the specification.
348
349    --  N_Unused_At_Start
350    --  Completely unused entry at the start of the enumeration type. This
351    --  is inserted so that no legitimate value is zero, which helps to get
352    --  better debugging behavior, since zero is a likely uninitialized value).
353
354    --  N_Unused_At_End
355    --  Completely unused entry at the end of the enumeration type. This is
356    --  handy so that arrays with Node_Kind as the index type have an extra
357    --  entry at the end (see for example the use of the Pchar_Pos_Array in
358    --  Treepr, where the extra entry provides the limit value when dealing with
359    --  the last used entry in the array).
360
361    -----------------------------------------
362    -- Note on the settings of Sloc fields --
363    -----------------------------------------
364
365    --  The Sloc field of nodes that come from the source is set by the parser.
366    --  For internal nodes, and nodes generated during expansion the Sloc is
367    --  usually set in the call to the constructor for the node. In general the
368    --  Sloc value chosen for an internal node is the Sloc of the source node
369    --  whose processing is responsible for the expansion. For example, the Sloc
370    --  of an inherited primitive operation is the Sloc of the corresponding
371    --  derived type declaration.
372
373    --  For the nodes of a generic instantiation, the Sloc value is encoded to
374    --  represent both the original Sloc in the generic unit, and the Sloc of
375    --  the instantiation itself. See Sinput.ads for details.
376
377    --  Subprogram instances create two callable entities: one is the visible
378    --  subprogram instance, and the other is an anonymous subprogram nested
379    --  within a wrapper package that contains the renamings for the actuals.
380    --  Both of these entities have the Sloc of the defining entity in the
381    --  instantiation node. This simplifies some ASIS queries.
382
383    -----------------------
384    -- Field Definitions --
385    -----------------------
386
387    --  In the following node definitions, all fields, both syntactic and
388    --  semantic, are documented. The one exception is in the case of entities
389    --  (defining identifiers, character literals and operator symbols), where
390    --  the usage of the fields depends on the entity kind. Entity fields are
391    --  fully documented in the separate package Einfo.
392
393    --  In the node definitions, three common sets of fields are abbreviated to
394    --  save both space in the documentation, and also space in the string
395    --  (defined in Tree_Print_Strings) used to print trees. The following
396    --  abbreviations are used:
397
398    --  Note: the utility program that creates the Treeprs spec (in the file
399    --  xtreeprs.adb) knows about the special fields here, so it must be
400    --  modified if any change is made to these fields.
401
402    --    "plus fields for binary operator"
403    --       Chars                    (Name1)      Name_Id for the operator
404    --       Left_Opnd                (Node2)      left operand expression
405    --       Right_Opnd               (Node3)      right operand expression
406    --       Entity                   (Node4-Sem)  defining entity for operator
407    --       Associated_Node          (Node4-Sem)  for generic processing
408    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
409    --       Has_Private_View         (Flag11-Sem) set in generic units.
410
411    --    "plus fields for unary operator"
412    --       Chars                    (Name1)      Name_Id for the operator
413    --       Right_Opnd               (Node3)      right operand expression
414    --       Entity                   (Node4-Sem)  defining entity for operator
415    --       Associated_Node          (Node4-Sem)  for generic processing
416    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
417    --       Has_Private_View         (Flag11-Sem) set in generic units.
418
419    --    "plus fields for expression"
420    --       Paren_Count                           number of parentheses levels
421    --       Etype                    (Node5-Sem)  type of the expression
422    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
423    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
424    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
425    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
426    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
427    --       Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
428    --       Has_Dynamic_Range_Check  (Flag12-Sem) set if range check inserted
429    --       Assignment_OK            (Flag15-Sem) set if modification is OK
430    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
431
432    --  Note: see under (EXPRESSION) for further details on the use of
433    --  the Paren_Count field to record the number of parentheses levels.
434
435    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
436    --  The actual definition of this type is given later (the reason for this
437    --  is that we want the descriptions ordered by logical chapter in the RM,
438    --  but the type definition is reordered to facilitate the definition of
439    --  some subtype ranges. The individual descriptions of the nodes show how
440    --  the various fields are used in each node kind, as well as providing
441    --  logical names for the fields. Functions and procedures are provided for
442    --  accessing and setting these fields using these logical names.
443
444    -----------------------
445    -- Gigi Restrictions --
446    -----------------------
447
448    --  The tree passed to Gigi is more restricted than the general tree form.
449    --  For example, as a result of expansion, most of the tasking nodes can
450    --  never appear. For each node to which either a complete or partial
451    --  restriction applies, a note entitled "Gigi restriction" appears which
452    --  documents the restriction.
453
454    --  Note that most of these restrictions apply only to trees generated when
455    --  code is being generated, since they involved expander actions that
456    --  destroy the tree.
457
458    ------------------------
459    -- Common Flag Fields --
460    ------------------------
461
462    --  The following flag fields appear in all nodes
463
464    --  Analyzed
465    --    This flag is used to indicate that a node (and all its children have
466    --    been analyzed. It is used to avoid reanalysis of a node that has
467    --    already been analyzed, both for efficiency and functional correctness
468    --    reasons.
469
470    --  Comes_From_Source
471    --    This flag is set if the node comes directly from an explicit construct
472    --    in the source. It is normally on for any nodes built by the scanner or
473    --    parser from the source program, with the exception that in a few cases
474    --    the parser adds nodes to normalize the representation (in particular
475    --    a null statement is added to a package body if there is no begin/end
476    --    initialization section.
477    --
478    --    Most nodes inserted by the analyzer or expander are not considered
479    --    as coming from source, so the flag is off for such nodes. In a few
480    --    cases, the expander constructs nodes closely equivalent to nodes
481    --    from the source program (e.g. the allocator built for build-in-place
482    --    case), and the Comes_From_Source flag is deliberately set.
483
484    --  Error_Posted
485    --    This flag is used to avoid multiple error messages being posted on or
486    --    referring to the same node. This flag is set if an error message
487    --    refers to a node or is posted on its source location, and has the
488    --    effect of inhibiting further messages involving this same node.
489
490    ------------------------------------
491    -- Description of Semantic Fields --
492    ------------------------------------
493
494    --  The meaning of the syntactic fields is generally clear from their names
495    --  without any further description, since the names are chosen to
496    --  correspond very closely to the syntax in the reference manual. This
497    --  section describes the usage of the semantic fields, which are used to
498    --  contain additional information determined during semantic analysis.
499
500    --  ABE_Is_Certain (Flag18-Sem)
501    --    This flag is set in an instantiation node or a call node is determined
502    --    to be sure to raise an ABE. This is used to trigger special handling
503    --    of such cases, particularly in the instantiation case where we avoid
504    --    instantiating the body if this flag is set. This flag is also present
505    --    in an N_Formal_Package_Declaration_Node since formal package
506    --    declarations are treated like instantiations, but it is always set to
507    --    False in this context.
508
509    --  Accept_Handler_Records (List5-Sem)
510    --    This field is present only in an N_Accept_Alternative node. It is used
511    --    to temporarily hold the exception handler records from an accept
512    --    statement in a selective accept. These exception handlers will
513    --    eventually be placed in the Handler_Records list of the procedure
514    --    built for this accept (see Expand_N_Selective_Accept procedure in
515    --    Exp_Ch9 for further details).
516
517    --  Access_Types_To_Process (Elist2-Sem)
518    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
519    --    Contains the list of access types which may require specific treatment
520    --    when the nature of the type completion is completely known. An example
521    --    of such treatment is the generation of the associated_final_chain.
522
523    --  Actions (List1-Sem)
524    --    This field contains a sequence of actions that are associated with the
525    --    node holding the field. See the individual node types for details of
526    --    how this field is used, as well as the description of the specific use
527    --    for a particular node type.
528
529    --  Activation_Chain_Entity (Node3-Sem)
530    --    This is used in tree nodes representing task activators (blocks,
531    --    subprogram bodies, package declarations, and task bodies). It is
532    --    initially Empty, and then gets set to point to the entity for the
533    --    declared Activation_Chain variable when the first task is declared.
534    --    When tasks are declared in the corresponding declarative region this
535    --    entity is located by name (its name is always _Chain) and the declared
536    --    tasks are added to the chain. Note that N_Extended_Return_Statement
537    --    does not have this attribute, although it does have an activation
538    --    chain. This chain is used to store the tasks temporarily, and is not
539    --    used for activating them. On successful completion of the return
540    --    statement, the tasks are moved to the caller's chain, and the caller
541    --    activates them.
542
543    --  Acts_As_Spec (Flag4-Sem)
544    --    A flag set in the N_Subprogram_Body node for a subprogram body which
545    --    is acting as its own spec, except in the case of a library level
546    --    subprogram, in which case the flag is set on the parent compilation
547    --    unit node instead (see further description in spec of Lib package).
548    --    ??? Above note about Lib is dubious since lib.ads does not mention
549    --    Acts_As_Spec at all.
550
551    --  Actual_Designated_Subtype (Node4-Sem)
552    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
553    --    needs to known the dynamic constrained subtype of the designated
554    --    object, this attribute is set to that type. This is done for
555    --    N_Free_Statements for access-to-classwide types and access to
556    --    unconstrained packed array types, and for N_Explicit_Dereference when
557    --    the designated type is an unconstrained packed array and the
558    --    dereference is the prefix of a 'Size attribute reference.
559
560    --  Address_Warning_Posted (Flag18-Sem)
561    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
562    --    posted a warning for the address clause regarding size or alignment
563    --    issues. Used to inhibit multiple redundant messages.
564
565    --  Aggregate_Bounds (Node3-Sem)
566    --    Present in array N_Aggregate nodes. If the bounds of the aggregate are
567    --    known at compile time, this field points to an N_Range node with those
568    --    bounds. Otherwise Empty.
569
570    --  All_Others (Flag11-Sem)
571    --    Present in an N_Others_Choice node. This flag is set for an others
572    --    exception where all exceptions are to be caught, even those that are
573    --    not normally handled (in particular the tasking abort signal). This
574    --    is used for translation of the at end handler into a normal exception
575    --    handler.
576
577    --  Aspect_Rep_Item (Node2-Sem)
578    --    Present in N_Aspect_Specification nodes. Points to the corresponding
579    --    pragma/attribute definition node used to process the aspect.
580
581    --  Assignment_OK (Flag15-Sem)
582    --    This flag is set in a subexpression node for an object, indicating
583    --    that the associated object can be modified, even if this would not
584    --    normally be permissible (either by direct assignment, or by being
585    --    passed as an out or in-out parameter). This is used by the expander
586    --    for a number of purposes, including initialization of constants and
587    --    limited type objects (such as tasks), setting discriminant fields,
588    --    setting tag values, etc. N_Object_Declaration nodes also have this
589    --    flag defined. Here it is used to indicate that an initialization
590    --    expression is valid, even where it would normally not be allowed
591    --    (e.g. where the type involved is limited).
592
593    --  Associated_Node (Node4-Sem)
594    --    Present in nodes that can denote an entity: identifiers, character
595    --    literals, operator symbols, expanded names, operator nodes, and
596    --    attribute reference nodes (all these nodes have an Entity field).
597    --    This field is also present in N_Aggregate, N_Selected_Component, and
598    --    N_Extension_Aggregate nodes. This field is used in generic processing
599    --    to create links between the generic template and the generic copy.
600    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
601    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
602    --    the normal function of Entity is not required at the point where the
603    --    Associated_Node is set. Note also, that in generic templates, this
604    --    means that the Entity field does not necessarily point to an Entity.
605    --    Since the back end is expected to ignore generic templates, this is
606    --    harmless.
607
608    --  Atomic_Sync_Required (Flag14-Sem)
609    --    This flag is set on a node for which atomic synchronization is
610    --    required for the corresponding reference or modification.
611
612    --  At_End_Proc (Node1)
613    --    This field is present in an N_Handled_Sequence_Of_Statements node.
614    --    It contains an identifier reference for the cleanup procedure to be
615    --    called. See description of this node for further details.
616
617    --  Backwards_OK (Flag6-Sem)
618    --    A flag present in the N_Assignment_Statement node. It is used only
619    --    if the type being assigned is an array type, and is set if analysis
620    --    determines that it is definitely safe to do the copy backwards, i.e.
621    --    starting at the highest addressed element. This is the case if either
622    --    the operands do not overlap, or they may overlap, but if they do,
623    --    then the left operand is at a higher address than the right operand.
624    --
625    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
626    --    means that the front end could not determine that either direction is
627    --    definitely safe, and a runtime check may be required if the backend
628    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
629    --    set, it means that the front end can assure no overlap of operands.
630
631    --  Body_To_Inline (Node3-Sem)
632    --    present in subprogram declarations. Denotes analyzed but unexpanded
633    --    body of subprogram, to be used when inlining calls. Present when the
634    --    subprogram has an Inline pragma and inlining is enabled. If the
635    --    declaration is completed by a renaming_as_body, and the renamed en-
636    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
637    --    which is used directly in later calls to the original subprogram.
638
639    --  Body_Required (Flag13-Sem)
640    --    A flag that appears in the N_Compilation_Unit node indicating that
641    --    the corresponding unit requires a body. For the package case, this
642    --    indicates that a completion is required. In Ada 95, if the flag is not
643    --    set for the package case, then a body may not be present. In Ada 83,
644    --    if the flag is not set for the package case, then body is optional.
645    --    For a subprogram declaration, the flag is set except in the case where
646    --    a pragma Import or Interface applies, in which case no body is
647    --    permitted (in Ada 83 or Ada 95).
648
649    --  By_Ref (Flag5-Sem)
650    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
651    --    this flag is set when the returned expression is already allocated on
652    --    the secondary stack and thus the result is passed by reference rather
653    --    than copied another time.
654
655    --  Check_Address_Alignment (Flag11-Sem)
656    --    A flag present in N_Attribute_Definition clause for a 'Address
657    --    attribute definition. This flag is set if a dynamic check should be
658    --    generated at the freeze point for the entity to which this address
659    --    clause applies. The reason that we need this flag is that we want to
660    --    check for range checks being suppressed at the point where the
661    --    attribute definition clause is given, rather than testing this at the
662    --    freeze point.
663
664    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
665    --    Present in N_Simple_Return_Statement nodes. True if this node was
666    --    constructed as part of the N_Extended_Return_Statement expansion.
667
668    --  Compile_Time_Known_Aggregate (Flag18-Sem)
669    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
670    --    evaluated at compile time without raising constraint error. Such
671    --    aggregates can be passed as is to Gigi without any expansion. See
672    --    Sem_Aggr for the specific conditions under which an aggregate has this
673    --    flag set. See also the flag Static_Processing_OK.
674
675    --  Componentwise_Assignment (Flag14-Sem)
676    --    Present in N_Assignment_Statement nodes. Set for a record assignment
677    --    where all that needs doing is to expand it into component-by-component
678    --    assignments. This is used internally for the case of tagged types with
679    --    rep clauses, where we need to avoid recursion (we don't want to try to
680    --    generate a call to the primitive operation, because this is the case
681    --    where we are compiling the primitive operation). Note that when we are
682    --    expanding component assignments in this case, we never assign the _tag
683    --    field, but we recursively assign components of the parent type.
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
689    --    to 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    --  Context_Pending (Flag16-Sem)
695    --    This field appears in Compilation_Unit nodes, to indicate that the
696    --    context of the unit is being compiled. Used to detect circularities
697    --    that are not otherwise detected by the loading mechanism. Such
698    --    circularities can occur in the presence of limited and non-limited
699    --    with_clauses that mention the same units.
700
701    --  Controlling_Argument (Node1-Sem)
702    --    This field is set in procedure and function call nodes if the call
703    --    is a dispatching call (it is Empty for a non-dispatching call). It
704    --    indicates the source of the call's controlling tag. For procedure
705    --    calls, the Controlling_Argument is one of the actuals. For function
706    --    that has a dispatching result, it is an entity in the context of the
707    --    call that can provide a tag, or else it is the tag of the root type
708    --    of the class. It can also specify a tag directly rather than being a
709    --    tagged object. The latter is needed by the implementations of AI-239
710    --    and AI-260.
711
712    --  Conversion_OK (Flag14-Sem)
713    --    A flag set on type conversion nodes to indicate that the conversion
714    --    is to be considered as being valid, even though it is the case that
715    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
716    --    Fixed_Value and Integer_Value, for internal conversions done for
717    --    fixed-point operations, and for certain conversions for calls to
718    --    initialization procedures. If Conversion_OK is set, then Etype must be
719    --    set (the analyzer assumes that Etype has been set). For the case of
720    --    fixed-point operands, it also indicates that the conversion is to be
721    --    direct conversion of the underlying integer result, with no regard to
722    --    the small operand.
723
724    --  Corresponding_Aspect (Node3-Sem)
725    --    Present in N_Pragma node. Used to point back to the source aspect from
726    --    the corresponding pragma. This field is Empty for source pragmas.
727
728    --  Corresponding_Body (Node5-Sem)
729    --    This field is set in subprogram declarations, package declarations,
730    --    entry declarations of protected types, and in generic units. It points
731    --    to the defining entity for the corresponding body (NOT the node for
732    --    the body itself).
733
734    --  Corresponding_Formal_Spec (Node3-Sem)
735    --    This field is set in subprogram renaming declarations, where it points
736    --    to the defining entity for a formal subprogram in the case where the
737    --    renaming corresponds to a generic formal subprogram association in an
738    --    instantiation. The field is Empty if the renaming does not correspond
739    --    to such a formal association.
740
741    --  Corresponding_Generic_Association (Node5-Sem)
742    --    This field is defined for object declarations and object renaming
743    --    declarations. It is set for the declarations within an instance that
744    --    map generic formals to their actuals. If set, the field points to
745    --    a generic_association which is the original parent of the expression
746    --    or name appearing in the declaration. This simplifies ASIS queries.
747
748    --  Corresponding_Integer_Value (Uint4-Sem)
749    --    This field is set in real literals of fixed-point types (it is not
750    --    used for floating-point types). It contains the integer value used
751    --    to represent the fixed-point value. It is also set on the universal
752    --    real literals used to represent bounds of fixed-point base types
753    --    and their first named subtypes.
754
755    --  Corresponding_Spec (Node5-Sem)
756    --    This field is set in subprogram, package, task, and protected body
757    --    nodes, where it points to the defining entity in the corresponding
758    --    spec. The attribute is also set in N_With_Clause nodes where it points
759    --    to the defining entity for the with'ed spec, and in a subprogram
760    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
761    --    if there is no corresponding spec, as in the case of a subprogram body
762    --    that serves as its own spec.
763    --
764    --    In Ada 2012, Corresponding_Spec is set on expression functions that
765    --    complete a subprogram declaration.
766
767    --  Corresponding_Stub (Node3-Sem)
768    --    This field is present in an N_Subunit node. It holds the node in
769    --    the parent unit that is the stub declaration for the subunit. It is
770    --    set when analysis of the stub forces loading of the proper body. If
771    --    expansion of the proper body creates new declarative nodes, they are
772    --    inserted at the point of the corresponding_stub.
773
774    --  Dcheck_Function (Node5-Sem)
775    --    This field is present in an N_Variant node, It references the entity
776    --    for the discriminant checking function for the variant.
777
778    --  Default_Expression (Node5-Sem)
779    --    This field is Empty if there is no default expression. If there is a
780    --    simple default expression (one with no side effects), then this field
781    --    simply contains a copy of the Expression field (both point to the tree
782    --    for the default expression). Default_Expression is used for
783    --    conformance checking.
784
785    --  Default_Storage_Pool (Node3-Sem)
786    --    This field is present in N_Compilation_Unit_Aux nodes. It is set to a
787    --    copy of Opt.Default_Pool at the end of the compilation unit. See
788    --    package Opt for details. This is used for inheriting the
789    --    Default_Storage_Pool in child units.
790
791    --  Discr_Check_Funcs_Built (Flag11-Sem)
792    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
793    --    discriminant checking functions are constructed. The purpose is to
794    --    avoid attempting to set these functions more than once.
795
796    --  Do_Accessibility_Check (Flag13-Sem)
797    --    This flag is set on N_Parameter_Specification nodes to indicate
798    --    that an accessibility check is required for the parameter. It is
799    --    not yet decided who takes care of this check (TBD ???).
800
801    --  Do_Discriminant_Check (Flag13-Sem)
802    --    This flag is set on N_Selected_Component nodes to indicate that a
803    --    discriminant check is required using the discriminant check routine
804    --    associated with the selector. The actual check is generated by the
805    --    expander when processing selected components.
806
807    --  Do_Division_Check (Flag13-Sem)
808    --    This flag is set on a division operator (/ mod rem) to indicate
809    --    that a zero divide check is required. The actual check is dealt
810    --    with by the backend (all the front end does is to set the flag).
811
812    --  Do_Length_Check (Flag4-Sem)
813    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
814    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
815    --    is required. It is not determined who deals with this flag (???).
816
817    --  Do_Overflow_Check (Flag17-Sem)
818    --    This flag is set on an operator where an overflow check is required on
819    --    the operation. The actual check is dealt with by the backend (all the
820    --    front end does is to set the flag). The other cases where this flag is
821    --    used is on a Type_Conversion node and for attribute reference nodes.
822    --    For a type conversion, it means that the conversion is from one base
823    --    type to another, and the value may not fit in the target base type.
824    --    See also the description of Do_Range_Check for this case. The only
825    --    attribute references which use this flag are Pred and Succ, where it
826    --    means that the result should be checked for going outside the base
827    --    range. Note that this flag is not set for modular types.
828
829    --  Do_Range_Check (Flag9-Sem)
830    --    This flag is set on an expression which appears in a context where a
831    --    range check is required. The target type is clear from the context.
832    --    The contexts in which this flag can appear are the following:
833
834    --      Right side of an assignment. In this case the target type is
835    --      taken from the left side of the assignment, which is referenced
836    --      by the Name of the N_Assignment_Statement node.
837
838    --      Subscript expressions in an indexed component. In this case the
839    --      target type is determined from the type of the array, which is
840    --      referenced by the Prefix of the N_Indexed_Component node.
841
842    --      Argument expression for a parameter, appearing either directly in
843    --      the Parameter_Associations list of a call or as the Expression of an
844    --      N_Parameter_Association node that appears in this list. In either
845    --      case, the check is against the type of the formal. Note that the
846    --      flag is relevant only in IN and IN OUT parameters, and will be
847    --      ignored for OUT parameters, where no check is required in the call,
848    --      and if a check is required on the return, it is generated explicitly
849    --      with a type conversion.
850
851    --      Initialization expression for the initial value in an object
852    --      declaration. In this case the Do_Range_Check flag is set on
853    --      the initialization expression, and the check is against the
854    --      range of the type of the object being declared.
855
856    --      The expression of a type conversion. In this case the range check is
857    --      against the target type of the conversion. See also the use of
858    --      Do_Overflow_Check on a type conversion. The distinction is that the
859    --      overflow check protects against a value that is outside the range of
860    --      the target base type, whereas a range check checks that the
861    --      resulting value (which is a value of the base type of the target
862    --      type), satisfies the range constraint of the target type.
863
864    --    Note: when a range check is required in contexts other than those
865    --    listed above (e.g. in a return statement), an additional type
866    --    conversion node is introduced to represent the required check.
867
868    --  Do_Storage_Check (Flag17-Sem)
869    --    This flag is set in an N_Allocator node to indicate that a storage
870    --    check is required for the allocation, or in an N_Subprogram_Body node
871    --    to indicate that a stack check is required in the subprogram prolog.
872    --    The N_Allocator case is handled by the routine that expands the call
873    --    to the runtime routine. The N_Subprogram_Body case is handled by the
874    --    backend, and all the semantics does is set the flag.
875
876    --  Do_Tag_Check (Flag13-Sem)
877    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
878    --    N_Procedure_Call_Statement, N_Type_Conversion,
879    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
880    --    node to indicate that the tag check can be suppressed. It is not
881    --    yet decided how this flag is used (TBD ???).
882
883    --  Elaborate_Present (Flag4-Sem)
884    --    This flag is set in the N_With_Clause node to indicate that pragma
885    --    Elaborate pragma appears for the with'ed units.
886
887    --  Elaborate_All_Desirable (Flag9-Sem)
888    --    This flag is set in the N_With_Clause mode to indicate that the static
889    --    elaboration processing has determined that an Elaborate_All pragma is
890    --    desirable for correct elaboration for this unit.
891
892    --  Elaborate_All_Present (Flag14-Sem)
893    --    This flag is set in the N_With_Clause node to indicate that a
894    --    pragma Elaborate_All pragma appears for the with'ed units.
895
896    --  Elaborate_Desirable (Flag11-Sem)
897    --    This flag is set in the N_With_Clause mode to indicate that the static
898    --    elaboration processing has determined that an Elaborate pragma is
899    --    desirable for correct elaboration for this unit.
900
901    --  Elaboration_Boolean (Node2-Sem)
902    --    This field is present in function and procedure specification nodes.
903    --    If set, it points to the entity for a Boolean flag that must be tested
904    --    for certain calls to check for access before elaboration. See body of
905    --    Sem_Elab for further details. This field is Empty if no elaboration
906    --    boolean is required.
907
908    --  Else_Actions (List3-Sem)
909    --    This field is present in conditional expression nodes. During code
910    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
911    --    actions at an appropriate place in the tree to get elaborated at the
912    --    right time. For conditional expressions, we have to be sure that the
913    --    actions for the Else branch are only elaborated if the condition is
914    --    False. The Else_Actions field is used as a temporary parking place for
915    --    these actions. The final tree is always rewritten to eliminate the
916    --    need for this field, so in the tree passed to Gigi, this field is
917    --    always set to No_List.
918
919    --  Enclosing_Variant (Node2-Sem)
920    --    This field is present in the N_Variant node and identifies the Node_Id
921    --    corresponding to the immediately enclosing variant when the variant is
922    --    nested, and N_Empty otherwise. Set during semantic processing of the
923    --    variant part of a record type.
924
925    --  Entity (Node4-Sem)
926    --    Appears in all direct names (identifiers, character literals, and
927    --    operator symbols), as well as expanded names, and attributes that
928    --    denote entities, such as 'Class. Points to entity for corresponding
929    --    defining occurrence. Set after name resolution. For identifiers in a
930    --    WITH list, the corresponding defining occurrence is in a separately
931    --    compiled file, and Entity must be set by the library Load procedure.
932    --
933    --    Note: During name resolution, the value in Entity may be temporarily
934    --    incorrect (e.g. during overload resolution, Entity is initially set to
935    --    the first possible correct interpretation, and then later modified if
936    --    necessary to contain the correct value after resolution).
937    --
938    --    Note: This field overlaps Associated_Node, which is used during
939    --    generic processing (see Sem_Ch12 for details). Note also that in
940    --    generic templates, this means that the Entity field does not always
941    --    point to an Entity. Since the back end is expected to ignore generic
942    --    templates, this is harmless.
943    --
944    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
945    --    It is used only for stream attributes definition clauses. In this
946    --    case, it denotes a (possibly dummy) subprogram entity that is declared
947    --    conceptually at the point of the clause. Thus the visibility of the
948    --    attribute definition clause (in the sense of 8.3(23) as amended by
949    --    AI-195) can be checked by testing the visibility of that subprogram.
950    --
951    --    Note: Normally the Entity field of an identifier points to the entity
952    --    for the corresponding defining identifier, and hence the Chars field
953    --    of an identifier will match the Chars field of the entity. However,
954    --    there is no requirement that these match, and there are obscure cases
955    --    of generated code where they do not match.
956
957    --    Note: Ada 2012 aspect specifications require additional links between
958    --    identifiers and various attributes. These attributes can be of
959    --    arbitrary types, and the entity field of identifiers that denote
960    --    aspects must be used to store arbitrary expressions for later semantic
961    --    checks. See section on aspect specifications for details.
962
963    --  Entity_Or_Associated_Node (Node4-Sem)
964    --    A synonym for both Entity and Associated_Node. Used by convention in
965    --    the code when referencing this field in cases where it is not known
966    --    whether the field contains an Entity or an Associated_Node.
967
968    --  Etype (Node5-Sem)
969    --    Appears in all expression nodes, all direct names, and all entities.
970    --    Points to the entity for the related type. Set after type resolution.
971    --    Normally this is the actual subtype of the expression. However, in
972    --    certain contexts such as the right side of an assignment, subscripts,
973    --    arguments to calls, returned value in a function, initial value etc.
974    --    it is the desired target type. In the event that this is different
975    --    from the actual type, the Do_Range_Check flag will be set if a range
976    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
977    --    points to an essentially arbitrary choice from the possible set of
978    --    types.
979
980    --  Exception_Junk (Flag8-Sem)
981    --    This flag is set in a various nodes appearing in a statement sequence
982    --    to indicate that the corresponding node is an artifact of the
983    --    generated code for exception handling, and should be ignored when
984    --    analyzing the control flow of the relevant sequence of statements
985    --    (e.g. to check that it does not end with a bad return statement).
986
987    --  Exception_Label (Node5-Sem)
988    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
989    --    to be used for transforming the corresponding exception into a goto,
990    --    or contains Empty, if this exception is not to be transformed. Also
991    --    appears in N_Exception_Handler nodes, where, if set, it indicates
992    --    that there may be a local raise for the handler, so that expansion
993    --    to allow a goto is required (and this field contains the label for
994    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
995
996    --  Expansion_Delayed (Flag11-Sem)
997    --    Set on aggregates and extension aggregates that need a top-down rather
998    --    than bottom-up expansion. Typically aggregate expansion happens bottom
999    --    up. For nested aggregates the expansion is delayed until the enclosing
1000    --    aggregate itself is expanded, e.g. in the context of a declaration. To
1001    --    delay it we set this flag. This is done to avoid creating a temporary
1002    --    for each level of a nested aggregates, and also to prevent the
1003    --    premature generation of constraint checks. This is also a requirement
1004    --    if we want to generate the proper attachment to the internal
1005    --    finalization lists (for record with controlled components). Top down
1006    --    expansion of aggregates is also used for in-place array aggregate
1007    --    assignment or initialization. When the full context is known, the
1008    --    target of the assignment or initialization is used to generate the
1009    --    left-hand side of individual assignment to each sub-component.
1010
1011    --  First_Inlined_Subprogram (Node3-Sem)
1012    --    Present in the N_Compilation_Unit node for the main program. Points
1013    --    to a chain of entities for subprograms that are to be inlined. The
1014    --    Next_Inlined_Subprogram field of these entities is used as a link
1015    --    pointer with Empty marking the end of the list. This field is Empty
1016    --    if there are no inlined subprograms or inlining is not active.
1017
1018    --  First_Named_Actual (Node4-Sem)
1019    --    Present in procedure call statement and function call nodes, and also
1020    --    in Intrinsic nodes. Set during semantic analysis to point to the first
1021    --    named parameter where parameters are ordered by declaration order (as
1022    --    opposed to the actual order in the call which may be different due to
1023    --    named associations). Note: this field points to the explicit actual
1024    --    parameter itself, not the N_Parameter_Association node (its parent).
1025
1026    --  First_Real_Statement (Node2-Sem)
1027    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1028    --    Empty. Used only when declarations are moved into the statement part
1029    --    of a construct as a result of wrapping an AT END handler that is
1030    --    required to cover the declarations. In this case, this field is used
1031    --    to remember the location in the statements list of the first real
1032    --    statement, i.e. the statement that used to be first in the statement
1033    --    list before the declarations were prepended.
1034
1035    --  First_Subtype_Link (Node5-Sem)
1036    --    Present in N_Freeze_Entity node for an anonymous base type that is
1037    --    implicitly created by the declaration of a first subtype. It points
1038    --    to the entity for the first subtype.
1039
1040    --  Float_Truncate (Flag11-Sem)
1041    --    A flag present in type conversion nodes. This is used for float to
1042    --    integer conversions where truncation is required rather than rounding.
1043    --    Note that Gigi does not handle type conversions from real to integer
1044    --    with rounding (see Expand_N_Type_Conversion).
1045
1046    --  Forwards_OK (Flag5-Sem)
1047    --    A flag present in the N_Assignment_Statement node. It is used only
1048    --    if the type being assigned is an array type, and is set if analysis
1049    --    determines that it is definitely safe to do the copy forwards, i.e.
1050    --    starting at the lowest addressed element. This is the case if either
1051    --    the operands do not overlap, or they may overlap, but if they do,
1052    --    then the left operand is at a lower address than the right operand.
1053    --
1054    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1055    --    means that the front end could not determine that either direction is
1056    --    definitely safe, and a runtime check may be required if the backend
1057    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1058    --    set, it means that the front end can assure no overlap of operands.
1059
1060    --  From_Aspect_Specification (Flag13-Sem)
1061    --    Processing of aspect specifications typically results in insertion in
1062    --    the tree of corresponding pragma or attribute definition clause nodes.
1063    --    These generated nodes have the From_Aspect_Specification flag set to
1064    --    indicate that they came from aspect specifications originally.
1065
1066    --  From_At_End (Flag4-Sem)
1067    --    This flag is set on an N_Raise_Statement node if it corresponds to
1068    --    the reraise statement generated as the last statement of an AT END
1069    --    handler when SJLJ exception handling is active. It is used to stop
1070    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1071    --    because if the restriction is set, the reraise is not generated.
1072
1073    --  From_At_Mod (Flag4-Sem)
1074    --    This flag is set on the attribute definition clause node that is
1075    --    generated by a transformation of an at mod phrase in a record
1076    --    representation clause. This is used to give slightly different (Ada 83
1077    --    compatible) semantics to such a clause, namely it is used to specify a
1078    --    minimum acceptable alignment for the base type and all subtypes. In
1079    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1080    --    must be a multiple of the given value, and the representation clause
1081    --    is considered to be type specific instead of subtype specific.
1082
1083    --  From_Default (Flag6-Sem)
1084    --    This flag is set on the subprogram renaming declaration created in an
1085    --    instance for a formal subprogram, when the formal is declared with a
1086    --    box, and there is no explicit actual. If the flag is present, the
1087    --    declaration is treated as an implicit reference to the formal in the
1088    --    ali file.
1089
1090    --  Generic_Parent (Node5-Sem)
1091    --    Generic_Parent is defined on declaration nodes that are instances. The
1092    --    value of Generic_Parent is the generic entity from which the instance
1093    --    is obtained. Generic_Parent is also defined for the renaming
1094    --    declarations and object declarations created for the actuals in an
1095    --    instantiation. The generic parent of such a declaration is the
1096    --    corresponding generic association in the Instantiation node.
1097
1098    --  Generic_Parent_Type (Node4-Sem)
1099    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1100    --    actuals of formal private and derived types. Within the instance, the
1101    --    operations on the actual are those inherited from the parent. For a
1102    --    formal private type, the parent type is the generic type itself. The
1103    --    Generic_Parent_Type is also used in an instance to determine whether a
1104    --    private operation overrides an inherited one.
1105
1106    --  Handler_List_Entry (Node2-Sem)
1107    --    This field is present in N_Object_Declaration nodes. It is set only
1108    --    for the Handler_Record entry generated for an exception in zero cost
1109    --    exception handling mode. It references the corresponding item in the
1110    --    handler list, and is used to delete this entry if the corresponding
1111    --    handler is deleted during optimization. For further details on why
1112    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1113
1114    --  Has_Dynamic_Length_Check (Flag10-Sem)
1115    --    This flag is present in all expression nodes. It is set to indicate
1116    --    that one of the routines in unit Checks has generated a length check
1117    --    action which has been inserted at the flagged node. This is used to
1118    --    avoid the generation of duplicate checks.
1119
1120    --  Has_Dynamic_Range_Check (Flag12-Sem)
1121    --    This flag is present in N_Subtype_Declaration nodes and on all
1122    --    expression nodes. It is set to indicate that one of the routines in
1123    --    unit Checks has generated a range check action which has been inserted
1124    --    at the flagged node. This is used to avoid the generation of duplicate
1125    --    checks. Why does this occur on N_Subtype_Declaration nodes, what does
1126    --    it mean in that context???
1127
1128    --  Has_Local_Raise (Flag8-Sem)
1129    --    Present in exception handler nodes. Set if the handler can be entered
1130    --    via a local raise that gets transformed to a goto statement. This will
1131    --    always be set if Local_Raise_Statements is non-empty, but can also be
1132    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
1133    --    nodes requiring generation of back end checks.
1134
1135    --  Has_No_Elaboration_Code (Flag17-Sem)
1136    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1137    --    or not elaboration code is present for this unit. It is initially set
1138    --    true for subprogram specs and bodies and for all generic units and
1139    --    false for non-generic package specs and bodies. Gigi may set the flag
1140    --    in the non-generic package case if it determines that no elaboration
1141    --    code is generated. Note that this flag is not related to the
1142    --    Is_Preelaborated status, there can be preelaborated packages that
1143    --    generate elaboration code, and non-preelaborated packages which do
1144    --    not generate elaboration code.
1145
1146    --  Has_Pragma_CPU (Flag14-Sem)
1147    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1148    --    flag the presence of a CPU pragma in the declaration sequence (public
1149    --    or private in the task case).
1150
1151    --  Has_Pragma_Dispatching_Domain (Flag15-Sem)
1152    --    A flag present in N_Task_Definition nodes to flag the presence of a
1153    --    Dispatching_Domain pragma in the declaration sequence (public or
1154    --    private in the task case).
1155
1156    --  Has_Pragma_Suppress_All (Flag14-Sem)
1157    --    This flag is set in an N_Compilation_Unit node if the Suppress_All
1158    --    pragma appears anywhere in the unit. This accommodates the rather
1159    --    strange placement rules of other compilers (DEC permits it at the
1160    --    end of a unit, and Rational allows it as a program unit pragma). We
1161    --    allow it anywhere at all, and consider it equivalent to a pragma
1162    --    Suppress (All_Checks) appearing at the start of the configuration
1163    --    pragmas for the unit.
1164
1165    --  Has_Pragma_Priority (Flag6-Sem)
1166    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1167    --    N_Protected_Definition nodes to flag the presence of either a Priority
1168    --    or Interrupt_Priority pragma in the declaration sequence (public or
1169    --    private in the task and protected cases)
1170
1171    --  Has_Private_View (Flag11-Sem)
1172    --    A flag present in generic nodes that have an entity, to indicate that
1173    --    the node has a private type. Used to exchange private and full
1174    --    declarations if the visibility at instantiation is different from the
1175    --    visibility at generic definition.
1176
1177    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1178    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1179    --    flag the presence of a pragma Relative_Deadline.
1180
1181    --  Has_Self_Reference (Flag13-Sem)
1182    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1183    --    of the expressions contains an access attribute reference to the
1184    --    enclosing type. Such a self-reference can only appear in default-
1185    --    initialized aggregate for a record type.
1186
1187    --  Has_Storage_Size_Pragma (Flag5-Sem)
1188    --    A flag present in an N_Task_Definition node to flag the presence of a
1189    --    Storage_Size pragma.
1190
1191    --  Has_Task_Info_Pragma (Flag7-Sem)
1192    --    A flag present in an N_Task_Definition node to flag the presence of a
1193    --    Task_Info pragma. Used to detect duplicate pragmas.
1194
1195    --  Has_Task_Name_Pragma (Flag8-Sem)
1196    --    A flag present in N_Task_Definition nodes to flag the presence of a
1197    --    Task_Name pragma in the declaration sequence for the task.
1198
1199    --  Has_Wide_Character (Flag11-Sem)
1200    --    Present in string literals, set if any wide character (i.e. character
1201    --    code outside the Character range but within Wide_Character range)
1202    --    appears in the string. Used to implement pragma preference rules.
1203
1204    --  Has_Wide_Wide_Character (Flag13-Sem)
1205    --    Present in string literals, set if any wide character (i.e. character
1206    --    code outside the Wide_Character range) appears in the string. Used to
1207    --    implement pragma preference rules.
1208
1209    --  Header_Size_Added (Flag11-Sem)
1210    --    Present in N_Attribute_Reference nodes, set only for attribute
1211    --    Max_Size_In_Storage_Elements. The flag indicates that the size of the
1212    --    hidden list header used by the runtime finalization support has been
1213    --    added to the size of the prefix. The flag also prevents the infinite
1214    --    expansion of the same attribute in the said context.
1215
1216    --  Hidden_By_Use_Clause (Elist4-Sem)
1217    --     An entity list present in use clauses that appear within
1218    --     instantiations. For the resolution of local entities, entities
1219    --     introduced by these use clauses have priority over global ones, and
1220    --     outer entities must be explicitly hidden/restored on exit.
1221
1222    --  Implicit_With (Flag16-Sem)
1223    --    This flag is set in the N_With_Clause node that is implicitly
1224    --    generated for runtime units that are loaded by the expander, and also
1225    --    for package System, if it is loaded implicitly by a use of the
1226    --    'Address or 'Tag attribute. ???There are other implicit with clauses
1227    --    as well.
1228
1229    --  Import_Interface_Present (Flag16-Sem)
1230    --     This flag is set in an Interface or Import pragma if a matching
1231    --     pragma of the other kind is also present. This is used to avoid
1232    --     generating some unwanted error messages.
1233
1234    --  Includes_Infinities (Flag11-Sem)
1235    --    This flag is present in N_Range nodes. It is set for the range of
1236    --    unconstrained float types defined in Standard, which include not only
1237    --    the given range of values, but also legitimately can include infinite
1238    --    values. This flag is false for any float type for which an explicit
1239    --    range is given by the programmer, even if that range is identical to
1240    --    the range for Float.
1241
1242    --  Inherited_Discriminant (Flag13-Sem)
1243    --    This flag is present in N_Component_Association nodes. It indicates
1244    --    that a given component association in an extension aggregate is the
1245    --    value obtained from a constraint on an ancestor. Used to prevent
1246    --    double expansion when the aggregate has expansion delayed.
1247
1248    --  Instance_Spec (Node5-Sem)
1249    --    This field is present in generic instantiation nodes, and also in
1250    --    formal package declaration nodes (formal package declarations are
1251    --    treated in a manner very similar to package instantiations). It points
1252    --    to the node for the spec of the instance, inserted as part of the
1253    --    semantic processing for instantiations in Sem_Ch12.
1254
1255    --  Is_Accessibility_Actual (Flag12-Sem)
1256    --    Present in N_Parameter_Association nodes. True if the parameter is
1257    --    an extra actual that carries the accessibility level of the actual
1258    --    for an access parameter, in a function that dispatches on result and
1259    --    is called in a dispatching context. Used to prevent a formal/actual
1260    --    mismatch when the call is rewritten as a dispatching call.
1261
1262    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1263    --    A flag set in a Block_Statement node to indicate that it is the
1264    --    expansion of an asynchronous entry call. Such a block needs cleanup
1265    --    handler to assure that the call is cancelled.
1266
1267    --  Is_Boolean_Aspect (Flag16-Sem)
1268    --    Present in N_Aspect_Specification node. Set if the aspect is for a
1269    --    boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1270
1271    --  Is_Component_Left_Opnd  (Flag13-Sem)
1272    --  Is_Component_Right_Opnd (Flag14-Sem)
1273    --    Present in concatenation nodes, to indicate that the corresponding
1274    --    operand is of the component type of the result. Used in resolving
1275    --    concatenation nodes in instances.
1276
1277    --  Is_Delayed_Aspect (Flag14-Sem)
1278    --    Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1279    --    come from aspect specifications, where the evaluation of the aspect
1280    --    must be delayed to the freeze point. This flag is also set True in
1281    --    the corresponding N_Aspect_Specification node.
1282
1283    --  Is_Controlling_Actual (Flag16-Sem)
1284    --    This flag is set on in an expression that is a controlling argument in
1285    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1286    --    details of its use.
1287
1288    --  Is_Dynamic_Coextension (Flag18-Sem)
1289    --    Present in allocator nodes, to indicate that this is an allocator
1290    --    for an access discriminant of a dynamically allocated object. The
1291    --    coextension must be deallocated and finalized at the same time as
1292    --    the enclosing object.
1293
1294    --  Is_Entry_Barrier_Function (Flag8-Sem)
1295    --    This flag is set in an N_Subprogram_Body node which is the expansion
1296    --    of an entry barrier from a protected entry body. It is used for the
1297    --    circuitry checking for incorrect use of Current_Task.
1298
1299    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1300    --    This flag is set in an N_Function_Call node to indicate that the extra
1301    --    actuals to support a build-in-place style of call have been added to
1302    --    the call.
1303
1304    --  Is_In_Discriminant_Check (Flag11-Sem)
1305    --    This flag is present in a selected component, and is used to indicate
1306    --    that the reference occurs within a discriminant check. The
1307    --    significance is that optimizations based on assuming that the
1308    --    discriminant check has a correct value cannot be performed in this
1309    --    case (or the discriminant check may be optimized away!)
1310
1311    --  Is_Machine_Number (Flag11-Sem)
1312    --    This flag is set in an N_Real_Literal node to indicate that the value
1313    --    is a machine number. This avoids some unnecessary cases of converting
1314    --    real literals to machine numbers.
1315
1316    --  Is_Null_Loop (Flag16-Sem)
1317    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1318    --    can be determined to be null at compile time. This is used to remove
1319    --    the loop entirely at expansion time.
1320
1321    --  Is_Overloaded (Flag5-Sem)
1322    --    A flag present in all expression nodes. Used temporarily during
1323    --    overloading determination. The setting of this flag is not relevant
1324    --    once overloading analysis is complete.
1325
1326    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1327    --    A flag present only in N_Op_Expon nodes. It is set when the
1328    --    exponentiation is of the form 2 ** N, where the type of N is an
1329    --    unsigned integral subtype whose size does not exceed the size of
1330    --    Standard_Integer (i.e. a type that can be safely converted to
1331    --    Natural), and the exponentiation appears as the right operand of an
1332    --    integer multiplication or an integer division where the dividend is
1333    --    unsigned. It is also required that overflow checking is off for both
1334    --    the exponentiation and the multiply/divide node. If this set of
1335    --    conditions holds, and the flag is set, then the division or
1336    --    multiplication can be (and is) converted to a shift.
1337
1338    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1339    --    A flag set in a Subprogram_Body block to indicate that it is the
1340    --    implementation of a protected subprogram. Such a body needs cleanup
1341    --    handler to make sure that the associated protected object is unlocked
1342    --    when the subprogram completes.
1343
1344    --  Is_Static_Coextension (Flag14-Sem)
1345    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1346    --    of an object allocated on the stack rather than the heap.
1347
1348    --  Is_Static_Expression (Flag6-Sem)
1349    --    Indicates that an expression is a static expression (RM 4.9). See spec
1350    --    of package Sem_Eval for full details on the use of this flag.
1351
1352    --  Is_Subprogram_Descriptor (Flag16-Sem)
1353    --    Present in N_Object_Declaration, and set only for the object
1354    --    declaration generated for a subprogram descriptor in fast exception
1355    --    mode. See Exp_Ch11 for details of use.
1356
1357    --  Is_Task_Allocation_Block (Flag6-Sem)
1358    --    A flag set in a Block_Statement node to indicate that it is the
1359    --    expansion of a task allocator, or the allocator of an object
1360    --    containing tasks. Such a block requires a cleanup handler to call
1361    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1362    --    allocated but not activated when the allocator completes abnormally.
1363
1364    --  Is_Task_Master (Flag5-Sem)
1365    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1366    --    indicate that the construct is a task master (i.e. has declared tasks
1367    --    or declares an access to a task type).
1368
1369    --  Itype (Node1-Sem)
1370    --    Used in N_Itype_Reference node to reference an itype for which it is
1371    --    important to ensure that it is defined. See description of this node
1372    --    for further details.
1373
1374    --  Kill_Range_Check (Flag11-Sem)
1375    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1376    --    result should not be subjected to range checks. This is used for the
1377    --    implementation of Normalize_Scalars.
1378
1379    --  Label_Construct (Node2-Sem)
1380    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1381    --    N_Block_Statement or N_Loop_Statement node to which the label
1382    --    declaration applies. This is not currently used in the compiler
1383    --    itself, but it is useful in the implementation of ASIS queries.
1384    --    This field is left empty for the special labels generated as part
1385    --    of expanding raise statements with a local exception handler.
1386
1387    --  Library_Unit (Node4-Sem)
1388    --    In a stub node, Library_Unit points to the compilation unit node of
1389    --    the corresponding subunit.
1390    --
1391    --    In a with clause node, Library_Unit points to the spec of the with'ed
1392    --    unit.
1393    --
1394    --    In a compilation unit node, the usage depends on the unit type:
1395    --
1396    --     For a library unit body, Library_Unit points to the compilation unit
1397    --     node of the corresponding spec, unless it's a subprogram body with
1398    --     Acts_As_Spec set, in which case it points to itself.
1399    --
1400    --     For a spec, Library_Unit points to the compilation unit node of the
1401    --     corresponding body, if present. The body will be present if the spec
1402    --     is or contains generics that we needed to instantiate. Similarly, the
1403    --     body will be present if we needed it for inlining purposes. Thus, if
1404    --     we have a spec/body pair, both of which are present, they point to
1405    --     each other via Library_Unit.
1406    --
1407    --     For a subunit, Library_Unit points to the compilation unit node of
1408    --     the parent body.
1409    --
1410    --    Note that this field is not used to hold the parent pointer for child
1411    --    unit (which might in any case need to use it for some other purpose as
1412    --    described above). Instead for a child unit, implicit with's are
1413    --    generated for all parents.
1414
1415    --  Local_Raise_Statements (Elist1)
1416    --    This field is present in exception handler nodes. It is set to
1417    --    No_Elist in the normal case. If there is at least one raise statement
1418    --    which can potentially be handled as a local raise, then this field
1419    --    points to a list of raise nodes, which are calls to a routine to raise
1420    --    an exception. These are raise nodes which can be optimized into gotos
1421    --    if the handler turns out to meet the conditions which permit this
1422    --    transformation. Note that this does NOT include instances of the
1423    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1424    --    handled by the back end (using the N_Push/N_Pop mechanism).
1425
1426    --  Loop_Actions (List2-Sem)
1427    --    A list present in Component_Association nodes in array aggregates.
1428    --    Used to collect actions that must be executed within the loop because
1429    --    they may need to be evaluated anew each time through.
1430
1431    --  Limited_View_Installed (Flag18-Sem)
1432    --    Present in With_Clauses and in package specifications. If set on
1433    --    with_clause, it indicates that this clause has created the current
1434    --    limited view of the designated package. On a package specification, it
1435    --    indicates that the limited view has already been created because the
1436    --    package is mentioned in a limited_with_clause in the closure of the
1437    --    unit being compiled.
1438
1439    --  Local_Raise_Not_OK (Flag7-Sem)
1440    --    Present in N_Exception_Handler nodes. Set if the handler contains
1441    --    a construct (reraise statement, or call to subprogram in package
1442    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1443    --    for a local raise (one that could otherwise be converted to a goto).
1444
1445    --  Must_Be_Byte_Aligned (Flag14-Sem)
1446    --    This flag is present in N_Attribute_Reference nodes. It can be set
1447    --    only for the Address and Unrestricted_Access attributes. If set it
1448    --    means that the object for which the address/access is given must be on
1449    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1450    --    of the object is to be made before taking the address (this copy is in
1451    --    the current scope on the stack frame). This is used for certain cases
1452    --    of code generated by the expander that passes parameters by address.
1453    --
1454    --    The reason the copy is not made by the front end is that the back end
1455    --    has more information about type layout and may be able to (but is not
1456    --    guaranteed to) prevent making unnecessary copies.
1457
1458    --  Must_Not_Freeze (Flag8-Sem)
1459    --    A flag present in all expression nodes. Normally expressions cause
1460    --    freezing as described in the RM. If this flag is set, then this is
1461    --    inhibited. This is used by the analyzer and expander to label nodes
1462    --    that are created by semantic analysis or expansion and which must not
1463    --    cause freezing even though they normally would. This flag is also
1464    --    present in an N_Subtype_Indication node, since we also use these in
1465    --    calls to Freeze_Expression.
1466
1467    --  Next_Entity (Node2-Sem)
1468    --    Present in defining identifiers, defining character literals and
1469    --    defining operator symbols (i.e. in all entities). The entities of a
1470    --    scope are chained, and this field is used as the forward pointer for
1471    --    this list. See Einfo for further details.
1472
1473    --  Next_Exit_Statement (Node3-Sem)
1474    --    Present in N_Exit_Statement nodes. The exit statements for a loop are
1475    --    chained (in reverse order of appearance) from the First_Exit_Statement
1476    --    field of the E_Loop entity for the loop. Next_Exit_Statement points to
1477    --    the next entry on this chain (Empty = end of list).
1478
1479    --  Next_Implicit_With (Node3-Sem)
1480    --    Present in N_With_Clause. Part of a chain of with_clauses generated
1481    --    in rtsfind to indicate implicit dependencies on predefined units. Used
1482    --    to prevent multiple with_clauses for the same unit in a given context.
1483    --    A postorder traversal of the tree whose nodes are units and whose
1484    --    links are with_clauses defines the order in which Inspector must
1485    --    examine a compiled unit and its full context. This ordering ensures
1486    --    that any subprogram call is examined after the subprogram declaration
1487    --    has been seen.
1488
1489    --  Next_Named_Actual (Node4-Sem)
1490    --    Present in parameter association node. Set during semantic analysis to
1491    --    point to the next named parameter, where parameters are ordered by
1492    --    declaration order (as opposed to the actual order in the call, which
1493    --    may be different due to named associations). Not that this field
1494    --    points to the explicit actual parameter itself, not to the
1495    --    N_Parameter_Association node (its parent).
1496
1497    --  Next_Pragma (Node1-Sem)
1498    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1499    --    nodes. Currently used for two purposes:
1500    --
1501    --      Create a list of linked Check_Policy pragmas. The head of this list
1502    --      is stored in Opt.Check_Policy_List (which has further details).
1503    --
1504    --      Used by processing for Pre/Postcondition pragmas to store a list of
1505    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1506    --      details).
1507
1508    --  Next_Rep_Item (Node5-Sem)
1509    --    Present in pragma nodes, attribute definition nodes, enumeration rep
1510    --    clauses, record rep clauses, aspect specification nodes. Used to link
1511    --    representation items that apply to an entity. See full description of
1512    --    First_Rep_Item field in Einfo for further details.
1513
1514    --  Next_Use_Clause (Node3-Sem)
1515    --    While use clauses are active during semantic processing, they are
1516    --    chained from the scope stack entry, using Next_Use_Clause as a link
1517    --    pointer, with Empty marking the end of the list. The head pointer is
1518    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1519    --    processing (i.e. when Gigi sees the tree, the contents of this field
1520    --    is undefined and should not be read).
1521
1522    --  No_Ctrl_Actions (Flag7-Sem)
1523    --    Present in N_Assignment_Statement to indicate that no finalize nor
1524    --    adjust should take place on this assignment even though the rhs is
1525    --    controlled. This is used in init procs and aggregate expansions where
1526    --    the generated assignments are more initialisations than real
1527    --    assignments.
1528
1529    --  No_Elaboration_Check (Flag14-Sem)
1530    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1531    --    that no elaboration check is needed on the call, because it appears in
1532    --    the context of a local Suppress pragma. This is used on calls within
1533    --    task bodies, where the actual elaboration checks are applied after
1534    --    analysis, when the local scope stack is not present.
1535
1536    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1537    --    Present in N_With_Clause nodes. Set if the with clause is on the
1538    --    package or subprogram spec where the main unit is the corresponding
1539    --    body, and no entities of the with'ed unit are referenced by the spec
1540    --    (an entity may still be referenced in the body, so this flag is used
1541    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1542    --    full details)
1543
1544    --  No_Initialization (Flag13-Sem)
1545    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1546    --    object must not be initialized (by Initialize or call to an init
1547    --    proc). This is needed for controlled aggregates. When the Object
1548    --    declaration has an expression, this flag means that this expression
1549    --    should not be taken into account (needed for in place initialization
1550    --    with aggregates).
1551
1552    --  No_Truncation (Flag17-Sem)
1553    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1554    --    only if the RM_Size of the source is greater than the RM_Size of the
1555    --    target for scalar operands. Normally in such a case we truncate some
1556    --    higher order bits of the source, and then sign/zero extend the result
1557    --    to form the output value. But if this flag is set, then we do not do
1558    --    any truncation, so for example, if an 8 bit input is converted to 5
1559    --    bit result which is in fact stored in 8 bits, then the high order
1560    --    three bits of the target result will be copied from the source. This
1561    --    is used for properly setting out of range values for use by pragmas
1562    --    Initialize_Scalars and Normalize_Scalars.
1563
1564    --  Original_Discriminant (Node2-Sem)
1565    --    Present in identifiers. Used in references to discriminants that
1566    --    appear in generic units. Because the names of the discriminants may be
1567    --    different in an instance, we use this field to recover the position of
1568    --    the discriminant in the original type, and replace it with the
1569    --    discriminant at the same position in the instantiated type.
1570
1571    --  Original_Entity (Node2-Sem)
1572    --    Present in numeric literals. Used to denote the named number that has
1573    --    been constant-folded into the given literal. If literal is from
1574    --    source, or the result of some other constant-folding operation, then
1575    --    Original_Entity is empty. This field is needed to handle properly
1576    --    named numbers in generic units, where the Associated_Node field
1577    --    interferes with the Entity field, making it impossible to preserve the
1578    --    original entity at the point of instantiation (ASIS problem).
1579
1580    --  Others_Discrete_Choices (List1-Sem)
1581    --    When a case statement or variant is analyzed, the semantic checks
1582    --    determine the actual list of choices that correspond to an others
1583    --    choice. This list is materialized for later use by the expander and
1584    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1585    --    this materialized list of choices, which is in standard format for a
1586    --    list of discrete choices, except that of course it cannot contain an
1587    --    N_Others_Choice entry.
1588
1589    --  Parameter_List_Truncated (Flag17-Sem)
1590    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1591    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1592    --    a result of a First_Optional_Parameter specification in an
1593    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1594    --    The truncation is done by the expander by removing trailing parameters
1595    --    from the argument list, in accordance with the set of rules allowing
1596    --    such parameter removal. In particular, parameters can be removed
1597    --    working from the end of the parameter list backwards up to and
1598    --    including the entry designated by First_Optional_Parameter in the
1599    --    Import pragma. Parameters can be removed if they are implicit and the
1600    --    default value is a known-at-compile-time value, including the use of
1601    --    the Null_Parameter attribute, or if explicit parameter values are
1602    --    present that match the corresponding defaults.
1603
1604    --  Parent_Spec (Node4-Sem)
1605    --    For a library unit that is a child unit spec (package or subprogram
1606    --    declaration, generic declaration or instantiation, or library level
1607    --    rename, this field points to the compilation unit node for the parent
1608    --    package specification. This field is Empty for library bodies (the
1609    --    parent spec in this case can be found from the corresponding spec).
1610
1611    --  Premature_Use (Node5-Sem)
1612    --    Present in N_Incomplete_Type_Declaration node. Used for improved
1613    --    error diagnostics: if there is a premature usage of an incomplete
1614    --    type, a subsequently generated error message indicates the position
1615    --    of its full declaration.
1616
1617    --  Present_Expr (Uint3-Sem)
1618    --    Present in an N_Variant node. This has a meaningful value only after
1619    --    Gigi has back annotated the tree with representation information. At
1620    --    this point, it contains a reference to a gcc expression that depends
1621    --    on the values of one or more discriminants. Give a set of discriminant
1622    --    values, this expression evaluates to False (zero) if variant is not
1623    --    present, and True (non-zero) if it is present. See unit Repinfo for
1624    --    further details on gigi back annotation. This field is used during
1625    --    ASIS processing (data decomposition annex) to determine if a field is
1626    --    present or not.
1627
1628    --  Print_In_Hex (Flag13-Sem)
1629    --    Set on an N_Integer_Literal node to indicate that the value should be
1630    --    printed in hexadecimal in the sprint listing. Has no effect on
1631    --    legality or semantics of program, only on the displayed output. This
1632    --    is used to clarify output from the packed array cases.
1633
1634    --  Procedure_To_Call (Node2-Sem)
1635    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1636    --    and N_Extended_Return_Statement nodes. References the entity for the
1637    --    declaration of the procedure to be called to accomplish the required
1638    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1639    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1640    --    allocating the return value), and for the Deallocate procedure in the
1641    --    case of N_Free_Statement.
1642
1643    --  Raises_Constraint_Error (Flag7-Sem)
1644    --    Set on an expression whose evaluation will definitely fail constraint
1645    --    error check. In the case of static expressions, this flag must be set
1646    --    accurately (and if it is set, the expression is typically illegal
1647    --    unless it appears as a non-elaborated branch of a short-circuit form).
1648    --    For a non-static expression, this flag may be set whenever an
1649    --    expression (e.g. an aggregate) is known to raise constraint error. If
1650    --    set, the expression definitely will raise CE if elaborated at runtime.
1651    --    If not set, the expression may or may not raise CE. In other words, on
1652    --    static expressions, the flag is set accurately, on non-static
1653    --    expressions it is set conservatively.
1654
1655    --  Redundant_Use (Flag13-Sem)
1656    --    Present in nodes that can appear as an operand in a use clause or use
1657    --    type clause (identifiers, expanded names, attribute references). Set
1658    --    to indicate that a use is redundant (and therefore need not be undone
1659    --    on scope exit).
1660
1661    --  Renaming_Exception (Node2-Sem)
1662    --    Present in N_Exception_Declaration node. Used to point back to the
1663    --    exception renaming for an exception declared within a subprogram.
1664    --    What happens is that an exception declared in a subprogram is moved
1665    --    to the library level with a unique name, and the original exception
1666    --    becomes a renaming. This link from the library level exception to the
1667    --    renaming declaration allows registering of the proper exception name.
1668
1669    --  Return_Statement_Entity (Node5-Sem)
1670    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1671    --    Points to an E_Return_Statement representing the return statement.
1672
1673    --  Return_Object_Declarations (List3)
1674    --    Present in N_Extended_Return_Statement. Points to a list initially
1675    --    containing a single N_Object_Declaration representing the return
1676    --    object. We use a list (instead of just a pointer to the object decl)
1677    --    because Analyze wants to insert extra actions on this list.
1678
1679    --  Rounded_Result (Flag18-Sem)
1680    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1681    --    Used in the fixed-point cases to indicate that the result must be
1682    --    rounded as a result of the use of the 'Round attribute. Also used for
1683    --    integer N_Op_Divide nodes to indicate that the result should be
1684    --    rounded to the nearest integer (breaking ties away from zero), rather
1685    --    than truncated towards zero as usual. These rounded integer operations
1686    --    are the result of expansion of rounded fixed-point divide, conversion
1687    --    and multiplication operations.
1688
1689    --  SCIL_Entity (Node4-Sem)
1690    --    Present in SCIL nodes. Used to reference the tagged type associated
1691    --    with the SCIL node.
1692
1693    --  SCIL_Controlling_Tag (Node5-Sem)
1694    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1695    --    controlling tag of a dispatching call.
1696
1697    --  SCIL_Tag_Value (Node5-Sem)
1698    --    Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1699    --    value that is being tested.
1700
1701    --  SCIL_Target_Prim (Node2-Sem)
1702    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1703    --    type primitive associated with the SCIL node.
1704
1705    --  Scope (Node3-Sem)
1706    --    Present in defining identifiers, defining character literals and
1707    --    defining operator symbols (i.e. in all entities). The entities of a
1708    --    scope all use this field to reference the corresponding scope entity.
1709    --    See Einfo for further details.
1710
1711    --  Shift_Count_OK (Flag4-Sem)
1712    --    A flag present in shift nodes to indicate that the shift count is
1713    --    known to be in range, i.e. is in the range from zero to word length
1714    --    minus one. If this flag is not set, then the shift count may be
1715    --    outside this range, i.e. larger than the word length, and the code
1716    --    must ensure that such shift counts give the appropriate result.
1717
1718    --  Source_Type (Node1-Sem)
1719    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1720    --    source type entity for the unchecked conversion instantiation
1721    --    which gigi must do size validation for.
1722
1723    --  Split_PPC (Flag17)
1724    --    When a Pre or Post aspect specification is processed, it is broken
1725    --    into AND THEN sections. The left most section has Split_PPC set to
1726    --    False, indicating that it is the original specification (e.g. for
1727    --    posting errors). For other sections, Split_PPC is set to True.
1728    --    This flag is set in both the N_Aspect_Specification node itself,
1729    --    and in the pragma which is generated from this node.
1730
1731    --  Static_Processing_OK (Flag4-Sem)
1732    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1733    --    flag is set, the full value of the aggregate can be determined at
1734    --    compile time and the aggregate can be passed as is to the back-end.
1735    --    In this event it is irrelevant whether this flag is set or not.
1736    --    However, if the flag Compile_Time_Known_Aggregate is not set but
1737    --    Static_Processing_OK is set, the aggregate can (but need not) be
1738    --    converted into a compile time known aggregate by the expander. See
1739    --    Sem_Aggr for the specific conditions under which an aggregate has its
1740    --    Static_Processing_OK flag set.
1741
1742    --  Storage_Pool (Node1-Sem)
1743    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1744    --    and N_Extended_Return_Statement nodes. References the entity for the
1745    --    storage pool to be used for the allocate or free call or for the
1746    --    allocation of the returned value from function. Empty indicates that
1747    --    the global default pool is to be used. Note that in the case
1748    --    of a return statement, this field is set only if the function returns
1749    --    value of a type whose size is not known at compile time on the
1750    --    secondary stack.
1751
1752    --  Suppress_Assignment_Checks (Flag18-Sem)
1753    --    Used in generated N_Assignment_Statement nodes to suppress predicate
1754    --    and range checks in cases where the generated code knows that the
1755    --    value being assigned is in range and satisfies any predicate. Also
1756    --    can be set in N_Object_Declaration nodes, to similarly suppress any
1757    --    checks on the initializing value.
1758
1759    --  Suppress_Loop_Warnings (Flag17-Sem)
1760    --    Used in N_Loop_Statement node to indicate that warnings within the
1761    --    body of the loop should be suppressed. This is set when the range
1762    --    of a FOR loop is known to be null, or is probably null (loop would
1763    --    only execute if invalid values are present).
1764
1765    --  Target_Type (Node2-Sem)
1766    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1767    --    type entity for the unchecked conversion instantiation which gigi must
1768    --    do size validation for.
1769
1770    --  Then_Actions (List3-Sem)
1771    --    This field is present in conditional expression nodes. During code
1772    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1773    --    actions at an appropriate place in the tree to get elaborated at the
1774    --    right time. For conditional expressions, we have to be sure that the
1775    --    actions for the Then branch are only elaborated if the condition is
1776    --    True. The Then_Actions field is used as a temporary parking place for
1777    --    these actions. The final tree is always rewritten to eliminate the
1778    --    need for this field, so in the tree passed to Gigi, this field is
1779    --    always set to No_List.
1780
1781    --  Treat_Fixed_As_Integer (Flag14-Sem)
1782    --    This flag appears in operator nodes for divide, multiply, mod and rem
1783    --    on fixed-point operands. It indicates that the operands are to be
1784    --    treated as integer values, ignoring small values. This flag is only
1785    --    set as a result of expansion of fixed-point operations. Typically a
1786    --    fixed-point multiplication in the source generates subsidiary
1787    --    multiplication and division operations that work with the underlying
1788    --    integer values and have this flag set. Note that this flag is not
1789    --    needed on other arithmetic operations (add, neg, subtract etc.) since
1790    --    in these cases it is always the case that fixed is treated as integer.
1791    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1792    --    leave such nodes alone, and whoever makes them must set the correct
1793    --    Etype value.
1794
1795    --  TSS_Elist (Elist3-Sem)
1796    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1797    --    entries for each TSS (type support subprogram) associated with the
1798    --    frozen type. The elements of the list are the entities for the
1799    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1800    --    if there are no type support subprograms for the type or if the freeze
1801    --    node is not for a type.
1802
1803    --  Unreferenced_In_Spec (Flag7-Sem)
1804    --    Present in N_With_Clause nodes. Set if the with clause is on the
1805    --    package or subprogram spec where the main unit is the corresponding
1806    --    body, and is not referenced by the spec (it may still be referenced by
1807    --    the body, so this flag is used to generate the proper message (see
1808    --    Sem_Util.Check_Unused_Withs for details)
1809
1810    --  Used_Operations (Elist5-Sem)
1811    --    Present in N_Use_Type_Clause nodes. Holds the list of operations that
1812    --    are made potentially use-visible by the clause. Simplifies processing
1813    --    on exit from the scope of the use_type_clause, in particular in the
1814    --    case of Use_All_Type, when those operations several scopes.
1815
1816    --  Was_Originally_Stub (Flag13-Sem)
1817    --    This flag is set in the node for a proper body that replaces stub.
1818    --    During the analysis procedure, stubs in some situations get rewritten
1819    --    by the corresponding bodies, and we set this flag to remember that
1820    --    this happened. Note that it is not good enough to rely on the use of
1821    --    Original_Node here because of the case of nested instantiations where
1822    --    the substituted node can be copied.
1823
1824    --  Withed_Body (Node1-Sem)
1825    --    Present in N_With_Clause nodes. Set if the unit in whose context
1826    --    the with_clause appears instantiates a generic contained in the
1827    --    library unit of the with_clause and as a result loads its body.
1828    --    Used for a more precise unit traversal for CodePeer.
1829
1830    --------------------------------------------------
1831    -- Note on Use of End_Label and End_Span Fields --
1832    --------------------------------------------------
1833
1834    --  Several constructs have end lines:
1835
1836    --    Loop Statement             end loop [loop_IDENTIFIER];
1837    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1838    --    Task Definition            end [task_IDENTIFIER]
1839    --    Protected Definition       end [protected_IDENTIFIER]
1840    --    Protected Body             end [protected_IDENTIFIER]
1841
1842    --    Block Statement            end [block_IDENTIFIER];
1843    --    Subprogram Body            end [DESIGNATOR];
1844    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1845    --    Task Body                  end [task_IDENTIFIER];
1846    --    Accept Statement           end [entry_IDENTIFIER]];
1847    --    Entry Body                 end [entry_IDENTIFIER];
1848
1849    --    If Statement               end if;
1850    --    Case Statement             end case;
1851
1852    --    Record Definition          end record;
1853    --    Enumeration Definition     );
1854
1855    --  The End_Label and End_Span fields are used to mark the locations of
1856    --  these lines, and also keep track of the label in the case where a label
1857    --  is present.
1858
1859    --  For the first group above, the End_Label field of the corresponding node
1860    --  is used to point to the label identifier. In the case where there is no
1861    --  label in the source, the parser supplies a dummy identifier (with
1862    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1863    --  marks the location of the token following the END token.
1864
1865    --  For the second group, the use of End_Label is similar, but the End_Label
1866    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1867    --  simply because in some cases there is no room in the parent node.
1868
1869    --  For the third group, there is never any label, and instead of using
1870    --  End_Label, we use the End_Span field which gives the location of the
1871    --  token following END, relative to the starting Sloc of the construct,
1872    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1873    --  following the End_Label.
1874
1875    --  The record definition case is handled specially, we treat it as though
1876    --  it required an optional label which is never present, and so the parser
1877    --  always builds a dummy identifier with Comes From Source set False. The
1878    --  reason we do this, rather than using End_Span in this case, is that we
1879    --  want to generate a cross-ref entry for the end of a record, since it
1880    --  represents a scope for name declaration purposes.
1881
1882    --  The enumeration definition case is handled in an exactly similar manner,
1883    --  building a dummy identifier to get a cross-reference.
1884
1885    --  Note: the reason we store the difference as a Uint, instead of storing
1886    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
1887    --  distinguished from other types of values, and we count on all general
1888    --  use fields being self describing. To make things easier for clients,
1889    --  note that we provide function End_Location, and procedure
1890    --  Set_End_Location to allow access to the logical value (which is the
1891    --  Source_Ptr value for the end token).
1892
1893    ---------------------
1894    -- Syntactic Nodes --
1895    ---------------------
1896
1897       ---------------------
1898       -- 2.3  Identifier --
1899       ---------------------
1900
1901       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1902       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1903
1904       --  An IDENTIFIER shall not be a reserved word
1905
1906       --  In the Ada grammar identifiers are the bottom level tokens which have
1907       --  very few semantics. Actual program identifiers are direct names. If
1908       --  we were being 100% honest with the grammar, then we would have a node
1909       --  called N_Direct_Name which would point to an identifier. However,
1910       --  that's too many extra nodes, so we just use the N_Identifier node
1911       --  directly as a direct name, and it contains the expression fields and
1912       --  Entity field that correspond to its use as a direct name. In those
1913       --  few cases where identifiers appear in contexts where they are not
1914       --  direct names (pragmas, pragma argument associations, attribute
1915       --  references and attribute definition clauses), the Chars field of the
1916       --  node contains the Name_Id for the identifier name.
1917
1918       --  Note: in GNAT, a reserved word can be treated as an identifier in two
1919       --  cases. First, an incorrect use of a reserved word as an identifier is
1920       --  diagnosed and then treated as a normal identifier. Second, an
1921       --  attribute designator of the form of a reserved word (access, delta,
1922       --  digits, range) is treated as an identifier.
1923
1924       --  Note: The set of letters that is permitted in an identifier depends
1925       --  on the character set in use. See package Csets for full details.
1926
1927       --  N_Identifier
1928       --  Sloc points to identifier
1929       --  Chars (Name1) contains the Name_Id for the identifier
1930       --  Entity (Node4-Sem)
1931       --  Associated_Node (Node4-Sem)
1932       --  Original_Discriminant (Node2-Sem)
1933       --  Redundant_Use (Flag13-Sem)
1934       --  Atomic_Sync_Required (Flag14-Sem)
1935       --  Has_Private_View (Flag11-Sem) (set in generic units)
1936       --  plus fields for expression
1937
1938       --------------------------
1939       -- 2.4  Numeric Literal --
1940       --------------------------
1941
1942       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1943
1944       ----------------------------
1945       -- 2.4.1  Decimal Literal --
1946       ----------------------------
1947
1948       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1949
1950       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1951
1952       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1953
1954       --  Decimal literals appear in the tree as either integer literal nodes
1955       --  or real literal nodes, depending on whether a period is present.
1956
1957       --  Note: literal nodes appear as a result of direct use of literals
1958       --  in the source program, and also as the result of evaluating
1959       --  expressions at compile time. In the latter case, it is possible
1960       --  to construct real literals that have no syntactic representation
1961       --  using the standard literal format. Such literals are listed by
1962       --  Sprint using the notation [numerator / denominator].
1963
1964       --  Note: the value of an integer literal node created by the front end
1965       --  is never outside the range of values of the base type. However, it
1966       --  can be the case that the created value is outside the range of the
1967       --  particular subtype. This happens in the case of integer overflows
1968       --  with checks suppressed.
1969
1970       --  N_Integer_Literal
1971       --  Sloc points to literal
1972       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1973       --  has been constant-folded into its literal value.
1974       --  Intval (Uint3) contains integer value of literal
1975       --  plus fields for expression
1976       --  Print_In_Hex (Flag13-Sem)
1977
1978       --  N_Real_Literal
1979       --  Sloc points to literal
1980       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1981       --  has been constant-folded into its literal value.
1982       --  Realval (Ureal3) contains real value of literal
1983       --  Corresponding_Integer_Value (Uint4-Sem)
1984       --  Is_Machine_Number (Flag11-Sem)
1985       --  plus fields for expression
1986
1987       --------------------------
1988       -- 2.4.2  Based Literal --
1989       --------------------------
1990
1991       --  BASED_LITERAL ::=
1992       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1993
1994       --  BASE ::= NUMERAL
1995
1996       --  BASED_NUMERAL ::=
1997       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1998
1999       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2000
2001       --  Based literals appear in the tree as either integer literal nodes
2002       --  or real literal nodes, depending on whether a period is present.
2003
2004       ----------------------------
2005       -- 2.5  Character Literal --
2006       ----------------------------
2007
2008       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2009
2010       --  N_Character_Literal
2011       --  Sloc points to literal
2012       --  Chars (Name1) contains the Name_Id for the identifier
2013       --  Char_Literal_Value (Uint2) contains the literal value
2014       --  Entity (Node4-Sem)
2015       --  Associated_Node (Node4-Sem)
2016       --  Has_Private_View (Flag11-Sem) set in generic units.
2017       --  plus fields for expression
2018
2019       --  Note: the Entity field will be missing (set to Empty) for character
2020       --  literals whose type is Standard.Wide_Character or Standard.Character
2021       --  or a type derived from one of these two. In this case the character
2022       --  literal stands for its own coding. The reason we take this irregular
2023       --  short cut is to avoid the need to build lots of junk defining
2024       --  character literal nodes.
2025
2026       -------------------------
2027       -- 2.6  String Literal --
2028       -------------------------
2029
2030       --  STRING LITERAL ::= "{STRING_ELEMENT}"
2031
2032       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
2033       --  single GRAPHIC_CHARACTER other than a quotation mark.
2034       --
2035       --  Is_Folded_In_Parser is True if the parser created this literal by
2036       --  folding a sequence of "&" operators. For example, if the source code
2037       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2038       --  is set. This flag is needed because the parser doesn't know about
2039       --  visibility, so the folded result might be wrong, and semantic
2040       --  analysis needs to check for that.
2041
2042       --  N_String_Literal
2043       --  Sloc points to literal
2044       --  Strval (Str3) contains Id of string value
2045       --  Has_Wide_Character (Flag11-Sem)
2046       --  Has_Wide_Wide_Character (Flag13-Sem)
2047       --  Is_Folded_In_Parser (Flag4)
2048       --  plus fields for expression
2049
2050       ------------------
2051       -- 2.7  Comment --
2052       ------------------
2053
2054       --  A COMMENT starts with two adjacent hyphens and extends up to the
2055       --  end of the line. A COMMENT may appear on any line of a program.
2056
2057       --  Comments are skipped by the scanner and do not appear in the tree.
2058       --  It is possible to reconstruct the position of comments with respect
2059       --  to the elements of the tree by using the source position (Sloc)
2060       --  pointers that appear in every tree node.
2061
2062       -----------------
2063       -- 2.8  Pragma --
2064       -----------------
2065
2066       --  PRAGMA ::= pragma IDENTIFIER
2067       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2068
2069       --  Note that a pragma may appear in the tree anywhere a declaration
2070       --  or a statement may appear, as well as in some other situations
2071       --  which are explicitly documented.
2072
2073       --  N_Pragma
2074       --  Sloc points to PRAGMA
2075       --  Next_Pragma (Node1-Sem)
2076       --  Pragma_Argument_Associations (List2) (set to No_List if none)
2077       --  Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2078       --  Pragma_Identifier (Node4)
2079       --  Next_Rep_Item (Node5-Sem)
2080       --  From_Aspect_Specification (Flag13-Sem)
2081       --  Is_Delayed_Aspect (Flag14-Sem)
2082       --  Import_Interface_Present (Flag16-Sem)
2083       --  Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2084       --  Class_Present (Flag6) set if from Aspect with 'Class
2085
2086       --  Note: we should have a section on what pragmas are passed on to
2087       --  the back end to be processed. This section should note that pragma
2088       --  Psect_Object is always converted to Common_Object, but there are
2089       --  undoubtedly many other similar notes required ???
2090
2091       --  Note: a utility function Pragma_Name may be applied to pragma nodes
2092       --  to conveniently obtain the Chars field of the Pragma_Identifier.
2093
2094       --  Note: if From_Aspect_Specification is set, then Sloc points to the
2095       --  aspect name, as does the Pragma_Identifier. In this case if the
2096       --  pragma has a local name argument (such as pragma Inline), it is
2097       --  resolved to point to the specific entity affected by the pragma.
2098
2099       --------------------------------------
2100       -- 2.8  Pragma Argument Association --
2101       --------------------------------------
2102
2103       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2104       --    [pragma_argument_IDENTIFIER =>] NAME
2105       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
2106
2107       --  N_Pragma_Argument_Association
2108       --  Sloc points to first token in association
2109       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
2110       --  Expression (Node3)
2111
2112       ------------------------
2113       -- 2.9  Reserved Word --
2114       ------------------------
2115
2116       --  Reserved words are parsed by the scanner, and returned as the
2117       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2118
2119       ----------------------------
2120       -- 3.1  Basic Declaration --
2121       ----------------------------
2122
2123       --  BASIC_DECLARATION ::=
2124       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
2125       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
2126       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
2127       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
2128       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
2129       --  | GENERIC_INSTANTIATION
2130
2131       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2132       --  see further description in section on semantic nodes.
2133
2134       --  Also, in the tree that is constructed, a pragma may appear
2135       --  anywhere that a declaration may appear.
2136
2137       ------------------------------
2138       -- 3.1  Defining Identifier --
2139       ------------------------------
2140
2141       --  DEFINING_IDENTIFIER ::= IDENTIFIER
2142
2143       --  A defining identifier is an entity, which has additional fields
2144       --  depending on the setting of the Ekind field. These additional
2145       --  fields are defined (and access subprograms declared) in package
2146       --  Einfo.
2147
2148       --  Note: N_Defining_Identifier is an extended node whose fields are
2149       --  deliberate layed out to match the layout of fields in an ordinary
2150       --  N_Identifier node allowing for easy alteration of an identifier
2151       --  node into a defining identifier node. For details, see procedure
2152       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2153
2154       --  N_Defining_Identifier
2155       --  Sloc points to identifier
2156       --  Chars (Name1) contains the Name_Id for the identifier
2157       --  Next_Entity (Node2-Sem)
2158       --  Scope (Node3-Sem)
2159       --  Etype (Node5-Sem)
2160
2161       -----------------------------
2162       -- 3.2.1  Type Declaration --
2163       -----------------------------
2164
2165       --  TYPE_DECLARATION ::=
2166       --    FULL_TYPE_DECLARATION
2167       --  | INCOMPLETE_TYPE_DECLARATION
2168       --  | PRIVATE_TYPE_DECLARATION
2169       --  | PRIVATE_EXTENSION_DECLARATION
2170
2171       ----------------------------------
2172       -- 3.2.1  Full Type Declaration --
2173       ----------------------------------
2174
2175       --  FULL_TYPE_DECLARATION ::=
2176       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2177       --      is TYPE_DEFINITION
2178       --        [ASPECT_SPECIFICATIONS];
2179       --  | TASK_TYPE_DECLARATION
2180       --  | PROTECTED_TYPE_DECLARATION
2181
2182       --  The full type declaration node is used only for the first case. The
2183       --  second case (concurrent type declaration), is represented directly
2184       --  by a task type declaration or a protected type declaration.
2185
2186       --  N_Full_Type_Declaration
2187       --  Sloc points to TYPE
2188       --  Defining_Identifier (Node1)
2189       --  Discriminant_Specifications (List4) (set to No_List if none)
2190       --  Type_Definition (Node3)
2191       --  Discr_Check_Funcs_Built (Flag11-Sem)
2192
2193       ----------------------------
2194       -- 3.2.1  Type Definition --
2195       ----------------------------
2196
2197       --  TYPE_DEFINITION ::=
2198       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2199       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2200       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2201       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2202
2203       --------------------------------
2204       -- 3.2.2  Subtype Declaration --
2205       --------------------------------
2206
2207       --  SUBTYPE_DECLARATION ::=
2208       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2209       --      [ASPECT_SPECIFICATIONS];
2210
2211       --  The subtype indication field is set to Empty for subtypes
2212       --  declared in package Standard (Positive, Natural).
2213
2214       --  N_Subtype_Declaration
2215       --  Sloc points to SUBTYPE
2216       --  Defining_Identifier (Node1)
2217       --  Null_Exclusion_Present (Flag11)
2218       --  Subtype_Indication (Node5)
2219       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2220       --  Exception_Junk (Flag8-Sem)
2221       --  Has_Dynamic_Range_Check (Flag12-Sem)
2222
2223       -------------------------------
2224       -- 3.2.2  Subtype Indication --
2225       -------------------------------
2226
2227       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2228
2229       --  Note: if no constraint is present, the subtype indication appears
2230       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2231       --  node is used only if a constraint is present.
2232
2233       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2234       --  with the null-exclusion part (see AI-231), we had to introduce a new
2235       --  attribute in all the parents of subtype_indication nodes to indicate
2236       --  if the null-exclusion is present.
2237
2238       --  Note: the reason that this node has expression fields is that a
2239       --  subtype indication can appear as an operand of a membership test.
2240
2241       --  N_Subtype_Indication
2242       --  Sloc points to first token of subtype mark
2243       --  Subtype_Mark (Node4)
2244       --  Constraint (Node3)
2245       --  Etype (Node5-Sem)
2246       --  Must_Not_Freeze (Flag8-Sem)
2247
2248       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2249       --  reason for this redundancy is so that in a list of array index types,
2250       --  the Etype can be uniformly accessed to determine the subscript type.
2251       --  This means that no Itype is constructed for the actual subtype that
2252       --  is created by the subtype indication. If such an Itype is required,
2253       --  it is constructed in the context in which the indication appears.
2254
2255       -------------------------
2256       -- 3.2.2  Subtype Mark --
2257       -------------------------
2258
2259       --  SUBTYPE_MARK ::= subtype_NAME
2260
2261       -----------------------
2262       -- 3.2.2  Constraint --
2263       -----------------------
2264
2265       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2266
2267       ------------------------------
2268       -- 3.2.2  Scalar Constraint --
2269       ------------------------------
2270
2271       --  SCALAR_CONSTRAINT ::=
2272       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2273
2274       ---------------------------------
2275       -- 3.2.2  Composite Constraint --
2276       ---------------------------------
2277
2278       --  COMPOSITE_CONSTRAINT ::=
2279       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2280
2281       -------------------------------
2282       -- 3.3.1  Object Declaration --
2283       -------------------------------
2284
2285       --  OBJECT_DECLARATION ::=
2286       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2287       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2288       --        [ASPECT_SPECIFICATIONS];
2289       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2290       --      ACCESS_DEFINITION [:= EXPRESSION]
2291       --        [ASPECT_SPECIFICATIONS];
2292       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2293       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2294       --        [ASPECT_SPECIFICATIONS];
2295       --  | SINGLE_TASK_DECLARATION
2296       --  | SINGLE_PROTECTED_DECLARATION
2297
2298       --  Note: aliased is not permitted in Ada 83 mode
2299
2300       --  The N_Object_Declaration node is only for the first two cases.
2301       --  Single task declaration is handled by P_Task (9.1)
2302       --  Single protected declaration is handled by P_protected (9.5)
2303
2304       --  Although the syntax allows multiple identifiers in the list, the
2305       --  semantics is as though successive declarations were given with
2306       --  identical type definition and expression components. To simplify
2307       --  semantic processing, the parser represents a multiple declaration
2308       --  case as a sequence of single declarations, using the More_Ids and
2309       --  Prev_Ids flags to preserve the original source form as described
2310       --  in the section on "Handling of Defining Identifier Lists".
2311
2312       --  The flag Has_Init_Expression is set if an initializing expression
2313       --  is present. Normally it is set if and only if Expression contains
2314       --  a non-empty value, but there is an exception to this. When the
2315       --  initializing expression is an aggregate which requires explicit
2316       --  assignments, the Expression field gets set to Empty, but this flag
2317       --  is still set, so we don't forget we had an initializing expression.
2318
2319       --  Note: if a range check is required for the initialization
2320       --  expression then the Do_Range_Check flag is set in the Expression,
2321       --  with the check being done against the type given by the object
2322       --  definition, which is also the Etype of the defining identifier.
2323
2324       --  Note: the contents of the Expression field must be ignored (i.e.
2325       --  treated as though it were Empty) if No_Initialization is set True.
2326
2327       --  Note: the back end places some restrictions on the form of the
2328       --  Expression field. If the object being declared is Atomic, then
2329       --  the Expression may not have the form of an aggregate (since this
2330       --  might cause the back end to generate separate assignments). In this
2331       --  case the front end must generate an extra temporary and initialize
2332       --  this temporary as required (the temporary itself is not atomic).
2333
2334       --  Note: there is not node kind for object definition. Instead, the
2335       --  corresponding field holds a subtype indication, an array type
2336       --  definition, or (Ada 2005, AI-406) an access definition.
2337
2338       --  N_Object_Declaration
2339       --  Sloc points to first identifier
2340       --  Defining_Identifier (Node1)
2341       --  Aliased_Present (Flag4)
2342       --  Constant_Present (Flag17) set if CONSTANT appears
2343       --  Null_Exclusion_Present (Flag11)
2344       --  Object_Definition (Node4) subtype indic./array type def./access def.
2345       --  Expression (Node3) (set to Empty if not present)
2346       --  Handler_List_Entry (Node2-Sem)
2347       --  Corresponding_Generic_Association (Node5-Sem)
2348       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2349       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2350       --  No_Initialization (Flag13-Sem)
2351       --  Assignment_OK (Flag15-Sem)
2352       --  Exception_Junk (Flag8-Sem)
2353       --  Is_Subprogram_Descriptor (Flag16-Sem)
2354       --  Has_Init_Expression (Flag14)
2355       --  Suppress_Assignment_Checks (Flag18-Sem)
2356
2357       -------------------------------------
2358       -- 3.3.1  Defining Identifier List --
2359       -------------------------------------
2360
2361       --  DEFINING_IDENTIFIER_LIST ::=
2362       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2363
2364       -------------------------------
2365       -- 3.3.2  Number Declaration --
2366       -------------------------------
2367
2368       --  NUMBER_DECLARATION ::=
2369       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2370
2371       --  Although the syntax allows multiple identifiers in the list, the
2372       --  semantics is as though successive declarations were given with
2373       --  identical expressions. To simplify semantic processing, the parser
2374       --  represents a multiple declaration case as a sequence of single
2375       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2376       --  the original source form as described in the section on "Handling
2377       --  of Defining Identifier Lists".
2378
2379       --  N_Number_Declaration
2380       --  Sloc points to first identifier
2381       --  Defining_Identifier (Node1)
2382       --  Expression (Node3)
2383       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2384       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2385
2386       ----------------------------------
2387       -- 3.4  Derived Type Definition --
2388       ----------------------------------
2389
2390       --  DERIVED_TYPE_DEFINITION ::=
2391       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2392       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2393
2394       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2395       --  in Ada 83 mode
2396
2397       --  Note: a record extension part is required if ABSTRACT is present
2398
2399       --  N_Derived_Type_Definition
2400       --  Sloc points to NEW
2401       --  Abstract_Present (Flag4)
2402       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2403       --  Subtype_Indication (Node5)
2404       --  Record_Extension_Part (Node3) (set to Empty if not present)
2405       --  Limited_Present (Flag17)
2406       --  Task_Present (Flag5) set in task interfaces
2407       --  Protected_Present (Flag6) set in protected interfaces
2408       --  Synchronized_Present (Flag7) set in interfaces
2409       --  Interface_List (List2) (set to No_List if none)
2410       --  Interface_Present (Flag16) set in abstract interfaces
2411
2412       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2413       --        Interface_List, and Interface_Present are used for abstract
2414       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2415
2416       ---------------------------
2417       -- 3.5  Range Constraint --
2418       ---------------------------
2419
2420       --  RANGE_CONSTRAINT ::= range RANGE
2421
2422       --  N_Range_Constraint
2423       --  Sloc points to RANGE
2424       --  Range_Expression (Node4)
2425
2426       ----------------
2427       -- 3.5  Range --
2428       ----------------
2429
2430       --  RANGE ::=
2431       --    RANGE_ATTRIBUTE_REFERENCE
2432       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2433
2434       --  Note: the case of a range given as a range attribute reference
2435       --  appears directly in the tree as an attribute reference.
2436
2437       --  Note: the field name for a reference to a range is Range_Expression
2438       --  rather than Range, because range is a reserved keyword in Ada!
2439
2440       --  Note: the reason that this node has expression fields is that a
2441       --  range can appear as an operand of a membership test. The Etype
2442       --  field is the type of the range (we do NOT construct an implicit
2443       --  subtype to represent the range exactly).
2444
2445       --  N_Range
2446       --  Sloc points to ..
2447       --  Low_Bound (Node1)
2448       --  High_Bound (Node2)
2449       --  Includes_Infinities (Flag11)
2450       --  plus fields for expression
2451
2452       --  Note: if the range appears in a context, such as a subtype
2453       --  declaration, where range checks are required on one or both of
2454       --  the expression fields, then type conversion nodes are inserted
2455       --  to represent the required checks.
2456
2457       ----------------------------------------
2458       -- 3.5.1  Enumeration Type Definition --
2459       ----------------------------------------
2460
2461       --  ENUMERATION_TYPE_DEFINITION ::=
2462       --    (ENUMERATION_LITERAL_SPECIFICATION
2463       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2464
2465       --  Note: the Literals field in the node described below is null for
2466       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2467       --  which special processing handles these types as special cases.
2468
2469       --  N_Enumeration_Type_Definition
2470       --  Sloc points to left parenthesis
2471       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2472       --  End_Label (Node4) (set to Empty if internally generated record)
2473
2474       ----------------------------------------------
2475       -- 3.5.1  Enumeration Literal Specification --
2476       ----------------------------------------------
2477
2478       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2479       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2480
2481       ---------------------------------------
2482       -- 3.5.1  Defining Character Literal --
2483       ---------------------------------------
2484
2485       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2486
2487       --  A defining character literal is an entity, which has additional
2488       --  fields depending on the setting of the Ekind field. These
2489       --  additional fields are defined (and access subprograms declared)
2490       --  in package Einfo.
2491
2492       --  Note: N_Defining_Character_Literal is an extended node whose fields
2493       --  are deliberate layed out to match the layout of fields in an ordinary
2494       --  N_Character_Literal node allowing for easy alteration of a character
2495       --  literal node into a defining character literal node. For details, see
2496       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2497
2498       --  N_Defining_Character_Literal
2499       --  Sloc points to literal
2500       --  Chars (Name1) contains the Name_Id for the identifier
2501       --  Next_Entity (Node2-Sem)
2502       --  Scope (Node3-Sem)
2503       --  Etype (Node5-Sem)
2504
2505       ------------------------------------
2506       -- 3.5.4  Integer Type Definition --
2507       ------------------------------------
2508
2509       --  Note: there is an error in this rule in the latest version of the
2510       --  grammar, so we have retained the old rule pending clarification.
2511
2512       --  INTEGER_TYPE_DEFINITION ::=
2513       --    SIGNED_INTEGER_TYPE_DEFINITION
2514       --  | MODULAR_TYPE_DEFINITION
2515
2516       -------------------------------------------
2517       -- 3.5.4  Signed Integer Type Definition --
2518       -------------------------------------------
2519
2520       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2521       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2522
2523       --  Note: the Low_Bound and High_Bound fields are set to Empty
2524       --  for integer types defined in package Standard.
2525
2526       --  N_Signed_Integer_Type_Definition
2527       --  Sloc points to RANGE
2528       --  Low_Bound (Node1)
2529       --  High_Bound (Node2)
2530
2531       ------------------------------------
2532       -- 3.5.4  Modular Type Definition --
2533       ------------------------------------
2534
2535       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2536
2537       --  N_Modular_Type_Definition
2538       --  Sloc points to MOD
2539       --  Expression (Node3)
2540
2541       ---------------------------------
2542       -- 3.5.6  Real Type Definition --
2543       ---------------------------------
2544
2545       --  REAL_TYPE_DEFINITION ::=
2546       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2547
2548       --------------------------------------
2549       -- 3.5.7  Floating Point Definition --
2550       --------------------------------------
2551
2552       --  FLOATING_POINT_DEFINITION ::=
2553       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2554
2555       --  Note: The Digits_Expression and Real_Range_Specifications fields
2556       --  are set to Empty for floating-point types declared in Standard.
2557
2558       --  N_Floating_Point_Definition
2559       --  Sloc points to DIGITS
2560       --  Digits_Expression (Node2)
2561       --  Real_Range_Specification (Node4) (set to Empty if not present)
2562
2563       -------------------------------------
2564       -- 3.5.7  Real Range Specification --
2565       -------------------------------------
2566
2567       --  REAL_RANGE_SPECIFICATION ::=
2568       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2569
2570       --  N_Real_Range_Specification
2571       --  Sloc points to RANGE
2572       --  Low_Bound (Node1)
2573       --  High_Bound (Node2)
2574
2575       -----------------------------------
2576       -- 3.5.9  Fixed Point Definition --
2577       -----------------------------------
2578
2579       --  FIXED_POINT_DEFINITION ::=
2580       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2581
2582       --------------------------------------------
2583       -- 3.5.9  Ordinary Fixed Point Definition --
2584       --------------------------------------------
2585
2586       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2587       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2588
2589       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2590
2591       --  N_Ordinary_Fixed_Point_Definition
2592       --  Sloc points to DELTA
2593       --  Delta_Expression (Node3)
2594       --  Real_Range_Specification (Node4)
2595
2596       -------------------------------------------
2597       -- 3.5.9  Decimal Fixed Point Definition --
2598       -------------------------------------------
2599
2600       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2601       --    delta static_EXPRESSION
2602       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2603
2604       --  Note: decimal types are not permitted in Ada 83 mode
2605
2606       --  N_Decimal_Fixed_Point_Definition
2607       --  Sloc points to DELTA
2608       --  Delta_Expression (Node3)
2609       --  Digits_Expression (Node2)
2610       --  Real_Range_Specification (Node4) (set to Empty if not present)
2611
2612       ------------------------------
2613       -- 3.5.9  Digits Constraint --
2614       ------------------------------
2615
2616       --  DIGITS_CONSTRAINT ::=
2617       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2618
2619       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2620       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2621
2622       --  N_Digits_Constraint
2623       --  Sloc points to DIGITS
2624       --  Digits_Expression (Node2)
2625       --  Range_Constraint (Node4) (set to Empty if not present)
2626
2627       --------------------------------
2628       -- 3.6  Array Type Definition --
2629       --------------------------------
2630
2631       --  ARRAY_TYPE_DEFINITION ::=
2632       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2633
2634       -----------------------------------------
2635       -- 3.6  Unconstrained Array Definition --
2636       -----------------------------------------
2637
2638       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2639       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2640       --      COMPONENT_DEFINITION
2641
2642       --  Note: dimensionality of array is indicated by number of entries in
2643       --  the Subtype_Marks list, which has one entry for each dimension.
2644
2645       --  N_Unconstrained_Array_Definition
2646       --  Sloc points to ARRAY
2647       --  Subtype_Marks (List2)
2648       --  Component_Definition (Node4)
2649
2650       -----------------------------------
2651       -- 3.6  Index Subtype Definition --
2652       -----------------------------------
2653
2654       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2655
2656       --  There is no explicit node in the tree for an index subtype
2657       --  definition since the N_Unconstrained_Array_Definition node
2658       --  incorporates the type marks which appear in this context.
2659
2660       ---------------------------------------
2661       -- 3.6  Constrained Array Definition --
2662       ---------------------------------------
2663
2664       --  CONSTRAINED_ARRAY_DEFINITION ::=
2665       --    array (DISCRETE_SUBTYPE_DEFINITION
2666       --      {, DISCRETE_SUBTYPE_DEFINITION})
2667       --        of COMPONENT_DEFINITION
2668
2669       --  Note: dimensionality of array is indicated by number of entries
2670       --  in the Discrete_Subtype_Definitions list, which has one entry
2671       --  for each dimension.
2672
2673       --  N_Constrained_Array_Definition
2674       --  Sloc points to ARRAY
2675       --  Discrete_Subtype_Definitions (List2)
2676       --  Component_Definition (Node4)
2677
2678       --------------------------------------
2679       -- 3.6  Discrete Subtype Definition --
2680       --------------------------------------
2681
2682       --  DISCRETE_SUBTYPE_DEFINITION ::=
2683       --    discrete_SUBTYPE_INDICATION | RANGE
2684
2685       -------------------------------
2686       -- 3.6  Component Definition --
2687       -------------------------------
2688
2689       --  COMPONENT_DEFINITION ::=
2690       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2691
2692       --  Note: although the syntax does not permit a component definition to
2693       --  be an anonymous array (and the parser will diagnose such an attempt
2694       --  with an appropriate message), it is possible for anonymous arrays
2695       --  to appear as component definitions. The semantics and back end handle
2696       --  this case properly, and the expander in fact generates such cases.
2697       --  Access_Definition is an optional field that gives support to
2698       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2699       --  Subtype_Indication field or else the Access_Definition field.
2700
2701       --  N_Component_Definition
2702       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2703       --  Aliased_Present (Flag4)
2704       --  Null_Exclusion_Present (Flag11)
2705       --  Subtype_Indication (Node5) (set to Empty if not present)
2706       --  Access_Definition (Node3) (set to Empty if not present)
2707
2708       -----------------------------
2709       -- 3.6.1  Index Constraint --
2710       -----------------------------
2711
2712       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2713
2714       --  It is not in general possible to distinguish between discriminant
2715       --  constraints and index constraints at parse time, since a simple
2716       --  name could be either the subtype mark of a discrete range, or an
2717       --  expression in a discriminant association with no name. Either
2718       --  entry appears simply as the name, and the semantic parse must
2719       --  distinguish between the two cases. Thus we use a common tree
2720       --  node format for both of these constraint types.
2721
2722       --  See Discriminant_Constraint for format of node
2723
2724       ---------------------------
2725       -- 3.6.1  Discrete Range --
2726       ---------------------------
2727
2728       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2729
2730       ----------------------------
2731       -- 3.7  Discriminant Part --
2732       ----------------------------
2733
2734       --  DISCRIMINANT_PART ::=
2735       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2736
2737       ------------------------------------
2738       -- 3.7  Unknown Discriminant Part --
2739       ------------------------------------
2740
2741       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2742
2743       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2744
2745       --  There is no explicit node in the tree for an unknown discriminant
2746       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2747       --  parent node.
2748
2749       ----------------------------------
2750       -- 3.7  Known Discriminant Part --
2751       ----------------------------------
2752
2753       --  KNOWN_DISCRIMINANT_PART ::=
2754       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2755
2756       -------------------------------------
2757       -- 3.7  Discriminant Specification --
2758       -------------------------------------
2759
2760       --  DISCRIMINANT_SPECIFICATION ::=
2761       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2762       --      [:= DEFAULT_EXPRESSION]
2763       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2764       --      [:= DEFAULT_EXPRESSION]
2765
2766       --  Although the syntax allows multiple identifiers in the list, the
2767       --  semantics is as though successive specifications were given with
2768       --  identical type definition and expression components. To simplify
2769       --  semantic processing, the parser represents a multiple declaration
2770       --  case as a sequence of single specifications, using the More_Ids and
2771       --  Prev_Ids flags to preserve the original source form as described
2772       --  in the section on "Handling of Defining Identifier Lists".
2773
2774       --  N_Discriminant_Specification
2775       --  Sloc points to first identifier
2776       --  Defining_Identifier (Node1)
2777       --  Null_Exclusion_Present (Flag11)
2778       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2779       --  Expression (Node3) (set to Empty if no default expression)
2780       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2781       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2782
2783       -----------------------------
2784       -- 3.7  Default Expression --
2785       -----------------------------
2786
2787       --  DEFAULT_EXPRESSION ::= EXPRESSION
2788
2789       ------------------------------------
2790       -- 3.7.1  Discriminant Constraint --
2791       ------------------------------------
2792
2793       --  DISCRIMINANT_CONSTRAINT ::=
2794       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2795
2796       --  It is not in general possible to distinguish between discriminant
2797       --  constraints and index constraints at parse time, since a simple
2798       --  name could be either the subtype mark of a discrete range, or an
2799       --  expression in a discriminant association with no name. Either
2800       --  entry appears simply as the name, and the semantic parse must
2801       --  distinguish between the two cases. Thus we use a common tree
2802       --  node format for both of these constraint types.
2803
2804       --  N_Index_Or_Discriminant_Constraint
2805       --  Sloc points to left paren
2806       --  Constraints (List1) points to list of discrete ranges or
2807       --    discriminant associations
2808
2809       -------------------------------------
2810       -- 3.7.1  Discriminant Association --
2811       -------------------------------------
2812
2813       --  DISCRIMINANT_ASSOCIATION ::=
2814       --    [discriminant_SELECTOR_NAME
2815       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2816
2817       --  Note: a discriminant association that has no selector name list
2818       --  appears directly as an expression in the tree.
2819
2820       --  N_Discriminant_Association
2821       --  Sloc points to first token of discriminant association
2822       --  Selector_Names (List1) (always non-empty, since if no selector
2823       --   names are present, this node is not used, see comment above)
2824       --  Expression (Node3)
2825
2826       ---------------------------------
2827       -- 3.8  Record Type Definition --
2828       ---------------------------------
2829
2830       --  RECORD_TYPE_DEFINITION ::=
2831       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2832
2833       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2834
2835       --  There is no explicit node in the tree for a record type definition.
2836       --  Instead the flags for Tagged_Present and Limited_Present appear in
2837       --  the N_Record_Definition node for a record definition appearing in
2838       --  the context of a record type definition.
2839
2840       ----------------------------
2841       -- 3.8  Record Definition --
2842       ----------------------------
2843
2844       --  RECORD_DEFINITION ::=
2845       --    record
2846       --      COMPONENT_LIST
2847       --    end record
2848       --  | null record
2849
2850       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2851       --  flags appear only for a record definition appearing in a record
2852       --  type definition.
2853
2854       --  Note: the NULL RECORD case is not permitted in Ada 83
2855
2856       --  N_Record_Definition
2857       --  Sloc points to RECORD or NULL
2858       --  End_Label (Node4) (set to Empty if internally generated record)
2859       --  Abstract_Present (Flag4)
2860       --  Tagged_Present (Flag15)
2861       --  Limited_Present (Flag17)
2862       --  Component_List (Node1) empty in null record case
2863       --  Null_Present (Flag13) set in null record case
2864       --  Task_Present (Flag5) set in task interfaces
2865       --  Protected_Present (Flag6) set in protected interfaces
2866       --  Synchronized_Present (Flag7) set in interfaces
2867       --  Interface_Present (Flag16) set in abstract interfaces
2868       --  Interface_List (List2) (set to No_List if none)
2869
2870       --  Note: Task_Present, Protected_Present, Synchronized _Present,
2871       --        Interface_List and Interface_Present are used for abstract
2872       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2873
2874       -------------------------
2875       -- 3.8  Component List --
2876       -------------------------
2877
2878       --  COMPONENT_LIST ::=
2879       --    COMPONENT_ITEM {COMPONENT_ITEM}
2880       --  | {COMPONENT_ITEM} VARIANT_PART
2881       --  | null;
2882
2883       --  N_Component_List
2884       --  Sloc points to first token of component list
2885       --  Component_Items (List3)
2886       --  Variant_Part (Node4) (set to Empty if no variant part)
2887       --  Null_Present (Flag13)
2888
2889       -------------------------
2890       -- 3.8  Component Item --
2891       -------------------------
2892
2893       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2894
2895       --  Note: A component item can also be a pragma, and in the tree
2896       --  that is obtained after semantic processing, a component item
2897       --  can be an N_Null node resulting from a non-recognized pragma.
2898
2899       --------------------------------
2900       -- 3.8  Component Declaration --
2901       --------------------------------
2902
2903       --  COMPONENT_DECLARATION ::=
2904       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2905       --      [:= DEFAULT_EXPRESSION]
2906       --        [ASPECT_SPECIFICATIONS];
2907
2908       --  Note: although the syntax does not permit a component definition to
2909       --  be an anonymous array (and the parser will diagnose such an attempt
2910       --  with an appropriate message), it is possible for anonymous arrays
2911       --  to appear as component definitions. The semantics and back end handle
2912       --  this case properly, and the expander in fact generates such cases.
2913
2914       --  Although the syntax allows multiple identifiers in the list, the
2915       --  semantics is as though successive declarations were given with the
2916       --  same component definition and expression components. To simplify
2917       --  semantic processing, the parser represents a multiple declaration
2918       --  case as a sequence of single declarations, using the More_Ids and
2919       --  Prev_Ids flags to preserve the original source form as described
2920       --  in the section on "Handling of Defining Identifier Lists".
2921
2922       --  N_Component_Declaration
2923       --  Sloc points to first identifier
2924       --  Defining_Identifier (Node1)
2925       --  Component_Definition (Node4)
2926       --  Expression (Node3) (set to Empty if no default expression)
2927       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2928       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2929
2930       -------------------------
2931       -- 3.8.1  Variant Part --
2932       -------------------------
2933
2934       --  VARIANT_PART ::=
2935       --    case discriminant_DIRECT_NAME is
2936       --      VARIANT
2937       --      {VARIANT}
2938       --    end case;
2939
2940       --  Note: the variants list can contain pragmas as well as variants.
2941       --  In a properly formed program there is at least one variant.
2942
2943       --  N_Variant_Part
2944       --  Sloc points to CASE
2945       --  Name (Node2)
2946       --  Variants (List1)
2947
2948       --------------------
2949       -- 3.8.1  Variant --
2950       --------------------
2951
2952       --  VARIANT ::=
2953       --    when DISCRETE_CHOICE_LIST =>
2954       --      COMPONENT_LIST
2955
2956       --  N_Variant
2957       --  Sloc points to WHEN
2958       --  Discrete_Choices (List4)
2959       --  Component_List (Node1)
2960       --  Enclosing_Variant (Node2-Sem)
2961       --  Present_Expr (Uint3-Sem)
2962       --  Dcheck_Function (Node5-Sem)
2963
2964       ---------------------------------
2965       -- 3.8.1  Discrete Choice List --
2966       ---------------------------------
2967
2968       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2969
2970       ----------------------------
2971       -- 3.8.1  Discrete Choice --
2972       ----------------------------
2973
2974       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2975
2976       --  Note: in Ada 83 mode, the expression must be a simple expression
2977
2978       --  The only choice that appears explicitly is the OTHERS choice, as
2979       --  defined here. Other cases of discrete choice (expression and
2980       --  discrete range) appear directly. This production is also used
2981       --  for the OTHERS possibility of an exception choice.
2982
2983       --  Note: in accordance with the syntax, the parser does not check that
2984       --  OTHERS appears at the end on its own in a choice list context. This
2985       --  is a semantic check.
2986
2987       --  N_Others_Choice
2988       --  Sloc points to OTHERS
2989       --  Others_Discrete_Choices (List1-Sem)
2990       --  All_Others (Flag11-Sem)
2991
2992       ----------------------------------
2993       -- 3.9.1  Record Extension Part --
2994       ----------------------------------
2995
2996       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2997
2998       --  Note: record extension parts are not permitted in Ada 83 mode
2999
3000       --------------------------------------
3001       -- 3.9.4  Interface Type Definition --
3002       --------------------------------------
3003
3004       --  INTERFACE_TYPE_DEFINITION ::=
3005       --    [limited | task | protected | synchronized]
3006       --    interface [interface_list]
3007
3008       --  Note: Interfaces are implemented with N_Record_Definition and
3009       --        N_Derived_Type_Definition nodes because most of the support
3010       --        for the analysis of abstract types has been reused to
3011       --        analyze abstract interfaces.
3012
3013       ----------------------------------
3014       -- 3.10  Access Type Definition --
3015       ----------------------------------
3016
3017       --  ACCESS_TYPE_DEFINITION ::=
3018       --    ACCESS_TO_OBJECT_DEFINITION
3019       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3020
3021       --------------------------
3022       -- 3.10  Null Exclusion --
3023       --------------------------
3024
3025       --  NULL_EXCLUSION ::= not null
3026
3027       ---------------------------------------
3028       -- 3.10  Access To Object Definition --
3029       ---------------------------------------
3030
3031       --  ACCESS_TO_OBJECT_DEFINITION ::=
3032       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3033       --    SUBTYPE_INDICATION
3034
3035       --  N_Access_To_Object_Definition
3036       --  Sloc points to ACCESS
3037       --  All_Present (Flag15)
3038       --  Null_Exclusion_Present (Flag11)
3039       --  Subtype_Indication (Node5)
3040       --  Constant_Present (Flag17)
3041
3042       -----------------------------------
3043       -- 3.10  General Access Modifier --
3044       -----------------------------------
3045
3046       --  GENERAL_ACCESS_MODIFIER ::= all | constant
3047
3048       --  Note: general access modifiers are not permitted in Ada 83 mode
3049
3050       --  There is no explicit node in the tree for general access modifier.
3051       --  Instead the All_Present or Constant_Present flags are set in the
3052       --  parent node.
3053
3054       -------------------------------------------
3055       -- 3.10  Access To Subprogram Definition --
3056       -------------------------------------------
3057
3058       --  ACCESS_TO_SUBPROGRAM_DEFINITION
3059       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3060       --  | [NULL_EXCLUSION] access [protected] function
3061       --    PARAMETER_AND_RESULT_PROFILE
3062
3063       --  Note: access to subprograms are not permitted in Ada 83 mode
3064
3065       --  N_Access_Function_Definition
3066       --  Sloc points to ACCESS
3067       --  Null_Exclusion_Present (Flag11)
3068       --  Null_Exclusion_In_Return_Present (Flag14)
3069       --  Protected_Present (Flag6)
3070       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3071       --  Result_Definition (Node4) result subtype (subtype mark or access def)
3072
3073       --  N_Access_Procedure_Definition
3074       --  Sloc points to ACCESS
3075       --  Null_Exclusion_Present (Flag11)
3076       --  Protected_Present (Flag6)
3077       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3078
3079       -----------------------------
3080       -- 3.10  Access Definition --
3081       -----------------------------
3082
3083       --  ACCESS_DEFINITION ::=
3084       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3085       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3086
3087       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
3088
3089       --  N_Access_Definition
3090       --  Sloc points to ACCESS
3091       --  Null_Exclusion_Present (Flag11)
3092       --  All_Present (Flag15)
3093       --  Constant_Present (Flag17)
3094       --  Subtype_Mark (Node4)
3095       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3096
3097       -----------------------------------------
3098       -- 3.10.1  Incomplete Type Declaration --
3099       -----------------------------------------
3100
3101       --  INCOMPLETE_TYPE_DECLARATION ::=
3102       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3103
3104       --  N_Incomplete_Type_Declaration
3105       --  Sloc points to TYPE
3106       --  Defining_Identifier (Node1)
3107       --  Discriminant_Specifications (List4) (set to No_List if no
3108       --   discriminant part, or if the discriminant part is an
3109       --   unknown discriminant part)
3110       --  Premature_Use (Node5-Sem) used for improved diagnostics.
3111       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3112       --  Tagged_Present (Flag15)
3113
3114       ----------------------------
3115       -- 3.11  Declarative Part --
3116       ----------------------------
3117
3118       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3119
3120       --  Note: although the parser enforces the syntactic requirement that
3121       --  a declarative part can contain only declarations, the semantic
3122       --  processing may add statements to the list of actions in a
3123       --  declarative part, so the code generator should be prepared
3124       --  to accept a statement in this position.
3125
3126       ----------------------------
3127       -- 3.11  Declarative Item --
3128       ----------------------------
3129
3130       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3131
3132       ----------------------------------
3133       -- 3.11  Basic Declarative Item --
3134       ----------------------------------
3135
3136       --  BASIC_DECLARATIVE_ITEM ::=
3137       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3138
3139       ----------------
3140       -- 3.11  Body --
3141       ----------------
3142
3143       --  BODY ::= PROPER_BODY | BODY_STUB
3144
3145       -----------------------
3146       -- 3.11  Proper Body --
3147       -----------------------
3148
3149       --  PROPER_BODY ::=
3150       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3151
3152       ---------------
3153       -- 4.1  Name --
3154       ---------------
3155
3156       --  NAME ::=
3157       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
3158       --  | INDEXED_COMPONENT  | SLICE
3159       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3160       --  | TYPE_CONVERSION    | FUNCTION_CALL
3161       --  | CHARACTER_LITERAL
3162
3163       ----------------------
3164       -- 4.1  Direct Name --
3165       ----------------------
3166
3167       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3168
3169       -----------------
3170       -- 4.1  Prefix --
3171       -----------------
3172
3173       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3174
3175       -------------------------------
3176       -- 4.1  Explicit Dereference --
3177       -------------------------------
3178
3179       --  EXPLICIT_DEREFERENCE ::= NAME . all
3180
3181       --  N_Explicit_Dereference
3182       --  Sloc points to ALL
3183       --  Prefix (Node3)
3184       --  Actual_Designated_Subtype (Node4-Sem)
3185       --  Atomic_Sync_Required (Flag14-Sem)
3186       --  plus fields for expression
3187
3188       -------------------------------
3189       -- 4.1  Implicit Dereference --
3190       -------------------------------
3191
3192       --  IMPLICIT_DEREFERENCE ::= NAME
3193
3194       ------------------------------
3195       -- 4.1.1  Indexed Component --
3196       ------------------------------
3197
3198       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3199
3200       --  Note: the parser may generate this node in some situations where it
3201       --  should be a function call. The semantic  pass must correct this
3202       --  misidentification (which is inevitable at the parser level).
3203
3204       --  N_Indexed_Component
3205       --  Sloc contains a copy of the Sloc value of the Prefix
3206       --  Prefix (Node3)
3207       --  Expressions (List1)
3208       --  Atomic_Sync_Required (Flag14-Sem)
3209       --  plus fields for expression
3210
3211       --  Note: if any of the subscripts requires a range check, then the
3212       --  Do_Range_Check flag is set on the corresponding expression, with
3213       --  the index type being determined from the type of the Prefix, which
3214       --  references the array being indexed.
3215
3216       --  Note: in a fully analyzed and expanded indexed component node, and
3217       --  hence in any such node that gigi sees, if the prefix is an access
3218       --  type, then an explicit dereference operation has been inserted.
3219
3220       ------------------
3221       -- 4.1.2  Slice --
3222       ------------------
3223
3224       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3225
3226       --  Note: an implicit subtype is created to describe the resulting
3227       --  type, so that the bounds of this type are the bounds of the slice.
3228
3229       --  N_Slice
3230       --  Sloc points to first token of prefix
3231       --  Prefix (Node3)
3232       --  Discrete_Range (Node4)
3233       --  plus fields for expression
3234
3235       -------------------------------
3236       -- 4.1.3  Selected Component --
3237       -------------------------------
3238
3239       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3240
3241       --  Note: selected components that are semantically expanded names get
3242       --  changed during semantic processing into the separate N_Expanded_Name
3243       --  node. See description of this node in the section on semantic nodes.
3244
3245       --  N_Selected_Component
3246       --  Sloc points to period
3247       --  Prefix (Node3)
3248       --  Selector_Name (Node2)
3249       --  Associated_Node (Node4-Sem)
3250       --  Do_Discriminant_Check (Flag13-Sem)
3251       --  Is_In_Discriminant_Check (Flag11-Sem)
3252       --  Atomic_Sync_Required (Flag14-Sem)
3253       --  plus fields for expression
3254
3255       --------------------------
3256       -- 4.1.3  Selector Name --
3257       --------------------------
3258
3259       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3260
3261       --------------------------------
3262       -- 4.1.4  Attribute Reference --
3263       --------------------------------
3264
3265       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3266
3267       --  Note: the syntax is quite ambiguous at this point. Consider:
3268
3269       --    A'Length (X)  X is part of the attribute designator
3270       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3271       --    A'Class (X)   X is the expression of a type conversion
3272
3273       --  It would be possible for the parser to distinguish these cases
3274       --  by looking at the attribute identifier. However, that would mean
3275       --  more work in introducing new implementation defined attributes,
3276       --  and also it would mean that special processing for attributes
3277       --  would be scattered around, instead of being centralized in the
3278       --  semantic routine that handles an N_Attribute_Reference node.
3279       --  Consequently, the parser in all the above cases stores the
3280       --  expression (X in these examples) as a single element list in
3281       --  in the Expressions field of the N_Attribute_Reference node.
3282
3283       --  Similarly, for attributes like Max which take two arguments,
3284       --  we store the two arguments as a two element list in the
3285       --  Expressions field. Of course it is clear at parse time that
3286       --  this case is really a function call with an attribute as the
3287       --  prefix, but it turns out to be convenient to handle the two
3288       --  argument case in a similar manner to the one argument case,
3289       --  and indeed in general the parser will accept any number of
3290       --  expressions in this position and store them as a list in the
3291       --  attribute reference node. This allows for future addition of
3292       --  attributes that take more than two arguments.
3293
3294       --  Note: named associates are not permitted in function calls where
3295       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3296       --  to skip the normal subprogram argument processing.
3297
3298       --  Note: for the attributes whose designators are technically keywords,
3299       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3300       --  the corresponding name, even though no identifier is involved.
3301
3302       --  Note: the generated code may contain stream attributes applied to
3303       --  limited types for which no stream routines exist officially. In such
3304       --  case, the result is to use the stream attribute for the underlying
3305       --  full type, or in the case of a protected type, the components
3306       --  (including any discriminants) are merely streamed in order.
3307
3308       --  See Exp_Attr for a complete description of which attributes are
3309       --  passed onto Gigi, and which are handled entirely by the front end.
3310
3311       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3312       --  a non-standard enumeration type or a nonzero/zero semantics
3313       --  boolean type, so the value is simply the stored representation.
3314
3315       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3316       --  references a subprogram that is a renaming, then the front end must
3317       --  rewrite the attribute to refer directly to the renamed entity.
3318
3319       --  Note: In generated code, the Address and Unrestricted_Access
3320       --  attributes can be applied to any expression, and the meaning is
3321       --  to create an object containing the value (the object is in the
3322       --  current stack frame), and pass the address of this value. If the
3323       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3324       --  is taken must be on a byte (storage unit) boundary, and if it is
3325       --  not (or may not be), then the generated code must create a copy
3326       --  that is byte aligned, and pass the address of this copy.
3327
3328       --  N_Attribute_Reference
3329       --  Sloc points to apostrophe
3330       --  Prefix (Node3)
3331       --  Attribute_Name (Name2) identifier name from attribute designator
3332       --  Expressions (List1) (set to No_List if no associated expressions)
3333       --  Entity (Node4-Sem) used if the attribute yields a type
3334       --  Associated_Node (Node4-Sem)
3335       --  Do_Overflow_Check (Flag17-Sem)
3336       --  Header_Size_Added (Flag11-Sem)
3337       --  Redundant_Use (Flag13-Sem)
3338       --  Must_Be_Byte_Aligned (Flag14)
3339       --  plus fields for expression
3340
3341       ---------------------------------
3342       -- 4.1.4  Attribute Designator --
3343       ---------------------------------
3344
3345       --  ATTRIBUTE_DESIGNATOR ::=
3346       --    IDENTIFIER [(static_EXPRESSION)]
3347       --  | access | delta | digits
3348
3349       --  There is no explicit node in the tree for an attribute designator.
3350       --  Instead the Attribute_Name and Expressions fields of the parent
3351       --  node (N_Attribute_Reference node) hold the information.
3352
3353       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3354       --  designator, then they are treated as identifiers internally
3355       --  rather than the keywords of the same name.
3356
3357       --------------------------------------
3358       -- 4.1.4  Range Attribute Reference --
3359       --------------------------------------
3360
3361       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3362
3363       --  A range attribute reference is represented in the tree using the
3364       --  normal N_Attribute_Reference node.
3365
3366       ---------------------------------------
3367       -- 4.1.4  Range Attribute Designator --
3368       ---------------------------------------
3369
3370       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3371
3372       --  A range attribute designator is represented in the tree using the
3373       --  normal N_Attribute_Reference node.
3374
3375       --------------------
3376       -- 4.3  Aggregate --
3377       --------------------
3378
3379       --  AGGREGATE ::=
3380       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3381
3382       -----------------------------
3383       -- 4.3.1  Record Aggregate --
3384       -----------------------------
3385
3386       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3387
3388       --  N_Aggregate
3389       --  Sloc points to left parenthesis
3390       --  Expressions (List1) (set to No_List if none or null record case)
3391       --  Component_Associations (List2) (set to No_List if none)
3392       --  Null_Record_Present (Flag17)
3393       --  Aggregate_Bounds (Node3-Sem)
3394       --  Associated_Node (Node4-Sem)
3395       --  Static_Processing_OK (Flag4-Sem)
3396       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3397       --  Expansion_Delayed (Flag11-Sem)
3398       --  Has_Self_Reference (Flag13-Sem)
3399       --  plus fields for expression
3400
3401       --  Note: this structure is used for both record and array aggregates
3402       --  since the two cases are not separable by the parser. The parser
3403       --  makes no attempt to enforce consistency here, so it is up to the
3404       --  semantic phase to make sure that the aggregate is consistent (i.e.
3405       --  that it is not a "half-and-half" case that mixes record and array
3406       --  syntax. In particular, for a record aggregate, the expressions
3407       --  field will be set if there are positional associations.
3408
3409       --  Note: N_Aggregate is not used for all aggregates; in particular,
3410       --  there is a separate node kind for extension aggregates.
3411
3412       --  Note: gigi/gcc can handle array aggregates correctly providing that
3413       --  they are entirely positional, and the array subtype involved has a
3414       --  known at compile time length and is not bit packed, or a convention
3415       --  Fortran array with more than one dimension. If these conditions
3416       --  are not met, then the front end must translate the aggregate into
3417       --  an appropriate set of assignments into a temporary.
3418
3419       --  Note: for the record aggregate case, gigi/gcc can handle all cases of
3420       --  record aggregates, including those for packed, and rep-claused
3421       --  records, and also variant records, providing that there are no
3422       --  variable length fields whose size is not known at compile time, and
3423       --  providing that the aggregate is presented in fully named form.
3424
3425       ----------------------------------------------
3426       -- 4.3.1  Record Component Association List --
3427       ----------------------------------------------
3428
3429       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3430       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3431       --   | null record
3432
3433       --  There is no explicit node in the tree for a record component
3434       --  association list. Instead the Null_Record_Present flag is set in
3435       --  the parent node for the NULL RECORD case.
3436
3437       ------------------------------------------------------
3438       -- 4.3.1  Record Component Association (also 4.3.3) --
3439       ------------------------------------------------------
3440
3441       --  RECORD_COMPONENT_ASSOCIATION ::=
3442       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3443
3444       --  N_Component_Association
3445       --  Sloc points to first selector name
3446       --  Choices (List1)
3447       --  Loop_Actions (List2-Sem)
3448       --  Expression (Node3)
3449       --  Box_Present (Flag15)
3450       --  Inherited_Discriminant (Flag13)
3451
3452       --  Note: this structure is used for both record component associations
3453       --  and array component associations, since the two cases aren't always
3454       --  separable by the parser. The choices list may represent either a
3455       --  list of selector names in the record aggregate case, or a list of
3456       --  discrete choices in the array aggregate case or an N_Others_Choice
3457       --  node (which appears as a singleton list). Box_Present gives support
3458       --  to Ada 2005 (AI-287).
3459
3460       ----------------------------------
3461       -- 4.3.1  Component Choice List --
3462       ----------------------------------
3463
3464       --  COMPONENT_CHOICE_LIST ::=
3465       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3466       --  | others
3467
3468       --  The entries of a component choice list appear in the Choices list of
3469       --  the associated N_Component_Association, as either selector names, or
3470       --  as an N_Others_Choice node.
3471
3472       --------------------------------
3473       -- 4.3.2  Extension Aggregate --
3474       --------------------------------
3475
3476       --  EXTENSION_AGGREGATE ::=
3477       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3478
3479       --  Note: extension aggregates are not permitted in Ada 83 mode
3480
3481       --  N_Extension_Aggregate
3482       --  Sloc points to left parenthesis
3483       --  Ancestor_Part (Node3)
3484       --  Associated_Node (Node4-Sem)
3485       --  Expressions (List1) (set to No_List if none or null record case)
3486       --  Component_Associations (List2) (set to No_List if none)
3487       --  Null_Record_Present (Flag17)
3488       --  Expansion_Delayed (Flag11-Sem)
3489       --  Has_Self_Reference (Flag13-Sem)
3490       --  plus fields for expression
3491
3492       --------------------------
3493       -- 4.3.2  Ancestor Part --
3494       --------------------------
3495
3496       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3497
3498       ----------------------------
3499       -- 4.3.3  Array Aggregate --
3500       ----------------------------
3501
3502       --  ARRAY_AGGREGATE ::=
3503       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3504
3505       ---------------------------------------
3506       -- 4.3.3  Positional Array Aggregate --
3507       ---------------------------------------
3508
3509       --  POSITIONAL_ARRAY_AGGREGATE ::=
3510       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3511       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3512
3513       --  See Record_Aggregate (4.3.1) for node structure
3514
3515       ----------------------------------
3516       -- 4.3.3  Named Array Aggregate --
3517       ----------------------------------
3518
3519       --  NAMED_ARRAY_AGGREGATE ::=
3520       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3521
3522       --  See Record_Aggregate (4.3.1) for node structure
3523
3524       ----------------------------------------
3525       -- 4.3.3  Array Component Association --
3526       ----------------------------------------
3527
3528       --  ARRAY_COMPONENT_ASSOCIATION ::=
3529       --    DISCRETE_CHOICE_LIST => EXPRESSION
3530
3531       --  See Record_Component_Association (4.3.1) for node structure
3532
3533       --------------------------------------------------
3534       -- 4.4  Expression/Relation/Term/Factor/Primary --
3535       --------------------------------------------------
3536
3537       --  EXPRESSION ::=
3538       --    RELATION {LOGICAL_OPERATOR RELATION}
3539
3540       --  CHOICE_EXPRESSION ::=
3541       --    CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3542
3543       --  CHOICE_RELATION ::=
3544       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3545
3546       --  RELATION ::=
3547       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3548
3549       --  MEMBERSHIP_CHOICE_LIST ::=
3550       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3551
3552       --  MEMBERSHIP_CHOICE ::=
3553       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3554
3555       --  LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3556
3557       --  SIMPLE_EXPRESSION ::=
3558       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3559
3560       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3561
3562       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3563
3564       --  No nodes are generated for any of these constructs. Instead, the
3565       --  node for the operator appears directly. When we refer to an
3566       --  expression in this description, we mean any of the possible
3567       --  constituent components of an expression (e.g. identifier is
3568       --  an example of an expression).
3569
3570       --  Note: the above syntax is that Ada 2012 syntax which restricts
3571       --  choice relations to simple expressions to avoid ambiguities in
3572       --  some contexts with set membership notation. It has been decided
3573       --  that in retrospect, the Ada 95 change allowing general expressions
3574       --  in this context was a mistake, so we have reverted to the above
3575       --  syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3576       --  expressions was there in Ada 83 from the start).
3577
3578       ------------------
3579       -- 4.4  Primary --
3580       ------------------
3581
3582       --  PRIMARY ::=
3583       --    NUMERIC_LITERAL  | null
3584       --  | STRING_LITERAL   | AGGREGATE
3585       --  | NAME             | QUALIFIED_EXPRESSION
3586       --  | ALLOCATOR        | (EXPRESSION)
3587
3588       --  Usually there is no explicit node in the tree for primary. Instead
3589       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3590       --  exceptions. First, there is an explicit node for a null primary.
3591
3592       --  N_Null
3593       --  Sloc points to NULL
3594       --  plus fields for expression
3595
3596       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3597       --  that the parser keep track of which subexpressions are enclosed
3598       --  in parentheses, and how many levels of parentheses are used. This
3599       --  information is required for optimization purposes, and also for
3600       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3601       --  conform with ((((1)))) in the body).
3602
3603       --  The parentheses are recorded by keeping a Paren_Count field in every
3604       --  subexpression node (it is actually present in all nodes, but only
3605       --  used in subexpression nodes). This count records the number of
3606       --  levels of parentheses. If the number of levels in the source exceeds
3607       --  the maximum accommodated by this count, then the count is simply left
3608       --  at the maximum value. This means that there are some pathological
3609       --  cases of failure to detect conformance failures (e.g. an expression
3610       --  with 500 levels of parens will conform with one with 501 levels),
3611       --  but we do not need to lose sleep over this.
3612
3613       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3614       --  type N_Parenthesized_Expression used to accurately record unlimited
3615       --  numbers of levels of parentheses. However, it turned out to be a
3616       --  real nuisance to have to take into account the possible presence of
3617       --  this node during semantic analysis, since basically parentheses have
3618       --  zero relevance to semantic analysis.
3619
3620       --  Note: the level of parentheses always present in things like
3621       --  aggregates does not count, only the parentheses in the primary
3622       --  (EXPRESSION) affect the setting of the Paren_Count field.
3623
3624       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3625       --  treated as though it were Empty) if No_Initialization is set True.
3626
3627       --------------------------------------
3628       -- 4.5  Short Circuit Control Forms --
3629       --------------------------------------
3630
3631       --  EXPRESSION ::=
3632       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3633
3634       --  Gigi restriction: For both these control forms, the operand and
3635       --  result types are always Standard.Boolean. The expander inserts the
3636       --  required conversion operations where needed to ensure this is the
3637       --  case.
3638
3639       --  N_And_Then
3640       --  Sloc points to AND of AND THEN
3641       --  Left_Opnd (Node2)
3642       --  Right_Opnd (Node3)
3643       --  Actions (List1-Sem)
3644       --  plus fields for expression
3645
3646       --  N_Or_Else
3647       --  Sloc points to OR of OR ELSE
3648       --  Left_Opnd (Node2)
3649       --  Right_Opnd (Node3)
3650       --  Actions (List1-Sem)
3651       --  plus fields for expression
3652
3653       --  Note: The Actions field is used to hold actions associated with
3654       --  the right hand operand. These have to be treated specially since
3655       --  they are not unconditionally executed. See Insert_Actions for a
3656       --  more detailed description of how these actions are handled.
3657
3658       ---------------------------
3659       -- 4.5  Membership Tests --
3660       ---------------------------
3661
3662       --  RELATION ::=
3663       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3664
3665       --  MEMBERSHIP_CHOICE_LIST ::=
3666       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3667
3668       --  MEMBERSHIP_CHOICE ::=
3669       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3670
3671       --  Note: although the grammar above allows only a range or a subtype
3672       --  mark, the parser in fact will accept any simple expression in place
3673       --  of a subtype mark. This means that the semantic analyzer must be able
3674       --  to deal with, and diagnose a simple expression other than a name for
3675       --  the right operand. This simplifies error recovery in the parser.
3676
3677       --  The Alternatives field below is present only if there is more
3678       --  than one Membership_Choice present (which is legitimate only in
3679       --  Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3680       --  contains the list of choices. In the tree passed to the back end,
3681       --  Alternatives is always No_List, and Right_Opnd is set (i.e. the
3682       --  expansion circuitry expands out the complex set membership case
3683       --  using simple membership operations).
3684
3685       --  Should we rename Alternatives here to Membership_Choices ???
3686
3687       --  N_In
3688       --  Sloc points to IN
3689       --  Left_Opnd (Node2)
3690       --  Right_Opnd (Node3)
3691       --  Alternatives (List4) (set to No_List if only one set alternative)
3692       --  plus fields for expression
3693
3694       --  N_Not_In
3695       --  Sloc points to NOT of NOT IN
3696       --  Left_Opnd (Node2)
3697       --  Right_Opnd (Node3)
3698       --  Alternatives (List4) (set to No_List if only one set alternative)
3699       --  plus fields for expression
3700
3701       --------------------
3702       -- 4.5  Operators --
3703       --------------------
3704
3705       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3706
3707       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3708
3709       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3710
3711       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3712
3713       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3714
3715       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3716
3717       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3718
3719       --     x #* y
3720       --     x #/ y
3721       --     x #mod y
3722       --     x #rem y
3723
3724       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3725       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3726       --  All handling of smalls for multiplication and division is handled
3727       --  by the front end (mod and rem result only from expansion). Gigi
3728       --  thus never needs to worry about small values (for other operators
3729       --  operating on fixed-point, e.g. addition, the small value does not
3730       --  have any semantic effect anyway, these are always integer operations.
3731
3732       --  Gigi restriction: For all operators taking Boolean operands, the
3733       --  type is always Standard.Boolean. The expander inserts the required
3734       --  conversion operations where needed to ensure this is the case.
3735
3736       --  N_Op_And
3737       --  Sloc points to AND
3738       --  Do_Length_Check (Flag4-Sem)
3739       --  plus fields for binary operator
3740       --  plus fields for expression
3741
3742       --  N_Op_Or
3743       --  Sloc points to OR
3744       --  Do_Length_Check (Flag4-Sem)
3745       --  plus fields for binary operator
3746       --  plus fields for expression
3747
3748       --  N_Op_Xor
3749       --  Sloc points to XOR
3750       --  Do_Length_Check (Flag4-Sem)
3751       --  plus fields for binary operator
3752       --  plus fields for expression
3753
3754       --  N_Op_Eq
3755       --  Sloc points to =
3756       --  plus fields for binary operator
3757       --  plus fields for expression
3758
3759       --  N_Op_Ne
3760       --  Sloc points to /=
3761       --  plus fields for binary operator
3762       --  plus fields for expression
3763
3764       --  N_Op_Lt
3765       --  Sloc points to <
3766       --  plus fields for binary operator
3767       --  plus fields for expression
3768
3769       --  N_Op_Le
3770       --  Sloc points to <=
3771       --  plus fields for binary operator
3772       --  plus fields for expression
3773
3774       --  N_Op_Gt
3775       --  Sloc points to >
3776       --  plus fields for binary operator
3777       --  plus fields for expression
3778
3779       --  N_Op_Ge
3780       --  Sloc points to >=
3781       --  plus fields for binary operator
3782       --  plus fields for expression
3783
3784       --  N_Op_Add
3785       --  Sloc points to + (binary)
3786       --  plus fields for binary operator
3787       --  plus fields for expression
3788
3789       --  N_Op_Subtract
3790       --  Sloc points to - (binary)
3791       --  plus fields for binary operator
3792       --  plus fields for expression
3793
3794       --  N_Op_Concat
3795       --  Sloc points to &
3796       --  Is_Component_Left_Opnd (Flag13-Sem)
3797       --  Is_Component_Right_Opnd (Flag14-Sem)
3798       --  plus fields for binary operator
3799       --  plus fields for expression
3800
3801       --  N_Op_Multiply
3802       --  Sloc points to *
3803       --  Treat_Fixed_As_Integer (Flag14-Sem)
3804       --  Rounded_Result (Flag18-Sem)
3805       --  plus fields for binary operator
3806       --  plus fields for expression
3807
3808       --  N_Op_Divide
3809       --  Sloc points to /
3810       --  Treat_Fixed_As_Integer (Flag14-Sem)
3811       --  Do_Division_Check (Flag13-Sem)
3812       --  Rounded_Result (Flag18-Sem)
3813       --  plus fields for binary operator
3814       --  plus fields for expression
3815
3816       --  N_Op_Mod
3817       --  Sloc points to MOD
3818       --  Treat_Fixed_As_Integer (Flag14-Sem)
3819       --  Do_Division_Check (Flag13-Sem)
3820       --  plus fields for binary operator
3821       --  plus fields for expression
3822
3823       --  N_Op_Rem
3824       --  Sloc points to REM
3825       --  Treat_Fixed_As_Integer (Flag14-Sem)
3826       --  Do_Division_Check (Flag13-Sem)
3827       --  plus fields for binary operator
3828       --  plus fields for expression
3829
3830       --  N_Op_Expon
3831       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3832       --  Sloc points to **
3833       --  plus fields for binary operator
3834       --  plus fields for expression
3835
3836       --  N_Op_Plus
3837       --  Sloc points to + (unary)
3838       --  plus fields for unary operator
3839       --  plus fields for expression
3840
3841       --  N_Op_Minus
3842       --  Sloc points to - (unary)
3843       --  plus fields for unary operator
3844       --  plus fields for expression
3845
3846       --  N_Op_Abs
3847       --  Sloc points to ABS
3848       --  plus fields for unary operator
3849       --  plus fields for expression
3850
3851       --  N_Op_Not
3852       --  Sloc points to NOT
3853       --  plus fields for unary operator
3854       --  plus fields for expression
3855
3856       --  See also shift operators in section B.2
3857
3858       --  Note on fixed-point operations passed to Gigi: For adding operators,
3859       --  the semantics is to treat these simply as integer operations, with
3860       --  the small values being ignored (the bounds are already stored in
3861       --  units of small, so that constraint checking works as usual). For the
3862       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3863       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3864       --  thus treat these nodes in identical manner, ignoring small values.
3865
3866       ---------------------------------
3867       -- 4.5.9 Quantified Expression --
3868       ---------------------------------
3869
3870       --  QUANTIFIED_EXPRESSION ::=
3871       --    for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
3872       --  | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
3873       --
3874       --  QUANTIFIER ::= all | some
3875
3876       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
3877       --  is present at a time, in which case the other one is empty.
3878
3879       --  N_Quantified_Expression
3880       --  Sloc points to FOR
3881       --  Iterator_Specification (Node2)
3882       --  Loop_Parameter_Specification (Node4)
3883       --  Condition (Node1)
3884       --  All_Present (Flag15)
3885
3886       --------------------------
3887       -- 4.6  Type Conversion --
3888       --------------------------
3889
3890       --  TYPE_CONVERSION ::=
3891       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3892
3893       --  In the (NAME) case, the name is stored as the expression
3894
3895       --  Note: the parser never generates a type conversion node, since it
3896       --  looks like an indexed component which is generated by preference.
3897       --  The semantic pass must correct this misidentification.
3898
3899       --  Gigi handles conversions that involve no change in the root type,
3900       --  and also all conversions from integer to floating-point types.
3901       --  Conversions from floating-point to integer are only handled in
3902       --  the case where Float_Truncate flag set. Other conversions from
3903       --  floating-point to integer (involving rounding) and all conversions
3904       --  involving fixed-point types are handled by the expander.
3905
3906       --  Sprint syntax if Float_Truncate set: X^(Y)
3907       --  Sprint syntax if Conversion_OK set X?(Y)
3908       --  Sprint syntax if both flags set X?^(Y)
3909
3910       --  Note: If either the operand or result type is fixed-point, Gigi will
3911       --  only see a type conversion node with Conversion_OK set. The front end
3912       --  takes care of all handling of small's for fixed-point conversions.
3913
3914       --  N_Type_Conversion
3915       --  Sloc points to first token of subtype mark
3916       --  Subtype_Mark (Node4)
3917       --  Expression (Node3)
3918       --  Do_Tag_Check (Flag13-Sem)
3919       --  Do_Length_Check (Flag4-Sem)
3920       --  Do_Overflow_Check (Flag17-Sem)
3921       --  Float_Truncate (Flag11-Sem)
3922       --  Rounded_Result (Flag18-Sem)
3923       --  Conversion_OK (Flag14-Sem)
3924       --  plus fields for expression
3925
3926       --  Note: if a range check is required, then the Do_Range_Check flag
3927       --  is set in the Expression with the check being done against the
3928       --  target type range (after the base type conversion, if any).
3929
3930       -------------------------------
3931       -- 4.7  Qualified Expression --
3932       -------------------------------
3933
3934       --  QUALIFIED_EXPRESSION ::=
3935       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3936
3937       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3938       --  the expression, so the Expression field of this node always points
3939       --  to a parenthesized expression in this case (i.e. Paren_Count will
3940       --  always be non-zero for the referenced expression if it is not an
3941       --  aggregate).
3942
3943       --  N_Qualified_Expression
3944       --  Sloc points to apostrophe
3945       --  Subtype_Mark (Node4)
3946       --  Expression (Node3) expression or aggregate
3947       --  plus fields for expression
3948
3949       --------------------
3950       -- 4.8  Allocator --
3951       --------------------
3952
3953       --  ALLOCATOR ::=
3954       --      new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
3955       --    | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
3956       --
3957       --  SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
3958
3959       --  Sprint syntax (when storage pool present)
3960       --    new xxx (storage_pool = pool)
3961       --  or
3962       --    new (subpool) xxx (storage_pool = pool)
3963
3964       --  N_Allocator
3965       --  Sloc points to NEW
3966       --  Expression (Node3) subtype indication or qualified expression
3967       --  Subpool_Handle_Name (Node4) (set to Empty if not present)
3968       --  Storage_Pool (Node1-Sem)
3969       --  Procedure_To_Call (Node2-Sem)
3970       --  Null_Exclusion_Present (Flag11)
3971       --  No_Initialization (Flag13-Sem)
3972       --  Is_Static_Coextension (Flag14-Sem)
3973       --  Do_Storage_Check (Flag17-Sem)
3974       --  Is_Dynamic_Coextension (Flag18-Sem)
3975       --  plus fields for expression
3976
3977       --  Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3978       --  This flag has a special function in conjunction with the restriction
3979       --  No_Implicit_Heap_Allocations, which will be triggered if this flag
3980       --  is not set. This means that if a source allocator is replaced with
3981       --  a constructed allocator, the Comes_From_Source flag should be copied
3982       --  to the newly created allocator.
3983
3984       ---------------------------------
3985       -- 5.1  Sequence Of Statements --
3986       ---------------------------------
3987
3988       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3989
3990       --  Note: Although the parser will not accept a declaration as a
3991       --  statement, the semantic analyzer may insert declarations (e.g.
3992       --  declarations of implicit types needed for execution of other
3993       --  statements) into a sequence of statements, so the code generator
3994       --  should be prepared to accept a declaration where a statement is
3995       --  expected. Note also that pragmas can appear as statements.
3996
3997       --------------------
3998       -- 5.1  Statement --
3999       --------------------
4000
4001       --  STATEMENT ::=
4002       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4003
4004       --  There is no explicit node in the tree for a statement. Instead, the
4005       --  individual statement appears directly. Labels are treated  as a
4006       --  kind of statement, i.e. they are linked into a statement list at
4007       --  the point they appear, so the labeled statement appears following
4008       --  the label or labels in the statement list.
4009
4010       ---------------------------
4011       -- 5.1  Simple Statement --
4012       ---------------------------
4013
4014       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
4015       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
4016       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
4017       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4018       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
4019       --  | ABORT_STATEMENT         | RAISE_STATEMENT
4020       --  | CODE_STATEMENT
4021
4022       -----------------------------
4023       -- 5.1  Compound Statement --
4024       -----------------------------
4025
4026       --  COMPOUND_STATEMENT ::=
4027       --    IF_STATEMENT              | CASE_STATEMENT
4028       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
4029       --  | EXTENDED_RETURN_STATEMENT
4030       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
4031
4032       -------------------------
4033       -- 5.1  Null Statement --
4034       -------------------------
4035
4036       --  NULL_STATEMENT ::= null;
4037
4038       --  N_Null_Statement
4039       --  Sloc points to NULL
4040
4041       ----------------
4042       -- 5.1  Label --
4043       ----------------
4044
4045       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4046
4047       --  Note that the occurrence of a label is not a defining identifier,
4048       --  but rather a referencing occurrence. The defining occurrence is
4049       --  in the implicit label declaration which occurs in the innermost
4050       --  enclosing block.
4051
4052       --  N_Label
4053       --  Sloc points to <<
4054       --  Identifier (Node1) direct name of statement identifier
4055       --  Exception_Junk (Flag8-Sem)
4056
4057       --  Note: Before Ada 2012, a label is always followed by a statement,
4058       --  and this is true in the tree even in Ada 2012 mode (the parser
4059       --  inserts a null statement marked with Comes_From_Source False).
4060
4061       -------------------------------
4062       -- 5.1  Statement Identifier --
4063       -------------------------------
4064
4065       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
4066
4067       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4068       --  (not an OPERATOR_SYMBOL)
4069
4070       -------------------------------
4071       -- 5.2  Assignment Statement --
4072       -------------------------------
4073
4074       --  ASSIGNMENT_STATEMENT ::=
4075       --    variable_NAME := EXPRESSION;
4076
4077       --  N_Assignment_Statement
4078       --  Sloc points to :=
4079       --  Name (Node2)
4080       --  Expression (Node3)
4081       --  Do_Tag_Check (Flag13-Sem)
4082       --  Do_Length_Check (Flag4-Sem)
4083       --  Forwards_OK (Flag5-Sem)
4084       --  Backwards_OK (Flag6-Sem)
4085       --  No_Ctrl_Actions (Flag7-Sem)
4086       --  Componentwise_Assignment (Flag14-Sem)
4087       --  Suppress_Assignment_Checks (Flag18-Sem)
4088
4089       --  Note: if a range check is required, then the Do_Range_Check flag
4090       --  is set in the Expression (right hand side), with the check being
4091       --  done against the type of the Name (left hand side).
4092
4093       --  Note: the back end places some restrictions on the form of the
4094       --  Expression field. If the object being assigned to is Atomic, then
4095       --  the Expression may not have the form of an aggregate (since this
4096       --  might cause the back end to generate separate assignments). In this
4097       --  case the front end must generate an extra temporary and initialize
4098       --  this temporary as required (the temporary itself is not atomic).
4099
4100       -----------------------
4101       -- 5.3  If Statement --
4102       -----------------------
4103
4104       --  IF_STATEMENT ::=
4105       --    if CONDITION then
4106       --      SEQUENCE_OF_STATEMENTS
4107       --    {elsif CONDITION then
4108       --      SEQUENCE_OF_STATEMENTS}
4109       --    [else
4110       --      SEQUENCE_OF_STATEMENTS]
4111       --    end if;
4112
4113       --  Gigi restriction: This expander ensures that the type of the
4114       --  Condition fields is always Standard.Boolean, even if the type
4115       --  in the source is some non-standard boolean type.
4116
4117       --  N_If_Statement
4118       --  Sloc points to IF
4119       --  Condition (Node1)
4120       --  Then_Statements (List2)
4121       --  Elsif_Parts (List3) (set to No_List if none present)
4122       --  Else_Statements (List4) (set to No_List if no else part present)
4123       --  End_Span (Uint5) (set to No_Uint if expander generated)
4124
4125       --  N_Elsif_Part
4126       --  Sloc points to ELSIF
4127       --  Condition (Node1)
4128       --  Then_Statements (List2)
4129       --  Condition_Actions (List3-Sem)
4130
4131       --------------------
4132       -- 5.3  Condition --
4133       --------------------
4134
4135       --  CONDITION ::= boolean_EXPRESSION
4136
4137       -------------------------
4138       -- 5.4  Case Statement --
4139       -------------------------
4140
4141       --  CASE_STATEMENT ::=
4142       --    case EXPRESSION is
4143       --      CASE_STATEMENT_ALTERNATIVE
4144       --      {CASE_STATEMENT_ALTERNATIVE}
4145       --    end case;
4146
4147       --  Note: the Alternatives can contain pragmas. These only occur at
4148       --  the start of the list, since any pragmas occurring after the first
4149       --  alternative are absorbed into the corresponding statement sequence.
4150
4151       --  N_Case_Statement
4152       --  Sloc points to CASE
4153       --  Expression (Node3)
4154       --  Alternatives (List4)
4155       --  End_Span (Uint5) (set to No_Uint if expander generated)
4156
4157       --  Note: Before Ada 2012, a pragma in a statement sequence is always
4158       --  followed by a statement, and this is true in the tree even in Ada
4159       --  2012 mode (the parser inserts a null statement marked with the flag
4160       --  Comes_From_Source False).
4161
4162       -------------------------------------
4163       -- 5.4  Case Statement Alternative --
4164       -------------------------------------
4165
4166       --  CASE_STATEMENT_ALTERNATIVE ::=
4167       --    when DISCRETE_CHOICE_LIST =>
4168       --      SEQUENCE_OF_STATEMENTS
4169
4170       --  N_Case_Statement_Alternative
4171       --  Sloc points to WHEN
4172       --  Discrete_Choices (List4)
4173       --  Statements (List3)
4174
4175       -------------------------
4176       -- 5.5  Loop Statement --
4177       -------------------------
4178
4179       --  LOOP_STATEMENT ::=
4180       --    [loop_STATEMENT_IDENTIFIER :]
4181       --      [ITERATION_SCHEME] loop
4182       --        SEQUENCE_OF_STATEMENTS
4183       --      end loop [loop_IDENTIFIER];
4184
4185       --  Note: The occurrence of a loop label is not a defining identifier
4186       --  but rather a referencing occurrence. The defining occurrence is in
4187       --  the implicit label declaration which occurs in the innermost
4188       --  enclosing block.
4189
4190       --  Note: there is always a loop statement identifier present in
4191       --  the tree, even if none was given in the source. In the case where
4192       --  no loop identifier is given in the source, the parser creates
4193       --  a name of the form _Loop_n, where n is a decimal integer (the
4194       --  two underlines ensure that the loop names created in this manner
4195       --  do not conflict with any user defined identifiers), and the flag
4196       --  Has_Created_Identifier is set to True. The only exception to the
4197       --  rule that all loop statement nodes have identifiers occurs for
4198       --  loops constructed by the expander, and the semantic analyzer will
4199       --  create and supply dummy loop identifiers in these cases.
4200
4201       --  N_Loop_Statement
4202       --  Sloc points to LOOP
4203       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
4204       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4205       --  Statements (List3)
4206       --  End_Label (Node4)
4207       --  Has_Created_Identifier (Flag15)
4208       --  Is_Null_Loop (Flag16)
4209       --  Suppress_Loop_Warnings (Flag17)
4210
4211       --  Note: the parser fills in the Identifier field if there is an
4212       --  explicit loop identifier. Otherwise the parser leaves this field
4213       --  set to Empty, and then the semantic processing for a loop statement
4214       --  creates an identifier, setting the Has_Created_Identifier flag to
4215       --  True. So after semantic analysis, the Identifier is always set,
4216       --  referencing an identifier whose entity has an Ekind of E_Loop.
4217
4218       ---------------------------
4219       -- 5.5  Iteration Scheme --
4220       ---------------------------
4221
4222       --  ITERATION_SCHEME ::=
4223       --    while CONDITION
4224       --  | for LOOP_PARAMETER_SPECIFICATION
4225       --  | for ITERATOR_SPECIFICATION
4226
4227       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
4228       --  is present at a time, in which case the other one is empty. Both are
4229       --  empty in the case of a WHILE loop.
4230
4231       --  Gigi restriction: This expander ensures that the type of the
4232       --  Condition field is always Standard.Boolean, even if the type
4233       --  in the source is some non-standard boolean type.
4234
4235       --  N_Iteration_Scheme
4236       --  Sloc points to WHILE or FOR
4237       --  Condition (Node1) (set to Empty if FOR case)
4238       --  Condition_Actions (List3-Sem)
4239       --  Iterator_Specification (Node2) (set to Empty if WHILE case)
4240       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4241
4242       ---------------------------------------
4243       -- 5.5  Loop Parameter Specification --
4244       ---------------------------------------
4245
4246       --  LOOP_PARAMETER_SPECIFICATION ::=
4247       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4248
4249       --  N_Loop_Parameter_Specification
4250       --  Sloc points to first identifier
4251       --  Defining_Identifier (Node1)
4252       --  Reverse_Present (Flag15)
4253       --  Discrete_Subtype_Definition (Node4)
4254
4255       -----------------------------------
4256       -- 5.5.1  Iterator Specification --
4257       -----------------------------------
4258
4259       --  ITERATOR_SPECIFICATION ::=
4260       --    DEFINING_IDENTIFIER in [reverse] NAME
4261       --  | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4262
4263       --  N_Iterator_Specification
4264       --  Sloc points to defining identifier
4265       --  Defining_Identifier (Node1)
4266       --  Name (Node2)
4267       --  Reverse_Present (Flag15)
4268       --  Of_Present (Flag16)
4269       --  Subtype_Indication (Node5)
4270
4271       --  Note: The Of_Present flag distinguishes the two forms
4272
4273       --------------------------
4274       -- 5.6  Block Statement --
4275       --------------------------
4276
4277       --  BLOCK_STATEMENT ::=
4278       --    [block_STATEMENT_IDENTIFIER:]
4279       --      [declare
4280       --        DECLARATIVE_PART]
4281       --      begin
4282       --        HANDLED_SEQUENCE_OF_STATEMENTS
4283       --      end [block_IDENTIFIER];
4284
4285       --  Note that the occurrence of a block identifier is not a defining
4286       --  identifier, but rather a referencing occurrence. The defining
4287       --  occurrence is an E_Block entity declared by the implicit label
4288       --  declaration which occurs in the innermost enclosing block statement
4289       --  or body; the block identifier denotes that E_Block.
4290
4291       --  For block statements that come from source code, there is always a
4292       --  block statement identifier present in the tree, denoting an
4293       --  E_Block. In the case where no block identifier is given in the
4294       --  source, the parser creates a name of the form B_n, where n is a
4295       --  decimal integer, and the flag Has_Created_Identifier is set to
4296       --  True. Blocks constructed by the expander usually have no identifier,
4297       --  and no corresponding entity.
4298
4299       --  Note: the block statement created for an extended return statement
4300       --  has an entity, and this entity is an E_Return_Statement, rather than
4301       --  the usual E_Block.
4302
4303       --  Note: Exception_Junk is set for the wrapping blocks created during
4304       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4305
4306       --  N_Block_Statement
4307       --  Sloc points to DECLARE or BEGIN
4308       --  Identifier (Node1) block direct name (set to Empty if not present)
4309       --  Declarations (List2) (set to No_List if no DECLARE part)
4310       --  Handled_Statement_Sequence (Node4)
4311       --  Is_Task_Master (Flag5-Sem)
4312       --  Activation_Chain_Entity (Node3-Sem)
4313       --  Has_Created_Identifier (Flag15)
4314       --  Is_Task_Allocation_Block (Flag6)
4315       --  Is_Asynchronous_Call_Block (Flag7)
4316       --  Exception_Junk (Flag8-Sem)
4317
4318       -------------------------
4319       -- 5.7  Exit Statement --
4320       -------------------------
4321
4322       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4323
4324       --  Gigi restriction: This expander ensures that the type of the
4325       --  Condition field is always Standard.Boolean, even if the type
4326       --  in the source is some non-standard boolean type.
4327
4328       --  N_Exit_Statement
4329       --  Sloc points to EXIT
4330       --  Name (Node2) (set to Empty if no loop name present)
4331       --  Condition (Node1) (set to Empty if no WHEN part present)
4332       --  Next_Exit_Statement (Node3-Sem): Next exit on chain
4333
4334       -------------------------
4335       -- 5.9  Goto Statement --
4336       -------------------------
4337
4338       --  GOTO_STATEMENT ::= goto label_NAME;
4339
4340       --  N_Goto_Statement
4341       --  Sloc points to GOTO
4342       --  Name (Node2)
4343       --  Exception_Junk (Flag8-Sem)
4344
4345       ---------------------------------
4346       -- 6.1  Subprogram Declaration --
4347       ---------------------------------
4348
4349       --  SUBPROGRAM_DECLARATION ::=
4350       --    SUBPROGRAM_SPECIFICATION
4351       --      [ASPECT_SPECIFICATIONS];
4352
4353       --  N_Subprogram_Declaration
4354       --  Sloc points to FUNCTION or PROCEDURE
4355       --  Specification (Node1)
4356       --  Body_To_Inline (Node3-Sem)
4357       --  Corresponding_Body (Node5-Sem)
4358       --  Parent_Spec (Node4-Sem)
4359
4360       ------------------------------------------
4361       -- 6.1  Abstract Subprogram Declaration --
4362       ------------------------------------------
4363
4364       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4365       --    SUBPROGRAM_SPECIFICATION is abstract
4366       --      [ASPECT_SPECIFICATIONS];
4367
4368       --  N_Abstract_Subprogram_Declaration
4369       --  Sloc points to ABSTRACT
4370       --  Specification (Node1)
4371
4372       -----------------------------------
4373       -- 6.1  Subprogram Specification --
4374       -----------------------------------
4375
4376       --  SUBPROGRAM_SPECIFICATION ::=
4377       --    [[not] overriding]
4378       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4379       --  | [[not] overriding]
4380       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4381
4382       --  Note: there are no separate nodes for the profiles, instead the
4383       --  information appears directly in the following nodes.
4384
4385       --  N_Function_Specification
4386       --  Sloc points to FUNCTION
4387       --  Defining_Unit_Name (Node1) (the designator)
4388       --  Elaboration_Boolean (Node2-Sem)
4389       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4390       --  Null_Exclusion_Present (Flag11)
4391       --  Result_Definition (Node4) for result subtype
4392       --  Generic_Parent (Node5-Sem)
4393       --  Must_Override (Flag14) set if overriding indicator present
4394       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4395
4396       --  N_Procedure_Specification
4397       --  Sloc points to PROCEDURE
4398       --  Defining_Unit_Name (Node1)
4399       --  Elaboration_Boolean (Node2-Sem)
4400       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4401       --  Generic_Parent (Node5-Sem)
4402       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4403       --  Must_Override (Flag14) set if overriding indicator present
4404       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4405
4406       --  Note: overriding indicator is an Ada 2005 feature
4407
4408       ---------------------
4409       -- 6.1  Designator --
4410       ---------------------
4411
4412       --  DESIGNATOR ::=
4413       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4414
4415       --  Designators that are simply identifiers or operator symbols appear
4416       --  directly in the tree in this form. The following node is used only
4417       --  in the case where the designator has a parent unit name component.
4418
4419       --  N_Designator
4420       --  Sloc points to period
4421       --  Name (Node2) holds the parent unit name. Note that this is always
4422       --   non-Empty, since this node is only used for the case where a
4423       --   parent library unit package name is present.
4424       --  Identifier (Node1)
4425
4426       --  Note that the identifier can also be an operator symbol here
4427
4428       ------------------------------
4429       -- 6.1  Defining Designator --
4430       ------------------------------
4431
4432       --  DEFINING_DESIGNATOR ::=
4433       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4434
4435       -------------------------------------
4436       -- 6.1  Defining Program Unit Name --
4437       -------------------------------------
4438
4439       --  DEFINING_PROGRAM_UNIT_NAME ::=
4440       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4441
4442       --  The parent unit name is present only in the case of a child unit
4443       --  name (permissible only for Ada 95 for a library level unit, i.e.
4444       --  a unit at scope level one). If no such name is present, the defining
4445       --  program unit name is represented simply as the defining identifier.
4446       --  In the child unit case, the following node is used to represent the
4447       --  child unit name.
4448
4449       --  N_Defining_Program_Unit_Name
4450       --  Sloc points to period
4451       --  Name (Node2) holds the parent unit name. Note that this is always
4452       --   non-Empty, since this node is only used for the case where a
4453       --   parent unit name is present.
4454       --  Defining_Identifier (Node1)
4455
4456       --------------------------
4457       -- 6.1  Operator Symbol --
4458       --------------------------
4459
4460       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4461
4462       --  Note: the fields of the N_Operator_Symbol node are laid out to
4463       --  match the corresponding fields of an N_Character_Literal node. This
4464       --  allows easy conversion of the operator symbol node into a character
4465       --  literal node in the case where a string constant of the form of an
4466       --  operator symbol is scanned out as such, but turns out semantically
4467       --  to be a string literal that is not an operator. For details see
4468       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4469
4470       --  N_Operator_Symbol
4471       --  Sloc points to literal
4472       --  Chars (Name1) contains the Name_Id for the operator symbol
4473       --  Strval (Str3) Id of string value. This is used if the operator
4474       --   symbol turns out to be a normal string after all.
4475       --  Entity (Node4-Sem)
4476       --  Associated_Node (Node4-Sem)
4477       --  Has_Private_View (Flag11-Sem) set in generic units.
4478       --  Etype (Node5-Sem)
4479
4480       --  Note: the Strval field may be set to No_String for generated
4481       --  operator symbols that are known not to be string literals
4482       --  semantically.
4483
4484       -----------------------------------
4485       -- 6.1  Defining Operator Symbol --
4486       -----------------------------------
4487
4488       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4489
4490       --  A defining operator symbol is an entity, which has additional
4491       --  fields depending on the setting of the Ekind field. These
4492       --  additional fields are defined (and access subprograms declared)
4493       --  in package Einfo.
4494
4495       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4496       --  are deliberately layed out to match the layout of fields in an
4497       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4498       --  an operator symbol node into a defining operator symbol node.
4499       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4500       --  for further details.
4501
4502       --  N_Defining_Operator_Symbol
4503       --  Sloc points to literal
4504       --  Chars (Name1) contains the Name_Id for the operator symbol
4505       --  Next_Entity (Node2-Sem)
4506       --  Scope (Node3-Sem)
4507       --  Etype (Node5-Sem)
4508
4509       ----------------------------
4510       -- 6.1  Parameter Profile --
4511       ----------------------------
4512
4513       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4514
4515       ---------------------------------------
4516       -- 6.1  Parameter and Result Profile --
4517       ---------------------------------------
4518
4519       --  PARAMETER_AND_RESULT_PROFILE ::=
4520       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4521       --  | [FORMAL_PART] return ACCESS_DEFINITION
4522
4523       --  There is no explicit node in the tree for a parameter and result
4524       --  profile. Instead the information appears directly in the parent.
4525
4526       ----------------------
4527       -- 6.1  Formal Part --
4528       ----------------------
4529
4530       --  FORMAL_PART ::=
4531       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4532
4533       ----------------------------------
4534       -- 6.1  Parameter Specification --
4535       ----------------------------------
4536
4537       --  PARAMETER_SPECIFICATION ::=
4538       --    DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4539       --      SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4540       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4541       --      [:= DEFAULT_EXPRESSION]
4542
4543       --  Although the syntax allows multiple identifiers in the list, the
4544       --  semantics is as though successive specifications were given with
4545       --  identical type definition and expression components. To simplify
4546       --  semantic processing, the parser represents a multiple declaration
4547       --  case as a sequence of single Specifications, using the More_Ids and
4548       --  Prev_Ids flags to preserve the original source form as described
4549       --  in the section on "Handling of Defining Identifier Lists".
4550
4551       --  ALIASED can only be present in Ada 2012 mode
4552
4553       --  N_Parameter_Specification
4554       --  Sloc points to first identifier
4555       --  Defining_Identifier (Node1)
4556       --  Aliased_Present (Flag4)
4557       --  In_Present (Flag15)
4558       --  Out_Present (Flag17)
4559       --  Null_Exclusion_Present (Flag11)
4560       --  Parameter_Type (Node2) subtype mark or access definition
4561       --  Expression (Node3) (set to Empty if no default expression present)
4562       --  Do_Accessibility_Check (Flag13-Sem)
4563       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4564       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4565       --  Default_Expression (Node5-Sem)
4566
4567       ---------------
4568       -- 6.1  Mode --
4569       ---------------
4570
4571       --  MODE ::= [in] | in out | out
4572
4573       --  There is no explicit node in the tree for the Mode. Instead the
4574       --  In_Present and Out_Present flags are set in the parent node to
4575       --  record the presence of keywords specifying the mode.
4576
4577       --------------------------
4578       -- 6.3  Subprogram Body --
4579       --------------------------
4580
4581       --  SUBPROGRAM_BODY ::=
4582       --    SUBPROGRAM_SPECIFICATION is
4583       --      DECLARATIVE_PART
4584       --    begin
4585       --      HANDLED_SEQUENCE_OF_STATEMENTS
4586       --    end [DESIGNATOR];
4587
4588       --  N_Subprogram_Body
4589       --  Sloc points to FUNCTION or PROCEDURE
4590       --  Specification (Node1)
4591       --  Declarations (List2)
4592       --  Handled_Statement_Sequence (Node4)
4593       --  Activation_Chain_Entity (Node3-Sem)
4594       --  Corresponding_Spec (Node5-Sem)
4595       --  Acts_As_Spec (Flag4-Sem)
4596       --  Bad_Is_Detected (Flag15) used only by parser
4597       --  Do_Storage_Check (Flag17-Sem)
4598       --  Has_Pragma_Priority (Flag6-Sem)
4599       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4600       --  Is_Entry_Barrier_Function (Flag8-Sem)
4601       --  Is_Task_Master (Flag5-Sem)
4602       --  Was_Originally_Stub (Flag13-Sem)
4603       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4604       --  Has_Pragma_CPU (Flag14-Sem)
4605
4606       -------------------------
4607       -- Expression Function --
4608       -------------------------
4609
4610       --  This is an Ada 2012 extension, we put it here for now, to be labeled
4611       --  and put in its proper section when we know exactly where that is!
4612
4613       --  EXPRESSION_FUNCTION ::=
4614       --    FUNCTION SPECIFICATION IS (EXPRESSION);
4615
4616       --  N_Expression_Function
4617       --  Sloc points to FUNCTION
4618       --  Specification (Node1)
4619       --  Expression (Node3)
4620       --  Corresponding_Spec (Node5-Sem)
4621
4622       -----------------------------------
4623       -- 6.4  Procedure Call Statement --
4624       -----------------------------------
4625
4626       --  PROCEDURE_CALL_STATEMENT ::=
4627       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4628
4629       --  Note: the reason that a procedure call has expression fields is
4630       --  that it semantically resembles an expression, e.g. overloading is
4631       --  allowed and a type is concocted for semantic processing purposes.
4632       --  Certain of these fields, such as Parens are not relevant, but it
4633       --  is easier to just supply all of them together!
4634
4635       --  N_Procedure_Call_Statement
4636       --  Sloc points to first token of name or prefix
4637       --  Name (Node2) stores name or prefix
4638       --  Parameter_Associations (List3) (set to No_List if no
4639       --   actual parameter part)
4640       --  First_Named_Actual (Node4-Sem)
4641       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4642       --  Do_Tag_Check (Flag13-Sem)
4643       --  No_Elaboration_Check (Flag14-Sem)
4644       --  Parameter_List_Truncated (Flag17-Sem)
4645       --  ABE_Is_Certain (Flag18-Sem)
4646       --  plus fields for expression
4647
4648       --  If any IN parameter requires a range check, then the corresponding
4649       --  argument expression has the Do_Range_Check flag set, and the range
4650       --  check is done against the formal type. Note that this argument
4651       --  expression may appear directly in the Parameter_Associations list,
4652       --  or may be a descendent of an N_Parameter_Association node that
4653       --  appears in this list.
4654
4655       ------------------------
4656       -- 6.4  Function Call --
4657       ------------------------
4658
4659       --  FUNCTION_CALL ::=
4660       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4661
4662       --  Note: the parser may generate an indexed component node or simply
4663       --  a name node instead of a function call node. The semantic pass must
4664       --  correct this misidentification.
4665
4666       --  N_Function_Call
4667       --  Sloc points to first token of name or prefix
4668       --  Name (Node2) stores name or prefix
4669       --  Parameter_Associations (List3) (set to No_List if no
4670       --   actual parameter part)
4671       --  First_Named_Actual (Node4-Sem)
4672       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4673       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4674       --  Do_Tag_Check (Flag13-Sem)
4675       --  No_Elaboration_Check (Flag14-Sem)
4676       --  Parameter_List_Truncated (Flag17-Sem)
4677       --  ABE_Is_Certain (Flag18-Sem)
4678       --  plus fields for expression
4679
4680       --------------------------------
4681       -- 6.4  Actual Parameter Part --
4682       --------------------------------
4683
4684       --  ACTUAL_PARAMETER_PART ::=
4685       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4686
4687       --------------------------------
4688       -- 6.4  Parameter Association --
4689       --------------------------------
4690
4691       --  PARAMETER_ASSOCIATION ::=
4692       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4693
4694       --  Note: the N_Parameter_Association node is built only if a formal
4695       --  parameter selector name is present, otherwise the parameter
4696       --  association appears in the tree simply as the node for the
4697       --  explicit actual parameter.
4698
4699       --  N_Parameter_Association
4700       --  Sloc points to formal parameter
4701       --  Selector_Name (Node2) (always non-Empty)
4702       --  Explicit_Actual_Parameter (Node3)
4703       --  Next_Named_Actual (Node4-Sem)
4704       --  Is_Accessibility_Actual (Flag13-Sem)
4705
4706       ---------------------------
4707       -- 6.4  Actual Parameter --
4708       ---------------------------
4709
4710       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4711
4712       ---------------------------
4713       -- 6.5  Return Statement --
4714       ---------------------------
4715
4716       --  RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4717
4718       --  In Ada 2005, we have:
4719
4720       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4721
4722       --  EXTENDED_RETURN_STATEMENT ::=
4723       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4724       --                                           [:= EXPRESSION] [do
4725       --      HANDLED_SEQUENCE_OF_STATEMENTS
4726       --    end return];
4727
4728       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4729
4730       --  So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4731       --  "return statement" is defined in 6.5 to mean a
4732       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4733
4734       --  N_Return_Statement
4735       --  Sloc points to RETURN
4736       --  Return_Statement_Entity (Node5-Sem)
4737       --  Expression (Node3) (set to Empty if no expression present)
4738       --  Storage_Pool (Node1-Sem)
4739       --  Procedure_To_Call (Node2-Sem)
4740       --  Do_Tag_Check (Flag13-Sem)
4741       --  By_Ref (Flag5-Sem)
4742       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4743
4744       --  N_Return_Statement represents a simple_return_statement, and is
4745       --  renamed to be N_Simple_Return_Statement below. Clients should refer
4746       --  to N_Simple_Return_Statement. We retain N_Return_Statement because
4747       --  that's how gigi knows it. See also renaming of Make_Return_Statement
4748       --  as Make_Simple_Return_Statement in Sem_Util.
4749
4750       --  Note: Return_Statement_Entity points to an E_Return_Statement
4751
4752       --  If a range check is required, then Do_Range_Check is set on the
4753       --  Expression. The check is against the return subtype of the function.
4754
4755       --  N_Extended_Return_Statement
4756       --  Sloc points to RETURN
4757       --  Return_Statement_Entity (Node5-Sem)
4758       --  Return_Object_Declarations (List3)
4759       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
4760       --  Storage_Pool (Node1-Sem)
4761       --  Procedure_To_Call (Node2-Sem)
4762       --  Do_Tag_Check (Flag13-Sem)
4763       --  By_Ref (Flag5-Sem)
4764
4765       --  Note: Return_Statement_Entity points to an E_Return_Statement.
4766
4767       --  Note that Return_Object_Declarations is a list containing the
4768       --  N_Object_Declaration -- see comment on this field above.
4769
4770       --  The declared object will have Is_Return_Object = True.
4771
4772       --  There is no such syntactic category as return_object_declaration
4773       --  in the RM. Return_Object_Declarations represents this portion of
4774       --  the syntax for EXTENDED_RETURN_STATEMENT:
4775       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4776       --                                      [:= EXPRESSION]
4777
4778       --  There are two entities associated with an extended_return_statement:
4779       --  the Return_Statement_Entity represents the statement itself, and the
4780       --  Defining_Identifier of the Object_Declaration in
4781       --  Return_Object_Declarations represents the object being
4782       --  returned. N_Simple_Return_Statement has only the former.
4783
4784       ------------------------------
4785       -- 7.1  Package Declaration --
4786       ------------------------------
4787
4788       --  PACKAGE_DECLARATION ::=
4789       --    PACKAGE_SPECIFICATION;
4790
4791       --  Note: the activation chain entity for a package spec is used for
4792       --  all tasks declared in the package spec, or in the package body.
4793
4794       --  N_Package_Declaration
4795       --  Sloc points to PACKAGE
4796       --  Specification (Node1)
4797       --  Corresponding_Body (Node5-Sem)
4798       --  Parent_Spec (Node4-Sem)
4799       --  Activation_Chain_Entity (Node3-Sem)
4800
4801       --------------------------------
4802       -- 7.1  Package Specification --
4803       --------------------------------
4804
4805       --  PACKAGE_SPECIFICATION ::=
4806       --    package DEFINING_PROGRAM_UNIT_NAME
4807       --      [ASPECT_SPECIFICATIONS]
4808       --    is
4809       --      {BASIC_DECLARATIVE_ITEM}
4810       --    [private
4811       --      {BASIC_DECLARATIVE_ITEM}]
4812       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4813
4814       --  N_Package_Specification
4815       --  Sloc points to PACKAGE
4816       --  Defining_Unit_Name (Node1)
4817       --  Visible_Declarations (List2)
4818       --  Private_Declarations (List3) (set to No_List if no private
4819       --   part present)
4820       --  End_Label (Node4)
4821       --  Generic_Parent (Node5-Sem)
4822       --  Limited_View_Installed (Flag18-Sem)
4823
4824       -----------------------
4825       -- 7.1  Package Body --
4826       -----------------------
4827
4828       --  PACKAGE_BODY ::=
4829       --    package body DEFINING_PROGRAM_UNIT_NAME
4830       --      [ASPECT_SPECIFICATIONS]
4831       --    is
4832       --      DECLARATIVE_PART
4833       --    [begin
4834       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4835       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4836
4837       --  N_Package_Body
4838       --  Sloc points to PACKAGE
4839       --  Defining_Unit_Name (Node1)
4840       --  Declarations (List2)
4841       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4842       --  Corresponding_Spec (Node5-Sem)
4843       --  Was_Originally_Stub (Flag13-Sem)
4844
4845       --  Note: if a source level package does not contain a handled sequence
4846       --  of statements, then the parser supplies a dummy one with a null
4847       --  sequence of statements. Comes_From_Source will be False in this
4848       --  constructed sequence. The reason we need this is for the End_Label
4849       --  field in the HSS.
4850
4851       -----------------------------------
4852       -- 7.4  Private Type Declaration --
4853       -----------------------------------
4854
4855       --  PRIVATE_TYPE_DECLARATION ::=
4856       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4857       --      is [[abstract] tagged] [limited] private;
4858
4859       --  Note: TAGGED is not permitted in Ada 83 mode
4860
4861       --  N_Private_Type_Declaration
4862       --  Sloc points to TYPE
4863       --  Defining_Identifier (Node1)
4864       --  Discriminant_Specifications (List4) (set to No_List if no
4865       --   discriminant part)
4866       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4867       --  Abstract_Present (Flag4)
4868       --  Tagged_Present (Flag15)
4869       --  Limited_Present (Flag17)
4870
4871       ----------------------------------------
4872       -- 7.4  Private Extension Declaration --
4873       ----------------------------------------
4874
4875       --  PRIVATE_EXTENSION_DECLARATION ::=
4876       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4877       --      [abstract] [limited | synchronized]
4878       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4879       --           with private;
4880
4881       --  Note: LIMITED, and private extension declarations are not allowed
4882       --        in Ada 83 mode.
4883
4884       --  N_Private_Extension_Declaration
4885       --  Sloc points to TYPE
4886       --  Defining_Identifier (Node1)
4887       --  Discriminant_Specifications (List4) (set to No_List if no
4888       --   discriminant part)
4889       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4890       --  Abstract_Present (Flag4)
4891       --  Limited_Present (Flag17)
4892       --  Synchronized_Present (Flag7)
4893       --  Subtype_Indication (Node5)
4894       --  Interface_List (List2) (set to No_List if none)
4895
4896       ---------------------
4897       -- 8.4  Use Clause --
4898       ---------------------
4899
4900       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4901
4902       -----------------------------
4903       -- 8.4  Use Package Clause --
4904       -----------------------------
4905
4906       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4907
4908       --  N_Use_Package_Clause
4909       --  Sloc points to USE
4910       --  Names (List2)
4911       --  Next_Use_Clause (Node3-Sem)
4912       --  Hidden_By_Use_Clause (Elist4-Sem)
4913
4914       --------------------------
4915       -- 8.4  Use Type Clause --
4916       --------------------------
4917
4918       --  USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
4919
4920       --  Note: use type clause is not permitted in Ada 83 mode
4921
4922       --  Note: the ALL keyword can appear only in Ada 2012 mode
4923
4924       --  N_Use_Type_Clause
4925       --  Sloc points to USE
4926       --  Subtype_Marks (List2)
4927       --  Next_Use_Clause (Node3-Sem)
4928       --  Hidden_By_Use_Clause (Elist4-Sem)
4929       --  Used_Operations (Elist5-Sem)
4930       --  All_Present (Flag15)
4931
4932       -------------------------------
4933       -- 8.5  Renaming Declaration --
4934       -------------------------------
4935
4936       --  RENAMING_DECLARATION ::=
4937       --    OBJECT_RENAMING_DECLARATION
4938       --  | EXCEPTION_RENAMING_DECLARATION
4939       --  | PACKAGE_RENAMING_DECLARATION
4940       --  | SUBPROGRAM_RENAMING_DECLARATION
4941       --  | GENERIC_RENAMING_DECLARATION
4942
4943       --------------------------------------
4944       -- 8.5  Object Renaming Declaration --
4945       --------------------------------------
4946
4947       --  OBJECT_RENAMING_DECLARATION ::=
4948       --    DEFINING_IDENTIFIER :
4949       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4950       --  | DEFINING_IDENTIFIER :
4951       --      ACCESS_DEFINITION renames object_NAME;
4952
4953       --  Note: Access_Definition is an optional field that gives support to
4954       --  Ada 2005 (AI-230). The parser generates nodes that have either the
4955       --  Subtype_Indication field or else the Access_Definition field.
4956
4957       --  N_Object_Renaming_Declaration
4958       --  Sloc points to first identifier
4959       --  Defining_Identifier (Node1)
4960       --  Null_Exclusion_Present (Flag11) (set to False if not present)
4961       --  Subtype_Mark (Node4) (set to Empty if not present)
4962       --  Access_Definition (Node3) (set to Empty if not present)
4963       --  Name (Node2)
4964       --  Corresponding_Generic_Association (Node5-Sem)
4965
4966       -----------------------------------------
4967       -- 8.5  Exception Renaming Declaration --
4968       -----------------------------------------
4969
4970       --  EXCEPTION_RENAMING_DECLARATION ::=
4971       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4972
4973       --  N_Exception_Renaming_Declaration
4974       --  Sloc points to first identifier
4975       --  Defining_Identifier (Node1)
4976       --  Name (Node2)
4977
4978       ---------------------------------------
4979       -- 8.5  Package Renaming Declaration --
4980       ---------------------------------------
4981
4982       --  PACKAGE_RENAMING_DECLARATION ::=
4983       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4984
4985       --  N_Package_Renaming_Declaration
4986       --  Sloc points to PACKAGE
4987       --  Defining_Unit_Name (Node1)
4988       --  Name (Node2)
4989       --  Parent_Spec (Node4-Sem)
4990
4991       ------------------------------------------
4992       -- 8.5  Subprogram Renaming Declaration --
4993       ------------------------------------------
4994
4995       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4996       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4997
4998       --  N_Subprogram_Renaming_Declaration
4999       --  Sloc points to RENAMES
5000       --  Specification (Node1)
5001       --  Name (Node2)
5002       --  Parent_Spec (Node4-Sem)
5003       --  Corresponding_Spec (Node5-Sem)
5004       --  Corresponding_Formal_Spec (Node3-Sem)
5005       --  From_Default (Flag6-Sem)
5006
5007       -----------------------------------------
5008       -- 8.5.5  Generic Renaming Declaration --
5009       -----------------------------------------
5010
5011       --  GENERIC_RENAMING_DECLARATION ::=
5012       --    generic package DEFINING_PROGRAM_UNIT_NAME
5013       --      renames generic_package_NAME
5014       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
5015       --      renames generic_procedure_NAME
5016       --  | generic function DEFINING_PROGRAM_UNIT_NAME
5017       --      renames generic_function_NAME
5018
5019       --  N_Generic_Package_Renaming_Declaration
5020       --  Sloc points to GENERIC
5021       --  Defining_Unit_Name (Node1)
5022       --  Name (Node2)
5023       --  Parent_Spec (Node4-Sem)
5024
5025       --  N_Generic_Procedure_Renaming_Declaration
5026       --  Sloc points to GENERIC
5027       --  Defining_Unit_Name (Node1)
5028       --  Name (Node2)
5029       --  Parent_Spec (Node4-Sem)
5030
5031       --  N_Generic_Function_Renaming_Declaration
5032       --  Sloc points to GENERIC
5033       --  Defining_Unit_Name (Node1)
5034       --  Name (Node2)
5035       --  Parent_Spec (Node4-Sem)
5036
5037       --------------------------------
5038       -- 9.1  Task Type Declaration --
5039       --------------------------------
5040
5041       --  TASK_TYPE_DECLARATION ::=
5042       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5043       --      [ASPECT_SPECIFICATIONS]
5044       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5045
5046       --  N_Task_Type_Declaration
5047       --  Sloc points to TASK
5048       --  Defining_Identifier (Node1)
5049       --  Discriminant_Specifications (List4) (set to No_List if no
5050       --   discriminant part)
5051       --  Interface_List (List2) (set to No_List if none)
5052       --  Task_Definition (Node3) (set to Empty if not present)
5053       --  Corresponding_Body (Node5-Sem)
5054
5055       ----------------------------------
5056       -- 9.1  Single Task Declaration --
5057       ----------------------------------
5058
5059       --  SINGLE_TASK_DECLARATION ::=
5060       --    task DEFINING_IDENTIFIER
5061       --      [ASPECT_SPECIFICATIONS]
5062       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5063
5064       --  N_Single_Task_Declaration
5065       --  Sloc points to TASK
5066       --  Defining_Identifier (Node1)
5067       --  Interface_List (List2) (set to No_List if none)
5068       --  Task_Definition (Node3) (set to Empty if not present)
5069
5070       --------------------------
5071       -- 9.1  Task Definition --
5072       --------------------------
5073
5074       --  TASK_DEFINITION ::=
5075       --      {TASK_ITEM}
5076       --    [private
5077       --      {TASK_ITEM}]
5078       --    end [task_IDENTIFIER]
5079
5080       --  Note: as a result of semantic analysis, the list of task items can
5081       --  include implicit type declarations resulting from entry families.
5082
5083       --  N_Task_Definition
5084       --  Sloc points to first token of task definition
5085       --  Visible_Declarations (List2)
5086       --  Private_Declarations (List3) (set to No_List if no private part)
5087       --  End_Label (Node4)
5088       --  Has_Pragma_Priority (Flag6-Sem)
5089       --  Has_Storage_Size_Pragma (Flag5-Sem)
5090       --  Has_Task_Info_Pragma (Flag7-Sem)
5091       --  Has_Task_Name_Pragma (Flag8-Sem)
5092       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
5093       --  Has_Pragma_CPU (Flag14-Sem)
5094       --  Has_Pragma_Dispatching_Domain (Flag15-Sem)
5095
5096       --------------------
5097       -- 9.1  Task Item --
5098       --------------------
5099
5100       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5101
5102       --------------------
5103       -- 9.1  Task Body --
5104       --------------------
5105
5106       --  TASK_BODY ::=
5107       --    task body task_DEFINING_IDENTIFIER
5108       --      [ASPECT_SPECIFICATIONS]
5109       --    is
5110       --      DECLARATIVE_PART
5111       --    begin
5112       --      HANDLED_SEQUENCE_OF_STATEMENTS
5113       --    end [task_IDENTIFIER];
5114
5115       --  Gigi restriction: This node never appears
5116
5117       --  N_Task_Body
5118       --  Sloc points to TASK
5119       --  Defining_Identifier (Node1)
5120       --  Declarations (List2)
5121       --  Handled_Statement_Sequence (Node4)
5122       --  Is_Task_Master (Flag5-Sem)
5123       --  Activation_Chain_Entity (Node3-Sem)
5124       --  Corresponding_Spec (Node5-Sem)
5125       --  Was_Originally_Stub (Flag13-Sem)
5126
5127       -------------------------------------
5128       -- 9.4  Protected Type Declaration --
5129       -------------------------------------
5130
5131       --  PROTECTED_TYPE_DECLARATION ::=
5132       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5133       --      [ASPECT_SPECIFICATIONS]
5134       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5135
5136       --  Note: protected type declarations are not permitted in Ada 83 mode
5137
5138       --  N_Protected_Type_Declaration
5139       --  Sloc points to PROTECTED
5140       --  Defining_Identifier (Node1)
5141       --  Discriminant_Specifications (List4) (set to No_List if no
5142       --   discriminant part)
5143       --  Interface_List (List2) (set to No_List if none)
5144       --  Protected_Definition (Node3)
5145       --  Corresponding_Body (Node5-Sem)
5146
5147       ---------------------------------------
5148       -- 9.4  Single Protected Declaration --
5149       ---------------------------------------
5150
5151       --  SINGLE_PROTECTED_DECLARATION ::=
5152       --    protected DEFINING_IDENTIFIER
5153       --      [ASPECT_SPECIFICATIONS]
5154       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5155
5156       --  Note: single protected declarations are not allowed in Ada 83 mode
5157
5158       --  N_Single_Protected_Declaration
5159       --  Sloc points to PROTECTED
5160       --  Defining_Identifier (Node1)
5161       --  Interface_List (List2) (set to No_List if none)
5162       --  Protected_Definition (Node3)
5163
5164       -------------------------------
5165       -- 9.4  Protected Definition --
5166       -------------------------------
5167
5168       --  PROTECTED_DEFINITION ::=
5169       --      {PROTECTED_OPERATION_DECLARATION}
5170       --    [private
5171       --      {PROTECTED_ELEMENT_DECLARATION}]
5172       --    end [protected_IDENTIFIER]
5173
5174       --  N_Protected_Definition
5175       --  Sloc points to first token of protected definition
5176       --  Visible_Declarations (List2)
5177       --  Private_Declarations (List3) (set to No_List if no private part)
5178       --  End_Label (Node4)
5179       --  Has_Pragma_Priority (Flag6-Sem)
5180
5181       ------------------------------------------
5182       -- 9.4  Protected Operation Declaration --
5183       ------------------------------------------
5184
5185       --  PROTECTED_OPERATION_DECLARATION ::=
5186       --    SUBPROGRAM_DECLARATION
5187       --  | ENTRY_DECLARATION
5188       --  | REPRESENTATION_CLAUSE
5189
5190       ----------------------------------------
5191       -- 9.4  Protected Element Declaration --
5192       ----------------------------------------
5193
5194       --  PROTECTED_ELEMENT_DECLARATION ::=
5195       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5196
5197       -------------------------
5198       -- 9.4  Protected Body --
5199       -------------------------
5200
5201       --  PROTECTED_BODY ::=
5202       --    protected body DEFINING_IDENTIFIER
5203       --      [ASPECT_SPECIFICATIONS];
5204       --    is
5205       --      {PROTECTED_OPERATION_ITEM}
5206       --    end [protected_IDENTIFIER];
5207
5208       --  Note: protected bodies are not allowed in Ada 83 mode
5209
5210       --  Gigi restriction: This node never appears
5211
5212       --  N_Protected_Body
5213       --  Sloc points to PROTECTED
5214       --  Defining_Identifier (Node1)
5215       --  Declarations (List2) protected operation items (and pragmas)
5216       --  End_Label (Node4)
5217       --  Corresponding_Spec (Node5-Sem)
5218       --  Was_Originally_Stub (Flag13-Sem)
5219
5220       -----------------------------------
5221       -- 9.4  Protected Operation Item --
5222       -----------------------------------
5223
5224       --  PROTECTED_OPERATION_ITEM ::=
5225       --    SUBPROGRAM_DECLARATION
5226       --  | SUBPROGRAM_BODY
5227       --  | ENTRY_BODY
5228       --  | REPRESENTATION_CLAUSE
5229
5230       ------------------------------
5231       -- 9.5.2  Entry Declaration --
5232       ------------------------------
5233
5234       --  ENTRY_DECLARATION ::=
5235       --    [[not] overriding]
5236       --    entry DEFINING_IDENTIFIER
5237       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5238
5239       --  N_Entry_Declaration
5240       --  Sloc points to ENTRY
5241       --  Defining_Identifier (Node1)
5242       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5243       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5244       --  Corresponding_Body (Node5-Sem)
5245       --  Must_Override (Flag14) set if overriding indicator present
5246       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5247
5248       --  Note: overriding indicator is an Ada 2005 feature
5249
5250       -----------------------------
5251       -- 9.5.2  Accept statement --
5252       -----------------------------
5253
5254       --  ACCEPT_STATEMENT ::=
5255       --    accept entry_DIRECT_NAME
5256       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5257       --        HANDLED_SEQUENCE_OF_STATEMENTS
5258       --    end [entry_IDENTIFIER]];
5259
5260       --  Gigi restriction: This node never appears
5261
5262       --  Note: there are no explicit declarations allowed in an accept
5263       --  statement. However, the implicit declarations for any statement
5264       --  identifiers (labels and block/loop identifiers) are declarations
5265       --  that belong logically to the accept statement, and that is why
5266       --  there is a Declarations field in this node.
5267
5268       --  N_Accept_Statement
5269       --  Sloc points to ACCEPT
5270       --  Entry_Direct_Name (Node1)
5271       --  Entry_Index (Node5) (set to Empty if not present)
5272       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5273       --  Handled_Statement_Sequence (Node4)
5274       --  Declarations (List2) (set to No_List if no declarations)
5275
5276       ------------------------
5277       -- 9.5.2  Entry Index --
5278       ------------------------
5279
5280       --  ENTRY_INDEX ::= EXPRESSION
5281
5282       -----------------------
5283       -- 9.5.2  Entry Body --
5284       -----------------------
5285
5286       --  ENTRY_BODY ::=
5287       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5288       --      DECLARATIVE_PART
5289       --    begin
5290       --      HANDLED_SEQUENCE_OF_STATEMENTS
5291       --    end [entry_IDENTIFIER];
5292
5293       --  ENTRY_BARRIER ::= when CONDITION
5294
5295       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5296       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5297       --  too full (it would otherwise have too many fields)
5298
5299       --  Gigi restriction: This node never appears
5300
5301       --  N_Entry_Body
5302       --  Sloc points to ENTRY
5303       --  Defining_Identifier (Node1)
5304       --  Entry_Body_Formal_Part (Node5)
5305       --  Declarations (List2)
5306       --  Handled_Statement_Sequence (Node4)
5307       --  Activation_Chain_Entity (Node3-Sem)
5308
5309       -----------------------------------
5310       -- 9.5.2  Entry Body Formal Part --
5311       -----------------------------------
5312
5313       --  ENTRY_BODY_FORMAL_PART ::=
5314       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5315
5316       --  Note that an entry body formal part node is present even if it is
5317       --  empty. This reflects the grammar, in which it is the components of
5318       --  the entry body formal part that are optional, not the entry body
5319       --  formal part itself. Also this means that the barrier condition
5320       --  always has somewhere to be stored.
5321
5322       --  Gigi restriction: This node never appears
5323
5324       --  N_Entry_Body_Formal_Part
5325       --  Sloc points to first token
5326       --  Entry_Index_Specification (Node4) (set to Empty if not present)
5327       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5328       --  Condition (Node1) from entry barrier of entry body
5329
5330       --------------------------
5331       -- 9.5.2  Entry Barrier --
5332       --------------------------
5333
5334       --  ENTRY_BARRIER ::= when CONDITION
5335
5336       --------------------------------------
5337       -- 9.5.2  Entry Index Specification --
5338       --------------------------------------
5339
5340       --  ENTRY_INDEX_SPECIFICATION ::=
5341       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5342
5343       --  Gigi restriction: This node never appears
5344
5345       --  N_Entry_Index_Specification
5346       --  Sloc points to FOR
5347       --  Defining_Identifier (Node1)
5348       --  Discrete_Subtype_Definition (Node4)
5349
5350       ---------------------------------
5351       -- 9.5.3  Entry Call Statement --
5352       ---------------------------------
5353
5354       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5355
5356       --  The parser may generate a procedure call for this construct. The
5357       --  semantic pass must correct this misidentification where needed.
5358
5359       --  Gigi restriction: This node never appears
5360
5361       --  N_Entry_Call_Statement
5362       --  Sloc points to first token of name
5363       --  Name (Node2)
5364       --  Parameter_Associations (List3) (set to No_List if no
5365       --   actual parameter part)
5366       --  First_Named_Actual (Node4-Sem)
5367
5368       ------------------------------
5369       -- 9.5.4  Requeue Statement --
5370       ------------------------------
5371
5372       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5373
5374       --  Note: requeue statements are not permitted in Ada 83 mode
5375
5376       --  Gigi restriction: This node never appears
5377
5378       --  N_Requeue_Statement
5379       --  Sloc points to REQUEUE
5380       --  Name (Node2)
5381       --  Abort_Present (Flag15)
5382
5383       --------------------------
5384       -- 9.6  Delay Statement --
5385       --------------------------
5386
5387       --  DELAY_STATEMENT ::=
5388       --    DELAY_UNTIL_STATEMENT
5389       --  | DELAY_RELATIVE_STATEMENT
5390
5391       --------------------------------
5392       -- 9.6  Delay Until Statement --
5393       --------------------------------
5394
5395       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5396
5397       --  Note: delay until statements are not permitted in Ada 83 mode
5398
5399       --  Gigi restriction: This node never appears
5400
5401       --  N_Delay_Until_Statement
5402       --  Sloc points to DELAY
5403       --  Expression (Node3)
5404
5405       -----------------------------------
5406       -- 9.6  Delay Relative Statement --
5407       -----------------------------------
5408
5409       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5410
5411       --  Gigi restriction: This node never appears
5412
5413       --  N_Delay_Relative_Statement
5414       --  Sloc points to DELAY
5415       --  Expression (Node3)
5416
5417       ---------------------------
5418       -- 9.7  Select Statement --
5419       ---------------------------
5420
5421       --  SELECT_STATEMENT ::=
5422       --    SELECTIVE_ACCEPT
5423       --  | TIMED_ENTRY_CALL
5424       --  | CONDITIONAL_ENTRY_CALL
5425       --  | ASYNCHRONOUS_SELECT
5426
5427       -----------------------------
5428       -- 9.7.1  Selective Accept --
5429       -----------------------------
5430
5431       --  SELECTIVE_ACCEPT ::=
5432       --    select
5433       --      [GUARD]
5434       --        SELECT_ALTERNATIVE
5435       --    {or
5436       --      [GUARD]
5437       --        SELECT_ALTERNATIVE}
5438       --    [else
5439       --      SEQUENCE_OF_STATEMENTS]
5440       --    end select;
5441
5442       --  Gigi restriction: This node never appears
5443
5444       --  Note: the guard expression, if present, appears in the node for
5445       --  the select alternative.
5446
5447       --  N_Selective_Accept
5448       --  Sloc points to SELECT
5449       --  Select_Alternatives (List1)
5450       --  Else_Statements (List4) (set to No_List if no else part)
5451
5452       ------------------
5453       -- 9.7.1  Guard --
5454       ------------------
5455
5456       --  GUARD ::= when CONDITION =>
5457
5458       --  As noted above, the CONDITION that is part of a GUARD is included
5459       --  in the node for the select alternative for convenience.
5460
5461       -------------------------------
5462       -- 9.7.1  Select Alternative --
5463       -------------------------------
5464
5465       --  SELECT_ALTERNATIVE ::=
5466       --    ACCEPT_ALTERNATIVE
5467       --  | DELAY_ALTERNATIVE
5468       --  | TERMINATE_ALTERNATIVE
5469
5470       -------------------------------
5471       -- 9.7.1  Accept Alternative --
5472       -------------------------------
5473
5474       --  ACCEPT_ALTERNATIVE ::=
5475       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5476
5477       --  Gigi restriction: This node never appears
5478
5479       --  N_Accept_Alternative
5480       --  Sloc points to ACCEPT
5481       --  Accept_Statement (Node2)
5482       --  Condition (Node1) from the guard (set to Empty if no guard present)
5483       --  Statements (List3) (set to Empty_List if no statements)
5484       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5485       --  Accept_Handler_Records (List5-Sem)
5486
5487       ------------------------------
5488       -- 9.7.1  Delay Alternative --
5489       ------------------------------
5490
5491       --  DELAY_ALTERNATIVE ::=
5492       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5493
5494       --  Gigi restriction: This node never appears
5495
5496       --  N_Delay_Alternative
5497       --  Sloc points to DELAY
5498       --  Delay_Statement (Node2)
5499       --  Condition (Node1) from the guard (set to Empty if no guard present)
5500       --  Statements (List3) (set to Empty_List if no statements)
5501       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5502
5503       ----------------------------------
5504       -- 9.7.1  Terminate Alternative --
5505       ----------------------------------
5506
5507       --  TERMINATE_ALTERNATIVE ::= terminate;
5508
5509       --  Gigi restriction: This node never appears
5510
5511       --  N_Terminate_Alternative
5512       --  Sloc points to TERMINATE
5513       --  Condition (Node1) from the guard (set to Empty if no guard present)
5514       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5515       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5516
5517       -----------------------------
5518       -- 9.7.2  Timed Entry Call --
5519       -----------------------------
5520
5521       --  TIMED_ENTRY_CALL ::=
5522       --    select
5523       --      ENTRY_CALL_ALTERNATIVE
5524       --    or
5525       --      DELAY_ALTERNATIVE
5526       --    end select;
5527
5528       --  Gigi restriction: This node never appears
5529
5530       --  N_Timed_Entry_Call
5531       --  Sloc points to SELECT
5532       --  Entry_Call_Alternative (Node1)
5533       --  Delay_Alternative (Node4)
5534
5535       -----------------------------------
5536       -- 9.7.2  Entry Call Alternative --
5537       -----------------------------------
5538
5539       --  ENTRY_CALL_ALTERNATIVE ::=
5540       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5541
5542       --  PROCEDURE_OR_ENTRY_CALL ::=
5543       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5544
5545       --  Gigi restriction: This node never appears
5546
5547       --  N_Entry_Call_Alternative
5548       --  Sloc points to first token of entry call statement
5549       --  Entry_Call_Statement (Node1)
5550       --  Statements (List3) (set to Empty_List if no statements)
5551       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5552
5553       -----------------------------------
5554       -- 9.7.3  Conditional Entry Call --
5555       -----------------------------------
5556
5557       --  CONDITIONAL_ENTRY_CALL ::=
5558       --    select
5559       --      ENTRY_CALL_ALTERNATIVE
5560       --    else
5561       --      SEQUENCE_OF_STATEMENTS
5562       --    end select;
5563
5564       --  Gigi restriction: This node never appears
5565
5566       --  N_Conditional_Entry_Call
5567       --  Sloc points to SELECT
5568       --  Entry_Call_Alternative (Node1)
5569       --  Else_Statements (List4)
5570
5571       --------------------------------
5572       -- 9.7.4  Asynchronous Select --
5573       --------------------------------
5574
5575       --  ASYNCHRONOUS_SELECT ::=
5576       --    select
5577       --      TRIGGERING_ALTERNATIVE
5578       --    then abort
5579       --      ABORTABLE_PART
5580       --    end select;
5581
5582       --  Note: asynchronous select is not permitted in Ada 83 mode
5583
5584       --  Gigi restriction: This node never appears
5585
5586       --  N_Asynchronous_Select
5587       --  Sloc points to SELECT
5588       --  Triggering_Alternative (Node1)
5589       --  Abortable_Part (Node2)
5590
5591       -----------------------------------
5592       -- 9.7.4  Triggering Alternative --
5593       -----------------------------------
5594
5595       --  TRIGGERING_ALTERNATIVE ::=
5596       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5597
5598       --  Gigi restriction: This node never appears
5599
5600       --  N_Triggering_Alternative
5601       --  Sloc points to first token of triggering statement
5602       --  Triggering_Statement (Node1)
5603       --  Statements (List3) (set to Empty_List if no statements)
5604       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5605
5606       ---------------------------------
5607       -- 9.7.4  Triggering Statement --
5608       ---------------------------------
5609
5610       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5611
5612       ---------------------------
5613       -- 9.7.4  Abortable Part --
5614       ---------------------------
5615
5616       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5617
5618       --  Gigi restriction: This node never appears
5619
5620       --  N_Abortable_Part
5621       --  Sloc points to ABORT
5622       --  Statements (List3)
5623
5624       --------------------------
5625       -- 9.8  Abort Statement --
5626       --------------------------
5627
5628       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5629
5630       --  Gigi restriction: This node never appears
5631
5632       --  N_Abort_Statement
5633       --  Sloc points to ABORT
5634       --  Names (List2)
5635
5636       -------------------------
5637       -- 10.1.1  Compilation --
5638       -------------------------
5639
5640       --  COMPILATION ::= {COMPILATION_UNIT}
5641
5642       --  There is no explicit node in the tree for a compilation, since in
5643       --  general the compiler is processing only a single compilation unit
5644       --  at a time. It is possible to parse multiple units in syntax check
5645       --  only mode, but the trees are discarded in that case.
5646
5647       ------------------------------
5648       -- 10.1.1  Compilation Unit --
5649       ------------------------------
5650
5651       --  COMPILATION_UNIT ::=
5652       --    CONTEXT_CLAUSE LIBRARY_ITEM
5653       --  | CONTEXT_CLAUSE SUBUNIT
5654
5655       --  The N_Compilation_Unit node itself represents the above syntax.
5656       --  However, there are two additional items not reflected in the above
5657       --  syntax. First we have the global declarations that are added by the
5658       --  code generator. These are outer level declarations (so they cannot
5659       --  be represented as being inside the units). An example is the wrapper
5660       --  subprograms that are created to do ABE checking. As always a list of
5661       --  declarations can contain actions as well (i.e. statements), and such
5662       --  statements are executed as part of the elaboration of the unit. Note
5663       --  that all such declarations are elaborated before the library unit.
5664
5665       --  Similarly, certain actions need to be elaborated at the completion
5666       --  of elaboration of the library unit (notably the statement that sets
5667       --  the Boolean flag indicating that elaboration is complete).
5668
5669       --  The third item not reflected in the syntax is pragmas that appear
5670       --  after the compilation unit. As always pragmas are a problem since
5671       --  they are not part of the formal syntax, but can be stuck into the
5672       --  source following a set of ad hoc rules, and we have to find an ad
5673       --  hoc way of sticking them into the tree. For pragmas that appear
5674       --  before the library unit, we just consider them to be part of the
5675       --  context clause, and pragmas can appear in the Context_Items list
5676       --  of the compilation unit. However, pragmas can also appear after
5677       --  the library item.
5678
5679       --  To deal with all these problems, we create an auxiliary node for
5680       --  a compilation unit, referenced from the N_Compilation_Unit node,
5681       --  that contains these items.
5682
5683       --  N_Compilation_Unit
5684       --  Sloc points to first token of defining unit name
5685       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5686       --  Context_Items (List1) context items and pragmas preceding unit
5687       --  Private_Present (Flag15) set if library unit has private keyword
5688       --  Unit (Node2) library item or subunit
5689       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5690       --  Has_No_Elaboration_Code (Flag17-Sem)
5691       --  Body_Required (Flag13-Sem) set for spec if body is required
5692       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5693       --  Context_Pending (Flag16-Sem)
5694       --  First_Inlined_Subprogram (Node3-Sem)
5695       --  Has_Pragma_Suppress_All (Flag14-Sem)
5696
5697       --  N_Compilation_Unit_Aux
5698       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5699       --  Declarations (List2) (set to No_List if no global declarations)
5700       --  Actions (List1) (set to No_List if no actions)
5701       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5702       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5703       --  Default_Storage_Pool (Node3-Sem)
5704
5705       --------------------------
5706       -- 10.1.1  Library Item --
5707       --------------------------
5708
5709       --  LIBRARY_ITEM ::=
5710       --    [private] LIBRARY_UNIT_DECLARATION
5711       --  | LIBRARY_UNIT_BODY
5712       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5713
5714       --  Note: PRIVATE is not allowed in Ada 83 mode
5715
5716       --  There is no explicit node in the tree for library item, instead
5717       --  the declaration or body, and the flag for private if present,
5718       --  appear in the N_Compilation_Unit node.
5719
5720       --------------------------------------
5721       -- 10.1.1  Library Unit Declaration --
5722       --------------------------------------
5723
5724       --  LIBRARY_UNIT_DECLARATION ::=
5725       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5726       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5727
5728       -----------------------------------------------
5729       -- 10.1.1  Library Unit Renaming Declaration --
5730       -----------------------------------------------
5731
5732       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5733       --    PACKAGE_RENAMING_DECLARATION
5734       --  | GENERIC_RENAMING_DECLARATION
5735       --  | SUBPROGRAM_RENAMING_DECLARATION
5736
5737       -------------------------------
5738       -- 10.1.1  Library unit body --
5739       -------------------------------
5740
5741       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5742
5743       ------------------------------
5744       -- 10.1.1  Parent Unit Name --
5745       ------------------------------
5746
5747       --  PARENT_UNIT_NAME ::= NAME
5748
5749       ----------------------------
5750       -- 10.1.2  Context clause --
5751       ----------------------------
5752
5753       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5754
5755       --  The context clause can include pragmas, and any pragmas that appear
5756       --  before the context clause proper (i.e. all configuration pragmas,
5757       --  also appear at the front of this list).
5758
5759       --------------------------
5760       -- 10.1.2  Context_Item --
5761       --------------------------
5762
5763       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5764
5765       -------------------------
5766       -- 10.1.2  With clause --
5767       -------------------------
5768
5769       --  WITH_CLAUSE ::=
5770       --    with library_unit_NAME {,library_unit_NAME};
5771
5772       --  A separate With clause is built for each name, so that we have
5773       --  a Corresponding_Spec field for each with'ed spec. The flags
5774       --  First_Name and Last_Name are used to reconstruct the exact
5775       --  source form. When a list of names appears in one with clause,
5776       --  the first name in the list has First_Name set, and the last
5777       --  has Last_Name set. If the with clause has only one name, then
5778       --  both of the flags First_Name and Last_Name are set in this name.
5779
5780       --  Note: in the case of implicit with's that are installed by the
5781       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5782       --  set to Standard_Location, but it is incorrect to test the Sloc
5783       --  to find out if a with clause is implicit, test the flag instead.
5784
5785       --  N_With_Clause
5786       --  Sloc points to first token of library unit name
5787       --  Withed_Body (Node1-Sem)
5788       --  Name (Node2)
5789       --  Next_Implicit_With (Node3-Sem)
5790       --  Library_Unit (Node4-Sem)
5791       --  Corresponding_Spec (Node5-Sem)
5792       --  First_Name (Flag5) (set to True if first name or only one name)
5793       --  Last_Name (Flag6) (set to True if last name or only one name)
5794       --  Context_Installed (Flag13-Sem)
5795       --  Elaborate_Present (Flag4-Sem)
5796       --  Elaborate_All_Present (Flag14-Sem)
5797       --  Elaborate_All_Desirable (Flag9-Sem)
5798       --  Elaborate_Desirable (Flag11-Sem)
5799       --  Private_Present (Flag15) set if with_clause has private keyword
5800       --  Implicit_With (Flag16-Sem)
5801       --  Limited_Present (Flag17) set if LIMITED is present
5802       --  Limited_View_Installed (Flag18-Sem)
5803       --  Unreferenced_In_Spec (Flag7-Sem)
5804       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5805
5806       --  Note: Limited_Present and Limited_View_Installed give support to
5807       --        Ada 2005 (AI-50217).
5808       --  Similarly, Private_Present gives support to AI-50262.
5809
5810       ----------------------
5811       -- With_Type clause --
5812       ----------------------
5813
5814       --  This is a GNAT extension, used to implement mutually recursive
5815       --  types declared in different packages.
5816       --  Note: this is now obsolete. The functionality of this construct
5817       --  is now implemented by the Ada 2005 Limited_with_Clause.
5818
5819       ---------------------
5820       -- 10.2  Body stub --
5821       ---------------------
5822
5823       --  BODY_STUB ::=
5824       --    SUBPROGRAM_BODY_STUB
5825       --  | PACKAGE_BODY_STUB
5826       --  | TASK_BODY_STUB
5827       --  | PROTECTED_BODY_STUB
5828
5829       ----------------------------------
5830       -- 10.1.3  Subprogram Body Stub --
5831       ----------------------------------
5832
5833       --  SUBPROGRAM_BODY_STUB ::=
5834       --    SUBPROGRAM_SPECIFICATION is separate;
5835
5836       --  N_Subprogram_Body_Stub
5837       --  Sloc points to FUNCTION or PROCEDURE
5838       --  Specification (Node1)
5839       --  Library_Unit (Node4-Sem) points to the subunit
5840       --  Corresponding_Body (Node5-Sem)
5841
5842       -------------------------------
5843       -- 10.1.3  Package Body Stub --
5844       -------------------------------
5845
5846       --  PACKAGE_BODY_STUB ::=
5847       --    package body DEFINING_IDENTIFIER is separate;
5848
5849       --  N_Package_Body_Stub
5850       --  Sloc points to PACKAGE
5851       --  Defining_Identifier (Node1)
5852       --  Library_Unit (Node4-Sem) points to the subunit
5853       --  Corresponding_Body (Node5-Sem)
5854
5855       ----------------------------
5856       -- 10.1.3  Task Body Stub --
5857       ----------------------------
5858
5859       --  TASK_BODY_STUB ::=
5860       --    task body DEFINING_IDENTIFIER is separate;
5861
5862       --  N_Task_Body_Stub
5863       --  Sloc points to TASK
5864       --  Defining_Identifier (Node1)
5865       --  Library_Unit (Node4-Sem) points to the subunit
5866       --  Corresponding_Body (Node5-Sem)
5867
5868       ---------------------------------
5869       -- 10.1.3  Protected Body Stub --
5870       ---------------------------------
5871
5872       --  PROTECTED_BODY_STUB ::=
5873       --    protected body DEFINING_IDENTIFIER is separate;
5874
5875       --  Note: protected body stubs are not allowed in Ada 83 mode
5876
5877       --  N_Protected_Body_Stub
5878       --  Sloc points to PROTECTED
5879       --  Defining_Identifier (Node1)
5880       --  Library_Unit (Node4-Sem) points to the subunit
5881       --  Corresponding_Body (Node5-Sem)
5882
5883       ---------------------
5884       -- 10.1.3  Subunit --
5885       ---------------------
5886
5887       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5888
5889       --  N_Subunit
5890       --  Sloc points to SEPARATE
5891       --  Name (Node2) is the name of the parent unit
5892       --  Proper_Body (Node1) is the subunit body
5893       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5894
5895       ---------------------------------
5896       -- 11.1  Exception Declaration --
5897       ---------------------------------
5898
5899       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
5900       --    [ASPECT_SPECIFICATIONS];
5901
5902       --  For consistency with object declarations etc., the parser converts
5903       --  the case of multiple identifiers being declared to a series of
5904       --  declarations in which the expression is copied, using the More_Ids
5905       --  and Prev_Ids flags to remember the source form as described in the
5906       --  section on "Handling of Defining Identifier Lists".
5907
5908       --  N_Exception_Declaration
5909       --  Sloc points to EXCEPTION
5910       --  Defining_Identifier (Node1)
5911       --  Expression (Node3-Sem)
5912       --  Renaming_Exception (Node2-Sem)
5913       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5914       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5915
5916       ------------------------------------------
5917       -- 11.2  Handled Sequence Of Statements --
5918       ------------------------------------------
5919
5920       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5921       --      SEQUENCE_OF_STATEMENTS
5922       --    [exception
5923       --      EXCEPTION_HANDLER
5924       --      {EXCEPTION_HANDLER}]
5925       --    [at end
5926       --      cleanup_procedure_call (param, param, param, ...);]
5927
5928       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5929       --  used only internally currently, but is considered to be syntactic.
5930       --  At the moment, the only cleanup action allowed is a single call to
5931       --  a parameterless procedure, and the Identifier field of the node is
5932       --  the procedure to be called. The cleanup action occurs whenever the
5933       --  sequence of statements is left for any reason. The possible reasons
5934       --  are:
5935       --      1. reaching the end of the sequence
5936       --      2. exit, return, or goto
5937       --      3. exception or abort
5938       --  For some back ends, such as gcc with ZCX, "at end" is implemented
5939       --  entirely in the back end. In this case, a handled sequence of
5940       --  statements with an "at end" cannot also have exception handlers.
5941       --  For other back ends, such as gcc with SJLJ and .NET, the
5942       --  implementation is split between the front end and back end; the front
5943       --  end implements 3, and the back end implements 1 and 2. In this case,
5944       --  if there is an "at end", the front end inserts the appropriate
5945       --  exception handler, and this handler takes precedence over "at end"
5946       --  in case of exception.
5947
5948       --  The inserted exception handler is of the form:
5949
5950       --     when all others =>
5951       --        cleanup;
5952       --        raise;
5953
5954       --  where cleanup is the procedure to be called. The reason we do this is
5955       --  so that the front end can handle the necessary entries in the
5956       --  exception tables, and other exception handler actions required as
5957       --  part of the normal handling for exception handlers.
5958
5959       --  The AT END cleanup handler protects only the sequence of statements
5960       --  (not the associated declarations of the parent), just like exception
5961       --  handlers. The big difference is that the cleanup procedure is called
5962       --  on either a normal or an abnormal exit from the statement sequence.
5963
5964       --  Note: the list of Exception_Handlers can contain pragmas as well
5965       --  as actual handlers. In practice these pragmas can only occur at
5966       --  the start of the list, since any pragmas occurring later on will
5967       --  be included in the statement list of the corresponding handler.
5968
5969       --  Note: although in the Ada syntax, the sequence of statements in
5970       --  a handled sequence of statements can only contain statements, we
5971       --  allow free mixing of declarations and statements in the resulting
5972       --  expanded tree. This is for example used to deal with the case of
5973       --  a cleanup procedure that must handle declarations as well as the
5974       --  statements of a block.
5975
5976       --  N_Handled_Sequence_Of_Statements
5977       --  Sloc points to first token of first statement
5978       --  Statements (List3)
5979       --  End_Label (Node4) (set to Empty if expander generated)
5980       --  Exception_Handlers (List5) (set to No_List if none present)
5981       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5982       --  First_Real_Statement (Node2-Sem)
5983
5984       --  Note: the parent always contains a Declarations field which contains
5985       --  declarations associated with the handled sequence of statements. This
5986       --  is true even in the case of an accept statement (see description of
5987       --  the N_Accept_Statement node).
5988
5989       --  End_Label refers to the containing construct
5990
5991       -----------------------------
5992       -- 11.2  Exception Handler --
5993       -----------------------------
5994
5995       --  EXCEPTION_HANDLER ::=
5996       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5997       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5998       --        SEQUENCE_OF_STATEMENTS
5999
6000       --  Note: choice parameter specification is not allowed in Ada 83 mode
6001
6002       --  N_Exception_Handler
6003       --  Sloc points to WHEN
6004       --  Choice_Parameter (Node2) (set to Empty if not present)
6005       --  Exception_Choices (List4)
6006       --  Statements (List3)
6007       --  Exception_Label (Node5-Sem) (set to Empty of not present)
6008       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6009       --  Local_Raise_Not_OK (Flag7-Sem)
6010       --  Has_Local_Raise (Flag8-Sem)
6011
6012       ------------------------------------------
6013       -- 11.2  Choice parameter specification --
6014       ------------------------------------------
6015
6016       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6017
6018       ----------------------------
6019       -- 11.2  Exception Choice --
6020       ----------------------------
6021
6022       --  EXCEPTION_CHOICE ::= exception_NAME | others
6023
6024       --  Except in the case of OTHERS, no explicit node appears in the tree
6025       --  for exception choice. Instead the exception name appears directly.
6026       --  An OTHERS choice is represented by a N_Others_Choice node (see
6027       --  section 3.8.1.
6028
6029       --  Note: for the exception choice created for an at end handler, the
6030       --  exception choice is an N_Others_Choice node with All_Others set.
6031
6032       ---------------------------
6033       -- 11.3  Raise Statement --
6034       ---------------------------
6035
6036       --  RAISE_STATEMENT ::= raise [exception_NAME];
6037
6038       --  In Ada 2005, we have
6039
6040       --  RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
6041
6042       --  N_Raise_Statement
6043       --  Sloc points to RAISE
6044       --  Name (Node2) (set to Empty if no exception name present)
6045       --  Expression (Node3) (set to Empty if no expression present)
6046       --  From_At_End (Flag4-Sem)
6047
6048       -------------------------------
6049       -- 12.1  Generic Declaration --
6050       -------------------------------
6051
6052       --  GENERIC_DECLARATION ::=
6053       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6054
6055       ------------------------------------------
6056       -- 12.1  Generic Subprogram Declaration --
6057       ------------------------------------------
6058
6059       --  GENERIC_SUBPROGRAM_DECLARATION ::=
6060       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
6061
6062       --  Note: Generic_Formal_Declarations can include pragmas
6063
6064       --  N_Generic_Subprogram_Declaration
6065       --  Sloc points to GENERIC
6066       --  Specification (Node1) subprogram specification
6067       --  Corresponding_Body (Node5-Sem)
6068       --  Generic_Formal_Declarations (List2) from generic formal part
6069       --  Parent_Spec (Node4-Sem)
6070
6071       ---------------------------------------
6072       -- 12.1  Generic Package Declaration --
6073       ---------------------------------------
6074
6075       --  GENERIC_PACKAGE_DECLARATION ::=
6076       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6077       --      [ASPECT_SPECIFICATIONS];
6078
6079       --  Note: when we do generics right, the Activation_Chain_Entity entry
6080       --  for this node can be removed (since the expander won't see generic
6081       --  units any more)???.
6082
6083       --  Note: Generic_Formal_Declarations can include pragmas
6084
6085       --  N_Generic_Package_Declaration
6086       --  Sloc points to GENERIC
6087       --  Specification (Node1) package specification
6088       --  Corresponding_Body (Node5-Sem)
6089       --  Generic_Formal_Declarations (List2) from generic formal part
6090       --  Parent_Spec (Node4-Sem)
6091       --  Activation_Chain_Entity (Node3-Sem)
6092
6093       -------------------------------
6094       -- 12.1  Generic Formal Part --
6095       -------------------------------
6096
6097       --  GENERIC_FORMAL_PART ::=
6098       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6099
6100       ------------------------------------------------
6101       -- 12.1  Generic Formal Parameter Declaration --
6102       ------------------------------------------------
6103
6104       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6105       --    FORMAL_OBJECT_DECLARATION
6106       --  | FORMAL_TYPE_DECLARATION
6107       --  | FORMAL_SUBPROGRAM_DECLARATION
6108       --  | FORMAL_PACKAGE_DECLARATION
6109
6110       ---------------------------------
6111       -- 12.3  Generic Instantiation --
6112       ---------------------------------
6113
6114       --  GENERIC_INSTANTIATION ::=
6115       --    package DEFINING_PROGRAM_UNIT_NAME is
6116       --      new generic_package_NAME [GENERIC_ACTUAL_PART]
6117       --        [ASPECT_SPECIFICATIONS];
6118       --  | [[not] overriding]
6119       --    procedure DEFINING_PROGRAM_UNIT_NAME is
6120       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6121       --        [ASPECT_SPECIFICATIONS];
6122       --  | [[not] overriding]
6123       --    function DEFINING_DESIGNATOR is
6124       --      new generic_function_NAME [GENERIC_ACTUAL_PART]
6125       --        [ASPECT_SPECIFICATIONS];
6126
6127       --  N_Package_Instantiation
6128       --  Sloc points to PACKAGE
6129       --  Defining_Unit_Name (Node1)
6130       --  Name (Node2)
6131       --  Generic_Associations (List3) (set to No_List if no
6132       --   generic actual part)
6133       --  Parent_Spec (Node4-Sem)
6134       --  Instance_Spec (Node5-Sem)
6135       --  ABE_Is_Certain (Flag18-Sem)
6136
6137       --  N_Procedure_Instantiation
6138       --  Sloc points to PROCEDURE
6139       --  Defining_Unit_Name (Node1)
6140       --  Name (Node2)
6141       --  Parent_Spec (Node4-Sem)
6142       --  Generic_Associations (List3) (set to No_List if no
6143       --   generic actual part)
6144       --  Instance_Spec (Node5-Sem)
6145       --  Must_Override (Flag14) set if overriding indicator present
6146       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6147       --  ABE_Is_Certain (Flag18-Sem)
6148
6149       --  N_Function_Instantiation
6150       --  Sloc points to FUNCTION
6151       --  Defining_Unit_Name (Node1)
6152       --  Name (Node2)
6153       --  Generic_Associations (List3) (set to No_List if no
6154       --   generic actual part)
6155       --  Parent_Spec (Node4-Sem)
6156       --  Instance_Spec (Node5-Sem)
6157       --  Must_Override (Flag14) set if overriding indicator present
6158       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6159       --  ABE_Is_Certain (Flag18-Sem)
6160
6161       --  Note: overriding indicator is an Ada 2005 feature
6162
6163       -------------------------------
6164       -- 12.3  Generic Actual Part --
6165       -------------------------------
6166
6167       --  GENERIC_ACTUAL_PART ::=
6168       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6169
6170       -------------------------------
6171       -- 12.3  Generic Association --
6172       -------------------------------
6173
6174       --  GENERIC_ASSOCIATION ::=
6175       --    [generic_formal_parameter_SELECTOR_NAME =>]
6176
6177       --  Note: unlike the procedure call case, a generic association node
6178       --  is generated for every association, even if no formal parameter
6179       --  selector name is present. In this case the parser will leave the
6180       --  Selector_Name field set to Empty, to be filled in later by the
6181       --  semantic pass.
6182
6183       --  In Ada 2005, a formal may be associated with a box, if the
6184       --  association is part of the list of actuals for a formal package.
6185       --  If the association is given by  OTHERS => <>, the association is
6186       --  an N_Others_Choice.
6187
6188       --  N_Generic_Association
6189       --  Sloc points to first token of generic association
6190       --  Selector_Name (Node2) (set to Empty if no formal
6191       --   parameter selector name)
6192       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6193       --  Box_Present (Flag15) (for formal_package associations with a box)
6194
6195       ---------------------------------------------
6196       -- 12.3  Explicit Generic Actual Parameter --
6197       ---------------------------------------------
6198
6199       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6200       --    EXPRESSION      | variable_NAME   | subprogram_NAME
6201       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
6202
6203       -------------------------------------
6204       -- 12.4  Formal Object Declaration --
6205       -------------------------------------
6206
6207       --  FORMAL_OBJECT_DECLARATION ::=
6208       --    DEFINING_IDENTIFIER_LIST :
6209       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6210       --        [ASPECT_SPECIFICATIONS];
6211       --  | DEFINING_IDENTIFIER_LIST :
6212       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6213       --        [ASPECT_SPECIFICATIONS];
6214
6215       --  Although the syntax allows multiple identifiers in the list, the
6216       --  semantics is as though successive declarations were given with
6217       --  identical type definition and expression components. To simplify
6218       --  semantic processing, the parser represents a multiple declaration
6219       --  case as a sequence of single declarations, using the More_Ids and
6220       --  Prev_Ids flags to preserve the original source form as described
6221       --  in the section on "Handling of Defining Identifier Lists".
6222
6223       --  N_Formal_Object_Declaration
6224       --  Sloc points to first identifier
6225       --  Defining_Identifier (Node1)
6226       --  In_Present (Flag15)
6227       --  Out_Present (Flag17)
6228       --  Null_Exclusion_Present (Flag11) (set to False if not present)
6229       --  Subtype_Mark (Node4) (set to Empty if not present)
6230       --  Access_Definition (Node3) (set to Empty if not present)
6231       --  Default_Expression (Node5) (set to Empty if no default expression)
6232       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6233       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6234
6235       -----------------------------------
6236       -- 12.5  Formal Type Declaration --
6237       -----------------------------------
6238
6239       --  FORMAL_TYPE_DECLARATION ::=
6240       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6241       --      is FORMAL_TYPE_DEFINITION
6242       --        [ASPECT_SPECIFICATIONS];
6243       --  | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6244
6245       --  N_Formal_Type_Declaration
6246       --  Sloc points to TYPE
6247       --  Defining_Identifier (Node1)
6248       --  Formal_Type_Definition (Node3)
6249       --  Discriminant_Specifications (List4) (set to No_List if no
6250       --   discriminant part)
6251       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6252
6253       ----------------------------------
6254       -- 12.5  Formal type definition --
6255       ----------------------------------
6256
6257       --  FORMAL_TYPE_DEFINITION ::=
6258       --    FORMAL_PRIVATE_TYPE_DEFINITION
6259       --  | FORMAL_DERIVED_TYPE_DEFINITION
6260       --  | FORMAL_DISCRETE_TYPE_DEFINITION
6261       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6262       --  | FORMAL_MODULAR_TYPE_DEFINITION
6263       --  | FORMAL_FLOATING_POINT_DEFINITION
6264       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6265       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6266       --  | FORMAL_ARRAY_TYPE_DEFINITION
6267       --  | FORMAL_ACCESS_TYPE_DEFINITION
6268       --  | FORMAL_INTERFACE_TYPE_DEFINITION
6269       --  | FORMAL_INCOMPLETE_TYPE_DEFINITION
6270
6271       --  The Ada 2012 syntax introduces two new non-terminals:
6272       --  Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6273       --  the latter category. Here we introduce an incomplete type definition
6274       --  in order to preserve as much as possible the existing structure.
6275
6276       ---------------------------------------------
6277       -- 12.5.1  Formal Private Type Definition --
6278       ---------------------------------------------
6279
6280       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
6281       --    [[abstract] tagged] [limited] private
6282
6283       --  Note: TAGGED is not allowed in Ada 83 mode
6284
6285       --  N_Formal_Private_Type_Definition
6286       --  Sloc points to PRIVATE
6287       --  Abstract_Present (Flag4)
6288       --  Tagged_Present (Flag15)
6289       --  Limited_Present (Flag17)
6290
6291       --------------------------------------------
6292       -- 12.5.1  Formal Derived Type Definition --
6293       --------------------------------------------
6294
6295       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
6296       --    [abstract] [limited | synchronized]
6297       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6298       --  Note: this construct is not allowed in Ada 83 mode
6299
6300       --  N_Formal_Derived_Type_Definition
6301       --  Sloc points to NEW
6302       --  Subtype_Mark (Node4)
6303       --  Private_Present (Flag15)
6304       --  Abstract_Present (Flag4)
6305       --  Limited_Present (Flag17)
6306       --  Synchronized_Present (Flag7)
6307       --  Interface_List (List2) (set to No_List if none)
6308
6309       -----------------------------------------------
6310       -- 12.5.1  Formal Incomplete Type Definition --
6311       -----------------------------------------------
6312
6313       --  FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6314
6315       --  N_Formal_Incomplete_Type_Definition
6316       --  Sloc points to identifier of parent
6317       --  Tagged_Present (Flag15)
6318
6319       ---------------------------------------------
6320       -- 12.5.2  Formal Discrete Type Definition --
6321       ---------------------------------------------
6322
6323       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6324
6325       --  N_Formal_Discrete_Type_Definition
6326       --  Sloc points to (
6327
6328       ---------------------------------------------------
6329       -- 12.5.2  Formal Signed Integer Type Definition --
6330       ---------------------------------------------------
6331
6332       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6333
6334       --  N_Formal_Signed_Integer_Type_Definition
6335       --  Sloc points to RANGE
6336
6337       --------------------------------------------
6338       -- 12.5.2  Formal Modular Type Definition --
6339       --------------------------------------------
6340
6341       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6342
6343       --  N_Formal_Modular_Type_Definition
6344       --  Sloc points to MOD
6345
6346       ----------------------------------------------
6347       -- 12.5.2  Formal Floating Point Definition --
6348       ----------------------------------------------
6349
6350       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6351
6352       --  N_Formal_Floating_Point_Definition
6353       --  Sloc points to DIGITS
6354
6355       ----------------------------------------------------
6356       -- 12.5.2  Formal Ordinary Fixed Point Definition --
6357       ----------------------------------------------------
6358
6359       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6360
6361       --  N_Formal_Ordinary_Fixed_Point_Definition
6362       --  Sloc points to DELTA
6363
6364       ---------------------------------------------------
6365       -- 12.5.2  Formal Decimal Fixed Point Definition --
6366       ---------------------------------------------------
6367
6368       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6369
6370       --  Note: formal decimal fixed point definition not allowed in Ada 83
6371
6372       --  N_Formal_Decimal_Fixed_Point_Definition
6373       --  Sloc points to DELTA
6374
6375       ------------------------------------------
6376       -- 12.5.3  Formal Array Type Definition --
6377       ------------------------------------------
6378
6379       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6380
6381       -------------------------------------------
6382       -- 12.5.4  Formal Access Type Definition --
6383       -------------------------------------------
6384
6385       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6386
6387       ----------------------------------------------
6388       -- 12.5.5  Formal Interface Type Definition --
6389       ----------------------------------------------
6390
6391       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6392
6393       -----------------------------------------
6394       -- 12.6  Formal Subprogram Declaration --
6395       -----------------------------------------
6396
6397       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6398       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6399       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6400
6401       --------------------------------------------------
6402       -- 12.6  Formal Concrete Subprogram Declaration --
6403       --------------------------------------------------
6404
6405       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6406       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6407       --      [ASPECT_SPECIFICATIONS];
6408
6409       --  N_Formal_Concrete_Subprogram_Declaration
6410       --  Sloc points to WITH
6411       --  Specification (Node1)
6412       --  Default_Name (Node2) (set to Empty if no subprogram default)
6413       --  Box_Present (Flag15)
6414
6415       --  Note: if no subprogram default is present, then Name is set
6416       --  to Empty, and Box_Present is False.
6417
6418       --------------------------------------------------
6419       -- 12.6  Formal Abstract Subprogram Declaration --
6420       --------------------------------------------------
6421
6422       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6423       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6424       --      [ASPECT_SPECIFICATIONS];
6425
6426       --  N_Formal_Abstract_Subprogram_Declaration
6427       --  Sloc points to WITH
6428       --  Specification (Node1)
6429       --  Default_Name (Node2) (set to Empty if no subprogram default)
6430       --  Box_Present (Flag15)
6431
6432       --  Note: if no subprogram default is present, then Name is set
6433       --  to Empty, and Box_Present is False.
6434
6435       ------------------------------
6436       -- 12.6  Subprogram Default --
6437       ------------------------------
6438
6439       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6440
6441       --  There is no separate node in the tree for a subprogram default.
6442       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6443       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6444       --  default name or box indication, as needed.
6445
6446       ------------------------
6447       -- 12.6  Default Name --
6448       ------------------------
6449
6450       --  DEFAULT_NAME ::= NAME
6451
6452       --------------------------------------
6453       -- 12.7  Formal Package Declaration --
6454       --------------------------------------
6455
6456       --  FORMAL_PACKAGE_DECLARATION ::=
6457       --    with package DEFINING_IDENTIFIER
6458       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6459       --        [ASPECT_SPECIFICATIONS];
6460
6461       --  Note: formal package declarations not allowed in Ada 83 mode
6462
6463       --  N_Formal_Package_Declaration
6464       --  Sloc points to WITH
6465       --  Defining_Identifier (Node1)
6466       --  Name (Node2)
6467       --  Generic_Associations (List3) (set to No_List if (<>) case or
6468       --   empty generic actual part)
6469       --  Box_Present (Flag15)
6470       --  Instance_Spec (Node5-Sem)
6471       --  ABE_Is_Certain (Flag18-Sem)
6472
6473       --------------------------------------
6474       -- 12.7  Formal Package Actual Part --
6475       --------------------------------------
6476
6477       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6478       --    ([OTHERS] => <>)
6479       --    | [GENERIC_ACTUAL_PART]
6480       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6481
6482       --  FORMAL_PACKAGE_ASSOCIATION ::=
6483       --   GENERIC_ASSOCIATION
6484       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6485
6486       --  There is no explicit node in the tree for a formal package actual
6487       --  part. Instead the information appears in the parent node (i.e. the
6488       --  formal package declaration node itself).
6489
6490       --  There is no explicit node for a formal package association. All of
6491       --  them are represented either by a generic association, possibly with
6492       --  Box_Present, or by an N_Others_Choice.
6493
6494       ---------------------------------
6495       -- 13.1  Representation clause --
6496       ---------------------------------
6497
6498       --  REPRESENTATION_CLAUSE ::=
6499       --    ATTRIBUTE_DEFINITION_CLAUSE
6500       --  | ENUMERATION_REPRESENTATION_CLAUSE
6501       --  | RECORD_REPRESENTATION_CLAUSE
6502       --  | AT_CLAUSE
6503
6504       ----------------------
6505       -- 13.1  Local Name --
6506       ----------------------
6507
6508       --  LOCAL_NAME :=
6509       --    DIRECT_NAME
6510       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6511       --  | library_unit_NAME
6512
6513       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6514       --  as an attribute reference, which has essentially the same form.
6515
6516       ---------------------------------------
6517       -- 13.3  Attribute definition clause --
6518       ---------------------------------------
6519
6520       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6521       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6522       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6523
6524       --  In Ada 83, the expression must be a simple expression and the
6525       --  local name must be a direct name.
6526
6527       --  Note: the only attribute definition clause that is processed by
6528       --  gigi is an address clause. For all other cases, the information
6529       --  is extracted by the front end and either results in setting entity
6530       --  information, e.g. Esize for the Size clause, or in appropriate
6531       --  expansion actions (e.g. in the case of Storage_Size).
6532
6533       --  For an address clause, Gigi constructs the appropriate addressing
6534       --  code. It also ensures that no aliasing optimizations are made
6535       --  for the object for which the address clause appears.
6536
6537       --  Note: for an address clause used to achieve an overlay:
6538
6539       --    A : Integer;
6540       --    B : Integer;
6541       --    for B'Address use A'Address;
6542
6543       --  the above rule means that Gigi will ensure that no optimizations
6544       --  will be made for B that would violate the implementation advice
6545       --  of RM 13.3(19). However, this advice applies only to B and not
6546       --  to A, which seems unfortunate. The GNAT front end will mark the
6547       --  object A as volatile to also prevent unwanted optimization
6548       --  assumptions based on no aliasing being made for B.
6549
6550       --  N_Attribute_Definition_Clause
6551       --  Sloc points to FOR
6552       --  Name (Node2) the local name
6553       --  Chars (Name1) the identifier name from the attribute designator
6554       --  Expression (Node3) the expression or name
6555       --  Entity (Node4-Sem)
6556       --  Next_Rep_Item (Node5-Sem)
6557       --  From_At_Mod (Flag4-Sem)
6558       --  Check_Address_Alignment (Flag11-Sem)
6559       --  From_Aspect_Specification (Flag13-Sem)
6560       --  Is_Delayed_Aspect (Flag14-Sem)
6561       --  Address_Warning_Posted (Flag18-Sem)
6562
6563       --  Note: if From_Aspect_Specification is set, then Sloc points to the
6564       --  aspect name, and Entity is resolved already to reference the entity
6565       --  to which the aspect applies.
6566
6567       -----------------------------------
6568       -- 13.3.1  Aspect Specifications --
6569       -----------------------------------
6570
6571       --  We modify the RM grammar here, the RM grammar is:
6572
6573       --     ASPECT_SPECIFICATION ::=
6574       --       with ASPECT_MARK [=> ASPECT_DEFINITION] {,
6575       --            ASPECT_MARK [=> ASPECT_DEFINITION] }
6576
6577       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6578
6579       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
6580
6581       --  That's inconvenient, since there is no non-terminal name for a single
6582       --  entry in the list of aspects. So we use this grammar instead:
6583
6584       --     ASPECT_SPECIFICATIONS ::=
6585       --       with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6586
6587       --     ASPECT_SPECIFICATION =>
6588       --       ASPECT_MARK [=> ASPECT_DEFINITION]
6589
6590       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6591
6592       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
6593
6594       --  See separate package Aspects for details on the incorporation of
6595       --  these nodes into the tree, and how aspect specifications for a given
6596       --  declaration node are associated with that node.
6597
6598       --  N_Aspect_Specification
6599       --  Sloc points to aspect identifier
6600       --  Identifier (Node1) aspect identifier
6601       --  Aspect_Rep_Item (Node2-Sem)
6602       --  Expression (Node3) Aspect_Definition (set to Empty if none)
6603       --  Entity (Node4-Sem) entity to which the aspect applies
6604       --  Class_Present (Flag6) Set if 'Class present
6605       --  Next_Rep_Item (Node5-Sem)
6606       --  Split_PPC (Flag17) Set if split pre/post attribute
6607       --  Is_Boolean_Aspect (Flag16-Sem)
6608       --  Is_Delayed_Aspect (Flag14-Sem)
6609
6610       --  Note: Aspect_Specification is an Ada 2012 feature
6611
6612       --  Note: The Identifier serves to identify the aspect involved (it
6613       --  is the aspect whose name corresponds to the Chars field). This
6614       --  means that the other fields of this identifier are unused, and
6615       --  in particular we use the Entity field of this identifier to save
6616       --  a copy of the expression for visibility analysis, see spec of
6617       --  Sem_Ch13 for full details of this usage.
6618
6619       --  Note: When a Pre or Post aspect specification is processed, it is
6620       --  broken into AND THEN sections. The left most section has Split_PPC
6621       --  set to False, indicating that it is the original specification (e.g.
6622       --  for posting errors). For the other sections, Split_PPC is set True.
6623
6624       ---------------------------------------------
6625       -- 13.4  Enumeration representation clause --
6626       ---------------------------------------------
6627
6628       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6629       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6630
6631       --  In Ada 83, the name must be a direct name
6632
6633       --  N_Enumeration_Representation_Clause
6634       --  Sloc points to FOR
6635       --  Identifier (Node1) direct name
6636       --  Array_Aggregate (Node3)
6637       --  Next_Rep_Item (Node5-Sem)
6638
6639       ---------------------------------
6640       -- 13.4  Enumeration aggregate --
6641       ---------------------------------
6642
6643       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6644
6645       ------------------------------------------
6646       -- 13.5.1  Record representation clause --
6647       ------------------------------------------
6648
6649       --  RECORD_REPRESENTATION_CLAUSE ::=
6650       --    for first_subtype_LOCAL_NAME use
6651       --      record [MOD_CLAUSE]
6652       --        {COMPONENT_CLAUSE}
6653       --      end record;
6654
6655       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6656       --  replaced by a corresponding Alignment attribute definition clause).
6657
6658       --  Note: Component_Clauses can include pragmas
6659
6660       --  N_Record_Representation_Clause
6661       --  Sloc points to FOR
6662       --  Identifier (Node1) direct name
6663       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6664       --  Component_Clauses (List3)
6665       --  Next_Rep_Item (Node5-Sem)
6666
6667       ------------------------------
6668       -- 13.5.1  Component clause --
6669       ------------------------------
6670
6671       --  COMPONENT_CLAUSE ::=
6672       --    component_LOCAL_NAME at POSITION
6673       --      range FIRST_BIT .. LAST_BIT;
6674
6675       --  N_Component_Clause
6676       --  Sloc points to AT
6677       --  Component_Name (Node1) points to Name or Attribute_Reference
6678       --  Position (Node2)
6679       --  First_Bit (Node3)
6680       --  Last_Bit (Node4)
6681
6682       ----------------------
6683       -- 13.5.1  Position --
6684       ----------------------
6685
6686       --  POSITION ::= static_EXPRESSION
6687
6688       -----------------------
6689       -- 13.5.1  First_Bit --
6690       -----------------------
6691
6692       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6693
6694       ----------------------
6695       -- 13.5.1  Last_Bit --
6696       ----------------------
6697
6698       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6699
6700       --------------------------
6701       -- 13.8  Code statement --
6702       --------------------------
6703
6704       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6705
6706       --  Note: in GNAT, the qualified expression has the form
6707
6708       --    Asm_Insn'(Asm (...));
6709
6710       --  See package System.Machine_Code in file s-maccod.ads for details on
6711       --  the allowed parameters to Asm. There are two ways this node can
6712       --  arise, as a code statement, in which case the expression is the
6713       --  qualified expression, or as a result of the expansion of an intrinsic
6714       --  call to the Asm or Asm_Input procedure.
6715
6716       --  N_Code_Statement
6717       --  Sloc points to first token of the expression
6718       --  Expression (Node3)
6719
6720       --  Note: package Exp_Code contains an abstract functional interface
6721       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
6722
6723       ------------------------
6724       -- 13.12  Restriction --
6725       ------------------------
6726
6727       --  RESTRICTION ::=
6728       --    restriction_IDENTIFIER
6729       --  | restriction_parameter_IDENTIFIER => EXPRESSION
6730
6731       --  There is no explicit node for restrictions. Instead the restriction
6732       --  appears in normal pragma syntax as a pragma argument association,
6733       --  which has the same syntactic form.
6734
6735       --------------------------
6736       -- B.2  Shift Operators --
6737       --------------------------
6738
6739       --  Calls to the intrinsic shift functions are converted to one of
6740       --  the following shift nodes, which have the form of normal binary
6741       --  operator names. Note that for a given shift operation, one node
6742       --  covers all possible types, as for normal operators.
6743
6744       --  Note: it is perfectly permissible for the expander to generate
6745       --  shift operation nodes directly, in which case they will be analyzed
6746       --  and parsed in the usual manner.
6747
6748       --  Sprint syntax: shift-function-name!(expr, count)
6749
6750       --  Note: the Left_Opnd field holds the first argument (the value to
6751       --  be shifted). The Right_Opnd field holds the second argument (the
6752       --  shift count). The Chars field is the name of the intrinsic function.
6753
6754       --  N_Op_Rotate_Left
6755       --  Sloc points to the function name
6756       --  plus fields for binary operator
6757       --  plus fields for expression
6758       --  Shift_Count_OK (Flag4-Sem)
6759
6760       --  N_Op_Rotate_Right
6761       --  Sloc points to the function name
6762       --  plus fields for binary operator
6763       --  plus fields for expression
6764       --  Shift_Count_OK (Flag4-Sem)
6765
6766       --  N_Op_Shift_Left
6767       --  Sloc points to the function name
6768       --  plus fields for binary operator
6769       --  plus fields for expression
6770       --  Shift_Count_OK (Flag4-Sem)
6771
6772       --  N_Op_Shift_Right_Arithmetic
6773       --  Sloc points to the function name
6774       --  plus fields for binary operator
6775       --  plus fields for expression
6776       --  Shift_Count_OK (Flag4-Sem)
6777
6778       --  N_Op_Shift_Right
6779       --  Sloc points to the function name
6780       --  plus fields for binary operator
6781       --  plus fields for expression
6782       --  Shift_Count_OK (Flag4-Sem)
6783
6784    --------------------------
6785    -- Obsolescent Features --
6786    --------------------------
6787
6788       --  The syntax descriptions and tree nodes for obsolescent features are
6789       --  grouped together, corresponding to their location in appendix I in
6790       --  the RM. However, parsing and semantic analysis for these constructs
6791       --  is located in an appropriate chapter (see individual notes).
6792
6793       ---------------------------
6794       -- J.3  Delta Constraint --
6795       ---------------------------
6796
6797       --  Note: the parse routine for this construct is located in section
6798       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6799       --  where delta constraint logically belongs.
6800
6801       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6802
6803       --  N_Delta_Constraint
6804       --  Sloc points to DELTA
6805       --  Delta_Expression (Node3)
6806       --  Range_Constraint (Node4) (set to Empty if not present)
6807
6808       --------------------
6809       -- J.7  At Clause --
6810       --------------------
6811
6812       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6813
6814       --  Note: the parse routine for this construct is located in Par-Ch13,
6815       --  and the semantic analysis is in Sem_Ch13, where at clause logically
6816       --  belongs if it were not obsolescent.
6817
6818       --  Note: in Ada 83 the expression must be a simple expression
6819
6820       --  Gigi restriction: This node never appears, it is rewritten as an
6821       --  address attribute definition clause.
6822
6823       --  N_At_Clause
6824       --  Sloc points to FOR
6825       --  Identifier (Node1)
6826       --  Expression (Node3)
6827
6828       ---------------------
6829       -- J.8  Mod clause --
6830       ---------------------
6831
6832       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
6833
6834       --  Note: the parse routine for this construct is located in Par-Ch13,
6835       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
6836       --  belongs if it were not obsolescent.
6837
6838       --  Note: in Ada 83, the expression must be a simple expression
6839
6840       --  Gigi restriction: this node never appears. It is replaced
6841       --  by a corresponding Alignment attribute definition clause.
6842
6843       --  Note: pragmas can appear before and after the MOD_CLAUSE since
6844       --  its name has "clause" in it. This is rather strange, but is quite
6845       --  definitely specified. The pragmas before are collected in the
6846       --  Pragmas_Before field of the mod clause node itself, and pragmas
6847       --  after are simply swallowed up in the list of component clauses.
6848
6849       --  N_Mod_Clause
6850       --  Sloc points to AT
6851       --  Expression (Node3)
6852       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6853
6854    --------------------
6855    -- Semantic Nodes --
6856    --------------------
6857
6858    --  These semantic nodes are used to hold additional semantic information.
6859    --  They are inserted into the tree as a result of semantic processing.
6860    --  Although there are no legitimate source syntax constructions that
6861    --  correspond directly to these nodes, we need a source syntax for the
6862    --  reconstructed tree printed by Sprint, and the node descriptions here
6863    --  show this syntax.
6864
6865    --  Note: Case_Expression and Conditional_Expression is in this section for
6866    --  now, since they are extensions. We will move them to their appropriate
6867    --  places when they are officially approved as extensions (and then we will
6868    --  know what the exact grammar and place in the Reference Manual is!)
6869
6870       ---------------------
6871       -- Case Expression --
6872       ---------------------
6873
6874       --  CASE_EXPRESSION ::=
6875       --    case EXPRESSION is
6876       --      CASE_EXPRESSION_ALTERNATIVE
6877       --      {CASE_EXPRESSION_ALTERNATIVE}
6878
6879       --  Note that the Alternatives cannot include pragmas (this contrasts
6880       --  with the situation of case statements where pragmas are allowed).
6881
6882       --  N_Case_Expression
6883       --  Sloc points to CASE
6884       --  Expression (Node3)
6885       --  Alternatives (List4)
6886
6887       ---------------------------------
6888       -- Case Expression Alternative --
6889       ---------------------------------
6890
6891       --  CASE_STATEMENT_ALTERNATIVE ::=
6892       --    when DISCRETE_CHOICE_LIST =>
6893       --      EXPRESSION
6894
6895       --  N_Case_Expression_Alternative
6896       --  Sloc points to WHEN
6897       --  Actions (List1)
6898       --  Discrete_Choices (List4)
6899       --  Expression (Node3)
6900
6901       --  Note: The Actions field temporarily holds any actions associated with
6902       --  evaluation of the Expression. During expansion of the case expression
6903       --  these actions are wrapped into an N_Expressions_With_Actions node
6904       --  replacing the original expression.
6905
6906       ----------------------------
6907       -- Conditional Expression --
6908       ----------------------------
6909
6910       --  This node is used to represent an expression corresponding to the
6911       --  C construct (condition ? then-expression : else_expression), where
6912       --  Expressions is a three element list, whose first expression is the
6913       --  condition, and whose second and third expressions are the then and
6914       --  else expressions respectively.
6915
6916       --  Note: the Then_Actions and Else_Actions fields are always set to
6917       --  No_List in the tree passed to Gigi. These fields are used only
6918       --  for temporary processing purposes in the expander.
6919
6920       --  The Ada language does not permit conditional expressions, however
6921       --  this is under discussion as a possible extension by the ARG, and we
6922       --  have implemented a form of this capability in GNAT under control of
6923       --  the -gnatX switch. The syntax is:
6924
6925       --  CONDITIONAL_EXPRESSION ::=
6926       --    if EXPRESSION then EXPRESSION
6927       --                  {elsif EXPRESSION then EXPRESSION}
6928       --                  [else EXPRESSION]
6929
6930       --  And we add the additional constructs
6931
6932       --  PRIMARY ::= ( CONDITIONAL_EXPRESSION )
6933       --  PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6934
6935       --  Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6936       --  is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6937       --  the Is_Elsif flag is set on the inner conditional expression.
6938
6939       --  N_Conditional_Expression
6940       --  Sloc points to IF or ELSIF keyword
6941       --  Expressions (List1)
6942       --  Then_Actions (List2-Sem)
6943       --  Else_Actions (List3-Sem)
6944       --  Is_Elsif (Flag13) (set if comes from ELSIF)
6945       --  plus fields for expression
6946
6947       --------------
6948       -- Contract --
6949       --------------
6950
6951       --  This node is used to hold the various parts of an entry or subprogram
6952       --  contract, consisting in pre- and postconditions on the one hand, and
6953       --  test-cases on the other hand.
6954
6955       --  It is referenced from an entry, a subprogram or a generic subprogram
6956       --  entity.
6957
6958       --  Sprint syntax:  <none> as the node should not appear in the tree, but
6959       --                  only attached to an entry or [generic] subprogram
6960       --                  entity.
6961
6962       --  N_Contract
6963       --  Sloc points to the subprogram's name
6964       --  Spec_PPC_List (Node1) (set to Empty if none)
6965       --  Spec_TC_List (Node2) (set to Empty if none)
6966
6967       --  Spec_PPC_List points to a list of Precondition and Postcondition
6968       --  pragma nodes for preconditions and postconditions declared in the
6969       --  spec of the entry/subprogram. The last pragma encountered is at the
6970       --  head of this list, so it is in reverse order of textual appearance.
6971       --  Note that this includes precondition/postcondition pragmas generated
6972       --  to correspond to Pre/Post aspects.
6973
6974       --  Spec_TC_List points to a list of Test_Case pragma nodes for
6975       --  test-cases declared in the spec of the entry/subprogram. The last
6976       --  pragma encountered is at the head of this list, so it is in reverse
6977       --  order of textual appearance. Note that this includes test-case
6978       --  pragmas generated to correspond to Test_Case aspects.
6979
6980       -------------------
6981       -- Expanded_Name --
6982       -------------------
6983
6984       --  The N_Expanded_Name node is used to represent a selected component
6985       --  name that has been resolved to an expanded name. The semantic phase
6986       --  replaces N_Selected_Component nodes that represent names by the use
6987       --  of this node, leaving the N_Selected_Component node used only when
6988       --  the prefix is a record or protected type.
6989
6990       --  The fields of the N_Expanded_Name node are layed out identically
6991       --  to those of the N_Selected_Component node, allowing conversion of
6992       --  an expanded name node to a selected component node to be done
6993       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6994
6995       --  There is no special sprint syntax for an expanded name
6996
6997       --  N_Expanded_Name
6998       --  Sloc points to the period
6999       --  Chars (Name1) copy of Chars field of selector name
7000       --  Prefix (Node3)
7001       --  Selector_Name (Node2)
7002       --  Entity (Node4-Sem)
7003       --  Associated_Node (Node4-Sem)
7004       --  Has_Private_View (Flag11-Sem) set in generic units.
7005       --  Redundant_Use (Flag13-Sem)
7006       --  Atomic_Sync_Required (Flag14-Sem)
7007       --  plus fields for expression
7008
7009       -----------------------------
7010       -- Expression with Actions --
7011       -----------------------------
7012
7013       --  This node is created by the analyzer/expander to handle some
7014       --  expansion cases, notably short circuit forms where there are
7015       --  actions associated with the right-hand side operand.
7016
7017       --  The N_Expression_With_Actions node represents an expression with
7018       --  an associated set of actions (which are executable statements and
7019       --  declarations, as might occur in a handled statement sequence).
7020
7021       --  The required semantics is that the set of actions is executed in
7022       --  the order in which it appears just before the expression is
7023       --  evaluated (and these actions must only be executed if the value
7024       --  of the expression is evaluated). The node is considered to be
7025       --  a subexpression, whose value is the value of the Expression after
7026       --  executing all the actions.
7027
7028       --  Note: if the actions contain declarations, then these declarations
7029       --  may be referenced within the expression. It is thus appropriate for
7030       --  the back-end to create a scope that encompasses the construct (any
7031       --  declarations within the actions will definitely not be referenced
7032       --  once elaboration of the construct is completed).
7033
7034       --  Sprint syntax:  do
7035       --                    action;
7036       --                    action;
7037       --                    ...
7038       --                    action;
7039       --                  in expression end
7040
7041       --  N_Expression_With_Actions
7042       --  Actions (List1)
7043       --  Expression (Node3)
7044       --  plus fields for expression
7045
7046       --  Note: the actions list is always non-null, since we would
7047       --  never have created this node if there weren't some actions.
7048
7049       --------------------
7050       -- Free Statement --
7051       --------------------
7052
7053       --  The N_Free_Statement node is generated as a result of a call to an
7054       --  instantiation of Unchecked_Deallocation. The instantiation of this
7055       --  generic is handled specially and generates this node directly.
7056
7057       --  Sprint syntax: free expression
7058
7059       --  N_Free_Statement
7060       --  Sloc is copied from the unchecked deallocation call
7061       --  Expression (Node3) argument to unchecked deallocation call
7062       --  Storage_Pool (Node1-Sem)
7063       --  Procedure_To_Call (Node2-Sem)
7064       --  Actual_Designated_Subtype (Node4-Sem)
7065
7066       --  Note: in the case where a debug source file is generated, the Sloc
7067       --  for this node points to the FREE keyword in the Sprint file output.
7068
7069       -------------------
7070       -- Freeze Entity --
7071       -------------------
7072
7073       --  This node marks the point in a declarative part at which an entity
7074       --  declared therein becomes frozen. The expander places initialization
7075       --  procedures for types at those points. Gigi uses the freezing point
7076       --  to elaborate entities that may depend on previous private types.
7077
7078       --  See the section in Einfo "Delayed Freezing and Elaboration" for
7079       --  a full description of the use of this node.
7080
7081       --  The Entity field points back to the entity for the type (whose
7082       --  Freeze_Node field points back to this freeze node).
7083
7084       --  The Actions field contains a list of declarations and statements
7085       --  generated by the expander which are associated with the freeze
7086       --  node, and are elaborated as though the freeze node were replaced
7087       --  by this sequence of actions.
7088
7089       --  Note: the Sloc field in the freeze node references a construct
7090       --  associated with the freezing point. This is used for posting
7091       --  messages in some error/warning situations, e.g. the case where
7092       --  a primitive operation of a tagged type is declared too late.
7093
7094       --  Sprint syntax: freeze entity-name [
7095       --                   freeze actions
7096       --                 ]
7097
7098       --  N_Freeze_Entity
7099       --  Sloc points near freeze point (see above special note)
7100       --  Entity (Node4-Sem)
7101       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7102       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7103       --  Actions (List1) (set to No_List if no freeze actions)
7104       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7105
7106       --  The Actions field holds actions associated with the freeze. These
7107       --  actions are elaborated at the point where the type is frozen.
7108
7109       --  Note: in the case where a debug source file is generated, the Sloc
7110       --  for this node points to the FREEZE keyword in the Sprint file output.
7111
7112       --------------------------------
7113       -- Implicit Label Declaration --
7114       --------------------------------
7115
7116       --  An implicit label declaration is created for every occurrence of a
7117       --  label on a statement or a label on a block or loop. It is chained
7118       --  in the declarations of the innermost enclosing block as specified
7119       --  in RM section 5.1 (3).
7120
7121       --  The Defining_Identifier is the actual identifier for the statement
7122       --  identifier. Note that the occurrence of the label is a reference, NOT
7123       --  the defining occurrence. The defining occurrence occurs at the head
7124       --  of the innermost enclosing block, and is represented by this node.
7125
7126       --  Note: from the grammar, this might better be called an implicit
7127       --  statement identifier declaration, but the term we choose seems
7128       --  friendlier, since at least informally statement identifiers are
7129       --  called labels in both cases (i.e. when used in labels, and when
7130       --  used as the identifiers of blocks and loops).
7131
7132       --  Note: although this is logically a semantic node, since it does not
7133       --  correspond directly to a source syntax construction, these nodes are
7134       --  actually created by the parser in a post pass done just after parsing
7135       --  is complete, before semantic analysis is started (see Par.Labl).
7136
7137       --  Sprint syntax: labelname : label;
7138
7139       --  N_Implicit_Label_Declaration
7140       --  Sloc points to the << of the label
7141       --  Defining_Identifier (Node1)
7142       --  Label_Construct (Node2-Sem)
7143
7144       --  Note: in the case where a debug source file is generated, the Sloc
7145       --  for this node points to the label name in the generated declaration.
7146
7147       ---------------------
7148       -- Itype_Reference --
7149       ---------------------
7150
7151       --  This node is used to create a reference to an Itype. The only purpose
7152       --  is to make sure the Itype is defined if this is the first reference.
7153
7154       --  A typical use of this node is when an Itype is to be referenced in
7155       --  two branches of an IF statement. In this case it is important that
7156       --  the first use of the Itype not be inside the conditional, since then
7157       --  it might not be defined if the other branch of the IF is taken, in
7158       --  the case where the definition generates elaboration code.
7159
7160       --  The Itype field points to the referenced Itype
7161
7162       --  Sprint syntax: reference itype-name
7163
7164       --  N_Itype_Reference
7165       --  Sloc points to the node generating the reference
7166       --  Itype (Node1-Sem)
7167
7168       --  Note: in the case where a debug source file is generated, the Sloc
7169       --  for this node points to the REFERENCE keyword in the file output.
7170
7171       ---------------------
7172       -- Raise_xxx_Error --
7173       ---------------------
7174
7175       --  One of these nodes is created during semantic analysis to replace
7176       --  a node for an expression that is determined to definitely raise
7177       --  the corresponding exception.
7178
7179       --  The N_Raise_xxx_Error node may also stand alone in place
7180       --  of a declaration or statement, in which case it simply causes
7181       --  the exception to be raised (i.e. it is equivalent to a raise
7182       --  statement that raises the corresponding exception). This use
7183       --  is distinguished by the fact that the Etype in this case is
7184       --  Standard_Void_Type, In the subexpression case, the Etype is the
7185       --  same as the type of the subexpression which it replaces.
7186
7187       --  If Condition is empty, then the raise is unconditional. If the
7188       --  Condition field is non-empty, it is a boolean expression which
7189       --  is first evaluated, and the exception is raised only if the
7190       --  value of the expression is True. In the unconditional case, the
7191       --  creation of this node is usually accompanied by a warning message
7192       --  error. The creation of this node will usually be accompanied by a
7193       --  message (unless it appears within the right operand of a short
7194       --  circuit form whose left argument is static and decisively
7195       --  eliminates elaboration of the raise operation. The condition field
7196       --  can ONLY be present when the node is used as a statement form, it
7197       --  may NOT be present in the case where the node appears within an
7198       --  expression.
7199
7200       --  The exception is generated with a message that contains the
7201       --  file name and line number, and then appended text. The Reason
7202       --  code shows the text to be added. The Reason code is an element
7203       --  of the type Types.RT_Exception_Code, and indicates both the
7204       --  message to be added, and the exception to be raised (which must
7205       --  match the node type). The value is stored by storing a Uint which
7206       --  is the Pos value of the enumeration element in this type.
7207
7208       --  Gigi restriction: This expander ensures that the type of the
7209       --  Condition field is always Standard.Boolean, even if the type
7210       --  in the source is some non-standard boolean type.
7211
7212       --  Sprint syntax: [xxx_error "msg"]
7213       --             or: [xxx_error when condition "msg"]
7214
7215       --  N_Raise_Constraint_Error
7216       --  Sloc references related construct
7217       --  Condition (Node1) (set to Empty if no condition)
7218       --  Reason (Uint3)
7219       --  plus fields for expression
7220
7221       --  N_Raise_Program_Error
7222       --  Sloc references related construct
7223       --  Condition (Node1) (set to Empty if no condition)
7224       --  Reason (Uint3)
7225       --  plus fields for expression
7226
7227       --  N_Raise_Storage_Error
7228       --  Sloc references related construct
7229       --  Condition (Node1) (set to Empty if no condition)
7230       --  Reason (Uint3)
7231       --  plus fields for expression
7232
7233       --  Note: Sloc is copied from the expression generating the exception.
7234       --  In the case where a debug source file is generated, the Sloc for
7235       --  this node points to the left bracket in the Sprint file output.
7236
7237       --  Note: the back end may be required to translate these nodes into
7238       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7239
7240       ---------------------------------------------
7241       -- Optimization of Exception Raise to Goto --
7242       ---------------------------------------------
7243
7244       --  In some cases, the front end will determine that any exception raised
7245       --  by the back end for a certain exception should be transformed into a
7246       --  goto statement.
7247
7248       --  There are three kinds of exceptions raised by the back end (note that
7249       --  for this purpose we consider gigi to be part of the back end in the
7250       --  gcc case):
7251
7252       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
7253       --     2. Exceptions from checks triggered by Do_xxx_Check flags
7254       --     3. Other cases not specifically marked by the front end
7255
7256       --  Normally all such exceptions are translated into calls to the proper
7257       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
7258       --  and the exception message.
7259
7260       --  The front end may determine that for a particular sequence of code,
7261       --  exceptions in any of these three categories for a particular builtin
7262       --  exception should result in a goto, rather than a call to Rcheck_xx.
7263       --  The exact sequence to be generated is:
7264
7265       --      Local_Raise (exception'Identity);
7266       --      goto Label
7267
7268       --  The front end marks such a sequence of code by bracketing it with
7269       --  push and pop nodes:
7270
7271       --       N_Push_xxx_Label (referencing the label)
7272       --       ...
7273       --       (code where transformation is expected for exception xxx)
7274       --       ...
7275       --       N_Pop_xxx_Label
7276
7277       --  The use of push/pop reflects the fact that such regions can properly
7278       --  nest, and one special case is a subregion in which no transformation
7279       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7280       --  Exception_Label field is Empty.
7281
7282       --  N_Push_Constraint_Error_Label
7283       --  Sloc references first statement in region covered
7284       --  Exception_Label (Node5-Sem)
7285
7286       --  N_Push_Program_Error_Label
7287       --  Sloc references first statement in region covered
7288       --  Exception_Label (Node5-Sem)
7289
7290       --  N_Push_Storage_Error_Label
7291       --  Sloc references first statement in region covered
7292       --  Exception_Label (Node5-Sem)
7293
7294       --  N_Pop_Constraint_Error_Label
7295       --  Sloc references last statement in region covered
7296
7297       --  N_Pop_Program_Error_Label
7298       --  Sloc references last statement in region covered
7299
7300       --  N_Pop_Storage_Error_Label
7301       --  Sloc references last statement in region covered
7302
7303       ---------------
7304       -- Reference --
7305       ---------------
7306
7307       --  For a number of purposes, we need to construct references to objects.
7308       --  These references are subsequently treated as normal access values.
7309       --  An example is the construction of the parameter block passed to a
7310       --  task entry. The N_Reference node is provided for this purpose. It is
7311       --  similar in effect to the use of the Unrestricted_Access attribute,
7312       --  and like Unrestricted_Access can be applied to objects which would
7313       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
7314       --  objects which are not aliased, and slices). In addition it can be
7315       --  applied to composite type values as well as objects, including string
7316       --  values and aggregates.
7317
7318       --  Note: we use the Prefix field for this expression so that the
7319       --  resulting node can be treated using common code with the attribute
7320       --  nodes for the 'Access and related attributes. Logically it would make
7321       --  more sense to call it an Expression field, but then we would have to
7322       --  special case the treatment of the N_Reference node.
7323
7324       --  Note: evaluating a N_Reference node is guaranteed to yield a non-null
7325       --  value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7326       --  a temporary initialized to a N_Reference node in order to eliminate
7327       --  superfluous access checks.
7328
7329       --  Sprint syntax: prefix'reference
7330
7331       --  N_Reference
7332       --  Sloc is copied from the expression
7333       --  Prefix (Node3)
7334       --  plus fields for expression
7335
7336       --  Note: in the case where a debug source file is generated, the Sloc
7337       --  for this node points to the quote in the Sprint file output.
7338
7339       -----------------
7340       --  SCIL Nodes --
7341       -----------------
7342
7343       --  SCIL nodes are special nodes added to the tree when the CodePeer
7344       --  mode is active. They help the CodePeer backend to locate nodes that
7345       --  require special processing.
7346
7347       --  Major documentation on the general design of the SCIL interface, and
7348       --  in particular detailed description of these nodes is missing and is
7349       --  to be supplied in the future, when the design has finalized ???
7350
7351       --  Meanwhile these nodes should be considered in experimental form, and
7352       --  should be ignored by all code generating back ends. ???
7353
7354       --  N_SCIL_Dispatch_Table_Tag_Init
7355       --  Sloc references a node for a tag initialization
7356       --  SCIL_Entity (Node4-Sem)
7357
7358       --  N_SCIL_Dispatching_Call
7359       --  Sloc references the node of a dispatching call
7360       --  SCIL_Target_Prim (Node2-Sem)
7361       --  SCIL_Entity (Node4-Sem)
7362       --  SCIL_Controlling_Tag (Node5-Sem)
7363
7364       --  N_SCIL_Membership_Test
7365       --  Sloc references the node of a membership test
7366       --  SCIL_Tag_Value (Node5-Sem)
7367       --  SCIL_Entity (Node4-Sem)
7368
7369       ---------------------
7370       -- Subprogram_Info --
7371       ---------------------
7372
7373       --  This node generates the appropriate Subprogram_Info value for a
7374       --  given procedure. See Ada.Exceptions for further details
7375
7376       --  Sprint syntax: subprog'subprogram_info
7377
7378       --  N_Subprogram_Info
7379       --  Sloc points to the entity for the procedure
7380       --  Identifier (Node1) identifier referencing the procedure
7381       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7382
7383       --  Note: in the case where a debug source file is generated, the Sloc
7384       --  for this node points to the quote in the Sprint file output.
7385
7386       --------------------------
7387       -- Unchecked Expression --
7388       --------------------------
7389
7390       --  An unchecked expression is one that must be analyzed and resolved
7391       --  with all checks off, regardless of the current setting of scope
7392       --  suppress flags.
7393
7394       --  Sprint syntax: `(expression)
7395
7396       --  Note: this node is always removed from the tree (and replaced by
7397       --  its constituent expression) on completion of analysis, so it only
7398       --  appears in intermediate trees, and will never be seen by Gigi.
7399
7400       --  N_Unchecked_Expression
7401       --  Sloc is a copy of the Sloc of the expression
7402       --  Expression (Node3)
7403       --  plus fields for expression
7404
7405       --  Note: in the case where a debug source file is generated, the Sloc
7406       --  for this node points to the back quote in the Sprint file output.
7407
7408       -------------------------------
7409       -- Unchecked Type Conversion --
7410       -------------------------------
7411
7412       --  An unchecked type conversion node represents the semantic action
7413       --  corresponding to a call to an instantiation of Unchecked_Conversion.
7414       --  It is generated as a result of actual use of Unchecked_Conversion
7415       --  and also the expander generates unchecked type conversion nodes
7416       --  directly for expansion of complex semantic actions.
7417
7418       --  Note: an unchecked type conversion is a variable as far as the
7419       --  semantics are concerned, which is convenient for the expander.
7420       --  This does not change what Ada source programs are legal, since
7421       --  clearly a function call to an instantiation of Unchecked_Conversion
7422       --  is not a variable in any case.
7423
7424       --  Sprint syntax: subtype-mark!(expression)
7425
7426       --  N_Unchecked_Type_Conversion
7427       --  Sloc points to related node in source
7428       --  Subtype_Mark (Node4)
7429       --  Expression (Node3)
7430       --  Kill_Range_Check (Flag11-Sem)
7431       --  No_Truncation (Flag17-Sem)
7432       --  plus fields for expression
7433
7434       --  Note: in the case where a debug source file is generated, the Sloc
7435       --  for this node points to the exclamation in the Sprint file output.
7436
7437       -----------------------------------
7438       -- Validate_Unchecked_Conversion --
7439       -----------------------------------
7440
7441       --  The front end does most of the validation of unchecked conversion,
7442       --  including checking sizes (this is done after the back end is called
7443       --  to take advantage of back-annotation of calculated sizes).
7444
7445       --  The front end also deals with specific cases that are not allowed
7446       --  e.g. involving unconstrained array types.
7447
7448       --  For the case of the standard gigi backend, this means that all
7449       --  checks are done in the front-end.
7450
7451       --  However, in the case of specialized back-ends, notably the JVM
7452       --  backend for JGNAT, additional requirements and restrictions apply
7453       --  to unchecked conversion, and these are most conveniently performed
7454       --  in the specialized back-end.
7455
7456       --  To accommodate this requirement, for such back ends, the following
7457       --  special node is generated recording an unchecked conversion that
7458       --  needs to be validated. The back end should post an appropriate
7459       --  error message if the unchecked conversion is invalid or warrants
7460       --  a special warning message.
7461
7462       --  Source_Type and Target_Type point to the entities for the two
7463       --  types involved in the unchecked conversion instantiation that
7464       --  is to be validated.
7465
7466       --  Sprint syntax: validate Unchecked_Conversion (source, target);
7467
7468       --  N_Validate_Unchecked_Conversion
7469       --  Sloc points to instantiation (location for warning message)
7470       --  Source_Type (Node1-Sem)
7471       --  Target_Type (Node2-Sem)
7472
7473       --  Note: in the case where a debug source file is generated, the Sloc
7474       --  for this node points to the VALIDATE keyword in the file output.
7475
7476    -----------
7477    -- Empty --
7478    -----------
7479
7480    --  Used as the contents of the Nkind field of the dummy Empty node
7481    --  and in some other situations to indicate an uninitialized value.
7482
7483    --  N_Empty
7484    --  Chars (Name1) is set to No_Name
7485
7486    -----------
7487    -- Error --
7488    -----------
7489
7490    --  Used as the contents of the Nkind field of the dummy Error node.
7491    --  Has an Etype field, which gets set to Any_Type later on, to help
7492    --  error recovery (Error_Posted is also set in the Error node).
7493
7494    --  N_Error
7495    --  Chars (Name1) is set to Error_Name
7496    --  Etype (Node5-Sem)
7497
7498    --------------------------
7499    -- Node Type Definition --
7500    --------------------------
7501
7502    --  The following is the definition of the Node_Kind type. As previously
7503    --  discussed, this is separated off to allow rearrangement of the order to
7504    --  facilitate definition of subtype ranges. The comments show the subtype
7505    --  classes which apply to each set of node kinds. The first entry in the
7506    --  comment characterizes the following list of nodes.
7507
7508    type Node_Kind is (
7509       N_Unused_At_Start,
7510
7511       --  N_Representation_Clause
7512
7513       N_At_Clause,
7514       N_Component_Clause,
7515       N_Enumeration_Representation_Clause,
7516       N_Mod_Clause,
7517       N_Record_Representation_Clause,
7518
7519       --  N_Representation_Clause, N_Has_Chars
7520
7521       N_Attribute_Definition_Clause,
7522
7523       --  N_Has_Chars
7524
7525       N_Empty,
7526       N_Pragma_Argument_Association,
7527
7528       --  N_Has_Etype, N_Has_Chars
7529
7530       --  Note: of course N_Error does not really have Etype or Chars fields,
7531       --  and any attempt to access these fields in N_Error will cause an
7532       --  error, but historically this always has been positioned so that an
7533       --  "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
7534       --  Most likely this makes coding easier somewhere but still seems
7535       --  undesirable. To be investigated some time ???
7536
7537       N_Error,
7538
7539       --  N_Entity, N_Has_Etype, N_Has_Chars
7540
7541       N_Defining_Character_Literal,
7542       N_Defining_Identifier,
7543       N_Defining_Operator_Symbol,
7544
7545       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7546
7547       N_Expanded_Name,
7548
7549       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7550       --  N_Has_Chars, N_Has_Entity
7551
7552       N_Identifier,
7553       N_Operator_Symbol,
7554
7555       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7556       --  N_Has_Chars, N_Has_Entity
7557
7558       N_Character_Literal,
7559
7560       --  N_Binary_Op, N_Op, N_Subexpr,
7561       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
7562
7563       N_Op_Add,
7564       N_Op_Concat,
7565       N_Op_Expon,
7566       N_Op_Subtract,
7567
7568       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7569       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7570
7571       N_Op_Divide,
7572       N_Op_Mod,
7573       N_Op_Multiply,
7574       N_Op_Rem,
7575
7576       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7577       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7578
7579       N_Op_And,
7580
7581       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7582       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7583
7584       N_Op_Eq,
7585       N_Op_Ge,
7586       N_Op_Gt,
7587       N_Op_Le,
7588       N_Op_Lt,
7589       N_Op_Ne,
7590
7591       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7592       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7593
7594       N_Op_Or,
7595       N_Op_Xor,
7596
7597       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7598       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
7599
7600       N_Op_Rotate_Left,
7601       N_Op_Rotate_Right,
7602       N_Op_Shift_Left,
7603       N_Op_Shift_Right,
7604       N_Op_Shift_Right_Arithmetic,
7605
7606       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7607       --  N_Has_Chars, N_Has_Entity
7608
7609       N_Op_Abs,
7610       N_Op_Minus,
7611       N_Op_Not,
7612       N_Op_Plus,
7613
7614       --  N_Subexpr, N_Has_Etype, N_Has_Entity
7615
7616       N_Attribute_Reference,
7617
7618       --  N_Subexpr, N_Has_Etype, N_Membership_Test
7619
7620       N_In,
7621       N_Not_In,
7622
7623       --  N_Subexpr, N_Has_Etype, N_Short_Circuit
7624
7625       N_And_Then,
7626       N_Or_Else,
7627
7628       --  N_Subexpr, N_Has_Etype
7629
7630       N_Conditional_Expression,
7631       N_Explicit_Dereference,
7632       N_Expression_With_Actions,
7633       N_Function_Call,
7634       N_Indexed_Component,
7635       N_Integer_Literal,
7636       N_Null,
7637       N_Procedure_Call_Statement,
7638       N_Qualified_Expression,
7639       N_Quantified_Expression,
7640
7641       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7642
7643       N_Raise_Constraint_Error,
7644       N_Raise_Program_Error,
7645       N_Raise_Storage_Error,
7646
7647       --  N_Subexpr, N_Has_Etype
7648
7649       N_Aggregate,
7650       N_Allocator,
7651       N_Case_Expression,
7652       N_Extension_Aggregate,
7653       N_Range,
7654       N_Real_Literal,
7655       N_Reference,
7656       N_Selected_Component,
7657       N_Slice,
7658       N_String_Literal,
7659       N_Subprogram_Info,
7660       N_Type_Conversion,
7661       N_Unchecked_Expression,
7662       N_Unchecked_Type_Conversion,
7663
7664       --  N_Has_Etype
7665
7666       N_Subtype_Indication,
7667
7668       --  N_Declaration
7669
7670       N_Component_Declaration,
7671       N_Entry_Declaration,
7672       N_Expression_Function,
7673       N_Formal_Object_Declaration,
7674       N_Formal_Type_Declaration,
7675       N_Full_Type_Declaration,
7676       N_Incomplete_Type_Declaration,
7677       N_Iterator_Specification,
7678       N_Loop_Parameter_Specification,
7679       N_Object_Declaration,
7680       N_Protected_Type_Declaration,
7681       N_Private_Extension_Declaration,
7682       N_Private_Type_Declaration,
7683       N_Subtype_Declaration,
7684
7685       --  N_Subprogram_Specification, N_Declaration
7686
7687       N_Function_Specification,
7688       N_Procedure_Specification,
7689
7690       --  N_Access_To_Subprogram_Definition
7691
7692       N_Access_Function_Definition,
7693       N_Access_Procedure_Definition,
7694
7695       --  N_Later_Decl_Item
7696
7697       N_Task_Type_Declaration,
7698
7699       --  N_Body_Stub, N_Later_Decl_Item
7700
7701       N_Package_Body_Stub,
7702       N_Protected_Body_Stub,
7703       N_Subprogram_Body_Stub,
7704       N_Task_Body_Stub,
7705
7706       --  N_Generic_Instantiation, N_Later_Decl_Item
7707       --  N_Subprogram_Instantiation
7708
7709       N_Function_Instantiation,
7710       N_Procedure_Instantiation,
7711
7712       --  N_Generic_Instantiation, N_Later_Decl_Item
7713
7714       N_Package_Instantiation,
7715
7716       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7717
7718       N_Package_Body,
7719       N_Subprogram_Body,
7720
7721       --  N_Later_Decl_Item, N_Proper_Body
7722
7723       N_Protected_Body,
7724       N_Task_Body,
7725
7726       --  N_Later_Decl_Item
7727
7728       N_Implicit_Label_Declaration,
7729       N_Package_Declaration,
7730       N_Single_Task_Declaration,
7731       N_Subprogram_Declaration,
7732       N_Use_Package_Clause,
7733
7734       --  N_Generic_Declaration, N_Later_Decl_Item
7735
7736       N_Generic_Package_Declaration,
7737       N_Generic_Subprogram_Declaration,
7738
7739       --  N_Array_Type_Definition
7740
7741       N_Constrained_Array_Definition,
7742       N_Unconstrained_Array_Definition,
7743
7744       --  N_Renaming_Declaration
7745
7746       N_Exception_Renaming_Declaration,
7747       N_Object_Renaming_Declaration,
7748       N_Package_Renaming_Declaration,
7749       N_Subprogram_Renaming_Declaration,
7750
7751       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
7752
7753       N_Generic_Function_Renaming_Declaration,
7754       N_Generic_Package_Renaming_Declaration,
7755       N_Generic_Procedure_Renaming_Declaration,
7756
7757       --  N_Statement_Other_Than_Procedure_Call
7758
7759       N_Abort_Statement,
7760       N_Accept_Statement,
7761       N_Assignment_Statement,
7762       N_Asynchronous_Select,
7763       N_Block_Statement,
7764       N_Case_Statement,
7765       N_Code_Statement,
7766       N_Conditional_Entry_Call,
7767
7768       --  N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
7769
7770       N_Delay_Relative_Statement,
7771       N_Delay_Until_Statement,
7772
7773       --  N_Statement_Other_Than_Procedure_Call
7774
7775       N_Entry_Call_Statement,
7776       N_Free_Statement,
7777       N_Goto_Statement,
7778       N_Loop_Statement,
7779       N_Null_Statement,
7780       N_Raise_Statement,
7781       N_Requeue_Statement,
7782       N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7783       N_Extended_Return_Statement,
7784       N_Selective_Accept,
7785       N_Timed_Entry_Call,
7786
7787       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7788
7789       N_Exit_Statement,
7790       N_If_Statement,
7791
7792       --  N_Has_Condition
7793
7794       N_Accept_Alternative,
7795       N_Delay_Alternative,
7796       N_Elsif_Part,
7797       N_Entry_Body_Formal_Part,
7798       N_Iteration_Scheme,
7799       N_Terminate_Alternative,
7800
7801       --  N_Formal_Subprogram_Declaration
7802
7803       N_Formal_Abstract_Subprogram_Declaration,
7804       N_Formal_Concrete_Subprogram_Declaration,
7805
7806       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
7807
7808       N_Push_Constraint_Error_Label,
7809       N_Push_Program_Error_Label,
7810       N_Push_Storage_Error_Label,
7811
7812       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7813
7814       N_Pop_Constraint_Error_Label,
7815       N_Pop_Program_Error_Label,
7816       N_Pop_Storage_Error_Label,
7817
7818       --  SCIL nodes
7819
7820       N_SCIL_Dispatch_Table_Tag_Init,
7821       N_SCIL_Dispatching_Call,
7822       N_SCIL_Membership_Test,
7823
7824       --  Other nodes (not part of any subtype class)
7825
7826       N_Abortable_Part,
7827       N_Abstract_Subprogram_Declaration,
7828       N_Access_Definition,
7829       N_Access_To_Object_Definition,
7830       N_Aspect_Specification,
7831       N_Case_Expression_Alternative,
7832       N_Case_Statement_Alternative,
7833       N_Compilation_Unit,
7834       N_Compilation_Unit_Aux,
7835       N_Component_Association,
7836       N_Component_Definition,
7837       N_Component_List,
7838       N_Contract,
7839       N_Derived_Type_Definition,
7840       N_Decimal_Fixed_Point_Definition,
7841       N_Defining_Program_Unit_Name,
7842       N_Delta_Constraint,
7843       N_Designator,
7844       N_Digits_Constraint,
7845       N_Discriminant_Association,
7846       N_Discriminant_Specification,
7847       N_Enumeration_Type_Definition,
7848       N_Entry_Body,
7849       N_Entry_Call_Alternative,
7850       N_Entry_Index_Specification,
7851       N_Exception_Declaration,
7852       N_Exception_Handler,
7853       N_Floating_Point_Definition,
7854       N_Formal_Decimal_Fixed_Point_Definition,
7855       N_Formal_Derived_Type_Definition,
7856       N_Formal_Discrete_Type_Definition,
7857       N_Formal_Floating_Point_Definition,
7858       N_Formal_Modular_Type_Definition,
7859       N_Formal_Ordinary_Fixed_Point_Definition,
7860       N_Formal_Package_Declaration,
7861       N_Formal_Private_Type_Definition,
7862       N_Formal_Incomplete_Type_Definition,
7863       N_Formal_Signed_Integer_Type_Definition,
7864       N_Freeze_Entity,
7865       N_Generic_Association,
7866       N_Handled_Sequence_Of_Statements,
7867       N_Index_Or_Discriminant_Constraint,
7868       N_Itype_Reference,
7869       N_Label,
7870       N_Modular_Type_Definition,
7871       N_Number_Declaration,
7872       N_Ordinary_Fixed_Point_Definition,
7873       N_Others_Choice,
7874       N_Package_Specification,
7875       N_Parameter_Association,
7876       N_Parameter_Specification,
7877       N_Pragma,
7878       N_Protected_Definition,
7879       N_Range_Constraint,
7880       N_Real_Range_Specification,
7881       N_Record_Definition,
7882       N_Signed_Integer_Type_Definition,
7883       N_Single_Protected_Declaration,
7884       N_Subunit,
7885       N_Task_Definition,
7886       N_Triggering_Alternative,
7887       N_Use_Type_Clause,
7888       N_Validate_Unchecked_Conversion,
7889       N_Variant,
7890       N_Variant_Part,
7891       N_With_Clause,
7892       N_Unused_At_End);
7893
7894    for Node_Kind'Size use 8;
7895    --  The data structures in Atree assume this!
7896
7897    ----------------------------
7898    -- Node Class Definitions --
7899    ----------------------------
7900
7901    subtype N_Access_To_Subprogram_Definition is Node_Kind range
7902      N_Access_Function_Definition ..
7903      N_Access_Procedure_Definition;
7904
7905    subtype N_Array_Type_Definition is Node_Kind range
7906      N_Constrained_Array_Definition ..
7907      N_Unconstrained_Array_Definition;
7908
7909    subtype N_Binary_Op is Node_Kind range
7910      N_Op_Add ..
7911      N_Op_Shift_Right_Arithmetic;
7912
7913    subtype N_Body_Stub is Node_Kind range
7914      N_Package_Body_Stub ..
7915      N_Task_Body_Stub;
7916
7917    subtype N_Declaration is Node_Kind range
7918      N_Component_Declaration ..
7919      N_Procedure_Specification;
7920    --  Note: this includes all constructs normally thought of as declarations
7921    --  except those which are separately grouped as later declarations.
7922
7923    subtype N_Delay_Statement is Node_Kind range
7924       N_Delay_Relative_Statement ..
7925       N_Delay_Until_Statement;
7926
7927    subtype N_Direct_Name is Node_Kind range
7928      N_Identifier ..
7929      N_Character_Literal;
7930
7931    subtype N_Entity is Node_Kind range
7932      N_Defining_Character_Literal ..
7933      N_Defining_Operator_Symbol;
7934
7935    subtype N_Formal_Subprogram_Declaration is Node_Kind range
7936      N_Formal_Abstract_Subprogram_Declaration ..
7937      N_Formal_Concrete_Subprogram_Declaration;
7938
7939    subtype N_Generic_Declaration is Node_Kind range
7940      N_Generic_Package_Declaration ..
7941      N_Generic_Subprogram_Declaration;
7942
7943    subtype N_Generic_Instantiation is Node_Kind range
7944      N_Function_Instantiation ..
7945      N_Package_Instantiation;
7946
7947    subtype N_Generic_Renaming_Declaration is Node_Kind range
7948      N_Generic_Function_Renaming_Declaration ..
7949      N_Generic_Procedure_Renaming_Declaration;
7950
7951    subtype N_Has_Chars is Node_Kind range
7952      N_Attribute_Definition_Clause ..
7953      N_Op_Plus;
7954
7955    subtype N_Has_Entity is Node_Kind range
7956      N_Expanded_Name ..
7957      N_Attribute_Reference;
7958    --  Nodes that have Entity fields
7959    --  Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
7960    --  or N_Attribute_Definition_Clause.
7961
7962    subtype N_Has_Etype is Node_Kind range
7963      N_Error ..
7964      N_Subtype_Indication;
7965
7966    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7967       N_Op_Divide ..
7968       N_Op_Rem;
7969
7970    subtype N_Multiplying_Operator is Node_Kind range
7971       N_Op_Divide ..
7972       N_Op_Rem;
7973
7974    subtype N_Later_Decl_Item is Node_Kind range
7975      N_Task_Type_Declaration ..
7976      N_Generic_Subprogram_Declaration;
7977    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7978    --  only those items which can appear as later declarative items. This also
7979    --  includes N_Implicit_Label_Declaration which is not specifically in the
7980    --  grammar but may appear as a valid later declarative items. It does NOT
7981    --  include N_Pragma which can also appear among later declarative items.
7982    --  It does however include N_Protected_Body, which is a bit peculiar, but
7983    --  harmless since this cannot appear in Ada 83 mode anyway.
7984
7985    subtype N_Membership_Test is Node_Kind range
7986       N_In ..
7987       N_Not_In;
7988
7989    subtype N_Op is Node_Kind range
7990      N_Op_Add ..
7991      N_Op_Plus;
7992
7993    subtype N_Op_Boolean is Node_Kind range
7994      N_Op_And ..
7995      N_Op_Xor;
7996    --  Binary operators which take operands of a boolean type, and yield
7997    --  a result of a boolean type.
7998
7999    subtype N_Op_Compare is Node_Kind range
8000      N_Op_Eq ..
8001      N_Op_Ne;
8002
8003    subtype N_Op_Shift is Node_Kind range
8004      N_Op_Rotate_Left ..
8005      N_Op_Shift_Right_Arithmetic;
8006
8007    subtype N_Proper_Body is Node_Kind range
8008      N_Package_Body ..
8009      N_Task_Body;
8010
8011    subtype N_Push_xxx_Label is Node_Kind range
8012      N_Push_Constraint_Error_Label ..
8013      N_Push_Storage_Error_Label;
8014
8015    subtype N_Pop_xxx_Label is Node_Kind range
8016      N_Pop_Constraint_Error_Label ..
8017      N_Pop_Storage_Error_Label;
8018
8019    subtype N_Push_Pop_xxx_Label is Node_Kind range
8020      N_Push_Constraint_Error_Label ..
8021      N_Pop_Storage_Error_Label;
8022
8023    subtype N_Raise_xxx_Error is Node_Kind range
8024      N_Raise_Constraint_Error ..
8025      N_Raise_Storage_Error;
8026
8027    subtype N_Renaming_Declaration is Node_Kind range
8028      N_Exception_Renaming_Declaration ..
8029      N_Generic_Procedure_Renaming_Declaration;
8030
8031    subtype N_Representation_Clause is Node_Kind range
8032      N_At_Clause ..
8033      N_Attribute_Definition_Clause;
8034
8035    subtype N_Short_Circuit is Node_Kind range
8036      N_And_Then ..
8037      N_Or_Else;
8038
8039    subtype N_SCIL_Node is Node_Kind range
8040      N_SCIL_Dispatch_Table_Tag_Init ..
8041      N_SCIL_Membership_Test;
8042
8043    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8044      N_Abort_Statement ..
8045      N_If_Statement;
8046    --  Note that this includes all statement types except for the cases of the
8047    --  N_Procedure_Call_Statement which is considered to be a subexpression
8048    --  (since overloading is possible, so it needs to go through the normal
8049    --  overloading resolution for expressions).
8050
8051    subtype N_Subprogram_Instantiation is Node_Kind range
8052      N_Function_Instantiation ..
8053      N_Procedure_Instantiation;
8054
8055    subtype N_Has_Condition is Node_Kind range
8056      N_Exit_Statement ..
8057      N_Terminate_Alternative;
8058    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
8059
8060    subtype N_Subexpr is Node_Kind range
8061      N_Expanded_Name ..
8062      N_Unchecked_Type_Conversion;
8063    --  Nodes with expression fields
8064
8065    subtype N_Subprogram_Specification is Node_Kind range
8066      N_Function_Specification ..
8067      N_Procedure_Specification;
8068
8069    subtype N_Unary_Op is Node_Kind range
8070      N_Op_Abs ..
8071      N_Op_Plus;
8072
8073    subtype N_Unit_Body is Node_Kind range
8074      N_Package_Body ..
8075        N_Subprogram_Body;
8076
8077    ---------------------------
8078    -- Node Access Functions --
8079    ---------------------------
8080
8081    --  The following functions return the contents of the indicated field of
8082    --  the node referenced by the argument, which is a Node_Id. They provide
8083    --  logical access to fields in the node which could be accessed using the
8084    --  Atree.Unchecked_Access package, but the idea is always to use these
8085    --  higher level routines which preserve strong typing. In debug mode,
8086    --  these routines check that they are being applied to an appropriate
8087    --  node, as well as checking that the node is in range.
8088
8089    function ABE_Is_Certain
8090      (N : Node_Id) return Boolean;    -- Flag18
8091
8092    function Abort_Present
8093      (N : Node_Id) return Boolean;    -- Flag15
8094
8095    function Abortable_Part
8096      (N : Node_Id) return Node_Id;    -- Node2
8097
8098    function Abstract_Present
8099      (N : Node_Id) return Boolean;    -- Flag4
8100
8101    function Accept_Handler_Records
8102      (N : Node_Id) return List_Id;    -- List5
8103
8104    function Accept_Statement
8105      (N : Node_Id) return Node_Id;    -- Node2
8106
8107    function Access_Definition
8108      (N : Node_Id) return Node_Id;    -- Node3
8109
8110    function Access_To_Subprogram_Definition
8111      (N : Node_Id) return Node_Id;    -- Node3
8112
8113    function Access_Types_To_Process
8114      (N : Node_Id) return Elist_Id;   -- Elist2
8115
8116    function Actions
8117      (N : Node_Id) return List_Id;    -- List1
8118
8119    function Activation_Chain_Entity
8120      (N : Node_Id) return Node_Id;    -- Node3
8121
8122    function Acts_As_Spec
8123      (N : Node_Id) return Boolean;    -- Flag4
8124
8125    function Actual_Designated_Subtype
8126      (N : Node_Id) return Node_Id;    -- Node4
8127
8128    function Address_Warning_Posted
8129      (N : Node_Id) return Boolean;    -- Flag18
8130
8131    function Aggregate_Bounds
8132      (N : Node_Id) return Node_Id;    -- Node3
8133
8134    function Aliased_Present
8135      (N : Node_Id) return Boolean;    -- Flag4
8136
8137    function All_Others
8138      (N : Node_Id) return Boolean;    -- Flag11
8139
8140    function All_Present
8141      (N : Node_Id) return Boolean;    -- Flag15
8142
8143    function Alternatives
8144      (N : Node_Id) return List_Id;    -- List4
8145
8146    function Ancestor_Part
8147      (N : Node_Id) return Node_Id;    -- Node3
8148
8149    function Atomic_Sync_Required
8150      (N : Node_Id) return Boolean;    -- Flag14
8151
8152    function Array_Aggregate
8153      (N : Node_Id) return Node_Id;    -- Node3
8154
8155    function Aspect_Rep_Item
8156      (N : Node_Id) return Node_Id;    -- Node2
8157
8158    function Assignment_OK
8159      (N : Node_Id) return Boolean;    -- Flag15
8160
8161    function Associated_Node
8162      (N : Node_Id) return Node_Id;    -- Node4
8163
8164    function At_End_Proc
8165      (N : Node_Id) return Node_Id;    -- Node1
8166
8167    function Attribute_Name
8168      (N : Node_Id) return Name_Id;    -- Name2
8169
8170    function Aux_Decls_Node
8171      (N : Node_Id) return Node_Id;    -- Node5
8172
8173    function Backwards_OK
8174      (N : Node_Id) return Boolean;    -- Flag6
8175
8176    function Bad_Is_Detected
8177      (N : Node_Id) return Boolean;    -- Flag15
8178
8179    function By_Ref
8180      (N : Node_Id) return Boolean;    -- Flag5
8181
8182    function Body_Required
8183      (N : Node_Id) return Boolean;    -- Flag13
8184
8185    function Body_To_Inline
8186      (N : Node_Id) return Node_Id;    -- Node3
8187
8188    function Box_Present
8189      (N : Node_Id) return Boolean;    -- Flag15
8190
8191    function Char_Literal_Value
8192      (N : Node_Id) return Uint;       -- Uint2
8193
8194    function Chars
8195      (N : Node_Id) return Name_Id;    -- Name1
8196
8197    function Check_Address_Alignment
8198      (N : Node_Id) return Boolean;    -- Flag11
8199
8200    function Choice_Parameter
8201      (N : Node_Id) return Node_Id;    -- Node2
8202
8203    function Choices
8204      (N : Node_Id) return List_Id;    -- List1
8205
8206    function Class_Present
8207      (N : Node_Id) return Boolean;    -- Flag6
8208
8209    function Comes_From_Extended_Return_Statement
8210      (N : Node_Id) return Boolean;    -- Flag18
8211
8212    function Compile_Time_Known_Aggregate
8213      (N : Node_Id) return Boolean;    -- Flag18
8214
8215    function Component_Associations
8216      (N : Node_Id) return List_Id;    -- List2
8217
8218    function Component_Clauses
8219      (N : Node_Id) return List_Id;    -- List3
8220
8221    function Component_Definition
8222      (N : Node_Id) return Node_Id;    -- Node4
8223
8224    function Component_Items
8225      (N : Node_Id) return List_Id;    -- List3
8226
8227    function Component_List
8228      (N : Node_Id) return Node_Id;    -- Node1
8229
8230    function Component_Name
8231      (N : Node_Id) return Node_Id;    -- Node1
8232
8233    function Componentwise_Assignment
8234      (N : Node_Id) return Boolean;    -- Flag14
8235
8236    function Condition
8237      (N : Node_Id) return Node_Id;    -- Node1
8238
8239    function Condition_Actions
8240      (N : Node_Id) return List_Id;    -- List3
8241
8242    function Config_Pragmas
8243      (N : Node_Id) return List_Id;    -- List4
8244
8245    function Constant_Present
8246      (N : Node_Id) return Boolean;    -- Flag17
8247
8248    function Constraint
8249      (N : Node_Id) return Node_Id;    -- Node3
8250
8251    function Constraints
8252      (N : Node_Id) return List_Id;    -- List1
8253
8254    function Context_Installed
8255      (N : Node_Id) return Boolean;    -- Flag13
8256
8257    function Context_Pending
8258      (N : Node_Id) return Boolean;    -- Flag16
8259
8260    function Context_Items
8261      (N : Node_Id) return List_Id;    -- List1
8262
8263    function Controlling_Argument
8264      (N : Node_Id) return Node_Id;    -- Node1
8265
8266    function Conversion_OK
8267      (N : Node_Id) return Boolean;    -- Flag14
8268
8269    function Corresponding_Aspect
8270      (N : Node_Id) return Node_Id;    -- Node3
8271
8272    function Corresponding_Body
8273      (N : Node_Id) return Node_Id;    -- Node5
8274
8275    function Corresponding_Formal_Spec
8276      (N : Node_Id) return Node_Id;    -- Node3
8277
8278    function Corresponding_Generic_Association
8279      (N : Node_Id) return Node_Id;    -- Node5
8280
8281    function Corresponding_Integer_Value
8282      (N : Node_Id) return Uint;       -- Uint4
8283
8284    function Corresponding_Spec
8285      (N : Node_Id) return Node_Id;    -- Node5
8286
8287    function Corresponding_Stub
8288      (N : Node_Id) return Node_Id;    -- Node3
8289
8290    function Dcheck_Function
8291      (N : Node_Id) return Entity_Id;  -- Node5
8292
8293    function Declarations
8294      (N : Node_Id) return List_Id;    -- List2
8295
8296    function Default_Expression
8297      (N : Node_Id) return Node_Id;    -- Node5
8298
8299    function Default_Storage_Pool
8300      (N : Node_Id) return Node_Id;    -- Node3
8301
8302    function Default_Name
8303      (N : Node_Id) return Node_Id;    -- Node2
8304
8305    function Defining_Identifier
8306      (N : Node_Id) return Entity_Id;  -- Node1
8307
8308    function Defining_Unit_Name
8309      (N : Node_Id) return Node_Id;    -- Node1
8310
8311    function Delay_Alternative
8312      (N : Node_Id) return Node_Id;    -- Node4
8313
8314    function Delay_Statement
8315      (N : Node_Id) return Node_Id;    -- Node2
8316
8317    function Delta_Expression
8318      (N : Node_Id) return Node_Id;    -- Node3
8319
8320    function Digits_Expression
8321      (N : Node_Id) return Node_Id;    -- Node2
8322
8323    function Discr_Check_Funcs_Built
8324      (N : Node_Id) return Boolean;    -- Flag11
8325
8326    function Discrete_Choices
8327      (N : Node_Id) return List_Id;    -- List4
8328
8329    function Discrete_Range
8330      (N : Node_Id) return Node_Id;    -- Node4
8331
8332    function Discrete_Subtype_Definition
8333      (N : Node_Id) return Node_Id;    -- Node4
8334
8335    function Discrete_Subtype_Definitions
8336      (N : Node_Id) return List_Id;    -- List2
8337
8338    function Discriminant_Specifications
8339      (N : Node_Id) return List_Id;    -- List4
8340
8341    function Discriminant_Type
8342      (N : Node_Id) return Node_Id;    -- Node5
8343
8344    function Do_Accessibility_Check
8345      (N : Node_Id) return Boolean;    -- Flag13
8346
8347    function Do_Discriminant_Check
8348      (N : Node_Id) return Boolean;    -- Flag13
8349
8350    function Do_Division_Check
8351      (N : Node_Id) return Boolean;    -- Flag13
8352
8353    function Do_Length_Check
8354      (N : Node_Id) return Boolean;    -- Flag4
8355
8356    function Do_Overflow_Check
8357      (N : Node_Id) return Boolean;    -- Flag17
8358
8359    function Do_Range_Check
8360      (N : Node_Id) return Boolean;    -- Flag9
8361
8362    function Do_Storage_Check
8363      (N : Node_Id) return Boolean;    -- Flag17
8364
8365    function Do_Tag_Check
8366      (N : Node_Id) return Boolean;    -- Flag13
8367
8368    function Elaborate_All_Desirable
8369      (N : Node_Id) return Boolean;    -- Flag9
8370
8371    function Elaborate_All_Present
8372      (N : Node_Id) return Boolean;    -- Flag14
8373
8374    function Elaborate_Desirable
8375      (N : Node_Id) return Boolean;    -- Flag11
8376
8377    function Elaborate_Present
8378      (N : Node_Id) return Boolean;    -- Flag4
8379
8380    function Elaboration_Boolean
8381      (N : Node_Id) return Node_Id;    -- Node2
8382
8383    function Else_Actions
8384      (N : Node_Id) return List_Id;    -- List3
8385
8386    function Else_Statements
8387      (N : Node_Id) return List_Id;    -- List4
8388
8389    function Elsif_Parts
8390      (N : Node_Id) return List_Id;    -- List3
8391
8392    function Enclosing_Variant
8393      (N : Node_Id) return Node_Id;    -- Node2
8394
8395    function End_Label
8396      (N : Node_Id) return Node_Id;    -- Node4
8397
8398    function End_Span
8399      (N : Node_Id) return Uint;       -- Uint5
8400
8401    function Entity
8402      (N : Node_Id) return Node_Id;    -- Node4
8403
8404    function Entity_Or_Associated_Node
8405      (N : Node_Id) return Node_Id;    -- Node4
8406
8407    function Entry_Body_Formal_Part
8408      (N : Node_Id) return Node_Id;    -- Node5
8409
8410    function Entry_Call_Alternative
8411      (N : Node_Id) return Node_Id;    -- Node1
8412
8413    function Entry_Call_Statement
8414      (N : Node_Id) return Node_Id;    -- Node1
8415
8416    function Entry_Direct_Name
8417      (N : Node_Id) return Node_Id;    -- Node1
8418
8419    function Entry_Index
8420      (N : Node_Id) return Node_Id;    -- Node5
8421
8422    function Entry_Index_Specification
8423      (N : Node_Id) return Node_Id;    -- Node4
8424
8425    function Etype
8426      (N : Node_Id) return Node_Id;    -- Node5
8427
8428    function Exception_Choices
8429      (N : Node_Id) return List_Id;    -- List4
8430
8431    function Exception_Handlers
8432      (N : Node_Id) return List_Id;    -- List5
8433
8434    function Exception_Junk
8435      (N : Node_Id) return Boolean;    -- Flag8
8436
8437    function Exception_Label
8438      (N : Node_Id) return Node_Id;    -- Node5
8439
8440    function Explicit_Actual_Parameter
8441      (N : Node_Id) return Node_Id;    -- Node3
8442
8443    function Expansion_Delayed
8444      (N : Node_Id) return Boolean;    -- Flag11
8445
8446    function Explicit_Generic_Actual_Parameter
8447      (N : Node_Id) return Node_Id;    -- Node1
8448
8449    function Expression
8450      (N : Node_Id) return Node_Id;    -- Node3
8451
8452    function Expressions
8453      (N : Node_Id) return List_Id;    -- List1
8454
8455    function First_Bit
8456      (N : Node_Id) return Node_Id;    -- Node3
8457
8458    function First_Inlined_Subprogram
8459      (N : Node_Id) return Entity_Id;  -- Node3
8460
8461    function First_Name
8462      (N : Node_Id) return Boolean;    -- Flag5
8463
8464    function First_Named_Actual
8465      (N : Node_Id) return Node_Id;    -- Node4
8466
8467    function First_Real_Statement
8468      (N : Node_Id) return Node_Id;    -- Node2
8469
8470    function First_Subtype_Link
8471      (N : Node_Id) return Entity_Id;  -- Node5
8472
8473    function Float_Truncate
8474      (N : Node_Id) return Boolean;    -- Flag11
8475
8476    function Formal_Type_Definition
8477      (N : Node_Id) return Node_Id;    -- Node3
8478
8479    function Forwards_OK
8480      (N : Node_Id) return Boolean;    -- Flag5
8481
8482    function From_Aspect_Specification
8483      (N : Node_Id) return Boolean;    -- Flag13
8484
8485    function From_At_End
8486      (N : Node_Id) return Boolean;    -- Flag4
8487
8488    function From_At_Mod
8489      (N : Node_Id) return Boolean;    -- Flag4
8490
8491    function From_Default
8492      (N : Node_Id) return Boolean;    -- Flag6
8493
8494    function Generic_Associations
8495      (N : Node_Id) return List_Id;    -- List3
8496
8497    function Generic_Formal_Declarations
8498      (N : Node_Id) return List_Id;    -- List2
8499
8500    function Generic_Parent
8501      (N : Node_Id) return Node_Id;    -- Node5
8502
8503    function Generic_Parent_Type
8504      (N : Node_Id) return Node_Id;    -- Node4
8505
8506    function Handled_Statement_Sequence
8507      (N : Node_Id) return Node_Id;    -- Node4
8508
8509    function Handler_List_Entry
8510      (N : Node_Id) return Node_Id;    -- Node2
8511
8512    function Has_Created_Identifier
8513      (N : Node_Id) return Boolean;    -- Flag15
8514
8515    function Has_Dynamic_Length_Check
8516      (N : Node_Id) return Boolean;    -- Flag10
8517
8518    function Has_Dynamic_Range_Check
8519      (N : Node_Id) return Boolean;    -- Flag12
8520
8521    function Has_Init_Expression
8522      (N : Node_Id) return Boolean;    -- Flag14
8523
8524    function Has_Local_Raise
8525      (N : Node_Id) return Boolean;    -- Flag8
8526
8527    function Has_No_Elaboration_Code
8528      (N : Node_Id) return Boolean;    -- Flag17
8529
8530    function Has_Pragma_CPU
8531      (N : Node_Id) return Boolean;    -- Flag14
8532
8533    function Has_Pragma_Dispatching_Domain
8534      (N : Node_Id) return Boolean;    -- Flag15
8535
8536    function Has_Pragma_Priority
8537      (N : Node_Id) return Boolean;    -- Flag6
8538
8539    function Has_Pragma_Suppress_All
8540      (N : Node_Id) return Boolean;    -- Flag14
8541
8542    function Has_Private_View
8543      (N : Node_Id) return Boolean;    -- Flag11
8544
8545    function Has_Relative_Deadline_Pragma
8546      (N : Node_Id) return Boolean;    -- Flag9
8547
8548    function Has_Self_Reference
8549      (N : Node_Id) return Boolean;    -- Flag13
8550
8551    function Has_Storage_Size_Pragma
8552      (N : Node_Id) return Boolean;    -- Flag5
8553
8554    function Has_Task_Info_Pragma
8555      (N : Node_Id) return Boolean;    -- Flag7
8556
8557    function Has_Task_Name_Pragma
8558      (N : Node_Id) return Boolean;    -- Flag8
8559
8560    function Has_Wide_Character
8561      (N : Node_Id) return Boolean;    -- Flag11
8562
8563    function Has_Wide_Wide_Character
8564      (N : Node_Id) return Boolean;    -- Flag13
8565
8566    function Header_Size_Added
8567      (N : Node_Id) return Boolean;    -- Flag11
8568
8569    function Hidden_By_Use_Clause
8570      (N : Node_Id) return Elist_Id;   -- Elist4
8571
8572    function High_Bound
8573      (N : Node_Id) return Node_Id;    -- Node2
8574
8575    function Identifier
8576      (N : Node_Id) return Node_Id;    -- Node1
8577
8578    function Interface_List
8579      (N : Node_Id) return List_Id;    -- List2
8580
8581    function Interface_Present
8582      (N : Node_Id) return Boolean;    -- Flag16
8583
8584    function Implicit_With
8585      (N : Node_Id) return Boolean;    -- Flag16
8586
8587    function Import_Interface_Present
8588      (N : Node_Id) return Boolean;    -- Flag16
8589
8590    function In_Present
8591      (N : Node_Id) return Boolean;    -- Flag15
8592
8593    function Includes_Infinities
8594      (N : Node_Id) return Boolean;    -- Flag11
8595
8596    function Inherited_Discriminant
8597      (N : Node_Id) return Boolean;    -- Flag13
8598
8599    function Instance_Spec
8600      (N : Node_Id) return Node_Id;    -- Node5
8601
8602    function Intval
8603      (N : Node_Id) return Uint;       -- Uint3
8604
8605    function Is_Accessibility_Actual
8606      (N : Node_Id) return Boolean;    -- Flag13
8607
8608    function Is_Asynchronous_Call_Block
8609      (N : Node_Id) return Boolean;    -- Flag7
8610
8611    function Is_Boolean_Aspect
8612      (N : Node_Id) return Boolean;    -- Flag16
8613
8614    function Is_Component_Left_Opnd
8615      (N : Node_Id) return Boolean;    -- Flag13
8616
8617    function Is_Component_Right_Opnd
8618      (N : Node_Id) return Boolean;    -- Flag14
8619
8620    function Is_Controlling_Actual
8621      (N : Node_Id) return Boolean;    -- Flag16
8622
8623    function Is_Delayed_Aspect
8624      (N : Node_Id) return Boolean;    -- Flag14
8625
8626    function Is_Dynamic_Coextension
8627      (N : Node_Id) return Boolean;    -- Flag18
8628
8629    function Is_Elsif
8630      (N : Node_Id) return Boolean;    -- Flag13
8631
8632    function Is_Entry_Barrier_Function
8633      (N : Node_Id) return Boolean;    -- Flag8
8634
8635    function Is_Expanded_Build_In_Place_Call
8636      (N : Node_Id) return Boolean;    -- Flag11
8637
8638    function Is_Folded_In_Parser
8639      (N : Node_Id) return Boolean;    -- Flag4
8640
8641    function Is_In_Discriminant_Check
8642      (N : Node_Id) return Boolean;    -- Flag11
8643
8644    function Is_Machine_Number
8645      (N : Node_Id) return Boolean;    -- Flag11
8646
8647    function Is_Null_Loop
8648      (N : Node_Id) return Boolean;    -- Flag16
8649
8650    function Is_Overloaded
8651      (N : Node_Id) return Boolean;    -- Flag5
8652
8653    function Is_Power_Of_2_For_Shift
8654      (N : Node_Id) return Boolean;    -- Flag13
8655
8656    function Is_Protected_Subprogram_Body
8657      (N : Node_Id) return Boolean;    -- Flag7
8658
8659    function Is_Static_Coextension
8660      (N : Node_Id) return Boolean;    -- Flag14
8661
8662    function Is_Static_Expression
8663      (N : Node_Id) return Boolean;    -- Flag6
8664
8665    function Is_Subprogram_Descriptor
8666      (N : Node_Id) return Boolean;    -- Flag16
8667
8668    function Is_Task_Allocation_Block
8669      (N : Node_Id) return Boolean;    -- Flag6
8670
8671    function Is_Task_Master
8672      (N : Node_Id) return Boolean;    -- Flag5
8673
8674    function Iteration_Scheme
8675      (N : Node_Id) return Node_Id;    -- Node2
8676
8677    function Iterator_Specification
8678      (N : Node_Id) return Node_Id;    -- Node2
8679
8680    function Itype
8681      (N : Node_Id) return Entity_Id;  -- Node1
8682
8683    function Kill_Range_Check
8684      (N : Node_Id) return Boolean;    -- Flag11
8685
8686    function Label_Construct
8687      (N : Node_Id) return Node_Id;    -- Node2
8688
8689    function Left_Opnd
8690      (N : Node_Id) return Node_Id;    -- Node2
8691
8692    function Last_Bit
8693      (N : Node_Id) return Node_Id;    -- Node4
8694
8695    function Last_Name
8696      (N : Node_Id) return Boolean;    -- Flag6
8697
8698    function Library_Unit
8699      (N : Node_Id) return Node_Id;    -- Node4
8700
8701    function Limited_View_Installed
8702      (N : Node_Id) return Boolean;    -- Flag18
8703
8704    function Limited_Present
8705      (N : Node_Id) return Boolean;    -- Flag17
8706
8707    function Literals
8708      (N : Node_Id) return List_Id;    -- List1
8709
8710    function Local_Raise_Not_OK
8711      (N : Node_Id) return Boolean;    -- Flag7
8712
8713    function Local_Raise_Statements
8714      (N : Node_Id) return Elist_Id;   -- Elist1
8715
8716    function Loop_Actions
8717      (N : Node_Id) return List_Id;    -- List2
8718
8719    function Loop_Parameter_Specification
8720      (N : Node_Id) return Node_Id;    -- Node4
8721
8722    function Low_Bound
8723      (N : Node_Id) return Node_Id;    -- Node1
8724
8725    function Mod_Clause
8726      (N : Node_Id) return Node_Id;    -- Node2
8727
8728    function More_Ids
8729      (N : Node_Id) return Boolean;    -- Flag5
8730
8731    function Must_Be_Byte_Aligned
8732      (N : Node_Id) return Boolean;    -- Flag14
8733
8734    function Must_Not_Freeze
8735      (N : Node_Id) return Boolean;    -- Flag8
8736
8737    function Must_Not_Override
8738      (N : Node_Id) return Boolean;    -- Flag15
8739
8740    function Must_Override
8741      (N : Node_Id) return Boolean;    -- Flag14
8742
8743    function Name
8744      (N : Node_Id) return Node_Id;    -- Node2
8745
8746    function Names
8747      (N : Node_Id) return List_Id;    -- List2
8748
8749    function Next_Entity
8750      (N : Node_Id) return Node_Id;    -- Node2
8751
8752    function Next_Exit_Statement
8753      (N : Node_Id) return Node_Id;    -- Node3
8754
8755    function Next_Implicit_With
8756      (N : Node_Id) return Node_Id;    -- Node3
8757
8758    function Next_Named_Actual
8759      (N : Node_Id) return Node_Id;    -- Node4
8760
8761    function Next_Pragma
8762      (N : Node_Id) return Node_Id;    -- Node1
8763
8764    function Next_Rep_Item
8765      (N : Node_Id) return Node_Id;    -- Node5
8766
8767    function Next_Use_Clause
8768      (N : Node_Id) return Node_Id;    -- Node3
8769
8770    function No_Ctrl_Actions
8771      (N : Node_Id) return Boolean;    -- Flag7
8772
8773    function No_Elaboration_Check
8774      (N : Node_Id) return Boolean;    -- Flag14
8775
8776    function No_Entities_Ref_In_Spec
8777      (N : Node_Id) return Boolean;    -- Flag8
8778
8779    function No_Initialization
8780      (N : Node_Id) return Boolean;    -- Flag13
8781
8782    function No_Truncation
8783      (N : Node_Id) return Boolean;    -- Flag17
8784
8785    function Null_Present
8786      (N : Node_Id) return Boolean;    -- Flag13
8787
8788    function Null_Exclusion_Present
8789      (N : Node_Id) return Boolean;    -- Flag11
8790
8791    function Null_Exclusion_In_Return_Present
8792      (N : Node_Id) return Boolean;    -- Flag14
8793
8794    function Null_Record_Present
8795      (N : Node_Id) return Boolean;    -- Flag17
8796
8797    function Object_Definition
8798      (N : Node_Id) return Node_Id;    -- Node4
8799
8800    function Of_Present
8801      (N : Node_Id) return Boolean;    -- Flag16
8802
8803    function Original_Discriminant
8804      (N : Node_Id) return Node_Id;    -- Node2
8805
8806    function Original_Entity
8807      (N : Node_Id) return Entity_Id;  -- Node2
8808
8809    function Others_Discrete_Choices
8810      (N : Node_Id) return List_Id;    -- List1
8811
8812    function Out_Present
8813      (N : Node_Id) return Boolean;    -- Flag17
8814
8815    function Parameter_Associations
8816      (N : Node_Id) return List_Id;    -- List3
8817
8818    function Parameter_List_Truncated
8819      (N : Node_Id) return Boolean;    -- Flag17
8820
8821    function Parameter_Specifications
8822      (N : Node_Id) return List_Id;    -- List3
8823
8824    function Parameter_Type
8825      (N : Node_Id) return Node_Id;    -- Node2
8826
8827    function Parent_Spec
8828      (N : Node_Id) return Node_Id;    -- Node4
8829
8830    function Position
8831      (N : Node_Id) return Node_Id;    -- Node2
8832
8833    function Pragma_Argument_Associations
8834      (N : Node_Id) return List_Id;    -- List2
8835
8836    function Pragma_Identifier
8837      (N : Node_Id) return Node_Id;    -- Node4
8838
8839    function Pragmas_After
8840      (N : Node_Id) return List_Id;    -- List5
8841
8842    function Pragmas_Before
8843      (N : Node_Id) return List_Id;    -- List4
8844
8845    function Prefix
8846      (N : Node_Id) return Node_Id;    -- Node3
8847
8848    function Premature_Use
8849      (N : Node_Id) return Node_Id;    -- Node5
8850
8851    function Present_Expr
8852      (N : Node_Id) return Uint;       -- Uint3
8853
8854    function Prev_Ids
8855      (N : Node_Id) return Boolean;    -- Flag6
8856
8857    function Print_In_Hex
8858      (N : Node_Id) return Boolean;    -- Flag13
8859
8860    function Private_Declarations
8861      (N : Node_Id) return List_Id;    -- List3
8862
8863    function Private_Present
8864      (N : Node_Id) return Boolean;    -- Flag15
8865
8866    function Procedure_To_Call
8867      (N : Node_Id) return Node_Id;    -- Node2
8868
8869    function Proper_Body
8870      (N : Node_Id) return Node_Id;    -- Node1
8871
8872    function Protected_Definition
8873      (N : Node_Id) return Node_Id;    -- Node3
8874
8875    function Protected_Present
8876      (N : Node_Id) return Boolean;    -- Flag6
8877
8878    function Raises_Constraint_Error
8879      (N : Node_Id) return Boolean;    -- Flag7
8880
8881    function Range_Constraint
8882      (N : Node_Id) return Node_Id;    -- Node4
8883
8884    function Range_Expression
8885      (N : Node_Id) return Node_Id;    -- Node4
8886
8887    function Real_Range_Specification
8888      (N : Node_Id) return Node_Id;    -- Node4
8889
8890    function Realval
8891      (N : Node_Id) return Ureal;      -- Ureal3
8892
8893    function Reason
8894      (N : Node_Id) return Uint;       -- Uint3
8895
8896    function Record_Extension_Part
8897      (N : Node_Id) return Node_Id;    -- Node3
8898
8899    function Redundant_Use
8900      (N : Node_Id) return Boolean;    -- Flag13
8901
8902    function Renaming_Exception
8903      (N : Node_Id) return Node_Id;    -- Node2
8904
8905    function Result_Definition
8906      (N : Node_Id) return Node_Id;    -- Node4
8907
8908    function Return_Object_Declarations
8909      (N : Node_Id) return List_Id;    -- List3
8910
8911    function Return_Statement_Entity
8912      (N : Node_Id) return Node_Id;    -- Node5
8913
8914    function Reverse_Present
8915      (N : Node_Id) return Boolean;    -- Flag15
8916
8917    function Right_Opnd
8918      (N : Node_Id) return Node_Id;    -- Node3
8919
8920    function Rounded_Result
8921      (N : Node_Id) return Boolean;    -- Flag18
8922
8923    function SCIL_Controlling_Tag
8924      (N : Node_Id) return Node_Id;    -- Node5
8925
8926    function SCIL_Entity
8927      (N : Node_Id) return Node_Id;    -- Node4
8928
8929    function SCIL_Tag_Value
8930      (N : Node_Id) return Node_Id;    -- Node5
8931
8932    function SCIL_Target_Prim
8933      (N : Node_Id) return Node_Id;    -- Node2
8934
8935    function Scope
8936      (N : Node_Id) return Node_Id;    -- Node3
8937
8938    function Select_Alternatives
8939      (N : Node_Id) return List_Id;    -- List1
8940
8941    function Selector_Name
8942      (N : Node_Id) return Node_Id;    -- Node2
8943
8944    function Selector_Names
8945      (N : Node_Id) return List_Id;    -- List1
8946
8947    function Shift_Count_OK
8948      (N : Node_Id) return Boolean;    -- Flag4
8949
8950    function Source_Type
8951      (N : Node_Id) return Entity_Id;  -- Node1
8952
8953    function Spec_PPC_List
8954      (N : Node_Id) return Node_Id;    -- Node1
8955
8956    function Spec_TC_List
8957      (N : Node_Id) return Node_Id;    -- Node2
8958
8959    function Specification
8960      (N : Node_Id) return Node_Id;    -- Node1
8961
8962    function Split_PPC
8963      (N : Node_Id) return Boolean;    -- Flag17
8964
8965    function Statements
8966      (N : Node_Id) return List_Id;    -- List3
8967
8968    function Static_Processing_OK
8969      (N : Node_Id) return Boolean;    -- Flag4
8970
8971    function Storage_Pool
8972      (N : Node_Id) return Node_Id;    -- Node1
8973
8974    function Subpool_Handle_Name
8975      (N : Node_Id) return Node_Id;    -- Node4
8976
8977    function Strval
8978      (N : Node_Id) return String_Id;  -- Str3
8979
8980    function Subtype_Indication
8981      (N : Node_Id) return Node_Id;    -- Node5
8982
8983    function Subtype_Mark
8984      (N : Node_Id) return Node_Id;    -- Node4
8985
8986    function Subtype_Marks
8987      (N : Node_Id) return List_Id;    -- List2
8988
8989    function Suppress_Assignment_Checks
8990      (N : Node_Id) return Boolean;    -- Flag18
8991
8992    function Suppress_Loop_Warnings
8993      (N : Node_Id) return Boolean;    -- Flag17
8994
8995    function Synchronized_Present
8996      (N : Node_Id) return Boolean;    -- Flag7
8997
8998    function Tagged_Present
8999      (N : Node_Id) return Boolean;    -- Flag15
9000
9001    function Target_Type
9002      (N : Node_Id) return Entity_Id;  -- Node2
9003
9004    function Task_Definition
9005      (N : Node_Id) return Node_Id;    -- Node3
9006
9007    function Task_Present
9008      (N : Node_Id) return Boolean;    -- Flag5
9009
9010    function Then_Actions
9011      (N : Node_Id) return List_Id;    -- List2
9012
9013    function Then_Statements
9014      (N : Node_Id) return List_Id;    -- List2
9015
9016    function Treat_Fixed_As_Integer
9017      (N : Node_Id) return Boolean;    -- Flag14
9018
9019    function Triggering_Alternative
9020      (N : Node_Id) return Node_Id;    -- Node1
9021
9022    function Triggering_Statement
9023      (N : Node_Id) return Node_Id;    -- Node1
9024
9025    function TSS_Elist
9026      (N : Node_Id) return Elist_Id;   -- Elist3
9027
9028    function Type_Definition
9029      (N : Node_Id) return Node_Id;    -- Node3
9030
9031    function Unit
9032      (N : Node_Id) return Node_Id;    -- Node2
9033
9034    function Unknown_Discriminants_Present
9035      (N : Node_Id) return Boolean;    -- Flag13
9036
9037    function Unreferenced_In_Spec
9038      (N : Node_Id) return Boolean;    -- Flag7
9039
9040    function Variant_Part
9041      (N : Node_Id) return Node_Id;    -- Node4
9042
9043    function Variants
9044      (N : Node_Id) return List_Id;    -- List1
9045
9046    function Visible_Declarations
9047      (N : Node_Id) return List_Id;    -- List2
9048
9049    function Used_Operations
9050      (N : Node_Id) return Elist_Id;   -- Elist5
9051
9052    function Was_Originally_Stub
9053      (N : Node_Id) return Boolean;    -- Flag13
9054
9055    function Withed_Body
9056      (N : Node_Id) return Node_Id;    -- Node1
9057
9058    --  End functions (note used by xsinfo utility program to end processing)
9059
9060    ----------------------------
9061    -- Node Update Procedures --
9062    ----------------------------
9063
9064    --  These are the corresponding node update routines, which again provide
9065    --  a high level logical access with type checking. In addition to setting
9066    --  the indicated field of the node N to the given Val, in the case of
9067    --  tree pointers (List1-4), the parent pointer of the Val node is set to
9068    --  point back to node N. This automates the setting of the parent pointer.
9069
9070    procedure Set_ABE_Is_Certain
9071      (N : Node_Id; Val : Boolean := True);    -- Flag18
9072
9073    procedure Set_Abort_Present
9074      (N : Node_Id; Val : Boolean := True);    -- Flag15
9075
9076    procedure Set_Abortable_Part
9077      (N : Node_Id; Val : Node_Id);            -- Node2
9078
9079    procedure Set_Abstract_Present
9080      (N : Node_Id; Val : Boolean := True);    -- Flag4
9081
9082    procedure Set_Accept_Handler_Records
9083      (N : Node_Id; Val : List_Id);            -- List5
9084
9085    procedure Set_Accept_Statement
9086      (N : Node_Id; Val : Node_Id);            -- Node2
9087
9088    procedure Set_Access_Definition
9089      (N : Node_Id; Val : Node_Id);            -- Node3
9090
9091    procedure Set_Access_To_Subprogram_Definition
9092      (N : Node_Id; Val : Node_Id);            -- Node3
9093
9094    procedure Set_Access_Types_To_Process
9095      (N : Node_Id; Val : Elist_Id);           -- Elist2
9096
9097    procedure Set_Actions
9098      (N : Node_Id; Val : List_Id);            -- List1
9099
9100    procedure Set_Activation_Chain_Entity
9101      (N : Node_Id; Val : Node_Id);            -- Node3
9102
9103    procedure Set_Acts_As_Spec
9104      (N : Node_Id; Val : Boolean := True);    -- Flag4
9105
9106    procedure Set_Actual_Designated_Subtype
9107      (N : Node_Id; Val : Node_Id);            -- Node4
9108
9109    procedure Set_Address_Warning_Posted
9110      (N : Node_Id; Val : Boolean := True);    -- Flag18
9111
9112    procedure Set_Aggregate_Bounds
9113      (N : Node_Id; Val : Node_Id);            -- Node3
9114
9115    procedure Set_Aliased_Present
9116      (N : Node_Id; Val : Boolean := True);    -- Flag4
9117
9118    procedure Set_All_Others
9119      (N : Node_Id; Val : Boolean := True);    -- Flag11
9120
9121    procedure Set_All_Present
9122      (N : Node_Id; Val : Boolean := True);    -- Flag15
9123
9124    procedure Set_Alternatives
9125      (N : Node_Id; Val : List_Id);            -- List4
9126
9127    procedure Set_Ancestor_Part
9128      (N : Node_Id; Val : Node_Id);            -- Node3
9129
9130    procedure Set_Atomic_Sync_Required
9131      (N : Node_Id; Val : Boolean := True);    -- Flag14
9132
9133    procedure Set_Array_Aggregate
9134      (N : Node_Id; Val : Node_Id);            -- Node3
9135
9136    procedure Set_Aspect_Rep_Item
9137      (N : Node_Id; Val : Node_Id);            -- Node2
9138
9139    procedure Set_Assignment_OK
9140      (N : Node_Id; Val : Boolean := True);    -- Flag15
9141
9142    procedure Set_Associated_Node
9143      (N : Node_Id; Val : Node_Id);            -- Node4
9144
9145    procedure Set_Attribute_Name
9146      (N : Node_Id; Val : Name_Id);            -- Name2
9147
9148    procedure Set_At_End_Proc
9149      (N : Node_Id; Val : Node_Id);            -- Node1
9150
9151    procedure Set_Aux_Decls_Node
9152      (N : Node_Id; Val : Node_Id);            -- Node5
9153
9154    procedure Set_Backwards_OK
9155      (N : Node_Id; Val : Boolean := True);    -- Flag6
9156
9157    procedure Set_Bad_Is_Detected
9158      (N : Node_Id; Val : Boolean := True);    -- Flag15
9159
9160    procedure Set_Body_Required
9161      (N : Node_Id; Val : Boolean := True);    -- Flag13
9162
9163    procedure Set_Body_To_Inline
9164      (N : Node_Id; Val : Node_Id);            -- Node3
9165
9166    procedure Set_Box_Present
9167      (N : Node_Id; Val : Boolean := True);    -- Flag15
9168
9169    procedure Set_By_Ref
9170      (N : Node_Id; Val : Boolean := True);    -- Flag5
9171
9172    procedure Set_Char_Literal_Value
9173      (N : Node_Id; Val : Uint);               -- Uint2
9174
9175    procedure Set_Chars
9176      (N : Node_Id; Val : Name_Id);            -- Name1
9177
9178    procedure Set_Check_Address_Alignment
9179      (N : Node_Id; Val : Boolean := True);    -- Flag11
9180
9181    procedure Set_Choice_Parameter
9182      (N : Node_Id; Val : Node_Id);            -- Node2
9183
9184    procedure Set_Choices
9185      (N : Node_Id; Val : List_Id);            -- List1
9186
9187    procedure Set_Class_Present
9188      (N : Node_Id; Val : Boolean := True);    -- Flag6
9189
9190    procedure Set_Comes_From_Extended_Return_Statement
9191      (N : Node_Id; Val : Boolean := True);    -- Flag18
9192
9193    procedure Set_Compile_Time_Known_Aggregate
9194      (N : Node_Id; Val : Boolean := True);    -- Flag18
9195
9196    procedure Set_Component_Associations
9197      (N : Node_Id; Val : List_Id);            -- List2
9198
9199    procedure Set_Component_Clauses
9200      (N : Node_Id; Val : List_Id);            -- List3
9201
9202    procedure Set_Component_Definition
9203      (N : Node_Id; Val : Node_Id);            -- Node4
9204
9205    procedure Set_Component_Items
9206      (N : Node_Id; Val : List_Id);            -- List3
9207
9208    procedure Set_Component_List
9209      (N : Node_Id; Val : Node_Id);            -- Node1
9210
9211    procedure Set_Component_Name
9212      (N : Node_Id; Val : Node_Id);            -- Node1
9213
9214    procedure Set_Componentwise_Assignment
9215      (N : Node_Id; Val : Boolean := True);    -- Flag14
9216
9217    procedure Set_Condition
9218      (N : Node_Id; Val : Node_Id);            -- Node1
9219
9220    procedure Set_Condition_Actions
9221      (N : Node_Id; Val : List_Id);            -- List3
9222
9223    procedure Set_Config_Pragmas
9224      (N : Node_Id; Val : List_Id);            -- List4
9225
9226    procedure Set_Constant_Present
9227      (N : Node_Id; Val : Boolean := True);    -- Flag17
9228
9229    procedure Set_Constraint
9230      (N : Node_Id; Val : Node_Id);            -- Node3
9231
9232    procedure Set_Constraints
9233      (N : Node_Id; Val : List_Id);            -- List1
9234
9235    procedure Set_Context_Installed
9236      (N : Node_Id; Val : Boolean := True);    -- Flag13
9237
9238    procedure Set_Context_Items
9239      (N : Node_Id; Val : List_Id);            -- List1
9240
9241    procedure Set_Context_Pending
9242      (N : Node_Id; Val : Boolean := True);    -- Flag16
9243
9244    procedure Set_Controlling_Argument
9245      (N : Node_Id; Val : Node_Id);            -- Node1
9246
9247    procedure Set_Conversion_OK
9248      (N : Node_Id; Val : Boolean := True);    -- Flag14
9249
9250    procedure Set_Corresponding_Aspect
9251      (N : Node_Id; Val : Node_Id);            -- Node3
9252
9253    procedure Set_Corresponding_Body
9254      (N : Node_Id; Val : Node_Id);            -- Node5
9255
9256    procedure Set_Corresponding_Formal_Spec
9257      (N : Node_Id; Val : Node_Id);            -- Node3
9258
9259    procedure Set_Corresponding_Generic_Association
9260      (N : Node_Id; Val : Node_Id);            -- Node5
9261
9262    procedure Set_Corresponding_Integer_Value
9263      (N : Node_Id; Val : Uint);               -- Uint4
9264
9265    procedure Set_Corresponding_Spec
9266      (N : Node_Id; Val : Node_Id);            -- Node5
9267
9268    procedure Set_Corresponding_Stub
9269      (N : Node_Id; Val : Node_Id);            -- Node3
9270
9271    procedure Set_Dcheck_Function
9272      (N : Node_Id; Val : Entity_Id);          -- Node5
9273
9274    procedure Set_Declarations
9275      (N : Node_Id; Val : List_Id);            -- List2
9276
9277    procedure Set_Default_Expression
9278      (N : Node_Id; Val : Node_Id);            -- Node5
9279
9280    procedure Set_Default_Storage_Pool
9281      (N : Node_Id; Val : Node_Id);            -- Node3
9282
9283    procedure Set_Default_Name
9284      (N : Node_Id; Val : Node_Id);            -- Node2
9285
9286    procedure Set_Defining_Identifier
9287      (N : Node_Id; Val : Entity_Id);          -- Node1
9288
9289    procedure Set_Defining_Unit_Name
9290      (N : Node_Id; Val : Node_Id);            -- Node1
9291
9292    procedure Set_Delay_Alternative
9293      (N : Node_Id; Val : Node_Id);            -- Node4
9294
9295    procedure Set_Delay_Statement
9296      (N : Node_Id; Val : Node_Id);            -- Node2
9297
9298    procedure Set_Delta_Expression
9299      (N : Node_Id; Val : Node_Id);            -- Node3
9300
9301    procedure Set_Digits_Expression
9302      (N : Node_Id; Val : Node_Id);            -- Node2
9303
9304    procedure Set_Discr_Check_Funcs_Built
9305      (N : Node_Id; Val : Boolean := True);    -- Flag11
9306
9307    procedure Set_Discrete_Choices
9308      (N : Node_Id; Val : List_Id);            -- List4
9309
9310    procedure Set_Discrete_Range
9311      (N : Node_Id; Val : Node_Id);            -- Node4
9312
9313    procedure Set_Discrete_Subtype_Definition
9314      (N : Node_Id; Val : Node_Id);            -- Node4
9315
9316    procedure Set_Discrete_Subtype_Definitions
9317      (N : Node_Id; Val : List_Id);            -- List2
9318
9319    procedure Set_Discriminant_Specifications
9320      (N : Node_Id; Val : List_Id);            -- List4
9321
9322    procedure Set_Discriminant_Type
9323      (N : Node_Id; Val : Node_Id);            -- Node5
9324
9325    procedure Set_Do_Accessibility_Check
9326      (N : Node_Id; Val : Boolean := True);    -- Flag13
9327
9328    procedure Set_Do_Discriminant_Check
9329      (N : Node_Id; Val : Boolean := True);    -- Flag13
9330
9331    procedure Set_Do_Division_Check
9332      (N : Node_Id; Val : Boolean := True);    -- Flag13
9333
9334    procedure Set_Do_Length_Check
9335      (N : Node_Id; Val : Boolean := True);    -- Flag4
9336
9337    procedure Set_Do_Overflow_Check
9338      (N : Node_Id; Val : Boolean := True);    -- Flag17
9339
9340    procedure Set_Do_Range_Check
9341      (N : Node_Id; Val : Boolean := True);    -- Flag9
9342
9343    procedure Set_Do_Storage_Check
9344      (N : Node_Id; Val : Boolean := True);    -- Flag17
9345
9346    procedure Set_Do_Tag_Check
9347      (N : Node_Id; Val : Boolean := True);    -- Flag13
9348
9349    procedure Set_Elaborate_All_Desirable
9350      (N : Node_Id; Val : Boolean := True);    -- Flag9
9351
9352    procedure Set_Elaborate_All_Present
9353      (N : Node_Id; Val : Boolean := True);    -- Flag14
9354
9355    procedure Set_Elaborate_Desirable
9356      (N : Node_Id; Val : Boolean := True);    -- Flag11
9357
9358    procedure Set_Elaborate_Present
9359      (N : Node_Id; Val : Boolean := True);    -- Flag4
9360
9361    procedure Set_Elaboration_Boolean
9362      (N : Node_Id; Val : Node_Id);            -- Node2
9363
9364    procedure Set_Else_Actions
9365      (N : Node_Id; Val : List_Id);            -- List3
9366
9367    procedure Set_Else_Statements
9368      (N : Node_Id; Val : List_Id);            -- List4
9369
9370    procedure Set_Elsif_Parts
9371      (N : Node_Id; Val : List_Id);            -- List3
9372
9373    procedure Set_Enclosing_Variant
9374      (N : Node_Id; Val : Node_Id);            -- Node2
9375
9376    procedure Set_End_Label
9377      (N : Node_Id; Val : Node_Id);            -- Node4
9378
9379    procedure Set_End_Span
9380      (N : Node_Id; Val : Uint);               -- Uint5
9381
9382    procedure Set_Entity
9383      (N : Node_Id; Val : Node_Id);            -- Node4
9384
9385    procedure Set_Entry_Body_Formal_Part
9386      (N : Node_Id; Val : Node_Id);            -- Node5
9387
9388    procedure Set_Entry_Call_Alternative
9389      (N : Node_Id; Val : Node_Id);            -- Node1
9390
9391    procedure Set_Entry_Call_Statement
9392      (N : Node_Id; Val : Node_Id);            -- Node1
9393
9394    procedure Set_Entry_Direct_Name
9395      (N : Node_Id; Val : Node_Id);            -- Node1
9396
9397    procedure Set_Entry_Index
9398      (N : Node_Id; Val : Node_Id);            -- Node5
9399
9400    procedure Set_Entry_Index_Specification
9401      (N : Node_Id; Val : Node_Id);            -- Node4
9402
9403    procedure Set_Etype
9404      (N : Node_Id; Val : Node_Id);            -- Node5
9405
9406    procedure Set_Exception_Choices
9407      (N : Node_Id; Val : List_Id);            -- List4
9408
9409    procedure Set_Exception_Handlers
9410      (N : Node_Id; Val : List_Id);            -- List5
9411
9412    procedure Set_Exception_Junk
9413      (N : Node_Id; Val : Boolean := True);    -- Flag8
9414
9415    procedure Set_Exception_Label
9416      (N : Node_Id; Val : Node_Id);            -- Node5
9417
9418    procedure Set_Expansion_Delayed
9419      (N : Node_Id; Val : Boolean := True);    -- Flag11
9420
9421    procedure Set_Explicit_Actual_Parameter
9422      (N : Node_Id; Val : Node_Id);            -- Node3
9423
9424    procedure Set_Explicit_Generic_Actual_Parameter
9425      (N : Node_Id; Val : Node_Id);            -- Node1
9426
9427    procedure Set_Expression
9428      (N : Node_Id; Val : Node_Id);            -- Node3
9429
9430    procedure Set_Expressions
9431      (N : Node_Id; Val : List_Id);            -- List1
9432
9433    procedure Set_First_Bit
9434      (N : Node_Id; Val : Node_Id);            -- Node3
9435
9436    procedure Set_First_Inlined_Subprogram
9437      (N : Node_Id; Val : Entity_Id);          -- Node3
9438
9439    procedure Set_First_Name
9440      (N : Node_Id; Val : Boolean := True);    -- Flag5
9441
9442    procedure Set_First_Named_Actual
9443      (N : Node_Id; Val : Node_Id);            -- Node4
9444
9445    procedure Set_First_Real_Statement
9446      (N : Node_Id; Val : Node_Id);            -- Node2
9447
9448    procedure Set_First_Subtype_Link
9449      (N : Node_Id; Val : Entity_Id);          -- Node5
9450
9451    procedure Set_Float_Truncate
9452      (N : Node_Id; Val : Boolean := True);    -- Flag11
9453
9454    procedure Set_Formal_Type_Definition
9455      (N : Node_Id; Val : Node_Id);            -- Node3
9456
9457    procedure Set_Forwards_OK
9458      (N : Node_Id; Val : Boolean := True);    -- Flag5
9459
9460    procedure Set_From_At_Mod
9461      (N : Node_Id; Val : Boolean := True);    -- Flag4
9462
9463    procedure Set_From_Aspect_Specification
9464      (N : Node_Id; Val : Boolean := True);    -- Flag13
9465
9466    procedure Set_From_At_End
9467      (N : Node_Id; Val : Boolean := True);    -- Flag4
9468
9469    procedure Set_From_Default
9470      (N : Node_Id; Val : Boolean := True);    -- Flag6
9471
9472    procedure Set_Generic_Associations
9473      (N : Node_Id; Val : List_Id);            -- List3
9474
9475    procedure Set_Generic_Formal_Declarations
9476      (N : Node_Id; Val : List_Id);            -- List2
9477
9478    procedure Set_Generic_Parent
9479      (N : Node_Id; Val : Node_Id);            -- Node5
9480
9481    procedure Set_Generic_Parent_Type
9482      (N : Node_Id; Val : Node_Id);            -- Node4
9483
9484    procedure Set_Handled_Statement_Sequence
9485      (N : Node_Id; Val : Node_Id);            -- Node4
9486
9487    procedure Set_Handler_List_Entry
9488      (N : Node_Id; Val : Node_Id);            -- Node2
9489
9490    procedure Set_Has_Created_Identifier
9491      (N : Node_Id; Val : Boolean := True);    -- Flag15
9492
9493    procedure Set_Has_Dynamic_Length_Check
9494      (N : Node_Id; Val : Boolean := True);    -- Flag10
9495
9496    procedure Set_Has_Dynamic_Range_Check
9497      (N : Node_Id; Val : Boolean := True);    -- Flag12
9498
9499    procedure Set_Has_Init_Expression
9500      (N : Node_Id; Val : Boolean := True);    -- Flag14
9501
9502    procedure Set_Has_Local_Raise
9503      (N : Node_Id; Val : Boolean := True);    -- Flag8
9504
9505    procedure Set_Has_No_Elaboration_Code
9506      (N : Node_Id; Val : Boolean := True);    -- Flag17
9507
9508    procedure Set_Has_Pragma_CPU
9509      (N : Node_Id; Val : Boolean := True);    -- Flag14
9510
9511    procedure Set_Has_Pragma_Dispatching_Domain
9512      (N : Node_Id; Val : Boolean := True);    -- Flag15
9513
9514    procedure Set_Has_Pragma_Priority
9515      (N : Node_Id; Val : Boolean := True);    -- Flag6
9516
9517    procedure Set_Has_Pragma_Suppress_All
9518      (N : Node_Id; Val : Boolean := True);    -- Flag14
9519
9520    procedure Set_Has_Private_View
9521      (N : Node_Id; Val : Boolean := True);    -- Flag11
9522
9523    procedure Set_Has_Relative_Deadline_Pragma
9524      (N : Node_Id; Val : Boolean := True);    -- Flag9
9525
9526    procedure Set_Has_Self_Reference
9527      (N : Node_Id; Val : Boolean := True);    -- Flag13
9528
9529    procedure Set_Has_Storage_Size_Pragma
9530      (N : Node_Id; Val : Boolean := True);    -- Flag5
9531
9532    procedure Set_Has_Task_Info_Pragma
9533      (N : Node_Id; Val : Boolean := True);    -- Flag7
9534
9535    procedure Set_Has_Task_Name_Pragma
9536      (N : Node_Id; Val : Boolean := True);    -- Flag8
9537
9538    procedure Set_Has_Wide_Character
9539      (N : Node_Id; Val : Boolean := True);    -- Flag11
9540
9541    procedure Set_Has_Wide_Wide_Character
9542      (N : Node_Id; Val : Boolean := True);    -- Flag13
9543
9544    procedure Set_Header_Size_Added
9545      (N : Node_Id; Val : Boolean := True);    -- Flag11
9546
9547    procedure Set_Hidden_By_Use_Clause
9548      (N : Node_Id; Val : Elist_Id);           -- Elist4
9549
9550    procedure Set_High_Bound
9551      (N : Node_Id; Val : Node_Id);            -- Node2
9552
9553    procedure Set_Identifier
9554      (N : Node_Id; Val : Node_Id);            -- Node1
9555
9556    procedure Set_Interface_List
9557      (N : Node_Id; Val : List_Id);            -- List2
9558
9559    procedure Set_Interface_Present
9560      (N : Node_Id; Val : Boolean := True);    -- Flag16
9561
9562    procedure Set_Implicit_With
9563      (N : Node_Id; Val : Boolean := True);    -- Flag16
9564
9565    procedure Set_Import_Interface_Present
9566      (N : Node_Id; Val : Boolean := True);    -- Flag16
9567
9568    procedure Set_In_Present
9569      (N : Node_Id; Val : Boolean := True);    -- Flag15
9570
9571    procedure Set_Includes_Infinities
9572      (N : Node_Id; Val : Boolean := True);    -- Flag11
9573
9574    procedure Set_Inherited_Discriminant
9575      (N : Node_Id; Val : Boolean := True);    -- Flag13
9576
9577    procedure Set_Instance_Spec
9578      (N : Node_Id; Val : Node_Id);            -- Node5
9579
9580    procedure Set_Intval
9581      (N : Node_Id; Val : Uint);               -- Uint3
9582
9583    procedure Set_Is_Accessibility_Actual
9584      (N : Node_Id; Val : Boolean := True);    -- Flag13
9585
9586    procedure Set_Is_Asynchronous_Call_Block
9587      (N : Node_Id; Val : Boolean := True);    -- Flag7
9588
9589    procedure Set_Is_Boolean_Aspect
9590      (N : Node_Id; Val : Boolean := True);    -- Flag16
9591
9592    procedure Set_Is_Component_Left_Opnd
9593      (N : Node_Id; Val : Boolean := True);    -- Flag13
9594
9595    procedure Set_Is_Component_Right_Opnd
9596      (N : Node_Id; Val : Boolean := True);    -- Flag14
9597
9598    procedure Set_Is_Controlling_Actual
9599      (N : Node_Id; Val : Boolean := True);    -- Flag16
9600
9601    procedure Set_Is_Delayed_Aspect
9602      (N : Node_Id; Val : Boolean := True);    -- Flag14
9603
9604    procedure Set_Is_Dynamic_Coextension
9605      (N : Node_Id; Val : Boolean := True);    -- Flag18
9606
9607    procedure Set_Is_Elsif
9608      (N : Node_Id; Val : Boolean := True);    -- Flag13
9609
9610    procedure Set_Is_Entry_Barrier_Function
9611      (N : Node_Id; Val : Boolean := True);    -- Flag8
9612
9613    procedure Set_Is_Expanded_Build_In_Place_Call
9614      (N : Node_Id; Val : Boolean := True);    -- Flag11
9615
9616    procedure Set_Is_Folded_In_Parser
9617      (N : Node_Id; Val : Boolean := True);    -- Flag4
9618
9619    procedure Set_Is_In_Discriminant_Check
9620      (N : Node_Id; Val : Boolean := True);    -- Flag11
9621
9622    procedure Set_Is_Machine_Number
9623      (N : Node_Id; Val : Boolean := True);    -- Flag11
9624
9625    procedure Set_Is_Null_Loop
9626      (N : Node_Id; Val : Boolean := True);    -- Flag16
9627
9628    procedure Set_Is_Overloaded
9629      (N : Node_Id; Val : Boolean := True);    -- Flag5
9630
9631    procedure Set_Is_Power_Of_2_For_Shift
9632      (N : Node_Id; Val : Boolean := True);    -- Flag13
9633
9634    procedure Set_Is_Protected_Subprogram_Body
9635      (N : Node_Id; Val : Boolean := True);    -- Flag7
9636
9637    procedure Set_Is_Static_Coextension
9638      (N : Node_Id; Val : Boolean := True);    -- Flag14
9639
9640    procedure Set_Is_Static_Expression
9641      (N : Node_Id; Val : Boolean := True);    -- Flag6
9642
9643    procedure Set_Is_Subprogram_Descriptor
9644      (N : Node_Id; Val : Boolean := True);    -- Flag16
9645
9646    procedure Set_Is_Task_Allocation_Block
9647      (N : Node_Id; Val : Boolean := True);    -- Flag6
9648
9649    procedure Set_Is_Task_Master
9650      (N : Node_Id; Val : Boolean := True);    -- Flag5
9651
9652    procedure Set_Iteration_Scheme
9653      (N : Node_Id; Val : Node_Id);            -- Node2
9654
9655    procedure Set_Iterator_Specification
9656      (N : Node_Id; Val : Node_Id);            -- Node2
9657
9658    procedure Set_Itype
9659      (N : Node_Id; Val : Entity_Id);          -- Node1
9660
9661    procedure Set_Kill_Range_Check
9662      (N : Node_Id; Val : Boolean := True);    -- Flag11
9663
9664    procedure Set_Last_Bit
9665      (N : Node_Id; Val : Node_Id);            -- Node4
9666
9667    procedure Set_Last_Name
9668      (N : Node_Id; Val : Boolean := True);    -- Flag6
9669
9670    procedure Set_Library_Unit
9671      (N : Node_Id; Val : Node_Id);            -- Node4
9672
9673    procedure Set_Label_Construct
9674      (N : Node_Id; Val : Node_Id);            -- Node2
9675
9676    procedure Set_Left_Opnd
9677      (N : Node_Id; Val : Node_Id);            -- Node2
9678
9679    procedure Set_Limited_View_Installed
9680      (N : Node_Id; Val : Boolean := True);    -- Flag18
9681
9682    procedure Set_Limited_Present
9683      (N : Node_Id; Val : Boolean := True);    -- Flag17
9684
9685    procedure Set_Literals
9686      (N : Node_Id; Val : List_Id);            -- List1
9687
9688    procedure Set_Local_Raise_Not_OK
9689      (N : Node_Id; Val : Boolean := True);    -- Flag7
9690
9691    procedure Set_Local_Raise_Statements
9692      (N : Node_Id; Val : Elist_Id);           -- Elist1
9693
9694    procedure Set_Loop_Actions
9695      (N : Node_Id; Val : List_Id);            -- List2
9696
9697    procedure Set_Loop_Parameter_Specification
9698      (N : Node_Id; Val : Node_Id);            -- Node4
9699
9700    procedure Set_Low_Bound
9701      (N : Node_Id; Val : Node_Id);            -- Node1
9702
9703    procedure Set_Mod_Clause
9704      (N : Node_Id; Val : Node_Id);            -- Node2
9705
9706    procedure Set_More_Ids
9707      (N : Node_Id; Val : Boolean := True);    -- Flag5
9708
9709    procedure Set_Must_Be_Byte_Aligned
9710      (N : Node_Id; Val : Boolean := True);    -- Flag14
9711
9712    procedure Set_Must_Not_Freeze
9713      (N : Node_Id; Val : Boolean := True);    -- Flag8
9714
9715    procedure Set_Must_Not_Override
9716      (N : Node_Id; Val : Boolean := True);    -- Flag15
9717
9718    procedure Set_Must_Override
9719      (N : Node_Id; Val : Boolean := True);    -- Flag14
9720
9721    procedure Set_Name
9722      (N : Node_Id; Val : Node_Id);            -- Node2
9723
9724    procedure Set_Names
9725      (N : Node_Id; Val : List_Id);            -- List2
9726
9727    procedure Set_Next_Entity
9728      (N : Node_Id; Val : Node_Id);            -- Node2
9729
9730    procedure Set_Next_Exit_Statement
9731      (N : Node_Id; Val : Node_Id);            -- Node3
9732
9733    procedure Set_Next_Implicit_With
9734      (N : Node_Id; Val : Node_Id);            -- Node3
9735
9736    procedure Set_Next_Named_Actual
9737      (N : Node_Id; Val : Node_Id);            -- Node4
9738
9739    procedure Set_Next_Pragma
9740      (N : Node_Id; Val : Node_Id);            -- Node1
9741
9742    procedure Set_Next_Rep_Item
9743      (N : Node_Id; Val : Node_Id);            -- Node5
9744
9745    procedure Set_Next_Use_Clause
9746      (N : Node_Id; Val : Node_Id);            -- Node3
9747
9748    procedure Set_No_Ctrl_Actions
9749      (N : Node_Id; Val : Boolean := True);    -- Flag7
9750
9751    procedure Set_No_Elaboration_Check
9752      (N : Node_Id; Val : Boolean := True);    -- Flag14
9753
9754    procedure Set_No_Entities_Ref_In_Spec
9755      (N : Node_Id; Val : Boolean := True);    -- Flag8
9756
9757    procedure Set_No_Initialization
9758      (N : Node_Id; Val : Boolean := True);    -- Flag13
9759
9760    procedure Set_No_Truncation
9761      (N : Node_Id; Val : Boolean := True);    -- Flag17
9762
9763    procedure Set_Null_Present
9764      (N : Node_Id; Val : Boolean := True);    -- Flag13
9765
9766    procedure Set_Null_Exclusion_Present
9767      (N : Node_Id; Val : Boolean := True);    -- Flag11
9768
9769    procedure Set_Null_Exclusion_In_Return_Present
9770      (N : Node_Id; Val : Boolean := True);    -- Flag14
9771
9772    procedure Set_Null_Record_Present
9773      (N : Node_Id; Val : Boolean := True);    -- Flag17
9774
9775    procedure Set_Object_Definition
9776      (N : Node_Id; Val : Node_Id);            -- Node4
9777
9778    procedure Set_Of_Present
9779      (N : Node_Id; Val : Boolean := True);   -- Flag16
9780
9781    procedure Set_Original_Discriminant
9782      (N : Node_Id; Val : Node_Id);            -- Node2
9783
9784    procedure Set_Original_Entity
9785      (N : Node_Id; Val : Entity_Id);          -- Node2
9786
9787    procedure Set_Others_Discrete_Choices
9788      (N : Node_Id; Val : List_Id);            -- List1
9789
9790    procedure Set_Out_Present
9791      (N : Node_Id; Val : Boolean := True);    -- Flag17
9792
9793    procedure Set_Parameter_Associations
9794      (N : Node_Id; Val : List_Id);            -- List3
9795
9796    procedure Set_Parameter_List_Truncated
9797      (N : Node_Id; Val : Boolean := True);    -- Flag17
9798
9799    procedure Set_Parameter_Specifications
9800      (N : Node_Id; Val : List_Id);            -- List3
9801
9802    procedure Set_Parameter_Type
9803      (N : Node_Id; Val : Node_Id);            -- Node2
9804
9805    procedure Set_Parent_Spec
9806      (N : Node_Id; Val : Node_Id);            -- Node4
9807
9808    procedure Set_Position
9809      (N : Node_Id; Val : Node_Id);            -- Node2
9810
9811    procedure Set_Pragma_Argument_Associations
9812      (N : Node_Id; Val : List_Id);            -- List2
9813
9814    procedure Set_Pragma_Identifier
9815      (N : Node_Id; Val : Node_Id);            -- Node4
9816
9817    procedure Set_Pragmas_After
9818      (N : Node_Id; Val : List_Id);            -- List5
9819
9820    procedure Set_Pragmas_Before
9821      (N : Node_Id; Val : List_Id);            -- List4
9822
9823    procedure Set_Prefix
9824      (N : Node_Id; Val : Node_Id);            -- Node3
9825
9826    procedure Set_Premature_Use
9827      (N : Node_Id; Val : Node_Id);            -- Node5
9828
9829    procedure Set_Present_Expr
9830      (N : Node_Id; Val : Uint);               -- Uint3
9831
9832    procedure Set_Prev_Ids
9833      (N : Node_Id; Val : Boolean := True);    -- Flag6
9834
9835    procedure Set_Print_In_Hex
9836      (N : Node_Id; Val : Boolean := True);    -- Flag13
9837
9838    procedure Set_Private_Declarations
9839      (N : Node_Id; Val : List_Id);            -- List3
9840
9841    procedure Set_Private_Present
9842      (N : Node_Id; Val : Boolean := True);    -- Flag15
9843
9844    procedure Set_Procedure_To_Call
9845      (N : Node_Id; Val : Node_Id);            -- Node2
9846
9847    procedure Set_Proper_Body
9848      (N : Node_Id; Val : Node_Id);            -- Node1
9849
9850    procedure Set_Protected_Definition
9851      (N : Node_Id; Val : Node_Id);            -- Node3
9852
9853    procedure Set_Protected_Present
9854      (N : Node_Id; Val : Boolean := True);    -- Flag6
9855
9856    procedure Set_Raises_Constraint_Error
9857      (N : Node_Id; Val : Boolean := True);    -- Flag7
9858
9859    procedure Set_Range_Constraint
9860      (N : Node_Id; Val : Node_Id);            -- Node4
9861
9862    procedure Set_Range_Expression
9863      (N : Node_Id; Val : Node_Id);            -- Node4
9864
9865    procedure Set_Real_Range_Specification
9866      (N : Node_Id; Val : Node_Id);            -- Node4
9867
9868    procedure Set_Realval
9869      (N : Node_Id; Val : Ureal);              -- Ureal3
9870
9871    procedure Set_Reason
9872      (N : Node_Id; Val : Uint);               -- Uint3
9873
9874    procedure Set_Record_Extension_Part
9875      (N : Node_Id; Val : Node_Id);            -- Node3
9876
9877    procedure Set_Redundant_Use
9878      (N : Node_Id; Val : Boolean := True);    -- Flag13
9879
9880    procedure Set_Renaming_Exception
9881      (N : Node_Id; Val : Node_Id);            -- Node2
9882
9883    procedure Set_Result_Definition
9884      (N : Node_Id; Val : Node_Id);            -- Node4
9885
9886    procedure Set_Return_Object_Declarations
9887      (N : Node_Id; Val : List_Id);            -- List3
9888
9889    procedure Set_Return_Statement_Entity
9890      (N : Node_Id; Val : Node_Id);            -- Node5
9891
9892    procedure Set_Reverse_Present
9893      (N : Node_Id; Val : Boolean := True);    -- Flag15
9894
9895    procedure Set_Right_Opnd
9896      (N : Node_Id; Val : Node_Id);            -- Node3
9897
9898    procedure Set_Rounded_Result
9899      (N : Node_Id; Val : Boolean := True);    -- Flag18
9900
9901    procedure Set_SCIL_Controlling_Tag
9902      (N : Node_Id; Val : Node_Id);            -- Node5
9903
9904    procedure Set_SCIL_Entity
9905      (N : Node_Id; Val : Node_Id);            -- Node4
9906
9907    procedure Set_SCIL_Tag_Value
9908      (N : Node_Id; Val : Node_Id);            -- Node5
9909
9910    procedure Set_SCIL_Target_Prim
9911      (N : Node_Id; Val : Node_Id);            -- Node2
9912
9913    procedure Set_Scope
9914      (N : Node_Id; Val : Node_Id);            -- Node3
9915
9916    procedure Set_Select_Alternatives
9917      (N : Node_Id; Val : List_Id);            -- List1
9918
9919    procedure Set_Selector_Name
9920      (N : Node_Id; Val : Node_Id);            -- Node2
9921
9922    procedure Set_Selector_Names
9923      (N : Node_Id; Val : List_Id);            -- List1
9924
9925    procedure Set_Shift_Count_OK
9926      (N : Node_Id; Val : Boolean := True);    -- Flag4
9927
9928    procedure Set_Source_Type
9929      (N : Node_Id; Val : Entity_Id);          -- Node1
9930
9931    procedure Set_Spec_PPC_List
9932      (N : Node_Id; Val : Node_Id);            -- Node1
9933
9934    procedure Set_Spec_TC_List
9935      (N : Node_Id; Val : Node_Id);            -- Node2
9936
9937    procedure Set_Specification
9938      (N : Node_Id; Val : Node_Id);            -- Node1
9939
9940    procedure Set_Split_PPC
9941      (N : Node_Id; Val : Boolean);            -- Flag17
9942
9943    procedure Set_Statements
9944      (N : Node_Id; Val : List_Id);            -- List3
9945
9946    procedure Set_Static_Processing_OK
9947      (N : Node_Id; Val : Boolean);            -- Flag4
9948
9949    procedure Set_Storage_Pool
9950      (N : Node_Id; Val : Node_Id);            -- Node1
9951
9952    procedure Set_Subpool_Handle_Name
9953      (N : Node_Id; Val : Node_Id);            -- Node4
9954
9955    procedure Set_Strval
9956      (N : Node_Id; Val : String_Id);          -- Str3
9957
9958    procedure Set_Subtype_Indication
9959      (N : Node_Id; Val : Node_Id);            -- Node5
9960
9961    procedure Set_Subtype_Mark
9962      (N : Node_Id; Val : Node_Id);            -- Node4
9963
9964    procedure Set_Subtype_Marks
9965      (N : Node_Id; Val : List_Id);            -- List2
9966
9967    procedure Set_Suppress_Assignment_Checks
9968      (N : Node_Id; Val : Boolean := True);    -- Flag18
9969
9970    procedure Set_Suppress_Loop_Warnings
9971      (N : Node_Id; Val : Boolean := True);    -- Flag17
9972
9973    procedure Set_Synchronized_Present
9974      (N : Node_Id; Val : Boolean := True);    -- Flag7
9975
9976    procedure Set_Tagged_Present
9977      (N : Node_Id; Val : Boolean := True);    -- Flag15
9978
9979    procedure Set_Target_Type
9980      (N : Node_Id; Val : Entity_Id);          -- Node2
9981
9982    procedure Set_Task_Definition
9983      (N : Node_Id; Val : Node_Id);            -- Node3
9984
9985    procedure Set_Task_Present
9986      (N : Node_Id; Val : Boolean := True);    -- Flag5
9987
9988    procedure Set_Then_Actions
9989      (N : Node_Id; Val : List_Id);            -- List2
9990
9991    procedure Set_Then_Statements
9992      (N : Node_Id; Val : List_Id);            -- List2
9993
9994    procedure Set_Treat_Fixed_As_Integer
9995      (N : Node_Id; Val : Boolean := True);    -- Flag14
9996
9997    procedure Set_Triggering_Alternative
9998      (N : Node_Id; Val : Node_Id);            -- Node1
9999
10000    procedure Set_Triggering_Statement
10001      (N : Node_Id; Val : Node_Id);            -- Node1
10002
10003    procedure Set_TSS_Elist
10004      (N : Node_Id; Val : Elist_Id);           -- Elist3
10005
10006    procedure Set_Type_Definition
10007      (N : Node_Id; Val : Node_Id);            -- Node3
10008
10009    procedure Set_Unit
10010      (N : Node_Id; Val : Node_Id);            -- Node2
10011
10012    procedure Set_Unknown_Discriminants_Present
10013      (N : Node_Id; Val : Boolean := True);    -- Flag13
10014
10015    procedure Set_Unreferenced_In_Spec
10016      (N : Node_Id; Val : Boolean := True);    -- Flag7
10017
10018    procedure Set_Variant_Part
10019      (N : Node_Id; Val : Node_Id);            -- Node4
10020
10021    procedure Set_Variants
10022      (N : Node_Id; Val : List_Id);            -- List1
10023
10024    procedure Set_Visible_Declarations
10025      (N : Node_Id; Val : List_Id);            -- List2
10026
10027    procedure Set_Used_Operations
10028      (N : Node_Id; Val : Elist_Id);           -- Elist5
10029
10030    procedure Set_Was_Originally_Stub
10031      (N : Node_Id; Val : Boolean := True);    -- Flag13
10032
10033    procedure Set_Withed_Body
10034      (N : Node_Id; Val : Node_Id);            -- Node1
10035
10036    -------------------------
10037    -- Iterator Procedures --
10038    -------------------------
10039
10040    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10041
10042    procedure Next_Entity       (N : in out Node_Id);
10043    procedure Next_Named_Actual (N : in out Node_Id);
10044    procedure Next_Rep_Item     (N : in out Node_Id);
10045    procedure Next_Use_Clause   (N : in out Node_Id);
10046
10047    -------------------------------------------
10048    -- Miscellaneous Tree Access Subprograms --
10049    -------------------------------------------
10050
10051    function End_Location (N : Node_Id) return Source_Ptr;
10052    --  N is an N_If_Statement or N_Case_Statement node, and this function
10053    --  returns the location of the IF token in the END IF sequence by
10054    --  translating the value of the End_Span field.
10055
10056    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10057    --  N is an N_If_Statement or N_Case_Statement node. This procedure sets
10058    --  the End_Span field to correspond to the given value S. In other words,
10059    --  End_Span is set to the difference between S and Sloc (N), the starting
10060    --  location.
10061
10062    function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10063    --  Given an argument to a pragma Arg, this function returns the expression
10064    --  for the argument. This is Arg itself, or, in the case where Arg is a
10065    --  pragma argument association node, the expression from this node.
10066
10067    --------------------------------
10068    -- Node_Kind Membership Tests --
10069    --------------------------------
10070
10071    --  The following functions allow a convenient notation for testing whether
10072    --  a Node_Kind value matches any one of a list of possible values. In each
10073    --  case True is returned if the given T argument is equal to any of the V
10074    --  arguments. Note that there is a similar set of functions defined in
10075    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
10076
10077    function Nkind_In
10078      (T  : Node_Kind;
10079       V1 : Node_Kind;
10080       V2 : Node_Kind) return Boolean;
10081
10082    function Nkind_In
10083      (T  : Node_Kind;
10084       V1 : Node_Kind;
10085       V2 : Node_Kind;
10086       V3 : Node_Kind) return Boolean;
10087
10088    function Nkind_In
10089      (T  : Node_Kind;
10090       V1 : Node_Kind;
10091       V2 : Node_Kind;
10092       V3 : Node_Kind;
10093       V4 : Node_Kind) return Boolean;
10094
10095    function Nkind_In
10096      (T  : Node_Kind;
10097       V1 : Node_Kind;
10098       V2 : Node_Kind;
10099       V3 : Node_Kind;
10100       V4 : Node_Kind;
10101       V5 : Node_Kind) return Boolean;
10102
10103    function Nkind_In
10104      (T  : Node_Kind;
10105       V1 : Node_Kind;
10106       V2 : Node_Kind;
10107       V3 : Node_Kind;
10108       V4 : Node_Kind;
10109       V5 : Node_Kind;
10110       V6 : Node_Kind) return Boolean;
10111
10112    function Nkind_In
10113      (T  : Node_Kind;
10114       V1 : Node_Kind;
10115       V2 : Node_Kind;
10116       V3 : Node_Kind;
10117       V4 : Node_Kind;
10118       V5 : Node_Kind;
10119       V6 : Node_Kind;
10120       V7 : Node_Kind) return Boolean;
10121
10122    function Nkind_In
10123      (T  : Node_Kind;
10124       V1 : Node_Kind;
10125       V2 : Node_Kind;
10126       V3 : Node_Kind;
10127       V4 : Node_Kind;
10128       V5 : Node_Kind;
10129       V6 : Node_Kind;
10130       V7 : Node_Kind;
10131       V8 : Node_Kind) return Boolean;
10132
10133    function Nkind_In
10134      (T  : Node_Kind;
10135       V1 : Node_Kind;
10136       V2 : Node_Kind;
10137       V3 : Node_Kind;
10138       V4 : Node_Kind;
10139       V5 : Node_Kind;
10140       V6 : Node_Kind;
10141       V7 : Node_Kind;
10142       V8 : Node_Kind;
10143       V9 : Node_Kind) return Boolean;
10144
10145    pragma Inline (Nkind_In);
10146    --  Inline all above functions
10147
10148    -----------------------
10149    -- Utility Functions --
10150    -----------------------
10151
10152    function Pragma_Name (N : Node_Id) return Name_Id;
10153    pragma Inline (Pragma_Name);
10154    --  Convenient function to obtain Chars field of Pragma_Identifier
10155
10156    -----------------------------
10157    -- Syntactic Parent Tables --
10158    -----------------------------
10159
10160    --  These tables show for each node, and for each of the five fields,
10161    --  whether the corresponding field is syntactic (True) or semantic (False).
10162    --  Unused entries are also set to False.
10163
10164    subtype Field_Num is Natural range 1 .. 5;
10165
10166    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10167
10168    --  Following entries can be built automatically from the sinfo sources
10169    --  using the makeisf utility (currently this program is in spitbol).
10170
10171      N_Identifier =>
10172        (1 => True,    --  Chars (Name1)
10173         2 => False,   --  Original_Discriminant (Node2-Sem)
10174         3 => False,   --  unused
10175         4 => False,   --  Entity (Node4-Sem)
10176         5 => False),  --  Etype (Node5-Sem)
10177
10178      N_Integer_Literal =>
10179        (1 => False,   --  unused
10180         2 => False,   --  Original_Entity (Node2-Sem)
10181         3 => True,    --  Intval (Uint3)
10182         4 => False,   --  unused
10183         5 => False),  --  Etype (Node5-Sem)
10184
10185      N_Real_Literal =>
10186        (1 => False,   --  unused
10187         2 => False,   --  Original_Entity (Node2-Sem)
10188         3 => True,    --  Realval (Ureal3)
10189         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
10190         5 => False),  --  Etype (Node5-Sem)
10191
10192      N_Character_Literal =>
10193        (1 => True,    --  Chars (Name1)
10194         2 => True,    --  Char_Literal_Value (Uint2)
10195         3 => False,   --  unused
10196         4 => False,   --  Entity (Node4-Sem)
10197         5 => False),  --  Etype (Node5-Sem)
10198
10199      N_String_Literal =>
10200        (1 => False,   --  unused
10201         2 => False,   --  unused
10202         3 => True,    --  Strval (Str3)
10203         4 => False,   --  unused
10204         5 => False),  --  Etype (Node5-Sem)
10205
10206      N_Pragma =>
10207        (1 => False,   --  Next_Pragma (Node1-Sem)
10208         2 => True,    --  Pragma_Argument_Associations (List2)
10209         3 => False,   --  unused
10210         4 => True,    --  Pragma_Identifier (Node4)
10211         5 => False),  --  Next_Rep_Item (Node5-Sem)
10212
10213      N_Pragma_Argument_Association =>
10214        (1 => True,    --  Chars (Name1)
10215         2 => False,   --  unused
10216         3 => True,    --  Expression (Node3)
10217         4 => False,   --  unused
10218         5 => False),  --  unused
10219
10220      N_Defining_Identifier =>
10221        (1 => True,    --  Chars (Name1)
10222         2 => False,   --  Next_Entity (Node2-Sem)
10223         3 => False,   --  Scope (Node3-Sem)
10224         4 => False,   --  unused
10225         5 => False),  --  Etype (Node5-Sem)
10226
10227      N_Full_Type_Declaration =>
10228        (1 => True,    --  Defining_Identifier (Node1)
10229         2 => False,   --  unused
10230         3 => True,    --  Type_Definition (Node3)
10231         4 => True,    --  Discriminant_Specifications (List4)
10232         5 => False),  --  unused
10233
10234      N_Subtype_Declaration =>
10235        (1 => True,    --  Defining_Identifier (Node1)
10236         2 => False,   --  unused
10237         3 => False,   --  unused
10238         4 => False,   --  Generic_Parent_Type (Node4-Sem)
10239         5 => True),   --  Subtype_Indication (Node5)
10240
10241      N_Subtype_Indication =>
10242        (1 => False,   --  unused
10243         2 => False,   --  unused
10244         3 => True,    --  Constraint (Node3)
10245         4 => True,    --  Subtype_Mark (Node4)
10246         5 => False),  --  Etype (Node5-Sem)
10247
10248      N_Object_Declaration =>
10249        (1 => True,    --  Defining_Identifier (Node1)
10250         2 => False,   --  Handler_List_Entry (Node2-Sem)
10251         3 => True,    --  Expression (Node3)
10252         4 => True,    --  Object_Definition (Node4)
10253         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10254
10255      N_Number_Declaration =>
10256        (1 => True,    --  Defining_Identifier (Node1)
10257         2 => False,   --  unused
10258         3 => True,    --  Expression (Node3)
10259         4 => False,   --  unused
10260         5 => False),  --  unused
10261
10262      N_Derived_Type_Definition =>
10263        (1 => False,   --  unused
10264         2 => True,    --  Interface_List (List2)
10265         3 => True,    --  Record_Extension_Part (Node3)
10266         4 => False,   --  unused
10267         5 => True),   --  Subtype_Indication (Node5)
10268
10269      N_Range_Constraint =>
10270        (1 => False,   --  unused
10271         2 => False,   --  unused
10272         3 => False,   --  unused
10273         4 => True,    --  Range_Expression (Node4)
10274         5 => False),  --  unused
10275
10276      N_Range =>
10277        (1 => True,    --  Low_Bound (Node1)
10278         2 => True,    --  High_Bound (Node2)
10279         3 => False,   --  unused
10280         4 => False,   --  unused
10281         5 => False),  --  Etype (Node5-Sem)
10282
10283      N_Enumeration_Type_Definition =>
10284        (1 => True,    --  Literals (List1)
10285         2 => False,   --  unused
10286         3 => False,   --  unused
10287         4 => True,    --  End_Label (Node4)
10288         5 => False),  --  unused
10289
10290      N_Defining_Character_Literal =>
10291        (1 => True,    --  Chars (Name1)
10292         2 => False,   --  Next_Entity (Node2-Sem)
10293         3 => False,   --  Scope (Node3-Sem)
10294         4 => False,   --  unused
10295         5 => False),  --  Etype (Node5-Sem)
10296
10297      N_Signed_Integer_Type_Definition =>
10298        (1 => True,    --  Low_Bound (Node1)
10299         2 => True,    --  High_Bound (Node2)
10300         3 => False,   --  unused
10301         4 => False,   --  unused
10302         5 => False),  --  unused
10303
10304      N_Modular_Type_Definition =>
10305        (1 => False,   --  unused
10306         2 => False,   --  unused
10307         3 => True,    --  Expression (Node3)
10308         4 => False,   --  unused
10309         5 => False),  --  unused
10310
10311      N_Floating_Point_Definition =>
10312        (1 => False,   --  unused
10313         2 => True,    --  Digits_Expression (Node2)
10314         3 => False,   --  unused
10315         4 => True,    --  Real_Range_Specification (Node4)
10316         5 => False),  --  unused
10317
10318      N_Real_Range_Specification =>
10319        (1 => True,    --  Low_Bound (Node1)
10320         2 => True,    --  High_Bound (Node2)
10321         3 => False,   --  unused
10322         4 => False,   --  unused
10323         5 => False),  --  unused
10324
10325      N_Ordinary_Fixed_Point_Definition =>
10326        (1 => False,   --  unused
10327         2 => False,   --  unused
10328         3 => True,    --  Delta_Expression (Node3)
10329         4 => True,    --  Real_Range_Specification (Node4)
10330         5 => False),  --  unused
10331
10332      N_Decimal_Fixed_Point_Definition =>
10333        (1 => False,   --  unused
10334         2 => True,    --  Digits_Expression (Node2)
10335         3 => True,    --  Delta_Expression (Node3)
10336         4 => True,    --  Real_Range_Specification (Node4)
10337         5 => False),  --  unused
10338
10339      N_Digits_Constraint =>
10340        (1 => False,   --  unused
10341         2 => True,    --  Digits_Expression (Node2)
10342         3 => False,   --  unused
10343         4 => True,    --  Range_Constraint (Node4)
10344         5 => False),  --  unused
10345
10346      N_Unconstrained_Array_Definition =>
10347        (1 => False,   --  unused
10348         2 => True,    --  Subtype_Marks (List2)
10349         3 => False,   --  unused
10350         4 => True,    --  Component_Definition (Node4)
10351         5 => False),  --  unused
10352
10353      N_Constrained_Array_Definition =>
10354        (1 => False,   --  unused
10355         2 => True,    --  Discrete_Subtype_Definitions (List2)
10356         3 => False,   --  unused
10357         4 => True,    --  Component_Definition (Node4)
10358         5 => False),  --  unused
10359
10360      N_Component_Definition =>
10361        (1 => False,   --  unused
10362         2 => False,   --  unused
10363         3 => True,    --  Access_Definition (Node3)
10364         4 => False,   --  unused
10365         5 => True),   --  Subtype_Indication (Node5)
10366
10367      N_Discriminant_Specification =>
10368        (1 => True,    --  Defining_Identifier (Node1)
10369         2 => False,   --  unused
10370         3 => True,    --  Expression (Node3)
10371         4 => False,   --  unused
10372         5 => True),   --  Discriminant_Type (Node5)
10373
10374      N_Index_Or_Discriminant_Constraint =>
10375        (1 => True,    --  Constraints (List1)
10376         2 => False,   --  unused
10377         3 => False,   --  unused
10378         4 => False,   --  unused
10379         5 => False),  --  unused
10380
10381      N_Discriminant_Association =>
10382        (1 => True,    --  Selector_Names (List1)
10383         2 => False,   --  unused
10384         3 => True,    --  Expression (Node3)
10385         4 => False,   --  unused
10386         5 => False),  --  unused
10387
10388      N_Record_Definition =>
10389        (1 => True,    --  Component_List (Node1)
10390         2 => True,    --  Interface_List (List2)
10391         3 => False,   --  unused
10392         4 => True,    --  End_Label (Node4)
10393         5 => False),  --  unused
10394
10395      N_Component_List =>
10396        (1 => False,   --  unused
10397         2 => False,   --  unused
10398         3 => True,    --  Component_Items (List3)
10399         4 => True,    --  Variant_Part (Node4)
10400         5 => False),  --  unused
10401
10402      N_Component_Declaration =>
10403        (1 => True,    --  Defining_Identifier (Node1)
10404         2 => False,   --  unused
10405         3 => True,    --  Expression (Node3)
10406         4 => True,    --  Component_Definition (Node4)
10407         5 => False),  --  unused
10408
10409      N_Variant_Part =>
10410        (1 => True,    --  Variants (List1)
10411         2 => True,    --  Name (Node2)
10412         3 => False,   --  unused
10413         4 => False,   --  unused
10414         5 => False),  --  unused
10415
10416      N_Variant =>
10417        (1 => True,    --  Component_List (Node1)
10418         2 => False,   --  Enclosing_Variant (Node2-Sem)
10419         3 => False,   --  Present_Expr (Uint3-Sem)
10420         4 => True,    --  Discrete_Choices (List4)
10421         5 => False),  --  Dcheck_Function (Node5-Sem)
10422
10423      N_Others_Choice =>
10424        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
10425         2 => False,   --  unused
10426         3 => False,   --  unused
10427         4 => False,   --  unused
10428         5 => False),  --  unused
10429
10430      N_Access_To_Object_Definition =>
10431        (1 => False,   --  unused
10432         2 => False,   --  unused
10433         3 => False,   --  unused
10434         4 => False,   --  unused
10435         5 => True),   --  Subtype_Indication (Node5)
10436
10437      N_Access_Function_Definition =>
10438        (1 => False,   --  unused
10439         2 => False,   --  unused
10440         3 => True,    --  Parameter_Specifications (List3)
10441         4 => True,    --  Result_Definition (Node4)
10442         5 => False),  --  unused
10443
10444      N_Access_Procedure_Definition =>
10445        (1 => False,   --  unused
10446         2 => False,   --  unused
10447         3 => True,    --  Parameter_Specifications (List3)
10448         4 => False,   --  unused
10449         5 => False),  --  unused
10450
10451      N_Access_Definition =>
10452        (1 => False,   --  unused
10453         2 => False,   --  unused
10454         3 => True,    --  Access_To_Subprogram_Definition (Node3)
10455         4 => True,    --  Subtype_Mark (Node4)
10456         5 => False),  --  unused
10457
10458      N_Incomplete_Type_Declaration =>
10459        (1 => True,    --  Defining_Identifier (Node1)
10460         2 => False,   --  unused
10461         3 => False,   --  unused
10462         4 => True,    --  Discriminant_Specifications (List4)
10463         5 => False),  --  Premature_Use
10464
10465      N_Explicit_Dereference =>
10466        (1 => False,   --  unused
10467         2 => False,   --  unused
10468         3 => True,    --  Prefix (Node3)
10469         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10470         5 => False),  --  Etype (Node5-Sem)
10471
10472      N_Indexed_Component =>
10473        (1 => True,    --  Expressions (List1)
10474         2 => False,   --  unused
10475         3 => True,    --  Prefix (Node3)
10476         4 => False,   --  unused
10477         5 => False),  --  Etype (Node5-Sem)
10478
10479      N_Slice =>
10480        (1 => False,   --  unused
10481         2 => False,   --  unused
10482         3 => True,    --  Prefix (Node3)
10483         4 => True,    --  Discrete_Range (Node4)
10484         5 => False),  --  Etype (Node5-Sem)
10485
10486      N_Selected_Component =>
10487        (1 => False,   --  unused
10488         2 => True,    --  Selector_Name (Node2)
10489         3 => True,    --  Prefix (Node3)
10490         4 => False,   --  unused
10491         5 => False),  --  Etype (Node5-Sem)
10492
10493      N_Attribute_Reference =>
10494        (1 => True,    --  Expressions (List1)
10495         2 => True,    --  Attribute_Name (Name2)
10496         3 => True,    --  Prefix (Node3)
10497         4 => False,   --  Entity (Node4-Sem)
10498         5 => False),  --  Etype (Node5-Sem)
10499
10500      N_Aggregate =>
10501        (1 => True,    --  Expressions (List1)
10502         2 => True,    --  Component_Associations (List2)
10503         3 => False,   --  Aggregate_Bounds (Node3-Sem)
10504         4 => False,   --  unused
10505         5 => False),  --  Etype (Node5-Sem)
10506
10507      N_Component_Association =>
10508        (1 => True,    --  Choices (List1)
10509         2 => False,   --  Loop_Actions (List2-Sem)
10510         3 => True,    --  Expression (Node3)
10511         4 => False,   --  unused
10512         5 => False),  --  unused
10513
10514      N_Extension_Aggregate =>
10515        (1 => True,    --  Expressions (List1)
10516         2 => True,    --  Component_Associations (List2)
10517         3 => True,    --  Ancestor_Part (Node3)
10518         4 => False,   --  unused
10519         5 => False),  --  Etype (Node5-Sem)
10520
10521      N_Null =>
10522        (1 => False,   --  unused
10523         2 => False,   --  unused
10524         3 => False,   --  unused
10525         4 => False,   --  unused
10526         5 => False),  --  Etype (Node5-Sem)
10527
10528      N_And_Then =>
10529        (1 => False,   --  Actions (List1-Sem)
10530         2 => True,    --  Left_Opnd (Node2)
10531         3 => True,    --  Right_Opnd (Node3)
10532         4 => False,   --  unused
10533         5 => False),  --  Etype (Node5-Sem)
10534
10535      N_Or_Else =>
10536        (1 => False,   --  Actions (List1-Sem)
10537         2 => True,    --  Left_Opnd (Node2)
10538         3 => True,    --  Right_Opnd (Node3)
10539         4 => False,   --  unused
10540         5 => False),  --  Etype (Node5-Sem)
10541
10542      N_In =>
10543        (1 => False,   --  unused
10544         2 => True,    --  Left_Opnd (Node2)
10545         3 => True,    --  Right_Opnd (Node3)
10546         4 => True,    --  Alternatives (List4)
10547         5 => False),  --  Etype (Node5-Sem)
10548
10549      N_Not_In =>
10550        (1 => False,   --  unused
10551         2 => True,    --  Left_Opnd (Node2)
10552         3 => True,    --  Right_Opnd (Node3)
10553         4 => True,    --  Alternatives (List4)
10554         5 => False),  --  Etype (Node5-Sem)
10555
10556      N_Op_And =>
10557        (1 => True,    --  Chars (Name1)
10558         2 => True,    --  Left_Opnd (Node2)
10559         3 => True,    --  Right_Opnd (Node3)
10560         4 => False,   --  Entity (Node4-Sem)
10561         5 => False),  --  Etype (Node5-Sem)
10562
10563      N_Op_Or =>
10564        (1 => True,    --  Chars (Name1)
10565         2 => True,    --  Left_Opnd (Node2)
10566         3 => True,    --  Right_Opnd (Node3)
10567         4 => False,   --  Entity (Node4-Sem)
10568         5 => False),  --  Etype (Node5-Sem)
10569
10570      N_Op_Xor =>
10571        (1 => True,    --  Chars (Name1)
10572         2 => True,    --  Left_Opnd (Node2)
10573         3 => True,    --  Right_Opnd (Node3)
10574         4 => False,   --  Entity (Node4-Sem)
10575         5 => False),  --  Etype (Node5-Sem)
10576
10577      N_Op_Eq =>
10578        (1 => True,    --  Chars (Name1)
10579         2 => True,    --  Left_Opnd (Node2)
10580         3 => True,    --  Right_Opnd (Node3)
10581         4 => False,   --  Entity (Node4-Sem)
10582         5 => False),  --  Etype (Node5-Sem)
10583
10584      N_Op_Ne =>
10585        (1 => True,    --  Chars (Name1)
10586         2 => True,    --  Left_Opnd (Node2)
10587         3 => True,    --  Right_Opnd (Node3)
10588         4 => False,   --  Entity (Node4-Sem)
10589         5 => False),  --  Etype (Node5-Sem)
10590
10591      N_Op_Lt =>
10592        (1 => True,    --  Chars (Name1)
10593         2 => True,    --  Left_Opnd (Node2)
10594         3 => True,    --  Right_Opnd (Node3)
10595         4 => False,   --  Entity (Node4-Sem)
10596         5 => False),  --  Etype (Node5-Sem)
10597
10598      N_Op_Le =>
10599        (1 => True,    --  Chars (Name1)
10600         2 => True,    --  Left_Opnd (Node2)
10601         3 => True,    --  Right_Opnd (Node3)
10602         4 => False,   --  Entity (Node4-Sem)
10603         5 => False),  --  Etype (Node5-Sem)
10604
10605      N_Op_Gt =>
10606        (1 => True,    --  Chars (Name1)
10607         2 => True,    --  Left_Opnd (Node2)
10608         3 => True,    --  Right_Opnd (Node3)
10609         4 => False,   --  Entity (Node4-Sem)
10610         5 => False),  --  Etype (Node5-Sem)
10611
10612      N_Op_Ge =>
10613        (1 => True,    --  Chars (Name1)
10614         2 => True,    --  Left_Opnd (Node2)
10615         3 => True,    --  Right_Opnd (Node3)
10616         4 => False,   --  Entity (Node4-Sem)
10617         5 => False),  --  Etype (Node5-Sem)
10618
10619      N_Op_Add =>
10620        (1 => True,    --  Chars (Name1)
10621         2 => True,    --  Left_Opnd (Node2)
10622         3 => True,    --  Right_Opnd (Node3)
10623         4 => False,   --  Entity (Node4-Sem)
10624         5 => False),  --  Etype (Node5-Sem)
10625
10626      N_Op_Subtract =>
10627        (1 => True,    --  Chars (Name1)
10628         2 => True,    --  Left_Opnd (Node2)
10629         3 => True,    --  Right_Opnd (Node3)
10630         4 => False,   --  Entity (Node4-Sem)
10631         5 => False),  --  Etype (Node5-Sem)
10632
10633      N_Op_Concat =>
10634        (1 => True,    --  Chars (Name1)
10635         2 => True,    --  Left_Opnd (Node2)
10636         3 => True,    --  Right_Opnd (Node3)
10637         4 => False,   --  Entity (Node4-Sem)
10638         5 => False),  --  Etype (Node5-Sem)
10639
10640      N_Op_Multiply =>
10641        (1 => True,    --  Chars (Name1)
10642         2 => True,    --  Left_Opnd (Node2)
10643         3 => True,    --  Right_Opnd (Node3)
10644         4 => False,   --  Entity (Node4-Sem)
10645         5 => False),  --  Etype (Node5-Sem)
10646
10647      N_Op_Divide =>
10648        (1 => True,    --  Chars (Name1)
10649         2 => True,    --  Left_Opnd (Node2)
10650         3 => True,    --  Right_Opnd (Node3)
10651         4 => False,   --  Entity (Node4-Sem)
10652         5 => False),  --  Etype (Node5-Sem)
10653
10654      N_Op_Mod =>
10655        (1 => True,    --  Chars (Name1)
10656         2 => True,    --  Left_Opnd (Node2)
10657         3 => True,    --  Right_Opnd (Node3)
10658         4 => False,   --  Entity (Node4-Sem)
10659         5 => False),  --  Etype (Node5-Sem)
10660
10661      N_Op_Rem =>
10662        (1 => True,    --  Chars (Name1)
10663         2 => True,    --  Left_Opnd (Node2)
10664         3 => True,    --  Right_Opnd (Node3)
10665         4 => False,   --  Entity (Node4-Sem)
10666         5 => False),  --  Etype (Node5-Sem)
10667
10668      N_Op_Expon =>
10669        (1 => True,    --  Chars (Name1)
10670         2 => True,    --  Left_Opnd (Node2)
10671         3 => True,    --  Right_Opnd (Node3)
10672         4 => False,   --  Entity (Node4-Sem)
10673         5 => False),  --  Etype (Node5-Sem)
10674
10675      N_Op_Plus =>
10676        (1 => True,    --  Chars (Name1)
10677         2 => False,   --  unused
10678         3 => True,    --  Right_Opnd (Node3)
10679         4 => False,   --  Entity (Node4-Sem)
10680         5 => False),  --  Etype (Node5-Sem)
10681
10682      N_Op_Minus =>
10683        (1 => True,    --  Chars (Name1)
10684         2 => False,   --  unused
10685         3 => True,    --  Right_Opnd (Node3)
10686         4 => False,   --  Entity (Node4-Sem)
10687         5 => False),  --  Etype (Node5-Sem)
10688
10689      N_Op_Abs =>
10690        (1 => True,    --  Chars (Name1)
10691         2 => False,   --  unused
10692         3 => True,    --  Right_Opnd (Node3)
10693         4 => False,   --  Entity (Node4-Sem)
10694         5 => False),  --  Etype (Node5-Sem)
10695
10696      N_Op_Not =>
10697        (1 => True,    --  Chars (Name1)
10698         2 => False,   --  unused
10699         3 => True,    --  Right_Opnd (Node3)
10700         4 => False,   --  Entity (Node4-Sem)
10701         5 => False),  --  Etype (Node5-Sem)
10702
10703      N_Type_Conversion =>
10704        (1 => False,   --  unused
10705         2 => False,   --  unused
10706         3 => True,    --  Expression (Node3)
10707         4 => True,    --  Subtype_Mark (Node4)
10708         5 => False),  --  Etype (Node5-Sem)
10709
10710      N_Qualified_Expression =>
10711        (1 => False,   --  unused
10712         2 => False,   --  unused
10713         3 => True,    --  Expression (Node3)
10714         4 => True,    --  Subtype_Mark (Node4)
10715         5 => False),  --  Etype (Node5-Sem)
10716
10717      N_Quantified_Expression =>
10718        (1 => True,    --  Condition (Node1)
10719         2 => True,    --  Iterator_Specification
10720         3 => False,   --  unused
10721         4 => True,    --  Loop_Parameter_Specification (Node4)
10722         5 => False),  --  Etype (Node5-Sem)
10723
10724      N_Allocator =>
10725        (1 => False,   --  Storage_Pool (Node1-Sem)
10726         2 => False,   --  Procedure_To_Call (Node2-Sem)
10727         3 => True,    --  Expression (Node3)
10728         4 => True,    --  Subpool_Handle_Name (Node4)
10729         5 => False),  --  Etype (Node5-Sem)
10730
10731      N_Null_Statement =>
10732        (1 => False,   --  unused
10733         2 => False,   --  unused
10734         3 => False,   --  unused
10735         4 => False,   --  unused
10736         5 => False),  --  unused
10737
10738      N_Label =>
10739        (1 => True,    --  Identifier (Node1)
10740         2 => False,   --  unused
10741         3 => False,   --  unused
10742         4 => False,   --  unused
10743         5 => False),  --  unused
10744
10745      N_Assignment_Statement =>
10746        (1 => False,   --  unused
10747         2 => True,    --  Name (Node2)
10748         3 => True,    --  Expression (Node3)
10749         4 => False,   --  unused
10750         5 => False),  --  unused
10751
10752      N_If_Statement =>
10753        (1 => True,    --  Condition (Node1)
10754         2 => True,    --  Then_Statements (List2)
10755         3 => True,    --  Elsif_Parts (List3)
10756         4 => True,    --  Else_Statements (List4)
10757         5 => True),   --  End_Span (Uint5)
10758
10759      N_Elsif_Part =>
10760        (1 => True,    --  Condition (Node1)
10761         2 => True,    --  Then_Statements (List2)
10762         3 => False,   --  Condition_Actions (List3-Sem)
10763         4 => False,   --  unused
10764         5 => False),  --  unused
10765
10766      N_Case_Expression =>
10767        (1 => False,   --  unused
10768         2 => False,   --  unused
10769         3 => True,    --  Expression (Node3)
10770         4 => True,    --  Alternatives (List4)
10771         5 => False),  --  unused
10772
10773      N_Case_Expression_Alternative =>
10774        (1 => False,   --  Actions (List1-Sem)
10775         2 => False,   --  unused
10776         3 => True,    --  Statements (List3)
10777         4 => True,    --  Expression (Node4)
10778         5 => False),  --  unused
10779
10780      N_Case_Statement =>
10781        (1 => False,   --  unused
10782         2 => False,   --  unused
10783         3 => True,    --  Expression (Node3)
10784         4 => True,    --  Alternatives (List4)
10785         5 => True),   --  End_Span (Uint5)
10786
10787      N_Case_Statement_Alternative =>
10788        (1 => False,   --  unused
10789         2 => False,   --  unused
10790         3 => True,    --  Statements (List3)
10791         4 => True,    --  Discrete_Choices (List4)
10792         5 => False),  --  unused
10793
10794      N_Loop_Statement =>
10795        (1 => True,    --  Identifier (Node1)
10796         2 => True,    --  Iteration_Scheme (Node2)
10797         3 => True,    --  Statements (List3)
10798         4 => True,    --  End_Label (Node4)
10799         5 => False),  --  unused
10800
10801      N_Iteration_Scheme =>
10802        (1 => True,    --  Condition (Node1)
10803         2 => True,    --  Iterator_Specification (Node2)
10804         3 => False,   --  Condition_Actions (List3-Sem)
10805         4 => True,    --  Loop_Parameter_Specification (Node4)
10806         5 => False),  --  unused
10807
10808      N_Loop_Parameter_Specification =>
10809        (1 => True,    --  Defining_Identifier (Node1)
10810         2 => False,   --  unused
10811         3 => False,   --  unused
10812         4 => True,    --  Discrete_Subtype_Definition (Node4)
10813         5 => False),  --  unused
10814
10815      N_Iterator_Specification =>
10816        (1 => True,    --  Defining_Identifier (Node1)
10817         2 => True,    --  Name (Node2)
10818         3 => False,   --  Unused
10819         4 => False,   --  Unused
10820         5 => True),   --  Subtype_Indication (Node5)
10821
10822      N_Block_Statement =>
10823        (1 => True,    --  Identifier (Node1)
10824         2 => True,    --  Declarations (List2)
10825         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10826         4 => True,    --  Handled_Statement_Sequence (Node4)
10827         5 => False),  --  unused
10828
10829      N_Exit_Statement =>
10830        (1 => True,    --  Condition (Node1)
10831         2 => True,    --  Name (Node2)
10832         3 => False,   --  unused
10833         4 => False,   --  unused
10834         5 => False),  --  unused
10835
10836      N_Goto_Statement =>
10837        (1 => False,   --  unused
10838         2 => True,    --  Name (Node2)
10839         3 => False,   --  unused
10840         4 => False,   --  unused
10841         5 => False),  --  unused
10842
10843      N_Subprogram_Declaration =>
10844        (1 => True,    --  Specification (Node1)
10845         2 => False,   --  unused
10846         3 => False,   --  Body_To_Inline (Node3-Sem)
10847         4 => False,   --  Parent_Spec (Node4-Sem)
10848         5 => False),  --  Corresponding_Body (Node5-Sem)
10849
10850      N_Abstract_Subprogram_Declaration =>
10851        (1 => True,    --  Specification (Node1)
10852         2 => False,   --  unused
10853         3 => False,   --  unused
10854         4 => False,   --  unused
10855         5 => False),  --  unused
10856
10857      N_Function_Specification =>
10858        (1 => True,    --  Defining_Unit_Name (Node1)
10859         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10860         3 => True,    --  Parameter_Specifications (List3)
10861         4 => True,    --  Result_Definition (Node4)
10862         5 => False),  --  Generic_Parent (Node5-Sem)
10863
10864      N_Procedure_Specification =>
10865        (1 => True,    --  Defining_Unit_Name (Node1)
10866         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10867         3 => True,    --  Parameter_Specifications (List3)
10868         4 => False,   --  unused
10869         5 => False),  --  Generic_Parent (Node5-Sem)
10870
10871      N_Designator =>
10872        (1 => True,    --  Identifier (Node1)
10873         2 => True,    --  Name (Node2)
10874         3 => False,   --  unused
10875         4 => False,   --  unused
10876         5 => False),  --  unused
10877
10878      N_Defining_Program_Unit_Name =>
10879        (1 => True,    --  Defining_Identifier (Node1)
10880         2 => True,    --  Name (Node2)
10881         3 => False,   --  unused
10882         4 => False,   --  unused
10883         5 => False),  --  unused
10884
10885      N_Operator_Symbol =>
10886        (1 => True,    --  Chars (Name1)
10887         2 => False,   --  unused
10888         3 => True,    --  Strval (Str3)
10889         4 => False,   --  Entity (Node4-Sem)
10890         5 => False),  --  Etype (Node5-Sem)
10891
10892      N_Defining_Operator_Symbol =>
10893        (1 => True,    --  Chars (Name1)
10894         2 => False,   --  Next_Entity (Node2-Sem)
10895         3 => False,   --  Scope (Node3-Sem)
10896         4 => False,   --  unused
10897         5 => False),  --  Etype (Node5-Sem)
10898
10899      N_Parameter_Specification =>
10900        (1 => True,    --  Defining_Identifier (Node1)
10901         2 => True,    --  Parameter_Type (Node2)
10902         3 => True,    --  Expression (Node3)
10903         4 => False,   --  unused
10904         5 => False),  --  Default_Expression (Node5-Sem)
10905
10906      N_Subprogram_Body =>
10907        (1 => True,    --  Specification (Node1)
10908         2 => True,    --  Declarations (List2)
10909         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10910         4 => True,    --  Handled_Statement_Sequence (Node4)
10911         5 => False),  --  Corresponding_Spec (Node5-Sem)
10912
10913      N_Expression_Function =>
10914        (1 => True,    --  Specification (Node1)
10915         2 => False,   --  unused
10916         3 => True,    --  Expression (Node3)
10917         4 => False,   --  unused
10918         5 => False),  --  unused
10919
10920      N_Procedure_Call_Statement =>
10921        (1 => False,   --  Controlling_Argument (Node1-Sem)
10922         2 => True,    --  Name (Node2)
10923         3 => True,    --  Parameter_Associations (List3)
10924         4 => False,   --  First_Named_Actual (Node4-Sem)
10925         5 => False),  --  Etype (Node5-Sem)
10926
10927      N_Function_Call =>
10928        (1 => False,   --  Controlling_Argument (Node1-Sem)
10929         2 => True,    --  Name (Node2)
10930         3 => True,    --  Parameter_Associations (List3)
10931         4 => False,   --  First_Named_Actual (Node4-Sem)
10932         5 => False),  --  Etype (Node5-Sem)
10933
10934      N_Parameter_Association =>
10935        (1 => False,   --  unused
10936         2 => True,    --  Selector_Name (Node2)
10937         3 => True,    --  Explicit_Actual_Parameter (Node3)
10938         4 => False,   --  Next_Named_Actual (Node4-Sem)
10939         5 => False),  --  unused
10940
10941      N_Return_Statement =>
10942        (1 => False,   --  Storage_Pool (Node1-Sem)
10943         2 => False,   --  Procedure_To_Call (Node2-Sem)
10944         3 => True,    --  Expression (Node3)
10945         4 => False,   --  unused
10946         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10947
10948      N_Extended_Return_Statement =>
10949        (1 => False,   --  Storage_Pool (Node1-Sem)
10950         2 => False,   --  Procedure_To_Call (Node2-Sem)
10951         3 => True,    --  Return_Object_Declarations (List3)
10952         4 => True,    --  Handled_Statement_Sequence (Node4)
10953         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10954
10955      N_Package_Declaration =>
10956        (1 => True,    --  Specification (Node1)
10957         2 => False,   --  unused
10958         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10959         4 => False,   --  Parent_Spec (Node4-Sem)
10960         5 => False),  --  Corresponding_Body (Node5-Sem)
10961
10962      N_Package_Specification =>
10963        (1 => True,    --  Defining_Unit_Name (Node1)
10964         2 => True,    --  Visible_Declarations (List2)
10965         3 => True,    --  Private_Declarations (List3)
10966         4 => True,    --  End_Label (Node4)
10967         5 => False),  --  Generic_Parent (Node5-Sem)
10968
10969      N_Package_Body =>
10970        (1 => True,    --  Defining_Unit_Name (Node1)
10971         2 => True,    --  Declarations (List2)
10972         3 => False,   --  unused
10973         4 => True,    --  Handled_Statement_Sequence (Node4)
10974         5 => False),  --  Corresponding_Spec (Node5-Sem)
10975
10976      N_Private_Type_Declaration =>
10977        (1 => True,    --  Defining_Identifier (Node1)
10978         2 => False,   --  unused
10979         3 => False,   --  unused
10980         4 => True,    --  Discriminant_Specifications (List4)
10981         5 => False),  --  unused
10982
10983      N_Private_Extension_Declaration =>
10984        (1 => True,    --  Defining_Identifier (Node1)
10985         2 => True,    --  Interface_List (List2)
10986         3 => False,   --  unused
10987         4 => True,    --  Discriminant_Specifications (List4)
10988         5 => True),   --  Subtype_Indication (Node5)
10989
10990      N_Use_Package_Clause =>
10991        (1 => False,   --  unused
10992         2 => True,    --  Names (List2)
10993         3 => False,   --  Next_Use_Clause (Node3-Sem)
10994         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10995         5 => False),  --  unused
10996
10997      N_Use_Type_Clause =>
10998        (1 => False,   --  unused
10999         2 => True,    --  Subtype_Marks (List2)
11000         3 => False,   --  Next_Use_Clause (Node3-Sem)
11001         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
11002         5 => False),  --  unused
11003
11004      N_Object_Renaming_Declaration =>
11005        (1 => True,    --  Defining_Identifier (Node1)
11006         2 => True,    --  Name (Node2)
11007         3 => True,    --  Access_Definition (Node3)
11008         4 => True,    --  Subtype_Mark (Node4)
11009         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
11010
11011      N_Exception_Renaming_Declaration =>
11012        (1 => True,    --  Defining_Identifier (Node1)
11013         2 => True,    --  Name (Node2)
11014         3 => False,   --  unused
11015         4 => False,   --  unused
11016         5 => False),  --  unused
11017
11018      N_Package_Renaming_Declaration =>
11019        (1 => True,    --  Defining_Unit_Name (Node1)
11020         2 => True,    --  Name (Node2)
11021         3 => False,   --  unused
11022         4 => False,   --  Parent_Spec (Node4-Sem)
11023         5 => False),  --  unused
11024
11025      N_Subprogram_Renaming_Declaration =>
11026        (1 => True,    --  Specification (Node1)
11027         2 => True,    --  Name (Node2)
11028         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
11029         4 => False,   --  Parent_Spec (Node4-Sem)
11030         5 => False),  --  Corresponding_Spec (Node5-Sem)
11031
11032      N_Generic_Package_Renaming_Declaration =>
11033        (1 => True,    --  Defining_Unit_Name (Node1)
11034         2 => True,    --  Name (Node2)
11035         3 => False,   --  unused
11036         4 => False,   --  Parent_Spec (Node4-Sem)
11037         5 => False),  --  unused
11038
11039      N_Generic_Procedure_Renaming_Declaration =>
11040        (1 => True,    --  Defining_Unit_Name (Node1)
11041         2 => True,    --  Name (Node2)
11042         3 => False,   --  unused
11043         4 => False,   --  Parent_Spec (Node4-Sem)
11044         5 => False),  --  unused
11045
11046      N_Generic_Function_Renaming_Declaration =>
11047        (1 => True,    --  Defining_Unit_Name (Node1)
11048         2 => True,    --  Name (Node2)
11049         3 => False,   --  unused
11050         4 => False,   --  Parent_Spec (Node4-Sem)
11051         5 => False),  --  unused
11052
11053      N_Task_Type_Declaration =>
11054        (1 => True,    --  Defining_Identifier (Node1)
11055         2 => True,    --  Interface_List (List2)
11056         3 => True,    --  Task_Definition (Node3)
11057         4 => True,    --  Discriminant_Specifications (List4)
11058         5 => False),  --  Corresponding_Body (Node5-Sem)
11059
11060      N_Single_Task_Declaration =>
11061        (1 => True,    --  Defining_Identifier (Node1)
11062         2 => True,    --  Interface_List (List2)
11063         3 => True,    --  Task_Definition (Node3)
11064         4 => False,   --  unused
11065         5 => False),  --  unused
11066
11067      N_Task_Definition =>
11068        (1 => False,   --  unused
11069         2 => True,    --  Visible_Declarations (List2)
11070         3 => True,    --  Private_Declarations (List3)
11071         4 => True,    --  End_Label (Node4)
11072         5 => False),  --  unused
11073
11074      N_Task_Body =>
11075        (1 => True,    --  Defining_Identifier (Node1)
11076         2 => True,    --  Declarations (List2)
11077         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11078         4 => True,    --  Handled_Statement_Sequence (Node4)
11079         5 => False),  --  Corresponding_Spec (Node5-Sem)
11080
11081      N_Protected_Type_Declaration =>
11082        (1 => True,    --  Defining_Identifier (Node1)
11083         2 => True,    --  Interface_List (List2)
11084         3 => True,    --  Protected_Definition (Node3)
11085         4 => True,    --  Discriminant_Specifications (List4)
11086         5 => False),  --  Corresponding_Body (Node5-Sem)
11087
11088      N_Single_Protected_Declaration =>
11089        (1 => True,    --  Defining_Identifier (Node1)
11090         2 => True,    --  Interface_List (List2)
11091         3 => True,    --  Protected_Definition (Node3)
11092         4 => False,   --  unused
11093         5 => False),  --  unused
11094
11095      N_Protected_Definition =>
11096        (1 => False,   --  unused
11097         2 => True,    --  Visible_Declarations (List2)
11098         3 => True,    --  Private_Declarations (List3)
11099         4 => True,    --  End_Label (Node4)
11100         5 => False),  --  unused
11101
11102      N_Protected_Body =>
11103        (1 => True,    --  Defining_Identifier (Node1)
11104         2 => True,    --  Declarations (List2)
11105         3 => False,   --  unused
11106         4 => True,    --  End_Label (Node4)
11107         5 => False),  --  Corresponding_Spec (Node5-Sem)
11108
11109      N_Entry_Declaration =>
11110        (1 => True,    --  Defining_Identifier (Node1)
11111         2 => False,   --  unused
11112         3 => True,    --  Parameter_Specifications (List3)
11113         4 => True,    --  Discrete_Subtype_Definition (Node4)
11114         5 => False),  --  Corresponding_Body (Node5-Sem)
11115
11116      N_Accept_Statement =>
11117        (1 => True,    --  Entry_Direct_Name (Node1)
11118         2 => True,    --  Declarations (List2)
11119         3 => True,    --  Parameter_Specifications (List3)
11120         4 => True,    --  Handled_Statement_Sequence (Node4)
11121         5 => True),   --  Entry_Index (Node5)
11122
11123      N_Entry_Body =>
11124        (1 => True,    --  Defining_Identifier (Node1)
11125         2 => True,    --  Declarations (List2)
11126         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11127         4 => True,    --  Handled_Statement_Sequence (Node4)
11128         5 => True),   --  Entry_Body_Formal_Part (Node5)
11129
11130      N_Entry_Body_Formal_Part =>
11131        (1 => True,    --  Condition (Node1)
11132         2 => False,   --  unused
11133         3 => True,    --  Parameter_Specifications (List3)
11134         4 => True,    --  Entry_Index_Specification (Node4)
11135         5 => False),  --  unused
11136
11137      N_Entry_Index_Specification =>
11138        (1 => True,    --  Defining_Identifier (Node1)
11139         2 => False,   --  unused
11140         3 => False,   --  unused
11141         4 => True,    --  Discrete_Subtype_Definition (Node4)
11142         5 => False),  --  unused
11143
11144      N_Entry_Call_Statement =>
11145        (1 => False,   --  unused
11146         2 => True,    --  Name (Node2)
11147         3 => True,    --  Parameter_Associations (List3)
11148         4 => False,   --  First_Named_Actual (Node4-Sem)
11149         5 => False),  --  unused
11150
11151      N_Requeue_Statement =>
11152        (1 => False,   --  unused
11153         2 => True,    --  Name (Node2)
11154         3 => False,   --  unused
11155         4 => False,   --  unused
11156         5 => False),  --  unused
11157
11158      N_Delay_Until_Statement =>
11159        (1 => False,   --  unused
11160         2 => False,   --  unused
11161         3 => True,    --  Expression (Node3)
11162         4 => False,   --  unused
11163         5 => False),  --  unused
11164
11165      N_Delay_Relative_Statement =>
11166        (1 => False,   --  unused
11167         2 => False,   --  unused
11168         3 => True,    --  Expression (Node3)
11169         4 => False,   --  unused
11170         5 => False),  --  unused
11171
11172      N_Selective_Accept =>
11173        (1 => True,    --  Select_Alternatives (List1)
11174         2 => False,   --  unused
11175         3 => False,   --  unused
11176         4 => True,    --  Else_Statements (List4)
11177         5 => False),  --  unused
11178
11179      N_Accept_Alternative =>
11180        (1 => True,    --  Condition (Node1)
11181         2 => True,    --  Accept_Statement (Node2)
11182         3 => True,    --  Statements (List3)
11183         4 => True,    --  Pragmas_Before (List4)
11184         5 => False),  --  Accept_Handler_Records (List5-Sem)
11185
11186      N_Delay_Alternative =>
11187        (1 => True,    --  Condition (Node1)
11188         2 => True,    --  Delay_Statement (Node2)
11189         3 => True,    --  Statements (List3)
11190         4 => True,    --  Pragmas_Before (List4)
11191         5 => False),  --  unused
11192
11193      N_Terminate_Alternative =>
11194        (1 => True,    --  Condition (Node1)
11195         2 => False,   --  unused
11196         3 => False,   --  unused
11197         4 => True,    --  Pragmas_Before (List4)
11198         5 => True),   --  Pragmas_After (List5)
11199
11200      N_Timed_Entry_Call =>
11201        (1 => True,    --  Entry_Call_Alternative (Node1)
11202         2 => False,   --  unused
11203         3 => False,   --  unused
11204         4 => True,    --  Delay_Alternative (Node4)
11205         5 => False),  --  unused
11206
11207      N_Entry_Call_Alternative =>
11208        (1 => True,    --  Entry_Call_Statement (Node1)
11209         2 => False,   --  unused
11210         3 => True,    --  Statements (List3)
11211         4 => True,    --  Pragmas_Before (List4)
11212         5 => False),  --  unused
11213
11214      N_Conditional_Entry_Call =>
11215        (1 => True,    --  Entry_Call_Alternative (Node1)
11216         2 => False,   --  unused
11217         3 => False,   --  unused
11218         4 => True,    --  Else_Statements (List4)
11219         5 => False),  --  unused
11220
11221      N_Asynchronous_Select =>
11222        (1 => True,    --  Triggering_Alternative (Node1)
11223         2 => True,    --  Abortable_Part (Node2)
11224         3 => False,   --  unused
11225         4 => False,   --  unused
11226         5 => False),  --  unused
11227
11228      N_Triggering_Alternative =>
11229        (1 => True,    --  Triggering_Statement (Node1)
11230         2 => False,   --  unused
11231         3 => True,    --  Statements (List3)
11232         4 => True,    --  Pragmas_Before (List4)
11233         5 => False),  --  unused
11234
11235      N_Abortable_Part =>
11236        (1 => False,   --  unused
11237         2 => False,   --  unused
11238         3 => True,    --  Statements (List3)
11239         4 => False,   --  unused
11240         5 => False),  --  unused
11241
11242      N_Abort_Statement =>
11243        (1 => False,   --  unused
11244         2 => True,    --  Names (List2)
11245         3 => False,   --  unused
11246         4 => False,   --  unused
11247         5 => False),  --  unused
11248
11249      N_Compilation_Unit =>
11250        (1 => True,    --  Context_Items (List1)
11251         2 => True,    --  Unit (Node2)
11252         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
11253         4 => False,   --  Library_Unit (Node4-Sem)
11254         5 => True),   --  Aux_Decls_Node (Node5)
11255
11256      N_Compilation_Unit_Aux =>
11257        (1 => True,    --  Actions (List1)
11258         2 => True,    --  Declarations (List2)
11259         3 => False,   --  Default_Storage_Pool (Node3)
11260         4 => True,    --  Config_Pragmas (List4)
11261         5 => True),   --  Pragmas_After (List5)
11262
11263      N_With_Clause =>
11264        (1 => False,   --  unused
11265         2 => True,    --  Name (Node2)
11266         3 => False,   --  unused
11267         4 => False,   --  Library_Unit (Node4-Sem)
11268         5 => False),  --  Corresponding_Spec (Node5-Sem)
11269
11270      N_Subprogram_Body_Stub =>
11271        (1 => True,    --  Specification (Node1)
11272         2 => False,   --  unused
11273         3 => False,   --  unused
11274         4 => False,   --  Library_Unit (Node4-Sem)
11275         5 => False),  --  Corresponding_Body (Node5-Sem)
11276
11277      N_Package_Body_Stub =>
11278        (1 => True,    --  Defining_Identifier (Node1)
11279         2 => False,   --  unused
11280         3 => False,   --  unused
11281         4 => False,   --  Library_Unit (Node4-Sem)
11282         5 => False),  --  Corresponding_Body (Node5-Sem)
11283
11284      N_Task_Body_Stub =>
11285        (1 => True,    --  Defining_Identifier (Node1)
11286         2 => False,   --  unused
11287         3 => False,   --  unused
11288         4 => False,   --  Library_Unit (Node4-Sem)
11289         5 => False),  --  Corresponding_Body (Node5-Sem)
11290
11291      N_Protected_Body_Stub =>
11292        (1 => True,    --  Defining_Identifier (Node1)
11293         2 => False,   --  unused
11294         3 => False,   --  unused
11295         4 => False,   --  Library_Unit (Node4-Sem)
11296         5 => False),  --  Corresponding_Body (Node5-Sem)
11297
11298      N_Subunit =>
11299        (1 => True,    --  Proper_Body (Node1)
11300         2 => True,    --  Name (Node2)
11301         3 => False,   --  Corresponding_Stub (Node3-Sem)
11302         4 => False,   --  unused
11303         5 => False),  --  unused
11304
11305      N_Exception_Declaration =>
11306        (1 => True,    --  Defining_Identifier (Node1)
11307         2 => False,   --  unused
11308         3 => False,   --  Expression (Node3-Sem)
11309         4 => False,   --  unused
11310         5 => False),  --  unused
11311
11312      N_Handled_Sequence_Of_Statements =>
11313        (1 => True,    --  At_End_Proc (Node1)
11314         2 => False,   --  First_Real_Statement (Node2-Sem)
11315         3 => True,    --  Statements (List3)
11316         4 => True,    --  End_Label (Node4)
11317         5 => True),   --  Exception_Handlers (List5)
11318
11319      N_Exception_Handler =>
11320        (1 => False,   --  Local_Raise_Statements (Elist1)
11321         2 => True,    --  Choice_Parameter (Node2)
11322         3 => True,    --  Statements (List3)
11323         4 => True,    --  Exception_Choices (List4)
11324         5 => False),  --  Exception_Label (Node5)
11325
11326      N_Raise_Statement =>
11327        (1 => False,   --  unused
11328         2 => True,    --  Name (Node2)
11329         3 => True,    --  Expression (Node3)
11330         4 => False,   --  unused
11331         5 => False),  --  unused
11332
11333      N_Generic_Subprogram_Declaration =>
11334        (1 => True,    --  Specification (Node1)
11335         2 => True,    --  Generic_Formal_Declarations (List2)
11336         3 => False,   --  unused
11337         4 => False,   --  Parent_Spec (Node4-Sem)
11338         5 => False),  --  Corresponding_Body (Node5-Sem)
11339
11340      N_Generic_Package_Declaration =>
11341        (1 => True,    --  Specification (Node1)
11342         2 => True,    --  Generic_Formal_Declarations (List2)
11343         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11344         4 => False,   --  Parent_Spec (Node4-Sem)
11345         5 => False),  --  Corresponding_Body (Node5-Sem)
11346
11347      N_Package_Instantiation =>
11348        (1 => True,    --  Defining_Unit_Name (Node1)
11349         2 => True,    --  Name (Node2)
11350         3 => True,    --  Generic_Associations (List3)
11351         4 => False,   --  Parent_Spec (Node4-Sem)
11352         5 => False),  --  Instance_Spec (Node5-Sem)
11353
11354      N_Procedure_Instantiation =>
11355        (1 => True,    --  Defining_Unit_Name (Node1)
11356         2 => True,    --  Name (Node2)
11357         3 => True,    --  Generic_Associations (List3)
11358         4 => False,   --  Parent_Spec (Node4-Sem)
11359         5 => False),  --  Instance_Spec (Node5-Sem)
11360
11361      N_Function_Instantiation =>
11362        (1 => True,    --  Defining_Unit_Name (Node1)
11363         2 => True,    --  Name (Node2)
11364         3 => True,    --  Generic_Associations (List3)
11365         4 => False,   --  Parent_Spec (Node4-Sem)
11366         5 => False),  --  Instance_Spec (Node5-Sem)
11367
11368      N_Generic_Association =>
11369        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
11370         2 => True,    --  Selector_Name (Node2)
11371         3 => False,   --  unused
11372         4 => False,   --  unused
11373         5 => False),  --  unused
11374
11375      N_Formal_Object_Declaration =>
11376        (1 => True,    --  Defining_Identifier (Node1)
11377         2 => False,   --  unused
11378         3 => True,    --  Access_Definition (Node3)
11379         4 => True,    --  Subtype_Mark (Node4)
11380         5 => True),   --  Default_Expression (Node5)
11381
11382      N_Formal_Type_Declaration =>
11383        (1 => True,    --  Defining_Identifier (Node1)
11384         2 => False,   --  unused
11385         3 => True,    --  Formal_Type_Definition (Node3)
11386         4 => True,    --  Discriminant_Specifications (List4)
11387         5 => False),  --  unused
11388
11389      N_Formal_Private_Type_Definition =>
11390        (1 => False,   --  unused
11391         2 => False,   --  unused
11392         3 => False,   --  unused
11393         4 => False,   --  unused
11394         5 => False),  --  unused
11395
11396      N_Formal_Incomplete_Type_Definition =>
11397        (1 => False,   --  unused
11398         2 => False,   --  unused
11399         3 => False,   --  unused
11400         4 => False,   --  unused
11401         5 => False),  --  unused
11402
11403      N_Formal_Derived_Type_Definition =>
11404        (1 => False,   --  unused
11405         2 => True,    --  Interface_List (List2)
11406         3 => False,   --  unused
11407         4 => True,    --  Subtype_Mark (Node4)
11408         5 => False),  --  unused
11409
11410      N_Formal_Discrete_Type_Definition =>
11411        (1 => False,   --  unused
11412         2 => False,   --  unused
11413         3 => False,   --  unused
11414         4 => False,   --  unused
11415         5 => False),  --  unused
11416
11417      N_Formal_Signed_Integer_Type_Definition =>
11418        (1 => False,   --  unused
11419         2 => False,   --  unused
11420         3 => False,   --  unused
11421         4 => False,   --  unused
11422         5 => False),  --  unused
11423
11424      N_Formal_Modular_Type_Definition =>
11425        (1 => False,   --  unused
11426         2 => False,   --  unused
11427         3 => False,   --  unused
11428         4 => False,   --  unused
11429         5 => False),  --  unused
11430
11431      N_Formal_Floating_Point_Definition =>
11432        (1 => False,   --  unused
11433         2 => False,   --  unused
11434         3 => False,   --  unused
11435         4 => False,   --  unused
11436         5 => False),  --  unused
11437
11438      N_Formal_Ordinary_Fixed_Point_Definition =>
11439        (1 => False,   --  unused
11440         2 => False,   --  unused
11441         3 => False,   --  unused
11442         4 => False,   --  unused
11443         5 => False),  --  unused
11444
11445      N_Formal_Decimal_Fixed_Point_Definition =>
11446        (1 => False,   --  unused
11447         2 => False,   --  unused
11448         3 => False,   --  unused
11449         4 => False,   --  unused
11450         5 => False),  --  unused
11451
11452      N_Formal_Concrete_Subprogram_Declaration =>
11453        (1 => True,    --  Specification (Node1)
11454         2 => True,    --  Default_Name (Node2)
11455         3 => False,   --  unused
11456         4 => False,   --  unused
11457         5 => False),  --  unused
11458
11459      N_Formal_Abstract_Subprogram_Declaration =>
11460        (1 => True,    --  Specification (Node1)
11461         2 => True,    --  Default_Name (Node2)
11462         3 => False,   --  unused
11463         4 => False,   --  unused
11464         5 => False),  --  unused
11465
11466      N_Formal_Package_Declaration =>
11467        (1 => True,    --  Defining_Identifier (Node1)
11468         2 => True,    --  Name (Node2)
11469         3 => True,    --  Generic_Associations (List3)
11470         4 => False,   --  unused
11471         5 => False),  --  Instance_Spec (Node5-Sem)
11472
11473      N_Attribute_Definition_Clause =>
11474        (1 => True,    --  Chars (Name1)
11475         2 => True,    --  Name (Node2)
11476         3 => True,    --  Expression (Node3)
11477         4 => False,   --  unused
11478         5 => False),  --  Next_Rep_Item (Node5-Sem)
11479
11480      N_Aspect_Specification =>
11481        (1 => True,    --  Identifier (Node1)
11482         2 => False,   --  Aspect_Rep_Item (Node2-Sem)
11483         3 => True,    --  Expression (Node3)
11484         4 => False,   --  Entity (Node4-Sem)
11485         5 => False),  --  Next_Rep_Item (Node5-Sem)
11486
11487      N_Enumeration_Representation_Clause =>
11488        (1 => True,    --  Identifier (Node1)
11489         2 => False,   --  unused
11490         3 => True,    --  Array_Aggregate (Node3)
11491         4 => False,   --  unused
11492         5 => False),  --  Next_Rep_Item (Node5-Sem)
11493
11494      N_Record_Representation_Clause =>
11495        (1 => True,    --  Identifier (Node1)
11496         2 => True,    --  Mod_Clause (Node2)
11497         3 => True,    --  Component_Clauses (List3)
11498         4 => False,   --  unused
11499         5 => False),  --  Next_Rep_Item (Node5-Sem)
11500
11501      N_Component_Clause =>
11502        (1 => True,    --  Component_Name (Node1)
11503         2 => True,    --  Position (Node2)
11504         3 => True,    --  First_Bit (Node3)
11505         4 => True,    --  Last_Bit (Node4)
11506         5 => False),  --  unused
11507
11508      N_Code_Statement =>
11509        (1 => False,   --  unused
11510         2 => False,   --  unused
11511         3 => True,    --  Expression (Node3)
11512         4 => False,   --  unused
11513         5 => False),  --  unused
11514
11515      N_Op_Rotate_Left =>
11516        (1 => True,    --  Chars (Name1)
11517         2 => True,    --  Left_Opnd (Node2)
11518         3 => True,    --  Right_Opnd (Node3)
11519         4 => False,   --  Entity (Node4-Sem)
11520         5 => False),  --  Etype (Node5-Sem)
11521
11522      N_Op_Rotate_Right =>
11523        (1 => True,    --  Chars (Name1)
11524         2 => True,    --  Left_Opnd (Node2)
11525         3 => True,    --  Right_Opnd (Node3)
11526         4 => False,   --  Entity (Node4-Sem)
11527         5 => False),  --  Etype (Node5-Sem)
11528
11529      N_Op_Shift_Left =>
11530        (1 => True,    --  Chars (Name1)
11531         2 => True,    --  Left_Opnd (Node2)
11532         3 => True,    --  Right_Opnd (Node3)
11533         4 => False,   --  Entity (Node4-Sem)
11534         5 => False),  --  Etype (Node5-Sem)
11535
11536      N_Op_Shift_Right_Arithmetic =>
11537        (1 => True,    --  Chars (Name1)
11538         2 => True,    --  Left_Opnd (Node2)
11539         3 => True,    --  Right_Opnd (Node3)
11540         4 => False,   --  Entity (Node4-Sem)
11541         5 => False),  --  Etype (Node5-Sem)
11542
11543      N_Op_Shift_Right =>
11544        (1 => True,    --  Chars (Name1)
11545         2 => True,    --  Left_Opnd (Node2)
11546         3 => True,    --  Right_Opnd (Node3)
11547         4 => False,   --  Entity (Node4-Sem)
11548         5 => False),  --  Etype (Node5-Sem)
11549
11550      N_Delta_Constraint =>
11551        (1 => False,   --  unused
11552         2 => False,   --  unused
11553         3 => True,    --  Delta_Expression (Node3)
11554         4 => True,    --  Range_Constraint (Node4)
11555         5 => False),  --  unused
11556
11557      N_At_Clause =>
11558        (1 => True,    --  Identifier (Node1)
11559         2 => False,   --  unused
11560         3 => True,    --  Expression (Node3)
11561         4 => False,   --  unused
11562         5 => False),  --  unused
11563
11564      N_Mod_Clause =>
11565        (1 => False,   --  unused
11566         2 => False,   --  unused
11567         3 => True,    --  Expression (Node3)
11568         4 => True,    --  Pragmas_Before (List4)
11569         5 => False),  --  unused
11570
11571      N_Conditional_Expression =>
11572        (1 => True,    --  Expressions (List1)
11573         2 => False,   --  Then_Actions (List2-Sem)
11574         3 => False,   --  Else_Actions (List3-Sem)
11575         4 => False,   --  unused
11576         5 => False),  --  Etype (Node5-Sem)
11577
11578      N_Contract =>
11579        (1 => False,   --  Spec_PPC_List (Node1)
11580         2 => False,   --  Spec_TC_List (Node2)
11581         3 => False,   --  unused
11582         4 => False,   --  unused
11583         5 => False),  --  unused
11584
11585      N_Expanded_Name =>
11586        (1 => True,    --  Chars (Name1)
11587         2 => True,    --  Selector_Name (Node2)
11588         3 => True,    --  Prefix (Node3)
11589         4 => False,   --  Entity (Node4-Sem)
11590         5 => False),  --  Etype (Node5-Sem)
11591
11592      N_Expression_With_Actions =>
11593        (1 => True,    --  Actions (List1)
11594         2 => False,   --  unused
11595         3 => True,    --  Expression (Node3)
11596         4 => False,   --  unused
11597         5 => False),  --  unused
11598
11599      N_Free_Statement =>
11600        (1 => False,   --  Storage_Pool (Node1-Sem)
11601         2 => False,   --  Procedure_To_Call (Node2-Sem)
11602         3 => True,    --  Expression (Node3)
11603         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
11604         5 => False),  --  unused
11605
11606      N_Freeze_Entity =>
11607        (1 => True,    --  Actions (List1)
11608         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
11609         3 => False,   --  TSS_Elist (Elist3-Sem)
11610         4 => False,   --  Entity (Node4-Sem)
11611         5 => False),  --  First_Subtype_Link (Node5-Sem)
11612
11613      N_Implicit_Label_Declaration =>
11614        (1 => True,    --  Defining_Identifier (Node1)
11615         2 => False,   --  Label_Construct (Node2-Sem)
11616         3 => False,   --  unused
11617         4 => False,   --  unused
11618         5 => False),  --  unused
11619
11620      N_Itype_Reference =>
11621        (1 => False,   --  Itype (Node1-Sem)
11622         2 => False,   --  unused
11623         3 => False,   --  unused
11624         4 => False,   --  unused
11625         5 => False),  --  unused
11626
11627      N_Raise_Constraint_Error =>
11628        (1 => True,    --  Condition (Node1)
11629         2 => False,   --  unused
11630         3 => True,    --  Reason (Uint3)
11631         4 => False,   --  unused
11632         5 => False),  --  Etype (Node5-Sem)
11633
11634      N_Raise_Program_Error =>
11635        (1 => True,    --  Condition (Node1)
11636         2 => False,   --  unused
11637         3 => True,    --  Reason (Uint3)
11638         4 => False,   --  unused
11639         5 => False),  --  Etype (Node5-Sem)
11640
11641      N_Raise_Storage_Error =>
11642        (1 => True,    --  Condition (Node1)
11643         2 => False,   --  unused
11644         3 => True,    --  Reason (Uint3)
11645         4 => False,   --  unused
11646         5 => False),  --  Etype (Node5-Sem)
11647
11648      N_Push_Constraint_Error_Label =>
11649        (1 => False,   --  unused
11650         2 => False,   --  unused
11651         3 => False,   --  unused
11652         4 => False,   --  unused
11653         5 => False),  --  unused
11654
11655      N_Push_Program_Error_Label =>
11656        (1 => False,   --  Exception_Label
11657         2 => False,   --  unused
11658         3 => False,   --  unused
11659         4 => False,   --  unused
11660         5 => False),  --  Exception_Label
11661
11662      N_Push_Storage_Error_Label =>
11663        (1 => False,   --  Exception_Label
11664         2 => False,   --  unused
11665         3 => False,   --  unused
11666         4 => False,   --  unused
11667         5 => False),  --  Exception_Label
11668
11669      N_Pop_Constraint_Error_Label =>
11670        (1 => False,   --  unused
11671         2 => False,   --  unused
11672         3 => False,   --  unused
11673         4 => False,   --  unused
11674         5 => False),  --  unused
11675
11676      N_Pop_Program_Error_Label =>
11677        (1 => False,   --  unused
11678         2 => False,   --  unused
11679         3 => False,   --  unused
11680         4 => False,   --  unused
11681         5 => False),  --  unused
11682
11683      N_Pop_Storage_Error_Label =>
11684        (1 => False,   --  unused
11685         2 => False,   --  unused
11686         3 => False,   --  unused
11687         4 => False,   --  unused
11688         5 => False),  --  unused
11689
11690      N_Reference =>
11691        (1 => False,   --  unused
11692         2 => False,   --  unused
11693         3 => True,    --  Prefix (Node3)
11694         4 => False,   --  unused
11695         5 => False),  --  Etype (Node5-Sem)
11696
11697      N_Subprogram_Info =>
11698        (1 => True,    --  Identifier (Node1)
11699         2 => False,   --  unused
11700         3 => False,   --  unused
11701         4 => False,   --  unused
11702         5 => False),  --  Etype (Node5-Sem)
11703
11704      N_Unchecked_Expression =>
11705        (1 => False,   --  unused
11706         2 => False,   --  unused
11707         3 => True,    --  Expression (Node3)
11708         4 => False,   --  unused
11709         5 => False),  --  Etype (Node5-Sem)
11710
11711      N_Unchecked_Type_Conversion =>
11712        (1 => False,   --  unused
11713         2 => False,   --  unused
11714         3 => True,    --  Expression (Node3)
11715         4 => True,    --  Subtype_Mark (Node4)
11716         5 => False),  --  Etype (Node5-Sem)
11717
11718      N_Validate_Unchecked_Conversion =>
11719        (1 => False,   --  Source_Type (Node1-Sem)
11720         2 => False,   --  Target_Type (Node2-Sem)
11721         3 => False,   --  unused
11722         4 => False,   --  unused
11723         5 => False),  --  unused
11724
11725    --  Entries for SCIL nodes
11726
11727      N_SCIL_Dispatch_Table_Tag_Init =>
11728        (1 => False,   --  unused
11729         2 => False,   --  unused
11730         3 => False,   --  unused
11731         4 => False,   --  SCIL_Entity (Node4-Sem)
11732         5 => False),  --  unused
11733
11734      N_SCIL_Dispatching_Call =>
11735        (1 => False,   --  unused
11736         2 => False,   --  SCIL_Target_Prim (Node2-Sem)
11737         3 => False,   --  unused
11738         4 => False,   --  SCIL_Entity (Node4-Sem)
11739         5 => False),  --  SCIL_Controlling_Tag (Node5-Sem)
11740
11741      N_SCIL_Membership_Test =>
11742        (1 => False,   --  unused
11743         2 => False,   --  unused
11744         3 => False,   --  unused
11745         4 => False,   --  SCIL_Entity (Node4-Sem)
11746         5 => False),  --  SCIL_Tag_Value (Node5-Sem)
11747
11748    --  Entries for Empty, Error and Unused. Even thought these have a Chars
11749    --  field for debugging purposes, they are not really syntactic fields, so
11750    --  we mark all fields as unused.
11751
11752      N_Empty =>
11753        (1 => False,   --  unused
11754         2 => False,   --  unused
11755         3 => False,   --  unused
11756         4 => False,   --  unused
11757         5 => False),  --  unused
11758
11759      N_Error =>
11760        (1 => False,   --  unused
11761         2 => False,   --  unused
11762         3 => False,   --  unused
11763         4 => False,   --  unused
11764         5 => False),  --  unused
11765
11766      N_Unused_At_Start =>
11767        (1 => False,   --  unused
11768         2 => False,   --  unused
11769         3 => False,   --  unused
11770         4 => False,   --  unused
11771         5 => False),  --  unused
11772
11773      N_Unused_At_End =>
11774        (1 => False,   --  unused
11775         2 => False,   --  unused
11776         3 => False,   --  unused
11777         4 => False,   --  unused
11778         5 => False)); --  unused
11779
11780    --------------------
11781    -- Inline Pragmas --
11782    --------------------
11783
11784    pragma Inline (ABE_Is_Certain);
11785    pragma Inline (Abort_Present);
11786    pragma Inline (Abortable_Part);
11787    pragma Inline (Abstract_Present);
11788    pragma Inline (Accept_Handler_Records);
11789    pragma Inline (Accept_Statement);
11790    pragma Inline (Access_Definition);
11791    pragma Inline (Access_To_Subprogram_Definition);
11792    pragma Inline (Access_Types_To_Process);
11793    pragma Inline (Actions);
11794    pragma Inline (Activation_Chain_Entity);
11795    pragma Inline (Acts_As_Spec);
11796    pragma Inline (Actual_Designated_Subtype);
11797    pragma Inline (Address_Warning_Posted);
11798    pragma Inline (Aggregate_Bounds);
11799    pragma Inline (Aliased_Present);
11800    pragma Inline (All_Others);
11801    pragma Inline (All_Present);
11802    pragma Inline (Alternatives);
11803    pragma Inline (Ancestor_Part);
11804    pragma Inline (Atomic_Sync_Required);
11805    pragma Inline (Array_Aggregate);
11806    pragma Inline (Aspect_Rep_Item);
11807    pragma Inline (Assignment_OK);
11808    pragma Inline (Associated_Node);
11809    pragma Inline (At_End_Proc);
11810    pragma Inline (Attribute_Name);
11811    pragma Inline (Aux_Decls_Node);
11812    pragma Inline (Backwards_OK);
11813    pragma Inline (Bad_Is_Detected);
11814    pragma Inline (Body_To_Inline);
11815    pragma Inline (Body_Required);
11816    pragma Inline (By_Ref);
11817    pragma Inline (Box_Present);
11818    pragma Inline (Char_Literal_Value);
11819    pragma Inline (Chars);
11820    pragma Inline (Check_Address_Alignment);
11821    pragma Inline (Choice_Parameter);
11822    pragma Inline (Choices);
11823    pragma Inline (Class_Present);
11824    pragma Inline (Comes_From_Extended_Return_Statement);
11825    pragma Inline (Compile_Time_Known_Aggregate);
11826    pragma Inline (Component_Associations);
11827    pragma Inline (Component_Clauses);
11828    pragma Inline (Component_Definition);
11829    pragma Inline (Component_Items);
11830    pragma Inline (Component_List);
11831    pragma Inline (Component_Name);
11832    pragma Inline (Componentwise_Assignment);
11833    pragma Inline (Condition);
11834    pragma Inline (Condition_Actions);
11835    pragma Inline (Config_Pragmas);
11836    pragma Inline (Constant_Present);
11837    pragma Inline (Constraint);
11838    pragma Inline (Constraints);
11839    pragma Inline (Context_Installed);
11840    pragma Inline (Context_Items);
11841    pragma Inline (Context_Pending);
11842    pragma Inline (Controlling_Argument);
11843    pragma Inline (Conversion_OK);
11844    pragma Inline (Corresponding_Aspect);
11845    pragma Inline (Corresponding_Body);
11846    pragma Inline (Corresponding_Formal_Spec);
11847    pragma Inline (Corresponding_Generic_Association);
11848    pragma Inline (Corresponding_Integer_Value);
11849    pragma Inline (Corresponding_Spec);
11850    pragma Inline (Corresponding_Stub);
11851    pragma Inline (Dcheck_Function);
11852    pragma Inline (Declarations);
11853    pragma Inline (Default_Expression);
11854    pragma Inline (Default_Storage_Pool);
11855    pragma Inline (Default_Name);
11856    pragma Inline (Defining_Identifier);
11857    pragma Inline (Defining_Unit_Name);
11858    pragma Inline (Delay_Alternative);
11859    pragma Inline (Delay_Statement);
11860    pragma Inline (Delta_Expression);
11861    pragma Inline (Digits_Expression);
11862    pragma Inline (Discr_Check_Funcs_Built);
11863    pragma Inline (Discrete_Choices);
11864    pragma Inline (Discrete_Range);
11865    pragma Inline (Discrete_Subtype_Definition);
11866    pragma Inline (Discrete_Subtype_Definitions);
11867    pragma Inline (Discriminant_Specifications);
11868    pragma Inline (Discriminant_Type);
11869    pragma Inline (Do_Accessibility_Check);
11870    pragma Inline (Do_Discriminant_Check);
11871    pragma Inline (Do_Length_Check);
11872    pragma Inline (Do_Division_Check);
11873    pragma Inline (Do_Overflow_Check);
11874    pragma Inline (Do_Range_Check);
11875    pragma Inline (Do_Storage_Check);
11876    pragma Inline (Do_Tag_Check);
11877    pragma Inline (Elaborate_Present);
11878    pragma Inline (Elaborate_All_Desirable);
11879    pragma Inline (Elaborate_All_Present);
11880    pragma Inline (Elaborate_Desirable);
11881    pragma Inline (Elaboration_Boolean);
11882    pragma Inline (Else_Actions);
11883    pragma Inline (Else_Statements);
11884    pragma Inline (Elsif_Parts);
11885    pragma Inline (Enclosing_Variant);
11886    pragma Inline (End_Label);
11887    pragma Inline (End_Span);
11888    pragma Inline (Entity);
11889    pragma Inline (Entity_Or_Associated_Node);
11890    pragma Inline (Entry_Body_Formal_Part);
11891    pragma Inline (Entry_Call_Alternative);
11892    pragma Inline (Entry_Call_Statement);
11893    pragma Inline (Entry_Direct_Name);
11894    pragma Inline (Entry_Index);
11895    pragma Inline (Entry_Index_Specification);
11896    pragma Inline (Etype);
11897    pragma Inline (Exception_Choices);
11898    pragma Inline (Exception_Handlers);
11899    pragma Inline (Exception_Junk);
11900    pragma Inline (Exception_Label);
11901    pragma Inline (Expansion_Delayed);
11902    pragma Inline (Explicit_Actual_Parameter);
11903    pragma Inline (Explicit_Generic_Actual_Parameter);
11904    pragma Inline (Expression);
11905    pragma Inline (Expressions);
11906    pragma Inline (First_Bit);
11907    pragma Inline (First_Inlined_Subprogram);
11908    pragma Inline (First_Name);
11909    pragma Inline (First_Named_Actual);
11910    pragma Inline (First_Real_Statement);
11911    pragma Inline (First_Subtype_Link);
11912    pragma Inline (Float_Truncate);
11913    pragma Inline (Formal_Type_Definition);
11914    pragma Inline (Forwards_OK);
11915    pragma Inline (From_Aspect_Specification);
11916    pragma Inline (From_At_End);
11917    pragma Inline (From_At_Mod);
11918    pragma Inline (From_Default);
11919    pragma Inline (Generic_Associations);
11920    pragma Inline (Generic_Formal_Declarations);
11921    pragma Inline (Generic_Parent);
11922    pragma Inline (Generic_Parent_Type);
11923    pragma Inline (Handled_Statement_Sequence);
11924    pragma Inline (Handler_List_Entry);
11925    pragma Inline (Has_Created_Identifier);
11926    pragma Inline (Has_Dynamic_Length_Check);
11927    pragma Inline (Has_Dynamic_Range_Check);
11928    pragma Inline (Has_Init_Expression);
11929    pragma Inline (Has_Local_Raise);
11930    pragma Inline (Has_Self_Reference);
11931    pragma Inline (Has_No_Elaboration_Code);
11932    pragma Inline (Has_Pragma_CPU);
11933    pragma Inline (Has_Pragma_Dispatching_Domain);
11934    pragma Inline (Has_Pragma_Priority);
11935    pragma Inline (Has_Pragma_Suppress_All);
11936    pragma Inline (Has_Private_View);
11937    pragma Inline (Has_Relative_Deadline_Pragma);
11938    pragma Inline (Has_Storage_Size_Pragma);
11939    pragma Inline (Has_Task_Info_Pragma);
11940    pragma Inline (Has_Task_Name_Pragma);
11941    pragma Inline (Has_Wide_Character);
11942    pragma Inline (Has_Wide_Wide_Character);
11943    pragma Inline (Header_Size_Added);
11944    pragma Inline (Hidden_By_Use_Clause);
11945    pragma Inline (High_Bound);
11946    pragma Inline (Identifier);
11947    pragma Inline (Implicit_With);
11948    pragma Inline (Interface_List);
11949    pragma Inline (Interface_Present);
11950    pragma Inline (Includes_Infinities);
11951    pragma Inline (Import_Interface_Present);
11952    pragma Inline (In_Present);
11953    pragma Inline (Inherited_Discriminant);
11954    pragma Inline (Instance_Spec);
11955    pragma Inline (Intval);
11956    pragma Inline (Iterator_Specification);
11957    pragma Inline (Is_Accessibility_Actual);
11958    pragma Inline (Is_Asynchronous_Call_Block);
11959    pragma Inline (Is_Boolean_Aspect);
11960    pragma Inline (Is_Component_Left_Opnd);
11961    pragma Inline (Is_Component_Right_Opnd);
11962    pragma Inline (Is_Controlling_Actual);
11963    pragma Inline (Is_Delayed_Aspect);
11964    pragma Inline (Is_Dynamic_Coextension);
11965    pragma Inline (Is_Elsif);
11966    pragma Inline (Is_Entry_Barrier_Function);
11967    pragma Inline (Is_Expanded_Build_In_Place_Call);
11968    pragma Inline (Is_Folded_In_Parser);
11969    pragma Inline (Is_In_Discriminant_Check);
11970    pragma Inline (Is_Machine_Number);
11971    pragma Inline (Is_Null_Loop);
11972    pragma Inline (Is_Overloaded);
11973    pragma Inline (Is_Power_Of_2_For_Shift);
11974    pragma Inline (Is_Protected_Subprogram_Body);
11975    pragma Inline (Is_Static_Coextension);
11976    pragma Inline (Is_Static_Expression);
11977    pragma Inline (Is_Subprogram_Descriptor);
11978    pragma Inline (Is_Task_Allocation_Block);
11979    pragma Inline (Is_Task_Master);
11980    pragma Inline (Iteration_Scheme);
11981    pragma Inline (Itype);
11982    pragma Inline (Kill_Range_Check);
11983    pragma Inline (Last_Bit);
11984    pragma Inline (Last_Name);
11985    pragma Inline (Library_Unit);
11986    pragma Inline (Label_Construct);
11987    pragma Inline (Left_Opnd);
11988    pragma Inline (Limited_View_Installed);
11989    pragma Inline (Limited_Present);
11990    pragma Inline (Literals);
11991    pragma Inline (Local_Raise_Not_OK);
11992    pragma Inline (Local_Raise_Statements);
11993    pragma Inline (Loop_Actions);
11994    pragma Inline (Loop_Parameter_Specification);
11995    pragma Inline (Low_Bound);
11996    pragma Inline (Mod_Clause);
11997    pragma Inline (More_Ids);
11998    pragma Inline (Must_Be_Byte_Aligned);
11999    pragma Inline (Must_Not_Freeze);
12000    pragma Inline (Must_Not_Override);
12001    pragma Inline (Must_Override);
12002    pragma Inline (Name);
12003    pragma Inline (Names);
12004    pragma Inline (Next_Entity);
12005    pragma Inline (Next_Exit_Statement);
12006    pragma Inline (Next_Implicit_With);
12007    pragma Inline (Next_Named_Actual);
12008    pragma Inline (Next_Pragma);
12009    pragma Inline (Next_Rep_Item);
12010    pragma Inline (Next_Use_Clause);
12011    pragma Inline (No_Ctrl_Actions);
12012    pragma Inline (No_Elaboration_Check);
12013    pragma Inline (No_Entities_Ref_In_Spec);
12014    pragma Inline (No_Initialization);
12015    pragma Inline (No_Truncation);
12016    pragma Inline (Null_Present);
12017    pragma Inline (Null_Exclusion_Present);
12018    pragma Inline (Null_Exclusion_In_Return_Present);
12019    pragma Inline (Null_Record_Present);
12020    pragma Inline (Object_Definition);
12021    pragma Inline (Of_Present);
12022    pragma Inline (Original_Discriminant);
12023    pragma Inline (Original_Entity);
12024    pragma Inline (Others_Discrete_Choices);
12025    pragma Inline (Out_Present);
12026    pragma Inline (Parameter_Associations);
12027    pragma Inline (Parameter_Specifications);
12028    pragma Inline (Parameter_List_Truncated);
12029    pragma Inline (Parameter_Type);
12030    pragma Inline (Parent_Spec);
12031    pragma Inline (Position);
12032    pragma Inline (Pragma_Argument_Associations);
12033    pragma Inline (Pragma_Identifier);
12034    pragma Inline (Pragmas_After);
12035    pragma Inline (Pragmas_Before);
12036    pragma Inline (Prefix);
12037    pragma Inline (Premature_Use);
12038    pragma Inline (Present_Expr);
12039    pragma Inline (Prev_Ids);
12040    pragma Inline (Print_In_Hex);
12041    pragma Inline (Private_Declarations);
12042    pragma Inline (Private_Present);
12043    pragma Inline (Procedure_To_Call);
12044    pragma Inline (Proper_Body);
12045    pragma Inline (Protected_Definition);
12046    pragma Inline (Protected_Present);
12047    pragma Inline (Raises_Constraint_Error);
12048    pragma Inline (Range_Constraint);
12049    pragma Inline (Range_Expression);
12050    pragma Inline (Real_Range_Specification);
12051    pragma Inline (Realval);
12052    pragma Inline (Reason);
12053    pragma Inline (Record_Extension_Part);
12054    pragma Inline (Redundant_Use);
12055    pragma Inline (Renaming_Exception);
12056    pragma Inline (Result_Definition);
12057    pragma Inline (Return_Object_Declarations);
12058    pragma Inline (Return_Statement_Entity);
12059    pragma Inline (Reverse_Present);
12060    pragma Inline (Right_Opnd);
12061    pragma Inline (Rounded_Result);
12062    pragma Inline (SCIL_Controlling_Tag);
12063    pragma Inline (SCIL_Entity);
12064    pragma Inline (SCIL_Tag_Value);
12065    pragma Inline (SCIL_Target_Prim);
12066    pragma Inline (Scope);
12067    pragma Inline (Select_Alternatives);
12068    pragma Inline (Selector_Name);
12069    pragma Inline (Selector_Names);
12070    pragma Inline (Shift_Count_OK);
12071    pragma Inline (Source_Type);
12072    pragma Inline (Spec_PPC_List);
12073    pragma Inline (Spec_TC_List);
12074    pragma Inline (Specification);
12075    pragma Inline (Split_PPC);
12076    pragma Inline (Statements);
12077    pragma Inline (Static_Processing_OK);
12078    pragma Inline (Storage_Pool);
12079    pragma Inline (Subpool_Handle_Name);
12080    pragma Inline (Strval);
12081    pragma Inline (Subtype_Indication);
12082    pragma Inline (Subtype_Mark);
12083    pragma Inline (Subtype_Marks);
12084    pragma Inline (Suppress_Assignment_Checks);
12085    pragma Inline (Suppress_Loop_Warnings);
12086    pragma Inline (Synchronized_Present);
12087    pragma Inline (Tagged_Present);
12088    pragma Inline (Target_Type);
12089    pragma Inline (Task_Definition);
12090    pragma Inline (Task_Present);
12091    pragma Inline (Then_Actions);
12092    pragma Inline (Then_Statements);
12093    pragma Inline (Triggering_Alternative);
12094    pragma Inline (Triggering_Statement);
12095    pragma Inline (Treat_Fixed_As_Integer);
12096    pragma Inline (TSS_Elist);
12097    pragma Inline (Type_Definition);
12098    pragma Inline (Unit);
12099    pragma Inline (Unknown_Discriminants_Present);
12100    pragma Inline (Unreferenced_In_Spec);
12101    pragma Inline (Variant_Part);
12102    pragma Inline (Variants);
12103    pragma Inline (Visible_Declarations);
12104    pragma Inline (Used_Operations);
12105    pragma Inline (Was_Originally_Stub);
12106    pragma Inline (Withed_Body);
12107
12108    pragma Inline (Set_ABE_Is_Certain);
12109    pragma Inline (Set_Abort_Present);
12110    pragma Inline (Set_Abortable_Part);
12111    pragma Inline (Set_Abstract_Present);
12112    pragma Inline (Set_Accept_Handler_Records);
12113    pragma Inline (Set_Accept_Statement);
12114    pragma Inline (Set_Access_Definition);
12115    pragma Inline (Set_Access_To_Subprogram_Definition);
12116    pragma Inline (Set_Access_Types_To_Process);
12117    pragma Inline (Set_Actions);
12118    pragma Inline (Set_Activation_Chain_Entity);
12119    pragma Inline (Set_Acts_As_Spec);
12120    pragma Inline (Set_Actual_Designated_Subtype);
12121    pragma Inline (Set_Address_Warning_Posted);
12122    pragma Inline (Set_Aggregate_Bounds);
12123    pragma Inline (Set_Aliased_Present);
12124    pragma Inline (Set_All_Others);
12125    pragma Inline (Set_All_Present);
12126    pragma Inline (Set_Alternatives);
12127    pragma Inline (Set_Ancestor_Part);
12128    pragma Inline (Set_Atomic_Sync_Required);
12129    pragma Inline (Set_Array_Aggregate);
12130    pragma Inline (Set_Aspect_Rep_Item);
12131    pragma Inline (Set_Assignment_OK);
12132    pragma Inline (Set_Associated_Node);
12133    pragma Inline (Set_At_End_Proc);
12134    pragma Inline (Set_Attribute_Name);
12135    pragma Inline (Set_Aux_Decls_Node);
12136    pragma Inline (Set_Backwards_OK);
12137    pragma Inline (Set_Bad_Is_Detected);
12138    pragma Inline (Set_Body_To_Inline);
12139    pragma Inline (Set_Body_Required);
12140    pragma Inline (Set_By_Ref);
12141    pragma Inline (Set_Box_Present);
12142    pragma Inline (Set_Char_Literal_Value);
12143    pragma Inline (Set_Chars);
12144    pragma Inline (Set_Check_Address_Alignment);
12145    pragma Inline (Set_Choice_Parameter);
12146    pragma Inline (Set_Choices);
12147    pragma Inline (Set_Class_Present);
12148    pragma Inline (Set_Comes_From_Extended_Return_Statement);
12149    pragma Inline (Set_Compile_Time_Known_Aggregate);
12150    pragma Inline (Set_Component_Associations);
12151    pragma Inline (Set_Component_Clauses);
12152    pragma Inline (Set_Component_Definition);
12153    pragma Inline (Set_Component_Items);
12154    pragma Inline (Set_Component_List);
12155    pragma Inline (Set_Component_Name);
12156    pragma Inline (Set_Componentwise_Assignment);
12157    pragma Inline (Set_Condition);
12158    pragma Inline (Set_Condition_Actions);
12159    pragma Inline (Set_Config_Pragmas);
12160    pragma Inline (Set_Constant_Present);
12161    pragma Inline (Set_Constraint);
12162    pragma Inline (Set_Constraints);
12163    pragma Inline (Set_Context_Installed);
12164    pragma Inline (Set_Context_Items);
12165    pragma Inline (Set_Context_Pending);
12166    pragma Inline (Set_Controlling_Argument);
12167    pragma Inline (Set_Conversion_OK);
12168    pragma Inline (Set_Corresponding_Aspect);
12169    pragma Inline (Set_Corresponding_Body);
12170    pragma Inline (Set_Corresponding_Formal_Spec);
12171    pragma Inline (Set_Corresponding_Generic_Association);
12172    pragma Inline (Set_Corresponding_Integer_Value);
12173    pragma Inline (Set_Corresponding_Spec);
12174    pragma Inline (Set_Corresponding_Stub);
12175    pragma Inline (Set_Dcheck_Function);
12176    pragma Inline (Set_Declarations);
12177    pragma Inline (Set_Default_Expression);
12178    pragma Inline (Set_Default_Storage_Pool);
12179    pragma Inline (Set_Default_Name);
12180    pragma Inline (Set_Defining_Identifier);
12181    pragma Inline (Set_Defining_Unit_Name);
12182    pragma Inline (Set_Delay_Alternative);
12183    pragma Inline (Set_Delay_Statement);
12184    pragma Inline (Set_Delta_Expression);
12185    pragma Inline (Set_Digits_Expression);
12186    pragma Inline (Set_Discr_Check_Funcs_Built);
12187    pragma Inline (Set_Discrete_Choices);
12188    pragma Inline (Set_Discrete_Range);
12189    pragma Inline (Set_Discrete_Subtype_Definition);
12190    pragma Inline (Set_Discrete_Subtype_Definitions);
12191    pragma Inline (Set_Discriminant_Specifications);
12192    pragma Inline (Set_Discriminant_Type);
12193    pragma Inline (Set_Do_Accessibility_Check);
12194    pragma Inline (Set_Do_Discriminant_Check);
12195    pragma Inline (Set_Do_Length_Check);
12196    pragma Inline (Set_Do_Division_Check);
12197    pragma Inline (Set_Do_Overflow_Check);
12198    pragma Inline (Set_Do_Range_Check);
12199    pragma Inline (Set_Do_Storage_Check);
12200    pragma Inline (Set_Do_Tag_Check);
12201    pragma Inline (Set_Elaborate_Present);
12202    pragma Inline (Set_Elaborate_All_Desirable);
12203    pragma Inline (Set_Elaborate_All_Present);
12204    pragma Inline (Set_Elaborate_Desirable);
12205    pragma Inline (Set_Elaboration_Boolean);
12206    pragma Inline (Set_Else_Actions);
12207    pragma Inline (Set_Else_Statements);
12208    pragma Inline (Set_Elsif_Parts);
12209    pragma Inline (Set_Enclosing_Variant);
12210    pragma Inline (Set_End_Label);
12211    pragma Inline (Set_End_Span);
12212    pragma Inline (Set_Entity);
12213    pragma Inline (Set_Entry_Body_Formal_Part);
12214    pragma Inline (Set_Entry_Call_Alternative);
12215    pragma Inline (Set_Entry_Call_Statement);
12216    pragma Inline (Set_Entry_Direct_Name);
12217    pragma Inline (Set_Entry_Index);
12218    pragma Inline (Set_Entry_Index_Specification);
12219    pragma Inline (Set_Etype);
12220    pragma Inline (Set_Exception_Choices);
12221    pragma Inline (Set_Exception_Handlers);
12222    pragma Inline (Set_Exception_Junk);
12223    pragma Inline (Set_Exception_Label);
12224    pragma Inline (Set_Expansion_Delayed);
12225    pragma Inline (Set_Explicit_Actual_Parameter);
12226    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12227    pragma Inline (Set_Expression);
12228    pragma Inline (Set_Expressions);
12229    pragma Inline (Set_First_Bit);
12230    pragma Inline (Set_First_Inlined_Subprogram);
12231    pragma Inline (Set_First_Name);
12232    pragma Inline (Set_First_Named_Actual);
12233    pragma Inline (Set_First_Real_Statement);
12234    pragma Inline (Set_First_Subtype_Link);
12235    pragma Inline (Set_Float_Truncate);
12236    pragma Inline (Set_Formal_Type_Definition);
12237    pragma Inline (Set_Forwards_OK);
12238    pragma Inline (Set_From_Aspect_Specification);
12239    pragma Inline (Set_From_At_End);
12240    pragma Inline (Set_From_At_Mod);
12241    pragma Inline (Set_From_Default);
12242    pragma Inline (Set_Generic_Associations);
12243    pragma Inline (Set_Generic_Formal_Declarations);
12244    pragma Inline (Set_Generic_Parent);
12245    pragma Inline (Set_Generic_Parent_Type);
12246    pragma Inline (Set_Handled_Statement_Sequence);
12247    pragma Inline (Set_Handler_List_Entry);
12248    pragma Inline (Set_Has_Created_Identifier);
12249    pragma Inline (Set_Has_Dynamic_Length_Check);
12250    pragma Inline (Set_Has_Init_Expression);
12251    pragma Inline (Set_Has_Local_Raise);
12252    pragma Inline (Set_Has_Dynamic_Range_Check);
12253    pragma Inline (Set_Has_No_Elaboration_Code);
12254    pragma Inline (Set_Has_Pragma_CPU);
12255    pragma Inline (Set_Has_Pragma_Dispatching_Domain);
12256    pragma Inline (Set_Has_Pragma_Priority);
12257    pragma Inline (Set_Has_Pragma_Suppress_All);
12258    pragma Inline (Set_Has_Private_View);
12259    pragma Inline (Set_Has_Relative_Deadline_Pragma);
12260    pragma Inline (Set_Has_Storage_Size_Pragma);
12261    pragma Inline (Set_Has_Task_Info_Pragma);
12262    pragma Inline (Set_Has_Task_Name_Pragma);
12263    pragma Inline (Set_Has_Wide_Character);
12264    pragma Inline (Set_Has_Wide_Wide_Character);
12265    pragma Inline (Set_Header_Size_Added);
12266    pragma Inline (Set_Hidden_By_Use_Clause);
12267    pragma Inline (Set_High_Bound);
12268    pragma Inline (Set_Identifier);
12269    pragma Inline (Set_Implicit_With);
12270    pragma Inline (Set_Includes_Infinities);
12271    pragma Inline (Set_Interface_List);
12272    pragma Inline (Set_Interface_Present);
12273    pragma Inline (Set_Import_Interface_Present);
12274    pragma Inline (Set_In_Present);
12275    pragma Inline (Set_Inherited_Discriminant);
12276    pragma Inline (Set_Instance_Spec);
12277    pragma Inline (Set_Intval);
12278    pragma Inline (Set_Iterator_Specification);
12279    pragma Inline (Set_Is_Accessibility_Actual);
12280    pragma Inline (Set_Is_Asynchronous_Call_Block);
12281    pragma Inline (Set_Is_Boolean_Aspect);
12282    pragma Inline (Set_Is_Component_Left_Opnd);
12283    pragma Inline (Set_Is_Component_Right_Opnd);
12284    pragma Inline (Set_Is_Controlling_Actual);
12285    pragma Inline (Set_Is_Delayed_Aspect);
12286    pragma Inline (Set_Is_Dynamic_Coextension);
12287    pragma Inline (Set_Is_Elsif);
12288    pragma Inline (Set_Is_Entry_Barrier_Function);
12289    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12290    pragma Inline (Set_Is_Folded_In_Parser);
12291    pragma Inline (Set_Is_In_Discriminant_Check);
12292    pragma Inline (Set_Is_Machine_Number);
12293    pragma Inline (Set_Is_Null_Loop);
12294    pragma Inline (Set_Is_Overloaded);
12295    pragma Inline (Set_Is_Power_Of_2_For_Shift);
12296    pragma Inline (Set_Is_Protected_Subprogram_Body);
12297    pragma Inline (Set_Has_Self_Reference);
12298    pragma Inline (Set_Is_Static_Coextension);
12299    pragma Inline (Set_Is_Static_Expression);
12300    pragma Inline (Set_Is_Subprogram_Descriptor);
12301    pragma Inline (Set_Is_Task_Allocation_Block);
12302    pragma Inline (Set_Is_Task_Master);
12303    pragma Inline (Set_Iteration_Scheme);
12304    pragma Inline (Set_Itype);
12305    pragma Inline (Set_Kill_Range_Check);
12306    pragma Inline (Set_Last_Bit);
12307    pragma Inline (Set_Last_Name);
12308    pragma Inline (Set_Library_Unit);
12309    pragma Inline (Set_Label_Construct);
12310    pragma Inline (Set_Left_Opnd);
12311    pragma Inline (Set_Limited_View_Installed);
12312    pragma Inline (Set_Limited_Present);
12313    pragma Inline (Set_Literals);
12314    pragma Inline (Set_Local_Raise_Not_OK);
12315    pragma Inline (Set_Local_Raise_Statements);
12316    pragma Inline (Set_Loop_Actions);
12317    pragma Inline (Set_Loop_Parameter_Specification);
12318    pragma Inline (Set_Low_Bound);
12319    pragma Inline (Set_Mod_Clause);
12320    pragma Inline (Set_More_Ids);
12321    pragma Inline (Set_Must_Be_Byte_Aligned);
12322    pragma Inline (Set_Must_Not_Freeze);
12323    pragma Inline (Set_Must_Not_Override);
12324    pragma Inline (Set_Must_Override);
12325    pragma Inline (Set_Name);
12326    pragma Inline (Set_Names);
12327    pragma Inline (Set_Next_Entity);
12328    pragma Inline (Set_Next_Exit_Statement);
12329    pragma Inline (Set_Next_Implicit_With);
12330    pragma Inline (Set_Next_Named_Actual);
12331    pragma Inline (Set_Next_Pragma);
12332    pragma Inline (Set_Next_Rep_Item);
12333    pragma Inline (Set_Next_Use_Clause);
12334    pragma Inline (Set_No_Ctrl_Actions);
12335    pragma Inline (Set_No_Elaboration_Check);
12336    pragma Inline (Set_No_Entities_Ref_In_Spec);
12337    pragma Inline (Set_No_Initialization);
12338    pragma Inline (Set_No_Truncation);
12339    pragma Inline (Set_Null_Present);
12340    pragma Inline (Set_Null_Exclusion_Present);
12341    pragma Inline (Set_Null_Exclusion_In_Return_Present);
12342    pragma Inline (Set_Null_Record_Present);
12343    pragma Inline (Set_Object_Definition);
12344    pragma Inline (Set_Of_Present);
12345    pragma Inline (Set_Original_Discriminant);
12346    pragma Inline (Set_Original_Entity);
12347    pragma Inline (Set_Others_Discrete_Choices);
12348    pragma Inline (Set_Out_Present);
12349    pragma Inline (Set_Parameter_Associations);
12350    pragma Inline (Set_Parameter_Specifications);
12351    pragma Inline (Set_Parameter_List_Truncated);
12352    pragma Inline (Set_Parameter_Type);
12353    pragma Inline (Set_Parent_Spec);
12354    pragma Inline (Set_Position);
12355    pragma Inline (Set_Pragma_Argument_Associations);
12356    pragma Inline (Set_Pragma_Identifier);
12357    pragma Inline (Set_Pragmas_After);
12358    pragma Inline (Set_Pragmas_Before);
12359    pragma Inline (Set_Prefix);
12360    pragma Inline (Set_Premature_Use);
12361    pragma Inline (Set_Present_Expr);
12362    pragma Inline (Set_Prev_Ids);
12363    pragma Inline (Set_Print_In_Hex);
12364    pragma Inline (Set_Private_Declarations);
12365    pragma Inline (Set_Private_Present);
12366    pragma Inline (Set_Procedure_To_Call);
12367    pragma Inline (Set_Proper_Body);
12368    pragma Inline (Set_Protected_Definition);
12369    pragma Inline (Set_Protected_Present);
12370    pragma Inline (Set_Raises_Constraint_Error);
12371    pragma Inline (Set_Range_Constraint);
12372    pragma Inline (Set_Range_Expression);
12373    pragma Inline (Set_Real_Range_Specification);
12374    pragma Inline (Set_Realval);
12375    pragma Inline (Set_Reason);
12376    pragma Inline (Set_Record_Extension_Part);
12377    pragma Inline (Set_Redundant_Use);
12378    pragma Inline (Set_Renaming_Exception);
12379    pragma Inline (Set_Result_Definition);
12380    pragma Inline (Set_Return_Object_Declarations);
12381    pragma Inline (Set_Reverse_Present);
12382    pragma Inline (Set_Right_Opnd);
12383    pragma Inline (Set_Rounded_Result);
12384    pragma Inline (Set_SCIL_Controlling_Tag);
12385    pragma Inline (Set_SCIL_Entity);
12386    pragma Inline (Set_SCIL_Tag_Value);
12387    pragma Inline (Set_SCIL_Target_Prim);
12388    pragma Inline (Set_Scope);
12389    pragma Inline (Set_Select_Alternatives);
12390    pragma Inline (Set_Selector_Name);
12391    pragma Inline (Set_Selector_Names);
12392    pragma Inline (Set_Shift_Count_OK);
12393    pragma Inline (Set_Source_Type);
12394    pragma Inline (Set_Spec_PPC_List);
12395    pragma Inline (Set_Spec_TC_List);
12396    pragma Inline (Set_Specification);
12397    pragma Inline (Set_Split_PPC);
12398    pragma Inline (Set_Statements);
12399    pragma Inline (Set_Static_Processing_OK);
12400    pragma Inline (Set_Storage_Pool);
12401    pragma Inline (Set_Subpool_Handle_Name);
12402    pragma Inline (Set_Strval);
12403    pragma Inline (Set_Subtype_Indication);
12404    pragma Inline (Set_Subtype_Mark);
12405    pragma Inline (Set_Subtype_Marks);
12406    pragma Inline (Set_Suppress_Assignment_Checks);
12407    pragma Inline (Set_Suppress_Loop_Warnings);
12408    pragma Inline (Set_Synchronized_Present);
12409    pragma Inline (Set_Tagged_Present);
12410    pragma Inline (Set_Target_Type);
12411    pragma Inline (Set_Task_Definition);
12412    pragma Inline (Set_Task_Present);
12413    pragma Inline (Set_Then_Actions);
12414    pragma Inline (Set_Then_Statements);
12415    pragma Inline (Set_Triggering_Alternative);
12416    pragma Inline (Set_Triggering_Statement);
12417    pragma Inline (Set_Treat_Fixed_As_Integer);
12418    pragma Inline (Set_TSS_Elist);
12419    pragma Inline (Set_Type_Definition);
12420    pragma Inline (Set_Unit);
12421    pragma Inline (Set_Unknown_Discriminants_Present);
12422    pragma Inline (Set_Unreferenced_In_Spec);
12423    pragma Inline (Set_Variant_Part);
12424    pragma Inline (Set_Variants);
12425    pragma Inline (Set_Visible_Declarations);
12426    pragma Inline (Set_Used_Operations);
12427    pragma Inline (Set_Was_Originally_Stub);
12428    pragma Inline (Set_Withed_Body);
12429
12430    --------------
12431    -- Synonyms --
12432    --------------
12433
12434    --  These synonyms are to aid in transition, they should eventually be
12435    --  removed when all remaining references to the obsolete name are gone.
12436
12437    N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
12438    --  Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
12439    --  should refer to N_Simple_Return_Statement.
12440
12441    N_Parameterized_Expression : constant Node_Kind := N_Expression_Function;
12442    --  Old name for expression functions (used during Ada 2012 transition)
12443
12444 end Sinfo;