OSDN Git Service

Fix oversight
[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    --  At_End_Proc (Node1)
609    --    This field is present in an N_Handled_Sequence_Of_Statements node.
610    --    It contains an identifier reference for the cleanup procedure to be
611    --    called. See description of this node for further details.
612
613    --  Backwards_OK (Flag6-Sem)
614    --    A flag present in the N_Assignment_Statement node. It is used only
615    --    if the type being assigned is an array type, and is set if analysis
616    --    determines that it is definitely safe to do the copy backwards, i.e.
617    --    starting at the highest addressed element. This is the case if either
618    --    the operands do not overlap, or they may overlap, but if they do,
619    --    then the left operand is at a higher address than the right operand.
620    --
621    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
622    --    means that the front end could not determine that either direction is
623    --    definitely safe, and a runtime check may be required if the backend
624    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
625    --    set, it means that the front end can assure no overlap of operands.
626
627    --  Body_To_Inline (Node3-Sem)
628    --    present in subprogram declarations. Denotes analyzed but unexpanded
629    --    body of subprogram, to be used when inlining calls. Present when the
630    --    subprogram has an Inline pragma and inlining is enabled. If the
631    --    declaration is completed by a renaming_as_body, and the renamed en-
632    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
633    --    which is used directly in later calls to the original subprogram.
634
635    --  Body_Required (Flag13-Sem)
636    --    A flag that appears in the N_Compilation_Unit node indicating that
637    --    the corresponding unit requires a body. For the package case, this
638    --    indicates that a completion is required. In Ada 95, if the flag is not
639    --    set for the package case, then a body may not be present. In Ada 83,
640    --    if the flag is not set for the package case, then body is optional.
641    --    For a subprogram declaration, the flag is set except in the case where
642    --    a pragma Import or Interface applies, in which case no body is
643    --    permitted (in Ada 83 or Ada 95).
644
645    --  By_Ref (Flag5-Sem)
646    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
647    --    this flag is set when the returned expression is already allocated on
648    --    the secondary stack and thus the result is passed by reference rather
649    --    than copied another time.
650
651    --  Check_Address_Alignment (Flag11-Sem)
652    --    A flag present in N_Attribute_Definition clause for a 'Address
653    --    attribute definition. This flag is set if a dynamic check should be
654    --    generated at the freeze point for the entity to which this address
655    --    clause applies. The reason that we need this flag is that we want to
656    --    check for range checks being suppressed at the point where the
657    --    attribute definition clause is given, rather than testing this at the
658    --    freeze point.
659
660    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
661    --    Present in N_Simple_Return_Statement nodes. True if this node was
662    --    constructed as part of the N_Extended_Return_Statement expansion.
663
664    --  Compile_Time_Known_Aggregate (Flag18-Sem)
665    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
666    --    evaluated at compile time without raising constraint error. Such
667    --    aggregates can be passed as is to Gigi without any expansion. See
668    --    Sem_Aggr for the specific conditions under which an aggregate has this
669    --    flag set. See also the flag Static_Processing_OK.
670
671    --  Componentwise_Assignment (Flag14-Sem)
672    --    Present in N_Assignment_Statement nodes. Set for a record assignment
673    --    where all that needs doing is to expand it into component-by-component
674    --    assignments. This is used internally for the case of tagged types with
675    --    rep clauses, where we need to avoid recursion (we don't want to try to
676    --    generate a call to the primitive operation, because this is the case
677    --    where we are compiling the primitive operation). Note that when we are
678    --    expanding component assignments in this case, we never assign the _tag
679    --    field, but we recursively assign components of the parent type.
680
681    --  Condition_Actions (List3-Sem)
682    --    This field appears in else-if nodes and in the iteration scheme node
683    --    for while loops. This field is only used during semantic processing to
684    --    temporarily hold actions inserted into the tree. In the tree passed
685    --    to gigi, the condition actions field is always set to No_List. For
686    --    details on how this field is used, see the routine Insert_Actions in
687    --    package Exp_Util, and also the expansion routines for the relevant
688    --    nodes.
689
690    --  Context_Pending (Flag16-Sem)
691    --    This field appears in Compilation_Unit nodes, to indicate that the
692    --    context of the unit is being compiled. Used to detect circularities
693    --    that are not otherwise detected by the loading mechanism. Such
694    --    circularities can occur in the presence of limited and non-limited
695    --    with_clauses that mention the same units.
696
697    --  Controlling_Argument (Node1-Sem)
698    --    This field is set in procedure and function call nodes if the call
699    --    is a dispatching call (it is Empty for a non-dispatching call). It
700    --    indicates the source of the call's controlling tag. For procedure
701    --    calls, the Controlling_Argument is one of the actuals. For function
702    --    that has a dispatching result, it is an entity in the context of the
703    --    call that can provide a tag, or else it is the tag of the root type
704    --    of the class. It can also specify a tag directly rather than being a
705    --    tagged object. The latter is needed by the implementations of AI-239
706    --    and AI-260.
707
708    --  Conversion_OK (Flag14-Sem)
709    --    A flag set on type conversion nodes to indicate that the conversion
710    --    is to be considered as being valid, even though it is the case that
711    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
712    --    Fixed_Value and Integer_Value, for internal conversions done for
713    --    fixed-point operations, and for certain conversions for calls to
714    --    initialization procedures. If Conversion_OK is set, then Etype must be
715    --    set (the analyzer assumes that Etype has been set). For the case of
716    --    fixed-point operands, it also indicates that the conversion is to be
717    --    direct conversion of the underlying integer result, with no regard to
718    --    the small operand.
719
720    --  Corresponding_Aspect (Node3-Sem)
721    --    Present in N_Pragma node. Used to point back to the source aspect from
722    --    the corresponding pragma. This field is Empty for source pragmas.
723
724    --  Corresponding_Body (Node5-Sem)
725    --    This field is set in subprogram declarations, package declarations,
726    --    entry declarations of protected types, and in generic units. It points
727    --    to the defining entity for the corresponding body (NOT the node for
728    --    the body itself).
729
730    --  Corresponding_Formal_Spec (Node3-Sem)
731    --    This field is set in subprogram renaming declarations, where it points
732    --    to the defining entity for a formal subprogram in the case where the
733    --    renaming corresponds to a generic formal subprogram association in an
734    --    instantiation. The field is Empty if the renaming does not correspond
735    --    to such a formal association.
736
737    --  Corresponding_Generic_Association (Node5-Sem)
738    --    This field is defined for object declarations and object renaming
739    --    declarations. It is set for the declarations within an instance that
740    --    map generic formals to their actuals. If set, the field points to
741    --    a generic_association which is the original parent of the expression
742    --    or name appearing in the declaration. This simplifies ASIS queries.
743
744    --  Corresponding_Integer_Value (Uint4-Sem)
745    --    This field is set in real literals of fixed-point types (it is not
746    --    used for floating-point types). It contains the integer value used
747    --    to represent the fixed-point value. It is also set on the universal
748    --    real literals used to represent bounds of fixed-point base types
749    --    and their first named subtypes.
750
751    --  Corresponding_Spec (Node5-Sem)
752    --    This field is set in subprogram, package, task, and protected body
753    --    nodes, where it points to the defining entity in the corresponding
754    --    spec. The attribute is also set in N_With_Clause nodes where it points
755    --    to the defining entity for the with'ed spec, and in a subprogram
756    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
757    --    if there is no corresponding spec, as in the case of a subprogram body
758    --    that serves as its own spec.
759
760    --  Corresponding_Stub (Node3-Sem)
761    --    This field is present in an N_Subunit node. It holds the node in
762    --    the parent unit that is the stub declaration for the subunit. It is
763    --    set when analysis of the stub forces loading of the proper body. If
764    --    expansion of the proper body creates new declarative nodes, they are
765    --    inserted at the point of the corresponding_stub.
766
767    --  Dcheck_Function (Node5-Sem)
768    --    This field is present in an N_Variant node, It references the entity
769    --    for the discriminant checking function for the variant.
770
771    --  Default_Expression (Node5-Sem)
772    --    This field is Empty if there is no default expression. If there is a
773    --    simple default expression (one with no side effects), then this field
774    --    simply contains a copy of the Expression field (both point to the tree
775    --    for the default expression). Default_Expression is used for
776    --    conformance checking.
777
778    --  Default_Storage_Pool (Node3-Sem)
779    --    This field is present in N_Compilation_Unit_Aux nodes. It is set to a
780    --    copy of Opt.Default_Pool at the end of the compilation unit. See
781    --    package Opt for details. This is used for inheriting the
782    --    Default_Storage_Pool in child units.
783
784    --  Discr_Check_Funcs_Built (Flag11-Sem)
785    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
786    --    discriminant checking functions are constructed. The purpose is to
787    --    avoid attempting to set these functions more than once.
788
789    --  Do_Accessibility_Check (Flag13-Sem)
790    --    This flag is set on N_Parameter_Specification nodes to indicate
791    --    that an accessibility check is required for the parameter. It is
792    --    not yet decided who takes care of this check (TBD ???).
793
794    --  Do_Discriminant_Check (Flag13-Sem)
795    --    This flag is set on N_Selected_Component nodes to indicate that a
796    --    discriminant check is required using the discriminant check routine
797    --    associated with the selector. The actual check is generated by the
798    --    expander when processing selected components.
799
800    --  Do_Division_Check (Flag13-Sem)
801    --    This flag is set on a division operator (/ mod rem) to indicate
802    --    that a zero divide check is required. The actual check is dealt
803    --    with by the backend (all the front end does is to set the flag).
804
805    --  Do_Length_Check (Flag4-Sem)
806    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
807    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
808    --    is required. It is not determined who deals with this flag (???).
809
810    --  Do_Overflow_Check (Flag17-Sem)
811    --    This flag is set on an operator where an overflow check is required on
812    --    the operation. The actual check is dealt with by the backend (all the
813    --    front end does is to set the flag). The other cases where this flag is
814    --    used is on a Type_Conversion node and for attribute reference nodes.
815    --    For a type conversion, it means that the conversion is from one base
816    --    type to another, and the value may not fit in the target base type.
817    --    See also the description of Do_Range_Check for this case. The only
818    --    attribute references which use this flag are Pred and Succ, where it
819    --    means that the result should be checked for going outside the base
820    --    range. Note that this flag is not set for modular types.
821
822    --  Do_Range_Check (Flag9-Sem)
823    --    This flag is set on an expression which appears in a context where a
824    --    range check is required. The target type is clear from the context.
825    --    The contexts in which this flag can appear are the following:
826
827    --      Right side of an assignment. In this case the target type is
828    --      taken from the left side of the assignment, which is referenced
829    --      by the Name of the N_Assignment_Statement node.
830
831    --      Subscript expressions in an indexed component. In this case the
832    --      target type is determined from the type of the array, which is
833    --      referenced by the Prefix of the N_Indexed_Component node.
834
835    --      Argument expression for a parameter, appearing either directly in
836    --      the Parameter_Associations list of a call or as the Expression of an
837    --      N_Parameter_Association node that appears in this list. In either
838    --      case, the check is against the type of the formal. Note that the
839    --      flag is relevant only in IN and IN OUT parameters, and will be
840    --      ignored for OUT parameters, where no check is required in the call,
841    --      and if a check is required on the return, it is generated explicitly
842    --      with a type conversion.
843
844    --      Initialization expression for the initial value in an object
845    --      declaration. In this case the Do_Range_Check flag is set on
846    --      the initialization expression, and the check is against the
847    --      range of the type of the object being declared.
848
849    --      The expression of a type conversion. In this case the range check is
850    --      against the target type of the conversion. See also the use of
851    --      Do_Overflow_Check on a type conversion. The distinction is that the
852    --      overflow check protects against a value that is outside the range of
853    --      the target base type, whereas a range check checks that the
854    --      resulting value (which is a value of the base type of the target
855    --      type), satisfies the range constraint of the target type.
856
857    --    Note: when a range check is required in contexts other than those
858    --    listed above (e.g. in a return statement), an additional type
859    --    conversion node is introduced to represent the required check.
860
861    --  Do_Storage_Check (Flag17-Sem)
862    --    This flag is set in an N_Allocator node to indicate that a storage
863    --    check is required for the allocation, or in an N_Subprogram_Body node
864    --    to indicate that a stack check is required in the subprogram prolog.
865    --    The N_Allocator case is handled by the routine that expands the call
866    --    to the runtime routine. The N_Subprogram_Body case is handled by the
867    --    backend, and all the semantics does is set the flag.
868
869    --  Do_Tag_Check (Flag13-Sem)
870    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
871    --    N_Procedure_Call_Statement, N_Type_Conversion,
872    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
873    --    node to indicate that the tag check can be suppressed. It is not
874    --    yet decided how this flag is used (TBD ???).
875
876    --  Elaborate_Present (Flag4-Sem)
877    --    This flag is set in the N_With_Clause node to indicate that pragma
878    --    Elaborate pragma appears for the with'ed units.
879
880    --  Elaborate_All_Desirable (Flag9-Sem)
881    --    This flag is set in the N_With_Clause mode to indicate that the static
882    --    elaboration processing has determined that an Elaborate_All pragma is
883    --    desirable for correct elaboration for this unit.
884
885    --  Elaborate_All_Present (Flag14-Sem)
886    --    This flag is set in the N_With_Clause node to indicate that a
887    --    pragma Elaborate_All pragma appears for the with'ed units.
888
889    --  Elaborate_Desirable (Flag11-Sem)
890    --    This flag is set in the N_With_Clause mode to indicate that the static
891    --    elaboration processing has determined that an Elaborate pragma is
892    --    desirable for correct elaboration for this unit.
893
894    --  Elaboration_Boolean (Node2-Sem)
895    --    This field is present in function and procedure specification nodes.
896    --    If set, it points to the entity for a Boolean flag that must be tested
897    --    for certain calls to check for access before elaboration. See body of
898    --    Sem_Elab for further details. This field is Empty if no elaboration
899    --    boolean is required.
900
901    --  Else_Actions (List3-Sem)
902    --    This field is present in conditional expression nodes. During code
903    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
904    --    actions at an appropriate place in the tree to get elaborated at the
905    --    right time. For conditional expressions, we have to be sure that the
906    --    actions for the Else branch are only elaborated if the condition is
907    --    False. The Else_Actions field is used as a temporary parking place for
908    --    these actions. The final tree is always rewritten to eliminate the
909    --    need for this field, so in the tree passed to Gigi, this field is
910    --    always set to No_List.
911
912    --  Enclosing_Variant (Node2-Sem)
913    --    This field is present in the N_Variant node and identifies the Node_Id
914    --    corresponding to the immediately enclosing variant when the variant is
915    --    nested, and N_Empty otherwise. Set during semantic processing of the
916    --    variant part of a record type.
917
918    --  Entity (Node4-Sem)
919    --    Appears in all direct names (identifiers, character literals, and
920    --    operator symbols), as well as expanded names, and attributes that
921    --    denote entities, such as 'Class. Points to entity for corresponding
922    --    defining occurrence. Set after name resolution. For identifiers in a
923    --    WITH list, the corresponding defining occurrence is in a separately
924    --    compiled file, and Entity must be set by the library Load procedure.
925    --
926    --    Note: During name resolution, the value in Entity may be temporarily
927    --    incorrect (e.g. during overload resolution, Entity is initially set to
928    --    the first possible correct interpretation, and then later modified if
929    --    necessary to contain the correct value after resolution).
930    --
931    --    Note: This field overlaps Associated_Node, which is used during
932    --    generic processing (see Sem_Ch12 for details). Note also that in
933    --    generic templates, this means that the Entity field does not always
934    --    point to an Entity. Since the back end is expected to ignore generic
935    --    templates, this is harmless.
936    --
937    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
938    --    It is used only for stream attributes definition clauses. In this
939    --    case, it denotes a (possibly dummy) subprogram entity that is declared
940    --    conceptually at the point of the clause. Thus the visibility of the
941    --    attribute definition clause (in the sense of 8.3(23) as amended by
942    --    AI-195) can be checked by testing the visibility of that subprogram.
943    --
944    --    Note: Normally the Entity field of an identifier points to the entity
945    --    for the corresponding defining identifier, and hence the Chars field
946    --    of an identifier will match the Chars field of the entity. However,
947    --    there is no requirement that these match, and there are obscure cases
948    --    of generated code where they do not match.
949
950    --    Note: Ada 2012 aspect specifications require additional links between
951    --    identifiers and various attributes. These attributes can be of
952    --    arbitrary types, and the entity field of identifiers that denote
953    --    aspects must be used to store arbitrary expressions for later semantic
954    --    checks. See section on aspect specifications for details.
955
956    --  Entity_Or_Associated_Node (Node4-Sem)
957    --    A synonym for both Entity and Associated_Node. Used by convention in
958    --    the code when referencing this field in cases where it is not known
959    --    whether the field contains an Entity or an Associated_Node.
960
961    --  Etype (Node5-Sem)
962    --    Appears in all expression nodes, all direct names, and all entities.
963    --    Points to the entity for the related type. Set after type resolution.
964    --    Normally this is the actual subtype of the expression. However, in
965    --    certain contexts such as the right side of an assignment, subscripts,
966    --    arguments to calls, returned value in a function, initial value etc.
967    --    it is the desired target type. In the event that this is different
968    --    from the actual type, the Do_Range_Check flag will be set if a range
969    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
970    --    points to an essentially arbitrary choice from the possible set of
971    --    types.
972
973    --  Exception_Junk (Flag8-Sem)
974    --    This flag is set in a various nodes appearing in a statement sequence
975    --    to indicate that the corresponding node is an artifact of the
976    --    generated code for exception handling, and should be ignored when
977    --    analyzing the control flow of the relevant sequence of statements
978    --    (e.g. to check that it does not end with a bad return statement).
979
980    --  Exception_Label (Node5-Sem)
981    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
982    --    to be used for transforming the corresponding exception into a goto,
983    --    or contains Empty, if this exception is not to be transformed. Also
984    --    appears in N_Exception_Handler nodes, where, if set, it indicates
985    --    that there may be a local raise for the handler, so that expansion
986    --    to allow a goto is required (and this field contains the label for
987    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
988
989    --  Expansion_Delayed (Flag11-Sem)
990    --    Set on aggregates and extension aggregates that need a top-down rather
991    --    than bottom-up expansion. Typically aggregate expansion happens bottom
992    --    up. For nested aggregates the expansion is delayed until the enclosing
993    --    aggregate itself is expanded, e.g. in the context of a declaration. To
994    --    delay it we set this flag. This is done to avoid creating a temporary
995    --    for each level of a nested aggregates, and also to prevent the
996    --    premature generation of constraint checks. This is also a requirement
997    --    if we want to generate the proper attachment to the internal
998    --    finalization lists (for record with controlled components). Top down
999    --    expansion of aggregates is also used for in-place array aggregate
1000    --    assignment or initialization. When the full context is known, the
1001    --    target of the assignment or initialization is used to generate the
1002    --    left-hand side of individual assignment to each sub-component.
1003
1004    --  First_Inlined_Subprogram (Node3-Sem)
1005    --    Present in the N_Compilation_Unit node for the main program. Points
1006    --    to a chain of entities for subprograms that are to be inlined. The
1007    --    Next_Inlined_Subprogram field of these entities is used as a link
1008    --    pointer with Empty marking the end of the list. This field is Empty
1009    --    if there are no inlined subprograms or inlining is not active.
1010
1011    --  First_Named_Actual (Node4-Sem)
1012    --    Present in procedure call statement and function call nodes, and also
1013    --    in Intrinsic nodes. Set during semantic analysis to point to the first
1014    --    named parameter where parameters are ordered by declaration order (as
1015    --    opposed to the actual order in the call which may be different due to
1016    --    named associations). Note: this field points to the explicit actual
1017    --    parameter itself, not the N_Parameter_Association node (its parent).
1018
1019    --  First_Real_Statement (Node2-Sem)
1020    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1021    --    Empty. Used only when declarations are moved into the statement part
1022    --    of a construct as a result of wrapping an AT END handler that is
1023    --    required to cover the declarations. In this case, this field is used
1024    --    to remember the location in the statements list of the first real
1025    --    statement, i.e. the statement that used to be first in the statement
1026    --    list before the declarations were prepended.
1027
1028    --  First_Subtype_Link (Node5-Sem)
1029    --    Present in N_Freeze_Entity node for an anonymous base type that is
1030    --    implicitly created by the declaration of a first subtype. It points
1031    --    to the entity for the first subtype.
1032
1033    --  Float_Truncate (Flag11-Sem)
1034    --    A flag present in type conversion nodes. This is used for float to
1035    --    integer conversions where truncation is required rather than rounding.
1036    --    Note that Gigi does not handle type conversions from real to integer
1037    --    with rounding (see Expand_N_Type_Conversion).
1038
1039    --  Forwards_OK (Flag5-Sem)
1040    --    A flag present in the N_Assignment_Statement node. It is used only
1041    --    if the type being assigned is an array type, and is set if analysis
1042    --    determines that it is definitely safe to do the copy forwards, i.e.
1043    --    starting at the lowest addressed element. This is the case if either
1044    --    the operands do not overlap, or they may overlap, but if they do,
1045    --    then the left operand is at a lower address than the right operand.
1046    --
1047    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1048    --    means that the front end could not determine that either direction is
1049    --    definitely safe, and a runtime check may be required if the backend
1050    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1051    --    set, it means that the front end can assure no overlap of operands.
1052
1053    --  From_Aspect_Specification (Flag13-Sem)
1054    --    Processing of aspect specifications typically results in insertion in
1055    --    the tree of corresponding pragma or attribute definition clause nodes.
1056    --    These generated nodes have the From_Aspect_Specification flag set to
1057    --    indicate that they came from aspect specifications originally.
1058
1059    --  From_At_End (Flag4-Sem)
1060    --    This flag is set on an N_Raise_Statement node if it corresponds to
1061    --    the reraise statement generated as the last statement of an AT END
1062    --    handler when SJLJ exception handling is active. It is used to stop
1063    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1064    --    because if the restriction is set, the reraise is not generated.
1065
1066    --  From_At_Mod (Flag4-Sem)
1067    --    This flag is set on the attribute definition clause node that is
1068    --    generated by a transformation of an at mod phrase in a record
1069    --    representation clause. This is used to give slightly different (Ada 83
1070    --    compatible) semantics to such a clause, namely it is used to specify a
1071    --    minimum acceptable alignment for the base type and all subtypes. In
1072    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1073    --    must be a multiple of the given value, and the representation clause
1074    --    is considered to be type specific instead of subtype specific.
1075
1076    --  From_Default (Flag6-Sem)
1077    --    This flag is set on the subprogram renaming declaration created in an
1078    --    instance for a formal subprogram, when the formal is declared with a
1079    --    box, and there is no explicit actual. If the flag is present, the
1080    --    declaration is treated as an implicit reference to the formal in the
1081    --    ali file.
1082
1083    --  Generic_Parent (Node5-Sem)
1084    --    Generic_Parent is defined on declaration nodes that are instances. The
1085    --    value of Generic_Parent is the generic entity from which the instance
1086    --    is obtained. Generic_Parent is also defined for the renaming
1087    --    declarations and object declarations created for the actuals in an
1088    --    instantiation. The generic parent of such a declaration is the
1089    --    corresponding generic association in the Instantiation node.
1090
1091    --  Generic_Parent_Type (Node4-Sem)
1092    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1093    --    actuals of formal private and derived types. Within the instance, the
1094    --    operations on the actual are those inherited from the parent. For a
1095    --    formal private type, the parent type is the generic type itself. The
1096    --    Generic_Parent_Type is also used in an instance to determine whether a
1097    --    private operation overrides an inherited one.
1098
1099    --  Handler_List_Entry (Node2-Sem)
1100    --    This field is present in N_Object_Declaration nodes. It is set only
1101    --    for the Handler_Record entry generated for an exception in zero cost
1102    --    exception handling mode. It references the corresponding item in the
1103    --    handler list, and is used to delete this entry if the corresponding
1104    --    handler is deleted during optimization. For further details on why
1105    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1106
1107    --  Has_Dynamic_Length_Check (Flag10-Sem)
1108    --    This flag is present in all expression nodes. It is set to indicate
1109    --    that one of the routines in unit Checks has generated a length check
1110    --    action which has been inserted at the flagged node. This is used to
1111    --    avoid the generation of duplicate checks.
1112
1113    --  Has_Dynamic_Range_Check (Flag12-Sem)
1114    --    This flag is present in N_Subtype_Declaration nodes and on all
1115    --    expression nodes. It is set to indicate that one of the routines in
1116    --    unit Checks has generated a range check action which has been inserted
1117    --    at the flagged node. This is used to avoid the generation of duplicate
1118    --    checks. Why does this occur on N_Subtype_Declaration nodes, what does
1119    --    it mean in that context???
1120
1121    --  Has_Local_Raise (Flag8-Sem)
1122    --    Present in exception handler nodes. Set if the handler can be entered
1123    --    via a local raise that gets transformed to a goto statement. This will
1124    --    always be set if Local_Raise_Statements is non-empty, but can also be
1125    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
1126    --    nodes requiring generation of back end checks.
1127
1128    --  Has_No_Elaboration_Code (Flag17-Sem)
1129    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1130    --    or not elaboration code is present for this unit. It is initially set
1131    --    true for subprogram specs and bodies and for all generic units and
1132    --    false for non-generic package specs and bodies. Gigi may set the flag
1133    --    in the non-generic package case if it determines that no elaboration
1134    --    code is generated. Note that this flag is not related to the
1135    --    Is_Preelaborated status, there can be preelaborated packages that
1136    --    generate elaboration code, and non-preelaborated packages which do
1137    --    not generate elaboration code.
1138
1139    --  Has_Pragma_CPU (Flag14-Sem)
1140    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1141    --    flag the presence of a CPU pragma in the declaration sequence (public
1142    --    or private in the task case).
1143
1144    --  Has_Pragma_Dispatching_Domain (Flag15-Sem)
1145    --    A flag present in N_Task_Definition nodes to flag the presence of a
1146    --    Dispatching_Domain pragma in the declaration sequence (public or
1147    --    private in the task case).
1148
1149    --  Has_Pragma_Suppress_All (Flag14-Sem)
1150    --    This flag is set in an N_Compilation_Unit node if the Suppress_All
1151    --    pragma appears anywhere in the unit. This accommodates the rather
1152    --    strange placement rules of other compilers (DEC permits it at the
1153    --    end of a unit, and Rational allows it as a program unit pragma). We
1154    --    allow it anywhere at all, and consider it equivalent to a pragma
1155    --    Suppress (All_Checks) appearing at the start of the configuration
1156    --    pragmas for the unit.
1157
1158    --  Has_Pragma_Priority (Flag6-Sem)
1159    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1160    --    N_Protected_Definition nodes to flag the presence of either a Priority
1161    --    or Interrupt_Priority pragma in the declaration sequence (public or
1162    --    private in the task and protected cases)
1163
1164    --  Has_Private_View (Flag11-Sem)
1165    --    A flag present in generic nodes that have an entity, to indicate that
1166    --    the node has a private type. Used to exchange private and full
1167    --    declarations if the visibility at instantiation is different from the
1168    --    visibility at generic definition.
1169
1170    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1171    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1172    --    flag the presence of a pragma Relative_Deadline.
1173
1174    --  Has_Self_Reference (Flag13-Sem)
1175    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1176    --    of the expressions contains an access attribute reference to the
1177    --    enclosing type. Such a self-reference can only appear in default-
1178    --    initialized aggregate for a record type.
1179
1180    --  Has_Storage_Size_Pragma (Flag5-Sem)
1181    --    A flag present in an N_Task_Definition node to flag the presence of a
1182    --    Storage_Size pragma.
1183
1184    --  Has_Task_Info_Pragma (Flag7-Sem)
1185    --    A flag present in an N_Task_Definition node to flag the presence of a
1186    --    Task_Info pragma. Used to detect duplicate pragmas.
1187
1188    --  Has_Task_Name_Pragma (Flag8-Sem)
1189    --    A flag present in N_Task_Definition nodes to flag the presence of a
1190    --    Task_Name pragma in the declaration sequence for the task.
1191
1192    --  Has_Wide_Character (Flag11-Sem)
1193    --    Present in string literals, set if any wide character (i.e. character
1194    --    code outside the Character range but within Wide_Character range)
1195    --    appears in the string. Used to implement pragma preference rules.
1196
1197    --  Has_Wide_Wide_Character (Flag13-Sem)
1198    --    Present in string literals, set if any wide character (i.e. character
1199    --    code outside the Wide_Character range) appears in the string. Used to
1200    --    implement pragma preference rules.
1201
1202    --  Hidden_By_Use_Clause (Elist4-Sem)
1203    --     An entity list present in use clauses that appear within
1204    --     instantiations. For the resolution of local entities, entities
1205    --     introduced by these use clauses have priority over global ones, and
1206    --     outer entities must be explicitly hidden/restored on exit.
1207
1208    --  Implicit_With (Flag16-Sem)
1209    --    This flag is set in the N_With_Clause node that is implicitly
1210    --    generated for runtime units that are loaded by the expander, and also
1211    --    for package System, if it is loaded implicitly by a use of the
1212    --    'Address or 'Tag attribute. ???There are other implicit with clauses
1213    --    as well.
1214
1215    --  Import_Interface_Present (Flag16-Sem)
1216    --     This flag is set in an Interface or Import pragma if a matching
1217    --     pragma of the other kind is also present. This is used to avoid
1218    --     generating some unwanted error messages.
1219
1220    --  Includes_Infinities (Flag11-Sem)
1221    --    This flag is present in N_Range nodes. It is set for the range of
1222    --    unconstrained float types defined in Standard, which include not only
1223    --    the given range of values, but also legitimately can include infinite
1224    --    values. This flag is false for any float type for which an explicit
1225    --    range is given by the programmer, even if that range is identical to
1226    --    the range for Float.
1227
1228    --  Inherited_Discriminant (Flag13-Sem)
1229    --    This flag is present in N_Component_Association nodes. It indicates
1230    --    that a given component association in an extension aggregate is the
1231    --    value obtained from a constraint on an ancestor. Used to prevent
1232    --    double expansion when the aggregate has expansion delayed.
1233
1234    --  Instance_Spec (Node5-Sem)
1235    --    This field is present in generic instantiation nodes, and also in
1236    --    formal package declaration nodes (formal package declarations are
1237    --    treated in a manner very similar to package instantiations). It points
1238    --    to the node for the spec of the instance, inserted as part of the
1239    --    semantic processing for instantiations in Sem_Ch12.
1240
1241    --  Is_Accessibility_Actual (Flag12-Sem)
1242    --    Present in N_Parameter_Association nodes. True if the parameter is
1243    --    an extra actual that carries the accessibility level of the actual
1244    --    for an access parameter, in a function that dispatches on result and
1245    --    is called in a dispatching context. Used to prevent a formal/actual
1246    --    mismatch when the call is rewritten as a dispatching call.
1247
1248    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1249    --    A flag set in a Block_Statement node to indicate that it is the
1250    --    expansion of an asynchronous entry call. Such a block needs cleanup
1251    --    handler to assure that the call is cancelled.
1252
1253    --  Is_Boolean_Aspect (Flag16-Sem)
1254    --    Present in N_Aspect_Specification node. Set if the aspect is for a
1255    --    boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1256
1257    --  Is_Component_Left_Opnd  (Flag13-Sem)
1258    --  Is_Component_Right_Opnd (Flag14-Sem)
1259    --    Present in concatenation nodes, to indicate that the corresponding
1260    --    operand is of the component type of the result. Used in resolving
1261    --    concatenation nodes in instances.
1262
1263    --  Is_Delayed_Aspect (Flag14-Sem)
1264    --    Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1265    --    come from aspect specifications, where the evaluation of the aspect
1266    --    must be delayed to the freeze point. This flag is also set True in
1267    --    the corresponding N_Aspect_Specification node.
1268
1269    --  Is_Controlling_Actual (Flag16-Sem)
1270    --    This flag is set on in an expression that is a controlling argument in
1271    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1272    --    details of its use.
1273
1274    --  Is_Dynamic_Coextension (Flag18-Sem)
1275    --    Present in allocator nodes, to indicate that this is an allocator
1276    --    for an access discriminant of a dynamically allocated object. The
1277    --    coextension must be deallocated and finalized at the same time as
1278    --    the enclosing object.
1279
1280    --  Is_Entry_Barrier_Function (Flag8-Sem)
1281    --    This flag is set in an N_Subprogram_Body node which is the expansion
1282    --    of an entry barrier from a protected entry body. It is used for the
1283    --    circuitry checking for incorrect use of Current_Task.
1284
1285    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1286    --    This flag is set in an N_Function_Call node to indicate that the extra
1287    --    actuals to support a build-in-place style of call have been added to
1288    --    the call.
1289
1290    --  Is_In_Discriminant_Check (Flag11-Sem)
1291    --    This flag is present in a selected component, and is used to indicate
1292    --    that the reference occurs within a discriminant check. The
1293    --    significance is that optimizations based on assuming that the
1294    --    discriminant check has a correct value cannot be performed in this
1295    --    case (or the discriminant check may be optimized away!)
1296
1297    --  Is_Machine_Number (Flag11-Sem)
1298    --    This flag is set in an N_Real_Literal node to indicate that the value
1299    --    is a machine number. This avoids some unnecessary cases of converting
1300    --    real literals to machine numbers.
1301
1302    --  Is_Null_Loop (Flag16-Sem)
1303    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1304    --    can be determined to be null at compile time. This is used to remove
1305    --    the loop entirely at expansion time.
1306
1307    --  Is_Overloaded (Flag5-Sem)
1308    --    A flag present in all expression nodes. Used temporarily during
1309    --    overloading determination. The setting of this flag is not relevant
1310    --    once overloading analysis is complete.
1311
1312    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1313    --    A flag present only in N_Op_Expon nodes. It is set when the
1314    --    exponentiation is of the form 2 ** N, where the type of N is an
1315    --    unsigned integral subtype whose size does not exceed the size of
1316    --    Standard_Integer (i.e. a type that can be safely converted to
1317    --    Natural), and the exponentiation appears as the right operand of an
1318    --    integer multiplication or an integer division where the dividend is
1319    --    unsigned. It is also required that overflow checking is off for both
1320    --    the exponentiation and the multiply/divide node. If this set of
1321    --    conditions holds, and the flag is set, then the division or
1322    --    multiplication can be (and is) converted to a shift.
1323
1324    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1325    --    A flag set in a Subprogram_Body block to indicate that it is the
1326    --    implementation of a protected subprogram. Such a body needs cleanup
1327    --    handler to make sure that the associated protected object is unlocked
1328    --    when the subprogram completes.
1329
1330    --  Is_Static_Coextension (Flag14-Sem)
1331    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1332    --    of an object allocated on the stack rather than the heap.
1333
1334    --  Is_Static_Expression (Flag6-Sem)
1335    --    Indicates that an expression is a static expression (RM 4.9). See spec
1336    --    of package Sem_Eval for full details on the use of this flag.
1337
1338    --  Is_Subprogram_Descriptor (Flag16-Sem)
1339    --    Present in N_Object_Declaration, and set only for the object
1340    --    declaration generated for a subprogram descriptor in fast exception
1341    --    mode. See Exp_Ch11 for details of use.
1342
1343    --  Is_Task_Allocation_Block (Flag6-Sem)
1344    --    A flag set in a Block_Statement node to indicate that it is the
1345    --    expansion of a task allocator, or the allocator of an object
1346    --    containing tasks. Such a block requires a cleanup handler to call
1347    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1348    --    allocated but not activated when the allocator completes abnormally.
1349
1350    --  Is_Task_Master (Flag5-Sem)
1351    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1352    --    indicate that the construct is a task master (i.e. has declared tasks
1353    --    or declares an access to a task type).
1354
1355    --  Itype (Node1-Sem)
1356    --    Used in N_Itype_Reference node to reference an itype for which it is
1357    --    important to ensure that it is defined. See description of this node
1358    --    for further details.
1359
1360    --  Kill_Range_Check (Flag11-Sem)
1361    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1362    --    result should not be subjected to range checks. This is used for the
1363    --    implementation of Normalize_Scalars.
1364
1365    --  Label_Construct (Node2-Sem)
1366    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1367    --    N_Block_Statement or N_Loop_Statement node to which the label
1368    --    declaration applies. This is not currently used in the compiler
1369    --    itself, but it is useful in the implementation of ASIS queries.
1370    --    This field is left empty for the special labels generated as part
1371    --    of expanding raise statements with a local exception handler.
1372
1373    --  Library_Unit (Node4-Sem)
1374    --    In a stub node, Library_Unit points to the compilation unit node of
1375    --    the corresponding subunit.
1376    --
1377    --    In a with clause node, Library_Unit points to the spec of the with'ed
1378    --    unit.
1379    --
1380    --    In a compilation unit node, the usage depends on the unit type:
1381    --
1382    --     For a library unit body, Library_Unit points to the compilation unit
1383    --     node of the corresponding spec, unless it's a subprogram body with
1384    --     Acts_As_Spec set, in which case it points to itself.
1385    --
1386    --     For a spec, Library_Unit points to the compilation unit node of the
1387    --     corresponding body, if present. The body will be present if the spec
1388    --     is or contains generics that we needed to instantiate. Similarly, the
1389    --     body will be present if we needed it for inlining purposes. Thus, if
1390    --     we have a spec/body pair, both of which are present, they point to
1391    --     each other via Library_Unit.
1392    --
1393    --     For a subunit, Library_Unit points to the compilation unit node of
1394    --     the parent body.
1395    --
1396    --    Note that this field is not used to hold the parent pointer for child
1397    --    unit (which might in any case need to use it for some other purpose as
1398    --    described above). Instead for a child unit, implicit with's are
1399    --    generated for all parents.
1400
1401    --  Local_Raise_Statements (Elist1)
1402    --    This field is present in exception handler nodes. It is set to
1403    --    No_Elist in the normal case. If there is at least one raise statement
1404    --    which can potentially be handled as a local raise, then this field
1405    --    points to a list of raise nodes, which are calls to a routine to raise
1406    --    an exception. These are raise nodes which can be optimized into gotos
1407    --    if the handler turns out to meet the conditions which permit this
1408    --    transformation. Note that this does NOT include instances of the
1409    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1410    --    handled by the back end (using the N_Push/N_Pop mechanism).
1411
1412    --  Loop_Actions (List2-Sem)
1413    --    A list present in Component_Association nodes in array aggregates.
1414    --    Used to collect actions that must be executed within the loop because
1415    --    they may need to be evaluated anew each time through.
1416
1417    --  Limited_View_Installed (Flag18-Sem)
1418    --    Present in With_Clauses and in package specifications. If set on
1419    --    with_clause, it indicates that this clause has created the current
1420    --    limited view of the designated package. On a package specification, it
1421    --    indicates that the limited view has already been created because the
1422    --    package is mentioned in a limited_with_clause in the closure of the
1423    --    unit being compiled.
1424
1425    --  Local_Raise_Not_OK (Flag7-Sem)
1426    --    Present in N_Exception_Handler nodes. Set if the handler contains
1427    --    a construct (reraise statement, or call to subprogram in package
1428    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1429    --    for a local raise (one that could otherwise be converted to a goto).
1430
1431    --  Must_Be_Byte_Aligned (Flag14-Sem)
1432    --    This flag is present in N_Attribute_Reference nodes. It can be set
1433    --    only for the Address and Unrestricted_Access attributes. If set it
1434    --    means that the object for which the address/access is given must be on
1435    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1436    --    of the object is to be made before taking the address (this copy is in
1437    --    the current scope on the stack frame). This is used for certain cases
1438    --    of code generated by the expander that passes parameters by address.
1439    --
1440    --    The reason the copy is not made by the front end is that the back end
1441    --    has more information about type layout and may be able to (but is not
1442    --    guaranteed to) prevent making unnecessary copies.
1443
1444    --  Must_Not_Freeze (Flag8-Sem)
1445    --    A flag present in all expression nodes. Normally expressions cause
1446    --    freezing as described in the RM. If this flag is set, then this is
1447    --    inhibited. This is used by the analyzer and expander to label nodes
1448    --    that are created by semantic analysis or expansion and which must not
1449    --    cause freezing even though they normally would. This flag is also
1450    --    present in an N_Subtype_Indication node, since we also use these in
1451    --    calls to Freeze_Expression.
1452
1453    --  Next_Entity (Node2-Sem)
1454    --    Present in defining identifiers, defining character literals and
1455    --    defining operator symbols (i.e. in all entities). The entities of a
1456    --    scope are chained, and this field is used as the forward pointer for
1457    --    this list. See Einfo for further details.
1458
1459    --  Next_Exit_Statement (Node3-Sem)
1460    --    Present in N_Exit_Statement nodes. The exit statements for a loop are
1461    --    chained (in reverse order of appearance) from the First_Exit_Statement
1462    --    field of the E_Loop entity for the loop. Next_Exit_Statement points to
1463    --    the next entry on this chain (Empty = end of list).
1464
1465    --  Next_Implicit_With (Node3-Sem)
1466    --    Present in N_With_Clause. Part of a chain of with_clauses generated
1467    --    in rtsfind to indicate implicit dependencies on predefined units. Used
1468    --    to prevent multiple with_clauses for the same unit in a given context.
1469    --    A postorder traversal of the tree whose nodes are units and whose
1470    --    links are with_clauses defines the order in which Inspector must
1471    --    examine a compiled unit and its full context. This ordering ensures
1472    --    that any subprogram call is examined after the subprogram declaration
1473    --    has been seen.
1474
1475    --  Next_Named_Actual (Node4-Sem)
1476    --    Present in parameter association node. Set during semantic analysis to
1477    --    point to the next named parameter, where parameters are ordered by
1478    --    declaration order (as opposed to the actual order in the call, which
1479    --    may be different due to named associations). Not that this field
1480    --    points to the explicit actual parameter itself, not to the
1481    --    N_Parameter_Association node (its parent).
1482
1483    --  Next_Pragma (Node1-Sem)
1484    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1485    --    nodes. Currently used for two purposes:
1486    --
1487    --      Create a list of linked Check_Policy pragmas. The head of this list
1488    --      is stored in Opt.Check_Policy_List (which has further details).
1489    --
1490    --      Used by processing for Pre/Postcondition pragmas to store a list of
1491    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1492    --      details).
1493
1494    --  Next_Rep_Item (Node5-Sem)
1495    --    Present in pragma nodes, attribute definition nodes, enumeration rep
1496    --    clauses, record rep clauses, aspect specification nodes. Used to link
1497    --    representation items that apply to an entity. See full description of
1498    --    First_Rep_Item field in Einfo for further details.
1499
1500    --  Next_Use_Clause (Node3-Sem)
1501    --    While use clauses are active during semantic processing, they are
1502    --    chained from the scope stack entry, using Next_Use_Clause as a link
1503    --    pointer, with Empty marking the end of the list. The head pointer is
1504    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1505    --    processing (i.e. when Gigi sees the tree, the contents of this field
1506    --    is undefined and should not be read).
1507
1508    --  No_Ctrl_Actions (Flag7-Sem)
1509    --    Present in N_Assignment_Statement to indicate that no finalize nor
1510    --    adjust should take place on this assignment even though the rhs is
1511    --    controlled. This is used in init procs and aggregate expansions where
1512    --    the generated assignments are more initialisations than real
1513    --    assignments.
1514
1515    --  No_Elaboration_Check (Flag14-Sem)
1516    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1517    --    that no elaboration check is needed on the call, because it appears in
1518    --    the context of a local Suppress pragma. This is used on calls within
1519    --    task bodies, where the actual elaboration checks are applied after
1520    --    analysis, when the local scope stack is not present.
1521
1522    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1523    --    Present in N_With_Clause nodes. Set if the with clause is on the
1524    --    package or subprogram spec where the main unit is the corresponding
1525    --    body, and no entities of the with'ed unit are referenced by the spec
1526    --    (an entity may still be referenced in the body, so this flag is used
1527    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1528    --    full details)
1529
1530    --  No_Initialization (Flag13-Sem)
1531    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1532    --    object must not be initialized (by Initialize or call to an init
1533    --    proc). This is needed for controlled aggregates. When the Object
1534    --    declaration has an expression, this flag means that this expression
1535    --    should not be taken into account (needed for in place initialization
1536    --    with aggregates).
1537
1538    --  No_Truncation (Flag17-Sem)
1539    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1540    --    only if the RM_Size of the source is greater than the RM_Size of the
1541    --    target for scalar operands. Normally in such a case we truncate some
1542    --    higher order bits of the source, and then sign/zero extend the result
1543    --    to form the output value. But if this flag is set, then we do not do
1544    --    any truncation, so for example, if an 8 bit input is converted to 5
1545    --    bit result which is in fact stored in 8 bits, then the high order
1546    --    three bits of the target result will be copied from the source. This
1547    --    is used for properly setting out of range values for use by pragmas
1548    --    Initialize_Scalars and Normalize_Scalars.
1549
1550    --  Original_Discriminant (Node2-Sem)
1551    --    Present in identifiers. Used in references to discriminants that
1552    --    appear in generic units. Because the names of the discriminants may be
1553    --    different in an instance, we use this field to recover the position of
1554    --    the discriminant in the original type, and replace it with the
1555    --    discriminant at the same position in the instantiated type.
1556
1557    --  Original_Entity (Node2-Sem)
1558    --    Present in numeric literals. Used to denote the named number that has
1559    --    been constant-folded into the given literal. If literal is from
1560    --    source, or the result of some other constant-folding operation, then
1561    --    Original_Entity is empty. This field is needed to handle properly
1562    --    named numbers in generic units, where the Associated_Node field
1563    --    interferes with the Entity field, making it impossible to preserve the
1564    --    original entity at the point of instantiation (ASIS problem).
1565
1566    --  Others_Discrete_Choices (List1-Sem)
1567    --    When a case statement or variant is analyzed, the semantic checks
1568    --    determine the actual list of choices that correspond to an others
1569    --    choice. This list is materialized for later use by the expander and
1570    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1571    --    this materialized list of choices, which is in standard format for a
1572    --    list of discrete choices, except that of course it cannot contain an
1573    --    N_Others_Choice entry.
1574
1575    --  Parameter_List_Truncated (Flag17-Sem)
1576    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1577    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1578    --    a result of a First_Optional_Parameter specification in an
1579    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1580    --    The truncation is done by the expander by removing trailing parameters
1581    --    from the argument list, in accordance with the set of rules allowing
1582    --    such parameter removal. In particular, parameters can be removed
1583    --    working from the end of the parameter list backwards up to and
1584    --    including the entry designated by First_Optional_Parameter in the
1585    --    Import pragma. Parameters can be removed if they are implicit and the
1586    --    default value is a known-at-compile-time value, including the use of
1587    --    the Null_Parameter attribute, or if explicit parameter values are
1588    --    present that match the corresponding defaults.
1589
1590    --  Parent_Spec (Node4-Sem)
1591    --    For a library unit that is a child unit spec (package or subprogram
1592    --    declaration, generic declaration or instantiation, or library level
1593    --    rename, this field points to the compilation unit node for the parent
1594    --    package specification. This field is Empty for library bodies (the
1595    --    parent spec in this case can be found from the corresponding spec).
1596
1597    --  Premature_Use (Node5-Sem)
1598    --    Present in N_Incomplete_Type_Declaration node. Used for improved
1599    --    error diagnostics: if there is a premature usage of an incomplete
1600    --    type, a subsequently generated error message indicates the position
1601    --    of its full declaration.
1602
1603    --  Present_Expr (Uint3-Sem)
1604    --    Present in an N_Variant node. This has a meaningful value only after
1605    --    Gigi has back annotated the tree with representation information. At
1606    --    this point, it contains a reference to a gcc expression that depends
1607    --    on the values of one or more discriminants. Give a set of discriminant
1608    --    values, this expression evaluates to False (zero) if variant is not
1609    --    present, and True (non-zero) if it is present. See unit Repinfo for
1610    --    further details on gigi back annotation. This field is used during
1611    --    ASIS processing (data decomposition annex) to determine if a field is
1612    --    present or not.
1613
1614    --  Print_In_Hex (Flag13-Sem)
1615    --    Set on an N_Integer_Literal node to indicate that the value should be
1616    --    printed in hexadecimal in the sprint listing. Has no effect on
1617    --    legality or semantics of program, only on the displayed output. This
1618    --    is used to clarify output from the packed array cases.
1619
1620    --  Procedure_To_Call (Node2-Sem)
1621    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1622    --    and N_Extended_Return_Statement nodes. References the entity for the
1623    --    declaration of the procedure to be called to accomplish the required
1624    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1625    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1626    --    allocating the return value), and for the Deallocate procedure in the
1627    --    case of N_Free_Statement.
1628
1629    --  Raises_Constraint_Error (Flag7-Sem)
1630    --    Set on an expression whose evaluation will definitely fail constraint
1631    --    error check. In the case of static expressions, this flag must be set
1632    --    accurately (and if it is set, the expression is typically illegal
1633    --    unless it appears as a non-elaborated branch of a short-circuit form).
1634    --    For a non-static expression, this flag may be set whenever an
1635    --    expression (e.g. an aggregate) is known to raise constraint error. If
1636    --    set, the expression definitely will raise CE if elaborated at runtime.
1637    --    If not set, the expression may or may not raise CE. In other words, on
1638    --    static expressions, the flag is set accurately, on non-static
1639    --    expressions it is set conservatively.
1640
1641    --  Redundant_Use (Flag13-Sem)
1642    --    Present in nodes that can appear as an operand in a use clause or use
1643    --    type clause (identifiers, expanded names, attribute references). Set
1644    --    to indicate that a use is redundant (and therefore need not be undone
1645    --    on scope exit).
1646
1647    --  Renaming_Exception (Node2-Sem)
1648    --    Present in N_Exception_Declaration node. Used to point back to the
1649    --    exception renaming for an exception declared within a subprogram.
1650    --    What happens is that an exception declared in a subprogram is moved
1651    --    to the library level with a unique name, and the original exception
1652    --    becomes a renaming. This link from the library level exception to the
1653    --    renaming declaration allows registering of the proper exception name.
1654
1655    --  Return_Statement_Entity (Node5-Sem)
1656    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1657    --    Points to an E_Return_Statement representing the return statement.
1658
1659    --  Return_Object_Declarations (List3)
1660    --    Present in N_Extended_Return_Statement. Points to a list initially
1661    --    containing a single N_Object_Declaration representing the return
1662    --    object. We use a list (instead of just a pointer to the object decl)
1663    --    because Analyze wants to insert extra actions on this list.
1664
1665    --  Rounded_Result (Flag18-Sem)
1666    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1667    --    Used in the fixed-point cases to indicate that the result must be
1668    --    rounded as a result of the use of the 'Round attribute. Also used for
1669    --    integer N_Op_Divide nodes to indicate that the result should be
1670    --    rounded to the nearest integer (breaking ties away from zero), rather
1671    --    than truncated towards zero as usual. These rounded integer operations
1672    --    are the result of expansion of rounded fixed-point divide, conversion
1673    --    and multiplication operations.
1674
1675    --  SCIL_Entity (Node4-Sem)
1676    --    Present in SCIL nodes. Used to reference the tagged type associated
1677    --    with the SCIL node.
1678
1679    --  SCIL_Controlling_Tag (Node5-Sem)
1680    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1681    --    controlling tag of a dispatching call.
1682
1683    --  SCIL_Tag_Value (Node5-Sem)
1684    --    Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1685    --    value that is being tested.
1686
1687    --  SCIL_Target_Prim (Node2-Sem)
1688    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1689    --    type primitive associated with the SCIL node.
1690
1691    --  Scope (Node3-Sem)
1692    --    Present in defining identifiers, defining character literals and
1693    --    defining operator symbols (i.e. in all entities). The entities of a
1694    --    scope all use this field to reference the corresponding scope entity.
1695    --    See Einfo for further details.
1696
1697    --  Shift_Count_OK (Flag4-Sem)
1698    --    A flag present in shift nodes to indicate that the shift count is
1699    --    known to be in range, i.e. is in the range from zero to word length
1700    --    minus one. If this flag is not set, then the shift count may be
1701    --    outside this range, i.e. larger than the word length, and the code
1702    --    must ensure that such shift counts give the appropriate result.
1703
1704    --  Source_Type (Node1-Sem)
1705    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1706    --    source type entity for the unchecked conversion instantiation
1707    --    which gigi must do size validation for.
1708
1709    --  Split_PPC (Flag17)
1710    --    When a Pre or Post aspect specification is processed, it is broken
1711    --    into AND THEN sections. The left most section has Split_PPC set to
1712    --    False, indicating that it is the original specification (e.g. for
1713    --    posting errors). For other sections, Split_PPC is set to True.
1714    --    This flag is set in both the N_Aspect_Specification node itself,
1715    --    and in the pragma which is generated from this node.
1716
1717    --  Static_Processing_OK (Flag4-Sem)
1718    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1719    --    flag is set, the full value of the aggregate can be determined at
1720    --    compile time and the aggregate can be passed as is to the back-end.
1721    --    In this event it is irrelevant whether this flag is set or not.
1722    --    However, if the flag Compile_Time_Known_Aggregate is not set but
1723    --    Static_Processing_OK is set, the aggregate can (but need not) be
1724    --    converted into a compile time known aggregate by the expander. See
1725    --    Sem_Aggr for the specific conditions under which an aggregate has its
1726    --    Static_Processing_OK flag set.
1727
1728    --  Storage_Pool (Node1-Sem)
1729    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1730    --    and N_Extended_Return_Statement nodes. References the entity for the
1731    --    storage pool to be used for the allocate or free call or for the
1732    --    allocation of the returned value from function. Empty indicates that
1733    --    the global default pool is to be used. Note that in the case
1734    --    of a return statement, this field is set only if the function returns
1735    --    value of a type whose size is not known at compile time on the
1736    --    secondary stack.
1737
1738    --  Suppress_Assignment_Checks (Flag18-Sem)
1739    --    Used in generated N_Assignment_Statement nodes to suppress predicate
1740    --    and range checks in cases where the generated code knows that the
1741    --    value being assigned is in range and satisfies any predicate. Also
1742    --    can be set in N_Object_Declaration nodes, to similarly suppress any
1743    --    checks on the initializing value.
1744
1745    --  Suppress_Loop_Warnings (Flag17-Sem)
1746    --    Used in N_Loop_Statement node to indicate that warnings within the
1747    --    body of the loop should be suppressed. This is set when the range
1748    --    of a FOR loop is known to be null, or is probably null (loop would
1749    --    only execute if invalid values are present).
1750
1751    --  Target_Type (Node2-Sem)
1752    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1753    --    type entity for the unchecked conversion instantiation which gigi must
1754    --    do size validation for.
1755
1756    --  Then_Actions (List3-Sem)
1757    --    This field is present in conditional expression nodes. During code
1758    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1759    --    actions at an appropriate place in the tree to get elaborated at the
1760    --    right time. For conditional expressions, we have to be sure that the
1761    --    actions for the Then branch are only elaborated if the condition is
1762    --    True. The Then_Actions field is used as a temporary parking place for
1763    --    these actions. The final tree is always rewritten to eliminate the
1764    --    need for this field, so in the tree passed to Gigi, this field is
1765    --    always set to No_List.
1766
1767    --  Treat_Fixed_As_Integer (Flag14-Sem)
1768    --    This flag appears in operator nodes for divide, multiply, mod and rem
1769    --    on fixed-point operands. It indicates that the operands are to be
1770    --    treated as integer values, ignoring small values. This flag is only
1771    --    set as a result of expansion of fixed-point operations. Typically a
1772    --    fixed-point multiplication in the source generates subsidiary
1773    --    multiplication and division operations that work with the underlying
1774    --    integer values and have this flag set. Note that this flag is not
1775    --    needed on other arithmetic operations (add, neg, subtract etc.) since
1776    --    in these cases it is always the case that fixed is treated as integer.
1777    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1778    --    leave such nodes alone, and whoever makes them must set the correct
1779    --    Etype value.
1780
1781    --  TSS_Elist (Elist3-Sem)
1782    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1783    --    entries for each TSS (type support subprogram) associated with the
1784    --    frozen type. The elements of the list are the entities for the
1785    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1786    --    if there are no type support subprograms for the type or if the freeze
1787    --    node is not for a type.
1788
1789    --  Unreferenced_In_Spec (Flag7-Sem)
1790    --    Present in N_With_Clause nodes. Set if the with clause is on the
1791    --    package or subprogram spec where the main unit is the corresponding
1792    --    body, and is not referenced by the spec (it may still be referenced by
1793    --    the body, so this flag is used to generate the proper message (see
1794    --    Sem_Util.Check_Unused_Withs for details)
1795
1796    --  Used_Operations (Elist5-Sem)
1797    --    Present in N_Use_Type_Clause nodes. Holds the list of operations that
1798    --    are made potentially use-visible by the clause. Simplifies processing
1799    --    on exit from the scope of the use_type_clause, in particular in the
1800    --    case of Use_All_Type, when those operations several scopes.
1801
1802    --  Was_Originally_Stub (Flag13-Sem)
1803    --    This flag is set in the node for a proper body that replaces stub.
1804    --    During the analysis procedure, stubs in some situations get rewritten
1805    --    by the corresponding bodies, and we set this flag to remember that
1806    --    this happened. Note that it is not good enough to rely on the use of
1807    --    Original_Node here because of the case of nested instantiations where
1808    --    the substituted node can be copied.
1809
1810    --  Withed_Body (Node1-Sem)
1811    --    Present in N_With_Clause nodes. Set if the unit in whose context
1812    --    the with_clause appears instantiates a generic contained in the
1813    --    library unit of the with_clause and as a result loads its body.
1814    --    Used for a more precise unit traversal for CodePeer.
1815
1816    --------------------------------------------------
1817    -- Note on Use of End_Label and End_Span Fields --
1818    --------------------------------------------------
1819
1820    --  Several constructs have end lines:
1821
1822    --    Loop Statement             end loop [loop_IDENTIFIER];
1823    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1824    --    Task Definition            end [task_IDENTIFIER]
1825    --    Protected Definition       end [protected_IDENTIFIER]
1826    --    Protected Body             end [protected_IDENTIFIER]
1827
1828    --    Block Statement            end [block_IDENTIFIER];
1829    --    Subprogram Body            end [DESIGNATOR];
1830    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1831    --    Task Body                  end [task_IDENTIFIER];
1832    --    Accept Statement           end [entry_IDENTIFIER]];
1833    --    Entry Body                 end [entry_IDENTIFIER];
1834
1835    --    If Statement               end if;
1836    --    Case Statement             end case;
1837
1838    --    Record Definition          end record;
1839    --    Enumeration Definition     );
1840
1841    --  The End_Label and End_Span fields are used to mark the locations of
1842    --  these lines, and also keep track of the label in the case where a label
1843    --  is present.
1844
1845    --  For the first group above, the End_Label field of the corresponding node
1846    --  is used to point to the label identifier. In the case where there is no
1847    --  label in the source, the parser supplies a dummy identifier (with
1848    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1849    --  marks the location of the token following the END token.
1850
1851    --  For the second group, the use of End_Label is similar, but the End_Label
1852    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1853    --  simply because in some cases there is no room in the parent node.
1854
1855    --  For the third group, there is never any label, and instead of using
1856    --  End_Label, we use the End_Span field which gives the location of the
1857    --  token following END, relative to the starting Sloc of the construct,
1858    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1859    --  following the End_Label.
1860
1861    --  The record definition case is handled specially, we treat it as though
1862    --  it required an optional label which is never present, and so the parser
1863    --  always builds a dummy identifier with Comes From Source set False. The
1864    --  reason we do this, rather than using End_Span in this case, is that we
1865    --  want to generate a cross-ref entry for the end of a record, since it
1866    --  represents a scope for name declaration purposes.
1867
1868    --  The enumeration definition case is handled in an exactly similar manner,
1869    --  building a dummy identifier to get a cross-reference.
1870
1871    --  Note: the reason we store the difference as a Uint, instead of storing
1872    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
1873    --  distinguished from other types of values, and we count on all general
1874    --  use fields being self describing. To make things easier for clients,
1875    --  note that we provide function End_Location, and procedure
1876    --  Set_End_Location to allow access to the logical value (which is the
1877    --  Source_Ptr value for the end token).
1878
1879    ---------------------
1880    -- Syntactic Nodes --
1881    ---------------------
1882
1883       ---------------------
1884       -- 2.3  Identifier --
1885       ---------------------
1886
1887       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1888       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1889
1890       --  An IDENTIFIER shall not be a reserved word
1891
1892       --  In the Ada grammar identifiers are the bottom level tokens which have
1893       --  very few semantics. Actual program identifiers are direct names. If
1894       --  we were being 100% honest with the grammar, then we would have a node
1895       --  called N_Direct_Name which would point to an identifier. However,
1896       --  that's too many extra nodes, so we just use the N_Identifier node
1897       --  directly as a direct name, and it contains the expression fields and
1898       --  Entity field that correspond to its use as a direct name. In those
1899       --  few cases where identifiers appear in contexts where they are not
1900       --  direct names (pragmas, pragma argument associations, attribute
1901       --  references and attribute definition clauses), the Chars field of the
1902       --  node contains the Name_Id for the identifier name.
1903
1904       --  Note: in GNAT, a reserved word can be treated as an identifier in two
1905       --  cases. First, an incorrect use of a reserved word as an identifier is
1906       --  diagnosed and then treated as a normal identifier. Second, an
1907       --  attribute designator of the form of a reserved word (access, delta,
1908       --  digits, range) is treated as an identifier.
1909
1910       --  Note: The set of letters that is permitted in an identifier depends
1911       --  on the character set in use. See package Csets for full details.
1912
1913       --  N_Identifier
1914       --  Sloc points to identifier
1915       --  Chars (Name1) contains the Name_Id for the identifier
1916       --  Entity (Node4-Sem)
1917       --  Associated_Node (Node4-Sem)
1918       --  Original_Discriminant (Node2-Sem)
1919       --  Redundant_Use (Flag13-Sem)
1920       --  Has_Private_View (Flag11-Sem) (set in generic units)
1921       --  plus fields for expression
1922
1923       --------------------------
1924       -- 2.4  Numeric Literal --
1925       --------------------------
1926
1927       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1928
1929       ----------------------------
1930       -- 2.4.1  Decimal Literal --
1931       ----------------------------
1932
1933       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1934
1935       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1936
1937       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1938
1939       --  Decimal literals appear in the tree as either integer literal nodes
1940       --  or real literal nodes, depending on whether a period is present.
1941
1942       --  Note: literal nodes appear as a result of direct use of literals
1943       --  in the source program, and also as the result of evaluating
1944       --  expressions at compile time. In the latter case, it is possible
1945       --  to construct real literals that have no syntactic representation
1946       --  using the standard literal format. Such literals are listed by
1947       --  Sprint using the notation [numerator / denominator].
1948
1949       --  Note: the value of an integer literal node created by the front end
1950       --  is never outside the range of values of the base type. However, it
1951       --  can be the case that the created value is outside the range of the
1952       --  particular subtype. This happens in the case of integer overflows
1953       --  with checks suppressed.
1954
1955       --  N_Integer_Literal
1956       --  Sloc points to literal
1957       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1958       --  has been constant-folded into its literal value.
1959       --  Intval (Uint3) contains integer value of literal
1960       --  plus fields for expression
1961       --  Print_In_Hex (Flag13-Sem)
1962
1963       --  N_Real_Literal
1964       --  Sloc points to literal
1965       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1966       --  has been constant-folded into its literal value.
1967       --  Realval (Ureal3) contains real value of literal
1968       --  Corresponding_Integer_Value (Uint4-Sem)
1969       --  Is_Machine_Number (Flag11-Sem)
1970       --  plus fields for expression
1971
1972       --------------------------
1973       -- 2.4.2  Based Literal --
1974       --------------------------
1975
1976       --  BASED_LITERAL ::=
1977       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1978
1979       --  BASE ::= NUMERAL
1980
1981       --  BASED_NUMERAL ::=
1982       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1983
1984       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1985
1986       --  Based literals appear in the tree as either integer literal nodes
1987       --  or real literal nodes, depending on whether a period is present.
1988
1989       ----------------------------
1990       -- 2.5  Character Literal --
1991       ----------------------------
1992
1993       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1994
1995       --  N_Character_Literal
1996       --  Sloc points to literal
1997       --  Chars (Name1) contains the Name_Id for the identifier
1998       --  Char_Literal_Value (Uint2) contains the literal value
1999       --  Entity (Node4-Sem)
2000       --  Associated_Node (Node4-Sem)
2001       --  Has_Private_View (Flag11-Sem) set in generic units.
2002       --  plus fields for expression
2003
2004       --  Note: the Entity field will be missing (set to Empty) for character
2005       --  literals whose type is Standard.Wide_Character or Standard.Character
2006       --  or a type derived from one of these two. In this case the character
2007       --  literal stands for its own coding. The reason we take this irregular
2008       --  short cut is to avoid the need to build lots of junk defining
2009       --  character literal nodes.
2010
2011       -------------------------
2012       -- 2.6  String Literal --
2013       -------------------------
2014
2015       --  STRING LITERAL ::= "{STRING_ELEMENT}"
2016
2017       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
2018       --  single GRAPHIC_CHARACTER other than a quotation mark.
2019       --
2020       --  Is_Folded_In_Parser is True if the parser created this literal by
2021       --  folding a sequence of "&" operators. For example, if the source code
2022       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2023       --  is set. This flag is needed because the parser doesn't know about
2024       --  visibility, so the folded result might be wrong, and semantic
2025       --  analysis needs to check for that.
2026
2027       --  N_String_Literal
2028       --  Sloc points to literal
2029       --  Strval (Str3) contains Id of string value
2030       --  Has_Wide_Character (Flag11-Sem)
2031       --  Has_Wide_Wide_Character (Flag13-Sem)
2032       --  Is_Folded_In_Parser (Flag4)
2033       --  plus fields for expression
2034
2035       ------------------
2036       -- 2.7  Comment --
2037       ------------------
2038
2039       --  A COMMENT starts with two adjacent hyphens and extends up to the
2040       --  end of the line. A COMMENT may appear on any line of a program.
2041
2042       --  Comments are skipped by the scanner and do not appear in the tree.
2043       --  It is possible to reconstruct the position of comments with respect
2044       --  to the elements of the tree by using the source position (Sloc)
2045       --  pointers that appear in every tree node.
2046
2047       -----------------
2048       -- 2.8  Pragma --
2049       -----------------
2050
2051       --  PRAGMA ::= pragma IDENTIFIER
2052       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2053
2054       --  Note that a pragma may appear in the tree anywhere a declaration
2055       --  or a statement may appear, as well as in some other situations
2056       --  which are explicitly documented.
2057
2058       --  N_Pragma
2059       --  Sloc points to PRAGMA
2060       --  Next_Pragma (Node1-Sem)
2061       --  Pragma_Argument_Associations (List2) (set to No_List if none)
2062       --  Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2063       --  Pragma_Identifier (Node4)
2064       --  Next_Rep_Item (Node5-Sem)
2065       --  From_Aspect_Specification (Flag13-Sem)
2066       --  Is_Delayed_Aspect (Flag14-Sem)
2067       --  Import_Interface_Present (Flag16-Sem)
2068       --  Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2069       --  Class_Present (Flag6) set if from Aspect with 'Class
2070
2071       --  Note: we should have a section on what pragmas are passed on to
2072       --  the back end to be processed. This section should note that pragma
2073       --  Psect_Object is always converted to Common_Object, but there are
2074       --  undoubtedly many other similar notes required ???
2075
2076       --  Note: a utility function Pragma_Name may be applied to pragma nodes
2077       --  to conveniently obtain the Chars field of the Pragma_Identifier.
2078
2079       --  Note: if From_Aspect_Specification is set, then Sloc points to the
2080       --  aspect name, as does the Pragma_Identifier. In this case if the
2081       --  pragma has a local name argument (such as pragma Inline), it is
2082       --  resolved to point to the specific entity affected by the pragma.
2083
2084       --------------------------------------
2085       -- 2.8  Pragma Argument Association --
2086       --------------------------------------
2087
2088       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2089       --    [pragma_argument_IDENTIFIER =>] NAME
2090       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
2091
2092       --  N_Pragma_Argument_Association
2093       --  Sloc points to first token in association
2094       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
2095       --  Expression (Node3)
2096
2097       ------------------------
2098       -- 2.9  Reserved Word --
2099       ------------------------
2100
2101       --  Reserved words are parsed by the scanner, and returned as the
2102       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2103
2104       ----------------------------
2105       -- 3.1  Basic Declaration --
2106       ----------------------------
2107
2108       --  BASIC_DECLARATION ::=
2109       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
2110       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
2111       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
2112       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
2113       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
2114       --  | GENERIC_INSTANTIATION
2115
2116       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2117       --  see further description in section on semantic nodes.
2118
2119       --  Also, in the tree that is constructed, a pragma may appear
2120       --  anywhere that a declaration may appear.
2121
2122       ------------------------------
2123       -- 3.1  Defining Identifier --
2124       ------------------------------
2125
2126       --  DEFINING_IDENTIFIER ::= IDENTIFIER
2127
2128       --  A defining identifier is an entity, which has additional fields
2129       --  depending on the setting of the Ekind field. These additional
2130       --  fields are defined (and access subprograms declared) in package
2131       --  Einfo.
2132
2133       --  Note: N_Defining_Identifier is an extended node whose fields are
2134       --  deliberate layed out to match the layout of fields in an ordinary
2135       --  N_Identifier node allowing for easy alteration of an identifier
2136       --  node into a defining identifier node. For details, see procedure
2137       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2138
2139       --  N_Defining_Identifier
2140       --  Sloc points to identifier
2141       --  Chars (Name1) contains the Name_Id for the identifier
2142       --  Next_Entity (Node2-Sem)
2143       --  Scope (Node3-Sem)
2144       --  Etype (Node5-Sem)
2145
2146       -----------------------------
2147       -- 3.2.1  Type Declaration --
2148       -----------------------------
2149
2150       --  TYPE_DECLARATION ::=
2151       --    FULL_TYPE_DECLARATION
2152       --  | INCOMPLETE_TYPE_DECLARATION
2153       --  | PRIVATE_TYPE_DECLARATION
2154       --  | PRIVATE_EXTENSION_DECLARATION
2155
2156       ----------------------------------
2157       -- 3.2.1  Full Type Declaration --
2158       ----------------------------------
2159
2160       --  FULL_TYPE_DECLARATION ::=
2161       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2162       --      is TYPE_DEFINITION
2163       --        [ASPECT_SPECIFICATIONS];
2164
2165       --  | TASK_TYPE_DECLARATION
2166       --  | PROTECTED_TYPE_DECLARATION
2167
2168       --  The full type declaration node is used only for the first case. The
2169       --  second case (concurrent type declaration), is represented directly
2170       --  by a task type declaration or a protected type declaration.
2171
2172       --  N_Full_Type_Declaration
2173       --  Sloc points to TYPE
2174       --  Defining_Identifier (Node1)
2175       --  Discriminant_Specifications (List4) (set to No_List if none)
2176       --  Type_Definition (Node3)
2177       --  Discr_Check_Funcs_Built (Flag11-Sem)
2178
2179       ----------------------------
2180       -- 3.2.1  Type Definition --
2181       ----------------------------
2182
2183       --  TYPE_DEFINITION ::=
2184       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2185       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2186       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2187       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2188
2189       --------------------------------
2190       -- 3.2.2  Subtype Declaration --
2191       --------------------------------
2192
2193       --  SUBTYPE_DECLARATION ::=
2194       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2195
2196       --  The subtype indication field is set to Empty for subtypes
2197       --  declared in package Standard (Positive, Natural).
2198
2199       --  N_Subtype_Declaration
2200       --  Sloc points to SUBTYPE
2201       --  Defining_Identifier (Node1)
2202       --  Null_Exclusion_Present (Flag11)
2203       --  Subtype_Indication (Node5)
2204       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2205       --  Exception_Junk (Flag8-Sem)
2206       --  Has_Dynamic_Range_Check (Flag12-Sem)
2207
2208       -------------------------------
2209       -- 3.2.2  Subtype Indication --
2210       -------------------------------
2211
2212       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2213
2214       --  Note: if no constraint is present, the subtype indication appears
2215       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2216       --  node is used only if a constraint is present.
2217
2218       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2219       --  with the null-exclusion part (see AI-231), we had to introduce a new
2220       --  attribute in all the parents of subtype_indication nodes to indicate
2221       --  if the null-exclusion is present.
2222
2223       --  Note: the reason that this node has expression fields is that a
2224       --  subtype indication can appear as an operand of a membership test.
2225
2226       --  N_Subtype_Indication
2227       --  Sloc points to first token of subtype mark
2228       --  Subtype_Mark (Node4)
2229       --  Constraint (Node3)
2230       --  Etype (Node5-Sem)
2231       --  Must_Not_Freeze (Flag8-Sem)
2232
2233       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2234       --  reason for this redundancy is so that in a list of array index types,
2235       --  the Etype can be uniformly accessed to determine the subscript type.
2236       --  This means that no Itype is constructed for the actual subtype that
2237       --  is created by the subtype indication. If such an Itype is required,
2238       --  it is constructed in the context in which the indication appears.
2239
2240       -------------------------
2241       -- 3.2.2  Subtype Mark --
2242       -------------------------
2243
2244       --  SUBTYPE_MARK ::= subtype_NAME
2245
2246       -----------------------
2247       -- 3.2.2  Constraint --
2248       -----------------------
2249
2250       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2251
2252       ------------------------------
2253       -- 3.2.2  Scalar Constraint --
2254       ------------------------------
2255
2256       --  SCALAR_CONSTRAINT ::=
2257       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2258
2259       ---------------------------------
2260       -- 3.2.2  Composite Constraint --
2261       ---------------------------------
2262
2263       --  COMPOSITE_CONSTRAINT ::=
2264       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2265
2266       -------------------------------
2267       -- 3.3.1  Object Declaration --
2268       -------------------------------
2269
2270       --  OBJECT_DECLARATION ::=
2271       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2272       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2273       --        [ASPECT_SPECIFICATIONS];
2274       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2275       --      ACCESS_DEFINITION [:= EXPRESSION]
2276       --        [ASPECT_SPECIFICATIONS];
2277       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2278       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2279       --        [ASPECT_SPECIFICATIONS];
2280       --  | SINGLE_TASK_DECLARATION
2281       --  | SINGLE_PROTECTED_DECLARATION
2282
2283       --  Note: aliased is not permitted in Ada 83 mode
2284
2285       --  The N_Object_Declaration node is only for the first two cases.
2286       --  Single task declaration is handled by P_Task (9.1)
2287       --  Single protected declaration is handled by P_protected (9.5)
2288
2289       --  Although the syntax allows multiple identifiers in the list, the
2290       --  semantics is as though successive declarations were given with
2291       --  identical type definition and expression components. To simplify
2292       --  semantic processing, the parser represents a multiple declaration
2293       --  case as a sequence of single declarations, using the More_Ids and
2294       --  Prev_Ids flags to preserve the original source form as described
2295       --  in the section on "Handling of Defining Identifier Lists".
2296
2297       --  The flag Has_Init_Expression is set if an initializing expression
2298       --  is present. Normally it is set if and only if Expression contains
2299       --  a non-empty value, but there is an exception to this. When the
2300       --  initializing expression is an aggregate which requires explicit
2301       --  assignments, the Expression field gets set to Empty, but this flag
2302       --  is still set, so we don't forget we had an initializing expression.
2303
2304       --  Note: if a range check is required for the initialization
2305       --  expression then the Do_Range_Check flag is set in the Expression,
2306       --  with the check being done against the type given by the object
2307       --  definition, which is also the Etype of the defining identifier.
2308
2309       --  Note: the contents of the Expression field must be ignored (i.e.
2310       --  treated as though it were Empty) if No_Initialization is set True.
2311
2312       --  Note: the back end places some restrictions on the form of the
2313       --  Expression field. If the object being declared is Atomic, then
2314       --  the Expression may not have the form of an aggregate (since this
2315       --  might cause the back end to generate separate assignments). In this
2316       --  case the front end must generate an extra temporary and initialize
2317       --  this temporary as required (the temporary itself is not atomic).
2318
2319       --  Note: there is not node kind for object definition. Instead, the
2320       --  corresponding field holds a subtype indication, an array type
2321       --  definition, or (Ada 2005, AI-406) an access definition.
2322
2323       --  N_Object_Declaration
2324       --  Sloc points to first identifier
2325       --  Defining_Identifier (Node1)
2326       --  Aliased_Present (Flag4)
2327       --  Constant_Present (Flag17) set if CONSTANT appears
2328       --  Null_Exclusion_Present (Flag11)
2329       --  Object_Definition (Node4) subtype indic./array type def./access def.
2330       --  Expression (Node3) (set to Empty if not present)
2331       --  Handler_List_Entry (Node2-Sem)
2332       --  Corresponding_Generic_Association (Node5-Sem)
2333       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2334       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2335       --  No_Initialization (Flag13-Sem)
2336       --  Assignment_OK (Flag15-Sem)
2337       --  Exception_Junk (Flag8-Sem)
2338       --  Is_Subprogram_Descriptor (Flag16-Sem)
2339       --  Has_Init_Expression (Flag14)
2340       --  Suppress_Assignment_Checks (Flag18-Sem)
2341
2342       -------------------------------------
2343       -- 3.3.1  Defining Identifier List --
2344       -------------------------------------
2345
2346       --  DEFINING_IDENTIFIER_LIST ::=
2347       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2348
2349       -------------------------------
2350       -- 3.3.2  Number Declaration --
2351       -------------------------------
2352
2353       --  NUMBER_DECLARATION ::=
2354       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2355
2356       --  Although the syntax allows multiple identifiers in the list, the
2357       --  semantics is as though successive declarations were given with
2358       --  identical expressions. To simplify semantic processing, the parser
2359       --  represents a multiple declaration case as a sequence of single
2360       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2361       --  the original source form as described in the section on "Handling
2362       --  of Defining Identifier Lists".
2363
2364       --  N_Number_Declaration
2365       --  Sloc points to first identifier
2366       --  Defining_Identifier (Node1)
2367       --  Expression (Node3)
2368       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2369       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2370
2371       ----------------------------------
2372       -- 3.4  Derived Type Definition --
2373       ----------------------------------
2374
2375       --  DERIVED_TYPE_DEFINITION ::=
2376       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2377       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2378
2379       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2380       --  in Ada 83 mode
2381
2382       --  Note: a record extension part is required if ABSTRACT is present
2383
2384       --  N_Derived_Type_Definition
2385       --  Sloc points to NEW
2386       --  Abstract_Present (Flag4)
2387       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2388       --  Subtype_Indication (Node5)
2389       --  Record_Extension_Part (Node3) (set to Empty if not present)
2390       --  Limited_Present (Flag17)
2391       --  Task_Present (Flag5) set in task interfaces
2392       --  Protected_Present (Flag6) set in protected interfaces
2393       --  Synchronized_Present (Flag7) set in interfaces
2394       --  Interface_List (List2) (set to No_List if none)
2395       --  Interface_Present (Flag16) set in abstract interfaces
2396
2397       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2398       --        Interface_List, and Interface_Present are used for abstract
2399       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2400
2401       ---------------------------
2402       -- 3.5  Range Constraint --
2403       ---------------------------
2404
2405       --  RANGE_CONSTRAINT ::= range RANGE
2406
2407       --  N_Range_Constraint
2408       --  Sloc points to RANGE
2409       --  Range_Expression (Node4)
2410
2411       ----------------
2412       -- 3.5  Range --
2413       ----------------
2414
2415       --  RANGE ::=
2416       --    RANGE_ATTRIBUTE_REFERENCE
2417       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2418
2419       --  Note: the case of a range given as a range attribute reference
2420       --  appears directly in the tree as an attribute reference.
2421
2422       --  Note: the field name for a reference to a range is Range_Expression
2423       --  rather than Range, because range is a reserved keyword in Ada!
2424
2425       --  Note: the reason that this node has expression fields is that a
2426       --  range can appear as an operand of a membership test. The Etype
2427       --  field is the type of the range (we do NOT construct an implicit
2428       --  subtype to represent the range exactly).
2429
2430       --  N_Range
2431       --  Sloc points to ..
2432       --  Low_Bound (Node1)
2433       --  High_Bound (Node2)
2434       --  Includes_Infinities (Flag11)
2435       --  plus fields for expression
2436
2437       --  Note: if the range appears in a context, such as a subtype
2438       --  declaration, where range checks are required on one or both of
2439       --  the expression fields, then type conversion nodes are inserted
2440       --  to represent the required checks.
2441
2442       ----------------------------------------
2443       -- 3.5.1  Enumeration Type Definition --
2444       ----------------------------------------
2445
2446       --  ENUMERATION_TYPE_DEFINITION ::=
2447       --    (ENUMERATION_LITERAL_SPECIFICATION
2448       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2449
2450       --  Note: the Literals field in the node described below is null for
2451       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2452       --  which special processing handles these types as special cases.
2453
2454       --  N_Enumeration_Type_Definition
2455       --  Sloc points to left parenthesis
2456       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2457       --  End_Label (Node4) (set to Empty if internally generated record)
2458
2459       ----------------------------------------------
2460       -- 3.5.1  Enumeration Literal Specification --
2461       ----------------------------------------------
2462
2463       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2464       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2465
2466       ---------------------------------------
2467       -- 3.5.1  Defining Character Literal --
2468       ---------------------------------------
2469
2470       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2471
2472       --  A defining character literal is an entity, which has additional
2473       --  fields depending on the setting of the Ekind field. These
2474       --  additional fields are defined (and access subprograms declared)
2475       --  in package Einfo.
2476
2477       --  Note: N_Defining_Character_Literal is an extended node whose fields
2478       --  are deliberate layed out to match the layout of fields in an ordinary
2479       --  N_Character_Literal node allowing for easy alteration of a character
2480       --  literal node into a defining character literal node. For details, see
2481       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2482
2483       --  N_Defining_Character_Literal
2484       --  Sloc points to literal
2485       --  Chars (Name1) contains the Name_Id for the identifier
2486       --  Next_Entity (Node2-Sem)
2487       --  Scope (Node3-Sem)
2488       --  Etype (Node5-Sem)
2489
2490       ------------------------------------
2491       -- 3.5.4  Integer Type Definition --
2492       ------------------------------------
2493
2494       --  Note: there is an error in this rule in the latest version of the
2495       --  grammar, so we have retained the old rule pending clarification.
2496
2497       --  INTEGER_TYPE_DEFINITION ::=
2498       --    SIGNED_INTEGER_TYPE_DEFINITION
2499       --  | MODULAR_TYPE_DEFINITION
2500
2501       -------------------------------------------
2502       -- 3.5.4  Signed Integer Type Definition --
2503       -------------------------------------------
2504
2505       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2506       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2507
2508       --  Note: the Low_Bound and High_Bound fields are set to Empty
2509       --  for integer types defined in package Standard.
2510
2511       --  N_Signed_Integer_Type_Definition
2512       --  Sloc points to RANGE
2513       --  Low_Bound (Node1)
2514       --  High_Bound (Node2)
2515
2516       ------------------------------------
2517       -- 3.5.4  Modular Type Definition --
2518       ------------------------------------
2519
2520       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2521
2522       --  N_Modular_Type_Definition
2523       --  Sloc points to MOD
2524       --  Expression (Node3)
2525
2526       ---------------------------------
2527       -- 3.5.6  Real Type Definition --
2528       ---------------------------------
2529
2530       --  REAL_TYPE_DEFINITION ::=
2531       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2532
2533       --------------------------------------
2534       -- 3.5.7  Floating Point Definition --
2535       --------------------------------------
2536
2537       --  FLOATING_POINT_DEFINITION ::=
2538       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2539
2540       --  Note: The Digits_Expression and Real_Range_Specifications fields
2541       --  are set to Empty for floating-point types declared in Standard.
2542
2543       --  N_Floating_Point_Definition
2544       --  Sloc points to DIGITS
2545       --  Digits_Expression (Node2)
2546       --  Real_Range_Specification (Node4) (set to Empty if not present)
2547
2548       -------------------------------------
2549       -- 3.5.7  Real Range Specification --
2550       -------------------------------------
2551
2552       --  REAL_RANGE_SPECIFICATION ::=
2553       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2554
2555       --  N_Real_Range_Specification
2556       --  Sloc points to RANGE
2557       --  Low_Bound (Node1)
2558       --  High_Bound (Node2)
2559
2560       -----------------------------------
2561       -- 3.5.9  Fixed Point Definition --
2562       -----------------------------------
2563
2564       --  FIXED_POINT_DEFINITION ::=
2565       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2566
2567       --------------------------------------------
2568       -- 3.5.9  Ordinary Fixed Point Definition --
2569       --------------------------------------------
2570
2571       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2572       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2573
2574       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2575
2576       --  N_Ordinary_Fixed_Point_Definition
2577       --  Sloc points to DELTA
2578       --  Delta_Expression (Node3)
2579       --  Real_Range_Specification (Node4)
2580
2581       -------------------------------------------
2582       -- 3.5.9  Decimal Fixed Point Definition --
2583       -------------------------------------------
2584
2585       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2586       --    delta static_EXPRESSION
2587       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2588
2589       --  Note: decimal types are not permitted in Ada 83 mode
2590
2591       --  N_Decimal_Fixed_Point_Definition
2592       --  Sloc points to DELTA
2593       --  Delta_Expression (Node3)
2594       --  Digits_Expression (Node2)
2595       --  Real_Range_Specification (Node4) (set to Empty if not present)
2596
2597       ------------------------------
2598       -- 3.5.9  Digits Constraint --
2599       ------------------------------
2600
2601       --  DIGITS_CONSTRAINT ::=
2602       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2603
2604       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2605       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2606
2607       --  N_Digits_Constraint
2608       --  Sloc points to DIGITS
2609       --  Digits_Expression (Node2)
2610       --  Range_Constraint (Node4) (set to Empty if not present)
2611
2612       --------------------------------
2613       -- 3.6  Array Type Definition --
2614       --------------------------------
2615
2616       --  ARRAY_TYPE_DEFINITION ::=
2617       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2618
2619       -----------------------------------------
2620       -- 3.6  Unconstrained Array Definition --
2621       -----------------------------------------
2622
2623       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2624       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2625       --      COMPONENT_DEFINITION
2626
2627       --  Note: dimensionality of array is indicated by number of entries in
2628       --  the Subtype_Marks list, which has one entry for each dimension.
2629
2630       --  N_Unconstrained_Array_Definition
2631       --  Sloc points to ARRAY
2632       --  Subtype_Marks (List2)
2633       --  Component_Definition (Node4)
2634
2635       -----------------------------------
2636       -- 3.6  Index Subtype Definition --
2637       -----------------------------------
2638
2639       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2640
2641       --  There is no explicit node in the tree for an index subtype
2642       --  definition since the N_Unconstrained_Array_Definition node
2643       --  incorporates the type marks which appear in this context.
2644
2645       ---------------------------------------
2646       -- 3.6  Constrained Array Definition --
2647       ---------------------------------------
2648
2649       --  CONSTRAINED_ARRAY_DEFINITION ::=
2650       --    array (DISCRETE_SUBTYPE_DEFINITION
2651       --      {, DISCRETE_SUBTYPE_DEFINITION})
2652       --        of COMPONENT_DEFINITION
2653
2654       --  Note: dimensionality of array is indicated by number of entries
2655       --  in the Discrete_Subtype_Definitions list, which has one entry
2656       --  for each dimension.
2657
2658       --  N_Constrained_Array_Definition
2659       --  Sloc points to ARRAY
2660       --  Discrete_Subtype_Definitions (List2)
2661       --  Component_Definition (Node4)
2662
2663       --------------------------------------
2664       -- 3.6  Discrete Subtype Definition --
2665       --------------------------------------
2666
2667       --  DISCRETE_SUBTYPE_DEFINITION ::=
2668       --    discrete_SUBTYPE_INDICATION | RANGE
2669
2670       -------------------------------
2671       -- 3.6  Component Definition --
2672       -------------------------------
2673
2674       --  COMPONENT_DEFINITION ::=
2675       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2676
2677       --  Note: although the syntax does not permit a component definition to
2678       --  be an anonymous array (and the parser will diagnose such an attempt
2679       --  with an appropriate message), it is possible for anonymous arrays
2680       --  to appear as component definitions. The semantics and back end handle
2681       --  this case properly, and the expander in fact generates such cases.
2682       --  Access_Definition is an optional field that gives support to
2683       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2684       --  Subtype_Indication field or else the Access_Definition field.
2685
2686       --  N_Component_Definition
2687       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2688       --  Aliased_Present (Flag4)
2689       --  Null_Exclusion_Present (Flag11)
2690       --  Subtype_Indication (Node5) (set to Empty if not present)
2691       --  Access_Definition (Node3) (set to Empty if not present)
2692
2693       -----------------------------
2694       -- 3.6.1  Index Constraint --
2695       -----------------------------
2696
2697       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2698
2699       --  It is not in general possible to distinguish between discriminant
2700       --  constraints and index constraints at parse time, since a simple
2701       --  name could be either the subtype mark of a discrete range, or an
2702       --  expression in a discriminant association with no name. Either
2703       --  entry appears simply as the name, and the semantic parse must
2704       --  distinguish between the two cases. Thus we use a common tree
2705       --  node format for both of these constraint types.
2706
2707       --  See Discriminant_Constraint for format of node
2708
2709       ---------------------------
2710       -- 3.6.1  Discrete Range --
2711       ---------------------------
2712
2713       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2714
2715       ----------------------------
2716       -- 3.7  Discriminant Part --
2717       ----------------------------
2718
2719       --  DISCRIMINANT_PART ::=
2720       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2721
2722       ------------------------------------
2723       -- 3.7  Unknown Discriminant Part --
2724       ------------------------------------
2725
2726       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2727
2728       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2729
2730       --  There is no explicit node in the tree for an unknown discriminant
2731       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2732       --  parent node.
2733
2734       ----------------------------------
2735       -- 3.7  Known Discriminant Part --
2736       ----------------------------------
2737
2738       --  KNOWN_DISCRIMINANT_PART ::=
2739       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2740
2741       -------------------------------------
2742       -- 3.7  Discriminant Specification --
2743       -------------------------------------
2744
2745       --  DISCRIMINANT_SPECIFICATION ::=
2746       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2747       --      [:= DEFAULT_EXPRESSION]
2748       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2749       --      [:= DEFAULT_EXPRESSION]
2750
2751       --  Although the syntax allows multiple identifiers in the list, the
2752       --  semantics is as though successive specifications were given with
2753       --  identical type definition and expression components. To simplify
2754       --  semantic processing, the parser represents a multiple declaration
2755       --  case as a sequence of single specifications, using the More_Ids and
2756       --  Prev_Ids flags to preserve the original source form as described
2757       --  in the section on "Handling of Defining Identifier Lists".
2758
2759       --  N_Discriminant_Specification
2760       --  Sloc points to first identifier
2761       --  Defining_Identifier (Node1)
2762       --  Null_Exclusion_Present (Flag11)
2763       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2764       --  Expression (Node3) (set to Empty if no default expression)
2765       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2766       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2767
2768       -----------------------------
2769       -- 3.7  Default Expression --
2770       -----------------------------
2771
2772       --  DEFAULT_EXPRESSION ::= EXPRESSION
2773
2774       ------------------------------------
2775       -- 3.7.1  Discriminant Constraint --
2776       ------------------------------------
2777
2778       --  DISCRIMINANT_CONSTRAINT ::=
2779       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2780
2781       --  It is not in general possible to distinguish between discriminant
2782       --  constraints and index constraints at parse time, since a simple
2783       --  name could be either the subtype mark of a discrete range, or an
2784       --  expression in a discriminant association with no name. Either
2785       --  entry appears simply as the name, and the semantic parse must
2786       --  distinguish between the two cases. Thus we use a common tree
2787       --  node format for both of these constraint types.
2788
2789       --  N_Index_Or_Discriminant_Constraint
2790       --  Sloc points to left paren
2791       --  Constraints (List1) points to list of discrete ranges or
2792       --    discriminant associations
2793
2794       -------------------------------------
2795       -- 3.7.1  Discriminant Association --
2796       -------------------------------------
2797
2798       --  DISCRIMINANT_ASSOCIATION ::=
2799       --    [discriminant_SELECTOR_NAME
2800       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2801
2802       --  Note: a discriminant association that has no selector name list
2803       --  appears directly as an expression in the tree.
2804
2805       --  N_Discriminant_Association
2806       --  Sloc points to first token of discriminant association
2807       --  Selector_Names (List1) (always non-empty, since if no selector
2808       --   names are present, this node is not used, see comment above)
2809       --  Expression (Node3)
2810
2811       ---------------------------------
2812       -- 3.8  Record Type Definition --
2813       ---------------------------------
2814
2815       --  RECORD_TYPE_DEFINITION ::=
2816       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2817
2818       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2819
2820       --  There is no explicit node in the tree for a record type definition.
2821       --  Instead the flags for Tagged_Present and Limited_Present appear in
2822       --  the N_Record_Definition node for a record definition appearing in
2823       --  the context of a record type definition.
2824
2825       ----------------------------
2826       -- 3.8  Record Definition --
2827       ----------------------------
2828
2829       --  RECORD_DEFINITION ::=
2830       --    record
2831       --      COMPONENT_LIST
2832       --    end record
2833       --  | null record
2834
2835       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2836       --  flags appear only for a record definition appearing in a record
2837       --  type definition.
2838
2839       --  Note: the NULL RECORD case is not permitted in Ada 83
2840
2841       --  N_Record_Definition
2842       --  Sloc points to RECORD or NULL
2843       --  End_Label (Node4) (set to Empty if internally generated record)
2844       --  Abstract_Present (Flag4)
2845       --  Tagged_Present (Flag15)
2846       --  Limited_Present (Flag17)
2847       --  Component_List (Node1) empty in null record case
2848       --  Null_Present (Flag13) set in null record case
2849       --  Task_Present (Flag5) set in task interfaces
2850       --  Protected_Present (Flag6) set in protected interfaces
2851       --  Synchronized_Present (Flag7) set in interfaces
2852       --  Interface_Present (Flag16) set in abstract interfaces
2853       --  Interface_List (List2) (set to No_List if none)
2854
2855       --  Note: Task_Present, Protected_Present, Synchronized _Present,
2856       --        Interface_List and Interface_Present are used for abstract
2857       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2858
2859       -------------------------
2860       -- 3.8  Component List --
2861       -------------------------
2862
2863       --  COMPONENT_LIST ::=
2864       --    COMPONENT_ITEM {COMPONENT_ITEM}
2865       --  | {COMPONENT_ITEM} VARIANT_PART
2866       --  | null;
2867
2868       --  N_Component_List
2869       --  Sloc points to first token of component list
2870       --  Component_Items (List3)
2871       --  Variant_Part (Node4) (set to Empty if no variant part)
2872       --  Null_Present (Flag13)
2873
2874       -------------------------
2875       -- 3.8  Component Item --
2876       -------------------------
2877
2878       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2879
2880       --  Note: A component item can also be a pragma, and in the tree
2881       --  that is obtained after semantic processing, a component item
2882       --  can be an N_Null node resulting from a non-recognized pragma.
2883
2884       --------------------------------
2885       -- 3.8  Component Declaration --
2886       --------------------------------
2887
2888       --  COMPONENT_DECLARATION ::=
2889       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2890       --      [:= DEFAULT_EXPRESSION]
2891       --        [ASPECT_SPECIFICATIONS];
2892
2893       --  Note: although the syntax does not permit a component definition to
2894       --  be an anonymous array (and the parser will diagnose such an attempt
2895       --  with an appropriate message), it is possible for anonymous arrays
2896       --  to appear as component definitions. The semantics and back end handle
2897       --  this case properly, and the expander in fact generates such cases.
2898
2899       --  Although the syntax allows multiple identifiers in the list, the
2900       --  semantics is as though successive declarations were given with the
2901       --  same component definition and expression components. To simplify
2902       --  semantic processing, the parser represents a multiple declaration
2903       --  case as a sequence of single declarations, using the More_Ids and
2904       --  Prev_Ids flags to preserve the original source form as described
2905       --  in the section on "Handling of Defining Identifier Lists".
2906
2907       --  N_Component_Declaration
2908       --  Sloc points to first identifier
2909       --  Defining_Identifier (Node1)
2910       --  Component_Definition (Node4)
2911       --  Expression (Node3) (set to Empty if no default expression)
2912       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2913       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2914
2915       -------------------------
2916       -- 3.8.1  Variant Part --
2917       -------------------------
2918
2919       --  VARIANT_PART ::=
2920       --    case discriminant_DIRECT_NAME is
2921       --      VARIANT
2922       --      {VARIANT}
2923       --    end case;
2924
2925       --  Note: the variants list can contain pragmas as well as variants.
2926       --  In a properly formed program there is at least one variant.
2927
2928       --  N_Variant_Part
2929       --  Sloc points to CASE
2930       --  Name (Node2)
2931       --  Variants (List1)
2932
2933       --------------------
2934       -- 3.8.1  Variant --
2935       --------------------
2936
2937       --  VARIANT ::=
2938       --    when DISCRETE_CHOICE_LIST =>
2939       --      COMPONENT_LIST
2940
2941       --  N_Variant
2942       --  Sloc points to WHEN
2943       --  Discrete_Choices (List4)
2944       --  Component_List (Node1)
2945       --  Enclosing_Variant (Node2-Sem)
2946       --  Present_Expr (Uint3-Sem)
2947       --  Dcheck_Function (Node5-Sem)
2948
2949       ---------------------------------
2950       -- 3.8.1  Discrete Choice List --
2951       ---------------------------------
2952
2953       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2954
2955       ----------------------------
2956       -- 3.8.1  Discrete Choice --
2957       ----------------------------
2958
2959       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2960
2961       --  Note: in Ada 83 mode, the expression must be a simple expression
2962
2963       --  The only choice that appears explicitly is the OTHERS choice, as
2964       --  defined here. Other cases of discrete choice (expression and
2965       --  discrete range) appear directly. This production is also used
2966       --  for the OTHERS possibility of an exception choice.
2967
2968       --  Note: in accordance with the syntax, the parser does not check that
2969       --  OTHERS appears at the end on its own in a choice list context. This
2970       --  is a semantic check.
2971
2972       --  N_Others_Choice
2973       --  Sloc points to OTHERS
2974       --  Others_Discrete_Choices (List1-Sem)
2975       --  All_Others (Flag11-Sem)
2976
2977       ----------------------------------
2978       -- 3.9.1  Record Extension Part --
2979       ----------------------------------
2980
2981       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2982
2983       --  Note: record extension parts are not permitted in Ada 83 mode
2984
2985       --------------------------------------
2986       -- 3.9.4  Interface Type Definition --
2987       --------------------------------------
2988
2989       --  INTERFACE_TYPE_DEFINITION ::=
2990       --    [limited | task | protected | synchronized]
2991       --    interface [interface_list]
2992
2993       --  Note: Interfaces are implemented with N_Record_Definition and
2994       --        N_Derived_Type_Definition nodes because most of the support
2995       --        for the analysis of abstract types has been reused to
2996       --        analyze abstract interfaces.
2997
2998       ----------------------------------
2999       -- 3.10  Access Type Definition --
3000       ----------------------------------
3001
3002       --  ACCESS_TYPE_DEFINITION ::=
3003       --    ACCESS_TO_OBJECT_DEFINITION
3004       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3005
3006       --------------------------
3007       -- 3.10  Null Exclusion --
3008       --------------------------
3009
3010       --  NULL_EXCLUSION ::= not null
3011
3012       ---------------------------------------
3013       -- 3.10  Access To Object Definition --
3014       ---------------------------------------
3015
3016       --  ACCESS_TO_OBJECT_DEFINITION ::=
3017       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3018       --    SUBTYPE_INDICATION
3019
3020       --  N_Access_To_Object_Definition
3021       --  Sloc points to ACCESS
3022       --  All_Present (Flag15)
3023       --  Null_Exclusion_Present (Flag11)
3024       --  Subtype_Indication (Node5)
3025       --  Constant_Present (Flag17)
3026
3027       -----------------------------------
3028       -- 3.10  General Access Modifier --
3029       -----------------------------------
3030
3031       --  GENERAL_ACCESS_MODIFIER ::= all | constant
3032
3033       --  Note: general access modifiers are not permitted in Ada 83 mode
3034
3035       --  There is no explicit node in the tree for general access modifier.
3036       --  Instead the All_Present or Constant_Present flags are set in the
3037       --  parent node.
3038
3039       -------------------------------------------
3040       -- 3.10  Access To Subprogram Definition --
3041       -------------------------------------------
3042
3043       --  ACCESS_TO_SUBPROGRAM_DEFINITION
3044       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3045       --  | [NULL_EXCLUSION] access [protected] function
3046       --    PARAMETER_AND_RESULT_PROFILE
3047
3048       --  Note: access to subprograms are not permitted in Ada 83 mode
3049
3050       --  N_Access_Function_Definition
3051       --  Sloc points to ACCESS
3052       --  Null_Exclusion_Present (Flag11)
3053       --  Null_Exclusion_In_Return_Present (Flag14)
3054       --  Protected_Present (Flag6)
3055       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3056       --  Result_Definition (Node4) result subtype (subtype mark or access def)
3057
3058       --  N_Access_Procedure_Definition
3059       --  Sloc points to ACCESS
3060       --  Null_Exclusion_Present (Flag11)
3061       --  Protected_Present (Flag6)
3062       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3063
3064       -----------------------------
3065       -- 3.10  Access Definition --
3066       -----------------------------
3067
3068       --  ACCESS_DEFINITION ::=
3069       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3070       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3071
3072       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
3073
3074       --  N_Access_Definition
3075       --  Sloc points to ACCESS
3076       --  Null_Exclusion_Present (Flag11)
3077       --  All_Present (Flag15)
3078       --  Constant_Present (Flag17)
3079       --  Subtype_Mark (Node4)
3080       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3081
3082       -----------------------------------------
3083       -- 3.10.1  Incomplete Type Declaration --
3084       -----------------------------------------
3085
3086       --  INCOMPLETE_TYPE_DECLARATION ::=
3087       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3088
3089       --  N_Incomplete_Type_Declaration
3090       --  Sloc points to TYPE
3091       --  Defining_Identifier (Node1)
3092       --  Discriminant_Specifications (List4) (set to No_List if no
3093       --   discriminant part, or if the discriminant part is an
3094       --   unknown discriminant part)
3095       --  Premature_Use (Node5-Sem) used for improved diagnostics.
3096       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3097       --  Tagged_Present (Flag15)
3098
3099       ----------------------------
3100       -- 3.11  Declarative Part --
3101       ----------------------------
3102
3103       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3104
3105       --  Note: although the parser enforces the syntactic requirement that
3106       --  a declarative part can contain only declarations, the semantic
3107       --  processing may add statements to the list of actions in a
3108       --  declarative part, so the code generator should be prepared
3109       --  to accept a statement in this position.
3110
3111       ----------------------------
3112       -- 3.11  Declarative Item --
3113       ----------------------------
3114
3115       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3116
3117       ----------------------------------
3118       -- 3.11  Basic Declarative Item --
3119       ----------------------------------
3120
3121       --  BASIC_DECLARATIVE_ITEM ::=
3122       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3123
3124       ----------------
3125       -- 3.11  Body --
3126       ----------------
3127
3128       --  BODY ::= PROPER_BODY | BODY_STUB
3129
3130       -----------------------
3131       -- 3.11  Proper Body --
3132       -----------------------
3133
3134       --  PROPER_BODY ::=
3135       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3136
3137       ---------------
3138       -- 4.1  Name --
3139       ---------------
3140
3141       --  NAME ::=
3142       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
3143       --  | INDEXED_COMPONENT  | SLICE
3144       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3145       --  | TYPE_CONVERSION    | FUNCTION_CALL
3146       --  | CHARACTER_LITERAL
3147
3148       ----------------------
3149       -- 4.1  Direct Name --
3150       ----------------------
3151
3152       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3153
3154       -----------------
3155       -- 4.1  Prefix --
3156       -----------------
3157
3158       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3159
3160       -------------------------------
3161       -- 4.1  Explicit Dereference --
3162       -------------------------------
3163
3164       --  EXPLICIT_DEREFERENCE ::= NAME . all
3165
3166       --  N_Explicit_Dereference
3167       --  Sloc points to ALL
3168       --  Prefix (Node3)
3169       --  Actual_Designated_Subtype (Node4-Sem)
3170       --  plus fields for expression
3171
3172       -------------------------------
3173       -- 4.1  Implicit Dereference --
3174       -------------------------------
3175
3176       --  IMPLICIT_DEREFERENCE ::= NAME
3177
3178       ------------------------------
3179       -- 4.1.1  Indexed Component --
3180       ------------------------------
3181
3182       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3183
3184       --  Note: the parser may generate this node in some situations where it
3185       --  should be a function call. The semantic  pass must correct this
3186       --  misidentification (which is inevitable at the parser level).
3187
3188       --  N_Indexed_Component
3189       --  Sloc contains a copy of the Sloc value of the Prefix
3190       --  Prefix (Node3)
3191       --  Expressions (List1)
3192       --  plus fields for expression
3193
3194       --  Note: if any of the subscripts requires a range check, then the
3195       --  Do_Range_Check flag is set on the corresponding expression, with
3196       --  the index type being determined from the type of the Prefix, which
3197       --  references the array being indexed.
3198
3199       --  Note: in a fully analyzed and expanded indexed component node, and
3200       --  hence in any such node that gigi sees, if the prefix is an access
3201       --  type, then an explicit dereference operation has been inserted.
3202
3203       ------------------
3204       -- 4.1.2  Slice --
3205       ------------------
3206
3207       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3208
3209       --  Note: an implicit subtype is created to describe the resulting
3210       --  type, so that the bounds of this type are the bounds of the slice.
3211
3212       --  N_Slice
3213       --  Sloc points to first token of prefix
3214       --  Prefix (Node3)
3215       --  Discrete_Range (Node4)
3216       --  plus fields for expression
3217
3218       -------------------------------
3219       -- 4.1.3  Selected Component --
3220       -------------------------------
3221
3222       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3223
3224       --  Note: selected components that are semantically expanded names get
3225       --  changed during semantic processing into the separate N_Expanded_Name
3226       --  node. See description of this node in the section on semantic nodes.
3227
3228       --  N_Selected_Component
3229       --  Sloc points to period
3230       --  Prefix (Node3)
3231       --  Selector_Name (Node2)
3232       --  Associated_Node (Node4-Sem)
3233       --  Do_Discriminant_Check (Flag13-Sem)
3234       --  Is_In_Discriminant_Check (Flag11-Sem)
3235       --  plus fields for expression
3236
3237       --------------------------
3238       -- 4.1.3  Selector Name --
3239       --------------------------
3240
3241       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3242
3243       --------------------------------
3244       -- 4.1.4  Attribute Reference --
3245       --------------------------------
3246
3247       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3248
3249       --  Note: the syntax is quite ambiguous at this point. Consider:
3250
3251       --    A'Length (X)  X is part of the attribute designator
3252       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3253       --    A'Class (X)   X is the expression of a type conversion
3254
3255       --  It would be possible for the parser to distinguish these cases
3256       --  by looking at the attribute identifier. However, that would mean
3257       --  more work in introducing new implementation defined attributes,
3258       --  and also it would mean that special processing for attributes
3259       --  would be scattered around, instead of being centralized in the
3260       --  semantic routine that handles an N_Attribute_Reference node.
3261       --  Consequently, the parser in all the above cases stores the
3262       --  expression (X in these examples) as a single element list in
3263       --  in the Expressions field of the N_Attribute_Reference node.
3264
3265       --  Similarly, for attributes like Max which take two arguments,
3266       --  we store the two arguments as a two element list in the
3267       --  Expressions field. Of course it is clear at parse time that
3268       --  this case is really a function call with an attribute as the
3269       --  prefix, but it turns out to be convenient to handle the two
3270       --  argument case in a similar manner to the one argument case,
3271       --  and indeed in general the parser will accept any number of
3272       --  expressions in this position and store them as a list in the
3273       --  attribute reference node. This allows for future addition of
3274       --  attributes that take more than two arguments.
3275
3276       --  Note: named associates are not permitted in function calls where
3277       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3278       --  to skip the normal subprogram argument processing.
3279
3280       --  Note: for the attributes whose designators are technically keywords,
3281       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3282       --  the corresponding name, even though no identifier is involved.
3283
3284       --  Note: the generated code may contain stream attributes applied to
3285       --  limited types for which no stream routines exist officially. In such
3286       --  case, the result is to use the stream attribute for the underlying
3287       --  full type, or in the case of a protected type, the components
3288       --  (including any discriminants) are merely streamed in order.
3289
3290       --  See Exp_Attr for a complete description of which attributes are
3291       --  passed onto Gigi, and which are handled entirely by the front end.
3292
3293       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3294       --  a non-standard enumeration type or a nonzero/zero semantics
3295       --  boolean type, so the value is simply the stored representation.
3296
3297       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3298       --  references a subprogram that is a renaming, then the front end must
3299       --  rewrite the attribute to refer directly to the renamed entity.
3300
3301       --  Note: In generated code, the Address and Unrestricted_Access
3302       --  attributes can be applied to any expression, and the meaning is
3303       --  to create an object containing the value (the object is in the
3304       --  current stack frame), and pass the address of this value. If the
3305       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3306       --  is taken must be on a byte (storage unit) boundary, and if it is
3307       --  not (or may not be), then the generated code must create a copy
3308       --  that is byte aligned, and pass the address of this copy.
3309
3310       --  N_Attribute_Reference
3311       --  Sloc points to apostrophe
3312       --  Prefix (Node3)
3313       --  Attribute_Name (Name2) identifier name from attribute designator
3314       --  Expressions (List1) (set to No_List if no associated expressions)
3315       --  Entity (Node4-Sem) used if the attribute yields a type
3316       --  Associated_Node (Node4-Sem)
3317       --  Do_Overflow_Check (Flag17-Sem)
3318       --  Redundant_Use (Flag13-Sem)
3319       --  Must_Be_Byte_Aligned (Flag14)
3320       --  plus fields for expression
3321
3322       ---------------------------------
3323       -- 4.1.4  Attribute Designator --
3324       ---------------------------------
3325
3326       --  ATTRIBUTE_DESIGNATOR ::=
3327       --    IDENTIFIER [(static_EXPRESSION)]
3328       --  | access | delta | digits
3329
3330       --  There is no explicit node in the tree for an attribute designator.
3331       --  Instead the Attribute_Name and Expressions fields of the parent
3332       --  node (N_Attribute_Reference node) hold the information.
3333
3334       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3335       --  designator, then they are treated as identifiers internally
3336       --  rather than the keywords of the same name.
3337
3338       --------------------------------------
3339       -- 4.1.4  Range Attribute Reference --
3340       --------------------------------------
3341
3342       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3343
3344       --  A range attribute reference is represented in the tree using the
3345       --  normal N_Attribute_Reference node.
3346
3347       ---------------------------------------
3348       -- 4.1.4  Range Attribute Designator --
3349       ---------------------------------------
3350
3351       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3352
3353       --  A range attribute designator is represented in the tree using the
3354       --  normal N_Attribute_Reference node.
3355
3356       --------------------
3357       -- 4.3  Aggregate --
3358       --------------------
3359
3360       --  AGGREGATE ::=
3361       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3362
3363       -----------------------------
3364       -- 4.3.1  Record Aggregate --
3365       -----------------------------
3366
3367       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3368
3369       --  N_Aggregate
3370       --  Sloc points to left parenthesis
3371       --  Expressions (List1) (set to No_List if none or null record case)
3372       --  Component_Associations (List2) (set to No_List if none)
3373       --  Null_Record_Present (Flag17)
3374       --  Aggregate_Bounds (Node3-Sem)
3375       --  Associated_Node (Node4-Sem)
3376       --  Static_Processing_OK (Flag4-Sem)
3377       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3378       --  Expansion_Delayed (Flag11-Sem)
3379       --  Has_Self_Reference (Flag13-Sem)
3380       --  plus fields for expression
3381
3382       --  Note: this structure is used for both record and array aggregates
3383       --  since the two cases are not separable by the parser. The parser
3384       --  makes no attempt to enforce consistency here, so it is up to the
3385       --  semantic phase to make sure that the aggregate is consistent (i.e.
3386       --  that it is not a "half-and-half" case that mixes record and array
3387       --  syntax. In particular, for a record aggregate, the expressions
3388       --  field will be set if there are positional associations.
3389
3390       --  Note: N_Aggregate is not used for all aggregates; in particular,
3391       --  there is a separate node kind for extension aggregates.
3392
3393       --  Note: gigi/gcc can handle array aggregates correctly providing that
3394       --  they are entirely positional, and the array subtype involved has a
3395       --  known at compile time length and is not bit packed, or a convention
3396       --  Fortran array with more than one dimension. If these conditions
3397       --  are not met, then the front end must translate the aggregate into
3398       --  an appropriate set of assignments into a temporary.
3399
3400       --  Note: for the record aggregate case, gigi/gcc can handle all cases of
3401       --  record aggregates, including those for packed, and rep-claused
3402       --  records, and also variant records, providing that there are no
3403       --  variable length fields whose size is not known at compile time, and
3404       --  providing that the aggregate is presented in fully named form.
3405
3406       ----------------------------------------------
3407       -- 4.3.1  Record Component Association List --
3408       ----------------------------------------------
3409
3410       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3411       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3412       --   | null record
3413
3414       --  There is no explicit node in the tree for a record component
3415       --  association list. Instead the Null_Record_Present flag is set in
3416       --  the parent node for the NULL RECORD case.
3417
3418       ------------------------------------------------------
3419       -- 4.3.1  Record Component Association (also 4.3.3) --
3420       ------------------------------------------------------
3421
3422       --  RECORD_COMPONENT_ASSOCIATION ::=
3423       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3424
3425       --  N_Component_Association
3426       --  Sloc points to first selector name
3427       --  Choices (List1)
3428       --  Loop_Actions (List2-Sem)
3429       --  Expression (Node3)
3430       --  Box_Present (Flag15)
3431       --  Inherited_Discriminant (Flag13)
3432
3433       --  Note: this structure is used for both record component associations
3434       --  and array component associations, since the two cases aren't always
3435       --  separable by the parser. The choices list may represent either a
3436       --  list of selector names in the record aggregate case, or a list of
3437       --  discrete choices in the array aggregate case or an N_Others_Choice
3438       --  node (which appears as a singleton list). Box_Present gives support
3439       --  to Ada 2005 (AI-287).
3440
3441       ----------------------------------
3442       -- 4.3.1  Component Choice List --
3443       ----------------------------------
3444
3445       --  COMPONENT_CHOICE_LIST ::=
3446       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3447       --  | others
3448
3449       --  The entries of a component choice list appear in the Choices list of
3450       --  the associated N_Component_Association, as either selector names, or
3451       --  as an N_Others_Choice node.
3452
3453       --------------------------------
3454       -- 4.3.2  Extension Aggregate --
3455       --------------------------------
3456
3457       --  EXTENSION_AGGREGATE ::=
3458       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3459
3460       --  Note: extension aggregates are not permitted in Ada 83 mode
3461
3462       --  N_Extension_Aggregate
3463       --  Sloc points to left parenthesis
3464       --  Ancestor_Part (Node3)
3465       --  Associated_Node (Node4-Sem)
3466       --  Expressions (List1) (set to No_List if none or null record case)
3467       --  Component_Associations (List2) (set to No_List if none)
3468       --  Null_Record_Present (Flag17)
3469       --  Expansion_Delayed (Flag11-Sem)
3470       --  Has_Self_Reference (Flag13-Sem)
3471       --  plus fields for expression
3472
3473       --------------------------
3474       -- 4.3.2  Ancestor Part --
3475       --------------------------
3476
3477       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3478
3479       ----------------------------
3480       -- 4.3.3  Array Aggregate --
3481       ----------------------------
3482
3483       --  ARRAY_AGGREGATE ::=
3484       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3485
3486       ---------------------------------------
3487       -- 4.3.3  Positional Array Aggregate --
3488       ---------------------------------------
3489
3490       --  POSITIONAL_ARRAY_AGGREGATE ::=
3491       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3492       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3493
3494       --  See Record_Aggregate (4.3.1) for node structure
3495
3496       ----------------------------------
3497       -- 4.3.3  Named Array Aggregate --
3498       ----------------------------------
3499
3500       --  NAMED_ARRAY_AGGREGATE ::=
3501       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3502
3503       --  See Record_Aggregate (4.3.1) for node structure
3504
3505       ----------------------------------------
3506       -- 4.3.3  Array Component Association --
3507       ----------------------------------------
3508
3509       --  ARRAY_COMPONENT_ASSOCIATION ::=
3510       --    DISCRETE_CHOICE_LIST => EXPRESSION
3511
3512       --  See Record_Component_Association (4.3.1) for node structure
3513
3514       --------------------------------------------------
3515       -- 4.4  Expression/Relation/Term/Factor/Primary --
3516       --------------------------------------------------
3517
3518       --  EXPRESSION ::=
3519       --    RELATION {LOGICAL_OPERATOR RELATION}
3520
3521       --  CHOICE_EXPRESSION ::=
3522       --    CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3523
3524       --  CHOICE_RELATION ::=
3525       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3526
3527       --  RELATION ::=
3528       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3529
3530       --  MEMBERSHIP_CHOICE_LIST ::=
3531       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3532
3533       --  MEMBERSHIP_CHOICE ::=
3534       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3535
3536       --  LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3537
3538       --  SIMPLE_EXPRESSION ::=
3539       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3540
3541       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3542
3543       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3544
3545       --  No nodes are generated for any of these constructs. Instead, the
3546       --  node for the operator appears directly. When we refer to an
3547       --  expression in this description, we mean any of the possible
3548       --  constituent components of an expression (e.g. identifier is
3549       --  an example of an expression).
3550
3551       --  Note: the above syntax is that Ada 2012 syntax which restricts
3552       --  choice relations to simple expressions to avoid ambiguities in
3553       --  some contexts with set membership notation. It has been decided
3554       --  that in retrospect, the Ada 95 change allowing general expressions
3555       --  in this context was a mistake, so we have reverted to the above
3556       --  syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3557       --  expressions was there in Ada 83 from the start).
3558
3559       ------------------
3560       -- 4.4  Primary --
3561       ------------------
3562
3563       --  PRIMARY ::=
3564       --    NUMERIC_LITERAL  | null
3565       --  | STRING_LITERAL   | AGGREGATE
3566       --  | NAME             | QUALIFIED_EXPRESSION
3567       --  | ALLOCATOR        | (EXPRESSION)
3568
3569       --  Usually there is no explicit node in the tree for primary. Instead
3570       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3571       --  exceptions. First, there is an explicit node for a null primary.
3572
3573       --  N_Null
3574       --  Sloc points to NULL
3575       --  plus fields for expression
3576
3577       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3578       --  that the parser keep track of which subexpressions are enclosed
3579       --  in parentheses, and how many levels of parentheses are used. This
3580       --  information is required for optimization purposes, and also for
3581       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3582       --  conform with ((((1)))) in the body).
3583
3584       --  The parentheses are recorded by keeping a Paren_Count field in every
3585       --  subexpression node (it is actually present in all nodes, but only
3586       --  used in subexpression nodes). This count records the number of
3587       --  levels of parentheses. If the number of levels in the source exceeds
3588       --  the maximum accommodated by this count, then the count is simply left
3589       --  at the maximum value. This means that there are some pathological
3590       --  cases of failure to detect conformance failures (e.g. an expression
3591       --  with 500 levels of parens will conform with one with 501 levels),
3592       --  but we do not need to lose sleep over this.
3593
3594       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3595       --  type N_Parenthesized_Expression used to accurately record unlimited
3596       --  numbers of levels of parentheses. However, it turned out to be a
3597       --  real nuisance to have to take into account the possible presence of
3598       --  this node during semantic analysis, since basically parentheses have
3599       --  zero relevance to semantic analysis.
3600
3601       --  Note: the level of parentheses always present in things like
3602       --  aggregates does not count, only the parentheses in the primary
3603       --  (EXPRESSION) affect the setting of the Paren_Count field.
3604
3605       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3606       --  treated as though it were Empty) if No_Initialization is set True.
3607
3608       --------------------------------------
3609       -- 4.5  Short Circuit Control Forms --
3610       --------------------------------------
3611
3612       --  EXPRESSION ::=
3613       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3614
3615       --  Gigi restriction: For both these control forms, the operand and
3616       --  result types are always Standard.Boolean. The expander inserts the
3617       --  required conversion operations where needed to ensure this is the
3618       --  case.
3619
3620       --  N_And_Then
3621       --  Sloc points to AND of AND THEN
3622       --  Left_Opnd (Node2)
3623       --  Right_Opnd (Node3)
3624       --  Actions (List1-Sem)
3625       --  plus fields for expression
3626
3627       --  N_Or_Else
3628       --  Sloc points to OR of OR ELSE
3629       --  Left_Opnd (Node2)
3630       --  Right_Opnd (Node3)
3631       --  Actions (List1-Sem)
3632       --  plus fields for expression
3633
3634       --  Note: The Actions field is used to hold actions associated with
3635       --  the right hand operand. These have to be treated specially since
3636       --  they are not unconditionally executed. See Insert_Actions for a
3637       --  more detailed description of how these actions are handled.
3638
3639       ---------------------------
3640       -- 4.5  Membership Tests --
3641       ---------------------------
3642
3643       --  RELATION ::=
3644       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3645
3646       --  MEMBERSHIP_CHOICE_LIST ::=
3647       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3648
3649       --  MEMBERSHIP_CHOICE ::=
3650       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3651
3652       --  Note: although the grammar above allows only a range or a subtype
3653       --  mark, the parser in fact will accept any simple expression in place
3654       --  of a subtype mark. This means that the semantic analyzer must be able
3655       --  to deal with, and diagnose a simple expression other than a name for
3656       --  the right operand. This simplifies error recovery in the parser.
3657
3658       --  The Alternatives field below is present only if there is more
3659       --  than one Membership_Choice present (which is legitimate only in
3660       --  Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3661       --  contains the list of choices. In the tree passed to the back end,
3662       --  Alternatives is always No_List, and Right_Opnd is set (i.e. the
3663       --  expansion circuitry expands out the complex set membership case
3664       --  using simple membership operations).
3665
3666       --  Should we rename Alternatives here to Membership_Choices ???
3667
3668       --  N_In
3669       --  Sloc points to IN
3670       --  Left_Opnd (Node2)
3671       --  Right_Opnd (Node3)
3672       --  Alternatives (List4) (set to No_List if only one set alternative)
3673       --  plus fields for expression
3674
3675       --  N_Not_In
3676       --  Sloc points to NOT of NOT IN
3677       --  Left_Opnd (Node2)
3678       --  Right_Opnd (Node3)
3679       --  Alternatives (List4) (set to No_List if only one set alternative)
3680       --  plus fields for expression
3681
3682       --------------------
3683       -- 4.5  Operators --
3684       --------------------
3685
3686       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3687
3688       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3689
3690       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3691
3692       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3693
3694       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3695
3696       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3697
3698       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3699
3700       --     x #* y
3701       --     x #/ y
3702       --     x #mod y
3703       --     x #rem y
3704
3705       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3706       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3707       --  All handling of smalls for multiplication and division is handled
3708       --  by the front end (mod and rem result only from expansion). Gigi
3709       --  thus never needs to worry about small values (for other operators
3710       --  operating on fixed-point, e.g. addition, the small value does not
3711       --  have any semantic effect anyway, these are always integer operations.
3712
3713       --  Gigi restriction: For all operators taking Boolean operands, the
3714       --  type is always Standard.Boolean. The expander inserts the required
3715       --  conversion operations where needed to ensure this is the case.
3716
3717       --  N_Op_And
3718       --  Sloc points to AND
3719       --  Do_Length_Check (Flag4-Sem)
3720       --  plus fields for binary operator
3721       --  plus fields for expression
3722
3723       --  N_Op_Or
3724       --  Sloc points to OR
3725       --  Do_Length_Check (Flag4-Sem)
3726       --  plus fields for binary operator
3727       --  plus fields for expression
3728
3729       --  N_Op_Xor
3730       --  Sloc points to XOR
3731       --  Do_Length_Check (Flag4-Sem)
3732       --  plus fields for binary operator
3733       --  plus fields for expression
3734
3735       --  N_Op_Eq
3736       --  Sloc points to =
3737       --  plus fields for binary operator
3738       --  plus fields for expression
3739
3740       --  N_Op_Ne
3741       --  Sloc points to /=
3742       --  plus fields for binary operator
3743       --  plus fields for expression
3744
3745       --  N_Op_Lt
3746       --  Sloc points to <
3747       --  plus fields for binary operator
3748       --  plus fields for expression
3749
3750       --  N_Op_Le
3751       --  Sloc points to <=
3752       --  plus fields for binary operator
3753       --  plus fields for expression
3754
3755       --  N_Op_Gt
3756       --  Sloc points to >
3757       --  plus fields for binary operator
3758       --  plus fields for expression
3759
3760       --  N_Op_Ge
3761       --  Sloc points to >=
3762       --  plus fields for binary operator
3763       --  plus fields for expression
3764
3765       --  N_Op_Add
3766       --  Sloc points to + (binary)
3767       --  plus fields for binary operator
3768       --  plus fields for expression
3769
3770       --  N_Op_Subtract
3771       --  Sloc points to - (binary)
3772       --  plus fields for binary operator
3773       --  plus fields for expression
3774
3775       --  N_Op_Concat
3776       --  Sloc points to &
3777       --  Is_Component_Left_Opnd (Flag13-Sem)
3778       --  Is_Component_Right_Opnd (Flag14-Sem)
3779       --  plus fields for binary operator
3780       --  plus fields for expression
3781
3782       --  N_Op_Multiply
3783       --  Sloc points to *
3784       --  Treat_Fixed_As_Integer (Flag14-Sem)
3785       --  Rounded_Result (Flag18-Sem)
3786       --  plus fields for binary operator
3787       --  plus fields for expression
3788
3789       --  N_Op_Divide
3790       --  Sloc points to /
3791       --  Treat_Fixed_As_Integer (Flag14-Sem)
3792       --  Do_Division_Check (Flag13-Sem)
3793       --  Rounded_Result (Flag18-Sem)
3794       --  plus fields for binary operator
3795       --  plus fields for expression
3796
3797       --  N_Op_Mod
3798       --  Sloc points to MOD
3799       --  Treat_Fixed_As_Integer (Flag14-Sem)
3800       --  Do_Division_Check (Flag13-Sem)
3801       --  plus fields for binary operator
3802       --  plus fields for expression
3803
3804       --  N_Op_Rem
3805       --  Sloc points to REM
3806       --  Treat_Fixed_As_Integer (Flag14-Sem)
3807       --  Do_Division_Check (Flag13-Sem)
3808       --  plus fields for binary operator
3809       --  plus fields for expression
3810
3811       --  N_Op_Expon
3812       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3813       --  Sloc points to **
3814       --  plus fields for binary operator
3815       --  plus fields for expression
3816
3817       --  N_Op_Plus
3818       --  Sloc points to + (unary)
3819       --  plus fields for unary operator
3820       --  plus fields for expression
3821
3822       --  N_Op_Minus
3823       --  Sloc points to - (unary)
3824       --  plus fields for unary operator
3825       --  plus fields for expression
3826
3827       --  N_Op_Abs
3828       --  Sloc points to ABS
3829       --  plus fields for unary operator
3830       --  plus fields for expression
3831
3832       --  N_Op_Not
3833       --  Sloc points to NOT
3834       --  plus fields for unary operator
3835       --  plus fields for expression
3836
3837       --  See also shift operators in section B.2
3838
3839       --  Note on fixed-point operations passed to Gigi: For adding operators,
3840       --  the semantics is to treat these simply as integer operations, with
3841       --  the small values being ignored (the bounds are already stored in
3842       --  units of small, so that constraint checking works as usual). For the
3843       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3844       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3845       --  thus treat these nodes in identical manner, ignoring small values.
3846
3847       ---------------------------------
3848       -- 4.5.9 Quantified Expression --
3849       ---------------------------------
3850
3851       --  QUANTIFIED_EXPRESSION ::=
3852       --    for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
3853       --  | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
3854       --
3855       --  QUANTIFIER ::= all | some
3856
3857       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
3858       --  is present at a time, in which case the other one is empty.
3859
3860       --  N_Quantified_Expression
3861       --  Sloc points to FOR
3862       --  Iterator_Specification (Node2)
3863       --  Loop_Parameter_Specification (Node4)
3864       --  Condition (Node1)
3865       --  All_Present (Flag15)
3866
3867       --------------------------
3868       -- 4.6  Type Conversion --
3869       --------------------------
3870
3871       --  TYPE_CONVERSION ::=
3872       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3873
3874       --  In the (NAME) case, the name is stored as the expression
3875
3876       --  Note: the parser never generates a type conversion node, since it
3877       --  looks like an indexed component which is generated by preference.
3878       --  The semantic pass must correct this misidentification.
3879
3880       --  Gigi handles conversions that involve no change in the root type,
3881       --  and also all conversions from integer to floating-point types.
3882       --  Conversions from floating-point to integer are only handled in
3883       --  the case where Float_Truncate flag set. Other conversions from
3884       --  floating-point to integer (involving rounding) and all conversions
3885       --  involving fixed-point types are handled by the expander.
3886
3887       --  Sprint syntax if Float_Truncate set: X^(Y)
3888       --  Sprint syntax if Conversion_OK set X?(Y)
3889       --  Sprint syntax if both flags set X?^(Y)
3890
3891       --  Note: If either the operand or result type is fixed-point, Gigi will
3892       --  only see a type conversion node with Conversion_OK set. The front end
3893       --  takes care of all handling of small's for fixed-point conversions.
3894
3895       --  N_Type_Conversion
3896       --  Sloc points to first token of subtype mark
3897       --  Subtype_Mark (Node4)
3898       --  Expression (Node3)
3899       --  Do_Tag_Check (Flag13-Sem)
3900       --  Do_Length_Check (Flag4-Sem)
3901       --  Do_Overflow_Check (Flag17-Sem)
3902       --  Float_Truncate (Flag11-Sem)
3903       --  Rounded_Result (Flag18-Sem)
3904       --  Conversion_OK (Flag14-Sem)
3905       --  plus fields for expression
3906
3907       --  Note: if a range check is required, then the Do_Range_Check flag
3908       --  is set in the Expression with the check being done against the
3909       --  target type range (after the base type conversion, if any).
3910
3911       -------------------------------
3912       -- 4.7  Qualified Expression --
3913       -------------------------------
3914
3915       --  QUALIFIED_EXPRESSION ::=
3916       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3917
3918       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3919       --  the expression, so the Expression field of this node always points
3920       --  to a parenthesized expression in this case (i.e. Paren_Count will
3921       --  always be non-zero for the referenced expression if it is not an
3922       --  aggregate).
3923
3924       --  N_Qualified_Expression
3925       --  Sloc points to apostrophe
3926       --  Subtype_Mark (Node4)
3927       --  Expression (Node3) expression or aggregate
3928       --  plus fields for expression
3929
3930       --------------------
3931       -- 4.8  Allocator --
3932       --------------------
3933
3934       --  ALLOCATOR ::=
3935       --      new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
3936       --    | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
3937       --
3938       --  SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
3939
3940       --  Sprint syntax (when storage pool present)
3941       --    new xxx (storage_pool = pool)
3942       --  or
3943       --    new (subpool) xxx (storage_pool = pool)
3944
3945       --  N_Allocator
3946       --  Sloc points to NEW
3947       --  Expression (Node3) subtype indication or qualified expression
3948       --  Subpool_Handle_Name (Node4) (set to Empty if not present)
3949       --  Storage_Pool (Node1-Sem)
3950       --  Procedure_To_Call (Node2-Sem)
3951       --  Null_Exclusion_Present (Flag11)
3952       --  No_Initialization (Flag13-Sem)
3953       --  Is_Static_Coextension (Flag14-Sem)
3954       --  Do_Storage_Check (Flag17-Sem)
3955       --  Is_Dynamic_Coextension (Flag18-Sem)
3956       --  plus fields for expression
3957
3958       --  Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3959       --  This flag has a special function in conjunction with the restriction
3960       --  No_Implicit_Heap_Allocations, which will be triggered if this flag
3961       --  is not set. This means that if a source allocator is replaced with
3962       --  a constructed allocator, the Comes_From_Source flag should be copied
3963       --  to the newly created allocator.
3964
3965       ---------------------------------
3966       -- 5.1  Sequence Of Statements --
3967       ---------------------------------
3968
3969       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3970
3971       --  Note: Although the parser will not accept a declaration as a
3972       --  statement, the semantic analyzer may insert declarations (e.g.
3973       --  declarations of implicit types needed for execution of other
3974       --  statements) into a sequence of statements, so the code generator
3975       --  should be prepared to accept a declaration where a statement is
3976       --  expected. Note also that pragmas can appear as statements.
3977
3978       --------------------
3979       -- 5.1  Statement --
3980       --------------------
3981
3982       --  STATEMENT ::=
3983       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3984
3985       --  There is no explicit node in the tree for a statement. Instead, the
3986       --  individual statement appears directly. Labels are treated  as a
3987       --  kind of statement, i.e. they are linked into a statement list at
3988       --  the point they appear, so the labeled statement appears following
3989       --  the label or labels in the statement list.
3990
3991       ---------------------------
3992       -- 5.1  Simple Statement --
3993       ---------------------------
3994
3995       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
3996       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
3997       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
3998       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3999       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
4000       --  | ABORT_STATEMENT         | RAISE_STATEMENT
4001       --  | CODE_STATEMENT
4002
4003       -----------------------------
4004       -- 5.1  Compound Statement --
4005       -----------------------------
4006
4007       --  COMPOUND_STATEMENT ::=
4008       --    IF_STATEMENT              | CASE_STATEMENT
4009       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
4010       --  | EXTENDED_RETURN_STATEMENT
4011       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
4012
4013       -------------------------
4014       -- 5.1  Null Statement --
4015       -------------------------
4016
4017       --  NULL_STATEMENT ::= null;
4018
4019       --  N_Null_Statement
4020       --  Sloc points to NULL
4021
4022       ----------------
4023       -- 5.1  Label --
4024       ----------------
4025
4026       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4027
4028       --  Note that the occurrence of a label is not a defining identifier,
4029       --  but rather a referencing occurrence. The defining occurrence is
4030       --  in the implicit label declaration which occurs in the innermost
4031       --  enclosing block.
4032
4033       --  N_Label
4034       --  Sloc points to <<
4035       --  Identifier (Node1) direct name of statement identifier
4036       --  Exception_Junk (Flag8-Sem)
4037
4038       --  Note: Before Ada 2012, a label is always followed by a statement,
4039       --  and this is true in the tree even in Ada 2012 mode (the parser
4040       --  inserts a null statement marked with Comes_From_Source False).
4041
4042       -------------------------------
4043       -- 5.1  Statement Identifier --
4044       -------------------------------
4045
4046       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
4047
4048       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4049       --  (not an OPERATOR_SYMBOL)
4050
4051       -------------------------------
4052       -- 5.2  Assignment Statement --
4053       -------------------------------
4054
4055       --  ASSIGNMENT_STATEMENT ::=
4056       --    variable_NAME := EXPRESSION;
4057
4058       --  N_Assignment_Statement
4059       --  Sloc points to :=
4060       --  Name (Node2)
4061       --  Expression (Node3)
4062       --  Do_Tag_Check (Flag13-Sem)
4063       --  Do_Length_Check (Flag4-Sem)
4064       --  Forwards_OK (Flag5-Sem)
4065       --  Backwards_OK (Flag6-Sem)
4066       --  No_Ctrl_Actions (Flag7-Sem)
4067       --  Componentwise_Assignment (Flag14-Sem)
4068       --  Suppress_Assignment_Checks (Flag18-Sem)
4069
4070       --  Note: if a range check is required, then the Do_Range_Check flag
4071       --  is set in the Expression (right hand side), with the check being
4072       --  done against the type of the Name (left hand side).
4073
4074       --  Note: the back end places some restrictions on the form of the
4075       --  Expression field. If the object being assigned to is Atomic, then
4076       --  the Expression may not have the form of an aggregate (since this
4077       --  might cause the back end to generate separate assignments). In this
4078       --  case the front end must generate an extra temporary and initialize
4079       --  this temporary as required (the temporary itself is not atomic).
4080
4081       -----------------------
4082       -- 5.3  If Statement --
4083       -----------------------
4084
4085       --  IF_STATEMENT ::=
4086       --    if CONDITION then
4087       --      SEQUENCE_OF_STATEMENTS
4088       --    {elsif CONDITION then
4089       --      SEQUENCE_OF_STATEMENTS}
4090       --    [else
4091       --      SEQUENCE_OF_STATEMENTS]
4092       --    end if;
4093
4094       --  Gigi restriction: This expander ensures that the type of the
4095       --  Condition fields is always Standard.Boolean, even if the type
4096       --  in the source is some non-standard boolean type.
4097
4098       --  N_If_Statement
4099       --  Sloc points to IF
4100       --  Condition (Node1)
4101       --  Then_Statements (List2)
4102       --  Elsif_Parts (List3) (set to No_List if none present)
4103       --  Else_Statements (List4) (set to No_List if no else part present)
4104       --  End_Span (Uint5) (set to No_Uint if expander generated)
4105
4106       --  N_Elsif_Part
4107       --  Sloc points to ELSIF
4108       --  Condition (Node1)
4109       --  Then_Statements (List2)
4110       --  Condition_Actions (List3-Sem)
4111
4112       --------------------
4113       -- 5.3  Condition --
4114       --------------------
4115
4116       --  CONDITION ::= boolean_EXPRESSION
4117
4118       -------------------------
4119       -- 5.4  Case Statement --
4120       -------------------------
4121
4122       --  CASE_STATEMENT ::=
4123       --    case EXPRESSION is
4124       --      CASE_STATEMENT_ALTERNATIVE
4125       --      {CASE_STATEMENT_ALTERNATIVE}
4126       --    end case;
4127
4128       --  Note: the Alternatives can contain pragmas. These only occur at
4129       --  the start of the list, since any pragmas occurring after the first
4130       --  alternative are absorbed into the corresponding statement sequence.
4131
4132       --  N_Case_Statement
4133       --  Sloc points to CASE
4134       --  Expression (Node3)
4135       --  Alternatives (List4)
4136       --  End_Span (Uint5) (set to No_Uint if expander generated)
4137
4138       --  Note: Before Ada 2012, a pragma in a statement sequence is always
4139       --  followed by a statement, and this is true in the tree even in Ada
4140       --  2012 mode (the parser inserts a null statement marked with the flag
4141       --  Comes_From_Source False).
4142
4143       -------------------------------------
4144       -- 5.4  Case Statement Alternative --
4145       -------------------------------------
4146
4147       --  CASE_STATEMENT_ALTERNATIVE ::=
4148       --    when DISCRETE_CHOICE_LIST =>
4149       --      SEQUENCE_OF_STATEMENTS
4150
4151       --  N_Case_Statement_Alternative
4152       --  Sloc points to WHEN
4153       --  Discrete_Choices (List4)
4154       --  Statements (List3)
4155
4156       -------------------------
4157       -- 5.5  Loop Statement --
4158       -------------------------
4159
4160       --  LOOP_STATEMENT ::=
4161       --    [loop_STATEMENT_IDENTIFIER :]
4162       --      [ITERATION_SCHEME] loop
4163       --        SEQUENCE_OF_STATEMENTS
4164       --      end loop [loop_IDENTIFIER];
4165
4166       --  Note: The occurrence of a loop label is not a defining identifier
4167       --  but rather a referencing occurrence. The defining occurrence is in
4168       --  the implicit label declaration which occurs in the innermost
4169       --  enclosing block.
4170
4171       --  Note: there is always a loop statement identifier present in
4172       --  the tree, even if none was given in the source. In the case where
4173       --  no loop identifier is given in the source, the parser creates
4174       --  a name of the form _Loop_n, where n is a decimal integer (the
4175       --  two underlines ensure that the loop names created in this manner
4176       --  do not conflict with any user defined identifiers), and the flag
4177       --  Has_Created_Identifier is set to True. The only exception to the
4178       --  rule that all loop statement nodes have identifiers occurs for
4179       --  loops constructed by the expander, and the semantic analyzer will
4180       --  create and supply dummy loop identifiers in these cases.
4181
4182       --  N_Loop_Statement
4183       --  Sloc points to LOOP
4184       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
4185       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4186       --  Statements (List3)
4187       --  End_Label (Node4)
4188       --  Has_Created_Identifier (Flag15)
4189       --  Is_Null_Loop (Flag16)
4190       --  Suppress_Loop_Warnings (Flag17)
4191
4192       --  Note: the parser fills in the Identifier field if there is an
4193       --  explicit loop identifier. Otherwise the parser leaves this field
4194       --  set to Empty, and then the semantic processing for a loop statement
4195       --  creates an identifier, setting the Has_Created_Identifier flag to
4196       --  True. So after semantic analysis, the Identifier is always set,
4197       --  referencing an identifier whose entity has an Ekind of E_Loop.
4198
4199       ---------------------------
4200       -- 5.5  Iteration Scheme --
4201       ---------------------------
4202
4203       --  ITERATION_SCHEME ::=
4204       --    while CONDITION
4205       --  | for LOOP_PARAMETER_SPECIFICATION
4206       --  | for ITERATOR_SPECIFICATION
4207
4208       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
4209       --  is present at a time, in which case the other one is empty. Both are
4210       --  empty in the case of a WHILE loop.
4211
4212       --  Gigi restriction: This expander ensures that the type of the
4213       --  Condition field is always Standard.Boolean, even if the type
4214       --  in the source is some non-standard boolean type.
4215
4216       --  N_Iteration_Scheme
4217       --  Sloc points to WHILE or FOR
4218       --  Condition (Node1) (set to Empty if FOR case)
4219       --  Condition_Actions (List3-Sem)
4220       --  Iterator_Specification (Node2) (set to Empty if WHILE case)
4221       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4222
4223       ---------------------------------------
4224       -- 5.5  Loop Parameter Specification --
4225       ---------------------------------------
4226
4227       --  LOOP_PARAMETER_SPECIFICATION ::=
4228       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4229
4230       --  N_Loop_Parameter_Specification
4231       --  Sloc points to first identifier
4232       --  Defining_Identifier (Node1)
4233       --  Reverse_Present (Flag15)
4234       --  Discrete_Subtype_Definition (Node4)
4235
4236       -----------------------------------
4237       -- 5.5.1  Iterator Specification --
4238       -----------------------------------
4239
4240       --  ITERATOR_SPECIFICATION ::=
4241       --    DEFINING_IDENTIFIER in [reverse] NAME
4242       --  | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4243
4244       --  N_Iterator_Specification
4245       --  Sloc points to defining identifier
4246       --  Defining_Identifier (Node1)
4247       --  Name (Node2)
4248       --  Reverse_Present (Flag15)
4249       --  Of_Present (Flag16)
4250       --  Subtype_Indication (Node5)
4251
4252       --  Note: The Of_Present flag distinguishes the two forms
4253
4254       --------------------------
4255       -- 5.6  Block Statement --
4256       --------------------------
4257
4258       --  BLOCK_STATEMENT ::=
4259       --    [block_STATEMENT_IDENTIFIER:]
4260       --      [declare
4261       --        DECLARATIVE_PART]
4262       --      begin
4263       --        HANDLED_SEQUENCE_OF_STATEMENTS
4264       --      end [block_IDENTIFIER];
4265
4266       --  Note that the occurrence of a block identifier is not a defining
4267       --  identifier, but rather a referencing occurrence. The defining
4268       --  occurrence is an E_Block entity declared by the implicit label
4269       --  declaration which occurs in the innermost enclosing block statement
4270       --  or body; the block identifier denotes that E_Block.
4271
4272       --  For block statements that come from source code, there is always a
4273       --  block statement identifier present in the tree, denoting an
4274       --  E_Block. In the case where no block identifier is given in the
4275       --  source, the parser creates a name of the form B_n, where n is a
4276       --  decimal integer, and the flag Has_Created_Identifier is set to
4277       --  True. Blocks constructed by the expander usually have no identifier,
4278       --  and no corresponding entity.
4279
4280       --  Note: the block statement created for an extended return statement
4281       --  has an entity, and this entity is an E_Return_Statement, rather than
4282       --  the usual E_Block.
4283
4284       --  Note: Exception_Junk is set for the wrapping blocks created during
4285       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4286
4287       --  N_Block_Statement
4288       --  Sloc points to DECLARE or BEGIN
4289       --  Identifier (Node1) block direct name (set to Empty if not present)
4290       --  Declarations (List2) (set to No_List if no DECLARE part)
4291       --  Handled_Statement_Sequence (Node4)
4292       --  Is_Task_Master (Flag5-Sem)
4293       --  Activation_Chain_Entity (Node3-Sem)
4294       --  Has_Created_Identifier (Flag15)
4295       --  Is_Task_Allocation_Block (Flag6)
4296       --  Is_Asynchronous_Call_Block (Flag7)
4297       --  Exception_Junk (Flag8-Sem)
4298
4299       -------------------------
4300       -- 5.7  Exit Statement --
4301       -------------------------
4302
4303       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4304
4305       --  Gigi restriction: This expander ensures that the type of the
4306       --  Condition field is always Standard.Boolean, even if the type
4307       --  in the source is some non-standard boolean type.
4308
4309       --  N_Exit_Statement
4310       --  Sloc points to EXIT
4311       --  Name (Node2) (set to Empty if no loop name present)
4312       --  Condition (Node1) (set to Empty if no WHEN part present)
4313       --  Next_Exit_Statement (Node3-Sem): Next exit on chain
4314
4315       -------------------------
4316       -- 5.9  Goto Statement --
4317       -------------------------
4318
4319       --  GOTO_STATEMENT ::= goto label_NAME;
4320
4321       --  N_Goto_Statement
4322       --  Sloc points to GOTO
4323       --  Name (Node2)
4324       --  Exception_Junk (Flag8-Sem)
4325
4326       ---------------------------------
4327       -- 6.1  Subprogram Declaration --
4328       ---------------------------------
4329
4330       --  SUBPROGRAM_DECLARATION ::=
4331       --    SUBPROGRAM_SPECIFICATION
4332       --      [ASPECT_SPECIFICATIONS];
4333
4334       --  N_Subprogram_Declaration
4335       --  Sloc points to FUNCTION or PROCEDURE
4336       --  Specification (Node1)
4337       --  Body_To_Inline (Node3-Sem)
4338       --  Corresponding_Body (Node5-Sem)
4339       --  Parent_Spec (Node4-Sem)
4340
4341       ------------------------------------------
4342       -- 6.1  Abstract Subprogram Declaration --
4343       ------------------------------------------
4344
4345       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4346       --    SUBPROGRAM_SPECIFICATION is abstract
4347       --      [ASPECT_SPECIFICATIONS];
4348
4349       --  N_Abstract_Subprogram_Declaration
4350       --  Sloc points to ABSTRACT
4351       --  Specification (Node1)
4352
4353       -----------------------------------
4354       -- 6.1  Subprogram Specification --
4355       -----------------------------------
4356
4357       --  SUBPROGRAM_SPECIFICATION ::=
4358       --    [[not] overriding]
4359       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4360       --  | [[not] overriding]
4361       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4362
4363       --  Note: there are no separate nodes for the profiles, instead the
4364       --  information appears directly in the following nodes.
4365
4366       --  N_Function_Specification
4367       --  Sloc points to FUNCTION
4368       --  Defining_Unit_Name (Node1) (the designator)
4369       --  Elaboration_Boolean (Node2-Sem)
4370       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4371       --  Null_Exclusion_Present (Flag11)
4372       --  Result_Definition (Node4) for result subtype
4373       --  Generic_Parent (Node5-Sem)
4374       --  Must_Override (Flag14) set if overriding indicator present
4375       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4376
4377       --  N_Procedure_Specification
4378       --  Sloc points to PROCEDURE
4379       --  Defining_Unit_Name (Node1)
4380       --  Elaboration_Boolean (Node2-Sem)
4381       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4382       --  Generic_Parent (Node5-Sem)
4383       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4384       --  Must_Override (Flag14) set if overriding indicator present
4385       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4386
4387       --  Note: overriding indicator is an Ada 2005 feature
4388
4389       ---------------------
4390       -- 6.1  Designator --
4391       ---------------------
4392
4393       --  DESIGNATOR ::=
4394       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4395
4396       --  Designators that are simply identifiers or operator symbols appear
4397       --  directly in the tree in this form. The following node is used only
4398       --  in the case where the designator has a parent unit name component.
4399
4400       --  N_Designator
4401       --  Sloc points to period
4402       --  Name (Node2) holds the parent unit name. Note that this is always
4403       --   non-Empty, since this node is only used for the case where a
4404       --   parent library unit package name is present.
4405       --  Identifier (Node1)
4406
4407       --  Note that the identifier can also be an operator symbol here
4408
4409       ------------------------------
4410       -- 6.1  Defining Designator --
4411       ------------------------------
4412
4413       --  DEFINING_DESIGNATOR ::=
4414       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4415
4416       -------------------------------------
4417       -- 6.1  Defining Program Unit Name --
4418       -------------------------------------
4419
4420       --  DEFINING_PROGRAM_UNIT_NAME ::=
4421       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4422
4423       --  The parent unit name is present only in the case of a child unit
4424       --  name (permissible only for Ada 95 for a library level unit, i.e.
4425       --  a unit at scope level one). If no such name is present, the defining
4426       --  program unit name is represented simply as the defining identifier.
4427       --  In the child unit case, the following node is used to represent the
4428       --  child unit name.
4429
4430       --  N_Defining_Program_Unit_Name
4431       --  Sloc points to period
4432       --  Name (Node2) holds the parent unit name. Note that this is always
4433       --   non-Empty, since this node is only used for the case where a
4434       --   parent unit name is present.
4435       --  Defining_Identifier (Node1)
4436
4437       --------------------------
4438       -- 6.1  Operator Symbol --
4439       --------------------------
4440
4441       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4442
4443       --  Note: the fields of the N_Operator_Symbol node are laid out to
4444       --  match the corresponding fields of an N_Character_Literal node. This
4445       --  allows easy conversion of the operator symbol node into a character
4446       --  literal node in the case where a string constant of the form of an
4447       --  operator symbol is scanned out as such, but turns out semantically
4448       --  to be a string literal that is not an operator. For details see
4449       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4450
4451       --  N_Operator_Symbol
4452       --  Sloc points to literal
4453       --  Chars (Name1) contains the Name_Id for the operator symbol
4454       --  Strval (Str3) Id of string value. This is used if the operator
4455       --   symbol turns out to be a normal string after all.
4456       --  Entity (Node4-Sem)
4457       --  Associated_Node (Node4-Sem)
4458       --  Has_Private_View (Flag11-Sem) set in generic units.
4459       --  Etype (Node5-Sem)
4460
4461       --  Note: the Strval field may be set to No_String for generated
4462       --  operator symbols that are known not to be string literals
4463       --  semantically.
4464
4465       -----------------------------------
4466       -- 6.1  Defining Operator Symbol --
4467       -----------------------------------
4468
4469       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4470
4471       --  A defining operator symbol is an entity, which has additional
4472       --  fields depending on the setting of the Ekind field. These
4473       --  additional fields are defined (and access subprograms declared)
4474       --  in package Einfo.
4475
4476       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4477       --  are deliberately layed out to match the layout of fields in an
4478       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4479       --  an operator symbol node into a defining operator symbol node.
4480       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4481       --  for further details.
4482
4483       --  N_Defining_Operator_Symbol
4484       --  Sloc points to literal
4485       --  Chars (Name1) contains the Name_Id for the operator symbol
4486       --  Next_Entity (Node2-Sem)
4487       --  Scope (Node3-Sem)
4488       --  Etype (Node5-Sem)
4489
4490       ----------------------------
4491       -- 6.1  Parameter Profile --
4492       ----------------------------
4493
4494       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4495
4496       ---------------------------------------
4497       -- 6.1  Parameter and Result Profile --
4498       ---------------------------------------
4499
4500       --  PARAMETER_AND_RESULT_PROFILE ::=
4501       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4502       --  | [FORMAL_PART] return ACCESS_DEFINITION
4503
4504       --  There is no explicit node in the tree for a parameter and result
4505       --  profile. Instead the information appears directly in the parent.
4506
4507       ----------------------
4508       -- 6.1  Formal Part --
4509       ----------------------
4510
4511       --  FORMAL_PART ::=
4512       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4513
4514       ----------------------------------
4515       -- 6.1  Parameter Specification --
4516       ----------------------------------
4517
4518       --  PARAMETER_SPECIFICATION ::=
4519       --    DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4520       --      SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4521       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4522       --      [:= DEFAULT_EXPRESSION]
4523
4524       --  Although the syntax allows multiple identifiers in the list, the
4525       --  semantics is as though successive specifications were given with
4526       --  identical type definition and expression components. To simplify
4527       --  semantic processing, the parser represents a multiple declaration
4528       --  case as a sequence of single Specifications, using the More_Ids and
4529       --  Prev_Ids flags to preserve the original source form as described
4530       --  in the section on "Handling of Defining Identifier Lists".
4531
4532       --  ALIASED can only be present in Ada 2012 mode
4533
4534       --  N_Parameter_Specification
4535       --  Sloc points to first identifier
4536       --  Defining_Identifier (Node1)
4537       --  Aliased_Present (Flag4)
4538       --  In_Present (Flag15)
4539       --  Out_Present (Flag17)
4540       --  Null_Exclusion_Present (Flag11)
4541       --  Parameter_Type (Node2) subtype mark or access definition
4542       --  Expression (Node3) (set to Empty if no default expression present)
4543       --  Do_Accessibility_Check (Flag13-Sem)
4544       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4545       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4546       --  Default_Expression (Node5-Sem)
4547
4548       ---------------
4549       -- 6.1  Mode --
4550       ---------------
4551
4552       --  MODE ::= [in] | in out | out
4553
4554       --  There is no explicit node in the tree for the Mode. Instead the
4555       --  In_Present and Out_Present flags are set in the parent node to
4556       --  record the presence of keywords specifying the mode.
4557
4558       --------------------------
4559       -- 6.3  Subprogram Body --
4560       --------------------------
4561
4562       --  SUBPROGRAM_BODY ::=
4563       --    SUBPROGRAM_SPECIFICATION is
4564       --      DECLARATIVE_PART
4565       --    begin
4566       --      HANDLED_SEQUENCE_OF_STATEMENTS
4567       --    end [DESIGNATOR];
4568
4569       --  N_Subprogram_Body
4570       --  Sloc points to FUNCTION or PROCEDURE
4571       --  Specification (Node1)
4572       --  Declarations (List2)
4573       --  Handled_Statement_Sequence (Node4)
4574       --  Activation_Chain_Entity (Node3-Sem)
4575       --  Corresponding_Spec (Node5-Sem)
4576       --  Acts_As_Spec (Flag4-Sem)
4577       --  Bad_Is_Detected (Flag15) used only by parser
4578       --  Do_Storage_Check (Flag17-Sem)
4579       --  Has_Pragma_Priority (Flag6-Sem)
4580       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4581       --  Is_Entry_Barrier_Function (Flag8-Sem)
4582       --  Is_Task_Master (Flag5-Sem)
4583       --  Was_Originally_Stub (Flag13-Sem)
4584       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4585       --  Has_Pragma_CPU (Flag14-Sem)
4586
4587       -------------------------
4588       -- Expression Function --
4589       -------------------------
4590
4591       --  This is an Ada 2012 extension, we put it here for now, to be labeled
4592       --  and put in its proper section when we know exactly where that is!
4593
4594       --  EXPRESSION_FUNCTION ::=
4595       --    FUNCTION SPECIFICATION IS (EXPRESSION);
4596
4597       --  N_Expression_Function
4598       --  Sloc points to FUNCTION
4599       --  Specification (Node1)
4600       --  Expression (Node3)
4601
4602       -----------------------------------
4603       -- 6.4  Procedure Call Statement --
4604       -----------------------------------
4605
4606       --  PROCEDURE_CALL_STATEMENT ::=
4607       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4608
4609       --  Note: the reason that a procedure call has expression fields is
4610       --  that it semantically resembles an expression, e.g. overloading is
4611       --  allowed and a type is concocted for semantic processing purposes.
4612       --  Certain of these fields, such as Parens are not relevant, but it
4613       --  is easier to just supply all of them together!
4614
4615       --  N_Procedure_Call_Statement
4616       --  Sloc points to first token of name or prefix
4617       --  Name (Node2) stores name or prefix
4618       --  Parameter_Associations (List3) (set to No_List if no
4619       --   actual parameter part)
4620       --  First_Named_Actual (Node4-Sem)
4621       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4622       --  Do_Tag_Check (Flag13-Sem)
4623       --  No_Elaboration_Check (Flag14-Sem)
4624       --  Parameter_List_Truncated (Flag17-Sem)
4625       --  ABE_Is_Certain (Flag18-Sem)
4626       --  plus fields for expression
4627
4628       --  If any IN parameter requires a range check, then the corresponding
4629       --  argument expression has the Do_Range_Check flag set, and the range
4630       --  check is done against the formal type. Note that this argument
4631       --  expression may appear directly in the Parameter_Associations list,
4632       --  or may be a descendent of an N_Parameter_Association node that
4633       --  appears in this list.
4634
4635       ------------------------
4636       -- 6.4  Function Call --
4637       ------------------------
4638
4639       --  FUNCTION_CALL ::=
4640       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4641
4642       --  Note: the parser may generate an indexed component node or simply
4643       --  a name node instead of a function call node. The semantic pass must
4644       --  correct this misidentification.
4645
4646       --  N_Function_Call
4647       --  Sloc points to first token of name or prefix
4648       --  Name (Node2) stores name or prefix
4649       --  Parameter_Associations (List3) (set to No_List if no
4650       --   actual parameter part)
4651       --  First_Named_Actual (Node4-Sem)
4652       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4653       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4654       --  Do_Tag_Check (Flag13-Sem)
4655       --  No_Elaboration_Check (Flag14-Sem)
4656       --  Parameter_List_Truncated (Flag17-Sem)
4657       --  ABE_Is_Certain (Flag18-Sem)
4658       --  plus fields for expression
4659
4660       --------------------------------
4661       -- 6.4  Actual Parameter Part --
4662       --------------------------------
4663
4664       --  ACTUAL_PARAMETER_PART ::=
4665       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4666
4667       --------------------------------
4668       -- 6.4  Parameter Association --
4669       --------------------------------
4670
4671       --  PARAMETER_ASSOCIATION ::=
4672       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4673
4674       --  Note: the N_Parameter_Association node is built only if a formal
4675       --  parameter selector name is present, otherwise the parameter
4676       --  association appears in the tree simply as the node for the
4677       --  explicit actual parameter.
4678
4679       --  N_Parameter_Association
4680       --  Sloc points to formal parameter
4681       --  Selector_Name (Node2) (always non-Empty)
4682       --  Explicit_Actual_Parameter (Node3)
4683       --  Next_Named_Actual (Node4-Sem)
4684       --  Is_Accessibility_Actual (Flag13-Sem)
4685
4686       ---------------------------
4687       -- 6.4  Actual Parameter --
4688       ---------------------------
4689
4690       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4691
4692       ---------------------------
4693       -- 6.5  Return Statement --
4694       ---------------------------
4695
4696       --  RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4697
4698       --  In Ada 2005, we have:
4699
4700       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4701
4702       --  EXTENDED_RETURN_STATEMENT ::=
4703       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4704       --                                           [:= EXPRESSION] [do
4705       --      HANDLED_SEQUENCE_OF_STATEMENTS
4706       --    end return];
4707
4708       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4709
4710       --  So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4711       --  "return statement" is defined in 6.5 to mean a
4712       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4713
4714       --  N_Return_Statement
4715       --  Sloc points to RETURN
4716       --  Return_Statement_Entity (Node5-Sem)
4717       --  Expression (Node3) (set to Empty if no expression present)
4718       --  Storage_Pool (Node1-Sem)
4719       --  Procedure_To_Call (Node2-Sem)
4720       --  Do_Tag_Check (Flag13-Sem)
4721       --  By_Ref (Flag5-Sem)
4722       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4723
4724       --  N_Return_Statement represents a simple_return_statement, and is
4725       --  renamed to be N_Simple_Return_Statement below. Clients should refer
4726       --  to N_Simple_Return_Statement. We retain N_Return_Statement because
4727       --  that's how gigi knows it. See also renaming of Make_Return_Statement
4728       --  as Make_Simple_Return_Statement in Sem_Util.
4729
4730       --  Note: Return_Statement_Entity points to an E_Return_Statement
4731
4732       --  If a range check is required, then Do_Range_Check is set on the
4733       --  Expression. The check is against the return subtype of the function.
4734
4735       --  N_Extended_Return_Statement
4736       --  Sloc points to RETURN
4737       --  Return_Statement_Entity (Node5-Sem)
4738       --  Return_Object_Declarations (List3)
4739       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
4740       --  Storage_Pool (Node1-Sem)
4741       --  Procedure_To_Call (Node2-Sem)
4742       --  Do_Tag_Check (Flag13-Sem)
4743       --  By_Ref (Flag5-Sem)
4744
4745       --  Note: Return_Statement_Entity points to an E_Return_Statement.
4746
4747       --  Note that Return_Object_Declarations is a list containing the
4748       --  N_Object_Declaration -- see comment on this field above.
4749
4750       --  The declared object will have Is_Return_Object = True.
4751
4752       --  There is no such syntactic category as return_object_declaration
4753       --  in the RM. Return_Object_Declarations represents this portion of
4754       --  the syntax for EXTENDED_RETURN_STATEMENT:
4755       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4756       --                                      [:= EXPRESSION]
4757
4758       --  There are two entities associated with an extended_return_statement:
4759       --  the Return_Statement_Entity represents the statement itself, and the
4760       --  Defining_Identifier of the Object_Declaration in
4761       --  Return_Object_Declarations represents the object being
4762       --  returned. N_Simple_Return_Statement has only the former.
4763
4764       ------------------------------
4765       -- 7.1  Package Declaration --
4766       ------------------------------
4767
4768       --  PACKAGE_DECLARATION ::=
4769       --    PACKAGE_SPECIFICATION;
4770
4771       --  Note: the activation chain entity for a package spec is used for
4772       --  all tasks declared in the package spec, or in the package body.
4773
4774       --  N_Package_Declaration
4775       --  Sloc points to PACKAGE
4776       --  Specification (Node1)
4777       --  Corresponding_Body (Node5-Sem)
4778       --  Parent_Spec (Node4-Sem)
4779       --  Activation_Chain_Entity (Node3-Sem)
4780
4781       --------------------------------
4782       -- 7.1  Package Specification --
4783       --------------------------------
4784
4785       --  PACKAGE_SPECIFICATION ::=
4786       --    package DEFINING_PROGRAM_UNIT_NAME
4787       --      [ASPECT_SPECIFICATIONS]
4788       --    is
4789       --      {BASIC_DECLARATIVE_ITEM}
4790       --    [private
4791       --      {BASIC_DECLARATIVE_ITEM}]
4792       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4793
4794       --  N_Package_Specification
4795       --  Sloc points to PACKAGE
4796       --  Defining_Unit_Name (Node1)
4797       --  Visible_Declarations (List2)
4798       --  Private_Declarations (List3) (set to No_List if no private
4799       --   part present)
4800       --  End_Label (Node4)
4801       --  Generic_Parent (Node5-Sem)
4802       --  Limited_View_Installed (Flag18-Sem)
4803
4804       -----------------------
4805       -- 7.1  Package Body --
4806       -----------------------
4807
4808       --  PACKAGE_BODY ::=
4809       --    package body DEFINING_PROGRAM_UNIT_NAME
4810       --      [ASPECT_SPECIFICATIONS]
4811       --    is
4812       --      DECLARATIVE_PART
4813       --    [begin
4814       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4815       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4816
4817       --  N_Package_Body
4818       --  Sloc points to PACKAGE
4819       --  Defining_Unit_Name (Node1)
4820       --  Declarations (List2)
4821       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4822       --  Corresponding_Spec (Node5-Sem)
4823       --  Was_Originally_Stub (Flag13-Sem)
4824
4825       --  Note: if a source level package does not contain a handled sequence
4826       --  of statements, then the parser supplies a dummy one with a null
4827       --  sequence of statements. Comes_From_Source will be False in this
4828       --  constructed sequence. The reason we need this is for the End_Label
4829       --  field in the HSS.
4830
4831       -----------------------------------
4832       -- 7.4  Private Type Declaration --
4833       -----------------------------------
4834
4835       --  PRIVATE_TYPE_DECLARATION ::=
4836       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4837       --      is [[abstract] tagged] [limited] private;
4838
4839       --  Note: TAGGED is not permitted in Ada 83 mode
4840
4841       --  N_Private_Type_Declaration
4842       --  Sloc points to TYPE
4843       --  Defining_Identifier (Node1)
4844       --  Discriminant_Specifications (List4) (set to No_List if no
4845       --   discriminant part)
4846       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4847       --  Abstract_Present (Flag4)
4848       --  Tagged_Present (Flag15)
4849       --  Limited_Present (Flag17)
4850
4851       ----------------------------------------
4852       -- 7.4  Private Extension Declaration --
4853       ----------------------------------------
4854
4855       --  PRIVATE_EXTENSION_DECLARATION ::=
4856       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4857       --      [abstract] [limited | synchronized]
4858       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4859       --           with private;
4860
4861       --  Note: LIMITED, and private extension declarations are not allowed
4862       --        in Ada 83 mode.
4863
4864       --  N_Private_Extension_Declaration
4865       --  Sloc points to TYPE
4866       --  Defining_Identifier (Node1)
4867       --  Discriminant_Specifications (List4) (set to No_List if no
4868       --   discriminant part)
4869       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4870       --  Abstract_Present (Flag4)
4871       --  Limited_Present (Flag17)
4872       --  Synchronized_Present (Flag7)
4873       --  Subtype_Indication (Node5)
4874       --  Interface_List (List2) (set to No_List if none)
4875
4876       ---------------------
4877       -- 8.4  Use Clause --
4878       ---------------------
4879
4880       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4881
4882       -----------------------------
4883       -- 8.4  Use Package Clause --
4884       -----------------------------
4885
4886       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4887
4888       --  N_Use_Package_Clause
4889       --  Sloc points to USE
4890       --  Names (List2)
4891       --  Next_Use_Clause (Node3-Sem)
4892       --  Hidden_By_Use_Clause (Elist4-Sem)
4893
4894       --------------------------
4895       -- 8.4  Use Type Clause --
4896       --------------------------
4897
4898       --  USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
4899
4900       --  Note: use type clause is not permitted in Ada 83 mode
4901
4902       --  Note: the ALL keyword can appear only in Ada 2012 mode
4903
4904       --  N_Use_Type_Clause
4905       --  Sloc points to USE
4906       --  Subtype_Marks (List2)
4907       --  Next_Use_Clause (Node3-Sem)
4908       --  Hidden_By_Use_Clause (Elist4-Sem)
4909       --  Used_Operations (Elist5-Sem)
4910       --  All_Present (Flag15)
4911
4912       -------------------------------
4913       -- 8.5  Renaming Declaration --
4914       -------------------------------
4915
4916       --  RENAMING_DECLARATION ::=
4917       --    OBJECT_RENAMING_DECLARATION
4918       --  | EXCEPTION_RENAMING_DECLARATION
4919       --  | PACKAGE_RENAMING_DECLARATION
4920       --  | SUBPROGRAM_RENAMING_DECLARATION
4921       --  | GENERIC_RENAMING_DECLARATION
4922
4923       --------------------------------------
4924       -- 8.5  Object Renaming Declaration --
4925       --------------------------------------
4926
4927       --  OBJECT_RENAMING_DECLARATION ::=
4928       --    DEFINING_IDENTIFIER :
4929       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4930       --  | DEFINING_IDENTIFIER :
4931       --      ACCESS_DEFINITION renames object_NAME;
4932
4933       --  Note: Access_Definition is an optional field that gives support to
4934       --  Ada 2005 (AI-230). The parser generates nodes that have either the
4935       --  Subtype_Indication field or else the Access_Definition field.
4936
4937       --  N_Object_Renaming_Declaration
4938       --  Sloc points to first identifier
4939       --  Defining_Identifier (Node1)
4940       --  Null_Exclusion_Present (Flag11) (set to False if not present)
4941       --  Subtype_Mark (Node4) (set to Empty if not present)
4942       --  Access_Definition (Node3) (set to Empty if not present)
4943       --  Name (Node2)
4944       --  Corresponding_Generic_Association (Node5-Sem)
4945
4946       -----------------------------------------
4947       -- 8.5  Exception Renaming Declaration --
4948       -----------------------------------------
4949
4950       --  EXCEPTION_RENAMING_DECLARATION ::=
4951       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4952
4953       --  N_Exception_Renaming_Declaration
4954       --  Sloc points to first identifier
4955       --  Defining_Identifier (Node1)
4956       --  Name (Node2)
4957
4958       ---------------------------------------
4959       -- 8.5  Package Renaming Declaration --
4960       ---------------------------------------
4961
4962       --  PACKAGE_RENAMING_DECLARATION ::=
4963       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4964
4965       --  N_Package_Renaming_Declaration
4966       --  Sloc points to PACKAGE
4967       --  Defining_Unit_Name (Node1)
4968       --  Name (Node2)
4969       --  Parent_Spec (Node4-Sem)
4970
4971       ------------------------------------------
4972       -- 8.5  Subprogram Renaming Declaration --
4973       ------------------------------------------
4974
4975       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4976       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4977
4978       --  N_Subprogram_Renaming_Declaration
4979       --  Sloc points to RENAMES
4980       --  Specification (Node1)
4981       --  Name (Node2)
4982       --  Parent_Spec (Node4-Sem)
4983       --  Corresponding_Spec (Node5-Sem)
4984       --  Corresponding_Formal_Spec (Node3-Sem)
4985       --  From_Default (Flag6-Sem)
4986
4987       -----------------------------------------
4988       -- 8.5.5  Generic Renaming Declaration --
4989       -----------------------------------------
4990
4991       --  GENERIC_RENAMING_DECLARATION ::=
4992       --    generic package DEFINING_PROGRAM_UNIT_NAME
4993       --      renames generic_package_NAME
4994       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
4995       --      renames generic_procedure_NAME
4996       --  | generic function DEFINING_PROGRAM_UNIT_NAME
4997       --      renames generic_function_NAME
4998
4999       --  N_Generic_Package_Renaming_Declaration
5000       --  Sloc points to GENERIC
5001       --  Defining_Unit_Name (Node1)
5002       --  Name (Node2)
5003       --  Parent_Spec (Node4-Sem)
5004
5005       --  N_Generic_Procedure_Renaming_Declaration
5006       --  Sloc points to GENERIC
5007       --  Defining_Unit_Name (Node1)
5008       --  Name (Node2)
5009       --  Parent_Spec (Node4-Sem)
5010
5011       --  N_Generic_Function_Renaming_Declaration
5012       --  Sloc points to GENERIC
5013       --  Defining_Unit_Name (Node1)
5014       --  Name (Node2)
5015       --  Parent_Spec (Node4-Sem)
5016
5017       --------------------------------
5018       -- 9.1  Task Type Declaration --
5019       --------------------------------
5020
5021       --  TASK_TYPE_DECLARATION ::=
5022       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5023       --      [ASPECT_SPECIFICATIONS]
5024       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5025
5026       --  N_Task_Type_Declaration
5027       --  Sloc points to TASK
5028       --  Defining_Identifier (Node1)
5029       --  Discriminant_Specifications (List4) (set to No_List if no
5030       --   discriminant part)
5031       --  Interface_List (List2) (set to No_List if none)
5032       --  Task_Definition (Node3) (set to Empty if not present)
5033       --  Corresponding_Body (Node5-Sem)
5034
5035       ----------------------------------
5036       -- 9.1  Single Task Declaration --
5037       ----------------------------------
5038
5039       --  SINGLE_TASK_DECLARATION ::=
5040       --    task DEFINING_IDENTIFIER
5041       --      [ASPECT_SPECIFICATIONS]
5042       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5043
5044       --  N_Single_Task_Declaration
5045       --  Sloc points to TASK
5046       --  Defining_Identifier (Node1)
5047       --  Interface_List (List2) (set to No_List if none)
5048       --  Task_Definition (Node3) (set to Empty if not present)
5049
5050       --------------------------
5051       -- 9.1  Task Definition --
5052       --------------------------
5053
5054       --  TASK_DEFINITION ::=
5055       --      {TASK_ITEM}
5056       --    [private
5057       --      {TASK_ITEM}]
5058       --    end [task_IDENTIFIER]
5059
5060       --  Note: as a result of semantic analysis, the list of task items can
5061       --  include implicit type declarations resulting from entry families.
5062
5063       --  N_Task_Definition
5064       --  Sloc points to first token of task definition
5065       --  Visible_Declarations (List2)
5066       --  Private_Declarations (List3) (set to No_List if no private part)
5067       --  End_Label (Node4)
5068       --  Has_Pragma_Priority (Flag6-Sem)
5069       --  Has_Storage_Size_Pragma (Flag5-Sem)
5070       --  Has_Task_Info_Pragma (Flag7-Sem)
5071       --  Has_Task_Name_Pragma (Flag8-Sem)
5072       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
5073       --  Has_Pragma_CPU (Flag14-Sem)
5074       --  Has_Pragma_Dispatching_Domain (Flag15-Sem)
5075
5076       --------------------
5077       -- 9.1  Task Item --
5078       --------------------
5079
5080       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5081
5082       --------------------
5083       -- 9.1  Task Body --
5084       --------------------
5085
5086       --  TASK_BODY ::=
5087       --    task body task_DEFINING_IDENTIFIER
5088       --      [ASPECT_SPECIFICATIONS]
5089       --    is
5090       --      DECLARATIVE_PART
5091       --    begin
5092       --      HANDLED_SEQUENCE_OF_STATEMENTS
5093       --    end [task_IDENTIFIER];
5094
5095       --  Gigi restriction: This node never appears
5096
5097       --  N_Task_Body
5098       --  Sloc points to TASK
5099       --  Defining_Identifier (Node1)
5100       --  Declarations (List2)
5101       --  Handled_Statement_Sequence (Node4)
5102       --  Is_Task_Master (Flag5-Sem)
5103       --  Activation_Chain_Entity (Node3-Sem)
5104       --  Corresponding_Spec (Node5-Sem)
5105       --  Was_Originally_Stub (Flag13-Sem)
5106
5107       -------------------------------------
5108       -- 9.4  Protected Type Declaration --
5109       -------------------------------------
5110
5111       --  PROTECTED_TYPE_DECLARATION ::=
5112       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5113       --      [ASPECT_SPECIFICATIONS]
5114       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5115
5116       --  Note: protected type declarations are not permitted in Ada 83 mode
5117
5118       --  N_Protected_Type_Declaration
5119       --  Sloc points to PROTECTED
5120       --  Defining_Identifier (Node1)
5121       --  Discriminant_Specifications (List4) (set to No_List if no
5122       --   discriminant part)
5123       --  Interface_List (List2) (set to No_List if none)
5124       --  Protected_Definition (Node3)
5125       --  Corresponding_Body (Node5-Sem)
5126
5127       ---------------------------------------
5128       -- 9.4  Single Protected Declaration --
5129       ---------------------------------------
5130
5131       --  SINGLE_PROTECTED_DECLARATION ::=
5132       --    protected DEFINING_IDENTIFIER
5133       --      [ASPECT_SPECIFICATIONS]
5134       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5135
5136       --  Note: single protected declarations are not allowed in Ada 83 mode
5137
5138       --  N_Single_Protected_Declaration
5139       --  Sloc points to PROTECTED
5140       --  Defining_Identifier (Node1)
5141       --  Interface_List (List2) (set to No_List if none)
5142       --  Protected_Definition (Node3)
5143
5144       -------------------------------
5145       -- 9.4  Protected Definition --
5146       -------------------------------
5147
5148       --  PROTECTED_DEFINITION ::=
5149       --      {PROTECTED_OPERATION_DECLARATION}
5150       --    [private
5151       --      {PROTECTED_ELEMENT_DECLARATION}]
5152       --    end [protected_IDENTIFIER]
5153
5154       --  N_Protected_Definition
5155       --  Sloc points to first token of protected definition
5156       --  Visible_Declarations (List2)
5157       --  Private_Declarations (List3) (set to No_List if no private part)
5158       --  End_Label (Node4)
5159       --  Has_Pragma_Priority (Flag6-Sem)
5160
5161       ------------------------------------------
5162       -- 9.4  Protected Operation Declaration --
5163       ------------------------------------------
5164
5165       --  PROTECTED_OPERATION_DECLARATION ::=
5166       --    SUBPROGRAM_DECLARATION
5167       --  | ENTRY_DECLARATION
5168       --  | REPRESENTATION_CLAUSE
5169
5170       ----------------------------------------
5171       -- 9.4  Protected Element Declaration --
5172       ----------------------------------------
5173
5174       --  PROTECTED_ELEMENT_DECLARATION ::=
5175       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5176
5177       -------------------------
5178       -- 9.4  Protected Body --
5179       -------------------------
5180
5181       --  PROTECTED_BODY ::=
5182       --    protected body DEFINING_IDENTIFIER
5183       --      [ASPECT_SPECIFICATIONS];
5184       --    is
5185       --      {PROTECTED_OPERATION_ITEM}
5186       --    end [protected_IDENTIFIER];
5187
5188       --  Note: protected bodies are not allowed in Ada 83 mode
5189
5190       --  Gigi restriction: This node never appears
5191
5192       --  N_Protected_Body
5193       --  Sloc points to PROTECTED
5194       --  Defining_Identifier (Node1)
5195       --  Declarations (List2) protected operation items (and pragmas)
5196       --  End_Label (Node4)
5197       --  Corresponding_Spec (Node5-Sem)
5198       --  Was_Originally_Stub (Flag13-Sem)
5199
5200       -----------------------------------
5201       -- 9.4  Protected Operation Item --
5202       -----------------------------------
5203
5204       --  PROTECTED_OPERATION_ITEM ::=
5205       --    SUBPROGRAM_DECLARATION
5206       --  | SUBPROGRAM_BODY
5207       --  | ENTRY_BODY
5208       --  | REPRESENTATION_CLAUSE
5209
5210       ------------------------------
5211       -- 9.5.2  Entry Declaration --
5212       ------------------------------
5213
5214       --  ENTRY_DECLARATION ::=
5215       --    [[not] overriding]
5216       --    entry DEFINING_IDENTIFIER
5217       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5218
5219       --  N_Entry_Declaration
5220       --  Sloc points to ENTRY
5221       --  Defining_Identifier (Node1)
5222       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5223       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5224       --  Corresponding_Body (Node5-Sem)
5225       --  Must_Override (Flag14) set if overriding indicator present
5226       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5227
5228       --  Note: overriding indicator is an Ada 2005 feature
5229
5230       -----------------------------
5231       -- 9.5.2  Accept statement --
5232       -----------------------------
5233
5234       --  ACCEPT_STATEMENT ::=
5235       --    accept entry_DIRECT_NAME
5236       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5237       --        HANDLED_SEQUENCE_OF_STATEMENTS
5238       --    end [entry_IDENTIFIER]];
5239
5240       --  Gigi restriction: This node never appears
5241
5242       --  Note: there are no explicit declarations allowed in an accept
5243       --  statement. However, the implicit declarations for any statement
5244       --  identifiers (labels and block/loop identifiers) are declarations
5245       --  that belong logically to the accept statement, and that is why
5246       --  there is a Declarations field in this node.
5247
5248       --  N_Accept_Statement
5249       --  Sloc points to ACCEPT
5250       --  Entry_Direct_Name (Node1)
5251       --  Entry_Index (Node5) (set to Empty if not present)
5252       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5253       --  Handled_Statement_Sequence (Node4)
5254       --  Declarations (List2) (set to No_List if no declarations)
5255
5256       ------------------------
5257       -- 9.5.2  Entry Index --
5258       ------------------------
5259
5260       --  ENTRY_INDEX ::= EXPRESSION
5261
5262       -----------------------
5263       -- 9.5.2  Entry Body --
5264       -----------------------
5265
5266       --  ENTRY_BODY ::=
5267       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5268       --      DECLARATIVE_PART
5269       --    begin
5270       --      HANDLED_SEQUENCE_OF_STATEMENTS
5271       --    end [entry_IDENTIFIER];
5272
5273       --  ENTRY_BARRIER ::= when CONDITION
5274
5275       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5276       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5277       --  too full (it would otherwise have too many fields)
5278
5279       --  Gigi restriction: This node never appears
5280
5281       --  N_Entry_Body
5282       --  Sloc points to ENTRY
5283       --  Defining_Identifier (Node1)
5284       --  Entry_Body_Formal_Part (Node5)
5285       --  Declarations (List2)
5286       --  Handled_Statement_Sequence (Node4)
5287       --  Activation_Chain_Entity (Node3-Sem)
5288
5289       -----------------------------------
5290       -- 9.5.2  Entry Body Formal Part --
5291       -----------------------------------
5292
5293       --  ENTRY_BODY_FORMAL_PART ::=
5294       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5295
5296       --  Note that an entry body formal part node is present even if it is
5297       --  empty. This reflects the grammar, in which it is the components of
5298       --  the entry body formal part that are optional, not the entry body
5299       --  formal part itself. Also this means that the barrier condition
5300       --  always has somewhere to be stored.
5301
5302       --  Gigi restriction: This node never appears
5303
5304       --  N_Entry_Body_Formal_Part
5305       --  Sloc points to first token
5306       --  Entry_Index_Specification (Node4) (set to Empty if not present)
5307       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5308       --  Condition (Node1) from entry barrier of entry body
5309
5310       --------------------------
5311       -- 9.5.2  Entry Barrier --
5312       --------------------------
5313
5314       --  ENTRY_BARRIER ::= when CONDITION
5315
5316       --------------------------------------
5317       -- 9.5.2  Entry Index Specification --
5318       --------------------------------------
5319
5320       --  ENTRY_INDEX_SPECIFICATION ::=
5321       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5322
5323       --  Gigi restriction: This node never appears
5324
5325       --  N_Entry_Index_Specification
5326       --  Sloc points to FOR
5327       --  Defining_Identifier (Node1)
5328       --  Discrete_Subtype_Definition (Node4)
5329
5330       ---------------------------------
5331       -- 9.5.3  Entry Call Statement --
5332       ---------------------------------
5333
5334       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5335
5336       --  The parser may generate a procedure call for this construct. The
5337       --  semantic pass must correct this misidentification where needed.
5338
5339       --  Gigi restriction: This node never appears
5340
5341       --  N_Entry_Call_Statement
5342       --  Sloc points to first token of name
5343       --  Name (Node2)
5344       --  Parameter_Associations (List3) (set to No_List if no
5345       --   actual parameter part)
5346       --  First_Named_Actual (Node4-Sem)
5347
5348       ------------------------------
5349       -- 9.5.4  Requeue Statement --
5350       ------------------------------
5351
5352       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5353
5354       --  Note: requeue statements are not permitted in Ada 83 mode
5355
5356       --  Gigi restriction: This node never appears
5357
5358       --  N_Requeue_Statement
5359       --  Sloc points to REQUEUE
5360       --  Name (Node2)
5361       --  Abort_Present (Flag15)
5362
5363       --------------------------
5364       -- 9.6  Delay Statement --
5365       --------------------------
5366
5367       --  DELAY_STATEMENT ::=
5368       --    DELAY_UNTIL_STATEMENT
5369       --  | DELAY_RELATIVE_STATEMENT
5370
5371       --------------------------------
5372       -- 9.6  Delay Until Statement --
5373       --------------------------------
5374
5375       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5376
5377       --  Note: delay until statements are not permitted in Ada 83 mode
5378
5379       --  Gigi restriction: This node never appears
5380
5381       --  N_Delay_Until_Statement
5382       --  Sloc points to DELAY
5383       --  Expression (Node3)
5384
5385       -----------------------------------
5386       -- 9.6  Delay Relative Statement --
5387       -----------------------------------
5388
5389       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5390
5391       --  Gigi restriction: This node never appears
5392
5393       --  N_Delay_Relative_Statement
5394       --  Sloc points to DELAY
5395       --  Expression (Node3)
5396
5397       ---------------------------
5398       -- 9.7  Select Statement --
5399       ---------------------------
5400
5401       --  SELECT_STATEMENT ::=
5402       --    SELECTIVE_ACCEPT
5403       --  | TIMED_ENTRY_CALL
5404       --  | CONDITIONAL_ENTRY_CALL
5405       --  | ASYNCHRONOUS_SELECT
5406
5407       -----------------------------
5408       -- 9.7.1  Selective Accept --
5409       -----------------------------
5410
5411       --  SELECTIVE_ACCEPT ::=
5412       --    select
5413       --      [GUARD]
5414       --        SELECT_ALTERNATIVE
5415       --    {or
5416       --      [GUARD]
5417       --        SELECT_ALTERNATIVE}
5418       --    [else
5419       --      SEQUENCE_OF_STATEMENTS]
5420       --    end select;
5421
5422       --  Gigi restriction: This node never appears
5423
5424       --  Note: the guard expression, if present, appears in the node for
5425       --  the select alternative.
5426
5427       --  N_Selective_Accept
5428       --  Sloc points to SELECT
5429       --  Select_Alternatives (List1)
5430       --  Else_Statements (List4) (set to No_List if no else part)
5431
5432       ------------------
5433       -- 9.7.1  Guard --
5434       ------------------
5435
5436       --  GUARD ::= when CONDITION =>
5437
5438       --  As noted above, the CONDITION that is part of a GUARD is included
5439       --  in the node for the select alternative for convenience.
5440
5441       -------------------------------
5442       -- 9.7.1  Select Alternative --
5443       -------------------------------
5444
5445       --  SELECT_ALTERNATIVE ::=
5446       --    ACCEPT_ALTERNATIVE
5447       --  | DELAY_ALTERNATIVE
5448       --  | TERMINATE_ALTERNATIVE
5449
5450       -------------------------------
5451       -- 9.7.1  Accept Alternative --
5452       -------------------------------
5453
5454       --  ACCEPT_ALTERNATIVE ::=
5455       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5456
5457       --  Gigi restriction: This node never appears
5458
5459       --  N_Accept_Alternative
5460       --  Sloc points to ACCEPT
5461       --  Accept_Statement (Node2)
5462       --  Condition (Node1) from the guard (set to Empty if no guard present)
5463       --  Statements (List3) (set to Empty_List if no statements)
5464       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5465       --  Accept_Handler_Records (List5-Sem)
5466
5467       ------------------------------
5468       -- 9.7.1  Delay Alternative --
5469       ------------------------------
5470
5471       --  DELAY_ALTERNATIVE ::=
5472       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5473
5474       --  Gigi restriction: This node never appears
5475
5476       --  N_Delay_Alternative
5477       --  Sloc points to DELAY
5478       --  Delay_Statement (Node2)
5479       --  Condition (Node1) from the guard (set to Empty if no guard present)
5480       --  Statements (List3) (set to Empty_List if no statements)
5481       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5482
5483       ----------------------------------
5484       -- 9.7.1  Terminate Alternative --
5485       ----------------------------------
5486
5487       --  TERMINATE_ALTERNATIVE ::= terminate;
5488
5489       --  Gigi restriction: This node never appears
5490
5491       --  N_Terminate_Alternative
5492       --  Sloc points to TERMINATE
5493       --  Condition (Node1) from the guard (set to Empty if no guard present)
5494       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5495       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5496
5497       -----------------------------
5498       -- 9.7.2  Timed Entry Call --
5499       -----------------------------
5500
5501       --  TIMED_ENTRY_CALL ::=
5502       --    select
5503       --      ENTRY_CALL_ALTERNATIVE
5504       --    or
5505       --      DELAY_ALTERNATIVE
5506       --    end select;
5507
5508       --  Gigi restriction: This node never appears
5509
5510       --  N_Timed_Entry_Call
5511       --  Sloc points to SELECT
5512       --  Entry_Call_Alternative (Node1)
5513       --  Delay_Alternative (Node4)
5514
5515       -----------------------------------
5516       -- 9.7.2  Entry Call Alternative --
5517       -----------------------------------
5518
5519       --  ENTRY_CALL_ALTERNATIVE ::=
5520       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5521
5522       --  PROCEDURE_OR_ENTRY_CALL ::=
5523       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5524
5525       --  Gigi restriction: This node never appears
5526
5527       --  N_Entry_Call_Alternative
5528       --  Sloc points to first token of entry call statement
5529       --  Entry_Call_Statement (Node1)
5530       --  Statements (List3) (set to Empty_List if no statements)
5531       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5532
5533       -----------------------------------
5534       -- 9.7.3  Conditional Entry Call --
5535       -----------------------------------
5536
5537       --  CONDITIONAL_ENTRY_CALL ::=
5538       --    select
5539       --      ENTRY_CALL_ALTERNATIVE
5540       --    else
5541       --      SEQUENCE_OF_STATEMENTS
5542       --    end select;
5543
5544       --  Gigi restriction: This node never appears
5545
5546       --  N_Conditional_Entry_Call
5547       --  Sloc points to SELECT
5548       --  Entry_Call_Alternative (Node1)
5549       --  Else_Statements (List4)
5550
5551       --------------------------------
5552       -- 9.7.4  Asynchronous Select --
5553       --------------------------------
5554
5555       --  ASYNCHRONOUS_SELECT ::=
5556       --    select
5557       --      TRIGGERING_ALTERNATIVE
5558       --    then abort
5559       --      ABORTABLE_PART
5560       --    end select;
5561
5562       --  Note: asynchronous select is not permitted in Ada 83 mode
5563
5564       --  Gigi restriction: This node never appears
5565
5566       --  N_Asynchronous_Select
5567       --  Sloc points to SELECT
5568       --  Triggering_Alternative (Node1)
5569       --  Abortable_Part (Node2)
5570
5571       -----------------------------------
5572       -- 9.7.4  Triggering Alternative --
5573       -----------------------------------
5574
5575       --  TRIGGERING_ALTERNATIVE ::=
5576       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5577
5578       --  Gigi restriction: This node never appears
5579
5580       --  N_Triggering_Alternative
5581       --  Sloc points to first token of triggering statement
5582       --  Triggering_Statement (Node1)
5583       --  Statements (List3) (set to Empty_List if no statements)
5584       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5585
5586       ---------------------------------
5587       -- 9.7.4  Triggering Statement --
5588       ---------------------------------
5589
5590       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5591
5592       ---------------------------
5593       -- 9.7.4  Abortable Part --
5594       ---------------------------
5595
5596       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5597
5598       --  Gigi restriction: This node never appears
5599
5600       --  N_Abortable_Part
5601       --  Sloc points to ABORT
5602       --  Statements (List3)
5603
5604       --------------------------
5605       -- 9.8  Abort Statement --
5606       --------------------------
5607
5608       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5609
5610       --  Gigi restriction: This node never appears
5611
5612       --  N_Abort_Statement
5613       --  Sloc points to ABORT
5614       --  Names (List2)
5615
5616       -------------------------
5617       -- 10.1.1  Compilation --
5618       -------------------------
5619
5620       --  COMPILATION ::= {COMPILATION_UNIT}
5621
5622       --  There is no explicit node in the tree for a compilation, since in
5623       --  general the compiler is processing only a single compilation unit
5624       --  at a time. It is possible to parse multiple units in syntax check
5625       --  only mode, but the trees are discarded in that case.
5626
5627       ------------------------------
5628       -- 10.1.1  Compilation Unit --
5629       ------------------------------
5630
5631       --  COMPILATION_UNIT ::=
5632       --    CONTEXT_CLAUSE LIBRARY_ITEM
5633       --  | CONTEXT_CLAUSE SUBUNIT
5634
5635       --  The N_Compilation_Unit node itself represents the above syntax.
5636       --  However, there are two additional items not reflected in the above
5637       --  syntax. First we have the global declarations that are added by the
5638       --  code generator. These are outer level declarations (so they cannot
5639       --  be represented as being inside the units). An example is the wrapper
5640       --  subprograms that are created to do ABE checking. As always a list of
5641       --  declarations can contain actions as well (i.e. statements), and such
5642       --  statements are executed as part of the elaboration of the unit. Note
5643       --  that all such declarations are elaborated before the library unit.
5644
5645       --  Similarly, certain actions need to be elaborated at the completion
5646       --  of elaboration of the library unit (notably the statement that sets
5647       --  the Boolean flag indicating that elaboration is complete).
5648
5649       --  The third item not reflected in the syntax is pragmas that appear
5650       --  after the compilation unit. As always pragmas are a problem since
5651       --  they are not part of the formal syntax, but can be stuck into the
5652       --  source following a set of ad hoc rules, and we have to find an ad
5653       --  hoc way of sticking them into the tree. For pragmas that appear
5654       --  before the library unit, we just consider them to be part of the
5655       --  context clause, and pragmas can appear in the Context_Items list
5656       --  of the compilation unit. However, pragmas can also appear after
5657       --  the library item.
5658
5659       --  To deal with all these problems, we create an auxiliary node for
5660       --  a compilation unit, referenced from the N_Compilation_Unit node,
5661       --  that contains these items.
5662
5663       --  N_Compilation_Unit
5664       --  Sloc points to first token of defining unit name
5665       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5666       --  Context_Items (List1) context items and pragmas preceding unit
5667       --  Private_Present (Flag15) set if library unit has private keyword
5668       --  Unit (Node2) library item or subunit
5669       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5670       --  Has_No_Elaboration_Code (Flag17-Sem)
5671       --  Body_Required (Flag13-Sem) set for spec if body is required
5672       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5673       --  Context_Pending (Flag16-Sem)
5674       --  First_Inlined_Subprogram (Node3-Sem)
5675       --  Has_Pragma_Suppress_All (Flag14-Sem)
5676
5677       --  N_Compilation_Unit_Aux
5678       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5679       --  Declarations (List2) (set to No_List if no global declarations)
5680       --  Actions (List1) (set to No_List if no actions)
5681       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5682       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5683       --  Default_Storage_Pool (Node3-Sem)
5684
5685       --------------------------
5686       -- 10.1.1  Library Item --
5687       --------------------------
5688
5689       --  LIBRARY_ITEM ::=
5690       --    [private] LIBRARY_UNIT_DECLARATION
5691       --  | LIBRARY_UNIT_BODY
5692       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5693
5694       --  Note: PRIVATE is not allowed in Ada 83 mode
5695
5696       --  There is no explicit node in the tree for library item, instead
5697       --  the declaration or body, and the flag for private if present,
5698       --  appear in the N_Compilation_Unit node.
5699
5700       --------------------------------------
5701       -- 10.1.1  Library Unit Declaration --
5702       --------------------------------------
5703
5704       --  LIBRARY_UNIT_DECLARATION ::=
5705       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5706       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5707
5708       -----------------------------------------------
5709       -- 10.1.1  Library Unit Renaming Declaration --
5710       -----------------------------------------------
5711
5712       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5713       --    PACKAGE_RENAMING_DECLARATION
5714       --  | GENERIC_RENAMING_DECLARATION
5715       --  | SUBPROGRAM_RENAMING_DECLARATION
5716
5717       -------------------------------
5718       -- 10.1.1  Library unit body --
5719       -------------------------------
5720
5721       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5722
5723       ------------------------------
5724       -- 10.1.1  Parent Unit Name --
5725       ------------------------------
5726
5727       --  PARENT_UNIT_NAME ::= NAME
5728
5729       ----------------------------
5730       -- 10.1.2  Context clause --
5731       ----------------------------
5732
5733       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5734
5735       --  The context clause can include pragmas, and any pragmas that appear
5736       --  before the context clause proper (i.e. all configuration pragmas,
5737       --  also appear at the front of this list).
5738
5739       --------------------------
5740       -- 10.1.2  Context_Item --
5741       --------------------------
5742
5743       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5744
5745       -------------------------
5746       -- 10.1.2  With clause --
5747       -------------------------
5748
5749       --  WITH_CLAUSE ::=
5750       --    with library_unit_NAME {,library_unit_NAME};
5751
5752       --  A separate With clause is built for each name, so that we have
5753       --  a Corresponding_Spec field for each with'ed spec. The flags
5754       --  First_Name and Last_Name are used to reconstruct the exact
5755       --  source form. When a list of names appears in one with clause,
5756       --  the first name in the list has First_Name set, and the last
5757       --  has Last_Name set. If the with clause has only one name, then
5758       --  both of the flags First_Name and Last_Name are set in this name.
5759
5760       --  Note: in the case of implicit with's that are installed by the
5761       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5762       --  set to Standard_Location, but it is incorrect to test the Sloc
5763       --  to find out if a with clause is implicit, test the flag instead.
5764
5765       --  N_With_Clause
5766       --  Sloc points to first token of library unit name
5767       --  Withed_Body (Node1-Sem)
5768       --  Name (Node2)
5769       --  Next_Implicit_With (Node3-Sem)
5770       --  Library_Unit (Node4-Sem)
5771       --  Corresponding_Spec (Node5-Sem)
5772       --  First_Name (Flag5) (set to True if first name or only one name)
5773       --  Last_Name (Flag6) (set to True if last name or only one name)
5774       --  Context_Installed (Flag13-Sem)
5775       --  Elaborate_Present (Flag4-Sem)
5776       --  Elaborate_All_Present (Flag14-Sem)
5777       --  Elaborate_All_Desirable (Flag9-Sem)
5778       --  Elaborate_Desirable (Flag11-Sem)
5779       --  Private_Present (Flag15) set if with_clause has private keyword
5780       --  Implicit_With (Flag16-Sem)
5781       --  Limited_Present (Flag17) set if LIMITED is present
5782       --  Limited_View_Installed (Flag18-Sem)
5783       --  Unreferenced_In_Spec (Flag7-Sem)
5784       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5785
5786       --  Note: Limited_Present and Limited_View_Installed give support to
5787       --        Ada 2005 (AI-50217).
5788       --  Similarly, Private_Present gives support to AI-50262.
5789
5790       ----------------------
5791       -- With_Type clause --
5792       ----------------------
5793
5794       --  This is a GNAT extension, used to implement mutually recursive
5795       --  types declared in different packages.
5796       --  Note: this is now obsolete. The functionality of this construct
5797       --  is now implemented by the Ada 2005 Limited_with_Clause.
5798
5799       ---------------------
5800       -- 10.2  Body stub --
5801       ---------------------
5802
5803       --  BODY_STUB ::=
5804       --    SUBPROGRAM_BODY_STUB
5805       --  | PACKAGE_BODY_STUB
5806       --  | TASK_BODY_STUB
5807       --  | PROTECTED_BODY_STUB
5808
5809       ----------------------------------
5810       -- 10.1.3  Subprogram Body Stub --
5811       ----------------------------------
5812
5813       --  SUBPROGRAM_BODY_STUB ::=
5814       --    SUBPROGRAM_SPECIFICATION is separate;
5815
5816       --  N_Subprogram_Body_Stub
5817       --  Sloc points to FUNCTION or PROCEDURE
5818       --  Specification (Node1)
5819       --  Library_Unit (Node4-Sem) points to the subunit
5820       --  Corresponding_Body (Node5-Sem)
5821
5822       -------------------------------
5823       -- 10.1.3  Package Body Stub --
5824       -------------------------------
5825
5826       --  PACKAGE_BODY_STUB ::=
5827       --    package body DEFINING_IDENTIFIER is separate;
5828
5829       --  N_Package_Body_Stub
5830       --  Sloc points to PACKAGE
5831       --  Defining_Identifier (Node1)
5832       --  Library_Unit (Node4-Sem) points to the subunit
5833       --  Corresponding_Body (Node5-Sem)
5834
5835       ----------------------------
5836       -- 10.1.3  Task Body Stub --
5837       ----------------------------
5838
5839       --  TASK_BODY_STUB ::=
5840       --    task body DEFINING_IDENTIFIER is separate;
5841
5842       --  N_Task_Body_Stub
5843       --  Sloc points to TASK
5844       --  Defining_Identifier (Node1)
5845       --  Library_Unit (Node4-Sem) points to the subunit
5846       --  Corresponding_Body (Node5-Sem)
5847
5848       ---------------------------------
5849       -- 10.1.3  Protected Body Stub --
5850       ---------------------------------
5851
5852       --  PROTECTED_BODY_STUB ::=
5853       --    protected body DEFINING_IDENTIFIER is separate;
5854
5855       --  Note: protected body stubs are not allowed in Ada 83 mode
5856
5857       --  N_Protected_Body_Stub
5858       --  Sloc points to PROTECTED
5859       --  Defining_Identifier (Node1)
5860       --  Library_Unit (Node4-Sem) points to the subunit
5861       --  Corresponding_Body (Node5-Sem)
5862
5863       ---------------------
5864       -- 10.1.3  Subunit --
5865       ---------------------
5866
5867       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5868
5869       --  N_Subunit
5870       --  Sloc points to SEPARATE
5871       --  Name (Node2) is the name of the parent unit
5872       --  Proper_Body (Node1) is the subunit body
5873       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5874
5875       ---------------------------------
5876       -- 11.1  Exception Declaration --
5877       ---------------------------------
5878
5879       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
5880       --    [ASPECT_SPECIFICATIONS];
5881
5882       --  For consistency with object declarations etc., the parser converts
5883       --  the case of multiple identifiers being declared to a series of
5884       --  declarations in which the expression is copied, using the More_Ids
5885       --  and Prev_Ids flags to remember the source form as described in the
5886       --  section on "Handling of Defining Identifier Lists".
5887
5888       --  N_Exception_Declaration
5889       --  Sloc points to EXCEPTION
5890       --  Defining_Identifier (Node1)
5891       --  Expression (Node3-Sem)
5892       --  Renaming_Exception (Node2-Sem)
5893       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5894       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5895
5896       ------------------------------------------
5897       -- 11.2  Handled Sequence Of Statements --
5898       ------------------------------------------
5899
5900       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5901       --      SEQUENCE_OF_STATEMENTS
5902       --    [exception
5903       --      EXCEPTION_HANDLER
5904       --      {EXCEPTION_HANDLER}]
5905       --    [at end
5906       --      cleanup_procedure_call (param, param, param, ...);]
5907
5908       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5909       --  used only internally currently, but is considered to be syntactic.
5910       --  At the moment, the only cleanup action allowed is a single call to
5911       --  a parameterless procedure, and the Identifier field of the node is
5912       --  the procedure to be called. The cleanup action occurs whenever the
5913       --  sequence of statements is left for any reason. The possible reasons
5914       --  are:
5915       --      1. reaching the end of the sequence
5916       --      2. exit, return, or goto
5917       --      3. exception or abort
5918       --  For some back ends, such as gcc with ZCX, "at end" is implemented
5919       --  entirely in the back end. In this case, a handled sequence of
5920       --  statements with an "at end" cannot also have exception handlers.
5921       --  For other back ends, such as gcc with SJLJ and .NET, the
5922       --  implementation is split between the front end and back end; the front
5923       --  end implements 3, and the back end implements 1 and 2. In this case,
5924       --  if there is an "at end", the front end inserts the appropriate
5925       --  exception handler, and this handler takes precedence over "at end"
5926       --  in case of exception.
5927
5928       --  The inserted exception handler is of the form:
5929
5930       --     when all others =>
5931       --        cleanup;
5932       --        raise;
5933
5934       --  where cleanup is the procedure to be called. The reason we do this is
5935       --  so that the front end can handle the necessary entries in the
5936       --  exception tables, and other exception handler actions required as
5937       --  part of the normal handling for exception handlers.
5938
5939       --  The AT END cleanup handler protects only the sequence of statements
5940       --  (not the associated declarations of the parent), just like exception
5941       --  handlers. The big difference is that the cleanup procedure is called
5942       --  on either a normal or an abnormal exit from the statement sequence.
5943
5944       --  Note: the list of Exception_Handlers can contain pragmas as well
5945       --  as actual handlers. In practice these pragmas can only occur at
5946       --  the start of the list, since any pragmas occurring later on will
5947       --  be included in the statement list of the corresponding handler.
5948
5949       --  Note: although in the Ada syntax, the sequence of statements in
5950       --  a handled sequence of statements can only contain statements, we
5951       --  allow free mixing of declarations and statements in the resulting
5952       --  expanded tree. This is for example used to deal with the case of
5953       --  a cleanup procedure that must handle declarations as well as the
5954       --  statements of a block.
5955
5956       --  N_Handled_Sequence_Of_Statements
5957       --  Sloc points to first token of first statement
5958       --  Statements (List3)
5959       --  End_Label (Node4) (set to Empty if expander generated)
5960       --  Exception_Handlers (List5) (set to No_List if none present)
5961       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5962       --  First_Real_Statement (Node2-Sem)
5963
5964       --  Note: the parent always contains a Declarations field which contains
5965       --  declarations associated with the handled sequence of statements. This
5966       --  is true even in the case of an accept statement (see description of
5967       --  the N_Accept_Statement node).
5968
5969       --  End_Label refers to the containing construct
5970
5971       -----------------------------
5972       -- 11.2  Exception Handler --
5973       -----------------------------
5974
5975       --  EXCEPTION_HANDLER ::=
5976       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5977       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5978       --        SEQUENCE_OF_STATEMENTS
5979
5980       --  Note: choice parameter specification is not allowed in Ada 83 mode
5981
5982       --  N_Exception_Handler
5983       --  Sloc points to WHEN
5984       --  Choice_Parameter (Node2) (set to Empty if not present)
5985       --  Exception_Choices (List4)
5986       --  Statements (List3)
5987       --  Exception_Label (Node5-Sem) (set to Empty of not present)
5988       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5989       --  Local_Raise_Not_OK (Flag7-Sem)
5990       --  Has_Local_Raise (Flag8-Sem)
5991
5992       ------------------------------------------
5993       -- 11.2  Choice parameter specification --
5994       ------------------------------------------
5995
5996       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5997
5998       ----------------------------
5999       -- 11.2  Exception Choice --
6000       ----------------------------
6001
6002       --  EXCEPTION_CHOICE ::= exception_NAME | others
6003
6004       --  Except in the case of OTHERS, no explicit node appears in the tree
6005       --  for exception choice. Instead the exception name appears directly.
6006       --  An OTHERS choice is represented by a N_Others_Choice node (see
6007       --  section 3.8.1.
6008
6009       --  Note: for the exception choice created for an at end handler, the
6010       --  exception choice is an N_Others_Choice node with All_Others set.
6011
6012       ---------------------------
6013       -- 11.3  Raise Statement --
6014       ---------------------------
6015
6016       --  RAISE_STATEMENT ::= raise [exception_NAME];
6017
6018       --  In Ada 2005, we have
6019
6020       --  RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
6021
6022       --  N_Raise_Statement
6023       --  Sloc points to RAISE
6024       --  Name (Node2) (set to Empty if no exception name present)
6025       --  Expression (Node3) (set to Empty if no expression present)
6026       --  From_At_End (Flag4-Sem)
6027
6028       -------------------------------
6029       -- 12.1  Generic Declaration --
6030       -------------------------------
6031
6032       --  GENERIC_DECLARATION ::=
6033       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6034
6035       ------------------------------------------
6036       -- 12.1  Generic Subprogram Declaration --
6037       ------------------------------------------
6038
6039       --  GENERIC_SUBPROGRAM_DECLARATION ::=
6040       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
6041
6042       --  Note: Generic_Formal_Declarations can include pragmas
6043
6044       --  N_Generic_Subprogram_Declaration
6045       --  Sloc points to GENERIC
6046       --  Specification (Node1) subprogram specification
6047       --  Corresponding_Body (Node5-Sem)
6048       --  Generic_Formal_Declarations (List2) from generic formal part
6049       --  Parent_Spec (Node4-Sem)
6050
6051       ---------------------------------------
6052       -- 12.1  Generic Package Declaration --
6053       ---------------------------------------
6054
6055       --  GENERIC_PACKAGE_DECLARATION ::=
6056       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6057       --      [ASPECT_SPECIFICATIONS];
6058
6059       --  Note: when we do generics right, the Activation_Chain_Entity entry
6060       --  for this node can be removed (since the expander won't see generic
6061       --  units any more)???.
6062
6063       --  Note: Generic_Formal_Declarations can include pragmas
6064
6065       --  N_Generic_Package_Declaration
6066       --  Sloc points to GENERIC
6067       --  Specification (Node1) package specification
6068       --  Corresponding_Body (Node5-Sem)
6069       --  Generic_Formal_Declarations (List2) from generic formal part
6070       --  Parent_Spec (Node4-Sem)
6071       --  Activation_Chain_Entity (Node3-Sem)
6072
6073       -------------------------------
6074       -- 12.1  Generic Formal Part --
6075       -------------------------------
6076
6077       --  GENERIC_FORMAL_PART ::=
6078       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6079
6080       ------------------------------------------------
6081       -- 12.1  Generic Formal Parameter Declaration --
6082       ------------------------------------------------
6083
6084       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6085       --    FORMAL_OBJECT_DECLARATION
6086       --  | FORMAL_TYPE_DECLARATION
6087       --  | FORMAL_SUBPROGRAM_DECLARATION
6088       --  | FORMAL_PACKAGE_DECLARATION
6089
6090       ---------------------------------
6091       -- 12.3  Generic Instantiation --
6092       ---------------------------------
6093
6094       --  GENERIC_INSTANTIATION ::=
6095       --    package DEFINING_PROGRAM_UNIT_NAME is
6096       --      new generic_package_NAME [GENERIC_ACTUAL_PART]
6097       --        [ASPECT_SPECIFICATIONS];
6098       --  | [[not] overriding]
6099       --    procedure DEFINING_PROGRAM_UNIT_NAME is
6100       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6101       --        [ASPECT_SPECIFICATIONS];
6102       --  | [[not] overriding]
6103       --    function DEFINING_DESIGNATOR is
6104       --      new generic_function_NAME [GENERIC_ACTUAL_PART]
6105       --        [ASPECT_SPECIFICATIONS];
6106
6107       --  N_Package_Instantiation
6108       --  Sloc points to PACKAGE
6109       --  Defining_Unit_Name (Node1)
6110       --  Name (Node2)
6111       --  Generic_Associations (List3) (set to No_List if no
6112       --   generic actual part)
6113       --  Parent_Spec (Node4-Sem)
6114       --  Instance_Spec (Node5-Sem)
6115       --  ABE_Is_Certain (Flag18-Sem)
6116
6117       --  N_Procedure_Instantiation
6118       --  Sloc points to PROCEDURE
6119       --  Defining_Unit_Name (Node1)
6120       --  Name (Node2)
6121       --  Parent_Spec (Node4-Sem)
6122       --  Generic_Associations (List3) (set to No_List if no
6123       --   generic actual part)
6124       --  Instance_Spec (Node5-Sem)
6125       --  Must_Override (Flag14) set if overriding indicator present
6126       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6127       --  ABE_Is_Certain (Flag18-Sem)
6128
6129       --  N_Function_Instantiation
6130       --  Sloc points to FUNCTION
6131       --  Defining_Unit_Name (Node1)
6132       --  Name (Node2)
6133       --  Generic_Associations (List3) (set to No_List if no
6134       --   generic actual part)
6135       --  Parent_Spec (Node4-Sem)
6136       --  Instance_Spec (Node5-Sem)
6137       --  Must_Override (Flag14) set if overriding indicator present
6138       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6139       --  ABE_Is_Certain (Flag18-Sem)
6140
6141       --  Note: overriding indicator is an Ada 2005 feature
6142
6143       -------------------------------
6144       -- 12.3  Generic Actual Part --
6145       -------------------------------
6146
6147       --  GENERIC_ACTUAL_PART ::=
6148       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6149
6150       -------------------------------
6151       -- 12.3  Generic Association --
6152       -------------------------------
6153
6154       --  GENERIC_ASSOCIATION ::=
6155       --    [generic_formal_parameter_SELECTOR_NAME =>]
6156
6157       --  Note: unlike the procedure call case, a generic association node
6158       --  is generated for every association, even if no formal parameter
6159       --  selector name is present. In this case the parser will leave the
6160       --  Selector_Name field set to Empty, to be filled in later by the
6161       --  semantic pass.
6162
6163       --  In Ada 2005, a formal may be associated with a box, if the
6164       --  association is part of the list of actuals for a formal package.
6165       --  If the association is given by  OTHERS => <>, the association is
6166       --  an N_Others_Choice.
6167
6168       --  N_Generic_Association
6169       --  Sloc points to first token of generic association
6170       --  Selector_Name (Node2) (set to Empty if no formal
6171       --   parameter selector name)
6172       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6173       --  Box_Present (Flag15) (for formal_package associations with a box)
6174
6175       ---------------------------------------------
6176       -- 12.3  Explicit Generic Actual Parameter --
6177       ---------------------------------------------
6178
6179       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6180       --    EXPRESSION      | variable_NAME   | subprogram_NAME
6181       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
6182
6183       -------------------------------------
6184       -- 12.4  Formal Object Declaration --
6185       -------------------------------------
6186
6187       --  FORMAL_OBJECT_DECLARATION ::=
6188       --    DEFINING_IDENTIFIER_LIST :
6189       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6190       --        [ASPECT_SPECIFICATIONS];
6191       --  | DEFINING_IDENTIFIER_LIST :
6192       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6193       --        [ASPECT_SPECIFICATIONS];
6194
6195       --  Although the syntax allows multiple identifiers in the list, the
6196       --  semantics is as though successive declarations were given with
6197       --  identical type definition and expression components. To simplify
6198       --  semantic processing, the parser represents a multiple declaration
6199       --  case as a sequence of single declarations, using the More_Ids and
6200       --  Prev_Ids flags to preserve the original source form as described
6201       --  in the section on "Handling of Defining Identifier Lists".
6202
6203       --  N_Formal_Object_Declaration
6204       --  Sloc points to first identifier
6205       --  Defining_Identifier (Node1)
6206       --  In_Present (Flag15)
6207       --  Out_Present (Flag17)
6208       --  Null_Exclusion_Present (Flag11) (set to False if not present)
6209       --  Subtype_Mark (Node4) (set to Empty if not present)
6210       --  Access_Definition (Node3) (set to Empty if not present)
6211       --  Default_Expression (Node5) (set to Empty if no default expression)
6212       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6213       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6214
6215       -----------------------------------
6216       -- 12.5  Formal Type Declaration --
6217       -----------------------------------
6218
6219       --  FORMAL_TYPE_DECLARATION ::=
6220       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6221       --      is FORMAL_TYPE_DEFINITION
6222       --        [ASPECT_SPECIFICATIONS];
6223       --  | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6224
6225       --  N_Formal_Type_Declaration
6226       --  Sloc points to TYPE
6227       --  Defining_Identifier (Node1)
6228       --  Formal_Type_Definition (Node3)
6229       --  Discriminant_Specifications (List4) (set to No_List if no
6230       --   discriminant part)
6231       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6232
6233       ----------------------------------
6234       -- 12.5  Formal type definition --
6235       ----------------------------------
6236
6237       --  FORMAL_TYPE_DEFINITION ::=
6238       --    FORMAL_PRIVATE_TYPE_DEFINITION
6239       --  | FORMAL_DERIVED_TYPE_DEFINITION
6240       --  | FORMAL_DISCRETE_TYPE_DEFINITION
6241       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6242       --  | FORMAL_MODULAR_TYPE_DEFINITION
6243       --  | FORMAL_FLOATING_POINT_DEFINITION
6244       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6245       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6246       --  | FORMAL_ARRAY_TYPE_DEFINITION
6247       --  | FORMAL_ACCESS_TYPE_DEFINITION
6248       --  | FORMAL_INTERFACE_TYPE_DEFINITION
6249       --  | FORMAL_INCOMPLETE_TYPE_DEFINITION
6250
6251       --  The Ada 2012 syntax introduces two new non-terminals:
6252       --  Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6253       --  the latter category. Here we introduce an incomplete type definition
6254       --  in order to preserve as much as possible the existing structure.
6255
6256       ---------------------------------------------
6257       -- 12.5.1  Formal Private Type Definition --
6258       ---------------------------------------------
6259
6260       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
6261       --    [[abstract] tagged] [limited] private
6262
6263       --  Note: TAGGED is not allowed in Ada 83 mode
6264
6265       --  N_Formal_Private_Type_Definition
6266       --  Sloc points to PRIVATE
6267       --  Abstract_Present (Flag4)
6268       --  Tagged_Present (Flag15)
6269       --  Limited_Present (Flag17)
6270
6271       --------------------------------------------
6272       -- 12.5.1  Formal Derived Type Definition --
6273       --------------------------------------------
6274
6275       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
6276       --    [abstract] [limited | synchronized]
6277       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6278       --  Note: this construct is not allowed in Ada 83 mode
6279
6280       --  N_Formal_Derived_Type_Definition
6281       --  Sloc points to NEW
6282       --  Subtype_Mark (Node4)
6283       --  Private_Present (Flag15)
6284       --  Abstract_Present (Flag4)
6285       --  Limited_Present (Flag17)
6286       --  Synchronized_Present (Flag7)
6287       --  Interface_List (List2) (set to No_List if none)
6288
6289       -----------------------------------------------
6290       -- 12.5.1  Formal Incomplete Type Definition --
6291       -----------------------------------------------
6292
6293       --  FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6294
6295       --  N_Formal_Incomplete_Type_Definition
6296       --  Sloc points to identifier of parent
6297       --  Tagged_Present (Flag15)
6298
6299       ---------------------------------------------
6300       -- 12.5.2  Formal Discrete Type Definition --
6301       ---------------------------------------------
6302
6303       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6304
6305       --  N_Formal_Discrete_Type_Definition
6306       --  Sloc points to (
6307
6308       ---------------------------------------------------
6309       -- 12.5.2  Formal Signed Integer Type Definition --
6310       ---------------------------------------------------
6311
6312       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6313
6314       --  N_Formal_Signed_Integer_Type_Definition
6315       --  Sloc points to RANGE
6316
6317       --------------------------------------------
6318       -- 12.5.2  Formal Modular Type Definition --
6319       --------------------------------------------
6320
6321       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6322
6323       --  N_Formal_Modular_Type_Definition
6324       --  Sloc points to MOD
6325
6326       ----------------------------------------------
6327       -- 12.5.2  Formal Floating Point Definition --
6328       ----------------------------------------------
6329
6330       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6331
6332       --  N_Formal_Floating_Point_Definition
6333       --  Sloc points to DIGITS
6334
6335       ----------------------------------------------------
6336       -- 12.5.2  Formal Ordinary Fixed Point Definition --
6337       ----------------------------------------------------
6338
6339       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6340
6341       --  N_Formal_Ordinary_Fixed_Point_Definition
6342       --  Sloc points to DELTA
6343
6344       ---------------------------------------------------
6345       -- 12.5.2  Formal Decimal Fixed Point Definition --
6346       ---------------------------------------------------
6347
6348       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6349
6350       --  Note: formal decimal fixed point definition not allowed in Ada 83
6351
6352       --  N_Formal_Decimal_Fixed_Point_Definition
6353       --  Sloc points to DELTA
6354
6355       ------------------------------------------
6356       -- 12.5.3  Formal Array Type Definition --
6357       ------------------------------------------
6358
6359       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6360
6361       -------------------------------------------
6362       -- 12.5.4  Formal Access Type Definition --
6363       -------------------------------------------
6364
6365       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6366
6367       ----------------------------------------------
6368       -- 12.5.5  Formal Interface Type Definition --
6369       ----------------------------------------------
6370
6371       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6372
6373       -----------------------------------------
6374       -- 12.6  Formal Subprogram Declaration --
6375       -----------------------------------------
6376
6377       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6378       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6379       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6380
6381       --------------------------------------------------
6382       -- 12.6  Formal Concrete Subprogram Declaration --
6383       --------------------------------------------------
6384
6385       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6386       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6387       --      [ASPECT_SPECIFICATIONS];
6388
6389       --  N_Formal_Concrete_Subprogram_Declaration
6390       --  Sloc points to WITH
6391       --  Specification (Node1)
6392       --  Default_Name (Node2) (set to Empty if no subprogram default)
6393       --  Box_Present (Flag15)
6394
6395       --  Note: if no subprogram default is present, then Name is set
6396       --  to Empty, and Box_Present is False.
6397
6398       --------------------------------------------------
6399       -- 12.6  Formal Abstract Subprogram Declaration --
6400       --------------------------------------------------
6401
6402       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6403       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6404       --      [ASPECT_SPECIFICATIONS];
6405
6406       --  N_Formal_Abstract_Subprogram_Declaration
6407       --  Sloc points to WITH
6408       --  Specification (Node1)
6409       --  Default_Name (Node2) (set to Empty if no subprogram default)
6410       --  Box_Present (Flag15)
6411
6412       --  Note: if no subprogram default is present, then Name is set
6413       --  to Empty, and Box_Present is False.
6414
6415       ------------------------------
6416       -- 12.6  Subprogram Default --
6417       ------------------------------
6418
6419       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6420
6421       --  There is no separate node in the tree for a subprogram default.
6422       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6423       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6424       --  default name or box indication, as needed.
6425
6426       ------------------------
6427       -- 12.6  Default Name --
6428       ------------------------
6429
6430       --  DEFAULT_NAME ::= NAME
6431
6432       --------------------------------------
6433       -- 12.7  Formal Package Declaration --
6434       --------------------------------------
6435
6436       --  FORMAL_PACKAGE_DECLARATION ::=
6437       --    with package DEFINING_IDENTIFIER
6438       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6439       --        [ASPECT_SPECIFICATIONS];
6440
6441       --  Note: formal package declarations not allowed in Ada 83 mode
6442
6443       --  N_Formal_Package_Declaration
6444       --  Sloc points to WITH
6445       --  Defining_Identifier (Node1)
6446       --  Name (Node2)
6447       --  Generic_Associations (List3) (set to No_List if (<>) case or
6448       --   empty generic actual part)
6449       --  Box_Present (Flag15)
6450       --  Instance_Spec (Node5-Sem)
6451       --  ABE_Is_Certain (Flag18-Sem)
6452
6453       --------------------------------------
6454       -- 12.7  Formal Package Actual Part --
6455       --------------------------------------
6456
6457       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6458       --    ([OTHERS] => <>)
6459       --    | [GENERIC_ACTUAL_PART]
6460       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6461
6462       --  FORMAL_PACKAGE_ASSOCIATION ::=
6463       --   GENERIC_ASSOCIATION
6464       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6465
6466       --  There is no explicit node in the tree for a formal package actual
6467       --  part. Instead the information appears in the parent node (i.e. the
6468       --  formal package declaration node itself).
6469
6470       --  There is no explicit node for a formal package association. All of
6471       --  them are represented either by a generic association, possibly with
6472       --  Box_Present, or by an N_Others_Choice.
6473
6474       ---------------------------------
6475       -- 13.1  Representation clause --
6476       ---------------------------------
6477
6478       --  REPRESENTATION_CLAUSE ::=
6479       --    ATTRIBUTE_DEFINITION_CLAUSE
6480       --  | ENUMERATION_REPRESENTATION_CLAUSE
6481       --  | RECORD_REPRESENTATION_CLAUSE
6482       --  | AT_CLAUSE
6483
6484       ----------------------
6485       -- 13.1  Local Name --
6486       ----------------------
6487
6488       --  LOCAL_NAME :=
6489       --    DIRECT_NAME
6490       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6491       --  | library_unit_NAME
6492
6493       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6494       --  as an attribute reference, which has essentially the same form.
6495
6496       ---------------------------------------
6497       -- 13.3  Attribute definition clause --
6498       ---------------------------------------
6499
6500       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6501       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6502       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6503
6504       --  In Ada 83, the expression must be a simple expression and the
6505       --  local name must be a direct name.
6506
6507       --  Note: the only attribute definition clause that is processed by
6508       --  gigi is an address clause. For all other cases, the information
6509       --  is extracted by the front end and either results in setting entity
6510       --  information, e.g. Esize for the Size clause, or in appropriate
6511       --  expansion actions (e.g. in the case of Storage_Size).
6512
6513       --  For an address clause, Gigi constructs the appropriate addressing
6514       --  code. It also ensures that no aliasing optimizations are made
6515       --  for the object for which the address clause appears.
6516
6517       --  Note: for an address clause used to achieve an overlay:
6518
6519       --    A : Integer;
6520       --    B : Integer;
6521       --    for B'Address use A'Address;
6522
6523       --  the above rule means that Gigi will ensure that no optimizations
6524       --  will be made for B that would violate the implementation advice
6525       --  of RM 13.3(19). However, this advice applies only to B and not
6526       --  to A, which seems unfortunate. The GNAT front end will mark the
6527       --  object A as volatile to also prevent unwanted optimization
6528       --  assumptions based on no aliasing being made for B.
6529
6530       --  N_Attribute_Definition_Clause
6531       --  Sloc points to FOR
6532       --  Name (Node2) the local name
6533       --  Chars (Name1) the identifier name from the attribute designator
6534       --  Expression (Node3) the expression or name
6535       --  Entity (Node4-Sem)
6536       --  Next_Rep_Item (Node5-Sem)
6537       --  From_At_Mod (Flag4-Sem)
6538       --  Check_Address_Alignment (Flag11-Sem)
6539       --  From_Aspect_Specification (Flag13-Sem)
6540       --  Is_Delayed_Aspect (Flag14-Sem)
6541       --  Address_Warning_Posted (Flag18-Sem)
6542
6543       --  Note: if From_Aspect_Specification is set, then Sloc points to the
6544       --  aspect name, and Entity is resolved already to reference the entity
6545       --  to which the aspect applies.
6546
6547       -----------------------------------
6548       -- 13.3.1  Aspect Specifications --
6549       -----------------------------------
6550
6551       --  We modify the RM grammar here, the RM grammar is:
6552
6553       --     ASPECT_SPECIFICATION ::=
6554       --       with ASPECT_MARK [=> ASPECT_DEFINITION] {.
6555       --            ASPECT_MARK [=> ASPECT_DEFINITION] }
6556
6557       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6558
6559       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
6560
6561       --  That's inconvenient, since there is no non-terminal name for a single
6562       --  entry in the list of aspects. So we use this grammar instead:
6563
6564       --     ASPECT_SPECIFICATIONS ::=
6565       --       with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6566
6567       --     ASPECT_SPECIFICATION =>
6568       --       ASPECT_MARK [=> ASPECT_DEFINITION]
6569
6570       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6571
6572       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
6573
6574       --  See separate package Aspects for details on the incorporation of
6575       --  these nodes into the tree, and how aspect specifications for a given
6576       --  declaration node are associated with that node.
6577
6578       --  N_Aspect_Specification
6579       --  Sloc points to aspect identifier
6580       --  Identifier (Node1) aspect identifier
6581       --  Aspect_Rep_Item (Node2-Sem)
6582       --  Expression (Node3) Aspect_Definition (set to Empty if none)
6583       --  Entity (Node4-Sem) entity to which the aspect applies
6584       --  Class_Present (Flag6) Set if 'Class present
6585       --  Next_Rep_Item (Node5-Sem)
6586       --  Split_PPC (Flag17) Set if split pre/post attribute
6587       --  Is_Boolean_Aspect (Flag16-Sem)
6588       --  Is_Delayed_Aspect (Flag14-Sem)
6589
6590       --  Note: Aspect_Specification is an Ada 2012 feature
6591
6592       --  Note: The Identifier serves to identify the aspect involved (it
6593       --  is the aspect whose name corresponds to the Chars field). This
6594       --  means that the other fields of this identifier are unused, and
6595       --  in particular we use the Entity field of this identifier to save
6596       --  a copy of the expression for visibility analysis, see spec of
6597       --  Sem_Ch13 for full details of this usage.
6598
6599       --  Note: When a Pre or Post aspect specification is processed, it is
6600       --  broken into AND THEN sections. The left most section has Split_PPC
6601       --  set to False, indicating that it is the original specification (e.g.
6602       --  for posting errors). For the other sections, Split_PPC is set True.
6603
6604       ---------------------------------------------
6605       -- 13.4  Enumeration representation clause --
6606       ---------------------------------------------
6607
6608       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6609       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6610
6611       --  In Ada 83, the name must be a direct name
6612
6613       --  N_Enumeration_Representation_Clause
6614       --  Sloc points to FOR
6615       --  Identifier (Node1) direct name
6616       --  Array_Aggregate (Node3)
6617       --  Next_Rep_Item (Node5-Sem)
6618
6619       ---------------------------------
6620       -- 13.4  Enumeration aggregate --
6621       ---------------------------------
6622
6623       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6624
6625       ------------------------------------------
6626       -- 13.5.1  Record representation clause --
6627       ------------------------------------------
6628
6629       --  RECORD_REPRESENTATION_CLAUSE ::=
6630       --    for first_subtype_LOCAL_NAME use
6631       --      record [MOD_CLAUSE]
6632       --        {COMPONENT_CLAUSE}
6633       --      end record;
6634
6635       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6636       --  replaced by a corresponding Alignment attribute definition clause).
6637
6638       --  Note: Component_Clauses can include pragmas
6639
6640       --  N_Record_Representation_Clause
6641       --  Sloc points to FOR
6642       --  Identifier (Node1) direct name
6643       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6644       --  Component_Clauses (List3)
6645       --  Next_Rep_Item (Node5-Sem)
6646
6647       ------------------------------
6648       -- 13.5.1  Component clause --
6649       ------------------------------
6650
6651       --  COMPONENT_CLAUSE ::=
6652       --    component_LOCAL_NAME at POSITION
6653       --      range FIRST_BIT .. LAST_BIT;
6654
6655       --  N_Component_Clause
6656       --  Sloc points to AT
6657       --  Component_Name (Node1) points to Name or Attribute_Reference
6658       --  Position (Node2)
6659       --  First_Bit (Node3)
6660       --  Last_Bit (Node4)
6661
6662       ----------------------
6663       -- 13.5.1  Position --
6664       ----------------------
6665
6666       --  POSITION ::= static_EXPRESSION
6667
6668       -----------------------
6669       -- 13.5.1  First_Bit --
6670       -----------------------
6671
6672       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6673
6674       ----------------------
6675       -- 13.5.1  Last_Bit --
6676       ----------------------
6677
6678       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6679
6680       --------------------------
6681       -- 13.8  Code statement --
6682       --------------------------
6683
6684       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6685
6686       --  Note: in GNAT, the qualified expression has the form
6687
6688       --    Asm_Insn'(Asm (...));
6689
6690       --  See package System.Machine_Code in file s-maccod.ads for details on
6691       --  the allowed parameters to Asm. There are two ways this node can
6692       --  arise, as a code statement, in which case the expression is the
6693       --  qualified expression, or as a result of the expansion of an intrinsic
6694       --  call to the Asm or Asm_Input procedure.
6695
6696       --  N_Code_Statement
6697       --  Sloc points to first token of the expression
6698       --  Expression (Node3)
6699
6700       --  Note: package Exp_Code contains an abstract functional interface
6701       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
6702
6703       ------------------------
6704       -- 13.12  Restriction --
6705       ------------------------
6706
6707       --  RESTRICTION ::=
6708       --    restriction_IDENTIFIER
6709       --  | restriction_parameter_IDENTIFIER => EXPRESSION
6710
6711       --  There is no explicit node for restrictions. Instead the restriction
6712       --  appears in normal pragma syntax as a pragma argument association,
6713       --  which has the same syntactic form.
6714
6715       --------------------------
6716       -- B.2  Shift Operators --
6717       --------------------------
6718
6719       --  Calls to the intrinsic shift functions are converted to one of
6720       --  the following shift nodes, which have the form of normal binary
6721       --  operator names. Note that for a given shift operation, one node
6722       --  covers all possible types, as for normal operators.
6723
6724       --  Note: it is perfectly permissible for the expander to generate
6725       --  shift operation nodes directly, in which case they will be analyzed
6726       --  and parsed in the usual manner.
6727
6728       --  Sprint syntax: shift-function-name!(expr, count)
6729
6730       --  Note: the Left_Opnd field holds the first argument (the value to
6731       --  be shifted). The Right_Opnd field holds the second argument (the
6732       --  shift count). The Chars field is the name of the intrinsic function.
6733
6734       --  N_Op_Rotate_Left
6735       --  Sloc points to the function name
6736       --  plus fields for binary operator
6737       --  plus fields for expression
6738       --  Shift_Count_OK (Flag4-Sem)
6739
6740       --  N_Op_Rotate_Right
6741       --  Sloc points to the function name
6742       --  plus fields for binary operator
6743       --  plus fields for expression
6744       --  Shift_Count_OK (Flag4-Sem)
6745
6746       --  N_Op_Shift_Left
6747       --  Sloc points to the function name
6748       --  plus fields for binary operator
6749       --  plus fields for expression
6750       --  Shift_Count_OK (Flag4-Sem)
6751
6752       --  N_Op_Shift_Right_Arithmetic
6753       --  Sloc points to the function name
6754       --  plus fields for binary operator
6755       --  plus fields for expression
6756       --  Shift_Count_OK (Flag4-Sem)
6757
6758       --  N_Op_Shift_Right
6759       --  Sloc points to the function name
6760       --  plus fields for binary operator
6761       --  plus fields for expression
6762       --  Shift_Count_OK (Flag4-Sem)
6763
6764    --------------------------
6765    -- Obsolescent Features --
6766    --------------------------
6767
6768       --  The syntax descriptions and tree nodes for obsolescent features are
6769       --  grouped together, corresponding to their location in appendix I in
6770       --  the RM. However, parsing and semantic analysis for these constructs
6771       --  is located in an appropriate chapter (see individual notes).
6772
6773       ---------------------------
6774       -- J.3  Delta Constraint --
6775       ---------------------------
6776
6777       --  Note: the parse routine for this construct is located in section
6778       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6779       --  where delta constraint logically belongs.
6780
6781       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6782
6783       --  N_Delta_Constraint
6784       --  Sloc points to DELTA
6785       --  Delta_Expression (Node3)
6786       --  Range_Constraint (Node4) (set to Empty if not present)
6787
6788       --------------------
6789       -- J.7  At Clause --
6790       --------------------
6791
6792       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6793
6794       --  Note: the parse routine for this construct is located in Par-Ch13,
6795       --  and the semantic analysis is in Sem_Ch13, where at clause logically
6796       --  belongs if it were not obsolescent.
6797
6798       --  Note: in Ada 83 the expression must be a simple expression
6799
6800       --  Gigi restriction: This node never appears, it is rewritten as an
6801       --  address attribute definition clause.
6802
6803       --  N_At_Clause
6804       --  Sloc points to FOR
6805       --  Identifier (Node1)
6806       --  Expression (Node3)
6807
6808       ---------------------
6809       -- J.8  Mod clause --
6810       ---------------------
6811
6812       --  MOD_CLAUSE ::= at mod static_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 mod 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 replaced
6821       --  by a corresponding Alignment attribute definition clause.
6822
6823       --  Note: pragmas can appear before and after the MOD_CLAUSE since
6824       --  its name has "clause" in it. This is rather strange, but is quite
6825       --  definitely specified. The pragmas before are collected in the
6826       --  Pragmas_Before field of the mod clause node itself, and pragmas
6827       --  after are simply swallowed up in the list of component clauses.
6828
6829       --  N_Mod_Clause
6830       --  Sloc points to AT
6831       --  Expression (Node3)
6832       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6833
6834    --------------------
6835    -- Semantic Nodes --
6836    --------------------
6837
6838    --  These semantic nodes are used to hold additional semantic information.
6839    --  They are inserted into the tree as a result of semantic processing.
6840    --  Although there are no legitimate source syntax constructions that
6841    --  correspond directly to these nodes, we need a source syntax for the
6842    --  reconstructed tree printed by Sprint, and the node descriptions here
6843    --  show this syntax.
6844
6845    --  Note: Case_Expression and Conditional_Expression is in this section for
6846    --  now, since they are extensions. We will move them to their appropriate
6847    --  places when they are officially approved as extensions (and then we will
6848    --  know what the exact grammar and place in the Reference Manual is!)
6849
6850       ---------------------
6851       -- Case Expression --
6852       ---------------------
6853
6854       --  CASE_EXPRESSION ::=
6855       --    case EXPRESSION is
6856       --      CASE_EXPRESSION_ALTERNATIVE
6857       --      {CASE_EXPRESSION_ALTERNATIVE}
6858
6859       --  Note that the Alternatives cannot include pragmas (this contrasts
6860       --  with the situation of case statements where pragmas are allowed).
6861
6862       --  N_Case_Expression
6863       --  Sloc points to CASE
6864       --  Expression (Node3)
6865       --  Alternatives (List4)
6866
6867       ---------------------------------
6868       -- Case Expression Alternative --
6869       ---------------------------------
6870
6871       --  CASE_STATEMENT_ALTERNATIVE ::=
6872       --    when DISCRETE_CHOICE_LIST =>
6873       --      EXPRESSION
6874
6875       --  N_Case_Expression_Alternative
6876       --  Sloc points to WHEN
6877       --  Actions (List1)
6878       --  Discrete_Choices (List4)
6879       --  Expression (Node3)
6880
6881       --  Note: The Actions field temporarily holds any actions associated with
6882       --  evaluation of the Expression. During expansion of the case expression
6883       --  these actions are wrapped into an N_Expressions_With_Actions node
6884       --  replacing the original expression.
6885
6886       ----------------------------
6887       -- Conditional Expression --
6888       ----------------------------
6889
6890       --  This node is used to represent an expression corresponding to the
6891       --  C construct (condition ? then-expression : else_expression), where
6892       --  Expressions is a three element list, whose first expression is the
6893       --  condition, and whose second and third expressions are the then and
6894       --  else expressions respectively.
6895
6896       --  Note: the Then_Actions and Else_Actions fields are always set to
6897       --  No_List in the tree passed to Gigi. These fields are used only
6898       --  for temporary processing purposes in the expander.
6899
6900       --  The Ada language does not permit conditional expressions, however
6901       --  this is under discussion as a possible extension by the ARG, and we
6902       --  have implemented a form of this capability in GNAT under control of
6903       --  the -gnatX switch. The syntax is:
6904
6905       --  CONDITIONAL_EXPRESSION ::=
6906       --    if EXPRESSION then EXPRESSION
6907       --                  {elsif EXPRESSION then EXPRESSION}
6908       --                  [else EXPRESSION]
6909
6910       --  And we add the additional constructs
6911
6912       --  PRIMARY ::= ( CONDITIONAL_EXPRESSION )
6913       --  PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6914
6915       --  Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6916       --  is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6917       --  the Is_Elsif flag is set on the inner conditional expression.
6918
6919       --  N_Conditional_Expression
6920       --  Sloc points to IF or ELSIF keyword
6921       --  Expressions (List1)
6922       --  Then_Actions (List2-Sem)
6923       --  Else_Actions (List3-Sem)
6924       --  Is_Elsif (Flag13) (set if comes from ELSIF)
6925       --  plus fields for expression
6926
6927       --------------
6928       -- Contract --
6929       --------------
6930
6931       --  This node is used to hold the various parts of an entry or subprogram
6932       --  contract, consisting in pre- and postconditions on the one hand, and
6933       --  test-cases on the other hand.
6934
6935       --  It is referenced from an entry, a subprogram or a generic subprogram
6936       --  entity.
6937
6938       --  Sprint syntax:  <none> as the node should not appear in the tree, but
6939       --                  only attached to an entry or [generic] subprogram
6940       --                  entity.
6941
6942       --  N_Contract
6943       --  Sloc points to the subprogram's name
6944       --  Spec_PPC_List (Node1) (set to Empty if none)
6945       --  Spec_TC_List (Node2) (set to Empty if none)
6946
6947       --  Spec_PPC_List points to a list of Precondition and Postcondition
6948       --  pragma nodes for preconditions and postconditions declared in the
6949       --  spec of the entry/subprogram. The last pragma encountered is at the
6950       --  head of this list, so it is in reverse order of textual appearance.
6951       --  Note that this includes precondition/postcondition pragmas generated
6952       --  to correspond to Pre/Post aspects.
6953
6954       --  Spec_TC_List points to a list of Test_Case pragma nodes for
6955       --  test-cases declared in the spec of the entry/subprogram. The last
6956       --  pragma encountered is at the head of this list, so it is in reverse
6957       --  order of textual appearance. Note that this includes test-case
6958       --  pragmas generated to correspond to Test_Case aspects.
6959
6960       -------------------
6961       -- Expanded_Name --
6962       -------------------
6963
6964       --  The N_Expanded_Name node is used to represent a selected component
6965       --  name that has been resolved to an expanded name. The semantic phase
6966       --  replaces N_Selected_Component nodes that represent names by the use
6967       --  of this node, leaving the N_Selected_Component node used only when
6968       --  the prefix is a record or protected type.
6969
6970       --  The fields of the N_Expanded_Name node are layed out identically
6971       --  to those of the N_Selected_Component node, allowing conversion of
6972       --  an expanded name node to a selected component node to be done
6973       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6974
6975       --  There is no special sprint syntax for an expanded name
6976
6977       --  N_Expanded_Name
6978       --  Sloc points to the period
6979       --  Chars (Name1) copy of Chars field of selector name
6980       --  Prefix (Node3)
6981       --  Selector_Name (Node2)
6982       --  Entity (Node4-Sem)
6983       --  Associated_Node (Node4-Sem)
6984       --  Redundant_Use (Flag13-Sem)
6985       --  Has_Private_View (Flag11-Sem) set in generic units.
6986       --  plus fields for expression
6987
6988       -----------------------------
6989       -- Expression with Actions --
6990       -----------------------------
6991
6992       --  This node is created by the analyzer/expander to handle some
6993       --  expansion cases, notably short circuit forms where there are
6994       --  actions associated with the right-hand side operand.
6995
6996       --  The N_Expression_With_Actions node represents an expression with
6997       --  an associated set of actions (which are executable statements and
6998       --  declarations, as might occur in a handled statement sequence).
6999
7000       --  The required semantics is that the set of actions is executed in
7001       --  the order in which it appears just before the expression is
7002       --  evaluated (and these actions must only be executed if the value
7003       --  of the expression is evaluated). The node is considered to be
7004       --  a subexpression, whose value is the value of the Expression after
7005       --  executing all the actions.
7006
7007       --  Note: if the actions contain declarations, then these declarations
7008       --  may be referenced within the expression. It is thus appropriate for
7009       --  the back-end to create a scope that encompasses the construct (any
7010       --  declarations within the actions will definitely not be referenced
7011       --  once elaboration of the construct is completed).
7012
7013       --  Sprint syntax:  do
7014       --                    action;
7015       --                    action;
7016       --                    ...
7017       --                    action;
7018       --                  in expression end
7019
7020       --  N_Expression_With_Actions
7021       --  Actions (List1)
7022       --  Expression (Node3)
7023       --  plus fields for expression
7024
7025       --  Note: the actions list is always non-null, since we would
7026       --  never have created this node if there weren't some actions.
7027
7028       --------------------
7029       -- Free Statement --
7030       --------------------
7031
7032       --  The N_Free_Statement node is generated as a result of a call to an
7033       --  instantiation of Unchecked_Deallocation. The instantiation of this
7034       --  generic is handled specially and generates this node directly.
7035
7036       --  Sprint syntax: free expression
7037
7038       --  N_Free_Statement
7039       --  Sloc is copied from the unchecked deallocation call
7040       --  Expression (Node3) argument to unchecked deallocation call
7041       --  Storage_Pool (Node1-Sem)
7042       --  Procedure_To_Call (Node2-Sem)
7043       --  Actual_Designated_Subtype (Node4-Sem)
7044
7045       --  Note: in the case where a debug source file is generated, the Sloc
7046       --  for this node points to the FREE keyword in the Sprint file output.
7047
7048       -------------------
7049       -- Freeze Entity --
7050       -------------------
7051
7052       --  This node marks the point in a declarative part at which an entity
7053       --  declared therein becomes frozen. The expander places initialization
7054       --  procedures for types at those points. Gigi uses the freezing point
7055       --  to elaborate entities that may depend on previous private types.
7056
7057       --  See the section in Einfo "Delayed Freezing and Elaboration" for
7058       --  a full description of the use of this node.
7059
7060       --  The Entity field points back to the entity for the type (whose
7061       --  Freeze_Node field points back to this freeze node).
7062
7063       --  The Actions field contains a list of declarations and statements
7064       --  generated by the expander which are associated with the freeze
7065       --  node, and are elaborated as though the freeze node were replaced
7066       --  by this sequence of actions.
7067
7068       --  Note: the Sloc field in the freeze node references a construct
7069       --  associated with the freezing point. This is used for posting
7070       --  messages in some error/warning situations, e.g. the case where
7071       --  a primitive operation of a tagged type is declared too late.
7072
7073       --  Sprint syntax: freeze entity-name [
7074       --                   freeze actions
7075       --                 ]
7076
7077       --  N_Freeze_Entity
7078       --  Sloc points near freeze point (see above special note)
7079       --  Entity (Node4-Sem)
7080       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7081       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7082       --  Actions (List1) (set to No_List if no freeze actions)
7083       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7084
7085       --  The Actions field holds actions associated with the freeze. These
7086       --  actions are elaborated at the point where the type is frozen.
7087
7088       --  Note: in the case where a debug source file is generated, the Sloc
7089       --  for this node points to the FREEZE keyword in the Sprint file output.
7090
7091       --------------------------------
7092       -- Implicit Label Declaration --
7093       --------------------------------
7094
7095       --  An implicit label declaration is created for every occurrence of a
7096       --  label on a statement or a label on a block or loop. It is chained
7097       --  in the declarations of the innermost enclosing block as specified
7098       --  in RM section 5.1 (3).
7099
7100       --  The Defining_Identifier is the actual identifier for the statement
7101       --  identifier. Note that the occurrence of the label is a reference, NOT
7102       --  the defining occurrence. The defining occurrence occurs at the head
7103       --  of the innermost enclosing block, and is represented by this node.
7104
7105       --  Note: from the grammar, this might better be called an implicit
7106       --  statement identifier declaration, but the term we choose seems
7107       --  friendlier, since at least informally statement identifiers are
7108       --  called labels in both cases (i.e. when used in labels, and when
7109       --  used as the identifiers of blocks and loops).
7110
7111       --  Note: although this is logically a semantic node, since it does not
7112       --  correspond directly to a source syntax construction, these nodes are
7113       --  actually created by the parser in a post pass done just after parsing
7114       --  is complete, before semantic analysis is started (see Par.Labl).
7115
7116       --  Sprint syntax: labelname : label;
7117
7118       --  N_Implicit_Label_Declaration
7119       --  Sloc points to the << of the label
7120       --  Defining_Identifier (Node1)
7121       --  Label_Construct (Node2-Sem)
7122
7123       --  Note: in the case where a debug source file is generated, the Sloc
7124       --  for this node points to the label name in the generated declaration.
7125
7126       ---------------------
7127       -- Itype_Reference --
7128       ---------------------
7129
7130       --  This node is used to create a reference to an Itype. The only purpose
7131       --  is to make sure the Itype is defined if this is the first reference.
7132
7133       --  A typical use of this node is when an Itype is to be referenced in
7134       --  two branches of an IF statement. In this case it is important that
7135       --  the first use of the Itype not be inside the conditional, since then
7136       --  it might not be defined if the other branch of the IF is taken, in
7137       --  the case where the definition generates elaboration code.
7138
7139       --  The Itype field points to the referenced Itype
7140
7141       --  Sprint syntax: reference itype-name
7142
7143       --  N_Itype_Reference
7144       --  Sloc points to the node generating the reference
7145       --  Itype (Node1-Sem)
7146
7147       --  Note: in the case where a debug source file is generated, the Sloc
7148       --  for this node points to the REFERENCE keyword in the file output.
7149
7150       ---------------------
7151       -- Raise_xxx_Error --
7152       ---------------------
7153
7154       --  One of these nodes is created during semantic analysis to replace
7155       --  a node for an expression that is determined to definitely raise
7156       --  the corresponding exception.
7157
7158       --  The N_Raise_xxx_Error node may also stand alone in place
7159       --  of a declaration or statement, in which case it simply causes
7160       --  the exception to be raised (i.e. it is equivalent to a raise
7161       --  statement that raises the corresponding exception). This use
7162       --  is distinguished by the fact that the Etype in this case is
7163       --  Standard_Void_Type, In the subexpression case, the Etype is the
7164       --  same as the type of the subexpression which it replaces.
7165
7166       --  If Condition is empty, then the raise is unconditional. If the
7167       --  Condition field is non-empty, it is a boolean expression which
7168       --  is first evaluated, and the exception is raised only if the
7169       --  value of the expression is True. In the unconditional case, the
7170       --  creation of this node is usually accompanied by a warning message
7171       --  error. The creation of this node will usually be accompanied by a
7172       --  message (unless it appears within the right operand of a short
7173       --  circuit form whose left argument is static and decisively
7174       --  eliminates elaboration of the raise operation. The condition field
7175       --  can ONLY be present when the node is used as a statement form, it
7176       --  may NOT be present in the case where the node appears within an
7177       --  expression.
7178
7179       --  The exception is generated with a message that contains the
7180       --  file name and line number, and then appended text. The Reason
7181       --  code shows the text to be added. The Reason code is an element
7182       --  of the type Types.RT_Exception_Code, and indicates both the
7183       --  message to be added, and the exception to be raised (which must
7184       --  match the node type). The value is stored by storing a Uint which
7185       --  is the Pos value of the enumeration element in this type.
7186
7187       --  Gigi restriction: This expander ensures that the type of the
7188       --  Condition field is always Standard.Boolean, even if the type
7189       --  in the source is some non-standard boolean type.
7190
7191       --  Sprint syntax: [xxx_error "msg"]
7192       --             or: [xxx_error when condition "msg"]
7193
7194       --  N_Raise_Constraint_Error
7195       --  Sloc references related construct
7196       --  Condition (Node1) (set to Empty if no condition)
7197       --  Reason (Uint3)
7198       --  plus fields for expression
7199
7200       --  N_Raise_Program_Error
7201       --  Sloc references related construct
7202       --  Condition (Node1) (set to Empty if no condition)
7203       --  Reason (Uint3)
7204       --  plus fields for expression
7205
7206       --  N_Raise_Storage_Error
7207       --  Sloc references related construct
7208       --  Condition (Node1) (set to Empty if no condition)
7209       --  Reason (Uint3)
7210       --  plus fields for expression
7211
7212       --  Note: Sloc is copied from the expression generating the exception.
7213       --  In the case where a debug source file is generated, the Sloc for
7214       --  this node points to the left bracket in the Sprint file output.
7215
7216       --  Note: the back end may be required to translate these nodes into
7217       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7218
7219       ---------------------------------------------
7220       -- Optimization of Exception Raise to Goto --
7221       ---------------------------------------------
7222
7223       --  In some cases, the front end will determine that any exception raised
7224       --  by the back end for a certain exception should be transformed into a
7225       --  goto statement.
7226
7227       --  There are three kinds of exceptions raised by the back end (note that
7228       --  for this purpose we consider gigi to be part of the back end in the
7229       --  gcc case):
7230
7231       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
7232       --     2. Exceptions from checks triggered by Do_xxx_Check flags
7233       --     3. Other cases not specifically marked by the front end
7234
7235       --  Normally all such exceptions are translated into calls to the proper
7236       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
7237       --  and the exception message.
7238
7239       --  The front end may determine that for a particular sequence of code,
7240       --  exceptions in any of these three categories for a particular builtin
7241       --  exception should result in a goto, rather than a call to Rcheck_xx.
7242       --  The exact sequence to be generated is:
7243
7244       --      Local_Raise (exception'Identity);
7245       --      goto Label
7246
7247       --  The front end marks such a sequence of code by bracketing it with
7248       --  push and pop nodes:
7249
7250       --       N_Push_xxx_Label (referencing the label)
7251       --       ...
7252       --       (code where transformation is expected for exception xxx)
7253       --       ...
7254       --       N_Pop_xxx_Label
7255
7256       --  The use of push/pop reflects the fact that such regions can properly
7257       --  nest, and one special case is a subregion in which no transformation
7258       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7259       --  Exception_Label field is Empty.
7260
7261       --  N_Push_Constraint_Error_Label
7262       --  Sloc references first statement in region covered
7263       --  Exception_Label (Node5-Sem)
7264
7265       --  N_Push_Program_Error_Label
7266       --  Sloc references first statement in region covered
7267       --  Exception_Label (Node5-Sem)
7268
7269       --  N_Push_Storage_Error_Label
7270       --  Sloc references first statement in region covered
7271       --  Exception_Label (Node5-Sem)
7272
7273       --  N_Pop_Constraint_Error_Label
7274       --  Sloc references last statement in region covered
7275
7276       --  N_Pop_Program_Error_Label
7277       --  Sloc references last statement in region covered
7278
7279       --  N_Pop_Storage_Error_Label
7280       --  Sloc references last statement in region covered
7281
7282       ---------------
7283       -- Reference --
7284       ---------------
7285
7286       --  For a number of purposes, we need to construct references to objects.
7287       --  These references are subsequently treated as normal access values.
7288       --  An example is the construction of the parameter block passed to a
7289       --  task entry. The N_Reference node is provided for this purpose. It is
7290       --  similar in effect to the use of the Unrestricted_Access attribute,
7291       --  and like Unrestricted_Access can be applied to objects which would
7292       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
7293       --  objects which are not aliased, and slices). In addition it can be
7294       --  applied to composite type values as well as objects, including string
7295       --  values and aggregates.
7296
7297       --  Note: we use the Prefix field for this expression so that the
7298       --  resulting node can be treated using common code with the attribute
7299       --  nodes for the 'Access and related attributes. Logically it would make
7300       --  more sense to call it an Expression field, but then we would have to
7301       --  special case the treatment of the N_Reference node.
7302
7303       --  Sprint syntax: prefix'reference
7304
7305       --  N_Reference
7306       --  Sloc is copied from the expression
7307       --  Prefix (Node3)
7308       --  plus fields for expression
7309
7310       --  Note: in the case where a debug source file is generated, the Sloc
7311       --  for this node points to the quote in the Sprint file output.
7312
7313       -----------------
7314       --  SCIL Nodes --
7315       -----------------
7316
7317       --  SCIL nodes are special nodes added to the tree when the CodePeer
7318       --  mode is active. They help the CodePeer backend to locate nodes that
7319       --  require special processing.
7320
7321       --  Major documentation on the general design of the SCIL interface, and
7322       --  in particular detailed description of these nodes is missing and is
7323       --  to be supplied in the future, when the design has finalized ???
7324
7325       --  Meanwhile these nodes should be considered in experimental form, and
7326       --  should be ignored by all code generating back ends. ???
7327
7328       --  N_SCIL_Dispatch_Table_Tag_Init
7329       --  Sloc references a node for a tag initialization
7330       --  SCIL_Entity (Node4-Sem)
7331
7332       --  N_SCIL_Dispatching_Call
7333       --  Sloc references the node of a dispatching call
7334       --  SCIL_Target_Prim (Node2-Sem)
7335       --  SCIL_Entity (Node4-Sem)
7336       --  SCIL_Controlling_Tag (Node5-Sem)
7337
7338       --  N_SCIL_Membership_Test
7339       --  Sloc references the node of a membership test
7340       --  SCIL_Tag_Value (Node5-Sem)
7341       --  SCIL_Entity (Node4-Sem)
7342
7343       ---------------------
7344       -- Subprogram_Info --
7345       ---------------------
7346
7347       --  This node generates the appropriate Subprogram_Info value for a
7348       --  given procedure. See Ada.Exceptions for further details
7349
7350       --  Sprint syntax: subprog'subprogram_info
7351
7352       --  N_Subprogram_Info
7353       --  Sloc points to the entity for the procedure
7354       --  Identifier (Node1) identifier referencing the procedure
7355       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7356
7357       --  Note: in the case where a debug source file is generated, the Sloc
7358       --  for this node points to the quote in the Sprint file output.
7359
7360       --------------------------
7361       -- Unchecked Expression --
7362       --------------------------
7363
7364       --  An unchecked expression is one that must be analyzed and resolved
7365       --  with all checks off, regardless of the current setting of scope
7366       --  suppress flags.
7367
7368       --  Sprint syntax: `(expression)
7369
7370       --  Note: this node is always removed from the tree (and replaced by
7371       --  its constituent expression) on completion of analysis, so it only
7372       --  appears in intermediate trees, and will never be seen by Gigi.
7373
7374       --  N_Unchecked_Expression
7375       --  Sloc is a copy of the Sloc of the expression
7376       --  Expression (Node3)
7377       --  plus fields for expression
7378
7379       --  Note: in the case where a debug source file is generated, the Sloc
7380       --  for this node points to the back quote in the Sprint file output.
7381
7382       -------------------------------
7383       -- Unchecked Type Conversion --
7384       -------------------------------
7385
7386       --  An unchecked type conversion node represents the semantic action
7387       --  corresponding to a call to an instantiation of Unchecked_Conversion.
7388       --  It is generated as a result of actual use of Unchecked_Conversion
7389       --  and also the expander generates unchecked type conversion nodes
7390       --  directly for expansion of complex semantic actions.
7391
7392       --  Note: an unchecked type conversion is a variable as far as the
7393       --  semantics are concerned, which is convenient for the expander.
7394       --  This does not change what Ada source programs are legal, since
7395       --  clearly a function call to an instantiation of Unchecked_Conversion
7396       --  is not a variable in any case.
7397
7398       --  Sprint syntax: subtype-mark!(expression)
7399
7400       --  N_Unchecked_Type_Conversion
7401       --  Sloc points to related node in source
7402       --  Subtype_Mark (Node4)
7403       --  Expression (Node3)
7404       --  Kill_Range_Check (Flag11-Sem)
7405       --  No_Truncation (Flag17-Sem)
7406       --  plus fields for expression
7407
7408       --  Note: in the case where a debug source file is generated, the Sloc
7409       --  for this node points to the exclamation in the Sprint file output.
7410
7411       -----------------------------------
7412       -- Validate_Unchecked_Conversion --
7413       -----------------------------------
7414
7415       --  The front end does most of the validation of unchecked conversion,
7416       --  including checking sizes (this is done after the back end is called
7417       --  to take advantage of back-annotation of calculated sizes).
7418
7419       --  The front end also deals with specific cases that are not allowed
7420       --  e.g. involving unconstrained array types.
7421
7422       --  For the case of the standard gigi backend, this means that all
7423       --  checks are done in the front-end.
7424
7425       --  However, in the case of specialized back-ends, notably the JVM
7426       --  backend for JGNAT, additional requirements and restrictions apply
7427       --  to unchecked conversion, and these are most conveniently performed
7428       --  in the specialized back-end.
7429
7430       --  To accommodate this requirement, for such back ends, the following
7431       --  special node is generated recording an unchecked conversion that
7432       --  needs to be validated. The back end should post an appropriate
7433       --  error message if the unchecked conversion is invalid or warrants
7434       --  a special warning message.
7435
7436       --  Source_Type and Target_Type point to the entities for the two
7437       --  types involved in the unchecked conversion instantiation that
7438       --  is to be validated.
7439
7440       --  Sprint syntax: validate Unchecked_Conversion (source, target);
7441
7442       --  N_Validate_Unchecked_Conversion
7443       --  Sloc points to instantiation (location for warning message)
7444       --  Source_Type (Node1-Sem)
7445       --  Target_Type (Node2-Sem)
7446
7447       --  Note: in the case where a debug source file is generated, the Sloc
7448       --  for this node points to the VALIDATE keyword in the file output.
7449
7450    -----------
7451    -- Empty --
7452    -----------
7453
7454    --  Used as the contents of the Nkind field of the dummy Empty node
7455    --  and in some other situations to indicate an uninitialized value.
7456
7457    --  N_Empty
7458    --  Chars (Name1) is set to No_Name
7459
7460    -----------
7461    -- Error --
7462    -----------
7463
7464    --  Used as the contents of the Nkind field of the dummy Error node.
7465    --  Has an Etype field, which gets set to Any_Type later on, to help
7466    --  error recovery (Error_Posted is also set in the Error node).
7467
7468    --  N_Error
7469    --  Chars (Name1) is set to Error_Name
7470    --  Etype (Node5-Sem)
7471
7472    --------------------------
7473    -- Node Type Definition --
7474    --------------------------
7475
7476    --  The following is the definition of the Node_Kind type. As previously
7477    --  discussed, this is separated off to allow rearrangement of the order to
7478    --  facilitate definition of subtype ranges. The comments show the subtype
7479    --  classes which apply to each set of node kinds. The first entry in the
7480    --  comment characterizes the following list of nodes.
7481
7482    type Node_Kind is (
7483       N_Unused_At_Start,
7484
7485       --  N_Representation_Clause
7486
7487       N_At_Clause,
7488       N_Component_Clause,
7489       N_Enumeration_Representation_Clause,
7490       N_Mod_Clause,
7491       N_Record_Representation_Clause,
7492
7493       --  N_Representation_Clause, N_Has_Chars
7494
7495       N_Attribute_Definition_Clause,
7496
7497       --  N_Has_Chars
7498
7499       N_Empty,
7500       N_Pragma_Argument_Association,
7501
7502       --  N_Has_Etype, N_Has_Chars
7503
7504       --  Note: of course N_Error does not really have Etype or Chars fields,
7505       --  and any attempt to access these fields in N_Error will cause an
7506       --  error, but historically this always has been positioned so that an
7507       --  "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
7508       --  Most likely this makes coding easier somewhere but still seems
7509       --  undesirable. To be investigated some time ???
7510
7511       N_Error,
7512
7513       --  N_Entity, N_Has_Etype, N_Has_Chars
7514
7515       N_Defining_Character_Literal,
7516       N_Defining_Identifier,
7517       N_Defining_Operator_Symbol,
7518
7519       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7520
7521       N_Expanded_Name,
7522
7523       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7524       --  N_Has_Chars, N_Has_Entity
7525
7526       N_Identifier,
7527       N_Operator_Symbol,
7528
7529       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7530       --  N_Has_Chars, N_Has_Entity
7531
7532       N_Character_Literal,
7533
7534       --  N_Binary_Op, N_Op, N_Subexpr,
7535       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
7536
7537       N_Op_Add,
7538       N_Op_Concat,
7539       N_Op_Expon,
7540       N_Op_Subtract,
7541
7542       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7543       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7544
7545       N_Op_Divide,
7546       N_Op_Mod,
7547       N_Op_Multiply,
7548       N_Op_Rem,
7549
7550       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7551       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7552
7553       N_Op_And,
7554
7555       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7556       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7557
7558       N_Op_Eq,
7559       N_Op_Ge,
7560       N_Op_Gt,
7561       N_Op_Le,
7562       N_Op_Lt,
7563       N_Op_Ne,
7564
7565       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7566       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7567
7568       N_Op_Or,
7569       N_Op_Xor,
7570
7571       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7572       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
7573
7574       N_Op_Rotate_Left,
7575       N_Op_Rotate_Right,
7576       N_Op_Shift_Left,
7577       N_Op_Shift_Right,
7578       N_Op_Shift_Right_Arithmetic,
7579
7580       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7581       --  N_Has_Chars, N_Has_Entity
7582
7583       N_Op_Abs,
7584       N_Op_Minus,
7585       N_Op_Not,
7586       N_Op_Plus,
7587
7588       --  N_Subexpr, N_Has_Etype, N_Has_Entity
7589
7590       N_Attribute_Reference,
7591
7592       --  N_Subexpr, N_Has_Etype, N_Membership_Test
7593
7594       N_In,
7595       N_Not_In,
7596
7597       --  N_Subexpr, N_Has_Etype, N_Short_Circuit
7598
7599       N_And_Then,
7600       N_Or_Else,
7601
7602       --  N_Subexpr, N_Has_Etype
7603
7604       N_Conditional_Expression,
7605       N_Explicit_Dereference,
7606       N_Expression_With_Actions,
7607       N_Function_Call,
7608       N_Indexed_Component,
7609       N_Integer_Literal,
7610       N_Null,
7611       N_Procedure_Call_Statement,
7612       N_Qualified_Expression,
7613       N_Quantified_Expression,
7614
7615       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7616
7617       N_Raise_Constraint_Error,
7618       N_Raise_Program_Error,
7619       N_Raise_Storage_Error,
7620
7621       --  N_Subexpr, N_Has_Etype
7622
7623       N_Aggregate,
7624       N_Allocator,
7625       N_Case_Expression,
7626       N_Extension_Aggregate,
7627       N_Range,
7628       N_Real_Literal,
7629       N_Reference,
7630       N_Selected_Component,
7631       N_Slice,
7632       N_String_Literal,
7633       N_Subprogram_Info,
7634       N_Type_Conversion,
7635       N_Unchecked_Expression,
7636       N_Unchecked_Type_Conversion,
7637
7638       --  N_Has_Etype
7639
7640       N_Subtype_Indication,
7641
7642       --  N_Declaration
7643
7644       N_Component_Declaration,
7645       N_Entry_Declaration,
7646       N_Expression_Function,
7647       N_Formal_Object_Declaration,
7648       N_Formal_Type_Declaration,
7649       N_Full_Type_Declaration,
7650       N_Incomplete_Type_Declaration,
7651       N_Iterator_Specification,
7652       N_Loop_Parameter_Specification,
7653       N_Object_Declaration,
7654       N_Protected_Type_Declaration,
7655       N_Private_Extension_Declaration,
7656       N_Private_Type_Declaration,
7657       N_Subtype_Declaration,
7658
7659       --  N_Subprogram_Specification, N_Declaration
7660
7661       N_Function_Specification,
7662       N_Procedure_Specification,
7663
7664       --  N_Access_To_Subprogram_Definition
7665
7666       N_Access_Function_Definition,
7667       N_Access_Procedure_Definition,
7668
7669       --  N_Later_Decl_Item
7670
7671       N_Task_Type_Declaration,
7672
7673       --  N_Body_Stub, N_Later_Decl_Item
7674
7675       N_Package_Body_Stub,
7676       N_Protected_Body_Stub,
7677       N_Subprogram_Body_Stub,
7678       N_Task_Body_Stub,
7679
7680       --  N_Generic_Instantiation, N_Later_Decl_Item
7681       --  N_Subprogram_Instantiation
7682
7683       N_Function_Instantiation,
7684       N_Procedure_Instantiation,
7685
7686       --  N_Generic_Instantiation, N_Later_Decl_Item
7687
7688       N_Package_Instantiation,
7689
7690       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7691
7692       N_Package_Body,
7693       N_Subprogram_Body,
7694
7695       --  N_Later_Decl_Item, N_Proper_Body
7696
7697       N_Protected_Body,
7698       N_Task_Body,
7699
7700       --  N_Later_Decl_Item
7701
7702       N_Implicit_Label_Declaration,
7703       N_Package_Declaration,
7704       N_Single_Task_Declaration,
7705       N_Subprogram_Declaration,
7706       N_Use_Package_Clause,
7707
7708       --  N_Generic_Declaration, N_Later_Decl_Item
7709
7710       N_Generic_Package_Declaration,
7711       N_Generic_Subprogram_Declaration,
7712
7713       --  N_Array_Type_Definition
7714
7715       N_Constrained_Array_Definition,
7716       N_Unconstrained_Array_Definition,
7717
7718       --  N_Renaming_Declaration
7719
7720       N_Exception_Renaming_Declaration,
7721       N_Object_Renaming_Declaration,
7722       N_Package_Renaming_Declaration,
7723       N_Subprogram_Renaming_Declaration,
7724
7725       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
7726
7727       N_Generic_Function_Renaming_Declaration,
7728       N_Generic_Package_Renaming_Declaration,
7729       N_Generic_Procedure_Renaming_Declaration,
7730
7731       --  N_Statement_Other_Than_Procedure_Call
7732
7733       N_Abort_Statement,
7734       N_Accept_Statement,
7735       N_Assignment_Statement,
7736       N_Asynchronous_Select,
7737       N_Block_Statement,
7738       N_Case_Statement,
7739       N_Code_Statement,
7740       N_Conditional_Entry_Call,
7741
7742       --  N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
7743
7744       N_Delay_Relative_Statement,
7745       N_Delay_Until_Statement,
7746
7747       --  N_Statement_Other_Than_Procedure_Call
7748
7749       N_Entry_Call_Statement,
7750       N_Free_Statement,
7751       N_Goto_Statement,
7752       N_Loop_Statement,
7753       N_Null_Statement,
7754       N_Raise_Statement,
7755       N_Requeue_Statement,
7756       N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7757       N_Extended_Return_Statement,
7758       N_Selective_Accept,
7759       N_Timed_Entry_Call,
7760
7761       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7762
7763       N_Exit_Statement,
7764       N_If_Statement,
7765
7766       --  N_Has_Condition
7767
7768       N_Accept_Alternative,
7769       N_Delay_Alternative,
7770       N_Elsif_Part,
7771       N_Entry_Body_Formal_Part,
7772       N_Iteration_Scheme,
7773       N_Terminate_Alternative,
7774
7775       --  N_Formal_Subprogram_Declaration
7776
7777       N_Formal_Abstract_Subprogram_Declaration,
7778       N_Formal_Concrete_Subprogram_Declaration,
7779
7780       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
7781
7782       N_Push_Constraint_Error_Label,
7783       N_Push_Program_Error_Label,
7784       N_Push_Storage_Error_Label,
7785
7786       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7787
7788       N_Pop_Constraint_Error_Label,
7789       N_Pop_Program_Error_Label,
7790       N_Pop_Storage_Error_Label,
7791
7792       --  SCIL nodes
7793
7794       N_SCIL_Dispatch_Table_Tag_Init,
7795       N_SCIL_Dispatching_Call,
7796       N_SCIL_Membership_Test,
7797
7798       --  Other nodes (not part of any subtype class)
7799
7800       N_Abortable_Part,
7801       N_Abstract_Subprogram_Declaration,
7802       N_Access_Definition,
7803       N_Access_To_Object_Definition,
7804       N_Aspect_Specification,
7805       N_Case_Expression_Alternative,
7806       N_Case_Statement_Alternative,
7807       N_Compilation_Unit,
7808       N_Compilation_Unit_Aux,
7809       N_Component_Association,
7810       N_Component_Definition,
7811       N_Component_List,
7812       N_Contract,
7813       N_Derived_Type_Definition,
7814       N_Decimal_Fixed_Point_Definition,
7815       N_Defining_Program_Unit_Name,
7816       N_Delta_Constraint,
7817       N_Designator,
7818       N_Digits_Constraint,
7819       N_Discriminant_Association,
7820       N_Discriminant_Specification,
7821       N_Enumeration_Type_Definition,
7822       N_Entry_Body,
7823       N_Entry_Call_Alternative,
7824       N_Entry_Index_Specification,
7825       N_Exception_Declaration,
7826       N_Exception_Handler,
7827       N_Floating_Point_Definition,
7828       N_Formal_Decimal_Fixed_Point_Definition,
7829       N_Formal_Derived_Type_Definition,
7830       N_Formal_Discrete_Type_Definition,
7831       N_Formal_Floating_Point_Definition,
7832       N_Formal_Modular_Type_Definition,
7833       N_Formal_Ordinary_Fixed_Point_Definition,
7834       N_Formal_Package_Declaration,
7835       N_Formal_Private_Type_Definition,
7836       N_Formal_Incomplete_Type_Definition,
7837       N_Formal_Signed_Integer_Type_Definition,
7838       N_Freeze_Entity,
7839       N_Generic_Association,
7840       N_Handled_Sequence_Of_Statements,
7841       N_Index_Or_Discriminant_Constraint,
7842       N_Itype_Reference,
7843       N_Label,
7844       N_Modular_Type_Definition,
7845       N_Number_Declaration,
7846       N_Ordinary_Fixed_Point_Definition,
7847       N_Others_Choice,
7848       N_Package_Specification,
7849       N_Parameter_Association,
7850       N_Parameter_Specification,
7851       N_Pragma,
7852       N_Protected_Definition,
7853       N_Range_Constraint,
7854       N_Real_Range_Specification,
7855       N_Record_Definition,
7856       N_Signed_Integer_Type_Definition,
7857       N_Single_Protected_Declaration,
7858       N_Subunit,
7859       N_Task_Definition,
7860       N_Triggering_Alternative,
7861       N_Use_Type_Clause,
7862       N_Validate_Unchecked_Conversion,
7863       N_Variant,
7864       N_Variant_Part,
7865       N_With_Clause,
7866       N_Unused_At_End);
7867
7868    for Node_Kind'Size use 8;
7869    --  The data structures in Atree assume this!
7870
7871    ----------------------------
7872    -- Node Class Definitions --
7873    ----------------------------
7874
7875    subtype N_Access_To_Subprogram_Definition is Node_Kind range
7876      N_Access_Function_Definition ..
7877      N_Access_Procedure_Definition;
7878
7879    subtype N_Array_Type_Definition is Node_Kind range
7880      N_Constrained_Array_Definition ..
7881      N_Unconstrained_Array_Definition;
7882
7883    subtype N_Binary_Op is Node_Kind range
7884      N_Op_Add ..
7885      N_Op_Shift_Right_Arithmetic;
7886
7887    subtype N_Body_Stub is Node_Kind range
7888      N_Package_Body_Stub ..
7889      N_Task_Body_Stub;
7890
7891    subtype N_Declaration is Node_Kind range
7892      N_Component_Declaration ..
7893      N_Procedure_Specification;
7894    --  Note: this includes all constructs normally thought of as declarations
7895    --  except those which are separately grouped as later declarations.
7896
7897    subtype N_Delay_Statement is Node_Kind range
7898       N_Delay_Relative_Statement ..
7899       N_Delay_Until_Statement;
7900
7901    subtype N_Direct_Name is Node_Kind range
7902      N_Identifier ..
7903      N_Character_Literal;
7904
7905    subtype N_Entity is Node_Kind range
7906      N_Defining_Character_Literal ..
7907      N_Defining_Operator_Symbol;
7908
7909    subtype N_Formal_Subprogram_Declaration is Node_Kind range
7910      N_Formal_Abstract_Subprogram_Declaration ..
7911      N_Formal_Concrete_Subprogram_Declaration;
7912
7913    subtype N_Generic_Declaration is Node_Kind range
7914      N_Generic_Package_Declaration ..
7915      N_Generic_Subprogram_Declaration;
7916
7917    subtype N_Generic_Instantiation is Node_Kind range
7918      N_Function_Instantiation ..
7919      N_Package_Instantiation;
7920
7921    subtype N_Generic_Renaming_Declaration is Node_Kind range
7922      N_Generic_Function_Renaming_Declaration ..
7923      N_Generic_Procedure_Renaming_Declaration;
7924
7925    subtype N_Has_Chars is Node_Kind range
7926      N_Attribute_Definition_Clause ..
7927      N_Op_Plus;
7928
7929    subtype N_Has_Entity is Node_Kind range
7930      N_Expanded_Name ..
7931      N_Attribute_Reference;
7932    --  Nodes that have Entity fields
7933    --  Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
7934    --  or N_Attribute_Definition_Clause.
7935
7936    subtype N_Has_Etype is Node_Kind range
7937      N_Error ..
7938      N_Subtype_Indication;
7939
7940    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7941       N_Op_Divide ..
7942       N_Op_Rem;
7943
7944    subtype N_Multiplying_Operator is Node_Kind range
7945       N_Op_Divide ..
7946       N_Op_Rem;
7947
7948    subtype N_Later_Decl_Item is Node_Kind range
7949      N_Task_Type_Declaration ..
7950      N_Generic_Subprogram_Declaration;
7951    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7952    --  only those items which can appear as later declarative items. This also
7953    --  includes N_Implicit_Label_Declaration which is not specifically in the
7954    --  grammar but may appear as a valid later declarative items. It does NOT
7955    --  include N_Pragma which can also appear among later declarative items.
7956    --  It does however include N_Protected_Body, which is a bit peculiar, but
7957    --  harmless since this cannot appear in Ada 83 mode anyway.
7958
7959    subtype N_Membership_Test is Node_Kind range
7960       N_In ..
7961       N_Not_In;
7962
7963    subtype N_Op is Node_Kind range
7964      N_Op_Add ..
7965      N_Op_Plus;
7966
7967    subtype N_Op_Boolean is Node_Kind range
7968      N_Op_And ..
7969      N_Op_Xor;
7970    --  Binary operators which take operands of a boolean type, and yield
7971    --  a result of a boolean type.
7972
7973    subtype N_Op_Compare is Node_Kind range
7974      N_Op_Eq ..
7975      N_Op_Ne;
7976
7977    subtype N_Op_Shift is Node_Kind range
7978      N_Op_Rotate_Left ..
7979      N_Op_Shift_Right_Arithmetic;
7980
7981    subtype N_Proper_Body is Node_Kind range
7982      N_Package_Body ..
7983      N_Task_Body;
7984
7985    subtype N_Push_xxx_Label is Node_Kind range
7986      N_Push_Constraint_Error_Label ..
7987      N_Push_Storage_Error_Label;
7988
7989    subtype N_Pop_xxx_Label is Node_Kind range
7990      N_Pop_Constraint_Error_Label ..
7991      N_Pop_Storage_Error_Label;
7992
7993    subtype N_Push_Pop_xxx_Label is Node_Kind range
7994      N_Push_Constraint_Error_Label ..
7995      N_Pop_Storage_Error_Label;
7996
7997    subtype N_Raise_xxx_Error is Node_Kind range
7998      N_Raise_Constraint_Error ..
7999      N_Raise_Storage_Error;
8000
8001    subtype N_Renaming_Declaration is Node_Kind range
8002      N_Exception_Renaming_Declaration ..
8003      N_Generic_Procedure_Renaming_Declaration;
8004
8005    subtype N_Representation_Clause is Node_Kind range
8006      N_At_Clause ..
8007      N_Attribute_Definition_Clause;
8008
8009    subtype N_Short_Circuit is Node_Kind range
8010      N_And_Then ..
8011      N_Or_Else;
8012
8013    subtype N_SCIL_Node is Node_Kind range
8014      N_SCIL_Dispatch_Table_Tag_Init ..
8015      N_SCIL_Membership_Test;
8016
8017    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8018      N_Abort_Statement ..
8019      N_If_Statement;
8020    --  Note that this includes all statement types except for the cases of the
8021    --  N_Procedure_Call_Statement which is considered to be a subexpression
8022    --  (since overloading is possible, so it needs to go through the normal
8023    --  overloading resolution for expressions).
8024
8025    subtype N_Subprogram_Instantiation is Node_Kind range
8026      N_Function_Instantiation ..
8027      N_Procedure_Instantiation;
8028
8029    subtype N_Has_Condition is Node_Kind range
8030      N_Exit_Statement ..
8031      N_Terminate_Alternative;
8032    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
8033
8034    subtype N_Subexpr is Node_Kind range
8035      N_Expanded_Name ..
8036      N_Unchecked_Type_Conversion;
8037    --  Nodes with expression fields
8038
8039    subtype N_Subprogram_Specification is Node_Kind range
8040      N_Function_Specification ..
8041      N_Procedure_Specification;
8042
8043    subtype N_Unary_Op is Node_Kind range
8044      N_Op_Abs ..
8045      N_Op_Plus;
8046
8047    subtype N_Unit_Body is Node_Kind range
8048      N_Package_Body ..
8049        N_Subprogram_Body;
8050
8051    ---------------------------
8052    -- Node Access Functions --
8053    ---------------------------
8054
8055    --  The following functions return the contents of the indicated field of
8056    --  the node referenced by the argument, which is a Node_Id. They provide
8057    --  logical access to fields in the node which could be accessed using the
8058    --  Atree.Unchecked_Access package, but the idea is always to use these
8059    --  higher level routines which preserve strong typing. In debug mode,
8060    --  these routines check that they are being applied to an appropriate
8061    --  node, as well as checking that the node is in range.
8062
8063    function ABE_Is_Certain
8064      (N : Node_Id) return Boolean;    -- Flag18
8065
8066    function Abort_Present
8067      (N : Node_Id) return Boolean;    -- Flag15
8068
8069    function Abortable_Part
8070      (N : Node_Id) return Node_Id;    -- Node2
8071
8072    function Abstract_Present
8073      (N : Node_Id) return Boolean;    -- Flag4
8074
8075    function Accept_Handler_Records
8076      (N : Node_Id) return List_Id;    -- List5
8077
8078    function Accept_Statement
8079      (N : Node_Id) return Node_Id;    -- Node2
8080
8081    function Access_Definition
8082      (N : Node_Id) return Node_Id;    -- Node3
8083
8084    function Access_To_Subprogram_Definition
8085      (N : Node_Id) return Node_Id;    -- Node3
8086
8087    function Access_Types_To_Process
8088      (N : Node_Id) return Elist_Id;   -- Elist2
8089
8090    function Actions
8091      (N : Node_Id) return List_Id;    -- List1
8092
8093    function Activation_Chain_Entity
8094      (N : Node_Id) return Node_Id;    -- Node3
8095
8096    function Acts_As_Spec
8097      (N : Node_Id) return Boolean;    -- Flag4
8098
8099    function Actual_Designated_Subtype
8100      (N : Node_Id) return Node_Id;    -- Node4
8101
8102    function Address_Warning_Posted
8103      (N : Node_Id) return Boolean;    -- Flag18
8104
8105    function Aggregate_Bounds
8106      (N : Node_Id) return Node_Id;    -- Node3
8107
8108    function Aliased_Present
8109      (N : Node_Id) return Boolean;    -- Flag4
8110
8111    function All_Others
8112      (N : Node_Id) return Boolean;    -- Flag11
8113
8114    function All_Present
8115      (N : Node_Id) return Boolean;    -- Flag15
8116
8117    function Alternatives
8118      (N : Node_Id) return List_Id;    -- List4
8119
8120    function Ancestor_Part
8121      (N : Node_Id) return Node_Id;    -- Node3
8122
8123    function Array_Aggregate
8124      (N : Node_Id) return Node_Id;    -- Node3
8125
8126    function Aspect_Rep_Item
8127      (N : Node_Id) return Node_Id;    -- Node2
8128
8129    function Assignment_OK
8130      (N : Node_Id) return Boolean;    -- Flag15
8131
8132    function Associated_Node
8133      (N : Node_Id) return Node_Id;    -- Node4
8134
8135    function At_End_Proc
8136      (N : Node_Id) return Node_Id;    -- Node1
8137
8138    function Attribute_Name
8139      (N : Node_Id) return Name_Id;    -- Name2
8140
8141    function Aux_Decls_Node
8142      (N : Node_Id) return Node_Id;    -- Node5
8143
8144    function Backwards_OK
8145      (N : Node_Id) return Boolean;    -- Flag6
8146
8147    function Bad_Is_Detected
8148      (N : Node_Id) return Boolean;    -- Flag15
8149
8150    function By_Ref
8151      (N : Node_Id) return Boolean;    -- Flag5
8152
8153    function Body_Required
8154      (N : Node_Id) return Boolean;    -- Flag13
8155
8156    function Body_To_Inline
8157      (N : Node_Id) return Node_Id;    -- Node3
8158
8159    function Box_Present
8160      (N : Node_Id) return Boolean;    -- Flag15
8161
8162    function Char_Literal_Value
8163      (N : Node_Id) return Uint;       -- Uint2
8164
8165    function Chars
8166      (N : Node_Id) return Name_Id;    -- Name1
8167
8168    function Check_Address_Alignment
8169      (N : Node_Id) return Boolean;    -- Flag11
8170
8171    function Choice_Parameter
8172      (N : Node_Id) return Node_Id;    -- Node2
8173
8174    function Choices
8175      (N : Node_Id) return List_Id;    -- List1
8176
8177    function Class_Present
8178      (N : Node_Id) return Boolean;    -- Flag6
8179
8180    function Comes_From_Extended_Return_Statement
8181      (N : Node_Id) return Boolean;    -- Flag18
8182
8183    function Compile_Time_Known_Aggregate
8184      (N : Node_Id) return Boolean;    -- Flag18
8185
8186    function Component_Associations
8187      (N : Node_Id) return List_Id;    -- List2
8188
8189    function Component_Clauses
8190      (N : Node_Id) return List_Id;    -- List3
8191
8192    function Component_Definition
8193      (N : Node_Id) return Node_Id;    -- Node4
8194
8195    function Component_Items
8196      (N : Node_Id) return List_Id;    -- List3
8197
8198    function Component_List
8199      (N : Node_Id) return Node_Id;    -- Node1
8200
8201    function Component_Name
8202      (N : Node_Id) return Node_Id;    -- Node1
8203
8204    function Componentwise_Assignment
8205      (N : Node_Id) return Boolean;    -- Flag14
8206
8207    function Condition
8208      (N : Node_Id) return Node_Id;    -- Node1
8209
8210    function Condition_Actions
8211      (N : Node_Id) return List_Id;    -- List3
8212
8213    function Config_Pragmas
8214      (N : Node_Id) return List_Id;    -- List4
8215
8216    function Constant_Present
8217      (N : Node_Id) return Boolean;    -- Flag17
8218
8219    function Constraint
8220      (N : Node_Id) return Node_Id;    -- Node3
8221
8222    function Constraints
8223      (N : Node_Id) return List_Id;    -- List1
8224
8225    function Context_Installed
8226      (N : Node_Id) return Boolean;    -- Flag13
8227
8228    function Context_Pending
8229      (N : Node_Id) return Boolean;    -- Flag16
8230
8231    function Context_Items
8232      (N : Node_Id) return List_Id;    -- List1
8233
8234    function Controlling_Argument
8235      (N : Node_Id) return Node_Id;    -- Node1
8236
8237    function Conversion_OK
8238      (N : Node_Id) return Boolean;    -- Flag14
8239
8240    function Corresponding_Aspect
8241      (N : Node_Id) return Node_Id;    -- Node3
8242
8243    function Corresponding_Body
8244      (N : Node_Id) return Node_Id;    -- Node5
8245
8246    function Corresponding_Formal_Spec
8247      (N : Node_Id) return Node_Id;    -- Node3
8248
8249    function Corresponding_Generic_Association
8250      (N : Node_Id) return Node_Id;    -- Node5
8251
8252    function Corresponding_Integer_Value
8253      (N : Node_Id) return Uint;       -- Uint4
8254
8255    function Corresponding_Spec
8256      (N : Node_Id) return Node_Id;    -- Node5
8257
8258    function Corresponding_Stub
8259      (N : Node_Id) return Node_Id;    -- Node3
8260
8261    function Dcheck_Function
8262      (N : Node_Id) return Entity_Id;  -- Node5
8263
8264    function Declarations
8265      (N : Node_Id) return List_Id;    -- List2
8266
8267    function Default_Expression
8268      (N : Node_Id) return Node_Id;    -- Node5
8269
8270    function Default_Storage_Pool
8271      (N : Node_Id) return Node_Id;    -- Node3
8272
8273    function Default_Name
8274      (N : Node_Id) return Node_Id;    -- Node2
8275
8276    function Defining_Identifier
8277      (N : Node_Id) return Entity_Id;  -- Node1
8278
8279    function Defining_Unit_Name
8280      (N : Node_Id) return Node_Id;    -- Node1
8281
8282    function Delay_Alternative
8283      (N : Node_Id) return Node_Id;    -- Node4
8284
8285    function Delay_Statement
8286      (N : Node_Id) return Node_Id;    -- Node2
8287
8288    function Delta_Expression
8289      (N : Node_Id) return Node_Id;    -- Node3
8290
8291    function Digits_Expression
8292      (N : Node_Id) return Node_Id;    -- Node2
8293
8294    function Discr_Check_Funcs_Built
8295      (N : Node_Id) return Boolean;    -- Flag11
8296
8297    function Discrete_Choices
8298      (N : Node_Id) return List_Id;    -- List4
8299
8300    function Discrete_Range
8301      (N : Node_Id) return Node_Id;    -- Node4
8302
8303    function Discrete_Subtype_Definition
8304      (N : Node_Id) return Node_Id;    -- Node4
8305
8306    function Discrete_Subtype_Definitions
8307      (N : Node_Id) return List_Id;    -- List2
8308
8309    function Discriminant_Specifications
8310      (N : Node_Id) return List_Id;    -- List4
8311
8312    function Discriminant_Type
8313      (N : Node_Id) return Node_Id;    -- Node5
8314
8315    function Do_Accessibility_Check
8316      (N : Node_Id) return Boolean;    -- Flag13
8317
8318    function Do_Discriminant_Check
8319      (N : Node_Id) return Boolean;    -- Flag13
8320
8321    function Do_Division_Check
8322      (N : Node_Id) return Boolean;    -- Flag13
8323
8324    function Do_Length_Check
8325      (N : Node_Id) return Boolean;    -- Flag4
8326
8327    function Do_Overflow_Check
8328      (N : Node_Id) return Boolean;    -- Flag17
8329
8330    function Do_Range_Check
8331      (N : Node_Id) return Boolean;    -- Flag9
8332
8333    function Do_Storage_Check
8334      (N : Node_Id) return Boolean;    -- Flag17
8335
8336    function Do_Tag_Check
8337      (N : Node_Id) return Boolean;    -- Flag13
8338
8339    function Elaborate_All_Desirable
8340      (N : Node_Id) return Boolean;    -- Flag9
8341
8342    function Elaborate_All_Present
8343      (N : Node_Id) return Boolean;    -- Flag14
8344
8345    function Elaborate_Desirable
8346      (N : Node_Id) return Boolean;    -- Flag11
8347
8348    function Elaborate_Present
8349      (N : Node_Id) return Boolean;    -- Flag4
8350
8351    function Elaboration_Boolean
8352      (N : Node_Id) return Node_Id;    -- Node2
8353
8354    function Else_Actions
8355      (N : Node_Id) return List_Id;    -- List3
8356
8357    function Else_Statements
8358      (N : Node_Id) return List_Id;    -- List4
8359
8360    function Elsif_Parts
8361      (N : Node_Id) return List_Id;    -- List3
8362
8363    function Enclosing_Variant
8364      (N : Node_Id) return Node_Id;    -- Node2
8365
8366    function End_Label
8367      (N : Node_Id) return Node_Id;    -- Node4
8368
8369    function End_Span
8370      (N : Node_Id) return Uint;       -- Uint5
8371
8372    function Entity
8373      (N : Node_Id) return Node_Id;    -- Node4
8374
8375    function Entity_Or_Associated_Node
8376      (N : Node_Id) return Node_Id;    -- Node4
8377
8378    function Entry_Body_Formal_Part
8379      (N : Node_Id) return Node_Id;    -- Node5
8380
8381    function Entry_Call_Alternative
8382      (N : Node_Id) return Node_Id;    -- Node1
8383
8384    function Entry_Call_Statement
8385      (N : Node_Id) return Node_Id;    -- Node1
8386
8387    function Entry_Direct_Name
8388      (N : Node_Id) return Node_Id;    -- Node1
8389
8390    function Entry_Index
8391      (N : Node_Id) return Node_Id;    -- Node5
8392
8393    function Entry_Index_Specification
8394      (N : Node_Id) return Node_Id;    -- Node4
8395
8396    function Etype
8397      (N : Node_Id) return Node_Id;    -- Node5
8398
8399    function Exception_Choices
8400      (N : Node_Id) return List_Id;    -- List4
8401
8402    function Exception_Handlers
8403      (N : Node_Id) return List_Id;    -- List5
8404
8405    function Exception_Junk
8406      (N : Node_Id) return Boolean;    -- Flag8
8407
8408    function Exception_Label
8409      (N : Node_Id) return Node_Id;    -- Node5
8410
8411    function Explicit_Actual_Parameter
8412      (N : Node_Id) return Node_Id;    -- Node3
8413
8414    function Expansion_Delayed
8415      (N : Node_Id) return Boolean;    -- Flag11
8416
8417    function Explicit_Generic_Actual_Parameter
8418      (N : Node_Id) return Node_Id;    -- Node1
8419
8420    function Expression
8421      (N : Node_Id) return Node_Id;    -- Node3
8422
8423    function Expressions
8424      (N : Node_Id) return List_Id;    -- List1
8425
8426    function First_Bit
8427      (N : Node_Id) return Node_Id;    -- Node3
8428
8429    function First_Inlined_Subprogram
8430      (N : Node_Id) return Entity_Id;  -- Node3
8431
8432    function First_Name
8433      (N : Node_Id) return Boolean;    -- Flag5
8434
8435    function First_Named_Actual
8436      (N : Node_Id) return Node_Id;    -- Node4
8437
8438    function First_Real_Statement
8439      (N : Node_Id) return Node_Id;    -- Node2
8440
8441    function First_Subtype_Link
8442      (N : Node_Id) return Entity_Id;  -- Node5
8443
8444    function Float_Truncate
8445      (N : Node_Id) return Boolean;    -- Flag11
8446
8447    function Formal_Type_Definition
8448      (N : Node_Id) return Node_Id;    -- Node3
8449
8450    function Forwards_OK
8451      (N : Node_Id) return Boolean;    -- Flag5
8452
8453    function From_Aspect_Specification
8454      (N : Node_Id) return Boolean;    -- Flag13
8455
8456    function From_At_End
8457      (N : Node_Id) return Boolean;    -- Flag4
8458
8459    function From_At_Mod
8460      (N : Node_Id) return Boolean;    -- Flag4
8461
8462    function From_Default
8463      (N : Node_Id) return Boolean;    -- Flag6
8464
8465    function Generic_Associations
8466      (N : Node_Id) return List_Id;    -- List3
8467
8468    function Generic_Formal_Declarations
8469      (N : Node_Id) return List_Id;    -- List2
8470
8471    function Generic_Parent
8472      (N : Node_Id) return Node_Id;    -- Node5
8473
8474    function Generic_Parent_Type
8475      (N : Node_Id) return Node_Id;    -- Node4
8476
8477    function Handled_Statement_Sequence
8478      (N : Node_Id) return Node_Id;    -- Node4
8479
8480    function Handler_List_Entry
8481      (N : Node_Id) return Node_Id;    -- Node2
8482
8483    function Has_Created_Identifier
8484      (N : Node_Id) return Boolean;    -- Flag15
8485
8486    function Has_Dynamic_Length_Check
8487      (N : Node_Id) return Boolean;    -- Flag10
8488
8489    function Has_Dynamic_Range_Check
8490      (N : Node_Id) return Boolean;    -- Flag12
8491
8492    function Has_Init_Expression
8493      (N : Node_Id) return Boolean;    -- Flag14
8494
8495    function Has_Local_Raise
8496      (N : Node_Id) return Boolean;    -- Flag8
8497
8498    function Has_No_Elaboration_Code
8499      (N : Node_Id) return Boolean;    -- Flag17
8500
8501    function Has_Pragma_CPU
8502      (N : Node_Id) return Boolean;    -- Flag14
8503
8504    function Has_Pragma_Dispatching_Domain
8505      (N : Node_Id) return Boolean;    -- Flag15
8506
8507    function Has_Pragma_Priority
8508      (N : Node_Id) return Boolean;    -- Flag6
8509
8510    function Has_Pragma_Suppress_All
8511      (N : Node_Id) return Boolean;    -- Flag14
8512
8513    function Has_Private_View
8514      (N : Node_Id) return Boolean;    -- Flag11
8515
8516    function Has_Relative_Deadline_Pragma
8517      (N : Node_Id) return Boolean;    -- Flag9
8518
8519    function Has_Self_Reference
8520      (N : Node_Id) return Boolean;    -- Flag13
8521
8522    function Has_Storage_Size_Pragma
8523      (N : Node_Id) return Boolean;    -- Flag5
8524
8525    function Has_Task_Info_Pragma
8526      (N : Node_Id) return Boolean;    -- Flag7
8527
8528    function Has_Task_Name_Pragma
8529      (N : Node_Id) return Boolean;    -- Flag8
8530
8531    function Has_Wide_Character
8532      (N : Node_Id) return Boolean;    -- Flag11
8533
8534    function Has_Wide_Wide_Character
8535      (N : Node_Id) return Boolean;    -- Flag13
8536
8537    function Hidden_By_Use_Clause
8538      (N : Node_Id) return Elist_Id;   -- Elist4
8539
8540    function High_Bound
8541      (N : Node_Id) return Node_Id;    -- Node2
8542
8543    function Identifier
8544      (N : Node_Id) return Node_Id;    -- Node1
8545
8546    function Interface_List
8547      (N : Node_Id) return List_Id;    -- List2
8548
8549    function Interface_Present
8550      (N : Node_Id) return Boolean;    -- Flag16
8551
8552    function Implicit_With
8553      (N : Node_Id) return Boolean;    -- Flag16
8554
8555    function Import_Interface_Present
8556      (N : Node_Id) return Boolean;    -- Flag16
8557
8558    function In_Present
8559      (N : Node_Id) return Boolean;    -- Flag15
8560
8561    function Includes_Infinities
8562      (N : Node_Id) return Boolean;    -- Flag11
8563
8564    function Inherited_Discriminant
8565      (N : Node_Id) return Boolean;    -- Flag13
8566
8567    function Instance_Spec
8568      (N : Node_Id) return Node_Id;    -- Node5
8569
8570    function Intval
8571      (N : Node_Id) return Uint;       -- Uint3
8572
8573    function Is_Accessibility_Actual
8574      (N : Node_Id) return Boolean;    -- Flag13
8575
8576    function Is_Asynchronous_Call_Block
8577      (N : Node_Id) return Boolean;    -- Flag7
8578
8579    function Is_Boolean_Aspect
8580      (N : Node_Id) return Boolean;    -- Flag16
8581
8582    function Is_Component_Left_Opnd
8583      (N : Node_Id) return Boolean;    -- Flag13
8584
8585    function Is_Component_Right_Opnd
8586      (N : Node_Id) return Boolean;    -- Flag14
8587
8588    function Is_Controlling_Actual
8589      (N : Node_Id) return Boolean;    -- Flag16
8590
8591    function Is_Delayed_Aspect
8592      (N : Node_Id) return Boolean;    -- Flag14
8593
8594    function Is_Dynamic_Coextension
8595      (N : Node_Id) return Boolean;    -- Flag18
8596
8597    function Is_Elsif
8598      (N : Node_Id) return Boolean;    -- Flag13
8599
8600    function Is_Entry_Barrier_Function
8601      (N : Node_Id) return Boolean;    -- Flag8
8602
8603    function Is_Expanded_Build_In_Place_Call
8604      (N : Node_Id) return Boolean;    -- Flag11
8605
8606    function Is_Folded_In_Parser
8607      (N : Node_Id) return Boolean;    -- Flag4
8608
8609    function Is_In_Discriminant_Check
8610      (N : Node_Id) return Boolean;    -- Flag11
8611
8612    function Is_Machine_Number
8613      (N : Node_Id) return Boolean;    -- Flag11
8614
8615    function Is_Null_Loop
8616      (N : Node_Id) return Boolean;    -- Flag16
8617
8618    function Is_Overloaded
8619      (N : Node_Id) return Boolean;    -- Flag5
8620
8621    function Is_Power_Of_2_For_Shift
8622      (N : Node_Id) return Boolean;    -- Flag13
8623
8624    function Is_Protected_Subprogram_Body
8625      (N : Node_Id) return Boolean;    -- Flag7
8626
8627    function Is_Static_Coextension
8628      (N : Node_Id) return Boolean;    -- Flag14
8629
8630    function Is_Static_Expression
8631      (N : Node_Id) return Boolean;    -- Flag6
8632
8633    function Is_Subprogram_Descriptor
8634      (N : Node_Id) return Boolean;    -- Flag16
8635
8636    function Is_Task_Allocation_Block
8637      (N : Node_Id) return Boolean;    -- Flag6
8638
8639    function Is_Task_Master
8640      (N : Node_Id) return Boolean;    -- Flag5
8641
8642    function Iteration_Scheme
8643      (N : Node_Id) return Node_Id;    -- Node2
8644
8645    function Iterator_Specification
8646      (N : Node_Id) return Node_Id;    -- Node2
8647
8648    function Itype
8649      (N : Node_Id) return Entity_Id;  -- Node1
8650
8651    function Kill_Range_Check
8652      (N : Node_Id) return Boolean;    -- Flag11
8653
8654    function Label_Construct
8655      (N : Node_Id) return Node_Id;    -- Node2
8656
8657    function Left_Opnd
8658      (N : Node_Id) return Node_Id;    -- Node2
8659
8660    function Last_Bit
8661      (N : Node_Id) return Node_Id;    -- Node4
8662
8663    function Last_Name
8664      (N : Node_Id) return Boolean;    -- Flag6
8665
8666    function Library_Unit
8667      (N : Node_Id) return Node_Id;    -- Node4
8668
8669    function Limited_View_Installed
8670      (N : Node_Id) return Boolean;    -- Flag18
8671
8672    function Limited_Present
8673      (N : Node_Id) return Boolean;    -- Flag17
8674
8675    function Literals
8676      (N : Node_Id) return List_Id;    -- List1
8677
8678    function Local_Raise_Not_OK
8679      (N : Node_Id) return Boolean;    -- Flag7
8680
8681    function Local_Raise_Statements
8682      (N : Node_Id) return Elist_Id;   -- Elist1
8683
8684    function Loop_Actions
8685      (N : Node_Id) return List_Id;    -- List2
8686
8687    function Loop_Parameter_Specification
8688      (N : Node_Id) return Node_Id;    -- Node4
8689
8690    function Low_Bound
8691      (N : Node_Id) return Node_Id;    -- Node1
8692
8693    function Mod_Clause
8694      (N : Node_Id) return Node_Id;    -- Node2
8695
8696    function More_Ids
8697      (N : Node_Id) return Boolean;    -- Flag5
8698
8699    function Must_Be_Byte_Aligned
8700      (N : Node_Id) return Boolean;    -- Flag14
8701
8702    function Must_Not_Freeze
8703      (N : Node_Id) return Boolean;    -- Flag8
8704
8705    function Must_Not_Override
8706      (N : Node_Id) return Boolean;    -- Flag15
8707
8708    function Must_Override
8709      (N : Node_Id) return Boolean;    -- Flag14
8710
8711    function Name
8712      (N : Node_Id) return Node_Id;    -- Node2
8713
8714    function Names
8715      (N : Node_Id) return List_Id;    -- List2
8716
8717    function Next_Entity
8718      (N : Node_Id) return Node_Id;    -- Node2
8719
8720    function Next_Exit_Statement
8721      (N : Node_Id) return Node_Id;    -- Node3
8722
8723    function Next_Implicit_With
8724      (N : Node_Id) return Node_Id;    -- Node3
8725
8726    function Next_Named_Actual
8727      (N : Node_Id) return Node_Id;    -- Node4
8728
8729    function Next_Pragma
8730      (N : Node_Id) return Node_Id;    -- Node1
8731
8732    function Next_Rep_Item
8733      (N : Node_Id) return Node_Id;    -- Node5
8734
8735    function Next_Use_Clause
8736      (N : Node_Id) return Node_Id;    -- Node3
8737
8738    function No_Ctrl_Actions
8739      (N : Node_Id) return Boolean;    -- Flag7
8740
8741    function No_Elaboration_Check
8742      (N : Node_Id) return Boolean;    -- Flag14
8743
8744    function No_Entities_Ref_In_Spec
8745      (N : Node_Id) return Boolean;    -- Flag8
8746
8747    function No_Initialization
8748      (N : Node_Id) return Boolean;    -- Flag13
8749
8750    function No_Truncation
8751      (N : Node_Id) return Boolean;    -- Flag17
8752
8753    function Null_Present
8754      (N : Node_Id) return Boolean;    -- Flag13
8755
8756    function Null_Exclusion_Present
8757      (N : Node_Id) return Boolean;    -- Flag11
8758
8759    function Null_Exclusion_In_Return_Present
8760      (N : Node_Id) return Boolean;    -- Flag14
8761
8762    function Null_Record_Present
8763      (N : Node_Id) return Boolean;    -- Flag17
8764
8765    function Object_Definition
8766      (N : Node_Id) return Node_Id;    -- Node4
8767
8768    function Of_Present
8769      (N : Node_Id) return Boolean;    -- Flag16
8770
8771    function Original_Discriminant
8772      (N : Node_Id) return Node_Id;    -- Node2
8773
8774    function Original_Entity
8775      (N : Node_Id) return Entity_Id;  -- Node2
8776
8777    function Others_Discrete_Choices
8778      (N : Node_Id) return List_Id;    -- List1
8779
8780    function Out_Present
8781      (N : Node_Id) return Boolean;    -- Flag17
8782
8783    function Parameter_Associations
8784      (N : Node_Id) return List_Id;    -- List3
8785
8786    function Parameter_List_Truncated
8787      (N : Node_Id) return Boolean;    -- Flag17
8788
8789    function Parameter_Specifications
8790      (N : Node_Id) return List_Id;    -- List3
8791
8792    function Parameter_Type
8793      (N : Node_Id) return Node_Id;    -- Node2
8794
8795    function Parent_Spec
8796      (N : Node_Id) return Node_Id;    -- Node4
8797
8798    function Position
8799      (N : Node_Id) return Node_Id;    -- Node2
8800
8801    function Pragma_Argument_Associations
8802      (N : Node_Id) return List_Id;    -- List2
8803
8804    function Pragma_Identifier
8805      (N : Node_Id) return Node_Id;    -- Node4
8806
8807    function Pragmas_After
8808      (N : Node_Id) return List_Id;    -- List5
8809
8810    function Pragmas_Before
8811      (N : Node_Id) return List_Id;    -- List4
8812
8813    function Prefix
8814      (N : Node_Id) return Node_Id;    -- Node3
8815
8816    function Premature_Use
8817      (N : Node_Id) return Node_Id;    -- Node5
8818
8819    function Present_Expr
8820      (N : Node_Id) return Uint;       -- Uint3
8821
8822    function Prev_Ids
8823      (N : Node_Id) return Boolean;    -- Flag6
8824
8825    function Print_In_Hex
8826      (N : Node_Id) return Boolean;    -- Flag13
8827
8828    function Private_Declarations
8829      (N : Node_Id) return List_Id;    -- List3
8830
8831    function Private_Present
8832      (N : Node_Id) return Boolean;    -- Flag15
8833
8834    function Procedure_To_Call
8835      (N : Node_Id) return Node_Id;    -- Node2
8836
8837    function Proper_Body
8838      (N : Node_Id) return Node_Id;    -- Node1
8839
8840    function Protected_Definition
8841      (N : Node_Id) return Node_Id;    -- Node3
8842
8843    function Protected_Present
8844      (N : Node_Id) return Boolean;    -- Flag6
8845
8846    function Raises_Constraint_Error
8847      (N : Node_Id) return Boolean;    -- Flag7
8848
8849    function Range_Constraint
8850      (N : Node_Id) return Node_Id;    -- Node4
8851
8852    function Range_Expression
8853      (N : Node_Id) return Node_Id;    -- Node4
8854
8855    function Real_Range_Specification
8856      (N : Node_Id) return Node_Id;    -- Node4
8857
8858    function Realval
8859      (N : Node_Id) return Ureal;      -- Ureal3
8860
8861    function Reason
8862      (N : Node_Id) return Uint;       -- Uint3
8863
8864    function Record_Extension_Part
8865      (N : Node_Id) return Node_Id;    -- Node3
8866
8867    function Redundant_Use
8868      (N : Node_Id) return Boolean;    -- Flag13
8869
8870    function Renaming_Exception
8871      (N : Node_Id) return Node_Id;    -- Node2
8872
8873    function Result_Definition
8874      (N : Node_Id) return Node_Id;    -- Node4
8875
8876    function Return_Object_Declarations
8877      (N : Node_Id) return List_Id;    -- List3
8878
8879    function Return_Statement_Entity
8880      (N : Node_Id) return Node_Id;    -- Node5
8881
8882    function Reverse_Present
8883      (N : Node_Id) return Boolean;    -- Flag15
8884
8885    function Right_Opnd
8886      (N : Node_Id) return Node_Id;    -- Node3
8887
8888    function Rounded_Result
8889      (N : Node_Id) return Boolean;    -- Flag18
8890
8891    function SCIL_Controlling_Tag
8892      (N : Node_Id) return Node_Id;    -- Node5
8893
8894    function SCIL_Entity
8895      (N : Node_Id) return Node_Id;    -- Node4
8896
8897    function SCIL_Tag_Value
8898      (N : Node_Id) return Node_Id;    -- Node5
8899
8900    function SCIL_Target_Prim
8901      (N : Node_Id) return Node_Id;    -- Node2
8902
8903    function Scope
8904      (N : Node_Id) return Node_Id;    -- Node3
8905
8906    function Select_Alternatives
8907      (N : Node_Id) return List_Id;    -- List1
8908
8909    function Selector_Name
8910      (N : Node_Id) return Node_Id;    -- Node2
8911
8912    function Selector_Names
8913      (N : Node_Id) return List_Id;    -- List1
8914
8915    function Shift_Count_OK
8916      (N : Node_Id) return Boolean;    -- Flag4
8917
8918    function Source_Type
8919      (N : Node_Id) return Entity_Id;  -- Node1
8920
8921    function Spec_PPC_List
8922      (N : Node_Id) return Node_Id;    -- Node1
8923
8924    function Spec_TC_List
8925      (N : Node_Id) return Node_Id;    -- Node2
8926
8927    function Specification
8928      (N : Node_Id) return Node_Id;    -- Node1
8929
8930    function Split_PPC
8931      (N : Node_Id) return Boolean;    -- Flag17
8932
8933    function Statements
8934      (N : Node_Id) return List_Id;    -- List3
8935
8936    function Static_Processing_OK
8937      (N : Node_Id) return Boolean;    -- Flag4
8938
8939    function Storage_Pool
8940      (N : Node_Id) return Node_Id;    -- Node1
8941
8942    function Subpool_Handle_Name
8943      (N : Node_Id) return Node_Id;    -- Node4
8944
8945    function Strval
8946      (N : Node_Id) return String_Id;  -- Str3
8947
8948    function Subtype_Indication
8949      (N : Node_Id) return Node_Id;    -- Node5
8950
8951    function Subtype_Mark
8952      (N : Node_Id) return Node_Id;    -- Node4
8953
8954    function Subtype_Marks
8955      (N : Node_Id) return List_Id;    -- List2
8956
8957    function Suppress_Assignment_Checks
8958      (N : Node_Id) return Boolean;    -- Flag18
8959
8960    function Suppress_Loop_Warnings
8961      (N : Node_Id) return Boolean;    -- Flag17
8962
8963    function Synchronized_Present
8964      (N : Node_Id) return Boolean;    -- Flag7
8965
8966    function Tagged_Present
8967      (N : Node_Id) return Boolean;    -- Flag15
8968
8969    function Target_Type
8970      (N : Node_Id) return Entity_Id;  -- Node2
8971
8972    function Task_Definition
8973      (N : Node_Id) return Node_Id;    -- Node3
8974
8975    function Task_Present
8976      (N : Node_Id) return Boolean;    -- Flag5
8977
8978    function Then_Actions
8979      (N : Node_Id) return List_Id;    -- List2
8980
8981    function Then_Statements
8982      (N : Node_Id) return List_Id;    -- List2
8983
8984    function Treat_Fixed_As_Integer
8985      (N : Node_Id) return Boolean;    -- Flag14
8986
8987    function Triggering_Alternative
8988      (N : Node_Id) return Node_Id;    -- Node1
8989
8990    function Triggering_Statement
8991      (N : Node_Id) return Node_Id;    -- Node1
8992
8993    function TSS_Elist
8994      (N : Node_Id) return Elist_Id;   -- Elist3
8995
8996    function Type_Definition
8997      (N : Node_Id) return Node_Id;    -- Node3
8998
8999    function Unit
9000      (N : Node_Id) return Node_Id;    -- Node2
9001
9002    function Unknown_Discriminants_Present
9003      (N : Node_Id) return Boolean;    -- Flag13
9004
9005    function Unreferenced_In_Spec
9006      (N : Node_Id) return Boolean;    -- Flag7
9007
9008    function Variant_Part
9009      (N : Node_Id) return Node_Id;    -- Node4
9010
9011    function Variants
9012      (N : Node_Id) return List_Id;    -- List1
9013
9014    function Visible_Declarations
9015      (N : Node_Id) return List_Id;    -- List2
9016
9017    function Used_Operations
9018      (N : Node_Id) return Elist_Id;   -- Elist5
9019
9020    function Was_Originally_Stub
9021      (N : Node_Id) return Boolean;    -- Flag13
9022
9023    function Withed_Body
9024      (N : Node_Id) return Node_Id;    -- Node1
9025
9026    --  End functions (note used by xsinfo utility program to end processing)
9027
9028    ----------------------------
9029    -- Node Update Procedures --
9030    ----------------------------
9031
9032    --  These are the corresponding node update routines, which again provide
9033    --  a high level logical access with type checking. In addition to setting
9034    --  the indicated field of the node N to the given Val, in the case of
9035    --  tree pointers (List1-4), the parent pointer of the Val node is set to
9036    --  point back to node N. This automates the setting of the parent pointer.
9037
9038    procedure Set_ABE_Is_Certain
9039      (N : Node_Id; Val : Boolean := True);    -- Flag18
9040
9041    procedure Set_Abort_Present
9042      (N : Node_Id; Val : Boolean := True);    -- Flag15
9043
9044    procedure Set_Abortable_Part
9045      (N : Node_Id; Val : Node_Id);            -- Node2
9046
9047    procedure Set_Abstract_Present
9048      (N : Node_Id; Val : Boolean := True);    -- Flag4
9049
9050    procedure Set_Accept_Handler_Records
9051      (N : Node_Id; Val : List_Id);            -- List5
9052
9053    procedure Set_Accept_Statement
9054      (N : Node_Id; Val : Node_Id);            -- Node2
9055
9056    procedure Set_Access_Definition
9057      (N : Node_Id; Val : Node_Id);            -- Node3
9058
9059    procedure Set_Access_To_Subprogram_Definition
9060      (N : Node_Id; Val : Node_Id);            -- Node3
9061
9062    procedure Set_Access_Types_To_Process
9063      (N : Node_Id; Val : Elist_Id);           -- Elist2
9064
9065    procedure Set_Actions
9066      (N : Node_Id; Val : List_Id);            -- List1
9067
9068    procedure Set_Activation_Chain_Entity
9069      (N : Node_Id; Val : Node_Id);            -- Node3
9070
9071    procedure Set_Acts_As_Spec
9072      (N : Node_Id; Val : Boolean := True);    -- Flag4
9073
9074    procedure Set_Actual_Designated_Subtype
9075      (N : Node_Id; Val : Node_Id);            -- Node4
9076
9077    procedure Set_Address_Warning_Posted
9078      (N : Node_Id; Val : Boolean := True);    -- Flag18
9079
9080    procedure Set_Aggregate_Bounds
9081      (N : Node_Id; Val : Node_Id);            -- Node3
9082
9083    procedure Set_Aliased_Present
9084      (N : Node_Id; Val : Boolean := True);    -- Flag4
9085
9086    procedure Set_All_Others
9087      (N : Node_Id; Val : Boolean := True);    -- Flag11
9088
9089    procedure Set_All_Present
9090      (N : Node_Id; Val : Boolean := True);    -- Flag15
9091
9092    procedure Set_Alternatives
9093      (N : Node_Id; Val : List_Id);            -- List4
9094
9095    procedure Set_Ancestor_Part
9096      (N : Node_Id; Val : Node_Id);            -- Node3
9097
9098    procedure Set_Array_Aggregate
9099      (N : Node_Id; Val : Node_Id);            -- Node3
9100
9101    procedure Set_Aspect_Rep_Item
9102      (N : Node_Id; Val : Node_Id);            -- Node2
9103
9104    procedure Set_Assignment_OK
9105      (N : Node_Id; Val : Boolean := True);    -- Flag15
9106
9107    procedure Set_Associated_Node
9108      (N : Node_Id; Val : Node_Id);            -- Node4
9109
9110    procedure Set_Attribute_Name
9111      (N : Node_Id; Val : Name_Id);            -- Name2
9112
9113    procedure Set_At_End_Proc
9114      (N : Node_Id; Val : Node_Id);            -- Node1
9115
9116    procedure Set_Aux_Decls_Node
9117      (N : Node_Id; Val : Node_Id);            -- Node5
9118
9119    procedure Set_Backwards_OK
9120      (N : Node_Id; Val : Boolean := True);    -- Flag6
9121
9122    procedure Set_Bad_Is_Detected
9123      (N : Node_Id; Val : Boolean := True);    -- Flag15
9124
9125    procedure Set_Body_Required
9126      (N : Node_Id; Val : Boolean := True);    -- Flag13
9127
9128    procedure Set_Body_To_Inline
9129      (N : Node_Id; Val : Node_Id);            -- Node3
9130
9131    procedure Set_Box_Present
9132      (N : Node_Id; Val : Boolean := True);    -- Flag15
9133
9134    procedure Set_By_Ref
9135      (N : Node_Id; Val : Boolean := True);    -- Flag5
9136
9137    procedure Set_Char_Literal_Value
9138      (N : Node_Id; Val : Uint);               -- Uint2
9139
9140    procedure Set_Chars
9141      (N : Node_Id; Val : Name_Id);            -- Name1
9142
9143    procedure Set_Check_Address_Alignment
9144      (N : Node_Id; Val : Boolean := True);    -- Flag11
9145
9146    procedure Set_Choice_Parameter
9147      (N : Node_Id; Val : Node_Id);            -- Node2
9148
9149    procedure Set_Choices
9150      (N : Node_Id; Val : List_Id);            -- List1
9151
9152    procedure Set_Class_Present
9153      (N : Node_Id; Val : Boolean := True);    -- Flag6
9154
9155    procedure Set_Comes_From_Extended_Return_Statement
9156      (N : Node_Id; Val : Boolean := True);    -- Flag18
9157
9158    procedure Set_Compile_Time_Known_Aggregate
9159      (N : Node_Id; Val : Boolean := True);    -- Flag18
9160
9161    procedure Set_Component_Associations
9162      (N : Node_Id; Val : List_Id);            -- List2
9163
9164    procedure Set_Component_Clauses
9165      (N : Node_Id; Val : List_Id);            -- List3
9166
9167    procedure Set_Component_Definition
9168      (N : Node_Id; Val : Node_Id);            -- Node4
9169
9170    procedure Set_Component_Items
9171      (N : Node_Id; Val : List_Id);            -- List3
9172
9173    procedure Set_Component_List
9174      (N : Node_Id; Val : Node_Id);            -- Node1
9175
9176    procedure Set_Component_Name
9177      (N : Node_Id; Val : Node_Id);            -- Node1
9178
9179    procedure Set_Componentwise_Assignment
9180      (N : Node_Id; Val : Boolean := True);    -- Flag14
9181
9182    procedure Set_Condition
9183      (N : Node_Id; Val : Node_Id);            -- Node1
9184
9185    procedure Set_Condition_Actions
9186      (N : Node_Id; Val : List_Id);            -- List3
9187
9188    procedure Set_Config_Pragmas
9189      (N : Node_Id; Val : List_Id);            -- List4
9190
9191    procedure Set_Constant_Present
9192      (N : Node_Id; Val : Boolean := True);    -- Flag17
9193
9194    procedure Set_Constraint
9195      (N : Node_Id; Val : Node_Id);            -- Node3
9196
9197    procedure Set_Constraints
9198      (N : Node_Id; Val : List_Id);            -- List1
9199
9200    procedure Set_Context_Installed
9201      (N : Node_Id; Val : Boolean := True);    -- Flag13
9202
9203    procedure Set_Context_Items
9204      (N : Node_Id; Val : List_Id);            -- List1
9205
9206    procedure Set_Context_Pending
9207      (N : Node_Id; Val : Boolean := True);    -- Flag16
9208
9209    procedure Set_Controlling_Argument
9210      (N : Node_Id; Val : Node_Id);            -- Node1
9211
9212    procedure Set_Conversion_OK
9213      (N : Node_Id; Val : Boolean := True);    -- Flag14
9214
9215    procedure Set_Corresponding_Aspect
9216      (N : Node_Id; Val : Node_Id);            -- Node3
9217
9218    procedure Set_Corresponding_Body
9219      (N : Node_Id; Val : Node_Id);            -- Node5
9220
9221    procedure Set_Corresponding_Formal_Spec
9222      (N : Node_Id; Val : Node_Id);            -- Node3
9223
9224    procedure Set_Corresponding_Generic_Association
9225      (N : Node_Id; Val : Node_Id);            -- Node5
9226
9227    procedure Set_Corresponding_Integer_Value
9228      (N : Node_Id; Val : Uint);               -- Uint4
9229
9230    procedure Set_Corresponding_Spec
9231      (N : Node_Id; Val : Node_Id);            -- Node5
9232
9233    procedure Set_Corresponding_Stub
9234      (N : Node_Id; Val : Node_Id);            -- Node3
9235
9236    procedure Set_Dcheck_Function
9237      (N : Node_Id; Val : Entity_Id);          -- Node5
9238
9239    procedure Set_Declarations
9240      (N : Node_Id; Val : List_Id);            -- List2
9241
9242    procedure Set_Default_Expression
9243      (N : Node_Id; Val : Node_Id);            -- Node5
9244
9245    procedure Set_Default_Storage_Pool
9246      (N : Node_Id; Val : Node_Id);            -- Node3
9247
9248    procedure Set_Default_Name
9249      (N : Node_Id; Val : Node_Id);            -- Node2
9250
9251    procedure Set_Defining_Identifier
9252      (N : Node_Id; Val : Entity_Id);          -- Node1
9253
9254    procedure Set_Defining_Unit_Name
9255      (N : Node_Id; Val : Node_Id);            -- Node1
9256
9257    procedure Set_Delay_Alternative
9258      (N : Node_Id; Val : Node_Id);            -- Node4
9259
9260    procedure Set_Delay_Statement
9261      (N : Node_Id; Val : Node_Id);            -- Node2
9262
9263    procedure Set_Delta_Expression
9264      (N : Node_Id; Val : Node_Id);            -- Node3
9265
9266    procedure Set_Digits_Expression
9267      (N : Node_Id; Val : Node_Id);            -- Node2
9268
9269    procedure Set_Discr_Check_Funcs_Built
9270      (N : Node_Id; Val : Boolean := True);    -- Flag11
9271
9272    procedure Set_Discrete_Choices
9273      (N : Node_Id; Val : List_Id);            -- List4
9274
9275    procedure Set_Discrete_Range
9276      (N : Node_Id; Val : Node_Id);            -- Node4
9277
9278    procedure Set_Discrete_Subtype_Definition
9279      (N : Node_Id; Val : Node_Id);            -- Node4
9280
9281    procedure Set_Discrete_Subtype_Definitions
9282      (N : Node_Id; Val : List_Id);            -- List2
9283
9284    procedure Set_Discriminant_Specifications
9285      (N : Node_Id; Val : List_Id);            -- List4
9286
9287    procedure Set_Discriminant_Type
9288      (N : Node_Id; Val : Node_Id);            -- Node5
9289
9290    procedure Set_Do_Accessibility_Check
9291      (N : Node_Id; Val : Boolean := True);    -- Flag13
9292
9293    procedure Set_Do_Discriminant_Check
9294      (N : Node_Id; Val : Boolean := True);    -- Flag13
9295
9296    procedure Set_Do_Division_Check
9297      (N : Node_Id; Val : Boolean := True);    -- Flag13
9298
9299    procedure Set_Do_Length_Check
9300      (N : Node_Id; Val : Boolean := True);    -- Flag4
9301
9302    procedure Set_Do_Overflow_Check
9303      (N : Node_Id; Val : Boolean := True);    -- Flag17
9304
9305    procedure Set_Do_Range_Check
9306      (N : Node_Id; Val : Boolean := True);    -- Flag9
9307
9308    procedure Set_Do_Storage_Check
9309      (N : Node_Id; Val : Boolean := True);    -- Flag17
9310
9311    procedure Set_Do_Tag_Check
9312      (N : Node_Id; Val : Boolean := True);    -- Flag13
9313
9314    procedure Set_Elaborate_All_Desirable
9315      (N : Node_Id; Val : Boolean := True);    -- Flag9
9316
9317    procedure Set_Elaborate_All_Present
9318      (N : Node_Id; Val : Boolean := True);    -- Flag14
9319
9320    procedure Set_Elaborate_Desirable
9321      (N : Node_Id; Val : Boolean := True);    -- Flag11
9322
9323    procedure Set_Elaborate_Present
9324      (N : Node_Id; Val : Boolean := True);    -- Flag4
9325
9326    procedure Set_Elaboration_Boolean
9327      (N : Node_Id; Val : Node_Id);            -- Node2
9328
9329    procedure Set_Else_Actions
9330      (N : Node_Id; Val : List_Id);            -- List3
9331
9332    procedure Set_Else_Statements
9333      (N : Node_Id; Val : List_Id);            -- List4
9334
9335    procedure Set_Elsif_Parts
9336      (N : Node_Id; Val : List_Id);            -- List3
9337
9338    procedure Set_Enclosing_Variant
9339      (N : Node_Id; Val : Node_Id);            -- Node2
9340
9341    procedure Set_End_Label
9342      (N : Node_Id; Val : Node_Id);            -- Node4
9343
9344    procedure Set_End_Span
9345      (N : Node_Id; Val : Uint);               -- Uint5
9346
9347    procedure Set_Entity
9348      (N : Node_Id; Val : Node_Id);            -- Node4
9349
9350    procedure Set_Entry_Body_Formal_Part
9351      (N : Node_Id; Val : Node_Id);            -- Node5
9352
9353    procedure Set_Entry_Call_Alternative
9354      (N : Node_Id; Val : Node_Id);            -- Node1
9355
9356    procedure Set_Entry_Call_Statement
9357      (N : Node_Id; Val : Node_Id);            -- Node1
9358
9359    procedure Set_Entry_Direct_Name
9360      (N : Node_Id; Val : Node_Id);            -- Node1
9361
9362    procedure Set_Entry_Index
9363      (N : Node_Id; Val : Node_Id);            -- Node5
9364
9365    procedure Set_Entry_Index_Specification
9366      (N : Node_Id; Val : Node_Id);            -- Node4
9367
9368    procedure Set_Etype
9369      (N : Node_Id; Val : Node_Id);            -- Node5
9370
9371    procedure Set_Exception_Choices
9372      (N : Node_Id; Val : List_Id);            -- List4
9373
9374    procedure Set_Exception_Handlers
9375      (N : Node_Id; Val : List_Id);            -- List5
9376
9377    procedure Set_Exception_Junk
9378      (N : Node_Id; Val : Boolean := True);    -- Flag8
9379
9380    procedure Set_Exception_Label
9381      (N : Node_Id; Val : Node_Id);            -- Node5
9382
9383    procedure Set_Expansion_Delayed
9384      (N : Node_Id; Val : Boolean := True);    -- Flag11
9385
9386    procedure Set_Explicit_Actual_Parameter
9387      (N : Node_Id; Val : Node_Id);            -- Node3
9388
9389    procedure Set_Explicit_Generic_Actual_Parameter
9390      (N : Node_Id; Val : Node_Id);            -- Node1
9391
9392    procedure Set_Expression
9393      (N : Node_Id; Val : Node_Id);            -- Node3
9394
9395    procedure Set_Expressions
9396      (N : Node_Id; Val : List_Id);            -- List1
9397
9398    procedure Set_First_Bit
9399      (N : Node_Id; Val : Node_Id);            -- Node3
9400
9401    procedure Set_First_Inlined_Subprogram
9402      (N : Node_Id; Val : Entity_Id);          -- Node3
9403
9404    procedure Set_First_Name
9405      (N : Node_Id; Val : Boolean := True);    -- Flag5
9406
9407    procedure Set_First_Named_Actual
9408      (N : Node_Id; Val : Node_Id);            -- Node4
9409
9410    procedure Set_First_Real_Statement
9411      (N : Node_Id; Val : Node_Id);            -- Node2
9412
9413    procedure Set_First_Subtype_Link
9414      (N : Node_Id; Val : Entity_Id);          -- Node5
9415
9416    procedure Set_Float_Truncate
9417      (N : Node_Id; Val : Boolean := True);    -- Flag11
9418
9419    procedure Set_Formal_Type_Definition
9420      (N : Node_Id; Val : Node_Id);            -- Node3
9421
9422    procedure Set_Forwards_OK
9423      (N : Node_Id; Val : Boolean := True);    -- Flag5
9424
9425    procedure Set_From_At_Mod
9426      (N : Node_Id; Val : Boolean := True);    -- Flag4
9427
9428    procedure Set_From_Aspect_Specification
9429      (N : Node_Id; Val : Boolean := True);    -- Flag13
9430
9431    procedure Set_From_At_End
9432      (N : Node_Id; Val : Boolean := True);    -- Flag4
9433
9434    procedure Set_From_Default
9435      (N : Node_Id; Val : Boolean := True);    -- Flag6
9436
9437    procedure Set_Generic_Associations
9438      (N : Node_Id; Val : List_Id);            -- List3
9439
9440    procedure Set_Generic_Formal_Declarations
9441      (N : Node_Id; Val : List_Id);            -- List2
9442
9443    procedure Set_Generic_Parent
9444      (N : Node_Id; Val : Node_Id);            -- Node5
9445
9446    procedure Set_Generic_Parent_Type
9447      (N : Node_Id; Val : Node_Id);            -- Node4
9448
9449    procedure Set_Handled_Statement_Sequence
9450      (N : Node_Id; Val : Node_Id);            -- Node4
9451
9452    procedure Set_Handler_List_Entry
9453      (N : Node_Id; Val : Node_Id);            -- Node2
9454
9455    procedure Set_Has_Created_Identifier
9456      (N : Node_Id; Val : Boolean := True);    -- Flag15
9457
9458    procedure Set_Has_Dynamic_Length_Check
9459      (N : Node_Id; Val : Boolean := True);    -- Flag10
9460
9461    procedure Set_Has_Dynamic_Range_Check
9462      (N : Node_Id; Val : Boolean := True);    -- Flag12
9463
9464    procedure Set_Has_Init_Expression
9465      (N : Node_Id; Val : Boolean := True);    -- Flag14
9466
9467    procedure Set_Has_Local_Raise
9468      (N : Node_Id; Val : Boolean := True);    -- Flag8
9469
9470    procedure Set_Has_No_Elaboration_Code
9471      (N : Node_Id; Val : Boolean := True);    -- Flag17
9472
9473    procedure Set_Has_Pragma_CPU
9474      (N : Node_Id; Val : Boolean := True);    -- Flag14
9475
9476    procedure Set_Has_Pragma_Dispatching_Domain
9477      (N : Node_Id; Val : Boolean := True);    -- Flag15
9478
9479    procedure Set_Has_Pragma_Priority
9480      (N : Node_Id; Val : Boolean := True);    -- Flag6
9481
9482    procedure Set_Has_Pragma_Suppress_All
9483      (N : Node_Id; Val : Boolean := True);    -- Flag14
9484
9485    procedure Set_Has_Private_View
9486      (N : Node_Id; Val : Boolean := True);    -- Flag11
9487
9488    procedure Set_Has_Relative_Deadline_Pragma
9489      (N : Node_Id; Val : Boolean := True);    -- Flag9
9490
9491    procedure Set_Has_Self_Reference
9492      (N : Node_Id; Val : Boolean := True);    -- Flag13
9493
9494    procedure Set_Has_Storage_Size_Pragma
9495      (N : Node_Id; Val : Boolean := True);    -- Flag5
9496
9497    procedure Set_Has_Task_Info_Pragma
9498      (N : Node_Id; Val : Boolean := True);    -- Flag7
9499
9500    procedure Set_Has_Task_Name_Pragma
9501      (N : Node_Id; Val : Boolean := True);    -- Flag8
9502
9503    procedure Set_Has_Wide_Character
9504      (N : Node_Id; Val : Boolean := True);    -- Flag11
9505
9506    procedure Set_Has_Wide_Wide_Character
9507      (N : Node_Id; Val : Boolean := True);    -- Flag13
9508
9509    procedure Set_Hidden_By_Use_Clause
9510      (N : Node_Id; Val : Elist_Id);           -- Elist4
9511
9512    procedure Set_High_Bound
9513      (N : Node_Id; Val : Node_Id);            -- Node2
9514
9515    procedure Set_Identifier
9516      (N : Node_Id; Val : Node_Id);            -- Node1
9517
9518    procedure Set_Interface_List
9519      (N : Node_Id; Val : List_Id);            -- List2
9520
9521    procedure Set_Interface_Present
9522      (N : Node_Id; Val : Boolean := True);    -- Flag16
9523
9524    procedure Set_Implicit_With
9525      (N : Node_Id; Val : Boolean := True);    -- Flag16
9526
9527    procedure Set_Import_Interface_Present
9528      (N : Node_Id; Val : Boolean := True);    -- Flag16
9529
9530    procedure Set_In_Present
9531      (N : Node_Id; Val : Boolean := True);    -- Flag15
9532
9533    procedure Set_Includes_Infinities
9534      (N : Node_Id; Val : Boolean := True);    -- Flag11
9535
9536    procedure Set_Inherited_Discriminant
9537      (N : Node_Id; Val : Boolean := True);    -- Flag13
9538
9539    procedure Set_Instance_Spec
9540      (N : Node_Id; Val : Node_Id);            -- Node5
9541
9542    procedure Set_Intval
9543      (N : Node_Id; Val : Uint);               -- Uint3
9544
9545    procedure Set_Is_Accessibility_Actual
9546      (N : Node_Id; Val : Boolean := True);    -- Flag13
9547
9548    procedure Set_Is_Asynchronous_Call_Block
9549      (N : Node_Id; Val : Boolean := True);    -- Flag7
9550
9551    procedure Set_Is_Boolean_Aspect
9552      (N : Node_Id; Val : Boolean := True);    -- Flag16
9553
9554    procedure Set_Is_Component_Left_Opnd
9555      (N : Node_Id; Val : Boolean := True);    -- Flag13
9556
9557    procedure Set_Is_Component_Right_Opnd
9558      (N : Node_Id; Val : Boolean := True);    -- Flag14
9559
9560    procedure Set_Is_Controlling_Actual
9561      (N : Node_Id; Val : Boolean := True);    -- Flag16
9562
9563    procedure Set_Is_Delayed_Aspect
9564      (N : Node_Id; Val : Boolean := True);    -- Flag14
9565
9566    procedure Set_Is_Dynamic_Coextension
9567      (N : Node_Id; Val : Boolean := True);    -- Flag18
9568
9569    procedure Set_Is_Elsif
9570      (N : Node_Id; Val : Boolean := True);    -- Flag13
9571
9572    procedure Set_Is_Entry_Barrier_Function
9573      (N : Node_Id; Val : Boolean := True);    -- Flag8
9574
9575    procedure Set_Is_Expanded_Build_In_Place_Call
9576      (N : Node_Id; Val : Boolean := True);    -- Flag11
9577
9578    procedure Set_Is_Folded_In_Parser
9579      (N : Node_Id; Val : Boolean := True);    -- Flag4
9580
9581    procedure Set_Is_In_Discriminant_Check
9582      (N : Node_Id; Val : Boolean := True);    -- Flag11
9583
9584    procedure Set_Is_Machine_Number
9585      (N : Node_Id; Val : Boolean := True);    -- Flag11
9586
9587    procedure Set_Is_Null_Loop
9588      (N : Node_Id; Val : Boolean := True);    -- Flag16
9589
9590    procedure Set_Is_Overloaded
9591      (N : Node_Id; Val : Boolean := True);    -- Flag5
9592
9593    procedure Set_Is_Power_Of_2_For_Shift
9594      (N : Node_Id; Val : Boolean := True);    -- Flag13
9595
9596    procedure Set_Is_Protected_Subprogram_Body
9597      (N : Node_Id; Val : Boolean := True);    -- Flag7
9598
9599    procedure Set_Is_Static_Coextension
9600      (N : Node_Id; Val : Boolean := True);    -- Flag14
9601
9602    procedure Set_Is_Static_Expression
9603      (N : Node_Id; Val : Boolean := True);    -- Flag6
9604
9605    procedure Set_Is_Subprogram_Descriptor
9606      (N : Node_Id; Val : Boolean := True);    -- Flag16
9607
9608    procedure Set_Is_Task_Allocation_Block
9609      (N : Node_Id; Val : Boolean := True);    -- Flag6
9610
9611    procedure Set_Is_Task_Master
9612      (N : Node_Id; Val : Boolean := True);    -- Flag5
9613
9614    procedure Set_Iteration_Scheme
9615      (N : Node_Id; Val : Node_Id);            -- Node2
9616
9617    procedure Set_Iterator_Specification
9618      (N : Node_Id; Val : Node_Id);            -- Node2
9619
9620    procedure Set_Itype
9621      (N : Node_Id; Val : Entity_Id);          -- Node1
9622
9623    procedure Set_Kill_Range_Check
9624      (N : Node_Id; Val : Boolean := True);    -- Flag11
9625
9626    procedure Set_Last_Bit
9627      (N : Node_Id; Val : Node_Id);            -- Node4
9628
9629    procedure Set_Last_Name
9630      (N : Node_Id; Val : Boolean := True);    -- Flag6
9631
9632    procedure Set_Library_Unit
9633      (N : Node_Id; Val : Node_Id);            -- Node4
9634
9635    procedure Set_Label_Construct
9636      (N : Node_Id; Val : Node_Id);            -- Node2
9637
9638    procedure Set_Left_Opnd
9639      (N : Node_Id; Val : Node_Id);            -- Node2
9640
9641    procedure Set_Limited_View_Installed
9642      (N : Node_Id; Val : Boolean := True);    -- Flag18
9643
9644    procedure Set_Limited_Present
9645      (N : Node_Id; Val : Boolean := True);    -- Flag17
9646
9647    procedure Set_Literals
9648      (N : Node_Id; Val : List_Id);            -- List1
9649
9650    procedure Set_Local_Raise_Not_OK
9651      (N : Node_Id; Val : Boolean := True);    -- Flag7
9652
9653    procedure Set_Local_Raise_Statements
9654      (N : Node_Id; Val : Elist_Id);           -- Elist1
9655
9656    procedure Set_Loop_Actions
9657      (N : Node_Id; Val : List_Id);            -- List2
9658
9659    procedure Set_Loop_Parameter_Specification
9660      (N : Node_Id; Val : Node_Id);            -- Node4
9661
9662    procedure Set_Low_Bound
9663      (N : Node_Id; Val : Node_Id);            -- Node1
9664
9665    procedure Set_Mod_Clause
9666      (N : Node_Id; Val : Node_Id);            -- Node2
9667
9668    procedure Set_More_Ids
9669      (N : Node_Id; Val : Boolean := True);    -- Flag5
9670
9671    procedure Set_Must_Be_Byte_Aligned
9672      (N : Node_Id; Val : Boolean := True);    -- Flag14
9673
9674    procedure Set_Must_Not_Freeze
9675      (N : Node_Id; Val : Boolean := True);    -- Flag8
9676
9677    procedure Set_Must_Not_Override
9678      (N : Node_Id; Val : Boolean := True);    -- Flag15
9679
9680    procedure Set_Must_Override
9681      (N : Node_Id; Val : Boolean := True);    -- Flag14
9682
9683    procedure Set_Name
9684      (N : Node_Id; Val : Node_Id);            -- Node2
9685
9686    procedure Set_Names
9687      (N : Node_Id; Val : List_Id);            -- List2
9688
9689    procedure Set_Next_Entity
9690      (N : Node_Id; Val : Node_Id);            -- Node2
9691
9692    procedure Set_Next_Exit_Statement
9693      (N : Node_Id; Val : Node_Id);            -- Node3
9694
9695    procedure Set_Next_Implicit_With
9696      (N : Node_Id; Val : Node_Id);            -- Node3
9697
9698    procedure Set_Next_Named_Actual
9699      (N : Node_Id; Val : Node_Id);            -- Node4
9700
9701    procedure Set_Next_Pragma
9702      (N : Node_Id; Val : Node_Id);            -- Node1
9703
9704    procedure Set_Next_Rep_Item
9705      (N : Node_Id; Val : Node_Id);            -- Node5
9706
9707    procedure Set_Next_Use_Clause
9708      (N : Node_Id; Val : Node_Id);            -- Node3
9709
9710    procedure Set_No_Ctrl_Actions
9711      (N : Node_Id; Val : Boolean := True);    -- Flag7
9712
9713    procedure Set_No_Elaboration_Check
9714      (N : Node_Id; Val : Boolean := True);    -- Flag14
9715
9716    procedure Set_No_Entities_Ref_In_Spec
9717      (N : Node_Id; Val : Boolean := True);    -- Flag8
9718
9719    procedure Set_No_Initialization
9720      (N : Node_Id; Val : Boolean := True);    -- Flag13
9721
9722    procedure Set_No_Truncation
9723      (N : Node_Id; Val : Boolean := True);    -- Flag17
9724
9725    procedure Set_Null_Present
9726      (N : Node_Id; Val : Boolean := True);    -- Flag13
9727
9728    procedure Set_Null_Exclusion_Present
9729      (N : Node_Id; Val : Boolean := True);    -- Flag11
9730
9731    procedure Set_Null_Exclusion_In_Return_Present
9732      (N : Node_Id; Val : Boolean := True);    -- Flag14
9733
9734    procedure Set_Null_Record_Present
9735      (N : Node_Id; Val : Boolean := True);    -- Flag17
9736
9737    procedure Set_Object_Definition
9738      (N : Node_Id; Val : Node_Id);            -- Node4
9739
9740    procedure Set_Of_Present
9741      (N : Node_Id; Val : Boolean := True);   -- Flag16
9742
9743    procedure Set_Original_Discriminant
9744      (N : Node_Id; Val : Node_Id);            -- Node2
9745
9746    procedure Set_Original_Entity
9747      (N : Node_Id; Val : Entity_Id);          -- Node2
9748
9749    procedure Set_Others_Discrete_Choices
9750      (N : Node_Id; Val : List_Id);            -- List1
9751
9752    procedure Set_Out_Present
9753      (N : Node_Id; Val : Boolean := True);    -- Flag17
9754
9755    procedure Set_Parameter_Associations
9756      (N : Node_Id; Val : List_Id);            -- List3
9757
9758    procedure Set_Parameter_List_Truncated
9759      (N : Node_Id; Val : Boolean := True);    -- Flag17
9760
9761    procedure Set_Parameter_Specifications
9762      (N : Node_Id; Val : List_Id);            -- List3
9763
9764    procedure Set_Parameter_Type
9765      (N : Node_Id; Val : Node_Id);            -- Node2
9766
9767    procedure Set_Parent_Spec
9768      (N : Node_Id; Val : Node_Id);            -- Node4
9769
9770    procedure Set_Position
9771      (N : Node_Id; Val : Node_Id);            -- Node2
9772
9773    procedure Set_Pragma_Argument_Associations
9774      (N : Node_Id; Val : List_Id);            -- List2
9775
9776    procedure Set_Pragma_Identifier
9777      (N : Node_Id; Val : Node_Id);            -- Node4
9778
9779    procedure Set_Pragmas_After
9780      (N : Node_Id; Val : List_Id);            -- List5
9781
9782    procedure Set_Pragmas_Before
9783      (N : Node_Id; Val : List_Id);            -- List4
9784
9785    procedure Set_Prefix
9786      (N : Node_Id; Val : Node_Id);            -- Node3
9787
9788    procedure Set_Premature_Use
9789      (N : Node_Id; Val : Node_Id);            -- Node5
9790
9791    procedure Set_Present_Expr
9792      (N : Node_Id; Val : Uint);               -- Uint3
9793
9794    procedure Set_Prev_Ids
9795      (N : Node_Id; Val : Boolean := True);    -- Flag6
9796
9797    procedure Set_Print_In_Hex
9798      (N : Node_Id; Val : Boolean := True);    -- Flag13
9799
9800    procedure Set_Private_Declarations
9801      (N : Node_Id; Val : List_Id);            -- List3
9802
9803    procedure Set_Private_Present
9804      (N : Node_Id; Val : Boolean := True);    -- Flag15
9805
9806    procedure Set_Procedure_To_Call
9807      (N : Node_Id; Val : Node_Id);            -- Node2
9808
9809    procedure Set_Proper_Body
9810      (N : Node_Id; Val : Node_Id);            -- Node1
9811
9812    procedure Set_Protected_Definition
9813      (N : Node_Id; Val : Node_Id);            -- Node3
9814
9815    procedure Set_Protected_Present
9816      (N : Node_Id; Val : Boolean := True);    -- Flag6
9817
9818    procedure Set_Raises_Constraint_Error
9819      (N : Node_Id; Val : Boolean := True);    -- Flag7
9820
9821    procedure Set_Range_Constraint
9822      (N : Node_Id; Val : Node_Id);            -- Node4
9823
9824    procedure Set_Range_Expression
9825      (N : Node_Id; Val : Node_Id);            -- Node4
9826
9827    procedure Set_Real_Range_Specification
9828      (N : Node_Id; Val : Node_Id);            -- Node4
9829
9830    procedure Set_Realval
9831      (N : Node_Id; Val : Ureal);              -- Ureal3
9832
9833    procedure Set_Reason
9834      (N : Node_Id; Val : Uint);               -- Uint3
9835
9836    procedure Set_Record_Extension_Part
9837      (N : Node_Id; Val : Node_Id);            -- Node3
9838
9839    procedure Set_Redundant_Use
9840      (N : Node_Id; Val : Boolean := True);    -- Flag13
9841
9842    procedure Set_Renaming_Exception
9843      (N : Node_Id; Val : Node_Id);            -- Node2
9844
9845    procedure Set_Result_Definition
9846      (N : Node_Id; Val : Node_Id);            -- Node4
9847
9848    procedure Set_Return_Object_Declarations
9849      (N : Node_Id; Val : List_Id);            -- List3
9850
9851    procedure Set_Return_Statement_Entity
9852      (N : Node_Id; Val : Node_Id);            -- Node5
9853
9854    procedure Set_Reverse_Present
9855      (N : Node_Id; Val : Boolean := True);    -- Flag15
9856
9857    procedure Set_Right_Opnd
9858      (N : Node_Id; Val : Node_Id);            -- Node3
9859
9860    procedure Set_Rounded_Result
9861      (N : Node_Id; Val : Boolean := True);    -- Flag18
9862
9863    procedure Set_SCIL_Controlling_Tag
9864      (N : Node_Id; Val : Node_Id);            -- Node5
9865
9866    procedure Set_SCIL_Entity
9867      (N : Node_Id; Val : Node_Id);            -- Node4
9868
9869    procedure Set_SCIL_Tag_Value
9870      (N : Node_Id; Val : Node_Id);            -- Node5
9871
9872    procedure Set_SCIL_Target_Prim
9873      (N : Node_Id; Val : Node_Id);            -- Node2
9874
9875    procedure Set_Scope
9876      (N : Node_Id; Val : Node_Id);            -- Node3
9877
9878    procedure Set_Select_Alternatives
9879      (N : Node_Id; Val : List_Id);            -- List1
9880
9881    procedure Set_Selector_Name
9882      (N : Node_Id; Val : Node_Id);            -- Node2
9883
9884    procedure Set_Selector_Names
9885      (N : Node_Id; Val : List_Id);            -- List1
9886
9887    procedure Set_Shift_Count_OK
9888      (N : Node_Id; Val : Boolean := True);    -- Flag4
9889
9890    procedure Set_Source_Type
9891      (N : Node_Id; Val : Entity_Id);          -- Node1
9892
9893    procedure Set_Spec_PPC_List
9894      (N : Node_Id; Val : Node_Id);            -- Node1
9895
9896    procedure Set_Spec_TC_List
9897      (N : Node_Id; Val : Node_Id);            -- Node2
9898
9899    procedure Set_Specification
9900      (N : Node_Id; Val : Node_Id);            -- Node1
9901
9902    procedure Set_Split_PPC
9903      (N : Node_Id; Val : Boolean);            -- Flag17
9904
9905    procedure Set_Statements
9906      (N : Node_Id; Val : List_Id);            -- List3
9907
9908    procedure Set_Static_Processing_OK
9909      (N : Node_Id; Val : Boolean);            -- Flag4
9910
9911    procedure Set_Storage_Pool
9912      (N : Node_Id; Val : Node_Id);            -- Node1
9913
9914    procedure Set_Subpool_Handle_Name
9915      (N : Node_Id; Val : Node_Id);            -- Node4
9916
9917    procedure Set_Strval
9918      (N : Node_Id; Val : String_Id);          -- Str3
9919
9920    procedure Set_Subtype_Indication
9921      (N : Node_Id; Val : Node_Id);            -- Node5
9922
9923    procedure Set_Subtype_Mark
9924      (N : Node_Id; Val : Node_Id);            -- Node4
9925
9926    procedure Set_Subtype_Marks
9927      (N : Node_Id; Val : List_Id);            -- List2
9928
9929    procedure Set_Suppress_Assignment_Checks
9930      (N : Node_Id; Val : Boolean := True);    -- Flag18
9931
9932    procedure Set_Suppress_Loop_Warnings
9933      (N : Node_Id; Val : Boolean := True);    -- Flag17
9934
9935    procedure Set_Synchronized_Present
9936      (N : Node_Id; Val : Boolean := True);    -- Flag7
9937
9938    procedure Set_Tagged_Present
9939      (N : Node_Id; Val : Boolean := True);    -- Flag15
9940
9941    procedure Set_Target_Type
9942      (N : Node_Id; Val : Entity_Id);          -- Node2
9943
9944    procedure Set_Task_Definition
9945      (N : Node_Id; Val : Node_Id);            -- Node3
9946
9947    procedure Set_Task_Present
9948      (N : Node_Id; Val : Boolean := True);    -- Flag5
9949
9950    procedure Set_Then_Actions
9951      (N : Node_Id; Val : List_Id);            -- List2
9952
9953    procedure Set_Then_Statements
9954      (N : Node_Id; Val : List_Id);            -- List2
9955
9956    procedure Set_Treat_Fixed_As_Integer
9957      (N : Node_Id; Val : Boolean := True);    -- Flag14
9958
9959    procedure Set_Triggering_Alternative
9960      (N : Node_Id; Val : Node_Id);            -- Node1
9961
9962    procedure Set_Triggering_Statement
9963      (N : Node_Id; Val : Node_Id);            -- Node1
9964
9965    procedure Set_TSS_Elist
9966      (N : Node_Id; Val : Elist_Id);           -- Elist3
9967
9968    procedure Set_Type_Definition
9969      (N : Node_Id; Val : Node_Id);            -- Node3
9970
9971    procedure Set_Unit
9972      (N : Node_Id; Val : Node_Id);            -- Node2
9973
9974    procedure Set_Unknown_Discriminants_Present
9975      (N : Node_Id; Val : Boolean := True);    -- Flag13
9976
9977    procedure Set_Unreferenced_In_Spec
9978      (N : Node_Id; Val : Boolean := True);    -- Flag7
9979
9980    procedure Set_Variant_Part
9981      (N : Node_Id; Val : Node_Id);            -- Node4
9982
9983    procedure Set_Variants
9984      (N : Node_Id; Val : List_Id);            -- List1
9985
9986    procedure Set_Visible_Declarations
9987      (N : Node_Id; Val : List_Id);            -- List2
9988
9989    procedure Set_Used_Operations
9990      (N : Node_Id; Val : Elist_Id);           -- Elist5
9991
9992    procedure Set_Was_Originally_Stub
9993      (N : Node_Id; Val : Boolean := True);    -- Flag13
9994
9995    procedure Set_Withed_Body
9996      (N : Node_Id; Val : Node_Id);            -- Node1
9997
9998    -------------------------
9999    -- Iterator Procedures --
10000    -------------------------
10001
10002    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10003
10004    procedure Next_Entity       (N : in out Node_Id);
10005    procedure Next_Named_Actual (N : in out Node_Id);
10006    procedure Next_Rep_Item     (N : in out Node_Id);
10007    procedure Next_Use_Clause   (N : in out Node_Id);
10008
10009    -------------------------------------------
10010    -- Miscellaneous Tree Access Subprograms --
10011    -------------------------------------------
10012
10013    function End_Location (N : Node_Id) return Source_Ptr;
10014    --  N is an N_If_Statement or N_Case_Statement node, and this function
10015    --  returns the location of the IF token in the END IF sequence by
10016    --  translating the value of the End_Span field.
10017
10018    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10019    --  N is an N_If_Statement or N_Case_Statement node. This procedure sets
10020    --  the End_Span field to correspond to the given value S. In other words,
10021    --  End_Span is set to the difference between S and Sloc (N), the starting
10022    --  location.
10023
10024    function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10025    --  Given an argument to a pragma Arg, this function returns the expression
10026    --  for the argument. This is Arg itself, or, in the case where Arg is a
10027    --  pragma argument association node, the expression from this node.
10028
10029    --------------------------------
10030    -- Node_Kind Membership Tests --
10031    --------------------------------
10032
10033    --  The following functions allow a convenient notation for testing whether
10034    --  a Node_Kind value matches any one of a list of possible values. In each
10035    --  case True is returned if the given T argument is equal to any of the V
10036    --  arguments. Note that there is a similar set of functions defined in
10037    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
10038
10039    function Nkind_In
10040      (T  : Node_Kind;
10041       V1 : Node_Kind;
10042       V2 : Node_Kind) return Boolean;
10043
10044    function Nkind_In
10045      (T  : Node_Kind;
10046       V1 : Node_Kind;
10047       V2 : Node_Kind;
10048       V3 : Node_Kind) return Boolean;
10049
10050    function Nkind_In
10051      (T  : Node_Kind;
10052       V1 : Node_Kind;
10053       V2 : Node_Kind;
10054       V3 : Node_Kind;
10055       V4 : Node_Kind) return Boolean;
10056
10057    function Nkind_In
10058      (T  : Node_Kind;
10059       V1 : Node_Kind;
10060       V2 : Node_Kind;
10061       V3 : Node_Kind;
10062       V4 : Node_Kind;
10063       V5 : Node_Kind) return Boolean;
10064
10065    function Nkind_In
10066      (T  : Node_Kind;
10067       V1 : Node_Kind;
10068       V2 : Node_Kind;
10069       V3 : Node_Kind;
10070       V4 : Node_Kind;
10071       V5 : Node_Kind;
10072       V6 : Node_Kind) return Boolean;
10073
10074    function Nkind_In
10075      (T  : Node_Kind;
10076       V1 : Node_Kind;
10077       V2 : Node_Kind;
10078       V3 : Node_Kind;
10079       V4 : Node_Kind;
10080       V5 : Node_Kind;
10081       V6 : Node_Kind;
10082       V7 : Node_Kind) return Boolean;
10083
10084    function Nkind_In
10085      (T  : Node_Kind;
10086       V1 : Node_Kind;
10087       V2 : Node_Kind;
10088       V3 : Node_Kind;
10089       V4 : Node_Kind;
10090       V5 : Node_Kind;
10091       V6 : Node_Kind;
10092       V7 : Node_Kind;
10093       V8 : 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;
10102       V6 : Node_Kind;
10103       V7 : Node_Kind;
10104       V8 : Node_Kind;
10105       V9 : Node_Kind) return Boolean;
10106
10107    pragma Inline (Nkind_In);
10108    --  Inline all above functions
10109
10110    -----------------------
10111    -- Utility Functions --
10112    -----------------------
10113
10114    function Pragma_Name (N : Node_Id) return Name_Id;
10115    pragma Inline (Pragma_Name);
10116    --  Convenient function to obtain Chars field of Pragma_Identifier
10117
10118    -----------------------------
10119    -- Syntactic Parent Tables --
10120    -----------------------------
10121
10122    --  These tables show for each node, and for each of the five fields,
10123    --  whether the corresponding field is syntactic (True) or semantic (False).
10124    --  Unused entries are also set to False.
10125
10126    subtype Field_Num is Natural range 1 .. 5;
10127
10128    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10129
10130    --  Following entries can be built automatically from the sinfo sources
10131    --  using the makeisf utility (currently this program is in spitbol).
10132
10133      N_Identifier =>
10134        (1 => True,    --  Chars (Name1)
10135         2 => False,   --  Original_Discriminant (Node2-Sem)
10136         3 => False,   --  unused
10137         4 => False,   --  Entity (Node4-Sem)
10138         5 => False),  --  Etype (Node5-Sem)
10139
10140      N_Integer_Literal =>
10141        (1 => False,   --  unused
10142         2 => False,   --  Original_Entity (Node2-Sem)
10143         3 => True,    --  Intval (Uint3)
10144         4 => False,   --  unused
10145         5 => False),  --  Etype (Node5-Sem)
10146
10147      N_Real_Literal =>
10148        (1 => False,   --  unused
10149         2 => False,   --  Original_Entity (Node2-Sem)
10150         3 => True,    --  Realval (Ureal3)
10151         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
10152         5 => False),  --  Etype (Node5-Sem)
10153
10154      N_Character_Literal =>
10155        (1 => True,    --  Chars (Name1)
10156         2 => True,    --  Char_Literal_Value (Uint2)
10157         3 => False,   --  unused
10158         4 => False,   --  Entity (Node4-Sem)
10159         5 => False),  --  Etype (Node5-Sem)
10160
10161      N_String_Literal =>
10162        (1 => False,   --  unused
10163         2 => False,   --  unused
10164         3 => True,    --  Strval (Str3)
10165         4 => False,   --  unused
10166         5 => False),  --  Etype (Node5-Sem)
10167
10168      N_Pragma =>
10169        (1 => False,   --  Next_Pragma (Node1-Sem)
10170         2 => True,    --  Pragma_Argument_Associations (List2)
10171         3 => False,   --  unused
10172         4 => True,    --  Pragma_Identifier (Node4)
10173         5 => False),  --  Next_Rep_Item (Node5-Sem)
10174
10175      N_Pragma_Argument_Association =>
10176        (1 => True,    --  Chars (Name1)
10177         2 => False,   --  unused
10178         3 => True,    --  Expression (Node3)
10179         4 => False,   --  unused
10180         5 => False),  --  unused
10181
10182      N_Defining_Identifier =>
10183        (1 => True,    --  Chars (Name1)
10184         2 => False,   --  Next_Entity (Node2-Sem)
10185         3 => False,   --  Scope (Node3-Sem)
10186         4 => False,   --  unused
10187         5 => False),  --  Etype (Node5-Sem)
10188
10189      N_Full_Type_Declaration =>
10190        (1 => True,    --  Defining_Identifier (Node1)
10191         2 => False,   --  unused
10192         3 => True,    --  Type_Definition (Node3)
10193         4 => True,    --  Discriminant_Specifications (List4)
10194         5 => False),  --  unused
10195
10196      N_Subtype_Declaration =>
10197        (1 => True,    --  Defining_Identifier (Node1)
10198         2 => False,   --  unused
10199         3 => False,   --  unused
10200         4 => False,   --  Generic_Parent_Type (Node4-Sem)
10201         5 => True),   --  Subtype_Indication (Node5)
10202
10203      N_Subtype_Indication =>
10204        (1 => False,   --  unused
10205         2 => False,   --  unused
10206         3 => True,    --  Constraint (Node3)
10207         4 => True,    --  Subtype_Mark (Node4)
10208         5 => False),  --  Etype (Node5-Sem)
10209
10210      N_Object_Declaration =>
10211        (1 => True,    --  Defining_Identifier (Node1)
10212         2 => False,   --  Handler_List_Entry (Node2-Sem)
10213         3 => True,    --  Expression (Node3)
10214         4 => True,    --  Object_Definition (Node4)
10215         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10216
10217      N_Number_Declaration =>
10218        (1 => True,    --  Defining_Identifier (Node1)
10219         2 => False,   --  unused
10220         3 => True,    --  Expression (Node3)
10221         4 => False,   --  unused
10222         5 => False),  --  unused
10223
10224      N_Derived_Type_Definition =>
10225        (1 => False,   --  unused
10226         2 => True,    --  Interface_List (List2)
10227         3 => True,    --  Record_Extension_Part (Node3)
10228         4 => False,   --  unused
10229         5 => True),   --  Subtype_Indication (Node5)
10230
10231      N_Range_Constraint =>
10232        (1 => False,   --  unused
10233         2 => False,   --  unused
10234         3 => False,   --  unused
10235         4 => True,    --  Range_Expression (Node4)
10236         5 => False),  --  unused
10237
10238      N_Range =>
10239        (1 => True,    --  Low_Bound (Node1)
10240         2 => True,    --  High_Bound (Node2)
10241         3 => False,   --  unused
10242         4 => False,   --  unused
10243         5 => False),  --  Etype (Node5-Sem)
10244
10245      N_Enumeration_Type_Definition =>
10246        (1 => True,    --  Literals (List1)
10247         2 => False,   --  unused
10248         3 => False,   --  unused
10249         4 => True,    --  End_Label (Node4)
10250         5 => False),  --  unused
10251
10252      N_Defining_Character_Literal =>
10253        (1 => True,    --  Chars (Name1)
10254         2 => False,   --  Next_Entity (Node2-Sem)
10255         3 => False,   --  Scope (Node3-Sem)
10256         4 => False,   --  unused
10257         5 => False),  --  Etype (Node5-Sem)
10258
10259      N_Signed_Integer_Type_Definition =>
10260        (1 => True,    --  Low_Bound (Node1)
10261         2 => True,    --  High_Bound (Node2)
10262         3 => False,   --  unused
10263         4 => False,   --  unused
10264         5 => False),  --  unused
10265
10266      N_Modular_Type_Definition =>
10267        (1 => False,   --  unused
10268         2 => False,   --  unused
10269         3 => True,    --  Expression (Node3)
10270         4 => False,   --  unused
10271         5 => False),  --  unused
10272
10273      N_Floating_Point_Definition =>
10274        (1 => False,   --  unused
10275         2 => True,    --  Digits_Expression (Node2)
10276         3 => False,   --  unused
10277         4 => True,    --  Real_Range_Specification (Node4)
10278         5 => False),  --  unused
10279
10280      N_Real_Range_Specification =>
10281        (1 => True,    --  Low_Bound (Node1)
10282         2 => True,    --  High_Bound (Node2)
10283         3 => False,   --  unused
10284         4 => False,   --  unused
10285         5 => False),  --  unused
10286
10287      N_Ordinary_Fixed_Point_Definition =>
10288        (1 => False,   --  unused
10289         2 => False,   --  unused
10290         3 => True,    --  Delta_Expression (Node3)
10291         4 => True,    --  Real_Range_Specification (Node4)
10292         5 => False),  --  unused
10293
10294      N_Decimal_Fixed_Point_Definition =>
10295        (1 => False,   --  unused
10296         2 => True,    --  Digits_Expression (Node2)
10297         3 => True,    --  Delta_Expression (Node3)
10298         4 => True,    --  Real_Range_Specification (Node4)
10299         5 => False),  --  unused
10300
10301      N_Digits_Constraint =>
10302        (1 => False,   --  unused
10303         2 => True,    --  Digits_Expression (Node2)
10304         3 => False,   --  unused
10305         4 => True,    --  Range_Constraint (Node4)
10306         5 => False),  --  unused
10307
10308      N_Unconstrained_Array_Definition =>
10309        (1 => False,   --  unused
10310         2 => True,    --  Subtype_Marks (List2)
10311         3 => False,   --  unused
10312         4 => True,    --  Component_Definition (Node4)
10313         5 => False),  --  unused
10314
10315      N_Constrained_Array_Definition =>
10316        (1 => False,   --  unused
10317         2 => True,    --  Discrete_Subtype_Definitions (List2)
10318         3 => False,   --  unused
10319         4 => True,    --  Component_Definition (Node4)
10320         5 => False),  --  unused
10321
10322      N_Component_Definition =>
10323        (1 => False,   --  unused
10324         2 => False,   --  unused
10325         3 => True,    --  Access_Definition (Node3)
10326         4 => False,   --  unused
10327         5 => True),   --  Subtype_Indication (Node5)
10328
10329      N_Discriminant_Specification =>
10330        (1 => True,    --  Defining_Identifier (Node1)
10331         2 => False,   --  unused
10332         3 => True,    --  Expression (Node3)
10333         4 => False,   --  unused
10334         5 => True),   --  Discriminant_Type (Node5)
10335
10336      N_Index_Or_Discriminant_Constraint =>
10337        (1 => True,    --  Constraints (List1)
10338         2 => False,   --  unused
10339         3 => False,   --  unused
10340         4 => False,   --  unused
10341         5 => False),  --  unused
10342
10343      N_Discriminant_Association =>
10344        (1 => True,    --  Selector_Names (List1)
10345         2 => False,   --  unused
10346         3 => True,    --  Expression (Node3)
10347         4 => False,   --  unused
10348         5 => False),  --  unused
10349
10350      N_Record_Definition =>
10351        (1 => True,    --  Component_List (Node1)
10352         2 => True,    --  Interface_List (List2)
10353         3 => False,   --  unused
10354         4 => True,    --  End_Label (Node4)
10355         5 => False),  --  unused
10356
10357      N_Component_List =>
10358        (1 => False,   --  unused
10359         2 => False,   --  unused
10360         3 => True,    --  Component_Items (List3)
10361         4 => True,    --  Variant_Part (Node4)
10362         5 => False),  --  unused
10363
10364      N_Component_Declaration =>
10365        (1 => True,    --  Defining_Identifier (Node1)
10366         2 => False,   --  unused
10367         3 => True,    --  Expression (Node3)
10368         4 => True,    --  Component_Definition (Node4)
10369         5 => False),  --  unused
10370
10371      N_Variant_Part =>
10372        (1 => True,    --  Variants (List1)
10373         2 => True,    --  Name (Node2)
10374         3 => False,   --  unused
10375         4 => False,   --  unused
10376         5 => False),  --  unused
10377
10378      N_Variant =>
10379        (1 => True,    --  Component_List (Node1)
10380         2 => False,   --  Enclosing_Variant (Node2-Sem)
10381         3 => False,   --  Present_Expr (Uint3-Sem)
10382         4 => True,    --  Discrete_Choices (List4)
10383         5 => False),  --  Dcheck_Function (Node5-Sem)
10384
10385      N_Others_Choice =>
10386        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
10387         2 => False,   --  unused
10388         3 => False,   --  unused
10389         4 => False,   --  unused
10390         5 => False),  --  unused
10391
10392      N_Access_To_Object_Definition =>
10393        (1 => False,   --  unused
10394         2 => False,   --  unused
10395         3 => False,   --  unused
10396         4 => False,   --  unused
10397         5 => True),   --  Subtype_Indication (Node5)
10398
10399      N_Access_Function_Definition =>
10400        (1 => False,   --  unused
10401         2 => False,   --  unused
10402         3 => True,    --  Parameter_Specifications (List3)
10403         4 => True,    --  Result_Definition (Node4)
10404         5 => False),  --  unused
10405
10406      N_Access_Procedure_Definition =>
10407        (1 => False,   --  unused
10408         2 => False,   --  unused
10409         3 => True,    --  Parameter_Specifications (List3)
10410         4 => False,   --  unused
10411         5 => False),  --  unused
10412
10413      N_Access_Definition =>
10414        (1 => False,   --  unused
10415         2 => False,   --  unused
10416         3 => True,    --  Access_To_Subprogram_Definition (Node3)
10417         4 => True,    --  Subtype_Mark (Node4)
10418         5 => False),  --  unused
10419
10420      N_Incomplete_Type_Declaration =>
10421        (1 => True,    --  Defining_Identifier (Node1)
10422         2 => False,   --  unused
10423         3 => False,   --  unused
10424         4 => True,    --  Discriminant_Specifications (List4)
10425         5 => False),  --  Premature_Use
10426
10427      N_Explicit_Dereference =>
10428        (1 => False,   --  unused
10429         2 => False,   --  unused
10430         3 => True,    --  Prefix (Node3)
10431         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10432         5 => False),  --  Etype (Node5-Sem)
10433
10434      N_Indexed_Component =>
10435        (1 => True,    --  Expressions (List1)
10436         2 => False,   --  unused
10437         3 => True,    --  Prefix (Node3)
10438         4 => False,   --  unused
10439         5 => False),  --  Etype (Node5-Sem)
10440
10441      N_Slice =>
10442        (1 => False,   --  unused
10443         2 => False,   --  unused
10444         3 => True,    --  Prefix (Node3)
10445         4 => True,    --  Discrete_Range (Node4)
10446         5 => False),  --  Etype (Node5-Sem)
10447
10448      N_Selected_Component =>
10449        (1 => False,   --  unused
10450         2 => True,    --  Selector_Name (Node2)
10451         3 => True,    --  Prefix (Node3)
10452         4 => False,   --  unused
10453         5 => False),  --  Etype (Node5-Sem)
10454
10455      N_Attribute_Reference =>
10456        (1 => True,    --  Expressions (List1)
10457         2 => True,    --  Attribute_Name (Name2)
10458         3 => True,    --  Prefix (Node3)
10459         4 => False,   --  Entity (Node4-Sem)
10460         5 => False),  --  Etype (Node5-Sem)
10461
10462      N_Aggregate =>
10463        (1 => True,    --  Expressions (List1)
10464         2 => True,    --  Component_Associations (List2)
10465         3 => False,   --  Aggregate_Bounds (Node3-Sem)
10466         4 => False,   --  unused
10467         5 => False),  --  Etype (Node5-Sem)
10468
10469      N_Component_Association =>
10470        (1 => True,    --  Choices (List1)
10471         2 => False,   --  Loop_Actions (List2-Sem)
10472         3 => True,    --  Expression (Node3)
10473         4 => False,   --  unused
10474         5 => False),  --  unused
10475
10476      N_Extension_Aggregate =>
10477        (1 => True,    --  Expressions (List1)
10478         2 => True,    --  Component_Associations (List2)
10479         3 => True,    --  Ancestor_Part (Node3)
10480         4 => False,   --  unused
10481         5 => False),  --  Etype (Node5-Sem)
10482
10483      N_Null =>
10484        (1 => False,   --  unused
10485         2 => False,   --  unused
10486         3 => False,   --  unused
10487         4 => False,   --  unused
10488         5 => False),  --  Etype (Node5-Sem)
10489
10490      N_And_Then =>
10491        (1 => False,   --  Actions (List1-Sem)
10492         2 => True,    --  Left_Opnd (Node2)
10493         3 => True,    --  Right_Opnd (Node3)
10494         4 => False,   --  unused
10495         5 => False),  --  Etype (Node5-Sem)
10496
10497      N_Or_Else =>
10498        (1 => False,   --  Actions (List1-Sem)
10499         2 => True,    --  Left_Opnd (Node2)
10500         3 => True,    --  Right_Opnd (Node3)
10501         4 => False,   --  unused
10502         5 => False),  --  Etype (Node5-Sem)
10503
10504      N_In =>
10505        (1 => False,   --  unused
10506         2 => True,    --  Left_Opnd (Node2)
10507         3 => True,    --  Right_Opnd (Node3)
10508         4 => True,    --  Alternatives (List4)
10509         5 => False),  --  Etype (Node5-Sem)
10510
10511      N_Not_In =>
10512        (1 => False,   --  unused
10513         2 => True,    --  Left_Opnd (Node2)
10514         3 => True,    --  Right_Opnd (Node3)
10515         4 => True,    --  Alternatives (List4)
10516         5 => False),  --  Etype (Node5-Sem)
10517
10518      N_Op_And =>
10519        (1 => True,    --  Chars (Name1)
10520         2 => True,    --  Left_Opnd (Node2)
10521         3 => True,    --  Right_Opnd (Node3)
10522         4 => False,   --  Entity (Node4-Sem)
10523         5 => False),  --  Etype (Node5-Sem)
10524
10525      N_Op_Or =>
10526        (1 => True,    --  Chars (Name1)
10527         2 => True,    --  Left_Opnd (Node2)
10528         3 => True,    --  Right_Opnd (Node3)
10529         4 => False,   --  Entity (Node4-Sem)
10530         5 => False),  --  Etype (Node5-Sem)
10531
10532      N_Op_Xor =>
10533        (1 => True,    --  Chars (Name1)
10534         2 => True,    --  Left_Opnd (Node2)
10535         3 => True,    --  Right_Opnd (Node3)
10536         4 => False,   --  Entity (Node4-Sem)
10537         5 => False),  --  Etype (Node5-Sem)
10538
10539      N_Op_Eq =>
10540        (1 => True,    --  Chars (Name1)
10541         2 => True,    --  Left_Opnd (Node2)
10542         3 => True,    --  Right_Opnd (Node3)
10543         4 => False,   --  Entity (Node4-Sem)
10544         5 => False),  --  Etype (Node5-Sem)
10545
10546      N_Op_Ne =>
10547        (1 => True,    --  Chars (Name1)
10548         2 => True,    --  Left_Opnd (Node2)
10549         3 => True,    --  Right_Opnd (Node3)
10550         4 => False,   --  Entity (Node4-Sem)
10551         5 => False),  --  Etype (Node5-Sem)
10552
10553      N_Op_Lt =>
10554        (1 => True,    --  Chars (Name1)
10555         2 => True,    --  Left_Opnd (Node2)
10556         3 => True,    --  Right_Opnd (Node3)
10557         4 => False,   --  Entity (Node4-Sem)
10558         5 => False),  --  Etype (Node5-Sem)
10559
10560      N_Op_Le =>
10561        (1 => True,    --  Chars (Name1)
10562         2 => True,    --  Left_Opnd (Node2)
10563         3 => True,    --  Right_Opnd (Node3)
10564         4 => False,   --  Entity (Node4-Sem)
10565         5 => False),  --  Etype (Node5-Sem)
10566
10567      N_Op_Gt =>
10568        (1 => True,    --  Chars (Name1)
10569         2 => True,    --  Left_Opnd (Node2)
10570         3 => True,    --  Right_Opnd (Node3)
10571         4 => False,   --  Entity (Node4-Sem)
10572         5 => False),  --  Etype (Node5-Sem)
10573
10574      N_Op_Ge =>
10575        (1 => True,    --  Chars (Name1)
10576         2 => True,    --  Left_Opnd (Node2)
10577         3 => True,    --  Right_Opnd (Node3)
10578         4 => False,   --  Entity (Node4-Sem)
10579         5 => False),  --  Etype (Node5-Sem)
10580
10581      N_Op_Add =>
10582        (1 => True,    --  Chars (Name1)
10583         2 => True,    --  Left_Opnd (Node2)
10584         3 => True,    --  Right_Opnd (Node3)
10585         4 => False,   --  Entity (Node4-Sem)
10586         5 => False),  --  Etype (Node5-Sem)
10587
10588      N_Op_Subtract =>
10589        (1 => True,    --  Chars (Name1)
10590         2 => True,    --  Left_Opnd (Node2)
10591         3 => True,    --  Right_Opnd (Node3)
10592         4 => False,   --  Entity (Node4-Sem)
10593         5 => False),  --  Etype (Node5-Sem)
10594
10595      N_Op_Concat =>
10596        (1 => True,    --  Chars (Name1)
10597         2 => True,    --  Left_Opnd (Node2)
10598         3 => True,    --  Right_Opnd (Node3)
10599         4 => False,   --  Entity (Node4-Sem)
10600         5 => False),  --  Etype (Node5-Sem)
10601
10602      N_Op_Multiply =>
10603        (1 => True,    --  Chars (Name1)
10604         2 => True,    --  Left_Opnd (Node2)
10605         3 => True,    --  Right_Opnd (Node3)
10606         4 => False,   --  Entity (Node4-Sem)
10607         5 => False),  --  Etype (Node5-Sem)
10608
10609      N_Op_Divide =>
10610        (1 => True,    --  Chars (Name1)
10611         2 => True,    --  Left_Opnd (Node2)
10612         3 => True,    --  Right_Opnd (Node3)
10613         4 => False,   --  Entity (Node4-Sem)
10614         5 => False),  --  Etype (Node5-Sem)
10615
10616      N_Op_Mod =>
10617        (1 => True,    --  Chars (Name1)
10618         2 => True,    --  Left_Opnd (Node2)
10619         3 => True,    --  Right_Opnd (Node3)
10620         4 => False,   --  Entity (Node4-Sem)
10621         5 => False),  --  Etype (Node5-Sem)
10622
10623      N_Op_Rem =>
10624        (1 => True,    --  Chars (Name1)
10625         2 => True,    --  Left_Opnd (Node2)
10626         3 => True,    --  Right_Opnd (Node3)
10627         4 => False,   --  Entity (Node4-Sem)
10628         5 => False),  --  Etype (Node5-Sem)
10629
10630      N_Op_Expon =>
10631        (1 => True,    --  Chars (Name1)
10632         2 => True,    --  Left_Opnd (Node2)
10633         3 => True,    --  Right_Opnd (Node3)
10634         4 => False,   --  Entity (Node4-Sem)
10635         5 => False),  --  Etype (Node5-Sem)
10636
10637      N_Op_Plus =>
10638        (1 => True,    --  Chars (Name1)
10639         2 => False,   --  unused
10640         3 => True,    --  Right_Opnd (Node3)
10641         4 => False,   --  Entity (Node4-Sem)
10642         5 => False),  --  Etype (Node5-Sem)
10643
10644      N_Op_Minus =>
10645        (1 => True,    --  Chars (Name1)
10646         2 => False,   --  unused
10647         3 => True,    --  Right_Opnd (Node3)
10648         4 => False,   --  Entity (Node4-Sem)
10649         5 => False),  --  Etype (Node5-Sem)
10650
10651      N_Op_Abs =>
10652        (1 => True,    --  Chars (Name1)
10653         2 => False,   --  unused
10654         3 => True,    --  Right_Opnd (Node3)
10655         4 => False,   --  Entity (Node4-Sem)
10656         5 => False),  --  Etype (Node5-Sem)
10657
10658      N_Op_Not =>
10659        (1 => True,    --  Chars (Name1)
10660         2 => False,   --  unused
10661         3 => True,    --  Right_Opnd (Node3)
10662         4 => False,   --  Entity (Node4-Sem)
10663         5 => False),  --  Etype (Node5-Sem)
10664
10665      N_Type_Conversion =>
10666        (1 => False,   --  unused
10667         2 => False,   --  unused
10668         3 => True,    --  Expression (Node3)
10669         4 => True,    --  Subtype_Mark (Node4)
10670         5 => False),  --  Etype (Node5-Sem)
10671
10672      N_Qualified_Expression =>
10673        (1 => False,   --  unused
10674         2 => False,   --  unused
10675         3 => True,    --  Expression (Node3)
10676         4 => True,    --  Subtype_Mark (Node4)
10677         5 => False),  --  Etype (Node5-Sem)
10678
10679      N_Quantified_Expression =>
10680        (1 => True,    --  Condition (Node1)
10681         2 => True,    --  Iterator_Specification
10682         3 => False,   --  unused
10683         4 => True,    --  Loop_Parameter_Specification (Node4)
10684         5 => False),  --  Etype (Node5-Sem)
10685
10686      N_Allocator =>
10687        (1 => False,   --  Storage_Pool (Node1-Sem)
10688         2 => False,   --  Procedure_To_Call (Node2-Sem)
10689         3 => True,    --  Expression (Node3)
10690         4 => True,    --  Subpool_Handle_Name (Node4)
10691         5 => False),  --  Etype (Node5-Sem)
10692
10693      N_Null_Statement =>
10694        (1 => False,   --  unused
10695         2 => False,   --  unused
10696         3 => False,   --  unused
10697         4 => False,   --  unused
10698         5 => False),  --  unused
10699
10700      N_Label =>
10701        (1 => True,    --  Identifier (Node1)
10702         2 => False,   --  unused
10703         3 => False,   --  unused
10704         4 => False,   --  unused
10705         5 => False),  --  unused
10706
10707      N_Assignment_Statement =>
10708        (1 => False,   --  unused
10709         2 => True,    --  Name (Node2)
10710         3 => True,    --  Expression (Node3)
10711         4 => False,   --  unused
10712         5 => False),  --  unused
10713
10714      N_If_Statement =>
10715        (1 => True,    --  Condition (Node1)
10716         2 => True,    --  Then_Statements (List2)
10717         3 => True,    --  Elsif_Parts (List3)
10718         4 => True,    --  Else_Statements (List4)
10719         5 => True),   --  End_Span (Uint5)
10720
10721      N_Elsif_Part =>
10722        (1 => True,    --  Condition (Node1)
10723         2 => True,    --  Then_Statements (List2)
10724         3 => False,   --  Condition_Actions (List3-Sem)
10725         4 => False,   --  unused
10726         5 => False),  --  unused
10727
10728      N_Case_Expression =>
10729        (1 => False,   --  unused
10730         2 => False,   --  unused
10731         3 => True,    --  Expression (Node3)
10732         4 => True,    --  Alternatives (List4)
10733         5 => False),  --  unused
10734
10735      N_Case_Expression_Alternative =>
10736        (1 => False,   --  Actions (List1-Sem)
10737         2 => False,   --  unused
10738         3 => True,    --  Statements (List3)
10739         4 => True,    --  Expression (Node4)
10740         5 => False),  --  unused
10741
10742      N_Case_Statement =>
10743        (1 => False,   --  unused
10744         2 => False,   --  unused
10745         3 => True,    --  Expression (Node3)
10746         4 => True,    --  Alternatives (List4)
10747         5 => True),   --  End_Span (Uint5)
10748
10749      N_Case_Statement_Alternative =>
10750        (1 => False,   --  unused
10751         2 => False,   --  unused
10752         3 => True,    --  Statements (List3)
10753         4 => True,    --  Discrete_Choices (List4)
10754         5 => False),  --  unused
10755
10756      N_Loop_Statement =>
10757        (1 => True,    --  Identifier (Node1)
10758         2 => True,    --  Iteration_Scheme (Node2)
10759         3 => True,    --  Statements (List3)
10760         4 => True,    --  End_Label (Node4)
10761         5 => False),  --  unused
10762
10763      N_Iteration_Scheme =>
10764        (1 => True,    --  Condition (Node1)
10765         2 => True,    --  Iterator_Specification (Node2)
10766         3 => False,   --  Condition_Actions (List3-Sem)
10767         4 => True,    --  Loop_Parameter_Specification (Node4)
10768         5 => False),  --  unused
10769
10770      N_Loop_Parameter_Specification =>
10771        (1 => True,    --  Defining_Identifier (Node1)
10772         2 => False,   --  unused
10773         3 => False,   --  unused
10774         4 => True,    --  Discrete_Subtype_Definition (Node4)
10775         5 => False),  --  unused
10776
10777      N_Iterator_Specification =>
10778        (1 => True,    --  Defining_Identifier (Node1)
10779         2 => True,    --  Name (Node2)
10780         3 => False,   --  Unused
10781         4 => False,   --  Unused
10782         5 => True),   --  Subtype_Indication (Node5)
10783
10784      N_Block_Statement =>
10785        (1 => True,    --  Identifier (Node1)
10786         2 => True,    --  Declarations (List2)
10787         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10788         4 => True,    --  Handled_Statement_Sequence (Node4)
10789         5 => False),  --  unused
10790
10791      N_Exit_Statement =>
10792        (1 => True,    --  Condition (Node1)
10793         2 => True,    --  Name (Node2)
10794         3 => False,   --  unused
10795         4 => False,   --  unused
10796         5 => False),  --  unused
10797
10798      N_Goto_Statement =>
10799        (1 => False,   --  unused
10800         2 => True,    --  Name (Node2)
10801         3 => False,   --  unused
10802         4 => False,   --  unused
10803         5 => False),  --  unused
10804
10805      N_Subprogram_Declaration =>
10806        (1 => True,    --  Specification (Node1)
10807         2 => False,   --  unused
10808         3 => False,   --  Body_To_Inline (Node3-Sem)
10809         4 => False,   --  Parent_Spec (Node4-Sem)
10810         5 => False),  --  Corresponding_Body (Node5-Sem)
10811
10812      N_Abstract_Subprogram_Declaration =>
10813        (1 => True,    --  Specification (Node1)
10814         2 => False,   --  unused
10815         3 => False,   --  unused
10816         4 => False,   --  unused
10817         5 => False),  --  unused
10818
10819      N_Function_Specification =>
10820        (1 => True,    --  Defining_Unit_Name (Node1)
10821         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10822         3 => True,    --  Parameter_Specifications (List3)
10823         4 => True,    --  Result_Definition (Node4)
10824         5 => False),  --  Generic_Parent (Node5-Sem)
10825
10826      N_Procedure_Specification =>
10827        (1 => True,    --  Defining_Unit_Name (Node1)
10828         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10829         3 => True,    --  Parameter_Specifications (List3)
10830         4 => False,   --  unused
10831         5 => False),  --  Generic_Parent (Node5-Sem)
10832
10833      N_Designator =>
10834        (1 => True,    --  Identifier (Node1)
10835         2 => True,    --  Name (Node2)
10836         3 => False,   --  unused
10837         4 => False,   --  unused
10838         5 => False),  --  unused
10839
10840      N_Defining_Program_Unit_Name =>
10841        (1 => True,    --  Defining_Identifier (Node1)
10842         2 => True,    --  Name (Node2)
10843         3 => False,   --  unused
10844         4 => False,   --  unused
10845         5 => False),  --  unused
10846
10847      N_Operator_Symbol =>
10848        (1 => True,    --  Chars (Name1)
10849         2 => False,   --  unused
10850         3 => True,    --  Strval (Str3)
10851         4 => False,   --  Entity (Node4-Sem)
10852         5 => False),  --  Etype (Node5-Sem)
10853
10854      N_Defining_Operator_Symbol =>
10855        (1 => True,    --  Chars (Name1)
10856         2 => False,   --  Next_Entity (Node2-Sem)
10857         3 => False,   --  Scope (Node3-Sem)
10858         4 => False,   --  unused
10859         5 => False),  --  Etype (Node5-Sem)
10860
10861      N_Parameter_Specification =>
10862        (1 => True,    --  Defining_Identifier (Node1)
10863         2 => True,    --  Parameter_Type (Node2)
10864         3 => True,    --  Expression (Node3)
10865         4 => False,   --  unused
10866         5 => False),  --  Default_Expression (Node5-Sem)
10867
10868      N_Subprogram_Body =>
10869        (1 => True,    --  Specification (Node1)
10870         2 => True,    --  Declarations (List2)
10871         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10872         4 => True,    --  Handled_Statement_Sequence (Node4)
10873         5 => False),  --  Corresponding_Spec (Node5-Sem)
10874
10875      N_Expression_Function =>
10876        (1 => True,    --  Specification (Node1)
10877         2 => False,   --  unused
10878         3 => True,    --  Expression (Node3)
10879         4 => False,   --  unused
10880         5 => False),  --  unused
10881
10882      N_Procedure_Call_Statement =>
10883        (1 => False,   --  Controlling_Argument (Node1-Sem)
10884         2 => True,    --  Name (Node2)
10885         3 => True,    --  Parameter_Associations (List3)
10886         4 => False,   --  First_Named_Actual (Node4-Sem)
10887         5 => False),  --  Etype (Node5-Sem)
10888
10889      N_Function_Call =>
10890        (1 => False,   --  Controlling_Argument (Node1-Sem)
10891         2 => True,    --  Name (Node2)
10892         3 => True,    --  Parameter_Associations (List3)
10893         4 => False,   --  First_Named_Actual (Node4-Sem)
10894         5 => False),  --  Etype (Node5-Sem)
10895
10896      N_Parameter_Association =>
10897        (1 => False,   --  unused
10898         2 => True,    --  Selector_Name (Node2)
10899         3 => True,    --  Explicit_Actual_Parameter (Node3)
10900         4 => False,   --  Next_Named_Actual (Node4-Sem)
10901         5 => False),  --  unused
10902
10903      N_Return_Statement =>
10904        (1 => False,   --  Storage_Pool (Node1-Sem)
10905         2 => False,   --  Procedure_To_Call (Node2-Sem)
10906         3 => True,    --  Expression (Node3)
10907         4 => False,   --  unused
10908         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10909
10910      N_Extended_Return_Statement =>
10911        (1 => False,   --  Storage_Pool (Node1-Sem)
10912         2 => False,   --  Procedure_To_Call (Node2-Sem)
10913         3 => True,    --  Return_Object_Declarations (List3)
10914         4 => True,    --  Handled_Statement_Sequence (Node4)
10915         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10916
10917      N_Package_Declaration =>
10918        (1 => True,    --  Specification (Node1)
10919         2 => False,   --  unused
10920         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10921         4 => False,   --  Parent_Spec (Node4-Sem)
10922         5 => False),  --  Corresponding_Body (Node5-Sem)
10923
10924      N_Package_Specification =>
10925        (1 => True,    --  Defining_Unit_Name (Node1)
10926         2 => True,    --  Visible_Declarations (List2)
10927         3 => True,    --  Private_Declarations (List3)
10928         4 => True,    --  End_Label (Node4)
10929         5 => False),  --  Generic_Parent (Node5-Sem)
10930
10931      N_Package_Body =>
10932        (1 => True,    --  Defining_Unit_Name (Node1)
10933         2 => True,    --  Declarations (List2)
10934         3 => False,   --  unused
10935         4 => True,    --  Handled_Statement_Sequence (Node4)
10936         5 => False),  --  Corresponding_Spec (Node5-Sem)
10937
10938      N_Private_Type_Declaration =>
10939        (1 => True,    --  Defining_Identifier (Node1)
10940         2 => False,   --  unused
10941         3 => False,   --  unused
10942         4 => True,    --  Discriminant_Specifications (List4)
10943         5 => False),  --  unused
10944
10945      N_Private_Extension_Declaration =>
10946        (1 => True,    --  Defining_Identifier (Node1)
10947         2 => True,    --  Interface_List (List2)
10948         3 => False,   --  unused
10949         4 => True,    --  Discriminant_Specifications (List4)
10950         5 => True),   --  Subtype_Indication (Node5)
10951
10952      N_Use_Package_Clause =>
10953        (1 => False,   --  unused
10954         2 => True,    --  Names (List2)
10955         3 => False,   --  Next_Use_Clause (Node3-Sem)
10956         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10957         5 => False),  --  unused
10958
10959      N_Use_Type_Clause =>
10960        (1 => False,   --  unused
10961         2 => True,    --  Subtype_Marks (List2)
10962         3 => False,   --  Next_Use_Clause (Node3-Sem)
10963         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10964         5 => False),  --  unused
10965
10966      N_Object_Renaming_Declaration =>
10967        (1 => True,    --  Defining_Identifier (Node1)
10968         2 => True,    --  Name (Node2)
10969         3 => True,    --  Access_Definition (Node3)
10970         4 => True,    --  Subtype_Mark (Node4)
10971         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10972
10973      N_Exception_Renaming_Declaration =>
10974        (1 => True,    --  Defining_Identifier (Node1)
10975         2 => True,    --  Name (Node2)
10976         3 => False,   --  unused
10977         4 => False,   --  unused
10978         5 => False),  --  unused
10979
10980      N_Package_Renaming_Declaration =>
10981        (1 => True,    --  Defining_Unit_Name (Node1)
10982         2 => True,    --  Name (Node2)
10983         3 => False,   --  unused
10984         4 => False,   --  Parent_Spec (Node4-Sem)
10985         5 => False),  --  unused
10986
10987      N_Subprogram_Renaming_Declaration =>
10988        (1 => True,    --  Specification (Node1)
10989         2 => True,    --  Name (Node2)
10990         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
10991         4 => False,   --  Parent_Spec (Node4-Sem)
10992         5 => False),  --  Corresponding_Spec (Node5-Sem)
10993
10994      N_Generic_Package_Renaming_Declaration =>
10995        (1 => True,    --  Defining_Unit_Name (Node1)
10996         2 => True,    --  Name (Node2)
10997         3 => False,   --  unused
10998         4 => False,   --  Parent_Spec (Node4-Sem)
10999         5 => False),  --  unused
11000
11001      N_Generic_Procedure_Renaming_Declaration =>
11002        (1 => True,    --  Defining_Unit_Name (Node1)
11003         2 => True,    --  Name (Node2)
11004         3 => False,   --  unused
11005         4 => False,   --  Parent_Spec (Node4-Sem)
11006         5 => False),  --  unused
11007
11008      N_Generic_Function_Renaming_Declaration =>
11009        (1 => True,    --  Defining_Unit_Name (Node1)
11010         2 => True,    --  Name (Node2)
11011         3 => False,   --  unused
11012         4 => False,   --  Parent_Spec (Node4-Sem)
11013         5 => False),  --  unused
11014
11015      N_Task_Type_Declaration =>
11016        (1 => True,    --  Defining_Identifier (Node1)
11017         2 => True,    --  Interface_List (List2)
11018         3 => True,    --  Task_Definition (Node3)
11019         4 => True,    --  Discriminant_Specifications (List4)
11020         5 => False),  --  Corresponding_Body (Node5-Sem)
11021
11022      N_Single_Task_Declaration =>
11023        (1 => True,    --  Defining_Identifier (Node1)
11024         2 => True,    --  Interface_List (List2)
11025         3 => True,    --  Task_Definition (Node3)
11026         4 => False,   --  unused
11027         5 => False),  --  unused
11028
11029      N_Task_Definition =>
11030        (1 => False,   --  unused
11031         2 => True,    --  Visible_Declarations (List2)
11032         3 => True,    --  Private_Declarations (List3)
11033         4 => True,    --  End_Label (Node4)
11034         5 => False),  --  unused
11035
11036      N_Task_Body =>
11037        (1 => True,    --  Defining_Identifier (Node1)
11038         2 => True,    --  Declarations (List2)
11039         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11040         4 => True,    --  Handled_Statement_Sequence (Node4)
11041         5 => False),  --  Corresponding_Spec (Node5-Sem)
11042
11043      N_Protected_Type_Declaration =>
11044        (1 => True,    --  Defining_Identifier (Node1)
11045         2 => True,    --  Interface_List (List2)
11046         3 => True,    --  Protected_Definition (Node3)
11047         4 => True,    --  Discriminant_Specifications (List4)
11048         5 => False),  --  Corresponding_Body (Node5-Sem)
11049
11050      N_Single_Protected_Declaration =>
11051        (1 => True,    --  Defining_Identifier (Node1)
11052         2 => True,    --  Interface_List (List2)
11053         3 => True,    --  Protected_Definition (Node3)
11054         4 => False,   --  unused
11055         5 => False),  --  unused
11056
11057      N_Protected_Definition =>
11058        (1 => False,   --  unused
11059         2 => True,    --  Visible_Declarations (List2)
11060         3 => True,    --  Private_Declarations (List3)
11061         4 => True,    --  End_Label (Node4)
11062         5 => False),  --  unused
11063
11064      N_Protected_Body =>
11065        (1 => True,    --  Defining_Identifier (Node1)
11066         2 => True,    --  Declarations (List2)
11067         3 => False,   --  unused
11068         4 => True,    --  End_Label (Node4)
11069         5 => False),  --  Corresponding_Spec (Node5-Sem)
11070
11071      N_Entry_Declaration =>
11072        (1 => True,    --  Defining_Identifier (Node1)
11073         2 => False,   --  unused
11074         3 => True,    --  Parameter_Specifications (List3)
11075         4 => True,    --  Discrete_Subtype_Definition (Node4)
11076         5 => False),  --  Corresponding_Body (Node5-Sem)
11077
11078      N_Accept_Statement =>
11079        (1 => True,    --  Entry_Direct_Name (Node1)
11080         2 => True,    --  Declarations (List2)
11081         3 => True,    --  Parameter_Specifications (List3)
11082         4 => True,    --  Handled_Statement_Sequence (Node4)
11083         5 => True),   --  Entry_Index (Node5)
11084
11085      N_Entry_Body =>
11086        (1 => True,    --  Defining_Identifier (Node1)
11087         2 => True,    --  Declarations (List2)
11088         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11089         4 => True,    --  Handled_Statement_Sequence (Node4)
11090         5 => True),   --  Entry_Body_Formal_Part (Node5)
11091
11092      N_Entry_Body_Formal_Part =>
11093        (1 => True,    --  Condition (Node1)
11094         2 => False,   --  unused
11095         3 => True,    --  Parameter_Specifications (List3)
11096         4 => True,    --  Entry_Index_Specification (Node4)
11097         5 => False),  --  unused
11098
11099      N_Entry_Index_Specification =>
11100        (1 => True,    --  Defining_Identifier (Node1)
11101         2 => False,   --  unused
11102         3 => False,   --  unused
11103         4 => True,    --  Discrete_Subtype_Definition (Node4)
11104         5 => False),  --  unused
11105
11106      N_Entry_Call_Statement =>
11107        (1 => False,   --  unused
11108         2 => True,    --  Name (Node2)
11109         3 => True,    --  Parameter_Associations (List3)
11110         4 => False,   --  First_Named_Actual (Node4-Sem)
11111         5 => False),  --  unused
11112
11113      N_Requeue_Statement =>
11114        (1 => False,   --  unused
11115         2 => True,    --  Name (Node2)
11116         3 => False,   --  unused
11117         4 => False,   --  unused
11118         5 => False),  --  unused
11119
11120      N_Delay_Until_Statement =>
11121        (1 => False,   --  unused
11122         2 => False,   --  unused
11123         3 => True,    --  Expression (Node3)
11124         4 => False,   --  unused
11125         5 => False),  --  unused
11126
11127      N_Delay_Relative_Statement =>
11128        (1 => False,   --  unused
11129         2 => False,   --  unused
11130         3 => True,    --  Expression (Node3)
11131         4 => False,   --  unused
11132         5 => False),  --  unused
11133
11134      N_Selective_Accept =>
11135        (1 => True,    --  Select_Alternatives (List1)
11136         2 => False,   --  unused
11137         3 => False,   --  unused
11138         4 => True,    --  Else_Statements (List4)
11139         5 => False),  --  unused
11140
11141      N_Accept_Alternative =>
11142        (1 => True,    --  Condition (Node1)
11143         2 => True,    --  Accept_Statement (Node2)
11144         3 => True,    --  Statements (List3)
11145         4 => True,    --  Pragmas_Before (List4)
11146         5 => False),  --  Accept_Handler_Records (List5-Sem)
11147
11148      N_Delay_Alternative =>
11149        (1 => True,    --  Condition (Node1)
11150         2 => True,    --  Delay_Statement (Node2)
11151         3 => True,    --  Statements (List3)
11152         4 => True,    --  Pragmas_Before (List4)
11153         5 => False),  --  unused
11154
11155      N_Terminate_Alternative =>
11156        (1 => True,    --  Condition (Node1)
11157         2 => False,   --  unused
11158         3 => False,   --  unused
11159         4 => True,    --  Pragmas_Before (List4)
11160         5 => True),   --  Pragmas_After (List5)
11161
11162      N_Timed_Entry_Call =>
11163        (1 => True,    --  Entry_Call_Alternative (Node1)
11164         2 => False,   --  unused
11165         3 => False,   --  unused
11166         4 => True,    --  Delay_Alternative (Node4)
11167         5 => False),  --  unused
11168
11169      N_Entry_Call_Alternative =>
11170        (1 => True,    --  Entry_Call_Statement (Node1)
11171         2 => False,   --  unused
11172         3 => True,    --  Statements (List3)
11173         4 => True,    --  Pragmas_Before (List4)
11174         5 => False),  --  unused
11175
11176      N_Conditional_Entry_Call =>
11177        (1 => True,    --  Entry_Call_Alternative (Node1)
11178         2 => False,   --  unused
11179         3 => False,   --  unused
11180         4 => True,    --  Else_Statements (List4)
11181         5 => False),  --  unused
11182
11183      N_Asynchronous_Select =>
11184        (1 => True,    --  Triggering_Alternative (Node1)
11185         2 => True,    --  Abortable_Part (Node2)
11186         3 => False,   --  unused
11187         4 => False,   --  unused
11188         5 => False),  --  unused
11189
11190      N_Triggering_Alternative =>
11191        (1 => True,    --  Triggering_Statement (Node1)
11192         2 => False,   --  unused
11193         3 => True,    --  Statements (List3)
11194         4 => True,    --  Pragmas_Before (List4)
11195         5 => False),  --  unused
11196
11197      N_Abortable_Part =>
11198        (1 => False,   --  unused
11199         2 => False,   --  unused
11200         3 => True,    --  Statements (List3)
11201         4 => False,   --  unused
11202         5 => False),  --  unused
11203
11204      N_Abort_Statement =>
11205        (1 => False,   --  unused
11206         2 => True,    --  Names (List2)
11207         3 => False,   --  unused
11208         4 => False,   --  unused
11209         5 => False),  --  unused
11210
11211      N_Compilation_Unit =>
11212        (1 => True,    --  Context_Items (List1)
11213         2 => True,    --  Unit (Node2)
11214         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
11215         4 => False,   --  Library_Unit (Node4-Sem)
11216         5 => True),   --  Aux_Decls_Node (Node5)
11217
11218      N_Compilation_Unit_Aux =>
11219        (1 => True,    --  Actions (List1)
11220         2 => True,    --  Declarations (List2)
11221         3 => False,   --  Default_Storage_Pool (Node3)
11222         4 => True,    --  Config_Pragmas (List4)
11223         5 => True),   --  Pragmas_After (List5)
11224
11225      N_With_Clause =>
11226        (1 => False,   --  unused
11227         2 => True,    --  Name (Node2)
11228         3 => False,   --  unused
11229         4 => False,   --  Library_Unit (Node4-Sem)
11230         5 => False),  --  Corresponding_Spec (Node5-Sem)
11231
11232      N_Subprogram_Body_Stub =>
11233        (1 => True,    --  Specification (Node1)
11234         2 => False,   --  unused
11235         3 => False,   --  unused
11236         4 => False,   --  Library_Unit (Node4-Sem)
11237         5 => False),  --  Corresponding_Body (Node5-Sem)
11238
11239      N_Package_Body_Stub =>
11240        (1 => True,    --  Defining_Identifier (Node1)
11241         2 => False,   --  unused
11242         3 => False,   --  unused
11243         4 => False,   --  Library_Unit (Node4-Sem)
11244         5 => False),  --  Corresponding_Body (Node5-Sem)
11245
11246      N_Task_Body_Stub =>
11247        (1 => True,    --  Defining_Identifier (Node1)
11248         2 => False,   --  unused
11249         3 => False,   --  unused
11250         4 => False,   --  Library_Unit (Node4-Sem)
11251         5 => False),  --  Corresponding_Body (Node5-Sem)
11252
11253      N_Protected_Body_Stub =>
11254        (1 => True,    --  Defining_Identifier (Node1)
11255         2 => False,   --  unused
11256         3 => False,   --  unused
11257         4 => False,   --  Library_Unit (Node4-Sem)
11258         5 => False),  --  Corresponding_Body (Node5-Sem)
11259
11260      N_Subunit =>
11261        (1 => True,    --  Proper_Body (Node1)
11262         2 => True,    --  Name (Node2)
11263         3 => False,   --  Corresponding_Stub (Node3-Sem)
11264         4 => False,   --  unused
11265         5 => False),  --  unused
11266
11267      N_Exception_Declaration =>
11268        (1 => True,    --  Defining_Identifier (Node1)
11269         2 => False,   --  unused
11270         3 => False,   --  Expression (Node3-Sem)
11271         4 => False,   --  unused
11272         5 => False),  --  unused
11273
11274      N_Handled_Sequence_Of_Statements =>
11275        (1 => True,    --  At_End_Proc (Node1)
11276         2 => False,   --  First_Real_Statement (Node2-Sem)
11277         3 => True,    --  Statements (List3)
11278         4 => True,    --  End_Label (Node4)
11279         5 => True),   --  Exception_Handlers (List5)
11280
11281      N_Exception_Handler =>
11282        (1 => False,   --  Local_Raise_Statements (Elist1)
11283         2 => True,    --  Choice_Parameter (Node2)
11284         3 => True,    --  Statements (List3)
11285         4 => True,    --  Exception_Choices (List4)
11286         5 => False),  --  Exception_Label (Node5)
11287
11288      N_Raise_Statement =>
11289        (1 => False,   --  unused
11290         2 => True,    --  Name (Node2)
11291         3 => True,    --  Expression (Node3)
11292         4 => False,   --  unused
11293         5 => False),  --  unused
11294
11295      N_Generic_Subprogram_Declaration =>
11296        (1 => True,    --  Specification (Node1)
11297         2 => True,    --  Generic_Formal_Declarations (List2)
11298         3 => False,   --  unused
11299         4 => False,   --  Parent_Spec (Node4-Sem)
11300         5 => False),  --  Corresponding_Body (Node5-Sem)
11301
11302      N_Generic_Package_Declaration =>
11303        (1 => True,    --  Specification (Node1)
11304         2 => True,    --  Generic_Formal_Declarations (List2)
11305         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11306         4 => False,   --  Parent_Spec (Node4-Sem)
11307         5 => False),  --  Corresponding_Body (Node5-Sem)
11308
11309      N_Package_Instantiation =>
11310        (1 => True,    --  Defining_Unit_Name (Node1)
11311         2 => True,    --  Name (Node2)
11312         3 => True,    --  Generic_Associations (List3)
11313         4 => False,   --  Parent_Spec (Node4-Sem)
11314         5 => False),  --  Instance_Spec (Node5-Sem)
11315
11316      N_Procedure_Instantiation =>
11317        (1 => True,    --  Defining_Unit_Name (Node1)
11318         2 => True,    --  Name (Node2)
11319         3 => True,    --  Generic_Associations (List3)
11320         4 => False,   --  Parent_Spec (Node4-Sem)
11321         5 => False),  --  Instance_Spec (Node5-Sem)
11322
11323      N_Function_Instantiation =>
11324        (1 => True,    --  Defining_Unit_Name (Node1)
11325         2 => True,    --  Name (Node2)
11326         3 => True,    --  Generic_Associations (List3)
11327         4 => False,   --  Parent_Spec (Node4-Sem)
11328         5 => False),  --  Instance_Spec (Node5-Sem)
11329
11330      N_Generic_Association =>
11331        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
11332         2 => True,    --  Selector_Name (Node2)
11333         3 => False,   --  unused
11334         4 => False,   --  unused
11335         5 => False),  --  unused
11336
11337      N_Formal_Object_Declaration =>
11338        (1 => True,    --  Defining_Identifier (Node1)
11339         2 => False,   --  unused
11340         3 => True,    --  Access_Definition (Node3)
11341         4 => True,    --  Subtype_Mark (Node4)
11342         5 => True),   --  Default_Expression (Node5)
11343
11344      N_Formal_Type_Declaration =>
11345        (1 => True,    --  Defining_Identifier (Node1)
11346         2 => False,   --  unused
11347         3 => True,    --  Formal_Type_Definition (Node3)
11348         4 => True,    --  Discriminant_Specifications (List4)
11349         5 => False),  --  unused
11350
11351      N_Formal_Private_Type_Definition =>
11352        (1 => False,   --  unused
11353         2 => False,   --  unused
11354         3 => False,   --  unused
11355         4 => False,   --  unused
11356         5 => False),  --  unused
11357
11358      N_Formal_Incomplete_Type_Definition =>
11359        (1 => False,   --  unused
11360         2 => False,   --  unused
11361         3 => False,   --  unused
11362         4 => False,   --  unused
11363         5 => False),  --  unused
11364
11365      N_Formal_Derived_Type_Definition =>
11366        (1 => False,   --  unused
11367         2 => True,    --  Interface_List (List2)
11368         3 => False,   --  unused
11369         4 => True,    --  Subtype_Mark (Node4)
11370         5 => False),  --  unused
11371
11372      N_Formal_Discrete_Type_Definition =>
11373        (1 => False,   --  unused
11374         2 => False,   --  unused
11375         3 => False,   --  unused
11376         4 => False,   --  unused
11377         5 => False),  --  unused
11378
11379      N_Formal_Signed_Integer_Type_Definition =>
11380        (1 => False,   --  unused
11381         2 => False,   --  unused
11382         3 => False,   --  unused
11383         4 => False,   --  unused
11384         5 => False),  --  unused
11385
11386      N_Formal_Modular_Type_Definition =>
11387        (1 => False,   --  unused
11388         2 => False,   --  unused
11389         3 => False,   --  unused
11390         4 => False,   --  unused
11391         5 => False),  --  unused
11392
11393      N_Formal_Floating_Point_Definition =>
11394        (1 => False,   --  unused
11395         2 => False,   --  unused
11396         3 => False,   --  unused
11397         4 => False,   --  unused
11398         5 => False),  --  unused
11399
11400      N_Formal_Ordinary_Fixed_Point_Definition =>
11401        (1 => False,   --  unused
11402         2 => False,   --  unused
11403         3 => False,   --  unused
11404         4 => False,   --  unused
11405         5 => False),  --  unused
11406
11407      N_Formal_Decimal_Fixed_Point_Definition =>
11408        (1 => False,   --  unused
11409         2 => False,   --  unused
11410         3 => False,   --  unused
11411         4 => False,   --  unused
11412         5 => False),  --  unused
11413
11414      N_Formal_Concrete_Subprogram_Declaration =>
11415        (1 => True,    --  Specification (Node1)
11416         2 => True,    --  Default_Name (Node2)
11417         3 => False,   --  unused
11418         4 => False,   --  unused
11419         5 => False),  --  unused
11420
11421      N_Formal_Abstract_Subprogram_Declaration =>
11422        (1 => True,    --  Specification (Node1)
11423         2 => True,    --  Default_Name (Node2)
11424         3 => False,   --  unused
11425         4 => False,   --  unused
11426         5 => False),  --  unused
11427
11428      N_Formal_Package_Declaration =>
11429        (1 => True,    --  Defining_Identifier (Node1)
11430         2 => True,    --  Name (Node2)
11431         3 => True,    --  Generic_Associations (List3)
11432         4 => False,   --  unused
11433         5 => False),  --  Instance_Spec (Node5-Sem)
11434
11435      N_Attribute_Definition_Clause =>
11436        (1 => True,    --  Chars (Name1)
11437         2 => True,    --  Name (Node2)
11438         3 => True,    --  Expression (Node3)
11439         4 => False,   --  unused
11440         5 => False),  --  Next_Rep_Item (Node5-Sem)
11441
11442      N_Aspect_Specification =>
11443        (1 => True,    --  Identifier (Node1)
11444         2 => False,   --  Aspect_Rep_Item (Node2-Sem)
11445         3 => True,    --  Expression (Node3)
11446         4 => False,   --  Entity (Node4-Sem)
11447         5 => False),  --  Next_Rep_Item (Node5-Sem)
11448
11449      N_Enumeration_Representation_Clause =>
11450        (1 => True,    --  Identifier (Node1)
11451         2 => False,   --  unused
11452         3 => True,    --  Array_Aggregate (Node3)
11453         4 => False,   --  unused
11454         5 => False),  --  Next_Rep_Item (Node5-Sem)
11455
11456      N_Record_Representation_Clause =>
11457        (1 => True,    --  Identifier (Node1)
11458         2 => True,    --  Mod_Clause (Node2)
11459         3 => True,    --  Component_Clauses (List3)
11460         4 => False,   --  unused
11461         5 => False),  --  Next_Rep_Item (Node5-Sem)
11462
11463      N_Component_Clause =>
11464        (1 => True,    --  Component_Name (Node1)
11465         2 => True,    --  Position (Node2)
11466         3 => True,    --  First_Bit (Node3)
11467         4 => True,    --  Last_Bit (Node4)
11468         5 => False),  --  unused
11469
11470      N_Code_Statement =>
11471        (1 => False,   --  unused
11472         2 => False,   --  unused
11473         3 => True,    --  Expression (Node3)
11474         4 => False,   --  unused
11475         5 => False),  --  unused
11476
11477      N_Op_Rotate_Left =>
11478        (1 => True,    --  Chars (Name1)
11479         2 => True,    --  Left_Opnd (Node2)
11480         3 => True,    --  Right_Opnd (Node3)
11481         4 => False,   --  Entity (Node4-Sem)
11482         5 => False),  --  Etype (Node5-Sem)
11483
11484      N_Op_Rotate_Right =>
11485        (1 => True,    --  Chars (Name1)
11486         2 => True,    --  Left_Opnd (Node2)
11487         3 => True,    --  Right_Opnd (Node3)
11488         4 => False,   --  Entity (Node4-Sem)
11489         5 => False),  --  Etype (Node5-Sem)
11490
11491      N_Op_Shift_Left =>
11492        (1 => True,    --  Chars (Name1)
11493         2 => True,    --  Left_Opnd (Node2)
11494         3 => True,    --  Right_Opnd (Node3)
11495         4 => False,   --  Entity (Node4-Sem)
11496         5 => False),  --  Etype (Node5-Sem)
11497
11498      N_Op_Shift_Right_Arithmetic =>
11499        (1 => True,    --  Chars (Name1)
11500         2 => True,    --  Left_Opnd (Node2)
11501         3 => True,    --  Right_Opnd (Node3)
11502         4 => False,   --  Entity (Node4-Sem)
11503         5 => False),  --  Etype (Node5-Sem)
11504
11505      N_Op_Shift_Right =>
11506        (1 => True,    --  Chars (Name1)
11507         2 => True,    --  Left_Opnd (Node2)
11508         3 => True,    --  Right_Opnd (Node3)
11509         4 => False,   --  Entity (Node4-Sem)
11510         5 => False),  --  Etype (Node5-Sem)
11511
11512      N_Delta_Constraint =>
11513        (1 => False,   --  unused
11514         2 => False,   --  unused
11515         3 => True,    --  Delta_Expression (Node3)
11516         4 => True,    --  Range_Constraint (Node4)
11517         5 => False),  --  unused
11518
11519      N_At_Clause =>
11520        (1 => True,    --  Identifier (Node1)
11521         2 => False,   --  unused
11522         3 => True,    --  Expression (Node3)
11523         4 => False,   --  unused
11524         5 => False),  --  unused
11525
11526      N_Mod_Clause =>
11527        (1 => False,   --  unused
11528         2 => False,   --  unused
11529         3 => True,    --  Expression (Node3)
11530         4 => True,    --  Pragmas_Before (List4)
11531         5 => False),  --  unused
11532
11533      N_Conditional_Expression =>
11534        (1 => True,    --  Expressions (List1)
11535         2 => False,   --  Then_Actions (List2-Sem)
11536         3 => False,   --  Else_Actions (List3-Sem)
11537         4 => False,   --  unused
11538         5 => False),  --  Etype (Node5-Sem)
11539
11540      N_Contract =>
11541        (1 => False,   --  Spec_PPC_List (Node1)
11542         2 => False,   --  Spec_TC_List (Node2)
11543         3 => False,   --  unused
11544         4 => False,   --  unused
11545         5 => False),  --  unused
11546
11547      N_Expanded_Name =>
11548        (1 => True,    --  Chars (Name1)
11549         2 => True,    --  Selector_Name (Node2)
11550         3 => True,    --  Prefix (Node3)
11551         4 => False,   --  Entity (Node4-Sem)
11552         5 => False),  --  Etype (Node5-Sem)
11553
11554      N_Expression_With_Actions =>
11555        (1 => True,    --  Actions (List1)
11556         2 => False,   --  unused
11557         3 => True,    --  Expression (Node3)
11558         4 => False,   --  unused
11559         5 => False),  --  unused
11560
11561      N_Free_Statement =>
11562        (1 => False,   --  Storage_Pool (Node1-Sem)
11563         2 => False,   --  Procedure_To_Call (Node2-Sem)
11564         3 => True,    --  Expression (Node3)
11565         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
11566         5 => False),  --  unused
11567
11568      N_Freeze_Entity =>
11569        (1 => True,    --  Actions (List1)
11570         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
11571         3 => False,   --  TSS_Elist (Elist3-Sem)
11572         4 => False,   --  Entity (Node4-Sem)
11573         5 => False),  --  First_Subtype_Link (Node5-Sem)
11574
11575      N_Implicit_Label_Declaration =>
11576        (1 => True,    --  Defining_Identifier (Node1)
11577         2 => False,   --  Label_Construct (Node2-Sem)
11578         3 => False,   --  unused
11579         4 => False,   --  unused
11580         5 => False),  --  unused
11581
11582      N_Itype_Reference =>
11583        (1 => False,   --  Itype (Node1-Sem)
11584         2 => False,   --  unused
11585         3 => False,   --  unused
11586         4 => False,   --  unused
11587         5 => False),  --  unused
11588
11589      N_Raise_Constraint_Error =>
11590        (1 => True,    --  Condition (Node1)
11591         2 => False,   --  unused
11592         3 => True,    --  Reason (Uint3)
11593         4 => False,   --  unused
11594         5 => False),  --  Etype (Node5-Sem)
11595
11596      N_Raise_Program_Error =>
11597        (1 => True,    --  Condition (Node1)
11598         2 => False,   --  unused
11599         3 => True,    --  Reason (Uint3)
11600         4 => False,   --  unused
11601         5 => False),  --  Etype (Node5-Sem)
11602
11603      N_Raise_Storage_Error =>
11604        (1 => True,    --  Condition (Node1)
11605         2 => False,   --  unused
11606         3 => True,    --  Reason (Uint3)
11607         4 => False,   --  unused
11608         5 => False),  --  Etype (Node5-Sem)
11609
11610      N_Push_Constraint_Error_Label =>
11611        (1 => False,   --  unused
11612         2 => False,   --  unused
11613         3 => False,   --  unused
11614         4 => False,   --  unused
11615         5 => False),  --  unused
11616
11617      N_Push_Program_Error_Label =>
11618        (1 => False,   --  Exception_Label
11619         2 => False,   --  unused
11620         3 => False,   --  unused
11621         4 => False,   --  unused
11622         5 => False),  --  Exception_Label
11623
11624      N_Push_Storage_Error_Label =>
11625        (1 => False,   --  Exception_Label
11626         2 => False,   --  unused
11627         3 => False,   --  unused
11628         4 => False,   --  unused
11629         5 => False),  --  Exception_Label
11630
11631      N_Pop_Constraint_Error_Label =>
11632        (1 => False,   --  unused
11633         2 => False,   --  unused
11634         3 => False,   --  unused
11635         4 => False,   --  unused
11636         5 => False),  --  unused
11637
11638      N_Pop_Program_Error_Label =>
11639        (1 => False,   --  unused
11640         2 => False,   --  unused
11641         3 => False,   --  unused
11642         4 => False,   --  unused
11643         5 => False),  --  unused
11644
11645      N_Pop_Storage_Error_Label =>
11646        (1 => False,   --  unused
11647         2 => False,   --  unused
11648         3 => False,   --  unused
11649         4 => False,   --  unused
11650         5 => False),  --  unused
11651
11652      N_Reference =>
11653        (1 => False,   --  unused
11654         2 => False,   --  unused
11655         3 => True,    --  Prefix (Node3)
11656         4 => False,   --  unused
11657         5 => False),  --  Etype (Node5-Sem)
11658
11659      N_Subprogram_Info =>
11660        (1 => True,    --  Identifier (Node1)
11661         2 => False,   --  unused
11662         3 => False,   --  unused
11663         4 => False,   --  unused
11664         5 => False),  --  Etype (Node5-Sem)
11665
11666      N_Unchecked_Expression =>
11667        (1 => False,   --  unused
11668         2 => False,   --  unused
11669         3 => True,    --  Expression (Node3)
11670         4 => False,   --  unused
11671         5 => False),  --  Etype (Node5-Sem)
11672
11673      N_Unchecked_Type_Conversion =>
11674        (1 => False,   --  unused
11675         2 => False,   --  unused
11676         3 => True,    --  Expression (Node3)
11677         4 => True,    --  Subtype_Mark (Node4)
11678         5 => False),  --  Etype (Node5-Sem)
11679
11680      N_Validate_Unchecked_Conversion =>
11681        (1 => False,   --  Source_Type (Node1-Sem)
11682         2 => False,   --  Target_Type (Node2-Sem)
11683         3 => False,   --  unused
11684         4 => False,   --  unused
11685         5 => False),  --  unused
11686
11687    --  Entries for SCIL nodes
11688
11689      N_SCIL_Dispatch_Table_Tag_Init =>
11690        (1 => False,   --  unused
11691         2 => False,   --  unused
11692         3 => False,   --  unused
11693         4 => False,   --  SCIL_Entity (Node4-Sem)
11694         5 => False),  --  unused
11695
11696      N_SCIL_Dispatching_Call =>
11697        (1 => False,   --  unused
11698         2 => False,   --  SCIL_Target_Prim (Node2-Sem)
11699         3 => False,   --  unused
11700         4 => False,   --  SCIL_Entity (Node4-Sem)
11701         5 => False),  --  SCIL_Controlling_Tag (Node5-Sem)
11702
11703      N_SCIL_Membership_Test =>
11704        (1 => False,   --  unused
11705         2 => False,   --  unused
11706         3 => False,   --  unused
11707         4 => False,   --  SCIL_Entity (Node4-Sem)
11708         5 => False),  --  SCIL_Tag_Value (Node5-Sem)
11709
11710    --  Entries for Empty, Error and Unused. Even thought these have a Chars
11711    --  field for debugging purposes, they are not really syntactic fields, so
11712    --  we mark all fields as unused.
11713
11714      N_Empty =>
11715        (1 => False,   --  unused
11716         2 => False,   --  unused
11717         3 => False,   --  unused
11718         4 => False,   --  unused
11719         5 => False),  --  unused
11720
11721      N_Error =>
11722        (1 => False,   --  unused
11723         2 => False,   --  unused
11724         3 => False,   --  unused
11725         4 => False,   --  unused
11726         5 => False),  --  unused
11727
11728      N_Unused_At_Start =>
11729        (1 => False,   --  unused
11730         2 => False,   --  unused
11731         3 => False,   --  unused
11732         4 => False,   --  unused
11733         5 => False),  --  unused
11734
11735      N_Unused_At_End =>
11736        (1 => False,   --  unused
11737         2 => False,   --  unused
11738         3 => False,   --  unused
11739         4 => False,   --  unused
11740         5 => False)); --  unused
11741
11742    --------------------
11743    -- Inline Pragmas --
11744    --------------------
11745
11746    pragma Inline (ABE_Is_Certain);
11747    pragma Inline (Abort_Present);
11748    pragma Inline (Abortable_Part);
11749    pragma Inline (Abstract_Present);
11750    pragma Inline (Accept_Handler_Records);
11751    pragma Inline (Accept_Statement);
11752    pragma Inline (Access_Definition);
11753    pragma Inline (Access_To_Subprogram_Definition);
11754    pragma Inline (Access_Types_To_Process);
11755    pragma Inline (Actions);
11756    pragma Inline (Activation_Chain_Entity);
11757    pragma Inline (Acts_As_Spec);
11758    pragma Inline (Actual_Designated_Subtype);
11759    pragma Inline (Address_Warning_Posted);
11760    pragma Inline (Aggregate_Bounds);
11761    pragma Inline (Aliased_Present);
11762    pragma Inline (All_Others);
11763    pragma Inline (All_Present);
11764    pragma Inline (Alternatives);
11765    pragma Inline (Ancestor_Part);
11766    pragma Inline (Array_Aggregate);
11767    pragma Inline (Aspect_Rep_Item);
11768    pragma Inline (Assignment_OK);
11769    pragma Inline (Associated_Node);
11770    pragma Inline (At_End_Proc);
11771    pragma Inline (Attribute_Name);
11772    pragma Inline (Aux_Decls_Node);
11773    pragma Inline (Backwards_OK);
11774    pragma Inline (Bad_Is_Detected);
11775    pragma Inline (Body_To_Inline);
11776    pragma Inline (Body_Required);
11777    pragma Inline (By_Ref);
11778    pragma Inline (Box_Present);
11779    pragma Inline (Char_Literal_Value);
11780    pragma Inline (Chars);
11781    pragma Inline (Check_Address_Alignment);
11782    pragma Inline (Choice_Parameter);
11783    pragma Inline (Choices);
11784    pragma Inline (Class_Present);
11785    pragma Inline (Comes_From_Extended_Return_Statement);
11786    pragma Inline (Compile_Time_Known_Aggregate);
11787    pragma Inline (Component_Associations);
11788    pragma Inline (Component_Clauses);
11789    pragma Inline (Component_Definition);
11790    pragma Inline (Component_Items);
11791    pragma Inline (Component_List);
11792    pragma Inline (Component_Name);
11793    pragma Inline (Componentwise_Assignment);
11794    pragma Inline (Condition);
11795    pragma Inline (Condition_Actions);
11796    pragma Inline (Config_Pragmas);
11797    pragma Inline (Constant_Present);
11798    pragma Inline (Constraint);
11799    pragma Inline (Constraints);
11800    pragma Inline (Context_Installed);
11801    pragma Inline (Context_Items);
11802    pragma Inline (Context_Pending);
11803    pragma Inline (Controlling_Argument);
11804    pragma Inline (Conversion_OK);
11805    pragma Inline (Corresponding_Aspect);
11806    pragma Inline (Corresponding_Body);
11807    pragma Inline (Corresponding_Formal_Spec);
11808    pragma Inline (Corresponding_Generic_Association);
11809    pragma Inline (Corresponding_Integer_Value);
11810    pragma Inline (Corresponding_Spec);
11811    pragma Inline (Corresponding_Stub);
11812    pragma Inline (Dcheck_Function);
11813    pragma Inline (Declarations);
11814    pragma Inline (Default_Expression);
11815    pragma Inline (Default_Storage_Pool);
11816    pragma Inline (Default_Name);
11817    pragma Inline (Defining_Identifier);
11818    pragma Inline (Defining_Unit_Name);
11819    pragma Inline (Delay_Alternative);
11820    pragma Inline (Delay_Statement);
11821    pragma Inline (Delta_Expression);
11822    pragma Inline (Digits_Expression);
11823    pragma Inline (Discr_Check_Funcs_Built);
11824    pragma Inline (Discrete_Choices);
11825    pragma Inline (Discrete_Range);
11826    pragma Inline (Discrete_Subtype_Definition);
11827    pragma Inline (Discrete_Subtype_Definitions);
11828    pragma Inline (Discriminant_Specifications);
11829    pragma Inline (Discriminant_Type);
11830    pragma Inline (Do_Accessibility_Check);
11831    pragma Inline (Do_Discriminant_Check);
11832    pragma Inline (Do_Length_Check);
11833    pragma Inline (Do_Division_Check);
11834    pragma Inline (Do_Overflow_Check);
11835    pragma Inline (Do_Range_Check);
11836    pragma Inline (Do_Storage_Check);
11837    pragma Inline (Do_Tag_Check);
11838    pragma Inline (Elaborate_Present);
11839    pragma Inline (Elaborate_All_Desirable);
11840    pragma Inline (Elaborate_All_Present);
11841    pragma Inline (Elaborate_Desirable);
11842    pragma Inline (Elaboration_Boolean);
11843    pragma Inline (Else_Actions);
11844    pragma Inline (Else_Statements);
11845    pragma Inline (Elsif_Parts);
11846    pragma Inline (Enclosing_Variant);
11847    pragma Inline (End_Label);
11848    pragma Inline (End_Span);
11849    pragma Inline (Entity);
11850    pragma Inline (Entity_Or_Associated_Node);
11851    pragma Inline (Entry_Body_Formal_Part);
11852    pragma Inline (Entry_Call_Alternative);
11853    pragma Inline (Entry_Call_Statement);
11854    pragma Inline (Entry_Direct_Name);
11855    pragma Inline (Entry_Index);
11856    pragma Inline (Entry_Index_Specification);
11857    pragma Inline (Etype);
11858    pragma Inline (Exception_Choices);
11859    pragma Inline (Exception_Handlers);
11860    pragma Inline (Exception_Junk);
11861    pragma Inline (Exception_Label);
11862    pragma Inline (Expansion_Delayed);
11863    pragma Inline (Explicit_Actual_Parameter);
11864    pragma Inline (Explicit_Generic_Actual_Parameter);
11865    pragma Inline (Expression);
11866    pragma Inline (Expressions);
11867    pragma Inline (First_Bit);
11868    pragma Inline (First_Inlined_Subprogram);
11869    pragma Inline (First_Name);
11870    pragma Inline (First_Named_Actual);
11871    pragma Inline (First_Real_Statement);
11872    pragma Inline (First_Subtype_Link);
11873    pragma Inline (Float_Truncate);
11874    pragma Inline (Formal_Type_Definition);
11875    pragma Inline (Forwards_OK);
11876    pragma Inline (From_Aspect_Specification);
11877    pragma Inline (From_At_End);
11878    pragma Inline (From_At_Mod);
11879    pragma Inline (From_Default);
11880    pragma Inline (Generic_Associations);
11881    pragma Inline (Generic_Formal_Declarations);
11882    pragma Inline (Generic_Parent);
11883    pragma Inline (Generic_Parent_Type);
11884    pragma Inline (Handled_Statement_Sequence);
11885    pragma Inline (Handler_List_Entry);
11886    pragma Inline (Has_Created_Identifier);
11887    pragma Inline (Has_Dynamic_Length_Check);
11888    pragma Inline (Has_Dynamic_Range_Check);
11889    pragma Inline (Has_Init_Expression);
11890    pragma Inline (Has_Local_Raise);
11891    pragma Inline (Has_Self_Reference);
11892    pragma Inline (Has_No_Elaboration_Code);
11893    pragma Inline (Has_Pragma_CPU);
11894    pragma Inline (Has_Pragma_Dispatching_Domain);
11895    pragma Inline (Has_Pragma_Priority);
11896    pragma Inline (Has_Pragma_Suppress_All);
11897    pragma Inline (Has_Private_View);
11898    pragma Inline (Has_Relative_Deadline_Pragma);
11899    pragma Inline (Has_Storage_Size_Pragma);
11900    pragma Inline (Has_Task_Info_Pragma);
11901    pragma Inline (Has_Task_Name_Pragma);
11902    pragma Inline (Has_Wide_Character);
11903    pragma Inline (Has_Wide_Wide_Character);
11904    pragma Inline (Hidden_By_Use_Clause);
11905    pragma Inline (High_Bound);
11906    pragma Inline (Identifier);
11907    pragma Inline (Implicit_With);
11908    pragma Inline (Interface_List);
11909    pragma Inline (Interface_Present);
11910    pragma Inline (Includes_Infinities);
11911    pragma Inline (Import_Interface_Present);
11912    pragma Inline (In_Present);
11913    pragma Inline (Inherited_Discriminant);
11914    pragma Inline (Instance_Spec);
11915    pragma Inline (Intval);
11916    pragma Inline (Iterator_Specification);
11917    pragma Inline (Is_Accessibility_Actual);
11918    pragma Inline (Is_Asynchronous_Call_Block);
11919    pragma Inline (Is_Boolean_Aspect);
11920    pragma Inline (Is_Component_Left_Opnd);
11921    pragma Inline (Is_Component_Right_Opnd);
11922    pragma Inline (Is_Controlling_Actual);
11923    pragma Inline (Is_Delayed_Aspect);
11924    pragma Inline (Is_Dynamic_Coextension);
11925    pragma Inline (Is_Elsif);
11926    pragma Inline (Is_Entry_Barrier_Function);
11927    pragma Inline (Is_Expanded_Build_In_Place_Call);
11928    pragma Inline (Is_Folded_In_Parser);
11929    pragma Inline (Is_In_Discriminant_Check);
11930    pragma Inline (Is_Machine_Number);
11931    pragma Inline (Is_Null_Loop);
11932    pragma Inline (Is_Overloaded);
11933    pragma Inline (Is_Power_Of_2_For_Shift);
11934    pragma Inline (Is_Protected_Subprogram_Body);
11935    pragma Inline (Is_Static_Coextension);
11936    pragma Inline (Is_Static_Expression);
11937    pragma Inline (Is_Subprogram_Descriptor);
11938    pragma Inline (Is_Task_Allocation_Block);
11939    pragma Inline (Is_Task_Master);
11940    pragma Inline (Iteration_Scheme);
11941    pragma Inline (Itype);
11942    pragma Inline (Kill_Range_Check);
11943    pragma Inline (Last_Bit);
11944    pragma Inline (Last_Name);
11945    pragma Inline (Library_Unit);
11946    pragma Inline (Label_Construct);
11947    pragma Inline (Left_Opnd);
11948    pragma Inline (Limited_View_Installed);
11949    pragma Inline (Limited_Present);
11950    pragma Inline (Literals);
11951    pragma Inline (Local_Raise_Not_OK);
11952    pragma Inline (Local_Raise_Statements);
11953    pragma Inline (Loop_Actions);
11954    pragma Inline (Loop_Parameter_Specification);
11955    pragma Inline (Low_Bound);
11956    pragma Inline (Mod_Clause);
11957    pragma Inline (More_Ids);
11958    pragma Inline (Must_Be_Byte_Aligned);
11959    pragma Inline (Must_Not_Freeze);
11960    pragma Inline (Must_Not_Override);
11961    pragma Inline (Must_Override);
11962    pragma Inline (Name);
11963    pragma Inline (Names);
11964    pragma Inline (Next_Entity);
11965    pragma Inline (Next_Exit_Statement);
11966    pragma Inline (Next_Implicit_With);
11967    pragma Inline (Next_Named_Actual);
11968    pragma Inline (Next_Pragma);
11969    pragma Inline (Next_Rep_Item);
11970    pragma Inline (Next_Use_Clause);
11971    pragma Inline (No_Ctrl_Actions);
11972    pragma Inline (No_Elaboration_Check);
11973    pragma Inline (No_Entities_Ref_In_Spec);
11974    pragma Inline (No_Initialization);
11975    pragma Inline (No_Truncation);
11976    pragma Inline (Null_Present);
11977    pragma Inline (Null_Exclusion_Present);
11978    pragma Inline (Null_Exclusion_In_Return_Present);
11979    pragma Inline (Null_Record_Present);
11980    pragma Inline (Object_Definition);
11981    pragma Inline (Of_Present);
11982    pragma Inline (Original_Discriminant);
11983    pragma Inline (Original_Entity);
11984    pragma Inline (Others_Discrete_Choices);
11985    pragma Inline (Out_Present);
11986    pragma Inline (Parameter_Associations);
11987    pragma Inline (Parameter_Specifications);
11988    pragma Inline (Parameter_List_Truncated);
11989    pragma Inline (Parameter_Type);
11990    pragma Inline (Parent_Spec);
11991    pragma Inline (Position);
11992    pragma Inline (Pragma_Argument_Associations);
11993    pragma Inline (Pragma_Identifier);
11994    pragma Inline (Pragmas_After);
11995    pragma Inline (Pragmas_Before);
11996    pragma Inline (Prefix);
11997    pragma Inline (Premature_Use);
11998    pragma Inline (Present_Expr);
11999    pragma Inline (Prev_Ids);
12000    pragma Inline (Print_In_Hex);
12001    pragma Inline (Private_Declarations);
12002    pragma Inline (Private_Present);
12003    pragma Inline (Procedure_To_Call);
12004    pragma Inline (Proper_Body);
12005    pragma Inline (Protected_Definition);
12006    pragma Inline (Protected_Present);
12007    pragma Inline (Raises_Constraint_Error);
12008    pragma Inline (Range_Constraint);
12009    pragma Inline (Range_Expression);
12010    pragma Inline (Real_Range_Specification);
12011    pragma Inline (Realval);
12012    pragma Inline (Reason);
12013    pragma Inline (Record_Extension_Part);
12014    pragma Inline (Redundant_Use);
12015    pragma Inline (Renaming_Exception);
12016    pragma Inline (Result_Definition);
12017    pragma Inline (Return_Object_Declarations);
12018    pragma Inline (Return_Statement_Entity);
12019    pragma Inline (Reverse_Present);
12020    pragma Inline (Right_Opnd);
12021    pragma Inline (Rounded_Result);
12022    pragma Inline (SCIL_Controlling_Tag);
12023    pragma Inline (SCIL_Entity);
12024    pragma Inline (SCIL_Tag_Value);
12025    pragma Inline (SCIL_Target_Prim);
12026    pragma Inline (Scope);
12027    pragma Inline (Select_Alternatives);
12028    pragma Inline (Selector_Name);
12029    pragma Inline (Selector_Names);
12030    pragma Inline (Shift_Count_OK);
12031    pragma Inline (Source_Type);
12032    pragma Inline (Spec_PPC_List);
12033    pragma Inline (Spec_TC_List);
12034    pragma Inline (Specification);
12035    pragma Inline (Split_PPC);
12036    pragma Inline (Statements);
12037    pragma Inline (Static_Processing_OK);
12038    pragma Inline (Storage_Pool);
12039    pragma Inline (Subpool_Handle_Name);
12040    pragma Inline (Strval);
12041    pragma Inline (Subtype_Indication);
12042    pragma Inline (Subtype_Mark);
12043    pragma Inline (Subtype_Marks);
12044    pragma Inline (Suppress_Assignment_Checks);
12045    pragma Inline (Suppress_Loop_Warnings);
12046    pragma Inline (Synchronized_Present);
12047    pragma Inline (Tagged_Present);
12048    pragma Inline (Target_Type);
12049    pragma Inline (Task_Definition);
12050    pragma Inline (Task_Present);
12051    pragma Inline (Then_Actions);
12052    pragma Inline (Then_Statements);
12053    pragma Inline (Triggering_Alternative);
12054    pragma Inline (Triggering_Statement);
12055    pragma Inline (Treat_Fixed_As_Integer);
12056    pragma Inline (TSS_Elist);
12057    pragma Inline (Type_Definition);
12058    pragma Inline (Unit);
12059    pragma Inline (Unknown_Discriminants_Present);
12060    pragma Inline (Unreferenced_In_Spec);
12061    pragma Inline (Variant_Part);
12062    pragma Inline (Variants);
12063    pragma Inline (Visible_Declarations);
12064    pragma Inline (Used_Operations);
12065    pragma Inline (Was_Originally_Stub);
12066    pragma Inline (Withed_Body);
12067
12068    pragma Inline (Set_ABE_Is_Certain);
12069    pragma Inline (Set_Abort_Present);
12070    pragma Inline (Set_Abortable_Part);
12071    pragma Inline (Set_Abstract_Present);
12072    pragma Inline (Set_Accept_Handler_Records);
12073    pragma Inline (Set_Accept_Statement);
12074    pragma Inline (Set_Access_Definition);
12075    pragma Inline (Set_Access_To_Subprogram_Definition);
12076    pragma Inline (Set_Access_Types_To_Process);
12077    pragma Inline (Set_Actions);
12078    pragma Inline (Set_Activation_Chain_Entity);
12079    pragma Inline (Set_Acts_As_Spec);
12080    pragma Inline (Set_Actual_Designated_Subtype);
12081    pragma Inline (Set_Address_Warning_Posted);
12082    pragma Inline (Set_Aggregate_Bounds);
12083    pragma Inline (Set_Aliased_Present);
12084    pragma Inline (Set_All_Others);
12085    pragma Inline (Set_All_Present);
12086    pragma Inline (Set_Alternatives);
12087    pragma Inline (Set_Ancestor_Part);
12088    pragma Inline (Set_Array_Aggregate);
12089    pragma Inline (Set_Aspect_Rep_Item);
12090    pragma Inline (Set_Assignment_OK);
12091    pragma Inline (Set_Associated_Node);
12092    pragma Inline (Set_At_End_Proc);
12093    pragma Inline (Set_Attribute_Name);
12094    pragma Inline (Set_Aux_Decls_Node);
12095    pragma Inline (Set_Backwards_OK);
12096    pragma Inline (Set_Bad_Is_Detected);
12097    pragma Inline (Set_Body_To_Inline);
12098    pragma Inline (Set_Body_Required);
12099    pragma Inline (Set_By_Ref);
12100    pragma Inline (Set_Box_Present);
12101    pragma Inline (Set_Char_Literal_Value);
12102    pragma Inline (Set_Chars);
12103    pragma Inline (Set_Check_Address_Alignment);
12104    pragma Inline (Set_Choice_Parameter);
12105    pragma Inline (Set_Choices);
12106    pragma Inline (Set_Class_Present);
12107    pragma Inline (Set_Comes_From_Extended_Return_Statement);
12108    pragma Inline (Set_Compile_Time_Known_Aggregate);
12109    pragma Inline (Set_Component_Associations);
12110    pragma Inline (Set_Component_Clauses);
12111    pragma Inline (Set_Component_Definition);
12112    pragma Inline (Set_Component_Items);
12113    pragma Inline (Set_Component_List);
12114    pragma Inline (Set_Component_Name);
12115    pragma Inline (Set_Componentwise_Assignment);
12116    pragma Inline (Set_Condition);
12117    pragma Inline (Set_Condition_Actions);
12118    pragma Inline (Set_Config_Pragmas);
12119    pragma Inline (Set_Constant_Present);
12120    pragma Inline (Set_Constraint);
12121    pragma Inline (Set_Constraints);
12122    pragma Inline (Set_Context_Installed);
12123    pragma Inline (Set_Context_Items);
12124    pragma Inline (Set_Context_Pending);
12125    pragma Inline (Set_Controlling_Argument);
12126    pragma Inline (Set_Conversion_OK);
12127    pragma Inline (Set_Corresponding_Aspect);
12128    pragma Inline (Set_Corresponding_Body);
12129    pragma Inline (Set_Corresponding_Formal_Spec);
12130    pragma Inline (Set_Corresponding_Generic_Association);
12131    pragma Inline (Set_Corresponding_Integer_Value);
12132    pragma Inline (Set_Corresponding_Spec);
12133    pragma Inline (Set_Corresponding_Stub);
12134    pragma Inline (Set_Dcheck_Function);
12135    pragma Inline (Set_Declarations);
12136    pragma Inline (Set_Default_Expression);
12137    pragma Inline (Set_Default_Storage_Pool);
12138    pragma Inline (Set_Default_Name);
12139    pragma Inline (Set_Defining_Identifier);
12140    pragma Inline (Set_Defining_Unit_Name);
12141    pragma Inline (Set_Delay_Alternative);
12142    pragma Inline (Set_Delay_Statement);
12143    pragma Inline (Set_Delta_Expression);
12144    pragma Inline (Set_Digits_Expression);
12145    pragma Inline (Set_Discr_Check_Funcs_Built);
12146    pragma Inline (Set_Discrete_Choices);
12147    pragma Inline (Set_Discrete_Range);
12148    pragma Inline (Set_Discrete_Subtype_Definition);
12149    pragma Inline (Set_Discrete_Subtype_Definitions);
12150    pragma Inline (Set_Discriminant_Specifications);
12151    pragma Inline (Set_Discriminant_Type);
12152    pragma Inline (Set_Do_Accessibility_Check);
12153    pragma Inline (Set_Do_Discriminant_Check);
12154    pragma Inline (Set_Do_Length_Check);
12155    pragma Inline (Set_Do_Division_Check);
12156    pragma Inline (Set_Do_Overflow_Check);
12157    pragma Inline (Set_Do_Range_Check);
12158    pragma Inline (Set_Do_Storage_Check);
12159    pragma Inline (Set_Do_Tag_Check);
12160    pragma Inline (Set_Elaborate_Present);
12161    pragma Inline (Set_Elaborate_All_Desirable);
12162    pragma Inline (Set_Elaborate_All_Present);
12163    pragma Inline (Set_Elaborate_Desirable);
12164    pragma Inline (Set_Elaboration_Boolean);
12165    pragma Inline (Set_Else_Actions);
12166    pragma Inline (Set_Else_Statements);
12167    pragma Inline (Set_Elsif_Parts);
12168    pragma Inline (Set_Enclosing_Variant);
12169    pragma Inline (Set_End_Label);
12170    pragma Inline (Set_End_Span);
12171    pragma Inline (Set_Entity);
12172    pragma Inline (Set_Entry_Body_Formal_Part);
12173    pragma Inline (Set_Entry_Call_Alternative);
12174    pragma Inline (Set_Entry_Call_Statement);
12175    pragma Inline (Set_Entry_Direct_Name);
12176    pragma Inline (Set_Entry_Index);
12177    pragma Inline (Set_Entry_Index_Specification);
12178    pragma Inline (Set_Etype);
12179    pragma Inline (Set_Exception_Choices);
12180    pragma Inline (Set_Exception_Handlers);
12181    pragma Inline (Set_Exception_Junk);
12182    pragma Inline (Set_Exception_Label);
12183    pragma Inline (Set_Expansion_Delayed);
12184    pragma Inline (Set_Explicit_Actual_Parameter);
12185    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12186    pragma Inline (Set_Expression);
12187    pragma Inline (Set_Expressions);
12188    pragma Inline (Set_First_Bit);
12189    pragma Inline (Set_First_Inlined_Subprogram);
12190    pragma Inline (Set_First_Name);
12191    pragma Inline (Set_First_Named_Actual);
12192    pragma Inline (Set_First_Real_Statement);
12193    pragma Inline (Set_First_Subtype_Link);
12194    pragma Inline (Set_Float_Truncate);
12195    pragma Inline (Set_Formal_Type_Definition);
12196    pragma Inline (Set_Forwards_OK);
12197    pragma Inline (Set_From_Aspect_Specification);
12198    pragma Inline (Set_From_At_End);
12199    pragma Inline (Set_From_At_Mod);
12200    pragma Inline (Set_From_Default);
12201    pragma Inline (Set_Generic_Associations);
12202    pragma Inline (Set_Generic_Formal_Declarations);
12203    pragma Inline (Set_Generic_Parent);
12204    pragma Inline (Set_Generic_Parent_Type);
12205    pragma Inline (Set_Handled_Statement_Sequence);
12206    pragma Inline (Set_Handler_List_Entry);
12207    pragma Inline (Set_Has_Created_Identifier);
12208    pragma Inline (Set_Has_Dynamic_Length_Check);
12209    pragma Inline (Set_Has_Init_Expression);
12210    pragma Inline (Set_Has_Local_Raise);
12211    pragma Inline (Set_Has_Dynamic_Range_Check);
12212    pragma Inline (Set_Has_No_Elaboration_Code);
12213    pragma Inline (Set_Has_Pragma_CPU);
12214    pragma Inline (Set_Has_Pragma_Dispatching_Domain);
12215    pragma Inline (Set_Has_Pragma_Priority);
12216    pragma Inline (Set_Has_Pragma_Suppress_All);
12217    pragma Inline (Set_Has_Private_View);
12218    pragma Inline (Set_Has_Relative_Deadline_Pragma);
12219    pragma Inline (Set_Has_Storage_Size_Pragma);
12220    pragma Inline (Set_Has_Task_Info_Pragma);
12221    pragma Inline (Set_Has_Task_Name_Pragma);
12222    pragma Inline (Set_Has_Wide_Character);
12223    pragma Inline (Set_Has_Wide_Wide_Character);
12224    pragma Inline (Set_Hidden_By_Use_Clause);
12225    pragma Inline (Set_High_Bound);
12226    pragma Inline (Set_Identifier);
12227    pragma Inline (Set_Implicit_With);
12228    pragma Inline (Set_Includes_Infinities);
12229    pragma Inline (Set_Interface_List);
12230    pragma Inline (Set_Interface_Present);
12231    pragma Inline (Set_Import_Interface_Present);
12232    pragma Inline (Set_In_Present);
12233    pragma Inline (Set_Inherited_Discriminant);
12234    pragma Inline (Set_Instance_Spec);
12235    pragma Inline (Set_Intval);
12236    pragma Inline (Set_Iterator_Specification);
12237    pragma Inline (Set_Is_Accessibility_Actual);
12238    pragma Inline (Set_Is_Asynchronous_Call_Block);
12239    pragma Inline (Set_Is_Boolean_Aspect);
12240    pragma Inline (Set_Is_Component_Left_Opnd);
12241    pragma Inline (Set_Is_Component_Right_Opnd);
12242    pragma Inline (Set_Is_Controlling_Actual);
12243    pragma Inline (Set_Is_Delayed_Aspect);
12244    pragma Inline (Set_Is_Dynamic_Coextension);
12245    pragma Inline (Set_Is_Elsif);
12246    pragma Inline (Set_Is_Entry_Barrier_Function);
12247    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12248    pragma Inline (Set_Is_Folded_In_Parser);
12249    pragma Inline (Set_Is_In_Discriminant_Check);
12250    pragma Inline (Set_Is_Machine_Number);
12251    pragma Inline (Set_Is_Null_Loop);
12252    pragma Inline (Set_Is_Overloaded);
12253    pragma Inline (Set_Is_Power_Of_2_For_Shift);
12254    pragma Inline (Set_Is_Protected_Subprogram_Body);
12255    pragma Inline (Set_Has_Self_Reference);
12256    pragma Inline (Set_Is_Static_Coextension);
12257    pragma Inline (Set_Is_Static_Expression);
12258    pragma Inline (Set_Is_Subprogram_Descriptor);
12259    pragma Inline (Set_Is_Task_Allocation_Block);
12260    pragma Inline (Set_Is_Task_Master);
12261    pragma Inline (Set_Iteration_Scheme);
12262    pragma Inline (Set_Itype);
12263    pragma Inline (Set_Kill_Range_Check);
12264    pragma Inline (Set_Last_Bit);
12265    pragma Inline (Set_Last_Name);
12266    pragma Inline (Set_Library_Unit);
12267    pragma Inline (Set_Label_Construct);
12268    pragma Inline (Set_Left_Opnd);
12269    pragma Inline (Set_Limited_View_Installed);
12270    pragma Inline (Set_Limited_Present);
12271    pragma Inline (Set_Literals);
12272    pragma Inline (Set_Local_Raise_Not_OK);
12273    pragma Inline (Set_Local_Raise_Statements);
12274    pragma Inline (Set_Loop_Actions);
12275    pragma Inline (Set_Loop_Parameter_Specification);
12276    pragma Inline (Set_Low_Bound);
12277    pragma Inline (Set_Mod_Clause);
12278    pragma Inline (Set_More_Ids);
12279    pragma Inline (Set_Must_Be_Byte_Aligned);
12280    pragma Inline (Set_Must_Not_Freeze);
12281    pragma Inline (Set_Must_Not_Override);
12282    pragma Inline (Set_Must_Override);
12283    pragma Inline (Set_Name);
12284    pragma Inline (Set_Names);
12285    pragma Inline (Set_Next_Entity);
12286    pragma Inline (Set_Next_Exit_Statement);
12287    pragma Inline (Set_Next_Implicit_With);
12288    pragma Inline (Set_Next_Named_Actual);
12289    pragma Inline (Set_Next_Pragma);
12290    pragma Inline (Set_Next_Rep_Item);
12291    pragma Inline (Set_Next_Use_Clause);
12292    pragma Inline (Set_No_Ctrl_Actions);
12293    pragma Inline (Set_No_Elaboration_Check);
12294    pragma Inline (Set_No_Entities_Ref_In_Spec);
12295    pragma Inline (Set_No_Initialization);
12296    pragma Inline (Set_No_Truncation);
12297    pragma Inline (Set_Null_Present);
12298    pragma Inline (Set_Null_Exclusion_Present);
12299    pragma Inline (Set_Null_Exclusion_In_Return_Present);
12300    pragma Inline (Set_Null_Record_Present);
12301    pragma Inline (Set_Object_Definition);
12302    pragma Inline (Set_Of_Present);
12303    pragma Inline (Set_Original_Discriminant);
12304    pragma Inline (Set_Original_Entity);
12305    pragma Inline (Set_Others_Discrete_Choices);
12306    pragma Inline (Set_Out_Present);
12307    pragma Inline (Set_Parameter_Associations);
12308    pragma Inline (Set_Parameter_Specifications);
12309    pragma Inline (Set_Parameter_List_Truncated);
12310    pragma Inline (Set_Parameter_Type);
12311    pragma Inline (Set_Parent_Spec);
12312    pragma Inline (Set_Position);
12313    pragma Inline (Set_Pragma_Argument_Associations);
12314    pragma Inline (Set_Pragma_Identifier);
12315    pragma Inline (Set_Pragmas_After);
12316    pragma Inline (Set_Pragmas_Before);
12317    pragma Inline (Set_Prefix);
12318    pragma Inline (Set_Premature_Use);
12319    pragma Inline (Set_Present_Expr);
12320    pragma Inline (Set_Prev_Ids);
12321    pragma Inline (Set_Print_In_Hex);
12322    pragma Inline (Set_Private_Declarations);
12323    pragma Inline (Set_Private_Present);
12324    pragma Inline (Set_Procedure_To_Call);
12325    pragma Inline (Set_Proper_Body);
12326    pragma Inline (Set_Protected_Definition);
12327    pragma Inline (Set_Protected_Present);
12328    pragma Inline (Set_Raises_Constraint_Error);
12329    pragma Inline (Set_Range_Constraint);
12330    pragma Inline (Set_Range_Expression);
12331    pragma Inline (Set_Real_Range_Specification);
12332    pragma Inline (Set_Realval);
12333    pragma Inline (Set_Reason);
12334    pragma Inline (Set_Record_Extension_Part);
12335    pragma Inline (Set_Redundant_Use);
12336    pragma Inline (Set_Renaming_Exception);
12337    pragma Inline (Set_Result_Definition);
12338    pragma Inline (Set_Return_Object_Declarations);
12339    pragma Inline (Set_Reverse_Present);
12340    pragma Inline (Set_Right_Opnd);
12341    pragma Inline (Set_Rounded_Result);
12342    pragma Inline (Set_SCIL_Controlling_Tag);
12343    pragma Inline (Set_SCIL_Entity);
12344    pragma Inline (Set_SCIL_Tag_Value);
12345    pragma Inline (Set_SCIL_Target_Prim);
12346    pragma Inline (Set_Scope);
12347    pragma Inline (Set_Select_Alternatives);
12348    pragma Inline (Set_Selector_Name);
12349    pragma Inline (Set_Selector_Names);
12350    pragma Inline (Set_Shift_Count_OK);
12351    pragma Inline (Set_Source_Type);
12352    pragma Inline (Set_Spec_PPC_List);
12353    pragma Inline (Set_Spec_TC_List);
12354    pragma Inline (Set_Specification);
12355    pragma Inline (Set_Split_PPC);
12356    pragma Inline (Set_Statements);
12357    pragma Inline (Set_Static_Processing_OK);
12358    pragma Inline (Set_Storage_Pool);
12359    pragma Inline (Set_Subpool_Handle_Name);
12360    pragma Inline (Set_Strval);
12361    pragma Inline (Set_Subtype_Indication);
12362    pragma Inline (Set_Subtype_Mark);
12363    pragma Inline (Set_Subtype_Marks);
12364    pragma Inline (Set_Suppress_Assignment_Checks);
12365    pragma Inline (Set_Suppress_Loop_Warnings);
12366    pragma Inline (Set_Synchronized_Present);
12367    pragma Inline (Set_Tagged_Present);
12368    pragma Inline (Set_Target_Type);
12369    pragma Inline (Set_Task_Definition);
12370    pragma Inline (Set_Task_Present);
12371    pragma Inline (Set_Then_Actions);
12372    pragma Inline (Set_Then_Statements);
12373    pragma Inline (Set_Triggering_Alternative);
12374    pragma Inline (Set_Triggering_Statement);
12375    pragma Inline (Set_Treat_Fixed_As_Integer);
12376    pragma Inline (Set_TSS_Elist);
12377    pragma Inline (Set_Type_Definition);
12378    pragma Inline (Set_Unit);
12379    pragma Inline (Set_Unknown_Discriminants_Present);
12380    pragma Inline (Set_Unreferenced_In_Spec);
12381    pragma Inline (Set_Variant_Part);
12382    pragma Inline (Set_Variants);
12383    pragma Inline (Set_Visible_Declarations);
12384    pragma Inline (Set_Used_Operations);
12385    pragma Inline (Set_Was_Originally_Stub);
12386    pragma Inline (Set_Withed_Body);
12387
12388    --------------
12389    -- Synonyms --
12390    --------------
12391
12392    --  These synonyms are to aid in transition, they should eventually be
12393    --  removed when all remaining references to the obsolete name are gone.
12394
12395    N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
12396    --  Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
12397    --  should refer to N_Simple_Return_Statement.
12398
12399    N_Parameterized_Expression : constant Node_Kind := N_Expression_Function;
12400    --  Old name for expression functions (used during Ada 2012 transition)
12401
12402 end Sinfo;