[multiple changes]
[platform/upstream/gcc.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-2010, 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 seven places:
63
64    --    The documentation associated with the node
65    --    The spec of the access function in sinfo.ads
66    --    The body of the access function in sinfo.adb
67    --    The pragma Inline at the end of sinfo.ads for the access function
68    --    The spec of the set procedure in sinfo.ads
69    --    The body of the set procedure in sinfo.adb
70    --    The pragma Inline at the end of sinfo.ads for the set procedure
71
72    --  The field chosen must be consistent in all places, and, for a node that
73    --  is a subexpression, must not overlap any of the standard expression
74    --  fields.
75
76    --  In addition, if any of the standard expression fields is changed, then
77    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
78    --  must be updated appropriately, since it special cases expression fields.
79
80    --  If a new tree node is added, then the following changes are made
81
82    --    Add it to the documentation in the appropriate place
83    --    Add its fields to this documentation section
84    --    Define it in the appropriate classification in Node_Kind
85    --    In the body (sinfo), add entries to the access functions for all
86    --     its fields (except standard expression fields) to include the new
87    --     node in the checks.
88    --    Add an appropriate section to the case statement in sprint.adb
89    --    Add an appropriate section to the case statement in sem.adb
90    --    Add an appropriate section to the case statement in exp_util.adb
91    --     (Insert_Actions procedure)
92    --    For a subexpression, add an appropriate section to the case
93    --     statement in sem_eval.adb
94    --    For a subexpression, add an appropriate section to the case
95    --     statement in sem_res.adb
96
97    --  Finally, four utility programs must be run:
98
99    --    Run CSinfo to check that you have made the changes consistently. It
100    --     checks most of the rules given above, with clear error messages. This
101    --     utility reads sinfo.ads and sinfo.adb and generates a report to
102    --     standard output.
103
104    --    Run XSinfo to create sinfo.h, the corresponding C header. This
105    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
106    --     not need to read sinfo.adb, since the contents of the body are
107    --     algorithmically determinable from the spec.
108
109    --    Run XTreeprs to create treeprs.ads, an updated version of the module
110    --     that is used to drive the tree print routine. This utility reads (but
111    --     does not modify) treeprs.adt, the template that provides the basic
112    --     structure of the file, and then fills in the data from the comments
113    --     in sinfo.ads.
114
115    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
116    --     spec of the Nmake package which contains functions for constructing
117    --     nodes.
118
119    --  All of the above steps except CSinfo are done automatically by the
120    --  build scripts when you do a full bootstrap.
121
122    --  Note: sometime we could write a utility that actually generated the body
123    --  of sinfo from the spec instead of simply checking it, since, as noted
124    --  above, the contents of the body can be determined from the spec.
125
126    --------------------------------
127    -- Implicit Nodes in the Tree --
128    --------------------------------
129
130    --  Generally the structure of the tree very closely follows the grammar as
131    --  defined in the RM. However, certain nodes are omitted to save space and
132    --  simplify semantic processing. Two general classes of such omitted nodes
133    --  are as follows:
134
135    --   If the only possibilities for a non-terminal are one or more other
136    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
137    --   corresponding node is omitted from the tree, and the target construct
138    --   appears directly. For example, a real type definition is either
139    --   floating point definition or a fixed point definition. No explicit node
140    --   appears for real type definition. Instead either the floating point
141    --   definition or fixed point definition appears directly.
142
143    --   If a non-terminal corresponds to a list of some other non-terminal
144    --   (possibly with separating punctuation), then usually it is omitted from
145    --   the tree, and a list of components appears instead. For example,
146    --   sequence of statements does not appear explicitly in the tree. Instead
147    --   a list of statements appears directly.
148
149    --  Some additional cases of omitted nodes occur and are documented
150    --  individually. In particular, many nodes are omitted in the tree
151    --  generated for an expression.
152
153    -------------------------------------------
154    -- Handling of Defining Identifier Lists --
155    -------------------------------------------
156
157    --  In several declarative forms in the syntax, lists of defining
158    --  identifiers appear (object declarations, component declarations, number
159    --  declarations etc.)
160
161    --  The semantics of such statements are equivalent to a series of identical
162    --  declarations of single defining identifiers (except that conformance
163    --  checks require the same grouping of identifiers in the parameter case).
164
165    --  To simplify semantic processing, the parser breaks down such multiple
166    --  declaration cases into sequences of single declarations, duplicating
167    --  type and initialization information as required. The flags More_Ids and
168    --  Prev_Ids are used to record the original form of the source in the case
169    --  where the original source used a list of names, More_Ids being set on
170    --  all but the last name and Prev_Ids being set on all but the first name.
171    --  These flags are used to reconstruct the original source (e.g. in the
172    --  Sprint package), and also are included in the conformance checks, but
173    --  otherwise have no semantic significance.
174
175    --  Note: the reason that we use More_Ids and Prev_Ids rather than
176    --  First_Name and Last_Name flags is so that the flags are off in the
177    --  normal one identifier case, which minimizes tree print output.
178
179    -----------------------
180    -- Use of Node Lists --
181    -----------------------
182
183    --  With a few exceptions, if a construction of the form {non-terminal}
184    --  appears in the tree, lists are used in the corresponding tree node (see
185    --  package Nlists for handling of node lists). In this case a field of the
186    --  parent node points to a list of nodes for the non-terminal. The field
187    --  name for such fields has a plural name which always ends in "s". For
188    --  example, a case statement has a field Alternatives pointing to list of
189    --  case statement alternative nodes.
190
191    --  Only fields pointing to lists have names ending in "s", so generally the
192    --  structure is strongly typed, fields not ending in s point to single
193    --  nodes, and fields ending in s point to lists.
194
195    --  The following example shows how a traversal of a list is written. We
196    --  suppose here that Stmt points to a N_Case_Statement node which has a
197    --  list field called Alternatives:
198
199    --   Alt := First (Alternatives (Stmt));
200    --   while Present (Alt) loop
201    --      ..
202    --      -- processing for case statement alternative Alt
203    --      ..
204    --      Alt := Next (Alt);
205    --   end loop;
206
207    --  The Present function tests for Empty, which in this case signals the end
208    --  of the list. First returns Empty immediately if the list is empty.
209    --  Present is defined in Atree, First and Next are defined in Nlists.
210
211    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
212    --  contexts, which is handled as described in the previous section, and
213    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
214    --  using the First_Name and Last_Name flags, as further detailed in the
215    --  description of the N_With_Clause node.
216
217    -------------
218    -- Pragmas --
219    -------------
220
221    --  Pragmas can appear in many different context, but are not included in
222    --  the grammar. Still they must appear in the tree, so they can be properly
223    --  processed.
224
225    --  Two approaches are used. In some cases, an extra field is defined in an
226    --  appropriate node that contains a list of pragmas appearing in the
227    --  expected context. For example pragmas can appear before an
228    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
229    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
230
231    --  The other approach is to simply allow pragmas to appear in syntactic
232    --  lists where the grammar (of course) does not include the possibility.
233    --  For example, the Variants field of an N_Variant_Part node points to a
234    --  list that can contain both N_Pragma and N_Variant nodes.
235
236    --  To make processing easier in the latter case, the Nlists package
237    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
238    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
239    --  ignoring all pragmas.
240
241    --  In the case of the variants list, we can either write:
242
243    --      Variant := First (Variants (N));
244    --      while Present (Variant) loop
245    --         ...
246    --         Variant := Next (Variant);
247    --      end loop;
248
249    --  or
250
251    --      Variant := First_Non_Pragma (Variants (N));
252    --      while Present (Variant) loop
253    --         ...
254    --         Variant := Next_Non_Pragma (Variant);
255    --      end loop;
256
257    --  In the first form of the loop, Variant can either be an N_Pragma or an
258    --  N_Variant node. In the second form, Variant can only be N_Variant since
259    --  all pragmas are skipped.
260
261    ---------------------
262    -- Optional Fields --
263    ---------------------
264
265    --  Fields which correspond to a section of the syntax enclosed in square
266    --  brackets are generally omitted (and the corresponding field set to Empty
267    --  for a node, or No_List for a list). The documentation of such fields
268    --  notes these cases. One exception to this rule occurs in the case of
269    --  possibly empty statement sequences (such as the sequence of statements
270    --  in an entry call alternative). Such cases appear in the syntax rules as
271    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
272    --  statement sequences always contain an empty list (not No_List) if no
273    --  statements are present.
274
275    --  Note: the utility program that constructs the body and spec of the Nmake
276    --  package relies on the format of the comments to determine if a field
277    --  should have a default value in the corresponding make routine. The rule
278    --  is that if the first line of the description of the field contains the
279    --  string "(set to xxx if", then a default value of xxx is provided for
280    --  this field in the corresponding Make_yyy routine.
281
282    -----------------------------------
283    -- Note on Body/Spec Terminology --
284    -----------------------------------
285
286    --  In informal discussions about Ada, it is customary to refer to package
287    --  and subprogram specs and bodies. However, this is not technically
288    --  correct, what is normally referred to as a spec or specification is in
289    --  fact a package declaration or subprogram declaration. We are careful in
290    --  GNAT to use the correct terminology and in particular, the full word
291    --  specification is never used as an incorrect substitute for declaration.
292    --  The structure and terminology used in the tree also reflects the grammar
293    --  and thus uses declaration and specification in the technically correct
294    --  manner.
295
296    --  However, there are contexts in which the informal terminology is useful.
297    --  We have the word "body" to refer to the Interp_Etype declared by the
298    --  declaration of a unit body, and in some contexts we need similar term to
299    --  refer to the entity declared by the package or subprogram declaration,
300    --  and simply using declaration can be confusing since the body also has a
301    --  declaration.
302
303    --  An example of such a context is the link between the package body and
304    --  its declaration. With_Declaration is confusing, since the package body
305    --  itself is a declaration.
306
307    --  To deal with this problem, we reserve the informal term Spec, i.e. the
308    --  popular abbreviation used in this context, to refer to the entity
309    --  declared by the package or subprogram declaration. So in the above
310    --  example case, the field in the body is called With_Spec.
311
312    --  Another important context for the use of the word Spec is in error
313    --  messages, where a hyper-correct use of declaration would be confusing to
314    --  a typical Ada programmer, and even for an expert programmer can cause
315    --  confusion since the body has a declaration as well.
316
317    --  So, to summarize:
318
319    --     Declaration    always refers to the syntactic entity that is called
320    --                    a declaration. In particular, subprogram declaration
321    --                    and package declaration are used to describe the
322    --                    syntactic entity that includes the semicolon.
323
324    --     Specification  always refers to the syntactic entity that is called
325    --                    a specification. In particular, the terms procedure
326    --                    specification, function specification, package
327    --                    specification, subprogram specification always refer
328    --                    to the syntactic entity that has no semicolon.
329
330    --     Spec           is an informal term, used to refer to the entity
331    --                    that is declared by a task declaration, protected
332    --                    declaration, generic declaration, subprogram
333    --                    declaration or package declaration.
334
335    --  This convention is followed throughout the GNAT documentation
336    --  both internal and external, and in all error message text.
337
338    ------------------------
339    -- Internal Use Nodes --
340    ------------------------
341
342    --  These are Node_Kind settings used in the internal implementation which
343    --  are not logically part of the specification.
344
345    --  N_Unused_At_Start
346    --  Completely unused entry at the start of the enumeration type. This
347    --  is inserted so that no legitimate value is zero, which helps to get
348    --  better debugging behavior, since zero is a likely uninitialized value).
349
350    --  N_Unused_At_End
351    --  Completely unused entry at the end of the enumeration type. This is
352    --  handy so that arrays with Node_Kind as the index type have an extra
353    --  entry at the end (see for example the use of the Pchar_Pos_Array in
354    --  Treepr, where the extra entry provides the limit value when dealing with
355    --  the last used entry in the array).
356
357    -----------------------------------------
358    -- Note on the settings of Sloc fields --
359    -----------------------------------------
360
361    --  The Sloc field of nodes that come from the source is set by the parser.
362    --  For internal nodes, and nodes generated during expansion the Sloc is
363    --  usually set in the call to the constructor for the node. In general the
364    --  Sloc value chosen for an internal node is the Sloc of the source node
365    --  whose processing is responsible for the expansion. For example, the Sloc
366    --  of an inherited primitive operation is the Sloc of the corresponding
367    --  derived type declaration.
368
369    --  For the nodes of a generic instantiation, the Sloc value is encoded to
370    --  represent both the original Sloc in the generic unit, and the Sloc of
371    --  the instantiation itself. See Sinput.ads for details.
372
373    --  Subprogram instances create two callable entities: one is the visible
374    --  subprogram instance, and the other is an anonymous subprogram nested
375    --  within a wrapper package that contains the renamings for the actuals.
376    --  Both of these entities have the Sloc of the defining entity in the
377    --  instantiation node. This simplifies some ASIS queries.
378
379    -----------------------
380    -- Field Definitions --
381    -----------------------
382
383    --  In the following node definitions, all fields, both syntactic and
384    --  semantic, are documented. The one exception is in the case of entities
385    --  (defining identifiers, character literals and operator symbols), where
386    --  the usage of the fields depends on the entity kind. Entity fields are
387    --  fully documented in the separate package Einfo.
388
389    --  In the node definitions, three common sets of fields are abbreviated to
390    --  save both space in the documentation, and also space in the string
391    --  (defined in Tree_Print_Strings) used to print trees. The following
392    --  abbreviations are used:
393
394    --  Note: the utility program that creates the Treeprs spec (in the file
395    --  xtreeprs.adb) knows about the special fields here, so it must be
396    --  modified if any change is made to these fields.
397
398    --    "plus fields for binary operator"
399    --       Chars                    (Name1)      Name_Id for the operator
400    --       Left_Opnd                (Node2)      left operand expression
401    --       Right_Opnd               (Node3)      right operand expression
402    --       Entity                   (Node4-Sem)  defining entity for operator
403    --       Associated_Node          (Node4-Sem)  for generic processing
404    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
405    --       Has_Private_View         (Flag11-Sem) set in generic units.
406
407    --    "plus fields for unary operator"
408    --       Chars                    (Name1)      Name_Id for the operator
409    --       Right_Opnd               (Node3)      right operand expression
410    --       Entity                   (Node4-Sem)  defining entity for operator
411    --       Associated_Node          (Node4-Sem)  for generic processing
412    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
413    --       Has_Private_View         (Flag11-Sem) set in generic units.
414
415    --    "plus fields for expression"
416    --       Paren_Count                           number of parentheses levels
417    --       Etype                    (Node5-Sem)  type of the expression
418    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
419    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
420    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
421    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
422    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
423    --       Assignment_OK            (Flag15-Sem) set if modification is OK
424    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
425
426    --  Note: see under (EXPRESSION) for further details on the use of
427    --  the Paren_Count field to record the number of parentheses levels.
428
429    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
430    --  The actual definition of this type is given later (the reason for this
431    --  is that we want the descriptions ordered by logical chapter in the RM,
432    --  but the type definition is reordered to facilitate the definition of
433    --  some subtype ranges. The individual descriptions of the nodes show how
434    --  the various fields are used in each node kind, as well as providing
435    --  logical names for the fields. Functions and procedures are provided for
436    --  accessing and setting these fields using these logical names.
437
438    -----------------------
439    -- Gigi Restrictions --
440    -----------------------
441
442    --  The tree passed to Gigi is more restricted than the general tree form.
443    --  For example, as a result of expansion, most of the tasking nodes can
444    --  never appear. For each node to which either a complete or partial
445    --  restriction applies, a note entitled "Gigi restriction" appears which
446    --  documents the restriction.
447
448    --  Note that most of these restrictions apply only to trees generated when
449    --  code is being generated, since they involved expander actions that
450    --  destroy the tree.
451
452    ------------------------
453    -- Common Flag Fields --
454    ------------------------
455
456    --  The following flag fields appear in all nodes
457
458    --  Analyzed
459    --    This flag is used to indicate that a node (and all its children have
460    --    been analyzed. It is used to avoid reanalysis of a node that has
461    --    already been analyzed, both for efficiency and functional correctness
462    --    reasons.
463
464    --  Comes_From_Source
465    --    This flag is set if the node comes directly from an explicit construct
466    --    in the source. It is normally on for any nodes built by the scanner or
467    --    parser from the source program, with the exception that in a few cases
468    --    the parser adds nodes to normalize the representation (in particular
469    --    a null statement is added to a package body if there is no begin/end
470    --    initialization section.
471    --
472    --    Most nodes inserted by the analyzer or expander are not considered
473    --    as coming from source, so the flag is off for such nodes. In a few
474    --    cases, the expander constructs nodes closely equivalent to nodes
475    --    from the source program (e.g. the allocator built for build-in-place
476    --    case), and the Comes_From_Source flag is deliberately set.
477
478    --  Error_Posted
479    --    This flag is used to avoid multiple error messages being posted on or
480    --    referring to the same node. This flag is set if an error message
481    --    refers to a node or is posted on its source location, and has the
482    --    effect of inhibiting further messages involving this same node.
483
484    --  Has_Dynamic_Length_Check (Flag10-Sem)
485    --    This flag is present on all nodes. It is set to indicate that one of
486    --    the routines in unit Checks has generated a length check action which
487    --    has been inserted at the flagged node. This is used to avoid the
488    --    generation of duplicate checks.
489
490    --  Has_Dynamic_Range_Check (Flag12-Sem)
491    --    This flag is present on all nodes. It is set to indicate that one of
492    --    the routines in unit Checks has generated a range check action which
493    --    has been inserted at the flagged node. This is used to avoid the
494    --    generation of duplicate checks.
495
496    --  Has_Local_Raise (Flag8-Sem)
497    --    Present in exception handler nodes. Set if the handler can be entered
498    --    via a local raise that gets transformed to a goto statement. This will
499    --    always be set if Local_Raise_Statements is non-empty, but can also be
500    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
501    --    nodes requiring generation of back end checks.
502
503    ------------------------------------
504    -- Description of Semantic Fields --
505    ------------------------------------
506
507    --  The meaning of the syntactic fields is generally clear from their names
508    --  without any further description, since the names are chosen to
509    --  correspond very closely to the syntax in the reference manual. This
510    --  section describes the usage of the semantic fields, which are used to
511    --  contain additional information determined during semantic analysis.
512
513    --  ABE_Is_Certain (Flag18-Sem)
514    --    This flag is set in an instantiation node or a call node is determined
515    --    to be sure to raise an ABE. This is used to trigger special handling
516    --    of such cases, particularly in the instantiation case where we avoid
517    --    instantiating the body if this flag is set. This flag is also present
518    --    in an N_Formal_Package_Declaration_Node since formal package
519    --    declarations are treated like instantiations, but it is always set to
520    --    False in this context.
521
522    --  Accept_Handler_Records (List5-Sem)
523    --    This field is present only in an N_Accept_Alternative node. It is used
524    --    to temporarily hold the exception handler records from an accept
525    --    statement in a selective accept. These exception handlers will
526    --    eventually be placed in the Handler_Records list of the procedure
527    --    built for this accept (see Expand_N_Selective_Accept procedure in
528    --    Exp_Ch9 for further details).
529
530    --  Access_Types_To_Process (Elist2-Sem)
531    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
532    --    Contains the list of access types which may require specific treatment
533    --    when the nature of the type completion is completely known. An example
534    --    of such treatment is the generation of the associated_final_chain.
535
536    --  Actions (List1-Sem)
537    --    This field contains a sequence of actions that are associated with the
538    --    node holding the field. See the individual node types for details of
539    --    how this field is used, as well as the description of the specific use
540    --    for a particular node type.
541
542    --  Activation_Chain_Entity (Node3-Sem)
543    --    This is used in tree nodes representing task activators (blocks,
544    --    subprogram bodies, package declarations, and task bodies). It is
545    --    initially Empty, and then gets set to point to the entity for the
546    --    declared Activation_Chain variable when the first task is declared.
547    --    When tasks are declared in the corresponding declarative region this
548    --    entity is located by name (its name is always _Chain) and the declared
549    --    tasks are added to the chain. Note that N_Extended_Return_Statement
550    --    does not have this attribute, although it does have an activation
551    --    chain. This chain is used to store the tasks temporarily, and is not
552    --    used for activating them. On successful completion of the return
553    --    statement, the tasks are moved to the caller's chain, and the caller
554    --    activates them.
555
556    --  Acts_As_Spec (Flag4-Sem)
557    --    A flag set in the N_Subprogram_Body node for a subprogram body which
558    --    is acting as its own spec, except in the case of a library level
559    --    subprogram, in which case the flag is set on the parent compilation
560    --    unit node instead (see further description in spec of Lib package).
561    --    ??? Above note about Lib is dubious since lib.ads does not mention
562    --    Acts_As_Spec at all.
563
564    --  Actual_Designated_Subtype (Node4-Sem)
565    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
566    --    needs to known the dynamic constrained subtype of the designated
567    --    object, this attribute is set to that type. This is done for
568    --    N_Free_Statements for access-to-classwide types and access to
569    --    unconstrained packed array types, and for N_Explicit_Dereference when
570    --    the designated type is an unconstrained packed array and the
571    --    dereference is the prefix of a 'Size attribute reference.
572
573    --  Address_Warning_Posted (Flag18-Sem)
574    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
575    --    posted a warning for the address clause regarding size or alignment
576    --    issues. Used to inhibit multiple redundant messages.
577
578    --  Aggregate_Bounds (Node3-Sem)
579    --    Present in array N_Aggregate nodes. If the bounds of the aggregate are
580    --    known at compile time, this field points to an N_Range node with those
581    --    bounds. Otherwise Empty.
582
583    --  All_Others (Flag11-Sem)
584    --    Present in an N_Others_Choice node. This flag is set for an others
585    --    exception where all exceptions are to be caught, even those that are
586    --    not normally handled (in particular the tasking abort signal). This
587    --    is used for translation of the at end handler into a normal exception
588    --    handler.
589
590    --  Aspect_Cancel (Flag11-Sem)
591    --    Processing of aspect specifications typically generates pragmas and
592    --    attribute definition clauses that are inserted into the tree after
593    --    the declaration node to get the desired aspect effect. In the case
594    --    of Boolean aspects that use "=> False" to cancel the effect of an
595    --    aspect (i.e. turn if off), the generated pragma has the Aspect_Cancel
596    --    flag set to indicate that the pragma operates in the opposite sense.
597
598    --  Aspect_Rep_Item (Node2-Sem)
599    --    Present in N_Aspect_Specification nodes. Points to the corresponding
600    --    pragma/attribute definition node used to process the aspect.
601
602    --  Assignment_OK (Flag15-Sem)
603    --    This flag is set in a subexpression node for an object, indicating
604    --    that the associated object can be modified, even if this would not
605    --    normally be permissible (either by direct assignment, or by being
606    --    passed as an out or in-out parameter). This is used by the expander
607    --    for a number of purposes, including initialization of constants and
608    --    limited type objects (such as tasks), setting discriminant fields,
609    --    setting tag values, etc. N_Object_Declaration nodes also have this
610    --    flag defined. Here it is used to indicate that an initialization
611    --    expression is valid, even where it would normally not be allowed
612    --    (e.g. where the type involved is limited).
613
614    --  Associated_Node (Node4-Sem)
615    --    Present in nodes that can denote an entity: identifiers, character
616    --    literals, operator symbols, expanded names, operator nodes, and
617    --    attribute reference nodes (all these nodes have an Entity field).
618    --    This field is also present in N_Aggregate, N_Selected_Component, and
619    --    N_Extension_Aggregate nodes. This field is used in generic processing
620    --    to create links between the generic template and the generic copy.
621    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
622    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
623    --    the normal function of Entity is not required at the point where the
624    --    Associated_Node is set. Note also, that in generic templates, this
625    --    means that the Entity field does not necessarily point to an Entity.
626    --    Since the back end is expected to ignore generic templates, this is
627    --    harmless.
628
629    --  At_End_Proc (Node1)
630    --    This field is present in an N_Handled_Sequence_Of_Statements node.
631    --    It contains an identifier reference for the cleanup procedure to be
632    --    called. See description of this node for further details.
633
634    --  Backwards_OK (Flag6-Sem)
635    --    A flag present in the N_Assignment_Statement node. It is used only
636    --    if the type being assigned is an array type, and is set if analysis
637    --    determines that it is definitely safe to do the copy backwards, i.e.
638    --    starting at the highest addressed element. This is the case if either
639    --    the operands do not overlap, or they may overlap, but if they do,
640    --    then the left operand is at a higher address than the right operand.
641    --
642    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
643    --    means that the front end could not determine that either direction is
644    --    definitely safe, and a runtime check may be required if the backend
645    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
646    --    set, it means that the front end can assure no overlap of operands.
647
648    --  Body_To_Inline (Node3-Sem)
649    --    present in subprogram declarations. Denotes analyzed but unexpanded
650    --    body of subprogram, to be used when inlining calls. Present when the
651    --    subprogram has an Inline pragma and inlining is enabled. If the
652    --    declaration is completed by a renaming_as_body, and the renamed en-
653    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
654    --    which is used directly in later calls to the original subprogram.
655
656    --  Body_Required (Flag13-Sem)
657    --    A flag that appears in the N_Compilation_Unit node indicating that
658    --    the corresponding unit requires a body. For the package case, this
659    --    indicates that a completion is required. In Ada 95, if the flag is not
660    --    set for the package case, then a body may not be present. In Ada 83,
661    --    if the flag is not set for the package case, then body is optional.
662    --    For a subprogram declaration, the flag is set except in the case where
663    --    a pragma Import or Interface applies, in which case no body is
664    --    permitted (in Ada 83 or Ada 95).
665
666    --  By_Ref (Flag5-Sem)
667    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
668    --    this flag is set when the returned expression is already allocated on
669    --    the secondary stack and thus the result is passed by reference rather
670    --    than copied another time.
671
672    --  Check_Address_Alignment (Flag11-Sem)
673    --    A flag present in N_Attribute_Definition clause for a 'Address
674    --    attribute definition. This flag is set if a dynamic check should be
675    --    generated at the freeze point for the entity to which this address
676    --    clause applies. The reason that we need this flag is that we want to
677    --    check for range checks being suppressed at the point where the
678    --    attribute definition clause is given, rather than testing this at the
679    --    freeze point.
680
681    --  Coextensions (Elist4-Sem)
682    --    Present in allocators nodes. Points to list of allocators for the
683    --    access discriminants of the allocated object.
684
685    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
686    --    Present in N_Simple_Return_Statement nodes. True if this node was
687    --    constructed as part of the N_Extended_Return_Statement expansion.
688
689    --  Compile_Time_Known_Aggregate (Flag18-Sem)
690    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
691    --    evaluated at compile time without raising constraint error. Such
692    --    aggregates can be passed as is to Gigi without any expansion. See
693    --    Sem_Aggr for the specific conditions under which an aggregate has this
694    --    flag set. See also the flag Static_Processing_OK.
695
696    --  Componentwise_Assignment (Flag14-Sem)
697    --    Present in N_Assignment_Statement nodes. Set for a record assignment
698    --    where all that needs doing is to expand it into component-by-component
699    --    assignments. This is used internally for the case of tagged types with
700    --    rep clauses, where we need to avoid recursion (we don't want to try to
701    --    generate a call to the primitive operation, because this is the case
702    --    where we are compiling the primitive operation). Note that when we are
703    --    expanding component assignments in this case, we never assign the _tag
704    --    field, but we recursively assign components of the parent type.
705
706    --  Condition_Actions (List3-Sem)
707    --    This field appears in else-if nodes and in the iteration scheme node
708    --    for while loops. This field is only used during semantic processing to
709    --    temporarily hold actions inserted into the tree. In the tree passed
710    --    to gigi, the condition actions field is always set to No_List. For
711    --    details on how this field is used, see the routine Insert_Actions in
712    --    package Exp_Util, and also the expansion routines for the relevant
713    --    nodes.
714
715    --  Context_Pending (Flag16-Sem)
716    --    This field appears in Compilation_Unit nodes, to indicate that the
717    --    context of the unit is being compiled. Used to detect circularities
718    --    that are not otherwise detected by the loading mechanism. Such
719    --    circularities can occur in the presence of limited and non-limited
720    --    with_clauses that mention the same units.
721
722    --  Controlling_Argument (Node1-Sem)
723    --    This field is set in procedure and function call nodes if the call
724    --    is a dispatching call (it is Empty for a non-dispatching call). It
725    --    indicates the source of the call's controlling tag. For procedure
726    --    calls, the Controlling_Argument is one of the actuals. For function
727    --    that has a dispatching result, it is an entity in the context of the
728    --    call that can provide a tag, or else it is the tag of the root type
729    --    of the class. It can also specify a tag directly rather than being a
730    --    tagged object. The latter is needed by the implementations of AI-239
731    --    and AI-260.
732
733    --  Conversion_OK (Flag14-Sem)
734    --    A flag set on type conversion nodes to indicate that the conversion
735    --    is to be considered as being valid, even though it is the case that
736    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
737    --    Fixed_Value and Integer_Value, for internal conversions done for
738    --    fixed-point operations, and for certain conversions for calls to
739    --    initialization procedures. If Conversion_OK is set, then Etype must be
740    --    set (the analyzer assumes that Etype has been set). For the case of
741    --    fixed-point operands, it also indicates that the conversion is to be
742    --    direct conversion of the underlying integer result, with no regard to
743    --    the small operand.
744
745    --  Corresponding_Body (Node5-Sem)
746    --    This field is set in subprogram declarations, package declarations,
747    --    entry declarations of protected types, and in generic units. It
748    --    points to the defining entity for the corresponding body (NOT the
749    --    node for the body itself).
750
751    --  Corresponding_Formal_Spec (Node3-Sem)
752    --    This field is set in subprogram renaming declarations, where it points
753    --    to the defining entity for a formal subprogram in the case where the
754    --    renaming corresponds to a generic formal subprogram association in an
755    --    instantiation. The field is Empty if the renaming does not correspond
756    --    to such a formal association.
757
758    --  Corresponding_Generic_Association (Node5-Sem)
759    --    This field is defined for object declarations and object renaming
760    --    declarations. It is set for the declarations within an instance that
761    --    map generic formals to their actuals. If set, the field points to
762    --    a generic_association which is the original parent of the expression
763    --    or name appearing in the declaration. This simplifies ASIS queries.
764
765    --  Corresponding_Integer_Value (Uint4-Sem)
766    --    This field is set in real literals of fixed-point types (it is not
767    --    used for floating-point types). It contains the integer value used
768    --    to represent the fixed-point value. It is also set on the universal
769    --    real literals used to represent bounds of fixed-point base types
770    --    and their first named subtypes.
771
772    --  Corresponding_Spec (Node5-Sem)
773    --    This field is set in subprogram, package, task, and protected body
774    --    nodes, where it points to the defining entity in the corresponding
775    --    spec. The attribute is also set in N_With_Clause nodes where it points
776    --    to the defining entity for the with'ed spec, and in a subprogram
777    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
778    --    if there is no corresponding spec, as in the case of a subprogram body
779    --    that serves as its own spec.
780
781    --  Corresponding_Stub (Node3-Sem)
782    --    This field is present in an N_Subunit node. It holds the node in
783    --    the parent unit that is the stub declaration for the subunit. It is
784    --    set when analysis of the stub forces loading of the proper body. If
785    --    expansion of the proper body creates new declarative nodes, they are
786    --    inserted at the point of the corresponding_stub.
787
788    --  Dcheck_Function (Node5-Sem)
789    --    This field is present in an N_Variant node, It references the entity
790    --    for the discriminant checking function for the variant.
791
792    --  Debug_Statement (Node3)
793    --    This field is present in an N_Pragma node. It is used only for a Debug
794    --    pragma. The parameter is of the form of an expression, as required by
795    --    the pragma syntax, but is actually a procedure call. To simplify
796    --    semantic processing, the parser creates a copy of the argument
797    --    rearranged into a procedure call statement and places it in the
798    --    Debug_Statement field. Note that this field is considered syntactic
799    --    field, since it is created by the parser.
800
801    --  Default_Expression (Node5-Sem)
802    --    This field is Empty if there is no default expression. If there is a
803    --    simple default expression (one with no side effects), then this field
804    --    simply contains a copy of the Expression field (both point to the tree
805    --    for the default expression). Default_Expression is used for
806    --    conformance checking.
807
808    --  Discr_Check_Funcs_Built (Flag11-Sem)
809    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
810    --    discriminant checking functions are constructed. The purpose is to
811    --    avoid attempting to set these functions more than once.
812
813    --  Do_Accessibility_Check (Flag13-Sem)
814    --    This flag is set on N_Parameter_Specification nodes to indicate
815    --    that an accessibility check is required for the parameter. It is
816    --    not yet decided who takes care of this check (TBD ???).
817
818    --  Do_Discriminant_Check (Flag13-Sem)
819    --    This flag is set on N_Selected_Component nodes to indicate that a
820    --    discriminant check is required using the discriminant check routine
821    --    associated with the selector. The actual check is generated by the
822    --    expander when processing selected components.
823
824    --  Do_Division_Check (Flag13-Sem)
825    --    This flag is set on a division operator (/ mod rem) to indicate
826    --    that a zero divide check is required. The actual check is dealt
827    --    with by the backend (all the front end does is to set the flag).
828
829    --  Do_Length_Check (Flag4-Sem)
830    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
831    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
832    --    is required. It is not determined who deals with this flag (???).
833
834    --  Do_Overflow_Check (Flag17-Sem)
835    --    This flag is set on an operator where an overflow check is required on
836    --    the operation. The actual check is dealt with by the backend (all the
837    --    front end does is to set the flag). The other cases where this flag is
838    --    used is on a Type_Conversion node and for attribute reference nodes.
839    --    For a type conversion, it means that the conversion is from one base
840    --    type to another, and the value may not fit in the target base type.
841    --    See also the description of Do_Range_Check for this case. The only
842    --    attribute references which use this flag are Pred and Succ, where it
843    --    means that the result should be checked for going outside the base
844    --    range. Note that this flag is not set for modular types.
845
846    --  Do_Range_Check (Flag9-Sem)
847    --    This flag is set on an expression which appears in a context where a
848    --    range check is required. The target type is clear from the context.
849    --    The contexts in which this flag can appear are the following:
850
851    --      Right side of an assignment. In this case the target type is
852    --      taken from the left side of the assignment, which is referenced
853    --      by the Name of the N_Assignment_Statement node.
854
855    --      Subscript expressions in an indexed component. In this case the
856    --      target type is determined from the type of the array, which is
857    --      referenced by the Prefix of the N_Indexed_Component node.
858
859    --      Argument expression for a parameter, appearing either directly in
860    --      the Parameter_Associations list of a call or as the Expression of an
861    --      N_Parameter_Association node that appears in this list. In either
862    --      case, the check is against the type of the formal. Note that the
863    --      flag is relevant only in IN and IN OUT parameters, and will be
864    --      ignored for OUT parameters, where no check is required in the call,
865    --      and if a check is required on the return, it is generated explicitly
866    --      with a type conversion.
867
868    --      Initialization expression for the initial value in an object
869    --      declaration. In this case the Do_Range_Check flag is set on
870    --      the initialization expression, and the check is against the
871    --      range of the type of the object being declared.
872
873    --      The expression of a type conversion. In this case the range check is
874    --      against the target type of the conversion. See also the use of
875    --      Do_Overflow_Check on a type conversion. The distinction is that the
876    --      overflow check protects against a value that is outside the range of
877    --      the target base type, whereas a range check checks that the
878    --      resulting value (which is a value of the base type of the target
879    --      type), satisfies the range constraint of the target type.
880
881    --    Note: when a range check is required in contexts other than those
882    --    listed above (e.g. in a return statement), an additional type
883    --    conversion node is introduced to represent the required check.
884
885    --  Do_Storage_Check (Flag17-Sem)
886    --    This flag is set in an N_Allocator node to indicate that a storage
887    --    check is required for the allocation, or in an N_Subprogram_Body node
888    --    to indicate that a stack check is required in the subprogram prolog.
889    --    The N_Allocator case is handled by the routine that expands the call
890    --    to the runtime routine. The N_Subprogram_Body case is handled by the
891    --    backend, and all the semantics does is set the flag.
892
893    --  Do_Tag_Check (Flag13-Sem)
894    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
895    --    N_Procedure_Call_Statement, N_Type_Conversion,
896    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
897    --    node to indicate that the tag check can be suppressed. It is not
898    --    yet decided how this flag is used (TBD ???).
899
900    --  Elaborate_Present (Flag4-Sem)
901    --    This flag is set in the N_With_Clause node to indicate that pragma
902    --    Elaborate pragma appears for the with'ed units.
903
904    --  Elaborate_All_Desirable (Flag9-Sem)
905    --    This flag is set in the N_With_Clause mode to indicate that the static
906    --    elaboration processing has determined that an Elaborate_All pragma is
907    --    desirable for correct elaboration for this unit.
908
909    --  Elaborate_All_Present (Flag14-Sem)
910    --    This flag is set in the N_With_Clause node to indicate that a
911    --    pragma Elaborate_All pragma appears for the with'ed units.
912
913    --  Elaborate_Desirable (Flag11-Sem)
914    --    This flag is set in the N_With_Clause mode to indicate that the static
915    --    elaboration processing has determined that an Elaborate pragma is
916    --    desirable for correct elaboration for this unit.
917
918    --  Elaboration_Boolean (Node2-Sem)
919    --    This field is present in function and procedure specification nodes.
920    --    If set, it points to the entity for a Boolean flag that must be tested
921    --    for certain calls to check for access before elaboration. See body of
922    --    Sem_Elab for further details. This field is Empty if no elaboration
923    --    boolean is required.
924
925    --  Else_Actions (List3-Sem)
926    --    This field is present in conditional expression nodes. During code
927    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
928    --    actions at an appropriate place in the tree to get elaborated at the
929    --    right time. For conditional expressions, we have to be sure that the
930    --    actions for the Else branch are only elaborated if the condition is
931    --    False. The Else_Actions field is used as a temporary parking place for
932    --    these actions. The final tree is always rewritten to eliminate the
933    --    need for this field, so in the tree passed to Gigi, this field is
934    --    always set to No_List.
935
936    --  Enclosing_Variant (Node2-Sem)
937    --    This field is present in the N_Variant node and identifies the Node_Id
938    --    corresponding to the immediately enclosing variant when the variant is
939    --    nested, and N_Empty otherwise. Set during semantic processing of the
940    --    variant part of a record type.
941
942    --  Entity (Node4-Sem)
943    --    Appears in all direct names (identifiers, character literals, and
944    --    operator symbols), as well as expanded names, and attributes that
945    --    denote entities, such as 'Class. Points to entity for corresponding
946    --    defining occurrence. Set after name resolution. For identifiers in a
947    --    WITH list, the corresponding defining occurrence is in a separately
948    --    compiled file, and Entity must be set by the library Load procedure.
949    --
950    --    Note: During name resolution, the value in Entity may be temporarily
951    --    incorrect (e.g. during overload resolution, Entity is initially set to
952    --    the first possible correct interpretation, and then later modified if
953    --    necessary to contain the correct value after resolution).
954    --
955    --    Note: This field overlaps Associated_Node, which is used during
956    --    generic processing (see Sem_Ch12 for details). Note also that in
957    --    generic templates, this means that the Entity field does not always
958    --    point to an Entity. Since the back end is expected to ignore generic
959    --    templates, this is harmless.
960    --
961    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
962    --    It is used only for stream attributes definition clauses. In this
963    --    case, it denotes a (possibly dummy) subprogram entity that is declared
964    --    conceptually at the point of the clause. Thus the visibility of the
965    --    attribute definition clause (in the sense of 8.3(23) as amended by
966    --    AI-195) can be checked by testing the visibility of that subprogram.
967    --
968    --    Note: Normally the Entity field of an identifier points to the entity
969    --    for the corresponding defining identifier, and hence the Chars field
970    --    of an identifier will match the Chars field of the entity. However,
971    --    there is no requirement that these match, and there are obscure cases
972    --    of generated code where they do not match.
973
974    --  Entity_Or_Associated_Node (Node4-Sem)
975    --    A synonym for both Entity and Associated_Node. Used by convention in
976    --    the code when referencing this field in cases where it is not known
977    --    whether the field contains an Entity or an Associated_Node.
978
979    --  Etype (Node5-Sem)
980    --    Appears in all expression nodes, all direct names, and all entities.
981    --    Points to the entity for the related type. Set after type resolution.
982    --    Normally this is the actual subtype of the expression. However, in
983    --    certain contexts such as the right side of an assignment, subscripts,
984    --    arguments to calls, returned value in a function, initial value etc.
985    --    it is the desired target type. In the event that this is different
986    --    from the actual type, the Do_Range_Check flag will be set if a range
987    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
988    --    points to an essentially arbitrary choice from the possible set of
989    --    types.
990
991    --  Exception_Junk (Flag8-Sem)
992    --    This flag is set in a various nodes appearing in a statement sequence
993    --    to indicate that the corresponding node is an artifact of the
994    --    generated code for exception handling, and should be ignored when
995    --    analyzing the control flow of the relevant sequence of statements
996    --    (e.g. to check that it does not end with a bad return statement).
997
998    --  Exception_Label (Node5-Sem)
999    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1000    --    to be used for transforming the corresponding exception into a goto,
1001    --    or contains Empty, if this exception is not to be transformed. Also
1002    --    appears in N_Exception_Handler nodes, where, if set, it indicates
1003    --    that there may be a local raise for the handler, so that expansion
1004    --    to allow a goto is required (and this field contains the label for
1005    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1006
1007    --  Expansion_Delayed (Flag11-Sem)
1008    --    Set on aggregates and extension aggregates that need a top-down rather
1009    --    than bottom-up expansion. Typically aggregate expansion happens bottom
1010    --    up. For nested aggregates the expansion is delayed until the enclosing
1011    --    aggregate itself is expanded, e.g. in the context of a declaration. To
1012    --    delay it we set this flag. This is done to avoid creating a temporary
1013    --    for each level of a nested aggregates, and also to prevent the
1014    --    premature generation of constraint checks. This is also a requirement
1015    --    if we want to generate the proper attachment to the internal
1016    --    finalization lists (for record with controlled components). Top down
1017    --    expansion of aggregates is also used for in-place array aggregate
1018    --    assignment or initialization. When the full context is known, the
1019    --    target of the assignment or initialization is used to generate the
1020    --    left-hand side of individual assignment to each sub-component.
1021
1022    --  First_Inlined_Subprogram (Node3-Sem)
1023    --    Present in the N_Compilation_Unit node for the main program. Points
1024    --    to a chain of entities for subprograms that are to be inlined. The
1025    --    Next_Inlined_Subprogram field of these entities is used as a link
1026    --    pointer with Empty marking the end of the list. This field is Empty
1027    --    if there are no inlined subprograms or inlining is not active.
1028
1029    --  First_Named_Actual (Node4-Sem)
1030    --    Present in procedure call statement and function call nodes, and also
1031    --    in Intrinsic nodes. Set during semantic analysis to point to the first
1032    --    named parameter where parameters are ordered by declaration order (as
1033    --    opposed to the actual order in the call which may be different due to
1034    --    named associations). Note: this field points to the explicit actual
1035    --    parameter itself, not the N_Parameter_Association node (its parent).
1036
1037    --  First_Real_Statement (Node2-Sem)
1038    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1039    --    Empty. Used only when declarations are moved into the statement part
1040    --    of a construct as a result of wrapping an AT END handler that is
1041    --    required to cover the declarations. In this case, this field is used
1042    --    to remember the location in the statements list of the first real
1043    --    statement, i.e. the statement that used to be first in the statement
1044    --    list before the declarations were prepended.
1045
1046    --  First_Subtype_Link (Node5-Sem)
1047    --    Present in N_Freeze_Entity node for an anonymous base type that is
1048    --    implicitly created by the declaration of a first subtype. It points
1049    --    to the entity for the first subtype.
1050
1051    --  Float_Truncate (Flag11-Sem)
1052    --    A flag present in type conversion nodes. This is used for float to
1053    --    integer conversions where truncation is required rather than rounding.
1054    --    Note that Gigi does not handle type conversions from real to integer
1055    --    with rounding (see Expand_N_Type_Conversion).
1056
1057    --  Forwards_OK (Flag5-Sem)
1058    --    A flag present in the N_Assignment_Statement node. It is used only
1059    --    if the type being assigned is an array type, and is set if analysis
1060    --    determines that it is definitely safe to do the copy forwards, i.e.
1061    --    starting at the lowest addressed element. This is the case if either
1062    --    the operands do not overlap, or they may overlap, but if they do,
1063    --    then the left operand is at a lower address than the right operand.
1064    --
1065    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1066    --    means that the front end could not determine that either direction is
1067    --    definitely safe, and a runtime check may be required if the backend
1068    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1069    --    set, it means that the front end can assure no overlap of operands.
1070
1071    --  From_Aspect_Specification (Flag13-Sem)
1072    --    Processing of aspect specifications typically results in insertion in
1073    --    the tree of corresponding pragma or attribute definition clause nodes.
1074    --    These generated nodes have the From_Aspect_Specification flag set to
1075    --    indicate that they came from aspect specifications originally.
1076
1077    --  From_At_End (Flag4-Sem)
1078    --    This flag is set on an N_Raise_Statement node if it corresponds to
1079    --    the reraise statement generated as the last statement of an AT END
1080    --    handler when SJLJ exception handling is active. It is used to stop
1081    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1082    --    because if the restriction is set, the reraise is not generated.
1083
1084    --  From_At_Mod (Flag4-Sem)
1085    --    This flag is set on the attribute definition clause node that is
1086    --    generated by a transformation of an at mod phrase in a record
1087    --    representation clause. This is used to give slightly different (Ada 83
1088    --    compatible) semantics to such a clause, namely it is used to specify a
1089    --    minimum acceptable alignment for the base type and all subtypes. In
1090    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1091    --    must be a multiple of the given value, and the representation clause
1092    --    is considered to be type specific instead of subtype specific.
1093
1094    --  From_Default (Flag6-Sem)
1095    --    This flag is set on the subprogram renaming declaration created in an
1096    --    instance for a formal subprogram, when the formal is declared with a
1097    --    box, and there is no explicit actual. If the flag is present, the
1098    --    declaration is treated as an implicit reference to the formal in the
1099    --    ali file.
1100
1101    --  Generic_Parent (Node5-Sem)
1102    --    Generic_Parent is defined on declaration nodes that are instances. The
1103    --    value of Generic_Parent is the generic entity from which the instance
1104    --    is obtained. Generic_Parent is also defined for the renaming
1105    --    declarations and object declarations created for the actuals in an
1106    --    instantiation. The generic parent of such a declaration is the
1107    --    corresponding generic association in the Instantiation node.
1108
1109    --  Generic_Parent_Type (Node4-Sem)
1110    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1111    --    actuals of formal private and derived types. Within the instance, the
1112    --    operations on the actual are those inherited from the parent. For a
1113    --    formal private type, the parent type is the generic type itself. The
1114    --    Generic_Parent_Type is also used in an instance to determine whether a
1115    --    private operation overrides an inherited one.
1116
1117    --  Handler_List_Entry (Node2-Sem)
1118    --    This field is present in N_Object_Declaration nodes. It is set only
1119    --    for the Handler_Record entry generated for an exception in zero cost
1120    --    exception handling mode. It references the corresponding item in the
1121    --    handler list, and is used to delete this entry if the corresponding
1122    --    handler is deleted during optimization. For further details on why
1123    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1124
1125    --  Has_No_Elaboration_Code (Flag17-Sem)
1126    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1127    --    or not elaboration code is present for this unit. It is initially set
1128    --    true for subprogram specs and bodies and for all generic units and
1129    --    false for non-generic package specs and bodies. Gigi may set the flag
1130    --    in the non-generic package case if it determines that no elaboration
1131    --    code is generated. Note that this flag is not related to the
1132    --    Is_Preelaborated status, there can be preelaborated packages that
1133    --    generate elaboration code, and non-preelaborated packages which do
1134    --    not generate elaboration code.
1135
1136    --  Has_Pragma_CPU (Flag10-Sem)
1137    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1138    --    flag the presence of a CPU pragma in the declaration sequence (public
1139    --    or private in the task case).
1140
1141    --  Has_Pragma_Suppress_All (Flag14-Sem)
1142    --    This flag is set in an N_Compilation_Unit node if the Suppress_All
1143    --    pragma appears anywhere in the unit. This accomodates the rather
1144    --    strange placement rules of other compilers (DEC permits it at the
1145    --    end of a unit, and Rational allows it as a program unit pragma). We
1146    --    allow it anywhere at all, and consider it equivalent to a pragma
1147    --    Suppress (All_Checks) appearing at the start of the configuration
1148    --    pragmas for the unit.
1149
1150    --  Has_Pragma_Priority (Flag6-Sem)
1151    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1152    --    N_Protected_Definition nodes to flag the presence of either a Priority
1153    --    or Interrupt_Priority pragma in the declaration sequence (public or
1154    --    private in the task and protected cases)
1155
1156    --  Has_Private_View (Flag11-Sem)
1157    --    A flag present in generic nodes that have an entity, to indicate that
1158    --    the node has a private type. Used to exchange private and full
1159    --    declarations if the visibility at instantiation is different from the
1160    --    visibility at generic definition.
1161
1162    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1163    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1164    --    flag the presence of a pragma Relative_Deadline.
1165
1166    --  Has_Self_Reference (Flag13-Sem)
1167    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1168    --    of the expressions contains an access attribute reference to the
1169    --    enclosing type. Such a self-reference can only appear in default-
1170    --    initialized aggregate for a record type.
1171
1172    --  Has_Storage_Size_Pragma (Flag5-Sem)
1173    --    A flag present in an N_Task_Definition node to flag the presence of a
1174    --    Storage_Size pragma.
1175
1176    --  Has_Task_Info_Pragma (Flag7-Sem)
1177    --    A flag present in an N_Task_Definition node to flag the presence of a
1178    --    Task_Info pragma. Used to detect duplicate pragmas.
1179
1180    --  Has_Task_Name_Pragma (Flag8-Sem)
1181    --    A flag present in N_Task_Definition nodes to flag the presence of a
1182    --    Task_Name pragma in the declaration sequence for the task.
1183
1184    --  Has_Wide_Character (Flag11-Sem)
1185    --    Present in string literals, set if any wide character (i.e. character
1186    --    code outside the Character range but within Wide_Character range)
1187    --    appears in the string. Used to implement pragma preference rules.
1188
1189    --  Has_Wide_Wide_Character (Flag13-Sem)
1190    --    Present in string literals, set if any wide character (i.e. character
1191    --    code outside the Wide_Character range) appears in the string. Used to
1192    --    implement pragma preference rules.
1193
1194    --  Hidden_By_Use_Clause (Elist4-Sem)
1195    --     An entity list present in use clauses that appear within
1196    --     instantiations. For the resolution of local entities, entities
1197    --     introduced by these use clauses have priority over global ones, and
1198    --     outer entities must be explicitly hidden/restored on exit.
1199
1200    --  Implicit_With (Flag16-Sem)
1201    --    This flag is set in the N_With_Clause node that is implicitly
1202    --    generated for runtime units that are loaded by the expander, and also
1203    --    for package System, if it is loaded implicitly by a use of the
1204    --    'Address or 'Tag attribute. ???There are other implicit with clauses
1205    --    as well.
1206
1207    --  Import_Interface_Present (Flag16-Sem)
1208    --     This flag is set in an Interface or Import pragma if a matching
1209    --     pragma of the other kind is also present. This is used to avoid
1210    --     generating some unwanted error messages.
1211
1212    --  Includes_Infinities (Flag11-Sem)
1213    --    This flag is present in N_Range nodes. It is set for the range of
1214    --    unconstrained float types defined in Standard, which include not only
1215    --    the given range of values, but also legitimately can include infinite
1216    --    values. This flag is false for any float type for which an explicit
1217    --    range is given by the programmer, even if that range is identical to
1218    --    the range for Float.
1219
1220    --  Inherited_Discriminant (Flag13-Sem)
1221    --    This flag is present in N_Component_Association nodes. It indicates
1222    --    that a given component association in an extension aggregate is the
1223    --    value obtained from a constraint on an ancestor. Used to prevent
1224    --    double expansion when the aggregate has expansion delayed.
1225
1226    --  Instance_Spec (Node5-Sem)
1227    --    This field is present in generic instantiation nodes, and also in
1228    --    formal package declaration nodes (formal package declarations are
1229    --    treated in a manner very similar to package instantiations). It points
1230    --    to the node for the spec of the instance, inserted as part of the
1231    --    semantic processing for instantiations in Sem_Ch12.
1232
1233    --  Is_Accessibility_Actual (Flag12-Sem)
1234    --    Present in N_Parameter_Association nodes. True if the parameter is
1235    --    an extra actual that carries the accessibility level of the actual
1236    --    for an access parameter, in a function that dispatches on result and
1237    --    is called in a dispatching context. Used to prevent a formal/actual
1238    --    mismatch when the call is rewritten as a dispatching call.
1239
1240    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1241    --    A flag set in a Block_Statement node to indicate that it is the
1242    --    expansion of an asynchronous entry call. Such a block needs cleanup
1243    --    handler to assure that the call is cancelled.
1244
1245    --  Is_Component_Left_Opnd  (Flag13-Sem)
1246    --  Is_Component_Right_Opnd (Flag14-Sem)
1247    --    Present in concatenation nodes, to indicate that the corresponding
1248    --    operand is of the component type of the result. Used in resolving
1249    --    concatenation nodes in instances.
1250
1251    --  Is_Delayed_Aspect (Flag14-Sem)
1252    --    Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1253    --    come from aspect specifications, where the evaluation of the aspect
1254    --    must be delayed to the freeze point.
1255
1256    --  Is_Controlling_Actual (Flag16-Sem)
1257    --    This flag is set on in an expression that is a controlling argument in
1258    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1259    --    details of its use.
1260
1261    --  Is_Dynamic_Coextension (Flag18-Sem)
1262    --    Present in allocator nodes, to indicate that this is an allocator
1263    --    for an access discriminant of a dynamically allocated object. The
1264    --    coextension must be deallocated and finalized at the same time as
1265    --    the enclosing object.
1266
1267    --  Is_Entry_Barrier_Function (Flag8-Sem)
1268    --    This flag is set in an N_Subprogram_Body node which is the expansion
1269    --    of an entry barrier from a protected entry body. It is used for the
1270    --    circuitry checking for incorrect use of Current_Task.
1271
1272    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1273    --    This flag is set in an N_Function_Call node to indicate that the extra
1274    --    actuals to support a build-in-place style of call have been added to
1275    --    the call.
1276
1277    --  Is_In_Discriminant_Check (Flag11-Sem)
1278    --    This flag is present in a selected component, and is used to indicate
1279    --    that the reference occurs within a discriminant check. The
1280    --    significance is that optimizations based on assuming that the
1281    --    discriminant check has a correct value cannot be performed in this
1282    --    case (or the discriminant check may be optimized away!)
1283
1284    --  Is_Machine_Number (Flag11-Sem)
1285    --    This flag is set in an N_Real_Literal node to indicate that the value
1286    --    is a machine number. This avoids some unnecessary cases of converting
1287    --    real literals to machine numbers.
1288
1289    --  Is_Null_Loop (Flag16-Sem)
1290    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1291    --    can be determined to be null at compile time. This is used to remove
1292    --    the loop entirely at expansion time.
1293
1294    --  Is_Overloaded (Flag5-Sem)
1295    --    A flag present in all expression nodes. Used temporarily during
1296    --    overloading determination. The setting of this flag is not relevant
1297    --    once overloading analysis is complete.
1298
1299    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1300    --    A flag present only in N_Op_Expon nodes. It is set when the
1301    --    exponentiation is of the form 2 ** N, where the type of N is an
1302    --    unsigned integral subtype whose size does not exceed the size of
1303    --    Standard_Integer (i.e. a type that can be safely converted to
1304    --    Natural), and the exponentiation appears as the right operand of an
1305    --    integer multiplication or an integer division where the dividend is
1306    --    unsigned. It is also required that overflow checking is off for both
1307    --    the exponentiation and the multiply/divide node. If this set of
1308    --    conditions holds, and the flag is set, then the division or
1309    --    multiplication can be (and is) converted to a shift.
1310
1311    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1312    --    A flag set in a Subprogram_Body block to indicate that it is the
1313    --    implementation of a protected subprogram. Such a body needs cleanup
1314    --    handler to make sure that the associated protected object is unlocked
1315    --    when the subprogram completes.
1316
1317    --  Is_Static_Coextension (Flag14-Sem)
1318    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1319    --    of an object allocated on the stack rather than the heap.
1320
1321    --  Is_Static_Expression (Flag6-Sem)
1322    --    Indicates that an expression is a static expression (RM 4.9). See spec
1323    --    of package Sem_Eval for full details on the use of this flag.
1324
1325    --  Is_Subprogram_Descriptor (Flag16-Sem)
1326    --    Present in N_Object_Declaration, and set only for the object
1327    --    declaration generated for a subprogram descriptor in fast exception
1328    --    mode. See Exp_Ch11 for details of use.
1329
1330    --  Is_Task_Allocation_Block (Flag6-Sem)
1331    --    A flag set in a Block_Statement node to indicate that it is the
1332    --    expansion of a task allocator, or the allocator of an object
1333    --    containing tasks. Such a block requires a cleanup handler to call
1334    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1335    --    allocated but not activated when the allocator completes abnormally.
1336
1337    --  Is_Task_Master (Flag5-Sem)
1338    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1339    --    indicate that the construct is a task master (i.e. has declared tasks
1340    --    or declares an access to a task type).
1341
1342    --  Itype (Node1-Sem)
1343    --    Used in N_Itype_Reference node to reference an itype for which it is
1344    --    important to ensure that it is defined. See description of this node
1345    --    for further details.
1346
1347    --  Kill_Range_Check (Flag11-Sem)
1348    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1349    --    result should not be subjected to range checks. This is used for the
1350    --    implementation of Normalize_Scalars.
1351
1352    --  Label_Construct (Node2-Sem)
1353    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1354    --    N_Block_Statement or N_Loop_Statement node to which the label
1355    --    declaration applies. This is not currently used in the compiler
1356    --    itself, but it is useful in the implementation of ASIS queries.
1357    --    This field is left empty for the special labels generated as part
1358    --    of expanding raise statements with a local exception handler.
1359
1360    --  Library_Unit (Node4-Sem)
1361    --    In a stub node, Library_Unit points to the compilation unit node of
1362    --    the corresponding subunit.
1363    --
1364    --    In a with clause node, Library_Unit points to the spec of the with'ed
1365    --    unit.
1366    --
1367    --    In a compilation unit node, the usage depends on the unit type:
1368    --
1369    --     For a library unit body, Library_Unit points to the compilation unit
1370    --     node of the corresponding spec, unless it's a subprogram body with
1371    --     Acts_As_Spec set, in which case it points to itself.
1372    --
1373    --     For a spec, Library_Unit points to the compilation unit node of the
1374    --     corresponding body, if present. The body will be present if the spec
1375    --     is or contains generics that we needed to instantiate. Similarly, the
1376    --     body will be present if we needed it for inlining purposes. Thus, if
1377    --     we have a spec/body pair, both of which are present, they point to
1378    --     each other via Library_Unit.
1379    --
1380    --     For a subunit, Library_Unit points to the compilation unit node of
1381    --     the parent body.
1382    --
1383    --    Note that this field is not used to hold the parent pointer for child
1384    --    unit (which might in any case need to use it for some other purpose as
1385    --    described above). Instead for a child unit, implicit with's are
1386    --    generated for all parents.
1387
1388    --  Local_Raise_Statements (Elist1)
1389    --    This field is present in exception handler nodes. It is set to
1390    --    No_Elist in the normal case. If there is at least one raise statement
1391    --    which can potentially be handled as a local raise, then this field
1392    --    points to a list of raise nodes, which are calls to a routine to raise
1393    --    an exception. These are raise nodes which can be optimized into gotos
1394    --    if the handler turns out to meet the conditions which permit this
1395    --    transformation. Note that this does NOT include instances of the
1396    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1397    --    handled by the back end (using the N_Push/N_Pop mechanism).
1398
1399    --  Loop_Actions (List2-Sem)
1400    --    A list present in Component_Association nodes in array aggregates.
1401    --    Used to collect actions that must be executed within the loop because
1402    --    they may need to be evaluated anew each time through.
1403
1404    --  Limited_View_Installed (Flag18-Sem)
1405    --    Present in With_Clauses and in package specifications. If set on
1406    --    with_clause, it indicates that this clause has created the current
1407    --    limited view of the designated package. On a package specification, it
1408    --    indicates that the limited view has already been created because the
1409    --    package is mentioned in a limited_with_clause in the closure of the
1410    --    unit being compiled.
1411
1412    --  Local_Raise_Not_OK (Flag7-Sem)
1413    --    Present in N_Exception_Handler nodes. Set if the handler contains
1414    --    a construct (reraise statement, or call to subprogram in package
1415    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1416    --    for a local raise (one that could otherwise be converted to a goto).
1417
1418    --  Must_Be_Byte_Aligned (Flag14-Sem)
1419    --    This flag is present in N_Attribute_Reference nodes. It can be set
1420    --    only for the Address and Unrestricted_Access attributes. If set it
1421    --    means that the object for which the address/access is given must be on
1422    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1423    --    of the object is to be made before taking the address (this copy is in
1424    --    the current scope on the stack frame). This is used for certain cases
1425    --    of code generated by the expander that passes parameters by address.
1426    --
1427    --    The reason the copy is not made by the front end is that the back end
1428    --    has more information about type layout and may be able to (but is not
1429    --    guaranteed to) prevent making unnecessary copies.
1430
1431    --  Must_Not_Freeze (Flag8-Sem)
1432    --    A flag present in all expression nodes. Normally expressions cause
1433    --    freezing as described in the RM. If this flag is set, then this is
1434    --    inhibited. This is used by the analyzer and expander to label nodes
1435    --    that are created by semantic analysis or expansion and which must not
1436    --    cause freezing even though they normally would. This flag is also
1437    --    present in an N_Subtype_Indication node, since we also use these in
1438    --    calls to Freeze_Expression.
1439
1440    --  Next_Entity (Node2-Sem)
1441    --    Present in defining identifiers, defining character literals and
1442    --    defining operator symbols (i.e. in all entities). The entities of a
1443    --    scope are chained, and this field is used as the forward pointer for
1444    --    this list. See Einfo for further details.
1445
1446    --  Next_Exit_Statement (Node3-Sem)
1447    --    Present in N_Exit_Statement nodes. The exit statements for a loop are
1448    --    chained (in reverse order of appearence) from the First_Exit_Statement
1449    --    field of the E_Loop entity for the loop. Next_Exit_Statement points to
1450    --    the next entry on this chain (Empty = end of list).
1451
1452    --  Next_Implicit_With (Node3-Sem)
1453    --    Present in N_With_Clause. Part of a chain of with_clauses generated
1454    --    in rtsfind to indicate implicit dependencies on predefined units. Used
1455    --    to prevent multiple with_clauses for the same unit in a given context.
1456    --    A postorder traversal of the tree whose nodes are units and whose
1457    --    links are with_clauses defines the order in which Inspector must
1458    --    examine a compiled unit and its full context. This ordering ensures
1459    --    that any subprogram call is examined after the subprogram declartion
1460    --    has been seen.
1461
1462    --  Next_Named_Actual (Node4-Sem)
1463    --    Present in parameter association node. Set during semantic analysis to
1464    --    point to the next named parameter, where parameters are ordered by
1465    --    declaration order (as opposed to the actual order in the call, which
1466    --    may be different due to named associations). Not that this field
1467    --    points to the explicit actual parameter itself, not to the
1468    --    N_Parameter_Association node (its parent).
1469
1470    --  Next_Pragma (Node1-Sem)
1471    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1472    --    nodes. Currently used for two purposes:
1473    --
1474    --      Create a list of linked Check_Policy pragmas. The head of this list
1475    --      is stored in Opt.Check_Policy_List (which has further details).
1476    --
1477    --      Used by processing for Pre/Postcondition pragmas to store a list of
1478    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1479    --      details).
1480
1481    --  Next_Rep_Item (Node5-Sem)
1482    --    Present in pragma nodes, attribute definition nodes, enumeration rep
1483    --    clauses, record rep clauses, aspect specification nodes. Used to link
1484    --    representation items that apply to an entity. See full description of
1485    --    First_Rep_Item field in Einfo for further details.
1486
1487    --  Next_Use_Clause (Node3-Sem)
1488    --    While use clauses are active during semantic processing, they are
1489    --    chained from the scope stack entry, using Next_Use_Clause as a link
1490    --    pointer, with Empty marking the end of the list. The head pointer is
1491    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1492    --    processing (i.e. when Gigi sees the tree, the contents of this field
1493    --    is undefined and should not be read).
1494
1495    --  No_Ctrl_Actions (Flag7-Sem)
1496    --    Present in N_Assignment_Statement to indicate that no finalize nor
1497    --    adjust should take place on this assignment even though the rhs is
1498    --    controlled. This is used in init procs and aggregate expansions where
1499    --    the generated assignments are more initialisations than real
1500    --    assignments.
1501
1502    --  No_Elaboration_Check (Flag14-Sem)
1503    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1504    --    that no elaboration check is needed on the call, because it appears in
1505    --    the context of a local Suppress pragma. This is used on calls within
1506    --    task bodies, where the actual elaboration checks are applied after
1507    --    analysis, when the local scope stack is not present.
1508
1509    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1510    --    Present in N_With_Clause nodes. Set if the with clause is on the
1511    --    package or subprogram spec where the main unit is the corresponding
1512    --    body, and no entities of the with'ed unit are referenced by the spec
1513    --    (an entity may still be referenced in the body, so this flag is used
1514    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1515    --    full details)
1516
1517    --  No_Initialization (Flag13-Sem)
1518    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1519    --    object must not be initialized (by Initialize or call to an init
1520    --    proc). This is needed for controlled aggregates. When the Object
1521    --    declaration has an expression, this flag means that this expression
1522    --    should not be taken into account (needed for in place initialization
1523    --    with aggregates).
1524
1525    --  No_Truncation (Flag17-Sem)
1526    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1527    --    only if the RM_Size of the source is greater than the RM_Size of the
1528    --    target for scalar operands. Normally in such a case we truncate some
1529    --    higher order bits of the source, and then sign/zero extend the result
1530    --    to form the output value. But if this flag is set, then we do not do
1531    --    any truncation, so for example, if an 8 bit input is converted to 5
1532    --    bit result which is in fact stored in 8 bits, then the high order
1533    --    three bits of the target result will be copied from the source. This
1534    --    is used for properly setting out of range values for use by pragmas
1535    --    Initialize_Scalars and Normalize_Scalars.
1536
1537    --  Original_Discriminant (Node2-Sem)
1538    --    Present in identifiers. Used in references to discriminants that
1539    --    appear in generic units. Because the names of the discriminants may be
1540    --    different in an instance, we use this field to recover the position of
1541    --    the discriminant in the original type, and replace it with the
1542    --    discriminant at the same position in the instantiated type.
1543
1544    --  Original_Entity (Node2-Sem)
1545    --    Present in numeric literals. Used to denote the named number that has
1546    --    been constant-folded into the given literal. If literal is from
1547    --    source, or the result of some other constant-folding operation, then
1548    --    Original_Entity is empty. This field is needed to handle properly
1549    --    named numbers in generic units, where the Associated_Node field
1550    --    interferes with the Entity field, making it impossible to preserve the
1551    --    original entity at the point of instantiation (ASIS problem).
1552
1553    --  Others_Discrete_Choices (List1-Sem)
1554    --    When a case statement or variant is analyzed, the semantic checks
1555    --    determine the actual list of choices that correspond to an others
1556    --    choice. This list is materialized for later use by the expander and
1557    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1558    --    this materialized list of choices, which is in standard format for a
1559    --    list of discrete choices, except that of course it cannot contain an
1560    --    N_Others_Choice entry.
1561
1562    --  Parameter_List_Truncated (Flag17-Sem)
1563    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1564    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1565    --    a result of a First_Optional_Parameter specification in an
1566    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1567    --    The truncation is done by the expander by removing trailing parameters
1568    --    from the argument list, in accordance with the set of rules allowing
1569    --    such parameter removal. In particular, parameters can be removed
1570    --    working from the end of the parameter list backwards up to and
1571    --    including the entry designated by First_Optional_Parameter in the
1572    --    Import pragma. Parameters can be removed if they are implicit and the
1573    --    default value is a known-at-compile-time value, including the use of
1574    --    the Null_Parameter attribute, or if explicit parameter values are
1575    --    present that match the corresponding defaults.
1576
1577    --  Parent_Spec (Node4-Sem)
1578    --    For a library unit that is a child unit spec (package or subprogram
1579    --    declaration, generic declaration or instantiation, or library level
1580    --    rename, this field points to the compilation unit node for the parent
1581    --    package specification. This field is Empty for library bodies (the
1582    --    parent spec in this case can be found from the corresponding spec).
1583
1584    --  Pragma_Enabled (Flag5-Sem)
1585    --    Present in N_Pragma nodes. This flag is relevant only for pragmas
1586    --    Assert, Check, Precondition, and Postcondition. It is true if the
1587    --    check corresponding to the pragma type is enabled at the point where
1588    --    the pragma appears.
1589
1590    --  Present_Expr (Uint3-Sem)
1591    --    Present in an N_Variant node. This has a meaningful value only after
1592    --    Gigi has back annotated the tree with representation information. At
1593    --    this point, it contains a reference to a gcc expression that depends
1594    --    on the values of one or more discriminants. Give a set of discriminant
1595    --    values, this expression evaluates to False (zero) if variant is not
1596    --    present, and True (non-zero) if it is present. See unit Repinfo for
1597    --    further details on gigi back annotation. This field is used during
1598    --    ASIS processing (data decomposition annex) to determine if a field is
1599    --    present or not.
1600
1601    --  Print_In_Hex (Flag13-Sem)
1602    --    Set on an N_Integer_Literal node to indicate that the value should be
1603    --    printed in hexadecimal in the sprint listing. Has no effect on
1604    --    legality or semantics of program, only on the displayed output. This
1605    --    is used to clarify output from the packed array cases.
1606
1607    --  Procedure_To_Call (Node2-Sem)
1608    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1609    --    and N_Extended_Return_Statement nodes. References the entity for the
1610    --    declaration of the procedure to be called to accomplish the required
1611    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1612    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1613    --    allocating the return value), and for the Deallocate procedure in the
1614    --    case of N_Free_Statement.
1615
1616    --  Raises_Constraint_Error (Flag7-Sem)
1617    --    Set on an expression whose evaluation will definitely fail constraint
1618    --    error check. In the case of static expressions, this flag must be set
1619    --    accurately (and if it is set, the expression is typically illegal
1620    --    unless it appears as a non-elaborated branch of a short-circuit form).
1621    --    For a non-static expression, this flag may be set whenever an
1622    --    expression (e.g. an aggregate) is known to raise constraint error. If
1623    --    set, the expression definitely will raise CE if elaborated at runtime.
1624    --    If not set, the expression may or may not raise CE. In other words, on
1625    --    static expressions, the flag is set accurately, on non-static
1626    --    expressions it is set conservatively.
1627
1628    --  Redundant_Use (Flag13-Sem)
1629    --    Present in nodes that can appear as an operand in a use clause or use
1630    --    type clause (identifiers, expanded names, attribute references). Set
1631    --    to indicate that a use is redundant (and therefore need not be undone
1632    --    on scope exit).
1633
1634    --  Renaming_Exception (Node2-Sem)
1635    --    Present in N_Exception_Declaration node. Used to point back to the
1636    --    exception renaming for an exception declared within a subprogram.
1637    --    What happens is that an exception declared in a subprogram is moved
1638    --    to the library level with a unique name, and the original exception
1639    --    becomes a renaming. This link from the library level exception to the
1640    --    renaming declaration allows registering of the proper exception name.
1641
1642    --  Return_Statement_Entity (Node5-Sem)
1643    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1644    --    Points to an E_Return_Statement representing the return statement.
1645
1646    --  Return_Object_Declarations (List3)
1647    --    Present in N_Extended_Return_Statement.
1648    --    Points to a list initially containing a single
1649    --    N_Object_Declaration representing the return object.
1650    --    We use a list (instead of just a pointer to the object decl)
1651    --    because Analyze wants to insert extra actions on this list.
1652
1653    --  Rounded_Result (Flag18-Sem)
1654    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1655    --    Used in the fixed-point cases to indicate that the result must be
1656    --    rounded as a result of the use of the 'Round attribute. Also used for
1657    --    integer N_Op_Divide nodes to indicate that the result should be
1658    --    rounded to the nearest integer (breaking ties away from zero), rather
1659    --    than truncated towards zero as usual. These rounded integer operations
1660    --    are the result of expansion of rounded fixed-point divide, conversion
1661    --    and multiplication operations.
1662
1663    --  SCIL_Entity (Node4-Sem)
1664    --    Present in SCIL nodes. Used to reference the tagged type associated
1665    --    with the SCIL node.
1666
1667    --  SCIL_Controlling_Tag (Node5-Sem)
1668    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1669    --    controlling tag of a dispatching call.
1670
1671    --  SCIL_Tag_Value (Node5-Sem)
1672    --    Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1673    --    value that is being tested.
1674
1675    --  SCIL_Target_Prim (Node2-Sem)
1676    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1677    --    type primitive associated with the SCIL node.
1678
1679    --  Scope (Node3-Sem)
1680    --    Present in defining identifiers, defining character literals and
1681    --    defining operator symbols (i.e. in all entities). The entities of a
1682    --    scope all use this field to reference the corresponding scope entity.
1683    --    See Einfo for further details.
1684
1685    --  Shift_Count_OK (Flag4-Sem)
1686    --    A flag present in shift nodes to indicate that the shift count is
1687    --    known to be in range, i.e. is in the range from zero to word length
1688    --    minus one. If this flag is not set, then the shift count may be
1689    --    outside this range, i.e. larger than the word length, and the code
1690    --    must ensure that such shift counts give the appropriate result.
1691
1692    --  Source_Type (Node1-Sem)
1693    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1694    --    source type entity for the unchecked conversion instantiation
1695    --    which gigi must do size validation for.
1696
1697    --  Split_PPC (Flag17)
1698    --     When a Pre or Postaspect specification is processed, it is broken
1699    --     into AND THEN sections. The left most section has Split_PPC set to
1700    --     False, indicating that it is the original specification (e.g. for
1701    --     posting errors). For other sections, Split_PPC is set to True.
1702    --     This flag is set in both the N_Aspect_Specification node itself,
1703    --     and in the pragma which is generated from this node.
1704
1705    --  Static_Processing_OK (Flag4-Sem)
1706    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1707    --    flag is set, the full value of the aggregate can be determined at
1708    --    compile time and the aggregate can be passed as is to the back-end.
1709    --    In this event it is irrelevant whether this flag is set or not.
1710    --    However, if the flag Compile_Time_Known_Aggregate is not set but
1711    --    Static_Processing_OK is set, the aggregate can (but need not) be
1712    --    converted into a compile time known aggregate by the expander. See
1713    --    Sem_Aggr for the specific conditions under which an aggregate has its
1714    --    Static_Processing_OK flag set.
1715
1716    --  Storage_Pool (Node1-Sem)
1717    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1718    --    and N_Extended_Return_Statement nodes. References the entity for the
1719    --    storage pool to be used for the allocate or free call or for the
1720    --    allocation of the returned value from function. Empty indicates that
1721    --    the global default pool is to be used. Note that in the case
1722    --    of a return statement, this field is set only if the function returns
1723    --    value of a type whose size is not known at compile time on the
1724    --    secondary stack.
1725
1726    --  Suppress_Loop_Warnings (Flag17-Sem)
1727    --    Used in N_Loop_Statement node to indicate that warnings within the
1728    --    body of the loop should be suppressed. This is set when the range
1729    --    of a FOR loop is known to be null, or is probably null (loop would
1730    --    only execute if invalid values are present).
1731
1732    --  Target_Type (Node2-Sem)
1733    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1734    --    type entity for the unchecked conversion instantiation which gigi must
1735    --    do size validation for.
1736
1737    --  Then_Actions (List3-Sem)
1738    --    This field is present in conditional expression nodes. During code
1739    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1740    --    actions at an appropriate place in the tree to get elaborated at the
1741    --    right time. For conditional expressions, we have to be sure that the
1742    --    actions for the Then branch are only elaborated if the condition is
1743    --    True. The Then_Actions field is used as a temporary parking place for
1744    --    these actions. The final tree is always rewritten to eliminate the
1745    --    need for this field, so in the tree passed to Gigi, this field is
1746    --    always set to No_List.
1747
1748    --  Treat_Fixed_As_Integer (Flag14-Sem)
1749    --    This flag appears in operator nodes for divide, multiply, mod and rem
1750    --    on fixed-point operands. It indicates that the operands are to be
1751    --    treated as integer values, ignoring small values. This flag is only
1752    --    set as a result of expansion of fixed-point operations. Typically a
1753    --    fixed-point multiplication in the source generates subsidiary
1754    --    multiplication and division operations that work with the underlying
1755    --    integer values and have this flag set. Note that this flag is not
1756    --    needed on other arithmetic operations (add, neg, subtract etc.) since
1757    --    in these cases it is always the case that fixed is treated as integer.
1758    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1759    --    leave such nodes alone, and whoever makes them must set the correct
1760    --    Etype value.
1761
1762    --  TSS_Elist (Elist3-Sem)
1763    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1764    --    entries for each TSS (type support subprogram) associated with the
1765    --    frozen type. The elements of the list are the entities for the
1766    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1767    --    if there are no type support subprograms for the type or if the freeze
1768    --    node is not for a type.
1769
1770    --  Unreferenced_In_Spec (Flag7-Sem)
1771    --    Present in N_With_Clause nodes. Set if the with clause is on the
1772    --    package or subprogram spec where the main unit is the corresponding
1773    --    body, and is not referenced by the spec (it may still be referenced by
1774    --    the body, so this flag is used to generate the proper message (see
1775    --    Sem_Util.Check_Unused_Withs for details)
1776
1777    --  Was_Originally_Stub (Flag13-Sem)
1778    --    This flag is set in the node for a proper body that replaces stub.
1779    --    During the analysis procedure, stubs in some situations get rewritten
1780    --    by the corresponding bodies, and we set this flag to remember that
1781    --    this happened. Note that it is not good enough to rely on the use of
1782    --    Original_Node here because of the case of nested instantiations where
1783    --    the substituted node can be copied.
1784
1785    --  Withed_Body (Node1-Sem)
1786    --    Present in N_With_Clause nodes. Set if the unit in whose context
1787    --    the with_clause appears instantiates a generic contained in the
1788    --    library unit of the with_clause and as a result loads its body.
1789    --    Used for a more precise unit traversal for CodePeer.
1790
1791    --  Zero_Cost_Handling (Flag5-Sem)
1792    --    This flag is set in all handled sequence of statement and exception
1793    --    handler nodes if exceptions are to be handled using the zero-cost
1794    --    mechanism (see Ada.Exceptions and System.Exceptions in files
1795    --    a-except.ads/adb and s-except.ads for full details). What gigi needs
1796    --    to do for such a handler is simply to put the code in the handler
1797    --    somewhere. The front end has generated all necessary labels.
1798
1799    --------------------------------------------------
1800    -- Note on Use of End_Label and End_Span Fields --
1801    --------------------------------------------------
1802
1803    --  Several constructs have end lines:
1804
1805    --    Loop Statement             end loop [loop_IDENTIFIER];
1806    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1807    --    Task Definition            end [task_IDENTIFIER]
1808    --    Protected Definition       end [protected_IDENTIFIER]
1809    --    Protected Body             end [protected_IDENTIFIER]
1810
1811    --    Block Statement            end [block_IDENTIFIER];
1812    --    Subprogram Body            end [DESIGNATOR];
1813    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1814    --    Task Body                  end [task_IDENTIFIER];
1815    --    Accept Statement           end [entry_IDENTIFIER]];
1816    --    Entry Body                 end [entry_IDENTIFIER];
1817
1818    --    If Statement               end if;
1819    --    Case Statement             end case;
1820
1821    --    Record Definition          end record;
1822    --    Enumeration Definition     );
1823
1824    --  The End_Label and End_Span fields are used to mark the locations of
1825    --  these lines, and also keep track of the label in the case where a label
1826    --  is present.
1827
1828    --  For the first group above, the End_Label field of the corresponding node
1829    --  is used to point to the label identifier. In the case where there is no
1830    --  label in the source, the parser supplies a dummy identifier (with
1831    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1832    --  marks the location of the token following the END token.
1833
1834    --  For the second group, the use of End_Label is similar, but the End_Label
1835    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1836    --  simply because in some cases there is no room in the parent node.
1837
1838    --  For the third group, there is never any label, and instead of using
1839    --  End_Label, we use the End_Span field which gives the location of the
1840    --  token following END, relative to the starting Sloc of the construct,
1841    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1842    --  following the End_Label.
1843
1844    --  The record definition case is handled specially, we treat it as though
1845    --  it required an optional label which is never present, and so the parser
1846    --  always builds a dummy identifier with Comes From Source set False. The
1847    --  reason we do this, rather than using End_Span in this case, is that we
1848    --  want to generate a cross-ref entry for the end of a record, since it
1849    --  represents a scope for name declaration purposes.
1850
1851    --  The enumeration definition case is handled in an exactly similar manner,
1852    --  building a dummy identifier to get a cross-reference.
1853
1854    --  Note: the reason we store the difference as a Uint, instead of storing
1855    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
1856    --  distinguished from other types of values, and we count on all general
1857    --  use fields being self describing. To make things easier for clients,
1858    --  note that we provide function End_Location, and procedure
1859    --  Set_End_Location to allow access to the logical value (which is the
1860    --  Source_Ptr value for the end token).
1861
1862    ---------------------
1863    -- Syntactic Nodes --
1864    ---------------------
1865
1866       ---------------------
1867       -- 2.3  Identifier --
1868       ---------------------
1869
1870       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1871       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1872
1873       --  An IDENTIFIER shall not be a reserved word
1874
1875       --  In the Ada grammar identifiers are the bottom level tokens which have
1876       --  very few semantics. Actual program identifiers are direct names. If
1877       --  we were being 100% honest with the grammar, then we would have a node
1878       --  called N_Direct_Name which would point to an identifier. However,
1879       --  that's too many extra nodes, so we just use the N_Identifier node
1880       --  directly as a direct name, and it contains the expression fields and
1881       --  Entity field that correspond to its use as a direct name. In those
1882       --  few cases where identifiers appear in contexts where they are not
1883       --  direct names (pragmas, pragma argument associations, attribute
1884       --  references and attribute definition clauses), the Chars field of the
1885       --  node contains the Name_Id for the identifier name.
1886
1887       --  Note: in GNAT, a reserved word can be treated as an identifier in two
1888       --  cases. First, an incorrect use of a reserved word as an identifier is
1889       --  diagnosed and then treated as a normal identifier. Second, an
1890       --  attribute designator of the form of a reserved word (access, delta,
1891       --  digits, range) is treated as an identifier.
1892
1893       --  Note: The set of letters that is permitted in an identifier depends
1894       --  on the character set in use. See package Csets for full details.
1895
1896       --  N_Identifier
1897       --  Sloc points to identifier
1898       --  Chars (Name1) contains the Name_Id for the identifier
1899       --  Entity (Node4-Sem)
1900       --  Associated_Node (Node4-Sem)
1901       --  Original_Discriminant (Node2-Sem)
1902       --  Redundant_Use (Flag13-Sem)
1903       --  Has_Private_View (Flag11-Sem) (set in generic units)
1904       --  plus fields for expression
1905
1906       --------------------------
1907       -- 2.4  Numeric Literal --
1908       --------------------------
1909
1910       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1911
1912       ----------------------------
1913       -- 2.4.1  Decimal Literal --
1914       ----------------------------
1915
1916       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1917
1918       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1919
1920       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1921
1922       --  Decimal literals appear in the tree as either integer literal nodes
1923       --  or real literal nodes, depending on whether a period is present.
1924
1925       --  Note: literal nodes appear as a result of direct use of literals
1926       --  in the source program, and also as the result of evaluating
1927       --  expressions at compile time. In the latter case, it is possible
1928       --  to construct real literals that have no syntactic representation
1929       --  using the standard literal format. Such literals are listed by
1930       --  Sprint using the notation [numerator / denominator].
1931
1932       --  Note: the value of an integer literal node created by the front end
1933       --  is never outside the range of values of the base type. However, it
1934       --  can be the case that the value is outside the range of the
1935       --  particular subtype. This happens in the case of integer overflows
1936       --  with checks suppressed.
1937
1938       --  N_Integer_Literal
1939       --  Sloc points to literal
1940       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1941       --  has been constant-folded into its literal value.
1942       --  Intval (Uint3) contains integer value of literal
1943       --  plus fields for expression
1944       --  Print_In_Hex (Flag13-Sem)
1945
1946       --  N_Real_Literal
1947       --  Sloc points to literal
1948       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1949       --  has been constant-folded into its literal value.
1950       --  Realval (Ureal3) contains real value of literal
1951       --  Corresponding_Integer_Value (Uint4-Sem)
1952       --  Is_Machine_Number (Flag11-Sem)
1953       --  plus fields for expression
1954
1955       --------------------------
1956       -- 2.4.2  Based Literal --
1957       --------------------------
1958
1959       --  BASED_LITERAL ::=
1960       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1961
1962       --  BASE ::= NUMERAL
1963
1964       --  BASED_NUMERAL ::=
1965       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1966
1967       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1968
1969       --  Based literals appear in the tree as either integer literal nodes
1970       --  or real literal nodes, depending on whether a period is present.
1971
1972       ----------------------------
1973       -- 2.5  Character Literal --
1974       ----------------------------
1975
1976       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1977
1978       --  N_Character_Literal
1979       --  Sloc points to literal
1980       --  Chars (Name1) contains the Name_Id for the identifier
1981       --  Char_Literal_Value (Uint2) contains the literal value
1982       --  Entity (Node4-Sem)
1983       --  Associated_Node (Node4-Sem)
1984       --  Has_Private_View (Flag11-Sem) set in generic units.
1985       --  plus fields for expression
1986
1987       --  Note: the Entity field will be missing (set to Empty) for character
1988       --  literals whose type is Standard.Wide_Character or Standard.Character
1989       --  or a type derived from one of these two. In this case the character
1990       --  literal stands for its own coding. The reason we take this irregular
1991       --  short cut is to avoid the need to build lots of junk defining
1992       --  character literal nodes.
1993
1994       -------------------------
1995       -- 2.6  String Literal --
1996       -------------------------
1997
1998       --  STRING LITERAL ::= "{STRING_ELEMENT}"
1999
2000       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
2001       --  single GRAPHIC_CHARACTER other than a quotation mark.
2002       --
2003       --  Is_Folded_In_Parser is True if the parser created this literal by
2004       --  folding a sequence of "&" operators. For example, if the source code
2005       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2006       --  is set. This flag is needed because the parser doesn't know about
2007       --  visibility, so the folded result might be wrong, and semantic
2008       --  analysis needs to check for that.
2009
2010       --  N_String_Literal
2011       --  Sloc points to literal
2012       --  Strval (Str3) contains Id of string value
2013       --  Has_Wide_Character (Flag11-Sem)
2014       --  Has_Wide_Wide_Character (Flag13-Sem)
2015       --  Is_Folded_In_Parser (Flag4)
2016       --  plus fields for expression
2017
2018       ------------------
2019       -- 2.7  Comment --
2020       ------------------
2021
2022       --  A COMMENT starts with two adjacent hyphens and extends up to the
2023       --  end of the line. A COMMENT may appear on any line of a program.
2024
2025       --  Comments are skipped by the scanner and do not appear in the tree.
2026       --  It is possible to reconstruct the position of comments with respect
2027       --  to the elements of the tree by using the source position (Sloc)
2028       --  pointers that appear in every tree node.
2029
2030       -----------------
2031       -- 2.8  Pragma --
2032       -----------------
2033
2034       --  PRAGMA ::= pragma IDENTIFIER
2035       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2036
2037       --  Note that a pragma may appear in the tree anywhere a declaration
2038       --  or a statement may appear, as well as in some other situations
2039       --  which are explicitly documented.
2040
2041       --  N_Pragma
2042       --  Sloc points to PRAGMA
2043       --  Next_Pragma (Node1-Sem)
2044       --  Pragma_Argument_Associations (List2) (set to No_List if none)
2045       --  Debug_Statement (Node3) (set to Empty if not Debug)
2046       --  Pragma_Identifier (Node4)
2047       --  Next_Rep_Item (Node5-Sem)
2048       --  Pragma_Enabled (Flag5-Sem)
2049       --  From_Aspect_Specification (Flag13-Sem)
2050       --  Is_Delayed_Aspect (Flag14-Sem)
2051       --  Import_Interface_Present (Flag16-Sem)
2052       --  Aspect_Cancel (Flag11-Sem)
2053       --  Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2054       --  Class_Present (Flag6) set if from Aspect with 'Class
2055
2056       --  Note: we should have a section on what pragmas are passed on to
2057       --  the back end to be processed. This section should note that pragma
2058       --  Psect_Object is always converted to Common_Object, but there are
2059       --  undoubtedly many other similar notes required ???
2060
2061       --  Note: a utility function Pragma_Name may be applied to pragma nodes
2062       --  to conveniently obtain the Chars field of the Pragma_Identifier.
2063
2064       --  Note: if From_Aspect_Specification is set, then Sloc points to the
2065       --  aspect name, as does the Pragma_Identifier. In this case if the
2066       --  pragma has a local name argument (such as pragma Inline), it is
2067       --  resolved to point to the specific entity affected by the pragma.
2068
2069    --------------------------------------
2070       -- 2.8  Pragma Argument Association --
2071       --------------------------------------
2072
2073       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2074       --    [pragma_argument_IDENTIFIER =>] NAME
2075       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
2076
2077       --  N_Pragma_Argument_Association
2078       --  Sloc points to first token in association
2079       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
2080       --  Expression (Node3)
2081
2082       ------------------------
2083       -- 2.9  Reserved Word --
2084       ------------------------
2085
2086       --  Reserved words are parsed by the scanner, and returned as the
2087       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2088
2089       ----------------------------
2090       -- 3.1  Basic Declaration --
2091       ----------------------------
2092
2093       --  BASIC_DECLARATION ::=
2094       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
2095       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
2096       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
2097       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
2098       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
2099       --  | GENERIC_INSTANTIATION
2100
2101       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2102       --  see further description in section on semantic nodes.
2103
2104       --  Also, in the tree that is constructed, a pragma may appear
2105       --  anywhere that a declaration may appear.
2106
2107       ------------------------------
2108       -- 3.1  Defining Identifier --
2109       ------------------------------
2110
2111       --  DEFINING_IDENTIFIER ::= IDENTIFIER
2112
2113       --  A defining identifier is an entity, which has additional fields
2114       --  depending on the setting of the Ekind field. These additional
2115       --  fields are defined (and access subprograms declared) in package
2116       --  Einfo.
2117
2118       --  Note: N_Defining_Identifier is an extended node whose fields are
2119       --  deliberate layed out to match the layout of fields in an ordinary
2120       --  N_Identifier node allowing for easy alteration of an identifier
2121       --  node into a defining identifier node. For details, see procedure
2122       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2123
2124       --  N_Defining_Identifier
2125       --  Sloc points to identifier
2126       --  Chars (Name1) contains the Name_Id for the identifier
2127       --  Next_Entity (Node2-Sem)
2128       --  Scope (Node3-Sem)
2129       --  Etype (Node5-Sem)
2130
2131       -----------------------------
2132       -- 3.2.1  Type Declaration --
2133       -----------------------------
2134
2135       --  TYPE_DECLARATION ::=
2136       --    FULL_TYPE_DECLARATION
2137       --  | INCOMPLETE_TYPE_DECLARATION
2138       --  | PRIVATE_TYPE_DECLARATION
2139       --  | PRIVATE_EXTENSION_DECLARATION
2140
2141       ----------------------------------
2142       -- 3.2.1  Full Type Declaration --
2143       ----------------------------------
2144
2145       --  FULL_TYPE_DECLARATION ::=
2146       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2147       --      is TYPE_DEFINITION
2148       --        [ASPECT_SPECIFICATIONS];
2149
2150       --  | TASK_TYPE_DECLARATION
2151       --  | PROTECTED_TYPE_DECLARATION
2152
2153       --  The full type declaration node is used only for the first case. The
2154       --  second case (concurrent type declaration), is represented directly
2155       --  by a task type declaration or a protected type declaration.
2156
2157       --  N_Full_Type_Declaration
2158       --  Sloc points to TYPE
2159       --  Defining_Identifier (Node1)
2160       --  Discriminant_Specifications (List4) (set to No_List if none)
2161       --  Type_Definition (Node3)
2162       --  Discr_Check_Funcs_Built (Flag11-Sem)
2163
2164       ----------------------------
2165       -- 3.2.1  Type Definition --
2166       ----------------------------
2167
2168       --  TYPE_DEFINITION ::=
2169       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2170       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2171       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2172       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2173
2174       --------------------------------
2175       -- 3.2.2  Subtype Declaration --
2176       --------------------------------
2177
2178       --  SUBTYPE_DECLARATION ::=
2179       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2180
2181       --  The subtype indication field is set to Empty for subtypes
2182       --  declared in package Standard (Positive, Natural).
2183
2184       --  N_Subtype_Declaration
2185       --  Sloc points to SUBTYPE
2186       --  Defining_Identifier (Node1)
2187       --  Null_Exclusion_Present (Flag11)
2188       --  Subtype_Indication (Node5)
2189       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2190       --  Exception_Junk (Flag8-Sem)
2191
2192       -------------------------------
2193       -- 3.2.2  Subtype Indication --
2194       -------------------------------
2195
2196       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2197
2198       --  Note: if no constraint is present, the subtype indication appears
2199       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2200       --  node is used only if a constraint is present.
2201
2202       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2203       --  with the null-exclusion part (see AI-231), we had to introduce a new
2204       --  attribute in all the parents of subtype_indication nodes to indicate
2205       --  if the null-exclusion is present.
2206
2207       --  Note: the reason that this node has expression fields is that a
2208       --  subtype indication can appear as an operand of a membership test.
2209
2210       --  N_Subtype_Indication
2211       --  Sloc points to first token of subtype mark
2212       --  Subtype_Mark (Node4)
2213       --  Constraint (Node3)
2214       --  Etype (Node5-Sem)
2215       --  Must_Not_Freeze (Flag8-Sem)
2216
2217       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2218       --  reason for this redundancy is so that in a list of array index types,
2219       --  the Etype can be uniformly accessed to determine the subscript type.
2220       --  This means that no Itype is constructed for the actual subtype that
2221       --  is created by the subtype indication. If such an Itype is required,
2222       --  it is constructed in the context in which the indication appears.
2223
2224       -------------------------
2225       -- 3.2.2  Subtype Mark --
2226       -------------------------
2227
2228       --  SUBTYPE_MARK ::= subtype_NAME
2229
2230       -----------------------
2231       -- 3.2.2  Constraint --
2232       -----------------------
2233
2234       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2235
2236       ------------------------------
2237       -- 3.2.2  Scalar Constraint --
2238       ------------------------------
2239
2240       --  SCALAR_CONSTRAINT ::=
2241       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2242
2243       ---------------------------------
2244       -- 3.2.2  Composite Constraint --
2245       ---------------------------------
2246
2247       --  COMPOSITE_CONSTRAINT ::=
2248       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2249
2250       -------------------------------
2251       -- 3.3.1  Object Declaration --
2252       -------------------------------
2253
2254       --  OBJECT_DECLARATION ::=
2255       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2256       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2257       --        [ASPECT_SPECIFICATIONS];
2258       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2259       --      ACCESS_DEFINITION [:= EXPRESSION]
2260       --        [ASPECT_SPECIFICATIONS];
2261       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2262       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2263       --        [ASPECT_SPECIFICATIONS];
2264       --  | SINGLE_TASK_DECLARATION
2265       --  | SINGLE_PROTECTED_DECLARATION
2266
2267       --  Note: aliased is not permitted in Ada 83 mode
2268
2269       --  The N_Object_Declaration node is only for the first two cases.
2270       --  Single task declaration is handled by P_Task (9.1)
2271       --  Single protected declaration is handled by P_protected (9.5)
2272
2273       --  Although the syntax allows multiple identifiers in the list, the
2274       --  semantics is as though successive declarations were given with
2275       --  identical type definition and expression components. To simplify
2276       --  semantic processing, the parser represents a multiple declaration
2277       --  case as a sequence of single declarations, using the More_Ids and
2278       --  Prev_Ids flags to preserve the original source form as described
2279       --  in the section on "Handling of Defining Identifier Lists".
2280
2281       --  The flag Has_Init_Expression is set if an initializing expression
2282       --  is present. Normally it is set if and only if Expression contains
2283       --  a non-empty value, but there is an exception to this. When the
2284       --  initializing expression is an aggregate which requires explicit
2285       --  assignments, the Expression field gets set to Empty, but this flag
2286       --  is still set, so we don't forget we had an initializing expression.
2287
2288       --  Note: if a range check is required for the initialization
2289       --  expression then the Do_Range_Check flag is set in the Expression,
2290       --  with the check being done against the type given by the object
2291       --  definition, which is also the Etype of the defining identifier.
2292
2293       --  Note: the contents of the Expression field must be ignored (i.e.
2294       --  treated as though it were Empty) if No_Initialization is set True.
2295
2296       --  Note: the back end places some restrictions on the form of the
2297       --  Expression field. If the object being declared is Atomic, then
2298       --  the Expression may not have the form of an aggregate (since this
2299       --  might cause the back end to generate separate assignments). In this
2300       --  case the front end must generate an extra temporary and initialize
2301       --  this temporary as required (the temporary itself is not atomic).
2302
2303       --  Note: there is not node kind for object definition. Instead, the
2304       --  corresponding field holds a subtype indication, an array type
2305       --  definition, or (Ada 2005, AI-406) an access definition.
2306
2307       --  N_Object_Declaration
2308       --  Sloc points to first identifier
2309       --  Defining_Identifier (Node1)
2310       --  Aliased_Present (Flag4) set if ALIASED appears
2311       --  Constant_Present (Flag17) set if CONSTANT appears
2312       --  Null_Exclusion_Present (Flag11)
2313       --  Object_Definition (Node4) subtype indic./array type def./access def.
2314       --  Expression (Node3) (set to Empty if not present)
2315       --  Handler_List_Entry (Node2-Sem)
2316       --  Corresponding_Generic_Association (Node5-Sem)
2317       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2318       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2319       --  No_Initialization (Flag13-Sem)
2320       --  Assignment_OK (Flag15-Sem)
2321       --  Exception_Junk (Flag8-Sem)
2322       --  Is_Subprogram_Descriptor (Flag16-Sem)
2323       --  Has_Init_Expression (Flag14)
2324
2325       -------------------------------------
2326       -- 3.3.1  Defining Identifier List --
2327       -------------------------------------
2328
2329       --  DEFINING_IDENTIFIER_LIST ::=
2330       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2331
2332       -------------------------------
2333       -- 3.3.2  Number Declaration --
2334       -------------------------------
2335
2336       --  NUMBER_DECLARATION ::=
2337       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2338
2339       --  Although the syntax allows multiple identifiers in the list, the
2340       --  semantics is as though successive declarations were given with
2341       --  identical expressions. To simplify semantic processing, the parser
2342       --  represents a multiple declaration case as a sequence of single
2343       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2344       --  the original source form as described in the section on "Handling
2345       --  of Defining Identifier Lists".
2346
2347       --  N_Number_Declaration
2348       --  Sloc points to first identifier
2349       --  Defining_Identifier (Node1)
2350       --  Expression (Node3)
2351       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2352       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2353
2354       ----------------------------------
2355       -- 3.4  Derived Type Definition --
2356       ----------------------------------
2357
2358       --  DERIVED_TYPE_DEFINITION ::=
2359       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2360       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2361
2362       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2363       --  in Ada 83 mode
2364
2365       --  Note: a record extension part is required if ABSTRACT is present
2366
2367       --  N_Derived_Type_Definition
2368       --  Sloc points to NEW
2369       --  Abstract_Present (Flag4)
2370       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2371       --  Subtype_Indication (Node5)
2372       --  Record_Extension_Part (Node3) (set to Empty if not present)
2373       --  Limited_Present (Flag17)
2374       --  Task_Present (Flag5) set in task interfaces
2375       --  Protected_Present (Flag6) set in protected interfaces
2376       --  Synchronized_Present (Flag7) set in interfaces
2377       --  Interface_List (List2) (set to No_List if none)
2378       --  Interface_Present (Flag16) set in abstract interfaces
2379
2380       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2381       --        Interface_List, and Interface_Present are used for abstract
2382       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2383
2384       ---------------------------
2385       -- 3.5  Range Constraint --
2386       ---------------------------
2387
2388       --  RANGE_CONSTRAINT ::= range RANGE
2389
2390       --  N_Range_Constraint
2391       --  Sloc points to RANGE
2392       --  Range_Expression (Node4)
2393
2394       ----------------
2395       -- 3.5  Range --
2396       ----------------
2397
2398       --  RANGE ::=
2399       --    RANGE_ATTRIBUTE_REFERENCE
2400       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2401
2402       --  Note: the case of a range given as a range attribute reference
2403       --  appears directly in the tree as an attribute reference.
2404
2405       --  Note: the field name for a reference to a range is Range_Expression
2406       --  rather than Range, because range is a reserved keyword in Ada!
2407
2408       --  Note: the reason that this node has expression fields is that a
2409       --  range can appear as an operand of a membership test. The Etype
2410       --  field is the type of the range (we do NOT construct an implicit
2411       --  subtype to represent the range exactly).
2412
2413       --  N_Range
2414       --  Sloc points to ..
2415       --  Low_Bound (Node1)
2416       --  High_Bound (Node2)
2417       --  Includes_Infinities (Flag11)
2418       --  plus fields for expression
2419
2420       --  Note: if the range appears in a context, such as a subtype
2421       --  declaration, where range checks are required on one or both of
2422       --  the expression fields, then type conversion nodes are inserted
2423       --  to represent the required checks.
2424
2425       ----------------------------------------
2426       -- 3.5.1  Enumeration Type Definition --
2427       ----------------------------------------
2428
2429       --  ENUMERATION_TYPE_DEFINITION ::=
2430       --    (ENUMERATION_LITERAL_SPECIFICATION
2431       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2432
2433       --  Note: the Literals field in the node described below is null for
2434       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2435       --  which special processing handles these types as special cases.
2436
2437       --  N_Enumeration_Type_Definition
2438       --  Sloc points to left parenthesis
2439       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2440       --  End_Label (Node4) (set to Empty if internally generated record)
2441
2442       ----------------------------------------------
2443       -- 3.5.1  Enumeration Literal Specification --
2444       ----------------------------------------------
2445
2446       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2447       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2448
2449       ---------------------------------------
2450       -- 3.5.1  Defining Character Literal --
2451       ---------------------------------------
2452
2453       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2454
2455       --  A defining character literal is an entity, which has additional
2456       --  fields depending on the setting of the Ekind field. These
2457       --  additional fields are defined (and access subprograms declared)
2458       --  in package Einfo.
2459
2460       --  Note: N_Defining_Character_Literal is an extended node whose fields
2461       --  are deliberate layed out to match the layout of fields in an ordinary
2462       --  N_Character_Literal node allowing for easy alteration of a character
2463       --  literal node into a defining character literal node. For details, see
2464       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2465
2466       --  N_Defining_Character_Literal
2467       --  Sloc points to literal
2468       --  Chars (Name1) contains the Name_Id for the identifier
2469       --  Next_Entity (Node2-Sem)
2470       --  Scope (Node3-Sem)
2471       --  Etype (Node5-Sem)
2472
2473       ------------------------------------
2474       -- 3.5.4  Integer Type Definition --
2475       ------------------------------------
2476
2477       --  Note: there is an error in this rule in the latest version of the
2478       --  grammar, so we have retained the old rule pending clarification.
2479
2480       --  INTEGER_TYPE_DEFINITION ::=
2481       --    SIGNED_INTEGER_TYPE_DEFINITION
2482       --  | MODULAR_TYPE_DEFINITION
2483
2484       -------------------------------------------
2485       -- 3.5.4  Signed Integer Type Definition --
2486       -------------------------------------------
2487
2488       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2489       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2490
2491       --  Note: the Low_Bound and High_Bound fields are set to Empty
2492       --  for integer types defined in package Standard.
2493
2494       --  N_Signed_Integer_Type_Definition
2495       --  Sloc points to RANGE
2496       --  Low_Bound (Node1)
2497       --  High_Bound (Node2)
2498
2499       ------------------------------------
2500       -- 3.5.4  Modular Type Definition --
2501       ------------------------------------
2502
2503       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2504
2505       --  N_Modular_Type_Definition
2506       --  Sloc points to MOD
2507       --  Expression (Node3)
2508
2509       ---------------------------------
2510       -- 3.5.6  Real Type Definition --
2511       ---------------------------------
2512
2513       --  REAL_TYPE_DEFINITION ::=
2514       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2515
2516       --------------------------------------
2517       -- 3.5.7  Floating Point Definition --
2518       --------------------------------------
2519
2520       --  FLOATING_POINT_DEFINITION ::=
2521       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2522
2523       --  Note: The Digits_Expression and Real_Range_Specifications fields
2524       --  are set to Empty for floating-point types declared in Standard.
2525
2526       --  N_Floating_Point_Definition
2527       --  Sloc points to DIGITS
2528       --  Digits_Expression (Node2)
2529       --  Real_Range_Specification (Node4) (set to Empty if not present)
2530
2531       -------------------------------------
2532       -- 3.5.7  Real Range Specification --
2533       -------------------------------------
2534
2535       --  REAL_RANGE_SPECIFICATION ::=
2536       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2537
2538       --  N_Real_Range_Specification
2539       --  Sloc points to RANGE
2540       --  Low_Bound (Node1)
2541       --  High_Bound (Node2)
2542
2543       -----------------------------------
2544       -- 3.5.9  Fixed Point Definition --
2545       -----------------------------------
2546
2547       --  FIXED_POINT_DEFINITION ::=
2548       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2549
2550       --------------------------------------------
2551       -- 3.5.9  Ordinary Fixed Point Definition --
2552       --------------------------------------------
2553
2554       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2555       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2556
2557       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2558
2559       --  N_Ordinary_Fixed_Point_Definition
2560       --  Sloc points to DELTA
2561       --  Delta_Expression (Node3)
2562       --  Real_Range_Specification (Node4)
2563
2564       -------------------------------------------
2565       -- 3.5.9  Decimal Fixed Point Definition --
2566       -------------------------------------------
2567
2568       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2569       --    delta static_EXPRESSION
2570       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2571
2572       --  Note: decimal types are not permitted in Ada 83 mode
2573
2574       --  N_Decimal_Fixed_Point_Definition
2575       --  Sloc points to DELTA
2576       --  Delta_Expression (Node3)
2577       --  Digits_Expression (Node2)
2578       --  Real_Range_Specification (Node4) (set to Empty if not present)
2579
2580       ------------------------------
2581       -- 3.5.9  Digits Constraint --
2582       ------------------------------
2583
2584       --  DIGITS_CONSTRAINT ::=
2585       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2586
2587       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2588       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2589
2590       --  N_Digits_Constraint
2591       --  Sloc points to DIGITS
2592       --  Digits_Expression (Node2)
2593       --  Range_Constraint (Node4) (set to Empty if not present)
2594
2595       --------------------------------
2596       -- 3.6  Array Type Definition --
2597       --------------------------------
2598
2599       --  ARRAY_TYPE_DEFINITION ::=
2600       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2601
2602       -----------------------------------------
2603       -- 3.6  Unconstrained Array Definition --
2604       -----------------------------------------
2605
2606       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2607       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2608       --      COMPONENT_DEFINITION
2609
2610       --  Note: dimensionality of array is indicated by number of entries in
2611       --  the Subtype_Marks list, which has one entry for each dimension.
2612
2613       --  N_Unconstrained_Array_Definition
2614       --  Sloc points to ARRAY
2615       --  Subtype_Marks (List2)
2616       --  Component_Definition (Node4)
2617
2618       -----------------------------------
2619       -- 3.6  Index Subtype Definition --
2620       -----------------------------------
2621
2622       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2623
2624       --  There is no explicit node in the tree for an index subtype
2625       --  definition since the N_Unconstrained_Array_Definition node
2626       --  incorporates the type marks which appear in this context.
2627
2628       ---------------------------------------
2629       -- 3.6  Constrained Array Definition --
2630       ---------------------------------------
2631
2632       --  CONSTRAINED_ARRAY_DEFINITION ::=
2633       --    array (DISCRETE_SUBTYPE_DEFINITION
2634       --      {, DISCRETE_SUBTYPE_DEFINITION})
2635       --        of COMPONENT_DEFINITION
2636
2637       --  Note: dimensionality of array is indicated by number of entries
2638       --  in the Discrete_Subtype_Definitions list, which has one entry
2639       --  for each dimension.
2640
2641       --  N_Constrained_Array_Definition
2642       --  Sloc points to ARRAY
2643       --  Discrete_Subtype_Definitions (List2)
2644       --  Component_Definition (Node4)
2645
2646       --------------------------------------
2647       -- 3.6  Discrete Subtype Definition --
2648       --------------------------------------
2649
2650       --  DISCRETE_SUBTYPE_DEFINITION ::=
2651       --    discrete_SUBTYPE_INDICATION | RANGE
2652
2653       -------------------------------
2654       -- 3.6  Component Definition --
2655       -------------------------------
2656
2657       --  COMPONENT_DEFINITION ::=
2658       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2659
2660       --  Note: although the syntax does not permit a component definition to
2661       --  be an anonymous array (and the parser will diagnose such an attempt
2662       --  with an appropriate message), it is possible for anonymous arrays
2663       --  to appear as component definitions. The semantics and back end handle
2664       --  this case properly, and the expander in fact generates such cases.
2665       --  Access_Definition is an optional field that gives support to
2666       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2667       --  Subtype_Indication field or else the Access_Definition field.
2668
2669       --  N_Component_Definition
2670       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2671       --  Aliased_Present (Flag4)
2672       --  Null_Exclusion_Present (Flag11)
2673       --  Subtype_Indication (Node5) (set to Empty if not present)
2674       --  Access_Definition (Node3) (set to Empty if not present)
2675
2676       -----------------------------
2677       -- 3.6.1  Index Constraint --
2678       -----------------------------
2679
2680       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2681
2682       --  It is not in general possible to distinguish between discriminant
2683       --  constraints and index constraints at parse time, since a simple
2684       --  name could be either the subtype mark of a discrete range, or an
2685       --  expression in a discriminant association with no name. Either
2686       --  entry appears simply as the name, and the semantic parse must
2687       --  distinguish between the two cases. Thus we use a common tree
2688       --  node format for both of these constraint types.
2689
2690       --  See Discriminant_Constraint for format of node
2691
2692       ---------------------------
2693       -- 3.6.1  Discrete Range --
2694       ---------------------------
2695
2696       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2697
2698       ----------------------------
2699       -- 3.7  Discriminant Part --
2700       ----------------------------
2701
2702       --  DISCRIMINANT_PART ::=
2703       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2704
2705       ------------------------------------
2706       -- 3.7  Unknown Discriminant Part --
2707       ------------------------------------
2708
2709       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2710
2711       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2712
2713       --  There is no explicit node in the tree for an unknown discriminant
2714       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2715       --  parent node.
2716
2717       ----------------------------------
2718       -- 3.7  Known Discriminant Part --
2719       ----------------------------------
2720
2721       --  KNOWN_DISCRIMINANT_PART ::=
2722       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2723
2724       -------------------------------------
2725       -- 3.7  Discriminant Specification --
2726       -------------------------------------
2727
2728       --  DISCRIMINANT_SPECIFICATION ::=
2729       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2730       --      [:= DEFAULT_EXPRESSION]
2731       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2732       --      [:= DEFAULT_EXPRESSION]
2733
2734       --  Although the syntax allows multiple identifiers in the list, the
2735       --  semantics is as though successive specifications were given with
2736       --  identical type definition and expression components. To simplify
2737       --  semantic processing, the parser represents a multiple declaration
2738       --  case as a sequence of single specifications, using the More_Ids and
2739       --  Prev_Ids flags to preserve the original source form as described
2740       --  in the section on "Handling of Defining Identifier Lists".
2741
2742       --  N_Discriminant_Specification
2743       --  Sloc points to first identifier
2744       --  Defining_Identifier (Node1)
2745       --  Null_Exclusion_Present (Flag11)
2746       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2747       --  Expression (Node3) (set to Empty if no default expression)
2748       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2749       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2750
2751       -----------------------------
2752       -- 3.7  Default Expression --
2753       -----------------------------
2754
2755       --  DEFAULT_EXPRESSION ::= EXPRESSION
2756
2757       ------------------------------------
2758       -- 3.7.1  Discriminant Constraint --
2759       ------------------------------------
2760
2761       --  DISCRIMINANT_CONSTRAINT ::=
2762       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2763
2764       --  It is not in general possible to distinguish between discriminant
2765       --  constraints and index constraints at parse time, since a simple
2766       --  name could be either the subtype mark of a discrete range, or an
2767       --  expression in a discriminant association with no name. Either
2768       --  entry appears simply as the name, and the semantic parse must
2769       --  distinguish between the two cases. Thus we use a common tree
2770       --  node format for both of these constraint types.
2771
2772       --  N_Index_Or_Discriminant_Constraint
2773       --  Sloc points to left paren
2774       --  Constraints (List1) points to list of discrete ranges or
2775       --    discriminant associations
2776
2777       -------------------------------------
2778       -- 3.7.1  Discriminant Association --
2779       -------------------------------------
2780
2781       --  DISCRIMINANT_ASSOCIATION ::=
2782       --    [discriminant_SELECTOR_NAME
2783       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2784
2785       --  Note: a discriminant association that has no selector name list
2786       --  appears directly as an expression in the tree.
2787
2788       --  N_Discriminant_Association
2789       --  Sloc points to first token of discriminant association
2790       --  Selector_Names (List1) (always non-empty, since if no selector
2791       --   names are present, this node is not used, see comment above)
2792       --  Expression (Node3)
2793
2794       ---------------------------------
2795       -- 3.8  Record Type Definition --
2796       ---------------------------------
2797
2798       --  RECORD_TYPE_DEFINITION ::=
2799       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2800
2801       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2802
2803       --  There is no explicit node in the tree for a record type definition.
2804       --  Instead the flags for Tagged_Present and Limited_Present appear in
2805       --  the N_Record_Definition node for a record definition appearing in
2806       --  the context of a record type definition.
2807
2808       ----------------------------
2809       -- 3.8  Record Definition --
2810       ----------------------------
2811
2812       --  RECORD_DEFINITION ::=
2813       --    record
2814       --      COMPONENT_LIST
2815       --    end record
2816       --  | null record
2817
2818       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2819       --  flags appear only for a record definition appearing in a record
2820       --  type definition.
2821
2822       --  Note: the NULL RECORD case is not permitted in Ada 83
2823
2824       --  N_Record_Definition
2825       --  Sloc points to RECORD or NULL
2826       --  End_Label (Node4) (set to Empty if internally generated record)
2827       --  Abstract_Present (Flag4)
2828       --  Tagged_Present (Flag15)
2829       --  Limited_Present (Flag17)
2830       --  Component_List (Node1) empty in null record case
2831       --  Null_Present (Flag13) set in null record case
2832       --  Task_Present (Flag5) set in task interfaces
2833       --  Protected_Present (Flag6) set in protected interfaces
2834       --  Synchronized_Present (Flag7) set in interfaces
2835       --  Interface_Present (Flag16) set in abstract interfaces
2836       --  Interface_List (List2) (set to No_List if none)
2837
2838       --  Note: Task_Present, Protected_Present, Synchronized _Present,
2839       --        Interface_List and Interface_Present are used for abstract
2840       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2841
2842       -------------------------
2843       -- 3.8  Component List --
2844       -------------------------
2845
2846       --  COMPONENT_LIST ::=
2847       --    COMPONENT_ITEM {COMPONENT_ITEM}
2848       --  | {COMPONENT_ITEM} VARIANT_PART
2849       --  | null;
2850
2851       --  N_Component_List
2852       --  Sloc points to first token of component list
2853       --  Component_Items (List3)
2854       --  Variant_Part (Node4) (set to Empty if no variant part)
2855       --  Null_Present (Flag13)
2856
2857       -------------------------
2858       -- 3.8  Component Item --
2859       -------------------------
2860
2861       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2862
2863       --  Note: A component item can also be a pragma, and in the tree
2864       --  that is obtained after semantic processing, a component item
2865       --  can be an N_Null node resulting from a non-recognized pragma.
2866
2867       --------------------------------
2868       -- 3.8  Component Declaration --
2869       --------------------------------
2870
2871       --  COMPONENT_DECLARATION ::=
2872       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2873       --      [:= DEFAULT_EXPRESSION]
2874       --        [ASPECT_SPECIFICATIONS];
2875
2876       --  Note: although the syntax does not permit a component definition to
2877       --  be an anonymous array (and the parser will diagnose such an attempt
2878       --  with an appropriate message), it is possible for anonymous arrays
2879       --  to appear as component definitions. The semantics and back end handle
2880       --  this case properly, and the expander in fact generates such cases.
2881
2882       --  Although the syntax allows multiple identifiers in the list, the
2883       --  semantics is as though successive declarations were given with the
2884       --  same component definition and expression components. To simplify
2885       --  semantic processing, the parser represents a multiple declaration
2886       --  case as a sequence of single declarations, using the More_Ids and
2887       --  Prev_Ids flags to preserve the original source form as described
2888       --  in the section on "Handling of Defining Identifier Lists".
2889
2890       --  N_Component_Declaration
2891       --  Sloc points to first identifier
2892       --  Defining_Identifier (Node1)
2893       --  Component_Definition (Node4)
2894       --  Expression (Node3) (set to Empty if no default expression)
2895       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2896       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2897
2898       -------------------------
2899       -- 3.8.1  Variant Part --
2900       -------------------------
2901
2902       --  VARIANT_PART ::=
2903       --    case discriminant_DIRECT_NAME is
2904       --      VARIANT
2905       --      {VARIANT}
2906       --    end case;
2907
2908       --  Note: the variants list can contain pragmas as well as variants.
2909       --  In a properly formed program there is at least one variant.
2910
2911       --  N_Variant_Part
2912       --  Sloc points to CASE
2913       --  Name (Node2)
2914       --  Variants (List1)
2915
2916       --------------------
2917       -- 3.8.1  Variant --
2918       --------------------
2919
2920       --  VARIANT ::=
2921       --    when DISCRETE_CHOICE_LIST =>
2922       --      COMPONENT_LIST
2923
2924       --  N_Variant
2925       --  Sloc points to WHEN
2926       --  Discrete_Choices (List4)
2927       --  Component_List (Node1)
2928       --  Enclosing_Variant (Node2-Sem)
2929       --  Present_Expr (Uint3-Sem)
2930       --  Dcheck_Function (Node5-Sem)
2931
2932       ---------------------------------
2933       -- 3.8.1  Discrete Choice List --
2934       ---------------------------------
2935
2936       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2937
2938       ----------------------------
2939       -- 3.8.1  Discrete Choice --
2940       ----------------------------
2941
2942       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2943
2944       --  Note: in Ada 83 mode, the expression must be a simple expression
2945
2946       --  The only choice that appears explicitly is the OTHERS choice, as
2947       --  defined here. Other cases of discrete choice (expression and
2948       --  discrete range) appear directly. This production is also used
2949       --  for the OTHERS possibility of an exception choice.
2950
2951       --  Note: in accordance with the syntax, the parser does not check that
2952       --  OTHERS appears at the end on its own in a choice list context. This
2953       --  is a semantic check.
2954
2955       --  N_Others_Choice
2956       --  Sloc points to OTHERS
2957       --  Others_Discrete_Choices (List1-Sem)
2958       --  All_Others (Flag11-Sem)
2959
2960       ----------------------------------
2961       -- 3.9.1  Record Extension Part --
2962       ----------------------------------
2963
2964       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2965
2966       --  Note: record extension parts are not permitted in Ada 83 mode
2967
2968       --------------------------------------
2969       -- 3.9.4  Interface Type Definition --
2970       --------------------------------------
2971
2972       --  INTERFACE_TYPE_DEFINITION ::=
2973       --    [limited | task | protected | synchronized]
2974       --    interface [interface_list]
2975
2976       --  Note: Interfaces are implemented with N_Record_Definition and
2977       --        N_Derived_Type_Definition nodes because most of the support
2978       --        for the analysis of abstract types has been reused to
2979       --        analyze abstract interfaces.
2980
2981       ----------------------------------
2982       -- 3.10  Access Type Definition --
2983       ----------------------------------
2984
2985       --  ACCESS_TYPE_DEFINITION ::=
2986       --    ACCESS_TO_OBJECT_DEFINITION
2987       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2988
2989       --------------------------
2990       -- 3.10  Null Exclusion --
2991       --------------------------
2992
2993       --  NULL_EXCLUSION ::= not null
2994
2995       ---------------------------------------
2996       -- 3.10  Access To Object Definition --
2997       ---------------------------------------
2998
2999       --  ACCESS_TO_OBJECT_DEFINITION ::=
3000       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3001       --    SUBTYPE_INDICATION
3002
3003       --  N_Access_To_Object_Definition
3004       --  Sloc points to ACCESS
3005       --  All_Present (Flag15)
3006       --  Null_Exclusion_Present (Flag11)
3007       --  Subtype_Indication (Node5)
3008       --  Constant_Present (Flag17)
3009
3010       -----------------------------------
3011       -- 3.10  General Access Modifier --
3012       -----------------------------------
3013
3014       --  GENERAL_ACCESS_MODIFIER ::= all | constant
3015
3016       --  Note: general access modifiers are not permitted in Ada 83 mode
3017
3018       --  There is no explicit node in the tree for general access modifier.
3019       --  Instead the All_Present or Constant_Present flags are set in the
3020       --  parent node.
3021
3022       -------------------------------------------
3023       -- 3.10  Access To Subprogram Definition --
3024       -------------------------------------------
3025
3026       --  ACCESS_TO_SUBPROGRAM_DEFINITION
3027       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3028       --  | [NULL_EXCLUSION] access [protected] function
3029       --    PARAMETER_AND_RESULT_PROFILE
3030
3031       --  Note: access to subprograms are not permitted in Ada 83 mode
3032
3033       --  N_Access_Function_Definition
3034       --  Sloc points to ACCESS
3035       --  Null_Exclusion_Present (Flag11)
3036       --  Null_Exclusion_In_Return_Present (Flag14)
3037       --  Protected_Present (Flag6)
3038       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3039       --  Result_Definition (Node4) result subtype (subtype mark or access def)
3040
3041       --  N_Access_Procedure_Definition
3042       --  Sloc points to ACCESS
3043       --  Null_Exclusion_Present (Flag11)
3044       --  Protected_Present (Flag6)
3045       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3046
3047       -----------------------------
3048       -- 3.10  Access Definition --
3049       -----------------------------
3050
3051       --  ACCESS_DEFINITION ::=
3052       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3053       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3054
3055       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
3056
3057       --  N_Access_Definition
3058       --  Sloc points to ACCESS
3059       --  Null_Exclusion_Present (Flag11)
3060       --  All_Present (Flag15)
3061       --  Constant_Present (Flag17)
3062       --  Subtype_Mark (Node4)
3063       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3064
3065       -----------------------------------------
3066       -- 3.10.1  Incomplete Type Declaration --
3067       -----------------------------------------
3068
3069       --  INCOMPLETE_TYPE_DECLARATION ::=
3070       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3071
3072       --  N_Incomplete_Type_Declaration
3073       --  Sloc points to TYPE
3074       --  Defining_Identifier (Node1)
3075       --  Discriminant_Specifications (List4) (set to No_List if no
3076       --   discriminant part, or if the discriminant part is an
3077       --   unknown discriminant part)
3078       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3079       --  Tagged_Present (Flag15)
3080
3081       ----------------------------
3082       -- 3.11  Declarative Part --
3083       ----------------------------
3084
3085       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3086
3087       --  Note: although the parser enforces the syntactic requirement that
3088       --  a declarative part can contain only declarations, the semantic
3089       --  processing may add statements to the list of actions in a
3090       --  declarative part, so the code generator should be prepared
3091       --  to accept a statement in this position.
3092
3093       ----------------------------
3094       -- 3.11  Declarative Item --
3095       ----------------------------
3096
3097       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3098
3099       ----------------------------------
3100       -- 3.11  Basic Declarative Item --
3101       ----------------------------------
3102
3103       --  BASIC_DECLARATIVE_ITEM ::=
3104       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3105
3106       ----------------
3107       -- 3.11  Body --
3108       ----------------
3109
3110       --  BODY ::= PROPER_BODY | BODY_STUB
3111
3112       -----------------------
3113       -- 3.11  Proper Body --
3114       -----------------------
3115
3116       --  PROPER_BODY ::=
3117       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3118
3119       ---------------
3120       -- 4.1  Name --
3121       ---------------
3122
3123       --  NAME ::=
3124       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
3125       --  | INDEXED_COMPONENT  | SLICE
3126       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3127       --  | TYPE_CONVERSION    | FUNCTION_CALL
3128       --  | CHARACTER_LITERAL
3129
3130       ----------------------
3131       -- 4.1  Direct Name --
3132       ----------------------
3133
3134       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3135
3136       -----------------
3137       -- 4.1  Prefix --
3138       -----------------
3139
3140       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3141
3142       -------------------------------
3143       -- 4.1  Explicit Dereference --
3144       -------------------------------
3145
3146       --  EXPLICIT_DEREFERENCE ::= NAME . all
3147
3148       --  N_Explicit_Dereference
3149       --  Sloc points to ALL
3150       --  Prefix (Node3)
3151       --  Actual_Designated_Subtype (Node4-Sem)
3152       --  plus fields for expression
3153
3154       -------------------------------
3155       -- 4.1  Implicit Dereference --
3156       -------------------------------
3157
3158       --  IMPLICIT_DEREFERENCE ::= NAME
3159
3160       ------------------------------
3161       -- 4.1.1  Indexed Component --
3162       ------------------------------
3163
3164       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3165
3166       --  Note: the parser may generate this node in some situations where it
3167       --  should be a function call. The semantic  pass must correct this
3168       --  misidentification (which is inevitable at the parser level).
3169
3170       --  N_Indexed_Component
3171       --  Sloc contains a copy of the Sloc value of the Prefix
3172       --  Prefix (Node3)
3173       --  Expressions (List1)
3174       --  plus fields for expression
3175
3176       --  Note: if any of the subscripts requires a range check, then the
3177       --  Do_Range_Check flag is set on the corresponding expression, with
3178       --  the index type being determined from the type of the Prefix, which
3179       --  references the array being indexed.
3180
3181       --  Note: in a fully analyzed and expanded indexed component node, and
3182       --  hence in any such node that gigi sees, if the prefix is an access
3183       --  type, then an explicit dereference operation has been inserted.
3184
3185       ------------------
3186       -- 4.1.2  Slice --
3187       ------------------
3188
3189       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3190
3191       --  Note: an implicit subtype is created to describe the resulting
3192       --  type, so that the bounds of this type are the bounds of the slice.
3193
3194       --  N_Slice
3195       --  Sloc points to first token of prefix
3196       --  Prefix (Node3)
3197       --  Discrete_Range (Node4)
3198       --  plus fields for expression
3199
3200       -------------------------------
3201       -- 4.1.3  Selected Component --
3202       -------------------------------
3203
3204       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3205
3206       --  Note: selected components that are semantically expanded names get
3207       --  changed during semantic processing into the separate N_Expanded_Name
3208       --  node. See description of this node in the section on semantic nodes.
3209
3210       --  N_Selected_Component
3211       --  Sloc points to period
3212       --  Prefix (Node3)
3213       --  Selector_Name (Node2)
3214       --  Associated_Node (Node4-Sem)
3215       --  Do_Discriminant_Check (Flag13-Sem)
3216       --  Is_In_Discriminant_Check (Flag11-Sem)
3217       --  plus fields for expression
3218
3219       --------------------------
3220       -- 4.1.3  Selector Name --
3221       --------------------------
3222
3223       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3224
3225       --------------------------------
3226       -- 4.1.4  Attribute Reference --
3227       --------------------------------
3228
3229       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3230
3231       --  Note: the syntax is quite ambiguous at this point. Consider:
3232
3233       --    A'Length (X)  X is part of the attribute designator
3234       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3235       --    A'Class (X)   X is the expression of a type conversion
3236
3237       --  It would be possible for the parser to distinguish these cases
3238       --  by looking at the attribute identifier. However, that would mean
3239       --  more work in introducing new implementation defined attributes,
3240       --  and also it would mean that special processing for attributes
3241       --  would be scattered around, instead of being centralized in the
3242       --  semantic routine that handles an N_Attribute_Reference node.
3243       --  Consequently, the parser in all the above cases stores the
3244       --  expression (X in these examples) as a single element list in
3245       --  in the Expressions field of the N_Attribute_Reference node.
3246
3247       --  Similarly, for attributes like Max which take two arguments,
3248       --  we store the two arguments as a two element list in the
3249       --  Expressions field. Of course it is clear at parse time that
3250       --  this case is really a function call with an attribute as the
3251       --  prefix, but it turns out to be convenient to handle the two
3252       --  argument case in a similar manner to the one argument case,
3253       --  and indeed in general the parser will accept any number of
3254       --  expressions in this position and store them as a list in the
3255       --  attribute reference node. This allows for future addition of
3256       --  attributes that take more than two arguments.
3257
3258       --  Note: named associates are not permitted in function calls where
3259       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3260       --  to skip the normal subprogram argument processing.
3261
3262       --  Note: for the attributes whose designators are technically keywords,
3263       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3264       --  the corresponding name, even though no identifier is involved.
3265
3266       --  Note: the generated code may contain stream attributes applied to
3267       --  limited types for which no stream routines exist officially. In such
3268       --  case, the result is to use the stream attribute for the underlying
3269       --  full type, or in the case of a protected type, the components
3270       --  (including any discriminants) are merely streamed in order.
3271
3272       --  See Exp_Attr for a complete description of which attributes are
3273       --  passed onto Gigi, and which are handled entirely by the front end.
3274
3275       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3276       --  a non-standard enumeration type or a nonzero/zero semantics
3277       --  boolean type, so the value is simply the stored representation.
3278
3279       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3280       --  references a subprogram that is a renaming, then the front end must
3281       --  rewrite the attribute to refer directly to the renamed entity.
3282
3283       --  Note: In generated code, the Address and Unrestricted_Access
3284       --  attributes can be applied to any expression, and the meaning is
3285       --  to create an object containing the value (the object is in the
3286       --  current stack frame), and pass the address of this value. If the
3287       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3288       --  is taken must be on a byte (storage unit) boundary, and if it is
3289       --  not (or may not be), then the generated code must create a copy
3290       --  that is byte aligned, and pass the address of this copy.
3291
3292       --  N_Attribute_Reference
3293       --  Sloc points to apostrophe
3294       --  Prefix (Node3)
3295       --  Attribute_Name (Name2) identifier name from attribute designator
3296       --  Expressions (List1) (set to No_List if no associated expressions)
3297       --  Entity (Node4-Sem) used if the attribute yields a type
3298       --  Associated_Node (Node4-Sem)
3299       --  Do_Overflow_Check (Flag17-Sem)
3300       --  Redundant_Use (Flag13-Sem)
3301       --  Must_Be_Byte_Aligned (Flag14)
3302       --  plus fields for expression
3303
3304       ---------------------------------
3305       -- 4.1.4  Attribute Designator --
3306       ---------------------------------
3307
3308       --  ATTRIBUTE_DESIGNATOR ::=
3309       --    IDENTIFIER [(static_EXPRESSION)]
3310       --  | access | delta | digits
3311
3312       --  There is no explicit node in the tree for an attribute designator.
3313       --  Instead the Attribute_Name and Expressions fields of the parent
3314       --  node (N_Attribute_Reference node) hold the information.
3315
3316       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3317       --  designator, then they are treated as identifiers internally
3318       --  rather than the keywords of the same name.
3319
3320       --------------------------------------
3321       -- 4.1.4  Range Attribute Reference --
3322       --------------------------------------
3323
3324       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3325
3326       --  A range attribute reference is represented in the tree using the
3327       --  normal N_Attribute_Reference node.
3328
3329       ---------------------------------------
3330       -- 4.1.4  Range Attribute Designator --
3331       ---------------------------------------
3332
3333       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3334
3335       --  A range attribute designator is represented in the tree using the
3336       --  normal N_Attribute_Reference node.
3337
3338       --------------------
3339       -- 4.3  Aggregate --
3340       --------------------
3341
3342       --  AGGREGATE ::=
3343       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3344
3345       -----------------------------
3346       -- 4.3.1  Record Aggregate --
3347       -----------------------------
3348
3349       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3350
3351       --  N_Aggregate
3352       --  Sloc points to left parenthesis
3353       --  Expressions (List1) (set to No_List if none or null record case)
3354       --  Component_Associations (List2) (set to No_List if none)
3355       --  Null_Record_Present (Flag17)
3356       --  Aggregate_Bounds (Node3-Sem)
3357       --  Associated_Node (Node4-Sem)
3358       --  Static_Processing_OK (Flag4-Sem)
3359       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3360       --  Expansion_Delayed (Flag11-Sem)
3361       --  Has_Self_Reference (Flag13-Sem)
3362       --  plus fields for expression
3363
3364       --  Note: this structure is used for both record and array aggregates
3365       --  since the two cases are not separable by the parser. The parser
3366       --  makes no attempt to enforce consistency here, so it is up to the
3367       --  semantic phase to make sure that the aggregate is consistent (i.e.
3368       --  that it is not a "half-and-half" case that mixes record and array
3369       --  syntax. In particular, for a record aggregate, the expressions
3370       --  field will be set if there are positional associations.
3371
3372       --  Note: N_Aggregate is not used for all aggregates; in particular,
3373       --  there is a separate node kind for extension aggregates.
3374
3375       --  Note: gigi/gcc can handle array aggregates correctly providing that
3376       --  they are entirely positional, and the array subtype involved has a
3377       --  known at compile time length and is not bit packed, or a convention
3378       --  Fortran array with more than one dimension. If these conditions
3379       --  are not met, then the front end must translate the aggregate into
3380       --  an appropriate set of assignments into a temporary.
3381
3382       --  Note: for the record aggregate case, gigi/gcc can handle all cases of
3383       --  record aggregates, including those for packed, and rep-claused
3384       --  records, and also variant records, providing that there are no
3385       --  variable length fields whose size is not known at compile time, and
3386       --  providing that the aggregate is presented in fully named form.
3387
3388       ----------------------------------------------
3389       -- 4.3.1  Record Component Association List --
3390       ----------------------------------------------
3391
3392       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3393       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3394       --   | null record
3395
3396       --  There is no explicit node in the tree for a record component
3397       --  association list. Instead the Null_Record_Present flag is set in
3398       --  the parent node for the NULL RECORD case.
3399
3400       ------------------------------------------------------
3401       -- 4.3.1  Record Component Association (also 4.3.3) --
3402       ------------------------------------------------------
3403
3404       --  RECORD_COMPONENT_ASSOCIATION ::=
3405       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3406
3407       --  N_Component_Association
3408       --  Sloc points to first selector name
3409       --  Choices (List1)
3410       --  Loop_Actions (List2-Sem)
3411       --  Expression (Node3)
3412       --  Box_Present (Flag15)
3413       --  Inherited_Discriminant (Flag13)
3414
3415       --  Note: this structure is used for both record component associations
3416       --  and array component associations, since the two cases aren't always
3417       --  separable by the parser. The choices list may represent either a
3418       --  list of selector names in the record aggregate case, or a list of
3419       --  discrete choices in the array aggregate case or an N_Others_Choice
3420       --  node (which appears as a singleton list). Box_Present gives support
3421       --  to Ada 2005 (AI-287).
3422
3423       ----------------------------------
3424       -- 4.3.1  Component Choice List --
3425       ----------------------------------
3426
3427       --  COMPONENT_CHOICE_LIST ::=
3428       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3429       --  | others
3430
3431       --  The entries of a component choice list appear in the Choices list of
3432       --  the associated N_Component_Association, as either selector names, or
3433       --  as an N_Others_Choice node.
3434
3435       --------------------------------
3436       -- 4.3.2  Extension Aggregate --
3437       --------------------------------
3438
3439       --  EXTENSION_AGGREGATE ::=
3440       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3441
3442       --  Note: extension aggregates are not permitted in Ada 83 mode
3443
3444       --  N_Extension_Aggregate
3445       --  Sloc points to left parenthesis
3446       --  Ancestor_Part (Node3)
3447       --  Associated_Node (Node4-Sem)
3448       --  Expressions (List1) (set to No_List if none or null record case)
3449       --  Component_Associations (List2) (set to No_List if none)
3450       --  Null_Record_Present (Flag17)
3451       --  Expansion_Delayed (Flag11-Sem)
3452       --  Has_Self_Reference (Flag13-Sem)
3453       --  plus fields for expression
3454
3455       --------------------------
3456       -- 4.3.2  Ancestor Part --
3457       --------------------------
3458
3459       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3460
3461       ----------------------------
3462       -- 4.3.3  Array Aggregate --
3463       ----------------------------
3464
3465       --  ARRAY_AGGREGATE ::=
3466       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3467
3468       ---------------------------------------
3469       -- 4.3.3  Positional Array Aggregate --
3470       ---------------------------------------
3471
3472       --  POSITIONAL_ARRAY_AGGREGATE ::=
3473       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3474       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3475
3476       --  See Record_Aggregate (4.3.1) for node structure
3477
3478       ----------------------------------
3479       -- 4.3.3  Named Array Aggregate --
3480       ----------------------------------
3481
3482       --  NAMED_ARRAY_AGGREGATE ::=
3483       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3484
3485       --  See Record_Aggregate (4.3.1) for node structure
3486
3487       ----------------------------------------
3488       -- 4.3.3  Array Component Association --
3489       ----------------------------------------
3490
3491       --  ARRAY_COMPONENT_ASSOCIATION ::=
3492       --    DISCRETE_CHOICE_LIST => EXPRESSION
3493
3494       --  See Record_Component_Association (4.3.1) for node structure
3495
3496       --------------------------------------------------
3497       -- 4.4  Expression/Relation/Term/Factor/Primary --
3498       --------------------------------------------------
3499
3500       --  EXPRESSION ::=
3501       --    RELATION {and RELATION} | RELATION {and then RELATION}
3502       --  | RELATION {or RELATION}  | RELATION {or else RELATION}
3503       --  | RELATION {xor RELATION}
3504
3505       --  RELATION ::=
3506       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3507       --  | SIMPLE_EXPRESSION [not] in RANGE
3508       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3509
3510       --  SIMPLE_EXPRESSION ::=
3511       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3512
3513       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3514
3515       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3516
3517       --  No nodes are generated for any of these constructs. Instead, the
3518       --  node for the operator appears directly. When we refer to an
3519       --  expression in this description, we mean any of the possible
3520       --  constituent components of an expression (e.g. identifier is
3521       --  an example of an expression).
3522
3523       ------------------
3524       -- 4.4  Primary --
3525       ------------------
3526
3527       --  PRIMARY ::=
3528       --    NUMERIC_LITERAL  | null
3529       --  | STRING_LITERAL   | AGGREGATE
3530       --  | NAME             | QUALIFIED_EXPRESSION
3531       --  | ALLOCATOR        | (EXPRESSION)
3532
3533       --  Usually there is no explicit node in the tree for primary. Instead
3534       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3535       --  exceptions. First, there is an explicit node for a null primary.
3536
3537       --  N_Null
3538       --  Sloc points to NULL
3539       --  plus fields for expression
3540
3541       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3542       --  that the parser keep track of which subexpressions are enclosed
3543       --  in parentheses, and how many levels of parentheses are used. This
3544       --  information is required for optimization purposes, and also for
3545       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3546       --  conform with ((((1)))) in the body).
3547
3548       --  The parentheses are recorded by keeping a Paren_Count field in every
3549       --  subexpression node (it is actually present in all nodes, but only
3550       --  used in subexpression nodes). This count records the number of
3551       --  levels of parentheses. If the number of levels in the source exceeds
3552       --  the maximum accommodated by this count, then the count is simply left
3553       --  at the maximum value. This means that there are some pathological
3554       --  cases of failure to detect conformance failures (e.g. an expression
3555       --  with 500 levels of parens will conform with one with 501 levels),
3556       --  but we do not need to lose sleep over this.
3557
3558       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3559       --  type N_Parenthesized_Expression used to accurately record unlimited
3560       --  numbers of levels of parentheses. However, it turned out to be a
3561       --  real nuisance to have to take into account the possible presence of
3562       --  this node during semantic analysis, since basically parentheses have
3563       --  zero relevance to semantic analysis.
3564
3565       --  Note: the level of parentheses always present in things like
3566       --  aggregates does not count, only the parentheses in the primary
3567       --  (EXPRESSION) affect the setting of the Paren_Count field.
3568
3569       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3570       --  treated as though it were Empty) if No_Initialization is set True.
3571
3572       --------------------------------------
3573       -- 4.5  Short Circuit Control Forms --
3574       --------------------------------------
3575
3576       --  EXPRESSION ::=
3577       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3578
3579       --  Gigi restriction: For both these control forms, the operand and
3580       --  result types are always Standard.Boolean. The expander inserts the
3581       --  required conversion operations where needed to ensure this is the
3582       --  case.
3583
3584       --  N_And_Then
3585       --  Sloc points to AND of AND THEN
3586       --  Left_Opnd (Node2)
3587       --  Right_Opnd (Node3)
3588       --  Actions (List1-Sem)
3589       --  plus fields for expression
3590
3591       --  N_Or_Else
3592       --  Sloc points to OR of OR ELSE
3593       --  Left_Opnd (Node2)
3594       --  Right_Opnd (Node3)
3595       --  Actions (List1-Sem)
3596       --  plus fields for expression
3597
3598       --  Note: The Actions field is used to hold actions associated with
3599       --  the right hand operand. These have to be treated specially since
3600       --  they are not unconditionally executed. See Insert_Actions for a
3601       --  more detailed description of how these actions are handled.
3602
3603       ---------------------------
3604       -- 4.5  Membership Tests --
3605       ---------------------------
3606
3607       --  RELATION ::=
3608       --    SIMPLE_EXPRESSION [not] in RANGE
3609       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3610
3611       --  Note: although the grammar above allows only a range or a subtype
3612       --  mark, the parser in fact will accept any simple expression in place
3613       --  of a subtype mark. This means that the semantic analyzer must be able
3614       --  to deal with, and diagnose a simple expression other than a name for
3615       --  the right operand. This simplifies error recovery in the parser.
3616
3617       --  If extensions are enabled, the grammar is as follows:
3618
3619       --  RELATION ::=
3620       --    SIMPLE_EXPRESSION [not] in SET_ALTERNATIVE {| SET_ALTERNATIVE}
3621
3622       --  SET_ALTERNATIVE ::= RANGE | SUBTYPE_MARK
3623
3624       --  The Alternatives field below is present only if there is more than
3625       --  one Set_Alternative present, in which case Right_Opnd is set to
3626       --  Empty, and Alternatives contains the list of alternatives. In the
3627       --  tree passed to the back end, Alternatives is always No_List, and
3628       --  Right_Opnd is set (i.e. the expansion circuitry expands out the
3629       --  complex set membership case using simple membership operations).
3630
3631       --  N_In
3632       --  Sloc points to IN
3633       --  Left_Opnd (Node2)
3634       --  Right_Opnd (Node3)
3635       --  Alternatives (List4) (set to No_List if only one set alternative)
3636       --  plus fields for expression
3637
3638       --  N_Not_In
3639       --  Sloc points to NOT of NOT IN
3640       --  Left_Opnd (Node2)
3641       --  Right_Opnd (Node3)
3642       --  Alternatives (List4) (set to No_List if only one set alternative)
3643       --  plus fields for expression
3644
3645       --------------------
3646       -- 4.5  Operators --
3647       --------------------
3648
3649       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3650
3651       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3652
3653       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3654
3655       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3656
3657       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3658
3659       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3660
3661       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3662
3663       --     x #* y
3664       --     x #/ y
3665       --     x #mod y
3666       --     x #rem y
3667
3668       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3669       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3670       --  All handling of smalls for multiplication and division is handled
3671       --  by the front end (mod and rem result only from expansion). Gigi
3672       --  thus never needs to worry about small values (for other operators
3673       --  operating on fixed-point, e.g. addition, the small value does not
3674       --  have any semantic effect anyway, these are always integer operations.
3675
3676       --  Gigi restriction: For all operators taking Boolean operands, the
3677       --  type is always Standard.Boolean. The expander inserts the required
3678       --  conversion operations where needed to ensure this is the case.
3679
3680       --  N_Op_And
3681       --  Sloc points to AND
3682       --  Do_Length_Check (Flag4-Sem)
3683       --  plus fields for binary operator
3684       --  plus fields for expression
3685
3686       --  N_Op_Or
3687       --  Sloc points to OR
3688       --  Do_Length_Check (Flag4-Sem)
3689       --  plus fields for binary operator
3690       --  plus fields for expression
3691
3692       --  N_Op_Xor
3693       --  Sloc points to XOR
3694       --  Do_Length_Check (Flag4-Sem)
3695       --  plus fields for binary operator
3696       --  plus fields for expression
3697
3698       --  N_Op_Eq
3699       --  Sloc points to =
3700       --  plus fields for binary operator
3701       --  plus fields for expression
3702
3703       --  N_Op_Ne
3704       --  Sloc points to /=
3705       --  plus fields for binary operator
3706       --  plus fields for expression
3707
3708       --  N_Op_Lt
3709       --  Sloc points to <
3710       --  plus fields for binary operator
3711       --  plus fields for expression
3712
3713       --  N_Op_Le
3714       --  Sloc points to <=
3715       --  plus fields for binary operator
3716       --  plus fields for expression
3717
3718       --  N_Op_Gt
3719       --  Sloc points to >
3720       --  plus fields for binary operator
3721       --  plus fields for expression
3722
3723       --  N_Op_Ge
3724       --  Sloc points to >=
3725       --  plus fields for binary operator
3726       --  plus fields for expression
3727
3728       --  N_Op_Add
3729       --  Sloc points to + (binary)
3730       --  plus fields for binary operator
3731       --  plus fields for expression
3732
3733       --  N_Op_Subtract
3734       --  Sloc points to - (binary)
3735       --  plus fields for binary operator
3736       --  plus fields for expression
3737
3738       --  N_Op_Concat
3739       --  Sloc points to &
3740       --  Is_Component_Left_Opnd (Flag13-Sem)
3741       --  Is_Component_Right_Opnd (Flag14-Sem)
3742       --  plus fields for binary operator
3743       --  plus fields for expression
3744
3745       --  N_Op_Multiply
3746       --  Sloc points to *
3747       --  Treat_Fixed_As_Integer (Flag14-Sem)
3748       --  Rounded_Result (Flag18-Sem)
3749       --  plus fields for binary operator
3750       --  plus fields for expression
3751
3752       --  N_Op_Divide
3753       --  Sloc points to /
3754       --  Treat_Fixed_As_Integer (Flag14-Sem)
3755       --  Do_Division_Check (Flag13-Sem)
3756       --  Rounded_Result (Flag18-Sem)
3757       --  plus fields for binary operator
3758       --  plus fields for expression
3759
3760       --  N_Op_Mod
3761       --  Sloc points to MOD
3762       --  Treat_Fixed_As_Integer (Flag14-Sem)
3763       --  Do_Division_Check (Flag13-Sem)
3764       --  plus fields for binary operator
3765       --  plus fields for expression
3766
3767       --  N_Op_Rem
3768       --  Sloc points to REM
3769       --  Treat_Fixed_As_Integer (Flag14-Sem)
3770       --  Do_Division_Check (Flag13-Sem)
3771       --  plus fields for binary operator
3772       --  plus fields for expression
3773
3774       --  N_Op_Expon
3775       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3776       --  Sloc points to **
3777       --  plus fields for binary operator
3778       --  plus fields for expression
3779
3780       --  N_Op_Plus
3781       --  Sloc points to + (unary)
3782       --  plus fields for unary operator
3783       --  plus fields for expression
3784
3785       --  N_Op_Minus
3786       --  Sloc points to - (unary)
3787       --  plus fields for unary operator
3788       --  plus fields for expression
3789
3790       --  N_Op_Abs
3791       --  Sloc points to ABS
3792       --  plus fields for unary operator
3793       --  plus fields for expression
3794
3795       --  N_Op_Not
3796       --  Sloc points to NOT
3797       --  plus fields for unary operator
3798       --  plus fields for expression
3799
3800       --  See also shift operators in section B.2
3801
3802       --  Note on fixed-point operations passed to Gigi: For adding operators,
3803       --  the semantics is to treat these simply as integer operations, with
3804       --  the small values being ignored (the bounds are already stored in
3805       --  units of small, so that constraint checking works as usual). For the
3806       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3807       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3808       --  thus treat these nodes in identical manner, ignoring small values.
3809
3810       --------------------------
3811       -- 4.6  Type Conversion --
3812       --------------------------
3813
3814       --  TYPE_CONVERSION ::=
3815       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3816
3817       --  In the (NAME) case, the name is stored as the expression
3818
3819       --  Note: the parser never generates a type conversion node, since it
3820       --  looks like an indexed component which is generated by preference.
3821       --  The semantic pass must correct this misidentification.
3822
3823       --  Gigi handles conversions that involve no change in the root type,
3824       --  and also all conversions from integer to floating-point types.
3825       --  Conversions from floating-point to integer are only handled in
3826       --  the case where Float_Truncate flag set. Other conversions from
3827       --  floating-point to integer (involving rounding) and all conversions
3828       --  involving fixed-point types are handled by the expander.
3829
3830       --  Sprint syntax if Float_Truncate set: X^(Y)
3831       --  Sprint syntax if Conversion_OK set X?(Y)
3832       --  Sprint syntax if both flags set X?^(Y)
3833
3834       --  Note: If either the operand or result type is fixed-point, Gigi will
3835       --  only see a type conversion node with Conversion_OK set. The front end
3836       --  takes care of all handling of small's for fixed-point conversions.
3837
3838       --  N_Type_Conversion
3839       --  Sloc points to first token of subtype mark
3840       --  Subtype_Mark (Node4)
3841       --  Expression (Node3)
3842       --  Do_Tag_Check (Flag13-Sem)
3843       --  Do_Length_Check (Flag4-Sem)
3844       --  Do_Overflow_Check (Flag17-Sem)
3845       --  Float_Truncate (Flag11-Sem)
3846       --  Rounded_Result (Flag18-Sem)
3847       --  Conversion_OK (Flag14-Sem)
3848       --  plus fields for expression
3849
3850       --  Note: if a range check is required, then the Do_Range_Check flag
3851       --  is set in the Expression with the check being done against the
3852       --  target type range (after the base type conversion, if any).
3853
3854       -------------------------------
3855       -- 4.7  Qualified Expression --
3856       -------------------------------
3857
3858       --  QUALIFIED_EXPRESSION ::=
3859       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3860
3861       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3862       --  the expression, so the Expression field of this node always points
3863       --  to a parenthesized expression in this case (i.e. Paren_Count will
3864       --  always be non-zero for the referenced expression if it is not an
3865       --  aggregate).
3866
3867       --  N_Qualified_Expression
3868       --  Sloc points to apostrophe
3869       --  Subtype_Mark (Node4)
3870       --  Expression (Node3) expression or aggregate
3871       --  plus fields for expression
3872
3873       --------------------
3874       -- 4.8  Allocator --
3875       --------------------
3876
3877       --  ALLOCATOR ::=
3878       --    new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3879
3880       --  Sprint syntax (when storage pool present)
3881       --    new xxx (storage_pool = pool)
3882
3883       --  N_Allocator
3884       --  Sloc points to NEW
3885       --  Expression (Node3) subtype indication or qualified expression
3886       --  Storage_Pool (Node1-Sem)
3887       --  Procedure_To_Call (Node2-Sem)
3888       --  Coextensions (Elist4-Sem)
3889       --  Null_Exclusion_Present (Flag11)
3890       --  No_Initialization (Flag13-Sem)
3891       --  Is_Static_Coextension (Flag14-Sem)
3892       --  Do_Storage_Check (Flag17-Sem)
3893       --  Is_Dynamic_Coextension (Flag18-Sem)
3894       --  plus fields for expression
3895
3896       --  Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3897       --  This flag has a special function in conjunction with the restriction
3898       --  No_Implicit_Heap_Allocations, which will be triggered if this flag
3899       --  is not set. This means that if a source allocator is replaced with
3900       --  a constructed allocator, the Comes_From_Source flag should be copied
3901       --  to the newly created allocator.
3902
3903       ---------------------------------
3904       -- 5.1  Sequence Of Statements --
3905       ---------------------------------
3906
3907       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3908
3909       --  Note: Although the parser will not accept a declaration as a
3910       --  statement, the semantic analyzer may insert declarations (e.g.
3911       --  declarations of implicit types needed for execution of other
3912       --  statements) into a sequence of statements, so the code generator
3913       --  should be prepared to accept a declaration where a statement is
3914       --  expected. Note also that pragmas can appear as statements.
3915
3916       --------------------
3917       -- 5.1  Statement --
3918       --------------------
3919
3920       --  STATEMENT ::=
3921       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3922
3923       --  There is no explicit node in the tree for a statement. Instead, the
3924       --  individual statement appears directly. Labels are treated  as a
3925       --  kind of statement, i.e. they are linked into a statement list at
3926       --  the point they appear, so the labeled statement appears following
3927       --  the label or labels in the statement list.
3928
3929       ---------------------------
3930       -- 5.1  Simple Statement --
3931       ---------------------------
3932
3933       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
3934       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
3935       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
3936       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3937       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
3938       --  | ABORT_STATEMENT         | RAISE_STATEMENT
3939       --  | CODE_STATEMENT
3940
3941       -----------------------------
3942       -- 5.1  Compound Statement --
3943       -----------------------------
3944
3945       --  COMPOUND_STATEMENT ::=
3946       --    IF_STATEMENT              | CASE_STATEMENT
3947       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
3948       --  | EXTENDED_RETURN_STATEMENT
3949       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
3950
3951       -------------------------
3952       -- 5.1  Null Statement --
3953       -------------------------
3954
3955       --  NULL_STATEMENT ::= null;
3956
3957       --  N_Null_Statement
3958       --  Sloc points to NULL
3959
3960       ----------------
3961       -- 5.1  Label --
3962       ----------------
3963
3964       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3965
3966       --  Note that the occurrence of a label is not a defining identifier,
3967       --  but rather a referencing occurrence. The defining occurrence is
3968       --  in the implicit label declaration which occurs in the innermost
3969       --  enclosing block.
3970
3971       --  N_Label
3972       --  Sloc points to <<
3973       --  Identifier (Node1) direct name of statement identifier
3974       --  Exception_Junk (Flag8-Sem)
3975
3976       --  Note: Before Ada 2012, a label is always followed by a statement,
3977       --  and this is true in the tree even in Ada 2012 mode (the parser
3978       --  inserts a null statement marked with Comes_From_Source False).
3979
3980       -------------------------------
3981       -- 5.1  Statement Identifier --
3982       -------------------------------
3983
3984       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
3985
3986       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3987       --  (not an OPERATOR_SYMBOL)
3988
3989       -------------------------------
3990       -- 5.2  Assignment Statement --
3991       -------------------------------
3992
3993       --  ASSIGNMENT_STATEMENT ::=
3994       --    variable_NAME := EXPRESSION;
3995
3996       --  N_Assignment_Statement
3997       --  Sloc points to :=
3998       --  Name (Node2)
3999       --  Expression (Node3)
4000       --  Do_Tag_Check (Flag13-Sem)
4001       --  Do_Length_Check (Flag4-Sem)
4002       --  Forwards_OK (Flag5-Sem)
4003       --  Backwards_OK (Flag6-Sem)
4004       --  No_Ctrl_Actions (Flag7-Sem)
4005       --  Componentwise_Assignment (Flag14-Sem)
4006
4007       --  Note: if a range check is required, then the Do_Range_Check flag
4008       --  is set in the Expression (right hand side), with the check being
4009       --  done against the type of the Name (left hand side).
4010
4011       --  Note: the back end places some restrictions on the form of the
4012       --  Expression field. If the object being assigned to is Atomic, then
4013       --  the Expression may not have the form of an aggregate (since this
4014       --  might cause the back end to generate separate assignments). In this
4015       --  case the front end must generate an extra temporary and initialize
4016       --  this temporary as required (the temporary itself is not atomic).
4017
4018       -----------------------
4019       -- 5.3  If Statement --
4020       -----------------------
4021
4022       --  IF_STATEMENT ::=
4023       --    if CONDITION then
4024       --      SEQUENCE_OF_STATEMENTS
4025       --    {elsif CONDITION then
4026       --      SEQUENCE_OF_STATEMENTS}
4027       --    [else
4028       --      SEQUENCE_OF_STATEMENTS]
4029       --    end if;
4030
4031       --  Gigi restriction: This expander ensures that the type of the
4032       --  Condition fields is always Standard.Boolean, even if the type
4033       --  in the source is some non-standard boolean type.
4034
4035       --  N_If_Statement
4036       --  Sloc points to IF
4037       --  Condition (Node1)
4038       --  Then_Statements (List2)
4039       --  Elsif_Parts (List3) (set to No_List if none present)
4040       --  Else_Statements (List4) (set to No_List if no else part present)
4041       --  End_Span (Uint5) (set to No_Uint if expander generated)
4042
4043       --  N_Elsif_Part
4044       --  Sloc points to ELSIF
4045       --  Condition (Node1)
4046       --  Then_Statements (List2)
4047       --  Condition_Actions (List3-Sem)
4048
4049       --------------------
4050       -- 5.3  Condition --
4051       --------------------
4052
4053       --  CONDITION ::= boolean_EXPRESSION
4054
4055       -------------------------
4056       -- 5.4  Case Statement --
4057       -------------------------
4058
4059       --  CASE_STATEMENT ::=
4060       --    case EXPRESSION is
4061       --      CASE_STATEMENT_ALTERNATIVE
4062       --      {CASE_STATEMENT_ALTERNATIVE}
4063       --    end case;
4064
4065       --  Note: the Alternatives can contain pragmas. These only occur at
4066       --  the start of the list, since any pragmas occurring after the first
4067       --  alternative are absorbed into the corresponding statement sequence.
4068
4069       --  N_Case_Statement
4070       --  Sloc points to CASE
4071       --  Expression (Node3)
4072       --  Alternatives (List4)
4073       --  End_Span (Uint5) (set to No_Uint if expander generated)
4074
4075       --  Note: Before Ada 2012, a pragma in a statement sequence is always
4076       --  followed by a statement, and this is true in the tree even in Ada
4077       --  2012 mode (the parser inserts a null statement marked with the flag
4078       --  Comes_From_Source False).
4079
4080       -------------------------------------
4081       -- 5.4  Case Statement Alternative --
4082       -------------------------------------
4083
4084       --  CASE_STATEMENT_ALTERNATIVE ::=
4085       --    when DISCRETE_CHOICE_LIST =>
4086       --      SEQUENCE_OF_STATEMENTS
4087
4088       --  N_Case_Statement_Alternative
4089       --  Sloc points to WHEN
4090       --  Discrete_Choices (List4)
4091       --  Statements (List3)
4092
4093       -------------------------
4094       -- 5.5  Loop Statement --
4095       -------------------------
4096
4097       --  LOOP_STATEMENT ::=
4098       --    [loop_STATEMENT_IDENTIFIER :]
4099       --      [ITERATION_SCHEME] loop
4100       --        SEQUENCE_OF_STATEMENTS
4101       --      end loop [loop_IDENTIFIER];
4102
4103       --  Note: The occurrence of a loop label is not a defining identifier
4104       --  but rather a referencing occurrence. The defining occurrence is in
4105       --  the implicit label declaration which occurs in the innermost
4106       --  enclosing block.
4107
4108       --  Note: there is always a loop statement identifier present in
4109       --  the tree, even if none was given in the source. In the case where
4110       --  no loop identifier is given in the source, the parser creates
4111       --  a name of the form _Loop_n, where n is a decimal integer (the
4112       --  two underlines ensure that the loop names created in this manner
4113       --  do not conflict with any user defined identifiers), and the flag
4114       --  Has_Created_Identifier is set to True. The only exception to the
4115       --  rule that all loop statement nodes have identifiers occurs for
4116       --  loops constructed by the expander, and the semantic analyzer will
4117       --  create and supply dummy loop identifiers in these cases.
4118
4119       --  N_Loop_Statement
4120       --  Sloc points to LOOP
4121       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
4122       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4123       --  Statements (List3)
4124       --  End_Label (Node4)
4125       --  Has_Created_Identifier (Flag15)
4126       --  Is_Null_Loop (Flag16)
4127       --  Suppress_Loop_Warnings (Flag17)
4128
4129       --  Note: the parser fills in the Identifier field if there is an
4130       --  explicit loop identifier. Otherwise the parser leaves this field
4131       --  set to Empty, and then the semantic processing for a loop statement
4132       --  creates an identifier, setting the Has_Created_Identifier flag to
4133       --  True. So after semantic anlaysis, the Identifier is always set,
4134       --  referencing an identifier whose entity has an Ekind of E_Loop.
4135
4136       --------------------------
4137       -- 5.5 Iteration Scheme --
4138       --------------------------
4139
4140       --  ITERATION_SCHEME ::=
4141       --    while CONDITION | for LOOP_PARAMETER_SPECIFICATION
4142
4143       --  Gigi restriction: This expander ensures that the type of the
4144       --  Condition field is always Standard.Boolean, even if the type
4145       --  in the source is some non-standard boolean type.
4146
4147       --  N_Iteration_Scheme
4148       --  Sloc points to WHILE or FOR
4149       --  Condition (Node1) (set to Empty if FOR case)
4150       --  Condition_Actions (List3-Sem)
4151       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4152
4153       ---------------------------------------
4154       -- 5.5  Loop parameter specification --
4155       ---------------------------------------
4156
4157       --  LOOP_PARAMETER_SPECIFICATION ::=
4158       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4159
4160       --  N_Loop_Parameter_Specification
4161       --  Sloc points to first identifier
4162       --  Defining_Identifier (Node1)
4163       --  Reverse_Present (Flag15)
4164       --  Discrete_Subtype_Definition (Node4)
4165
4166       --------------------------
4167       -- 5.6  Block Statement --
4168       --------------------------
4169
4170       --  BLOCK_STATEMENT ::=
4171       --    [block_STATEMENT_IDENTIFIER:]
4172       --      [declare
4173       --        DECLARATIVE_PART]
4174       --      begin
4175       --        HANDLED_SEQUENCE_OF_STATEMENTS
4176       --      end [block_IDENTIFIER];
4177
4178       --  Note that the occurrence of a block identifier is not a defining
4179       --  identifier, but rather a referencing occurrence. The defining
4180       --  occurrence is an E_Block entity declared by the implicit label
4181       --  declaration which occurs in the innermost enclosing block statement
4182       --  or body; the block identifier denotes that E_Block.
4183
4184       --  For block statements that come from source code, there is always a
4185       --  block statement identifier present in the tree, denoting an
4186       --  E_Block. In the case where no block identifier is given in the
4187       --  source, the parser creates a name of the form B_n, where n is a
4188       --  decimal integer, and the flag Has_Created_Identifier is set to
4189       --  True. Blocks constructed by the expander usually have no identifier,
4190       --  and no corresponding entity.
4191
4192       --  Note: the block statement created for an extended return statement
4193       --  has an entity, and this entity is an E_Return_Statement, rather than
4194       --  the usual E_Block.
4195
4196       --  Note: Exception_Junk is set for the wrapping blocks created during
4197       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4198
4199       --  N_Block_Statement
4200       --  Sloc points to DECLARE or BEGIN
4201       --  Identifier (Node1) block direct name (set to Empty if not present)
4202       --  Declarations (List2) (set to No_List if no DECLARE part)
4203       --  Handled_Statement_Sequence (Node4)
4204       --  Is_Task_Master (Flag5-Sem)
4205       --  Activation_Chain_Entity (Node3-Sem)
4206       --  Has_Created_Identifier (Flag15)
4207       --  Is_Task_Allocation_Block (Flag6)
4208       --  Is_Asynchronous_Call_Block (Flag7)
4209       --  Exception_Junk (Flag8-Sem)
4210
4211       -------------------------
4212       -- 5.7  Exit Statement --
4213       -------------------------
4214
4215       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4216
4217       --  Gigi restriction: This expander ensures that the type of the
4218       --  Condition field is always Standard.Boolean, even if the type
4219       --  in the source is some non-standard boolean type.
4220
4221       --  N_Exit_Statement
4222       --  Sloc points to EXIT
4223       --  Name (Node2) (set to Empty if no loop name present)
4224       --  Condition (Node1) (set to Empty if no WHEN part present)
4225       --  Next_Exit_Statement (Node3-Sem): Next exit on chain
4226
4227       -------------------------
4228       -- 5.9  Goto Statement --
4229       -------------------------
4230
4231       --  GOTO_STATEMENT ::= goto label_NAME;
4232
4233       --  N_Goto_Statement
4234       --  Sloc points to GOTO
4235       --  Name (Node2)
4236       --  Exception_Junk (Flag8-Sem)
4237
4238       ---------------------------------
4239       -- 6.1  Subprogram Declaration --
4240       ---------------------------------
4241
4242       --  SUBPROGRAM_DECLARATION ::=
4243       --    SUBPROGRAM_SPECIFICATION
4244       --      [ASPECT_SPECIFICATIONS];
4245
4246       --  N_Subprogram_Declaration
4247       --  Sloc points to FUNCTION or PROCEDURE
4248       --  Specification (Node1)
4249       --  Body_To_Inline (Node3-Sem)
4250       --  Corresponding_Body (Node5-Sem)
4251       --  Parent_Spec (Node4-Sem)
4252
4253       ------------------------------------------
4254       -- 6.1  Abstract Subprogram Declaration --
4255       ------------------------------------------
4256
4257       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4258       --    SUBPROGRAM_SPECIFICATION is abstract
4259       --      [ASPECT_SPECIFICATIONS];
4260
4261       --  N_Abstract_Subprogram_Declaration
4262       --  Sloc points to ABSTRACT
4263       --  Specification (Node1)
4264
4265       -----------------------------------
4266       -- 6.1  Subprogram Specification --
4267       -----------------------------------
4268
4269       --  SUBPROGRAM_SPECIFICATION ::=
4270       --    [[not] overriding]
4271       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4272       --  | [[not] overriding]
4273       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4274
4275       --  Note: there are no separate nodes for the profiles, instead the
4276       --  information appears directly in the following nodes.
4277
4278       --  N_Function_Specification
4279       --  Sloc points to FUNCTION
4280       --  Defining_Unit_Name (Node1) (the designator)
4281       --  Elaboration_Boolean (Node2-Sem)
4282       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4283       --  Null_Exclusion_Present (Flag11)
4284       --  Result_Definition (Node4) for result subtype
4285       --  Generic_Parent (Node5-Sem)
4286       --  Must_Override (Flag14) set if overriding indicator present
4287       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4288
4289       --  N_Procedure_Specification
4290       --  Sloc points to PROCEDURE
4291       --  Defining_Unit_Name (Node1)
4292       --  Elaboration_Boolean (Node2-Sem)
4293       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4294       --  Generic_Parent (Node5-Sem)
4295       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4296       --  Must_Override (Flag14) set if overriding indicator present
4297       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4298
4299       --  Note: overriding indicator is an Ada 2005 feature
4300
4301       ---------------------
4302       -- 6.1  Designator --
4303       ---------------------
4304
4305       --  DESIGNATOR ::=
4306       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4307
4308       --  Designators that are simply identifiers or operator symbols appear
4309       --  directly in the tree in this form. The following node is used only
4310       --  in the case where the designator has a parent unit name component.
4311
4312       --  N_Designator
4313       --  Sloc points to period
4314       --  Name (Node2) holds the parent unit name. Note that this is always
4315       --   non-Empty, since this node is only used for the case where a
4316       --   parent library unit package name is present.
4317       --  Identifier (Node1)
4318
4319       --  Note that the identifier can also be an operator symbol here
4320
4321       ------------------------------
4322       -- 6.1  Defining Designator --
4323       ------------------------------
4324
4325       --  DEFINING_DESIGNATOR ::=
4326       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4327
4328       -------------------------------------
4329       -- 6.1  Defining Program Unit Name --
4330       -------------------------------------
4331
4332       --  DEFINING_PROGRAM_UNIT_NAME ::=
4333       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4334
4335       --  The parent unit name is present only in the case of a child unit
4336       --  name (permissible only for Ada 95 for a library level unit, i.e.
4337       --  a unit at scope level one). If no such name is present, the defining
4338       --  program unit name is represented simply as the defining identifier.
4339       --  In the child unit case, the following node is used to represent the
4340       --  child unit name.
4341
4342       --  N_Defining_Program_Unit_Name
4343       --  Sloc points to period
4344       --  Name (Node2) holds the parent unit name. Note that this is always
4345       --   non-Empty, since this node is only used for the case where a
4346       --   parent unit name is present.
4347       --  Defining_Identifier (Node1)
4348
4349       --------------------------
4350       -- 6.1  Operator Symbol --
4351       --------------------------
4352
4353       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4354
4355       --  Note: the fields of the N_Operator_Symbol node are laid out to
4356       --  match the corresponding fields of an N_Character_Literal node. This
4357       --  allows easy conversion of the operator symbol node into a character
4358       --  literal node in the case where a string constant of the form of an
4359       --  operator symbol is scanned out as such, but turns out semantically
4360       --  to be a string literal that is not an operator. For details see
4361       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4362
4363       --  N_Operator_Symbol
4364       --  Sloc points to literal
4365       --  Chars (Name1) contains the Name_Id for the operator symbol
4366       --  Strval (Str3) Id of string value. This is used if the operator
4367       --   symbol turns out to be a normal string after all.
4368       --  Entity (Node4-Sem)
4369       --  Associated_Node (Node4-Sem)
4370       --  Has_Private_View (Flag11-Sem) set in generic units.
4371       --  Etype (Node5-Sem)
4372
4373       --  Note: the Strval field may be set to No_String for generated
4374       --  operator symbols that are known not to be string literals
4375       --  semantically.
4376
4377       -----------------------------------
4378       -- 6.1  Defining Operator Symbol --
4379       -----------------------------------
4380
4381       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4382
4383       --  A defining operator symbol is an entity, which has additional
4384       --  fields depending on the setting of the Ekind field. These
4385       --  additional fields are defined (and access subprograms declared)
4386       --  in package Einfo.
4387
4388       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4389       --  are deliberately layed out to match the layout of fields in an
4390       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4391       --  an operator symbol node into a defining operator symbol node.
4392       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4393       --  for further details.
4394
4395       --  N_Defining_Operator_Symbol
4396       --  Sloc points to literal
4397       --  Chars (Name1) contains the Name_Id for the operator symbol
4398       --  Next_Entity (Node2-Sem)
4399       --  Scope (Node3-Sem)
4400       --  Etype (Node5-Sem)
4401
4402       ----------------------------
4403       -- 6.1  Parameter Profile --
4404       ----------------------------
4405
4406       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4407
4408       ---------------------------------------
4409       -- 6.1  Parameter and Result Profile --
4410       ---------------------------------------
4411
4412       --  PARAMETER_AND_RESULT_PROFILE ::=
4413       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4414       --  | [FORMAL_PART] return ACCESS_DEFINITION
4415
4416       --  There is no explicit node in the tree for a parameter and result
4417       --  profile. Instead the information appears directly in the parent.
4418
4419       ----------------------
4420       -- 6.1  Formal part --
4421       ----------------------
4422
4423       --  FORMAL_PART ::=
4424       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4425
4426       ----------------------------------
4427       -- 6.1  Parameter specification --
4428       ----------------------------------
4429
4430       --  PARAMETER_SPECIFICATION ::=
4431       --    DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4432       --      [:= DEFAULT_EXPRESSION]
4433       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4434       --      [:= DEFAULT_EXPRESSION]
4435
4436       --  Although the syntax allows multiple identifiers in the list, the
4437       --  semantics is as though successive specifications were given with
4438       --  identical type definition and expression components. To simplify
4439       --  semantic processing, the parser represents a multiple declaration
4440       --  case as a sequence of single Specifications, using the More_Ids and
4441       --  Prev_Ids flags to preserve the original source form as described
4442       --  in the section on "Handling of Defining Identifier Lists".
4443
4444       --  N_Parameter_Specification
4445       --  Sloc points to first identifier
4446       --  Defining_Identifier (Node1)
4447       --  In_Present (Flag15)
4448       --  Out_Present (Flag17)
4449       --  Null_Exclusion_Present (Flag11)
4450       --  Parameter_Type (Node2) subtype mark or access definition
4451       --  Expression (Node3) (set to Empty if no default expression present)
4452       --  Do_Accessibility_Check (Flag13-Sem)
4453       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4454       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4455       --  Default_Expression (Node5-Sem)
4456
4457       ---------------
4458       -- 6.1  Mode --
4459       ---------------
4460
4461       --  MODE ::= [in] | in out | out
4462
4463       --  There is no explicit node in the tree for the Mode. Instead the
4464       --  In_Present and Out_Present flags are set in the parent node to
4465       --  record the presence of keywords specifying the mode.
4466
4467       --------------------------
4468       -- 6.3  Subprogram Body --
4469       --------------------------
4470
4471       --  SUBPROGRAM_BODY ::=
4472       --    SUBPROGRAM_SPECIFICATION is
4473       --      DECLARATIVE_PART
4474       --    begin
4475       --      HANDLED_SEQUENCE_OF_STATEMENTS
4476       --    end [DESIGNATOR];
4477
4478       --  N_Subprogram_Body
4479       --  Sloc points to FUNCTION or PROCEDURE
4480       --  Specification (Node1)
4481       --  Declarations (List2)
4482       --  Handled_Statement_Sequence (Node4)
4483       --  Activation_Chain_Entity (Node3-Sem)
4484       --  Corresponding_Spec (Node5-Sem)
4485       --  Acts_As_Spec (Flag4-Sem)
4486       --  Bad_Is_Detected (Flag15) used only by parser
4487       --  Do_Storage_Check (Flag17-Sem)
4488       --  Has_Pragma_Priority (Flag6-Sem)
4489       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4490       --  Is_Entry_Barrier_Function (Flag8-Sem)
4491       --  Is_Task_Master (Flag5-Sem)
4492       --  Was_Originally_Stub (Flag13-Sem)
4493       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4494       --  Has_Pragma_CPU (Flag10-Sem)
4495
4496       ------------------------------
4497       -- Parameterized Expression --
4498       ------------------------------
4499
4500       --  This is an Ada 2012 extension, we put it here for now, to be labeled
4501       --  and put in its proper section when we know exactly where that is!
4502
4503       --  PARAMETERIZED_EXPRESSION ::=
4504       --    FUNCTION SPECIFICATION IS (EXPRESSION);
4505
4506       --  N_Parameterized_Expression
4507       --  Sloc points to FUNCTION
4508       --  Specification (Node1)
4509       --  Expression (Node3)
4510
4511       -----------------------------------
4512       -- 6.4  Procedure Call Statement --
4513       -----------------------------------
4514
4515       --  PROCEDURE_CALL_STATEMENT ::=
4516       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4517
4518       --  Note: the reason that a procedure call has expression fields is
4519       --  that it semantically resembles an expression, e.g. overloading is
4520       --  allowed and a type is concocted for semantic processing purposes.
4521       --  Certain of these fields, such as Parens are not relevant, but it
4522       --  is easier to just supply all of them together!
4523
4524       --  N_Procedure_Call_Statement
4525       --  Sloc points to first token of name or prefix
4526       --  Name (Node2) stores name or prefix
4527       --  Parameter_Associations (List3) (set to No_List if no
4528       --   actual parameter part)
4529       --  First_Named_Actual (Node4-Sem)
4530       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4531       --  Do_Tag_Check (Flag13-Sem)
4532       --  No_Elaboration_Check (Flag14-Sem)
4533       --  Parameter_List_Truncated (Flag17-Sem)
4534       --  ABE_Is_Certain (Flag18-Sem)
4535       --  plus fields for expression
4536
4537       --  If any IN parameter requires a range check, then the corresponding
4538       --  argument expression has the Do_Range_Check flag set, and the range
4539       --  check is done against the formal type. Note that this argument
4540       --  expression may appear directly in the Parameter_Associations list,
4541       --  or may be a descendent of an N_Parameter_Association node that
4542       --  appears in this list.
4543
4544       ------------------------
4545       -- 6.4  Function Call --
4546       ------------------------
4547
4548       --  FUNCTION_CALL ::=
4549       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4550
4551       --  Note: the parser may generate an indexed component node or simply
4552       --  a name node instead of a function call node. The semantic pass must
4553       --  correct this misidentification.
4554
4555       --  N_Function_Call
4556       --  Sloc points to first token of name or prefix
4557       --  Name (Node2) stores name or prefix
4558       --  Parameter_Associations (List3) (set to No_List if no
4559       --   actual parameter part)
4560       --  First_Named_Actual (Node4-Sem)
4561       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4562       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4563       --  Do_Tag_Check (Flag13-Sem)
4564       --  No_Elaboration_Check (Flag14-Sem)
4565       --  Parameter_List_Truncated (Flag17-Sem)
4566       --  ABE_Is_Certain (Flag18-Sem)
4567       --  plus fields for expression
4568
4569       --------------------------------
4570       -- 6.4  Actual Parameter Part --
4571       --------------------------------
4572
4573       --  ACTUAL_PARAMETER_PART ::=
4574       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4575
4576       --------------------------------
4577       -- 6.4  Parameter Association --
4578       --------------------------------
4579
4580       --  PARAMETER_ASSOCIATION ::=
4581       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4582
4583       --  Note: the N_Parameter_Association node is built only if a formal
4584       --  parameter selector name is present, otherwise the parameter
4585       --  association appears in the tree simply as the node for the
4586       --  explicit actual parameter.
4587
4588       --  N_Parameter_Association
4589       --  Sloc points to formal parameter
4590       --  Selector_Name (Node2) (always non-Empty)
4591       --  Explicit_Actual_Parameter (Node3)
4592       --  Next_Named_Actual (Node4-Sem)
4593       --  Is_Accessibility_Actual (Flag13-Sem)
4594
4595       ---------------------------
4596       -- 6.4  Actual Parameter --
4597       ---------------------------
4598
4599       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4600
4601       ---------------------------
4602       -- 6.5  Return Statement --
4603       ---------------------------
4604
4605       --  RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4606
4607       --  In Ada 2005, we have:
4608
4609       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4610
4611       --  EXTENDED_RETURN_STATEMENT ::=
4612       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4613       --                                           [:= EXPRESSION] [do
4614       --      HANDLED_SEQUENCE_OF_STATEMENTS
4615       --    end return];
4616
4617       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4618
4619       --  So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4620       --  "return statement" is defined in 6.5 to mean a
4621       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4622
4623       --  N_Return_Statement
4624       --  Sloc points to RETURN
4625       --  Return_Statement_Entity (Node5-Sem)
4626       --  Expression (Node3) (set to Empty if no expression present)
4627       --  Storage_Pool (Node1-Sem)
4628       --  Procedure_To_Call (Node2-Sem)
4629       --  Do_Tag_Check (Flag13-Sem)
4630       --  By_Ref (Flag5-Sem)
4631       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4632
4633       --  N_Return_Statement represents a simple_return_statement, and is
4634       --  renamed to be N_Simple_Return_Statement below. Clients should refer
4635       --  to N_Simple_Return_Statement. We retain N_Return_Statement because
4636       --  that's how gigi knows it. See also renaming of Make_Return_Statement
4637       --  as Make_Simple_Return_Statement in Sem_Util.
4638
4639       --  Note: Return_Statement_Entity points to an E_Return_Statement
4640
4641       --  If a range check is required, then Do_Range_Check is set on the
4642       --  Expression. The check is against the return subtype of the function.
4643
4644       --  N_Extended_Return_Statement
4645       --  Sloc points to RETURN
4646       --  Return_Statement_Entity (Node5-Sem)
4647       --  Return_Object_Declarations (List3)
4648       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
4649       --  Storage_Pool (Node1-Sem)
4650       --  Procedure_To_Call (Node2-Sem)
4651       --  Do_Tag_Check (Flag13-Sem)
4652       --  By_Ref (Flag5-Sem)
4653
4654       --  Note: Return_Statement_Entity points to an E_Return_Statement.
4655
4656       --  Note that Return_Object_Declarations is a list containing the
4657       --  N_Object_Declaration -- see comment on this field above.
4658
4659       --  The declared object will have Is_Return_Object = True.
4660
4661       --  There is no such syntactic category as return_object_declaration
4662       --  in the RM. Return_Object_Declarations represents this portion of
4663       --  the syntax for EXTENDED_RETURN_STATEMENT:
4664       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4665       --                                      [:= EXPRESSION]
4666
4667       --  There are two entities associated with an extended_return_statement:
4668       --  the Return_Statement_Entity represents the statement itself, and the
4669       --  Defining_Identifier of the Object_Declaration in
4670       --  Return_Object_Declarations represents the object being
4671       --  returned. N_Simple_Return_Statement has only the former.
4672
4673       ------------------------------
4674       -- 7.1  Package Declaration --
4675       ------------------------------
4676
4677       --  PACKAGE_DECLARATION ::=
4678       --    PACKAGE_SPECIFICATION
4679       --      [ASPECT_SPECIFICATIONS];
4680
4681       --  Note: the activation chain entity for a package spec is used for
4682       --  all tasks declared in the package spec, or in the package body.
4683
4684       --  N_Package_Declaration
4685       --  Sloc points to PACKAGE
4686       --  Specification (Node1)
4687       --  Corresponding_Body (Node5-Sem)
4688       --  Parent_Spec (Node4-Sem)
4689       --  Activation_Chain_Entity (Node3-Sem)
4690
4691       --------------------------------
4692       -- 7.1  Package Specification --
4693       --------------------------------
4694
4695       --  PACKAGE_SPECIFICATION ::=
4696       --    package DEFINING_PROGRAM_UNIT_NAME is
4697       --      {BASIC_DECLARATIVE_ITEM}
4698       --    [private
4699       --      {BASIC_DECLARATIVE_ITEM}]
4700       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4701
4702       --  N_Package_Specification
4703       --  Sloc points to PACKAGE
4704       --  Defining_Unit_Name (Node1)
4705       --  Visible_Declarations (List2)
4706       --  Private_Declarations (List3) (set to No_List if no private
4707       --   part present)
4708       --  End_Label (Node4)
4709       --  Generic_Parent (Node5-Sem)
4710       --  Limited_View_Installed (Flag18-Sem)
4711
4712       -----------------------
4713       -- 7.1  Package Body --
4714       -----------------------
4715
4716       --  PACKAGE_BODY ::=
4717       --    package body DEFINING_PROGRAM_UNIT_NAME is
4718       --      DECLARATIVE_PART
4719       --    [begin
4720       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4721       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4722
4723       --  N_Package_Body
4724       --  Sloc points to PACKAGE
4725       --  Defining_Unit_Name (Node1)
4726       --  Declarations (List2)
4727       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4728       --  Corresponding_Spec (Node5-Sem)
4729       --  Was_Originally_Stub (Flag13-Sem)
4730
4731       --  Note: if a source level package does not contain a handled sequence
4732       --  of statements, then the parser supplies a dummy one with a null
4733       --  sequence of statements. Comes_From_Source will be False in this
4734       --  constructed sequence. The reason we need this is for the End_Label
4735       --  field in the HSS.
4736
4737       -----------------------------------
4738       -- 7.4  Private Type Declaration --
4739       -----------------------------------
4740
4741       --  PRIVATE_TYPE_DECLARATION ::=
4742       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4743       --      is [[abstract] tagged] [limited] private;
4744
4745       --  Note: TAGGED is not permitted in Ada 83 mode
4746
4747       --  N_Private_Type_Declaration
4748       --  Sloc points to TYPE
4749       --  Defining_Identifier (Node1)
4750       --  Discriminant_Specifications (List4) (set to No_List if no
4751       --   discriminant part)
4752       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4753       --  Abstract_Present (Flag4)
4754       --  Tagged_Present (Flag15)
4755       --  Limited_Present (Flag17)
4756
4757       ----------------------------------------
4758       -- 7.4  Private Extension Declaration --
4759       ----------------------------------------
4760
4761       --  PRIVATE_EXTENSION_DECLARATION ::=
4762       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4763       --      [abstract] [limited | synchronized]
4764       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4765       --           with private;
4766
4767       --  Note: LIMITED, and private extension declarations are not allowed
4768       --        in Ada 83 mode.
4769
4770       --  N_Private_Extension_Declaration
4771       --  Sloc points to TYPE
4772       --  Defining_Identifier (Node1)
4773       --  Discriminant_Specifications (List4) (set to No_List if no
4774       --   discriminant part)
4775       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4776       --  Abstract_Present (Flag4)
4777       --  Limited_Present (Flag17)
4778       --  Synchronized_Present (Flag7)
4779       --  Subtype_Indication (Node5)
4780       --  Interface_List (List2) (set to No_List if none)
4781
4782       ---------------------
4783       -- 8.4  Use Clause --
4784       ---------------------
4785
4786       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4787
4788       -----------------------------
4789       -- 8.4  Use Package Clause --
4790       -----------------------------
4791
4792       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4793
4794       --  N_Use_Package_Clause
4795       --  Sloc points to USE
4796       --  Names (List2)
4797       --  Next_Use_Clause (Node3-Sem)
4798       --  Hidden_By_Use_Clause (Elist4-Sem)
4799
4800       --------------------------
4801       -- 8.4  Use Type Clause --
4802       --------------------------
4803
4804       --  USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
4805
4806       --  Note: use type clause is not permitted in Ada 83 mode
4807
4808       --  Note: the ALL keyword can appear only in Ada 2012 mode
4809
4810       --  N_Use_Type_Clause
4811       --  Sloc points to USE
4812       --  Subtype_Marks (List2)
4813       --  Next_Use_Clause (Node3-Sem)
4814       --  Hidden_By_Use_Clause (Elist4-Sem)
4815       --  All_Present (Flag15)
4816
4817       -------------------------------
4818       -- 8.5  Renaming Declaration --
4819       -------------------------------
4820
4821       --  RENAMING_DECLARATION ::=
4822       --    OBJECT_RENAMING_DECLARATION
4823       --  | EXCEPTION_RENAMING_DECLARATION
4824       --  | PACKAGE_RENAMING_DECLARATION
4825       --  | SUBPROGRAM_RENAMING_DECLARATION
4826       --  | GENERIC_RENAMING_DECLARATION
4827
4828       --------------------------------------
4829       -- 8.5  Object Renaming Declaration --
4830       --------------------------------------
4831
4832       --  OBJECT_RENAMING_DECLARATION ::=
4833       --    DEFINING_IDENTIFIER :
4834       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4835       --  | DEFINING_IDENTIFIER :
4836       --      ACCESS_DEFINITION renames object_NAME;
4837
4838       --  Note: Access_Definition is an optional field that gives support to
4839       --  Ada 2005 (AI-230). The parser generates nodes that have either the
4840       --  Subtype_Indication field or else the Access_Definition field.
4841
4842       --  N_Object_Renaming_Declaration
4843       --  Sloc points to first identifier
4844       --  Defining_Identifier (Node1)
4845       --  Null_Exclusion_Present (Flag11) (set to False if not present)
4846       --  Subtype_Mark (Node4) (set to Empty if not present)
4847       --  Access_Definition (Node3) (set to Empty if not present)
4848       --  Name (Node2)
4849       --  Corresponding_Generic_Association (Node5-Sem)
4850
4851       -----------------------------------------
4852       -- 8.5  Exception Renaming Declaration --
4853       -----------------------------------------
4854
4855       --  EXCEPTION_RENAMING_DECLARATION ::=
4856       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4857
4858       --  N_Exception_Renaming_Declaration
4859       --  Sloc points to first identifier
4860       --  Defining_Identifier (Node1)
4861       --  Name (Node2)
4862
4863       ---------------------------------------
4864       -- 8.5  Package Renaming Declaration --
4865       ---------------------------------------
4866
4867       --  PACKAGE_RENAMING_DECLARATION ::=
4868       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4869
4870       --  N_Package_Renaming_Declaration
4871       --  Sloc points to PACKAGE
4872       --  Defining_Unit_Name (Node1)
4873       --  Name (Node2)
4874       --  Parent_Spec (Node4-Sem)
4875
4876       ------------------------------------------
4877       -- 8.5  Subprogram Renaming Declaration --
4878       ------------------------------------------
4879
4880       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4881       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4882
4883       --  N_Subprogram_Renaming_Declaration
4884       --  Sloc points to RENAMES
4885       --  Specification (Node1)
4886       --  Name (Node2)
4887       --  Parent_Spec (Node4-Sem)
4888       --  Corresponding_Spec (Node5-Sem)
4889       --  Corresponding_Formal_Spec (Node3-Sem)
4890       --  From_Default (Flag6-Sem)
4891
4892       -----------------------------------------
4893       -- 8.5.5  Generic Renaming Declaration --
4894       -----------------------------------------
4895
4896       --  GENERIC_RENAMING_DECLARATION ::=
4897       --    generic package DEFINING_PROGRAM_UNIT_NAME
4898       --      renames generic_package_NAME
4899       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
4900       --      renames generic_procedure_NAME
4901       --  | generic function DEFINING_PROGRAM_UNIT_NAME
4902       --      renames generic_function_NAME
4903
4904       --  N_Generic_Package_Renaming_Declaration
4905       --  Sloc points to GENERIC
4906       --  Defining_Unit_Name (Node1)
4907       --  Name (Node2)
4908       --  Parent_Spec (Node4-Sem)
4909
4910       --  N_Generic_Procedure_Renaming_Declaration
4911       --  Sloc points to GENERIC
4912       --  Defining_Unit_Name (Node1)
4913       --  Name (Node2)
4914       --  Parent_Spec (Node4-Sem)
4915
4916       --  N_Generic_Function_Renaming_Declaration
4917       --  Sloc points to GENERIC
4918       --  Defining_Unit_Name (Node1)
4919       --  Name (Node2)
4920       --  Parent_Spec (Node4-Sem)
4921
4922       --------------------------------
4923       -- 9.1  Task Type Declaration --
4924       --------------------------------
4925
4926       --  TASK_TYPE_DECLARATION ::=
4927       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4928       --      [is [new INTERFACE_LIST with] TASK_DEFINITION]
4929       --        [ASPECT_SPECIFICATIONS];
4930
4931       --  N_Task_Type_Declaration
4932       --  Sloc points to TASK
4933       --  Defining_Identifier (Node1)
4934       --  Discriminant_Specifications (List4) (set to No_List if no
4935       --   discriminant part)
4936       --  Interface_List (List2) (set to No_List if none)
4937       --  Task_Definition (Node3) (set to Empty if not present)
4938       --  Corresponding_Body (Node5-Sem)
4939
4940       ----------------------------------
4941       -- 9.1  Single Task Declaration --
4942       ----------------------------------
4943
4944       --  SINGLE_TASK_DECLARATION ::=
4945       --    task DEFINING_IDENTIFIER
4946       --      [is [new INTERFACE_LIST with] TASK_DEFINITION]
4947       --        [ASPECT_SPECIFICATIONS];
4948
4949       --  N_Single_Task_Declaration
4950       --  Sloc points to TASK
4951       --  Defining_Identifier (Node1)
4952       --  Interface_List (List2) (set to No_List if none)
4953       --  Task_Definition (Node3) (set to Empty if not present)
4954
4955       --------------------------
4956       -- 9.1  Task Definition --
4957       --------------------------
4958
4959       --  TASK_DEFINITION ::=
4960       --      {TASK_ITEM}
4961       --    [private
4962       --      {TASK_ITEM}]
4963       --    end [task_IDENTIFIER]
4964
4965       --  Note: as a result of semantic analysis, the list of task items can
4966       --  include implicit type declarations resulting from entry families.
4967
4968       --  N_Task_Definition
4969       --  Sloc points to first token of task definition
4970       --  Visible_Declarations (List2)
4971       --  Private_Declarations (List3) (set to No_List if no private part)
4972       --  End_Label (Node4)
4973       --  Has_Pragma_Priority (Flag6-Sem)
4974       --  Has_Storage_Size_Pragma (Flag5-Sem)
4975       --  Has_Task_Info_Pragma (Flag7-Sem)
4976       --  Has_Task_Name_Pragma (Flag8-Sem)
4977       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4978       --  Has_Pragma_CPU (Flag10-Sem)
4979
4980       --------------------
4981       -- 9.1  Task Item --
4982       --------------------
4983
4984       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4985
4986       --------------------
4987       -- 9.1  Task Body --
4988       --------------------
4989
4990       --  TASK_BODY ::=
4991       --    task body task_DEFINING_IDENTIFIER is
4992       --      DECLARATIVE_PART
4993       --    begin
4994       --      HANDLED_SEQUENCE_OF_STATEMENTS
4995       --    end [task_IDENTIFIER];
4996
4997       --  Gigi restriction: This node never appears
4998
4999       --  N_Task_Body
5000       --  Sloc points to TASK
5001       --  Defining_Identifier (Node1)
5002       --  Declarations (List2)
5003       --  Handled_Statement_Sequence (Node4)
5004       --  Is_Task_Master (Flag5-Sem)
5005       --  Activation_Chain_Entity (Node3-Sem)
5006       --  Corresponding_Spec (Node5-Sem)
5007       --  Was_Originally_Stub (Flag13-Sem)
5008
5009       -------------------------------------
5010       -- 9.4  Protected Type Declaration --
5011       -------------------------------------
5012
5013       --  PROTECTED_TYPE_DECLARATION ::=
5014       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5015       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION
5016       --        {ASPECT_SPECIFICATIONS];
5017
5018       --  Note: protected type declarations are not permitted in Ada 83 mode
5019
5020       --  N_Protected_Type_Declaration
5021       --  Sloc points to PROTECTED
5022       --  Defining_Identifier (Node1)
5023       --  Discriminant_Specifications (List4) (set to No_List if no
5024       --   discriminant part)
5025       --  Interface_List (List2) (set to No_List if none)
5026       --  Protected_Definition (Node3)
5027       --  Corresponding_Body (Node5-Sem)
5028
5029       ---------------------------------------
5030       -- 9.4  Single Protected Declaration --
5031       ---------------------------------------
5032
5033       --  SINGLE_PROTECTED_DECLARATION ::=
5034       --    protected DEFINING_IDENTIFIER
5035       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION
5036       --        [ASPECT_SPECIFICATIONS];
5037
5038       --  Note: single protected declarations are not allowed in Ada 83 mode
5039
5040       --  N_Single_Protected_Declaration
5041       --  Sloc points to PROTECTED
5042       --  Defining_Identifier (Node1)
5043       --  Interface_List (List2) (set to No_List if none)
5044       --  Protected_Definition (Node3)
5045
5046       -------------------------------
5047       -- 9.4  Protected Definition --
5048       -------------------------------
5049
5050       --  PROTECTED_DEFINITION ::=
5051       --      {PROTECTED_OPERATION_DECLARATION}
5052       --    [private
5053       --      {PROTECTED_ELEMENT_DECLARATION}]
5054       --    end [protected_IDENTIFIER]
5055
5056       --  N_Protected_Definition
5057       --  Sloc points to first token of protected definition
5058       --  Visible_Declarations (List2)
5059       --  Private_Declarations (List3) (set to No_List if no private part)
5060       --  End_Label (Node4)
5061       --  Has_Pragma_Priority (Flag6-Sem)
5062
5063       ------------------------------------------
5064       -- 9.4  Protected Operation Declaration --
5065       ------------------------------------------
5066
5067       --  PROTECTED_OPERATION_DECLARATION ::=
5068       --    SUBPROGRAM_DECLARATION
5069       --  | ENTRY_DECLARATION
5070       --  | REPRESENTATION_CLAUSE
5071
5072       ----------------------------------------
5073       -- 9.4  Protected Element Declaration --
5074       ----------------------------------------
5075
5076       --  PROTECTED_ELEMENT_DECLARATION ::=
5077       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5078
5079       -------------------------
5080       -- 9.4  Protected Body --
5081       -------------------------
5082
5083       --  PROTECTED_BODY ::=
5084       --    protected body DEFINING_IDENTIFIER is
5085       --      {PROTECTED_OPERATION_ITEM}
5086       --    end [protected_IDENTIFIER];
5087
5088       --  Note: protected bodies are not allowed in Ada 83 mode
5089
5090       --  Gigi restriction: This node never appears
5091
5092       --  N_Protected_Body
5093       --  Sloc points to PROTECTED
5094       --  Defining_Identifier (Node1)
5095       --  Declarations (List2) protected operation items (and pragmas)
5096       --  End_Label (Node4)
5097       --  Corresponding_Spec (Node5-Sem)
5098       --  Was_Originally_Stub (Flag13-Sem)
5099
5100       -----------------------------------
5101       -- 9.4  Protected Operation Item --
5102       -----------------------------------
5103
5104       --  PROTECTED_OPERATION_ITEM ::=
5105       --    SUBPROGRAM_DECLARATION
5106       --  | SUBPROGRAM_BODY
5107       --  | ENTRY_BODY
5108       --  | REPRESENTATION_CLAUSE
5109
5110       ------------------------------
5111       -- 9.5.2  Entry Declaration --
5112       ------------------------------
5113
5114       --  ENTRY_DECLARATION ::=
5115       --    [[not] overriding]
5116       --    entry DEFINING_IDENTIFIER
5117       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5118
5119       --  N_Entry_Declaration
5120       --  Sloc points to ENTRY
5121       --  Defining_Identifier (Node1)
5122       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5123       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5124       --  Corresponding_Body (Node5-Sem)
5125       --  Must_Override (Flag14) set if overriding indicator present
5126       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5127
5128       --  Note: overriding indicator is an Ada 2005 feature
5129
5130       -----------------------------
5131       -- 9.5.2  Accept statement --
5132       -----------------------------
5133
5134       --  ACCEPT_STATEMENT ::=
5135       --    accept entry_DIRECT_NAME
5136       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5137       --        HANDLED_SEQUENCE_OF_STATEMENTS
5138       --    end [entry_IDENTIFIER]];
5139
5140       --  Gigi restriction: This node never appears
5141
5142       --  Note: there are no explicit declarations allowed in an accept
5143       --  statement. However, the implicit declarations for any statement
5144       --  identifiers (labels and block/loop identifiers) are declarations
5145       --  that belong logically to the accept statement, and that is why
5146       --  there is a Declarations field in this node.
5147
5148       --  N_Accept_Statement
5149       --  Sloc points to ACCEPT
5150       --  Entry_Direct_Name (Node1)
5151       --  Entry_Index (Node5) (set to Empty if not present)
5152       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5153       --  Handled_Statement_Sequence (Node4)
5154       --  Declarations (List2) (set to No_List if no declarations)
5155
5156       ------------------------
5157       -- 9.5.2  Entry Index --
5158       ------------------------
5159
5160       --  ENTRY_INDEX ::= EXPRESSION
5161
5162       -----------------------
5163       -- 9.5.2  Entry Body --
5164       -----------------------
5165
5166       --  ENTRY_BODY ::=
5167       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5168       --      DECLARATIVE_PART
5169       --    begin
5170       --      HANDLED_SEQUENCE_OF_STATEMENTS
5171       --    end [entry_IDENTIFIER];
5172
5173       --  ENTRY_BARRIER ::= when CONDITION
5174
5175       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5176       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5177       --  too full (it would otherwise have too many fields)
5178
5179       --  Gigi restriction: This node never appears
5180
5181       --  N_Entry_Body
5182       --  Sloc points to ENTRY
5183       --  Defining_Identifier (Node1)
5184       --  Entry_Body_Formal_Part (Node5)
5185       --  Declarations (List2)
5186       --  Handled_Statement_Sequence (Node4)
5187       --  Activation_Chain_Entity (Node3-Sem)
5188
5189       -----------------------------------
5190       -- 9.5.2  Entry Body Formal Part --
5191       -----------------------------------
5192
5193       --  ENTRY_BODY_FORMAL_PART ::=
5194       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5195
5196       --  Note that an entry body formal part node is present even if it is
5197       --  empty. This reflects the grammar, in which it is the components of
5198       --  the entry body formal part that are optional, not the entry body
5199       --  formal part itself. Also this means that the barrier condition
5200       --  always has somewhere to be stored.
5201
5202       --  Gigi restriction: This node never appears
5203
5204       --  N_Entry_Body_Formal_Part
5205       --  Sloc points to first token
5206       --  Entry_Index_Specification (Node4) (set to Empty if not present)
5207       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5208       --  Condition (Node1) from entry barrier of entry body
5209
5210       --------------------------
5211       -- 9.5.2  Entry Barrier --
5212       --------------------------
5213
5214       --  ENTRY_BARRIER ::= when CONDITION
5215
5216       --------------------------------------
5217       -- 9.5.2  Entry Index Specification --
5218       --------------------------------------
5219
5220       --  ENTRY_INDEX_SPECIFICATION ::=
5221       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5222
5223       --  Gigi restriction: This node never appears
5224
5225       --  N_Entry_Index_Specification
5226       --  Sloc points to FOR
5227       --  Defining_Identifier (Node1)
5228       --  Discrete_Subtype_Definition (Node4)
5229
5230       ---------------------------------
5231       -- 9.5.3  Entry Call Statement --
5232       ---------------------------------
5233
5234       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5235
5236       --  The parser may generate a procedure call for this construct. The
5237       --  semantic pass must correct this misidentification where needed.
5238
5239       --  Gigi restriction: This node never appears
5240
5241       --  N_Entry_Call_Statement
5242       --  Sloc points to first token of name
5243       --  Name (Node2)
5244       --  Parameter_Associations (List3) (set to No_List if no
5245       --   actual parameter part)
5246       --  First_Named_Actual (Node4-Sem)
5247
5248       ------------------------------
5249       -- 9.5.4  Requeue Statement --
5250       ------------------------------
5251
5252       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5253
5254       --  Note: requeue statements are not permitted in Ada 83 mode
5255
5256       --  Gigi restriction: This node never appears
5257
5258       --  N_Requeue_Statement
5259       --  Sloc points to REQUEUE
5260       --  Name (Node2)
5261       --  Abort_Present (Flag15)
5262
5263       --------------------------
5264       -- 9.6  Delay Statement --
5265       --------------------------
5266
5267       --  DELAY_STATEMENT ::=
5268       --    DELAY_UNTIL_STATEMENT
5269       --  | DELAY_RELATIVE_STATEMENT
5270
5271       --------------------------------
5272       -- 9.6  Delay Until Statement --
5273       --------------------------------
5274
5275       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5276
5277       --  Note: delay until statements are not permitted in Ada 83 mode
5278
5279       --  Gigi restriction: This node never appears
5280
5281       --  N_Delay_Until_Statement
5282       --  Sloc points to DELAY
5283       --  Expression (Node3)
5284
5285       -----------------------------------
5286       -- 9.6  Delay Relative Statement --
5287       -----------------------------------
5288
5289       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5290
5291       --  Gigi restriction: This node never appears
5292
5293       --  N_Delay_Relative_Statement
5294       --  Sloc points to DELAY
5295       --  Expression (Node3)
5296
5297       ---------------------------
5298       -- 9.7  Select Statement --
5299       ---------------------------
5300
5301       --  SELECT_STATEMENT ::=
5302       --    SELECTIVE_ACCEPT
5303       --  | TIMED_ENTRY_CALL
5304       --  | CONDITIONAL_ENTRY_CALL
5305       --  | ASYNCHRONOUS_SELECT
5306
5307       -----------------------------
5308       -- 9.7.1  Selective Accept --
5309       -----------------------------
5310
5311       --  SELECTIVE_ACCEPT ::=
5312       --    select
5313       --      [GUARD]
5314       --        SELECT_ALTERNATIVE
5315       --    {or
5316       --      [GUARD]
5317       --        SELECT_ALTERNATIVE}
5318       --    [else
5319       --      SEQUENCE_OF_STATEMENTS]
5320       --    end select;
5321
5322       --  Gigi restriction: This node never appears
5323
5324       --  Note: the guard expression, if present, appears in the node for
5325       --  the select alternative.
5326
5327       --  N_Selective_Accept
5328       --  Sloc points to SELECT
5329       --  Select_Alternatives (List1)
5330       --  Else_Statements (List4) (set to No_List if no else part)
5331
5332       ------------------
5333       -- 9.7.1  Guard --
5334       ------------------
5335
5336       --  GUARD ::= when CONDITION =>
5337
5338       --  As noted above, the CONDITION that is part of a GUARD is included
5339       --  in the node for the select alternative for convenience.
5340
5341       -------------------------------
5342       -- 9.7.1  Select Alternative --
5343       -------------------------------
5344
5345       --  SELECT_ALTERNATIVE ::=
5346       --    ACCEPT_ALTERNATIVE
5347       --  | DELAY_ALTERNATIVE
5348       --  | TERMINATE_ALTERNATIVE
5349
5350       -------------------------------
5351       -- 9.7.1  Accept Alternative --
5352       -------------------------------
5353
5354       --  ACCEPT_ALTERNATIVE ::=
5355       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5356
5357       --  Gigi restriction: This node never appears
5358
5359       --  N_Accept_Alternative
5360       --  Sloc points to ACCEPT
5361       --  Accept_Statement (Node2)
5362       --  Condition (Node1) from the guard (set to Empty if no guard present)
5363       --  Statements (List3) (set to Empty_List if no statements)
5364       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5365       --  Accept_Handler_Records (List5-Sem)
5366
5367       ------------------------------
5368       -- 9.7.1  Delay Alternative --
5369       ------------------------------
5370
5371       --  DELAY_ALTERNATIVE ::=
5372       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5373
5374       --  Gigi restriction: This node never appears
5375
5376       --  N_Delay_Alternative
5377       --  Sloc points to DELAY
5378       --  Delay_Statement (Node2)
5379       --  Condition (Node1) from the guard (set to Empty if no guard present)
5380       --  Statements (List3) (set to Empty_List if no statements)
5381       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5382
5383       ----------------------------------
5384       -- 9.7.1  Terminate Alternative --
5385       ----------------------------------
5386
5387       --  TERMINATE_ALTERNATIVE ::= terminate;
5388
5389       --  Gigi restriction: This node never appears
5390
5391       --  N_Terminate_Alternative
5392       --  Sloc points to TERMINATE
5393       --  Condition (Node1) from the guard (set to Empty if no guard present)
5394       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5395       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5396
5397       -----------------------------
5398       -- 9.7.2  Timed Entry Call --
5399       -----------------------------
5400
5401       --  TIMED_ENTRY_CALL ::=
5402       --    select
5403       --      ENTRY_CALL_ALTERNATIVE
5404       --    or
5405       --      DELAY_ALTERNATIVE
5406       --    end select;
5407
5408       --  Gigi restriction: This node never appears
5409
5410       --  N_Timed_Entry_Call
5411       --  Sloc points to SELECT
5412       --  Entry_Call_Alternative (Node1)
5413       --  Delay_Alternative (Node4)
5414
5415       -----------------------------------
5416       -- 9.7.2  Entry Call Alternative --
5417       -----------------------------------
5418
5419       --  ENTRY_CALL_ALTERNATIVE ::=
5420       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5421
5422       --  PROCEDURE_OR_ENTRY_CALL ::=
5423       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5424
5425       --  Gigi restriction: This node never appears
5426
5427       --  N_Entry_Call_Alternative
5428       --  Sloc points to first token of entry call statement
5429       --  Entry_Call_Statement (Node1)
5430       --  Statements (List3) (set to Empty_List if no statements)
5431       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5432
5433       -----------------------------------
5434       -- 9.7.3  Conditional Entry Call --
5435       -----------------------------------
5436
5437       --  CONDITIONAL_ENTRY_CALL ::=
5438       --    select
5439       --      ENTRY_CALL_ALTERNATIVE
5440       --    else
5441       --      SEQUENCE_OF_STATEMENTS
5442       --    end select;
5443
5444       --  Gigi restriction: This node never appears
5445
5446       --  N_Conditional_Entry_Call
5447       --  Sloc points to SELECT
5448       --  Entry_Call_Alternative (Node1)
5449       --  Else_Statements (List4)
5450
5451       --------------------------------
5452       -- 9.7.4  Asynchronous Select --
5453       --------------------------------
5454
5455       --  ASYNCHRONOUS_SELECT ::=
5456       --    select
5457       --      TRIGGERING_ALTERNATIVE
5458       --    then abort
5459       --      ABORTABLE_PART
5460       --    end select;
5461
5462       --  Note: asynchronous select is not permitted in Ada 83 mode
5463
5464       --  Gigi restriction: This node never appears
5465
5466       --  N_Asynchronous_Select
5467       --  Sloc points to SELECT
5468       --  Triggering_Alternative (Node1)
5469       --  Abortable_Part (Node2)
5470
5471       -----------------------------------
5472       -- 9.7.4  Triggering Alternative --
5473       -----------------------------------
5474
5475       --  TRIGGERING_ALTERNATIVE ::=
5476       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5477
5478       --  Gigi restriction: This node never appears
5479
5480       --  N_Triggering_Alternative
5481       --  Sloc points to first token of triggering statement
5482       --  Triggering_Statement (Node1)
5483       --  Statements (List3) (set to Empty_List if no statements)
5484       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5485
5486       ---------------------------------
5487       -- 9.7.4  Triggering Statement --
5488       ---------------------------------
5489
5490       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5491
5492       ---------------------------
5493       -- 9.7.4  Abortable Part --
5494       ---------------------------
5495
5496       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5497
5498       --  Gigi restriction: This node never appears
5499
5500       --  N_Abortable_Part
5501       --  Sloc points to ABORT
5502       --  Statements (List3)
5503
5504       --------------------------
5505       -- 9.8  Abort Statement --
5506       --------------------------
5507
5508       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5509
5510       --  Gigi restriction: This node never appears
5511
5512       --  N_Abort_Statement
5513       --  Sloc points to ABORT
5514       --  Names (List2)
5515
5516       -------------------------
5517       -- 10.1.1  Compilation --
5518       -------------------------
5519
5520       --  COMPILATION ::= {COMPILATION_UNIT}
5521
5522       --  There is no explicit node in the tree for a compilation, since in
5523       --  general the compiler is processing only a single compilation unit
5524       --  at a time. It is possible to parse multiple units in syntax check
5525       --  only mode, but the trees are discarded in that case.
5526
5527       ------------------------------
5528       -- 10.1.1  Compilation Unit --
5529       ------------------------------
5530
5531       --  COMPILATION_UNIT ::=
5532       --    CONTEXT_CLAUSE LIBRARY_ITEM
5533       --  | CONTEXT_CLAUSE SUBUNIT
5534
5535       --  The N_Compilation_Unit node itself represents the above syntax.
5536       --  However, there are two additional items not reflected in the above
5537       --  syntax. First we have the global declarations that are added by the
5538       --  code generator. These are outer level declarations (so they cannot
5539       --  be represented as being inside the units). An example is the wrapper
5540       --  subprograms that are created to do ABE checking. As always a list of
5541       --  declarations can contain actions as well (i.e. statements), and such
5542       --  statements are executed as part of the elaboration of the unit. Note
5543       --  that all such declarations are elaborated before the library unit.
5544
5545       --  Similarly, certain actions need to be elaborated at the completion
5546       --  of elaboration of the library unit (notably the statement that sets
5547       --  the Boolean flag indicating that elaboration is complete).
5548
5549       --  The third item not reflected in the syntax is pragmas that appear
5550       --  after the compilation unit. As always pragmas are a problem since
5551       --  they are not part of the formal syntax, but can be stuck into the
5552       --  source following a set of ad hoc rules, and we have to find an ad
5553       --  hoc way of sticking them into the tree. For pragmas that appear
5554       --  before the library unit, we just consider them to be part of the
5555       --  context clause, and pragmas can appear in the Context_Items list
5556       --  of the compilation unit. However, pragmas can also appear after
5557       --  the library item.
5558
5559       --  To deal with all these problems, we create an auxiliary node for
5560       --  a compilation unit, referenced from the N_Compilation_Unit node
5561       --  that contains these three items.
5562
5563       --  N_Compilation_Unit
5564       --  Sloc points to first token of defining unit name
5565       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5566       --  Context_Items (List1) context items and pragmas preceding unit
5567       --  Private_Present (Flag15) set if library unit has private keyword
5568       --  Unit (Node2) library item or subunit
5569       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5570       --  Has_No_Elaboration_Code (Flag17-Sem)
5571       --  Body_Required (Flag13-Sem) set for spec if body is required
5572       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5573       --  Context_Pending (Flag16-Sem)
5574       --  First_Inlined_Subprogram (Node3-Sem)
5575       --  Has_Pragma_Suppress_All (Flag14-Sem)
5576
5577       --  N_Compilation_Unit_Aux
5578       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5579       --  Declarations (List2) (set to No_List if no global declarations)
5580       --  Actions (List1) (set to No_List if no actions)
5581       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5582       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5583
5584       --------------------------
5585       -- 10.1.1  Library Item --
5586       --------------------------
5587
5588       --  LIBRARY_ITEM ::=
5589       --    [private] LIBRARY_UNIT_DECLARATION
5590       --  | LIBRARY_UNIT_BODY
5591       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5592
5593       --  Note: PRIVATE is not allowed in Ada 83 mode
5594
5595       --  There is no explicit node in the tree for library item, instead
5596       --  the declaration or body, and the flag for private if present,
5597       --  appear in the N_Compilation_Unit node.
5598
5599       --------------------------------------
5600       -- 10.1.1  Library Unit Declaration --
5601       --------------------------------------
5602
5603       --  LIBRARY_UNIT_DECLARATION ::=
5604       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5605       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5606
5607       -----------------------------------------------
5608       -- 10.1.1  Library Unit Renaming Declaration --
5609       -----------------------------------------------
5610
5611       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5612       --    PACKAGE_RENAMING_DECLARATION
5613       --  | GENERIC_RENAMING_DECLARATION
5614       --  | SUBPROGRAM_RENAMING_DECLARATION
5615
5616       -------------------------------
5617       -- 10.1.1  Library unit body --
5618       -------------------------------
5619
5620       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5621
5622       ------------------------------
5623       -- 10.1.1  Parent Unit Name --
5624       ------------------------------
5625
5626       --  PARENT_UNIT_NAME ::= NAME
5627
5628       ----------------------------
5629       -- 10.1.2  Context clause --
5630       ----------------------------
5631
5632       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5633
5634       --  The context clause can include pragmas, and any pragmas that appear
5635       --  before the context clause proper (i.e. all configuration pragmas,
5636       --  also appear at the front of this list).
5637
5638       --------------------------
5639       -- 10.1.2  Context_Item --
5640       --------------------------
5641
5642       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5643
5644       -------------------------
5645       -- 10.1.2  With clause --
5646       -------------------------
5647
5648       --  WITH_CLAUSE ::=
5649       --    with library_unit_NAME {,library_unit_NAME};
5650
5651       --  A separate With clause is built for each name, so that we have
5652       --  a Corresponding_Spec field for each with'ed spec. The flags
5653       --  First_Name and Last_Name are used to reconstruct the exact
5654       --  source form. When a list of names appears in one with clause,
5655       --  the first name in the list has First_Name set, and the last
5656       --  has Last_Name set. If the with clause has only one name, then
5657       --  both of the flags First_Name and Last_Name are set in this name.
5658
5659       --  Note: in the case of implicit with's that are installed by the
5660       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5661       --  set to Standard_Location, but it is incorrect to test the Sloc
5662       --  to find out if a with clause is implicit, test the flag instead.
5663
5664       --  N_With_Clause
5665       --  Sloc points to first token of library unit name
5666       --  Withed_Body (Node1-Sem)
5667       --  Name (Node2)
5668       --  Next_Implicit_With (Node3-Sem)
5669       --  Library_Unit (Node4-Sem)
5670       --  Corresponding_Spec (Node5-Sem)
5671       --  First_Name (Flag5) (set to True if first name or only one name)
5672       --  Last_Name (Flag6) (set to True if last name or only one name)
5673       --  Context_Installed (Flag13-Sem)
5674       --  Elaborate_Present (Flag4-Sem)
5675       --  Elaborate_All_Present (Flag14-Sem)
5676       --  Elaborate_All_Desirable (Flag9-Sem)
5677       --  Elaborate_Desirable (Flag11-Sem)
5678       --  Private_Present (Flag15) set if with_clause has private keyword
5679       --  Implicit_With (Flag16-Sem)
5680       --  Limited_Present (Flag17) set if LIMITED is present
5681       --  Limited_View_Installed (Flag18-Sem)
5682       --  Unreferenced_In_Spec (Flag7-Sem)
5683       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5684
5685       --  Note: Limited_Present and Limited_View_Installed give support to
5686       --        Ada 2005 (AI-50217).
5687       --  Similarly, Private_Present gives support to AI-50262.
5688
5689       ----------------------
5690       -- With_Type clause --
5691       ----------------------
5692
5693       --  This is a GNAT extension, used to implement mutually recursive
5694       --  types declared in different packages.
5695       --  Note: this is now obsolete. The functionality of this construct
5696       --  is now implemented by the Ada 2005 Limited_with_Clause.
5697
5698       ---------------------
5699       -- 10.2  Body stub --
5700       ---------------------
5701
5702       --  BODY_STUB ::=
5703       --    SUBPROGRAM_BODY_STUB
5704       --  | PACKAGE_BODY_STUB
5705       --  | TASK_BODY_STUB
5706       --  | PROTECTED_BODY_STUB
5707
5708       ----------------------------------
5709       -- 10.1.3  Subprogram Body Stub --
5710       ----------------------------------
5711
5712       --  SUBPROGRAM_BODY_STUB ::=
5713       --    SUBPROGRAM_SPECIFICATION is separate;
5714
5715       --  N_Subprogram_Body_Stub
5716       --  Sloc points to FUNCTION or PROCEDURE
5717       --  Specification (Node1)
5718       --  Library_Unit (Node4-Sem) points to the subunit
5719       --  Corresponding_Body (Node5-Sem)
5720
5721       -------------------------------
5722       -- 10.1.3  Package Body Stub --
5723       -------------------------------
5724
5725       --  PACKAGE_BODY_STUB ::=
5726       --    package body DEFINING_IDENTIFIER is separate;
5727
5728       --  N_Package_Body_Stub
5729       --  Sloc points to PACKAGE
5730       --  Defining_Identifier (Node1)
5731       --  Library_Unit (Node4-Sem) points to the subunit
5732       --  Corresponding_Body (Node5-Sem)
5733
5734       ----------------------------
5735       -- 10.1.3  Task Body Stub --
5736       ----------------------------
5737
5738       --  TASK_BODY_STUB ::=
5739       --    task body DEFINING_IDENTIFIER is separate;
5740
5741       --  N_Task_Body_Stub
5742       --  Sloc points to TASK
5743       --  Defining_Identifier (Node1)
5744       --  Library_Unit (Node4-Sem) points to the subunit
5745       --  Corresponding_Body (Node5-Sem)
5746
5747       ---------------------------------
5748       -- 10.1.3  Protected Body Stub --
5749       ---------------------------------
5750
5751       --  PROTECTED_BODY_STUB ::=
5752       --    protected body DEFINING_IDENTIFIER is separate;
5753
5754       --  Note: protected body stubs are not allowed in Ada 83 mode
5755
5756       --  N_Protected_Body_Stub
5757       --  Sloc points to PROTECTED
5758       --  Defining_Identifier (Node1)
5759       --  Library_Unit (Node4-Sem) points to the subunit
5760       --  Corresponding_Body (Node5-Sem)
5761
5762       ---------------------
5763       -- 10.1.3  Subunit --
5764       ---------------------
5765
5766       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5767
5768       --  N_Subunit
5769       --  Sloc points to SEPARATE
5770       --  Name (Node2) is the name of the parent unit
5771       --  Proper_Body (Node1) is the subunit body
5772       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5773
5774       ---------------------------------
5775       -- 11.1  Exception Declaration --
5776       ---------------------------------
5777
5778       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
5779       --    [ASPECT_SPECIFICATIONS];
5780
5781       --  For consistency with object declarations etc., the parser converts
5782       --  the case of multiple identifiers being declared to a series of
5783       --  declarations in which the expression is copied, using the More_Ids
5784       --  and Prev_Ids flags to remember the source form as described in the
5785       --  section on "Handling of Defining Identifier Lists".
5786
5787       --  N_Exception_Declaration
5788       --  Sloc points to EXCEPTION
5789       --  Defining_Identifier (Node1)
5790       --  Expression (Node3-Sem)
5791       --  Renaming_Exception (Node2-Sem)
5792       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5793       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5794
5795       ------------------------------------------
5796       -- 11.2  Handled Sequence Of Statements --
5797       ------------------------------------------
5798
5799       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5800       --      SEQUENCE_OF_STATEMENTS
5801       --    [exception
5802       --      EXCEPTION_HANDLER
5803       --      {EXCEPTION_HANDLER}]
5804       --    [at end
5805       --      cleanup_procedure_call (param, param, param, ...);]
5806
5807       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5808       --  used only internally currently, but is considered to be syntactic.
5809       --  At the moment, the only cleanup action allowed is a single call to
5810       --  a parameterless procedure, and the Identifier field of the node is
5811       --  the procedure to be called. Also there is a current restriction
5812       --  that exception handles and a cleanup cannot be present in the same
5813       --  frame, so at least one of Exception_Handlers or the Identifier must
5814       --  be missing.
5815
5816       --  Actually, more accurately, this restriction applies to the original
5817       --  source program. In the expanded tree, if the At_End_Proc field is
5818       --  present, then there will also be an exception handler of the form:
5819
5820       --     when all others =>
5821       --        cleanup;
5822       --        raise;
5823
5824       --  where cleanup is the procedure to be generated. The reason we do
5825       --  this is so that the front end can handle the necessary entries in
5826       --  the exception tables, and other exception handler actions required
5827       --  as part of the normal handling for exception handlers.
5828
5829       --  The AT END cleanup handler protects only the sequence of statements
5830       --  (not the associated declarations of the parent), just like exception
5831       --  handlers. The big difference is that the cleanup procedure is called
5832       --  on either a normal or an abnormal exit from the statement sequence.
5833
5834       --  Note: the list of Exception_Handlers can contain pragmas as well
5835       --  as actual handlers. In practice these pragmas can only occur at
5836       --  the start of the list, since any pragmas occurring later on will
5837       --  be included in the statement list of the corresponding handler.
5838
5839       --  Note: although in the Ada syntax, the sequence of statements in
5840       --  a handled sequence of statements can only contain statements, we
5841       --  allow free mixing of declarations and statements in the resulting
5842       --  expanded tree. This is for example used to deal with the case of
5843       --  a cleanup procedure that must handle declarations as well as the
5844       --  statements of a block.
5845
5846       --  N_Handled_Sequence_Of_Statements
5847       --  Sloc points to first token of first statement
5848       --  Statements (List3)
5849       --  End_Label (Node4) (set to Empty if expander generated)
5850       --  Exception_Handlers (List5) (set to No_List if none present)
5851       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5852       --  First_Real_Statement (Node2-Sem)
5853       --  Zero_Cost_Handling (Flag5-Sem)
5854
5855       --  Note: the parent always contains a Declarations field which contains
5856       --  declarations associated with the handled sequence of statements. This
5857       --  is true even in the case of an accept statement (see description of
5858       --  the N_Accept_Statement node).
5859
5860       --  End_Label refers to the containing construct
5861
5862       -----------------------------
5863       -- 11.2  Exception Handler --
5864       -----------------------------
5865
5866       --  EXCEPTION_HANDLER ::=
5867       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5868       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5869       --        SEQUENCE_OF_STATEMENTS
5870
5871       --  Note: choice parameter specification is not allowed in Ada 83 mode
5872
5873       --  N_Exception_Handler
5874       --  Sloc points to WHEN
5875       --  Choice_Parameter (Node2) (set to Empty if not present)
5876       --  Exception_Choices (List4)
5877       --  Statements (List3)
5878       --  Exception_Label (Node5-Sem) (set to Empty of not present)
5879       --  Zero_Cost_Handling (Flag5-Sem)
5880       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5881       --  Local_Raise_Not_OK (Flag7-Sem)
5882       --  Has_Local_Raise (Flag8-Sem)
5883
5884       ------------------------------------------
5885       -- 11.2  Choice parameter specification --
5886       ------------------------------------------
5887
5888       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5889
5890       ----------------------------
5891       -- 11.2  Exception Choice --
5892       ----------------------------
5893
5894       --  EXCEPTION_CHOICE ::= exception_NAME | others
5895
5896       --  Except in the case of OTHERS, no explicit node appears in the tree
5897       --  for exception choice. Instead the exception name appears directly.
5898       --  An OTHERS choice is represented by a N_Others_Choice node (see
5899       --  section 3.8.1.
5900
5901       --  Note: for the exception choice created for an at end handler, the
5902       --  exception choice is an N_Others_Choice node with All_Others set.
5903
5904       ---------------------------
5905       -- 11.3  Raise Statement --
5906       ---------------------------
5907
5908       --  RAISE_STATEMENT ::= raise [exception_NAME];
5909
5910       --  In Ada 2005, we have
5911
5912       --  RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5913
5914       --  N_Raise_Statement
5915       --  Sloc points to RAISE
5916       --  Name (Node2) (set to Empty if no exception name present)
5917       --  Expression (Node3) (set to Empty if no expression present)
5918       --  From_At_End (Flag4-Sem)
5919
5920       -------------------------------
5921       -- 12.1  Generic Declaration --
5922       -------------------------------
5923
5924       --  GENERIC_DECLARATION ::=
5925       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5926
5927       ------------------------------------------
5928       -- 12.1  Generic Subprogram Declaration --
5929       ------------------------------------------
5930
5931       --  GENERIC_SUBPROGRAM_DECLARATION ::=
5932       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5933
5934       --  Note: Generic_Formal_Declarations can include pragmas
5935
5936       --  N_Generic_Subprogram_Declaration
5937       --  Sloc points to GENERIC
5938       --  Specification (Node1) subprogram specification
5939       --  Corresponding_Body (Node5-Sem)
5940       --  Generic_Formal_Declarations (List2) from generic formal part
5941       --  Parent_Spec (Node4-Sem)
5942
5943       ---------------------------------------
5944       -- 12.1  Generic Package Declaration --
5945       ---------------------------------------
5946
5947       --  GENERIC_PACKAGE_DECLARATION ::=
5948       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
5949       --      [ASPECT_SPECIFICATIONS];
5950
5951       --  Note: when we do generics right, the Activation_Chain_Entity entry
5952       --  for this node can be removed (since the expander won't see generic
5953       --  units any more)???.
5954
5955       --  Note: Generic_Formal_Declarations can include pragmas
5956
5957       --  N_Generic_Package_Declaration
5958       --  Sloc points to GENERIC
5959       --  Specification (Node1) package specification
5960       --  Corresponding_Body (Node5-Sem)
5961       --  Generic_Formal_Declarations (List2) from generic formal part
5962       --  Parent_Spec (Node4-Sem)
5963       --  Activation_Chain_Entity (Node3-Sem)
5964
5965       -------------------------------
5966       -- 12.1  Generic Formal Part --
5967       -------------------------------
5968
5969       --  GENERIC_FORMAL_PART ::=
5970       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5971
5972       ------------------------------------------------
5973       -- 12.1  Generic Formal Parameter Declaration --
5974       ------------------------------------------------
5975
5976       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5977       --    FORMAL_OBJECT_DECLARATION
5978       --  | FORMAL_TYPE_DECLARATION
5979       --  | FORMAL_SUBPROGRAM_DECLARATION
5980       --  | FORMAL_PACKAGE_DECLARATION
5981
5982       ---------------------------------
5983       -- 12.3  Generic Instantiation --
5984       ---------------------------------
5985
5986       --  GENERIC_INSTANTIATION ::=
5987       --    package DEFINING_PROGRAM_UNIT_NAME is
5988       --      new generic_package_NAME [GENERIC_ACTUAL_PART]
5989       --        [ASPECT_SPECIFICATIONS];
5990       --  | [[not] overriding]
5991       --    procedure DEFINING_PROGRAM_UNIT_NAME is
5992       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART]
5993       --        [ASPECT_SPECIFICATIONS];
5994       --  | [[not] overriding]
5995       --    function DEFINING_DESIGNATOR is
5996       --      new generic_function_NAME [GENERIC_ACTUAL_PART]
5997       --        [ASPECT_SPECIFICATIONS];
5998
5999       --  N_Package_Instantiation
6000       --  Sloc points to PACKAGE
6001       --  Defining_Unit_Name (Node1)
6002       --  Name (Node2)
6003       --  Generic_Associations (List3) (set to No_List if no
6004       --   generic actual part)
6005       --  Parent_Spec (Node4-Sem)
6006       --  Instance_Spec (Node5-Sem)
6007       --  ABE_Is_Certain (Flag18-Sem)
6008
6009       --  N_Procedure_Instantiation
6010       --  Sloc points to PROCEDURE
6011       --  Defining_Unit_Name (Node1)
6012       --  Name (Node2)
6013       --  Parent_Spec (Node4-Sem)
6014       --  Generic_Associations (List3) (set to No_List if no
6015       --   generic actual part)
6016       --  Instance_Spec (Node5-Sem)
6017       --  Must_Override (Flag14) set if overriding indicator present
6018       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6019       --  ABE_Is_Certain (Flag18-Sem)
6020
6021       --  N_Function_Instantiation
6022       --  Sloc points to FUNCTION
6023       --  Defining_Unit_Name (Node1)
6024       --  Name (Node2)
6025       --  Generic_Associations (List3) (set to No_List if no
6026       --   generic actual part)
6027       --  Parent_Spec (Node4-Sem)
6028       --  Instance_Spec (Node5-Sem)
6029       --  Must_Override (Flag14) set if overriding indicator present
6030       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6031       --  ABE_Is_Certain (Flag18-Sem)
6032
6033       --  Note: overriding indicator is an Ada 2005 feature
6034
6035       -------------------------------
6036       -- 12.3  Generic Actual Part --
6037       -------------------------------
6038
6039       --  GENERIC_ACTUAL_PART ::=
6040       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6041
6042       -------------------------------
6043       -- 12.3  Generic Association --
6044       -------------------------------
6045
6046       --  GENERIC_ASSOCIATION ::=
6047       --    [generic_formal_parameter_SELECTOR_NAME =>]
6048
6049       --  Note: unlike the procedure call case, a generic association node
6050       --  is generated for every association, even if no formal parameter
6051       --  selector name is present. In this case the parser will leave the
6052       --  Selector_Name field set to Empty, to be filled in later by the
6053       --  semantic pass.
6054
6055       --  In Ada 2005, a formal may be associated with a box, if the
6056       --  association is part of the list of actuals for a formal package.
6057       --  If the association is given by  OTHERS => <>, the association is
6058       --  an N_Others_Choice.
6059
6060       --  N_Generic_Association
6061       --  Sloc points to first token of generic association
6062       --  Selector_Name (Node2) (set to Empty if no formal
6063       --   parameter selector name)
6064       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6065       --  Box_Present (Flag15) (for formal_package associations with a box)
6066
6067       ---------------------------------------------
6068       -- 12.3  Explicit Generic Actual Parameter --
6069       ---------------------------------------------
6070
6071       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6072       --    EXPRESSION      | variable_NAME   | subprogram_NAME
6073       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
6074
6075       -------------------------------------
6076       -- 12.4  Formal Object Declaration --
6077       -------------------------------------
6078
6079       --  FORMAL_OBJECT_DECLARATION ::=
6080       --    DEFINING_IDENTIFIER_LIST :
6081       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6082       --        [ASPECT_SPECIFICATIONS];
6083       --  | DEFINING_IDENTIFIER_LIST :
6084       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6085       --        [ASPECT_SPECIFICATIONS];
6086
6087       --  Although the syntax allows multiple identifiers in the list, the
6088       --  semantics is as though successive declarations were given with
6089       --  identical type definition and expression components. To simplify
6090       --  semantic processing, the parser represents a multiple declaration
6091       --  case as a sequence of single declarations, using the More_Ids and
6092       --  Prev_Ids flags to preserve the original source form as described
6093       --  in the section on "Handling of Defining Identifier Lists".
6094
6095       --  N_Formal_Object_Declaration
6096       --  Sloc points to first identifier
6097       --  Defining_Identifier (Node1)
6098       --  In_Present (Flag15)
6099       --  Out_Present (Flag17)
6100       --  Null_Exclusion_Present (Flag11) (set to False if not present)
6101       --  Subtype_Mark (Node4) (set to Empty if not present)
6102       --  Access_Definition (Node3) (set to Empty if not present)
6103       --  Default_Expression (Node5) (set to Empty if no default expression)
6104       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6105       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6106
6107       -----------------------------------
6108       -- 12.5  Formal Type Declaration --
6109       -----------------------------------
6110
6111       --  FORMAL_TYPE_DECLARATION ::=
6112       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6113       --      is FORMAL_TYPE_DEFINITION
6114       --        [ASPECT_SPECIFICATIONS];
6115
6116       --  N_Formal_Type_Declaration
6117       --  Sloc points to TYPE
6118       --  Defining_Identifier (Node1)
6119       --  Formal_Type_Definition (Node3)
6120       --  Discriminant_Specifications (List4) (set to No_List if no
6121       --   discriminant part)
6122       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6123
6124       ----------------------------------
6125       -- 12.5  Formal type definition --
6126       ----------------------------------
6127
6128       --  FORMAL_TYPE_DEFINITION ::=
6129       --    FORMAL_PRIVATE_TYPE_DEFINITION
6130       --  | FORMAL_DERIVED_TYPE_DEFINITION
6131       --  | FORMAL_DISCRETE_TYPE_DEFINITION
6132       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6133       --  | FORMAL_MODULAR_TYPE_DEFINITION
6134       --  | FORMAL_FLOATING_POINT_DEFINITION
6135       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6136       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6137       --  | FORMAL_ARRAY_TYPE_DEFINITION
6138       --  | FORMAL_ACCESS_TYPE_DEFINITION
6139       --  | FORMAL_INTERFACE_TYPE_DEFINITION
6140
6141       ---------------------------------------------
6142       -- 12.5.1  Formal Private Type Definition --
6143       ---------------------------------------------
6144
6145       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
6146       --    [[abstract] tagged] [limited] private
6147
6148       --  Note: TAGGED is not allowed in Ada 83 mode
6149
6150       --  N_Formal_Private_Type_Definition
6151       --  Sloc points to PRIVATE
6152       --  Abstract_Present (Flag4)
6153       --  Tagged_Present (Flag15)
6154       --  Limited_Present (Flag17)
6155
6156       --------------------------------------------
6157       -- 12.5.1  Formal Derived Type Definition --
6158       --------------------------------------------
6159
6160       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
6161       --    [abstract] [limited | synchronized]
6162       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6163       --  Note: this construct is not allowed in Ada 83 mode
6164
6165       --  N_Formal_Derived_Type_Definition
6166       --  Sloc points to NEW
6167       --  Subtype_Mark (Node4)
6168       --  Private_Present (Flag15)
6169       --  Abstract_Present (Flag4)
6170       --  Limited_Present (Flag17)
6171       --  Synchronized_Present (Flag7)
6172       --  Interface_List (List2) (set to No_List if none)
6173
6174       ---------------------------------------------
6175       -- 12.5.2  Formal Discrete Type Definition --
6176       ---------------------------------------------
6177
6178       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6179
6180       --  N_Formal_Discrete_Type_Definition
6181       --  Sloc points to (
6182
6183       ---------------------------------------------------
6184       -- 12.5.2  Formal Signed Integer Type Definition --
6185       ---------------------------------------------------
6186
6187       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6188
6189       --  N_Formal_Signed_Integer_Type_Definition
6190       --  Sloc points to RANGE
6191
6192       --------------------------------------------
6193       -- 12.5.2  Formal Modular Type Definition --
6194       --------------------------------------------
6195
6196       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6197
6198       --  N_Formal_Modular_Type_Definition
6199       --  Sloc points to MOD
6200
6201       ----------------------------------------------
6202       -- 12.5.2  Formal Floating Point Definition --
6203       ----------------------------------------------
6204
6205       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6206
6207       --  N_Formal_Floating_Point_Definition
6208       --  Sloc points to DIGITS
6209
6210       ----------------------------------------------------
6211       -- 12.5.2  Formal Ordinary Fixed Point Definition --
6212       ----------------------------------------------------
6213
6214       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6215
6216       --  N_Formal_Ordinary_Fixed_Point_Definition
6217       --  Sloc points to DELTA
6218
6219       ---------------------------------------------------
6220       -- 12.5.2  Formal Decimal Fixed Point Definition --
6221       ---------------------------------------------------
6222
6223       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6224
6225       --  Note: formal decimal fixed point definition not allowed in Ada 83
6226
6227       --  N_Formal_Decimal_Fixed_Point_Definition
6228       --  Sloc points to DELTA
6229
6230       ------------------------------------------
6231       -- 12.5.3  Formal Array Type Definition --
6232       ------------------------------------------
6233
6234       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6235
6236       -------------------------------------------
6237       -- 12.5.4  Formal Access Type Definition --
6238       -------------------------------------------
6239
6240       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6241
6242       ----------------------------------------------
6243       -- 12.5.5  Formal Interface Type Definition --
6244       ----------------------------------------------
6245
6246       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6247
6248       -----------------------------------------
6249       -- 12.6  Formal Subprogram Declaration --
6250       -----------------------------------------
6251
6252       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6253       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6254       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6255
6256       --------------------------------------------------
6257       -- 12.6  Formal Concrete Subprogram Declaration --
6258       --------------------------------------------------
6259
6260       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6261       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6262       --      [ASPECT_SPECIFICATIONS];
6263
6264       --  N_Formal_Concrete_Subprogram_Declaration
6265       --  Sloc points to WITH
6266       --  Specification (Node1)
6267       --  Default_Name (Node2) (set to Empty if no subprogram default)
6268       --  Box_Present (Flag15)
6269
6270       --  Note: if no subprogram default is present, then Name is set
6271       --  to Empty, and Box_Present is False.
6272
6273       --------------------------------------------------
6274       -- 12.6  Formal Abstract Subprogram Declaration --
6275       --------------------------------------------------
6276
6277       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6278       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6279       --      [ASPECT_SPECIFICATIONS];
6280
6281       --  N_Formal_Abstract_Subprogram_Declaration
6282       --  Sloc points to WITH
6283       --  Specification (Node1)
6284       --  Default_Name (Node2) (set to Empty if no subprogram default)
6285       --  Box_Present (Flag15)
6286
6287       --  Note: if no subprogram default is present, then Name is set
6288       --  to Empty, and Box_Present is False.
6289
6290       ------------------------------
6291       -- 12.6  Subprogram Default --
6292       ------------------------------
6293
6294       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6295
6296       --  There is no separate node in the tree for a subprogram default.
6297       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6298       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6299       --  default name or box indication, as needed.
6300
6301       ------------------------
6302       -- 12.6  Default Name --
6303       ------------------------
6304
6305       --  DEFAULT_NAME ::= NAME
6306
6307       --------------------------------------
6308       -- 12.7  Formal Package Declaration --
6309       --------------------------------------
6310
6311       --  FORMAL_PACKAGE_DECLARATION ::=
6312       --    with package DEFINING_IDENTIFIER
6313       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6314       --        [ASPECT_SPECIFICATIONS];
6315
6316       --  Note: formal package declarations not allowed in Ada 83 mode
6317
6318       --  N_Formal_Package_Declaration
6319       --  Sloc points to WITH
6320       --  Defining_Identifier (Node1)
6321       --  Name (Node2)
6322       --  Generic_Associations (List3) (set to No_List if (<>) case or
6323       --   empty generic actual part)
6324       --  Box_Present (Flag15)
6325       --  Instance_Spec (Node5-Sem)
6326       --  ABE_Is_Certain (Flag18-Sem)
6327
6328       --------------------------------------
6329       -- 12.7  Formal Package Actual Part --
6330       --------------------------------------
6331
6332       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6333       --    ([OTHERS] => <>)
6334       --    | [GENERIC_ACTUAL_PART]
6335       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6336
6337       --  FORMAL_PACKAGE_ASSOCIATION ::=
6338       --   GENERIC_ASSOCIATION
6339       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6340
6341       --  There is no explicit node in the tree for a formal package actual
6342       --  part. Instead the information appears in the parent node (i.e. the
6343       --  formal package declaration node itself).
6344
6345       --  There is no explicit node for a formal package association. All of
6346       --  them are represented either by a generic association, possibly with
6347       --  Box_Present, or by an N_Others_Choice.
6348
6349       ---------------------------------
6350       -- 13.1  Representation clause --
6351       ---------------------------------
6352
6353       --  REPRESENTATION_CLAUSE ::=
6354       --    ATTRIBUTE_DEFINITION_CLAUSE
6355       --  | ENUMERATION_REPRESENTATION_CLAUSE
6356       --  | RECORD_REPRESENTATION_CLAUSE
6357       --  | AT_CLAUSE
6358
6359       ----------------------
6360       -- 13.1  Local Name --
6361       ----------------------
6362
6363       --  LOCAL_NAME :=
6364       --    DIRECT_NAME
6365       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6366       --  | library_unit_NAME
6367
6368       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6369       --  as an attribute reference, which has essentially the same form.
6370
6371       ---------------------------------------
6372       -- 13.3  Attribute definition clause --
6373       ---------------------------------------
6374
6375       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6376       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6377       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6378
6379       --  In Ada 83, the expression must be a simple expression and the
6380       --  local name must be a direct name.
6381
6382       --  Note: the only attribute definition clause that is processed by
6383       --  gigi is an address clause. For all other cases, the information
6384       --  is extracted by the front end and either results in setting entity
6385       --  information, e.g. Esize for the Size clause, or in appropriate
6386       --  expansion actions (e.g. in the case of Storage_Size).
6387
6388       --  For an address clause, Gigi constructs the appropriate addressing
6389       --  code. It also ensures that no aliasing optimizations are made
6390       --  for the object for which the address clause appears.
6391
6392       --  Note: for an address clause used to achieve an overlay:
6393
6394       --    A : Integer;
6395       --    B : Integer;
6396       --    for B'Address use A'Address;
6397
6398       --  the above rule means that Gigi will ensure that no optimizations
6399       --  will be made for B that would violate the implementation advice
6400       --  of RM 13.3(19). However, this advice applies only to B and not
6401       --  to A, which seems unfortunate. The GNAT front end will mark the
6402       --  object A as volatile to also prevent unwanted optimization
6403       --  assumptions based on no aliasing being made for B.
6404
6405       --  N_Attribute_Definition_Clause
6406       --  Sloc points to FOR
6407       --  Name (Node2) the local name
6408       --  Chars (Name1) the identifier name from the attribute designator
6409       --  Expression (Node3) the expression or name
6410       --  Entity (Node4-Sem)
6411       --  Next_Rep_Item (Node5-Sem)
6412       --  From_At_Mod (Flag4-Sem)
6413       --  Check_Address_Alignment (Flag11-Sem)
6414       --  From_Aspect_Specification (Flag13-Sem)
6415       --  Is_Delayed_Aspect (Flag14-Sem)
6416       --  Address_Warning_Posted (Flag18-Sem)
6417
6418       --  Note: if From_Aspect_Specification is set, then Sloc points to the
6419       --  aspect name, and Entity is resolved already to reference the entity
6420       --  to which the aspect applies.
6421
6422       -----------------------------------
6423       -- 13.3.1  Aspect Specifications --
6424       -----------------------------------
6425
6426       --  We modify the RM grammar here, the RM grammar is:
6427
6428       --     ASPECT_SPECIFICATION ::=
6429       --       with ASPECT_MARK [=> ASPECT_DEFINITION] {.
6430       --            ASPECT_MARK [=> ASPECT_DEFINITION] }
6431
6432       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6433
6434       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
6435
6436       --  That's inconvenient, since there is no non-terminal name for a single
6437       --  entry in the list of aspects. So we use this grammar instead:
6438
6439       --     ASPECT_SPECIFICATIONS ::=
6440       --       with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6441
6442       --     ASPECT_SPECIFICATION =>
6443       --       ASPECT_MARK [=> ASPECT_DEFINITION]
6444
6445       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6446
6447       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
6448
6449       --  See separate package Aspects for details on the incorporation of
6450       --  these nodes into the tree, and how aspect specifications for a given
6451       --  declaration node are associated with that node.
6452
6453       --  N_Aspect_Specification
6454       --  Sloc points to aspect identifier
6455       --  Identifier (Node1) aspect identifier
6456       --  Aspect_Rep_Item (Node2-Sem)
6457       --  Expression (Node3) Aspect_Definition (set to Empty if none)
6458       --  Entity (Node4-Sem) entity to which the aspect applies
6459       --  Class_Present (Flag6) Set if 'Class present
6460       --  Next_Rep_Item (Node5-Sem)
6461       --  Split_PPC (Flag17) Set if split pre/post attribute
6462
6463       --  Note: Aspect_Specification is an Ada 2012 feature
6464
6465       --  Note: When a Pre or Post aspect specification is processed, it is
6466       --  broken into AND THEN sections. The left most section has Split_PPC
6467       --  set to False, indicating that it is the original specification (e.g.
6468       --  for posting errors). For the other sections, Split_PPC is set True.
6469
6470       ---------------------------------------------
6471       -- 13.4  Enumeration representation clause --
6472       ---------------------------------------------
6473
6474       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6475       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6476
6477       --  In Ada 83, the name must be a direct name
6478
6479       --  N_Enumeration_Representation_Clause
6480       --  Sloc points to FOR
6481       --  Identifier (Node1) direct name
6482       --  Array_Aggregate (Node3)
6483       --  Next_Rep_Item (Node5-Sem)
6484
6485       ---------------------------------
6486       -- 13.4  Enumeration aggregate --
6487       ---------------------------------
6488
6489       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6490
6491       ------------------------------------------
6492       -- 13.5.1  Record representation clause --
6493       ------------------------------------------
6494
6495       --  RECORD_REPRESENTATION_CLAUSE ::=
6496       --    for first_subtype_LOCAL_NAME use
6497       --      record [MOD_CLAUSE]
6498       --        {COMPONENT_CLAUSE}
6499       --      end record;
6500
6501       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6502       --  replaced by a corresponding Alignment attribute definition clause).
6503
6504       --  Note: Component_Clauses can include pragmas
6505
6506       --  N_Record_Representation_Clause
6507       --  Sloc points to FOR
6508       --  Identifier (Node1) direct name
6509       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6510       --  Component_Clauses (List3)
6511       --  Next_Rep_Item (Node5-Sem)
6512
6513       ------------------------------
6514       -- 13.5.1  Component clause --
6515       ------------------------------
6516
6517       --  COMPONENT_CLAUSE ::=
6518       --    component_LOCAL_NAME at POSITION
6519       --      range FIRST_BIT .. LAST_BIT;
6520
6521       --  N_Component_Clause
6522       --  Sloc points to AT
6523       --  Component_Name (Node1) points to Name or Attribute_Reference
6524       --  Position (Node2)
6525       --  First_Bit (Node3)
6526       --  Last_Bit (Node4)
6527
6528       ----------------------
6529       -- 13.5.1  Position --
6530       ----------------------
6531
6532       --  POSITION ::= static_EXPRESSION
6533
6534       -----------------------
6535       -- 13.5.1  First_Bit --
6536       -----------------------
6537
6538       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6539
6540       ----------------------
6541       -- 13.5.1  Last_Bit --
6542       ----------------------
6543
6544       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6545
6546       --------------------------
6547       -- 13.8  Code statement --
6548       --------------------------
6549
6550       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6551
6552       --  Note: in GNAT, the qualified expression has the form
6553
6554       --    Asm_Insn'(Asm (...));
6555
6556       --  See package System.Machine_Code in file s-maccod.ads for details on
6557       --  the allowed parameters to Asm. There are two ways this node can
6558       --  arise, as a code statement, in which case the expression is the
6559       --  qualified expression, or as a result of the expansion of an intrinsic
6560       --  call to the Asm or Asm_Input procedure.
6561
6562       --  N_Code_Statement
6563       --  Sloc points to first token of the expression
6564       --  Expression (Node3)
6565
6566       --  Note: package Exp_Code contains an abstract functional interface
6567       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
6568
6569       ------------------------
6570       -- 13.12  Restriction --
6571       ------------------------
6572
6573       --  RESTRICTION ::=
6574       --    restriction_IDENTIFIER
6575       --  | restriction_parameter_IDENTIFIER => EXPRESSION
6576
6577       --  There is no explicit node for restrictions. Instead the restriction
6578       --  appears in normal pragma syntax as a pragma argument association,
6579       --  which has the same syntactic form.
6580
6581       --------------------------
6582       -- B.2  Shift Operators --
6583       --------------------------
6584
6585       --  Calls to the intrinsic shift functions are converted to one of
6586       --  the following shift nodes, which have the form of normal binary
6587       --  operator names. Note that for a given shift operation, one node
6588       --  covers all possible types, as for normal operators.
6589
6590       --  Note: it is perfectly permissible for the expander to generate
6591       --  shift operation nodes directly, in which case they will be analyzed
6592       --  and parsed in the usual manner.
6593
6594       --  Sprint syntax: shift-function-name!(expr, count)
6595
6596       --  Note: the Left_Opnd field holds the first argument (the value to
6597       --  be shifted). The Right_Opnd field holds the second argument (the
6598       --  shift count). The Chars field is the name of the intrinsic function.
6599
6600       --  N_Op_Rotate_Left
6601       --  Sloc points to the function name
6602       --  plus fields for binary operator
6603       --  plus fields for expression
6604       --  Shift_Count_OK (Flag4-Sem)
6605
6606       --  N_Op_Rotate_Right
6607       --  Sloc points to the function name
6608       --  plus fields for binary operator
6609       --  plus fields for expression
6610       --  Shift_Count_OK (Flag4-Sem)
6611
6612       --  N_Op_Shift_Left
6613       --  Sloc points to the function name
6614       --  plus fields for binary operator
6615       --  plus fields for expression
6616       --  Shift_Count_OK (Flag4-Sem)
6617
6618       --  N_Op_Shift_Right_Arithmetic
6619       --  Sloc points to the function name
6620       --  plus fields for binary operator
6621       --  plus fields for expression
6622       --  Shift_Count_OK (Flag4-Sem)
6623
6624       --  N_Op_Shift_Right
6625       --  Sloc points to the function name
6626       --  plus fields for binary operator
6627       --  plus fields for expression
6628       --  Shift_Count_OK (Flag4-Sem)
6629
6630    --------------------------
6631    -- Obsolescent Features --
6632    --------------------------
6633
6634       --  The syntax descriptions and tree nodes for obsolescent features are
6635       --  grouped together, corresponding to their location in appendix I in
6636       --  the RM. However, parsing and semantic analysis for these constructs
6637       --  is located in an appropriate chapter (see individual notes).
6638
6639       ---------------------------
6640       -- J.3  Delta Constraint --
6641       ---------------------------
6642
6643       --  Note: the parse routine for this construct is located in section
6644       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6645       --  where delta constraint logically belongs.
6646
6647       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6648
6649       --  N_Delta_Constraint
6650       --  Sloc points to DELTA
6651       --  Delta_Expression (Node3)
6652       --  Range_Constraint (Node4) (set to Empty if not present)
6653
6654       --------------------
6655       -- J.7  At Clause --
6656       --------------------
6657
6658       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6659
6660       --  Note: the parse routine for this construct is located in Par-Ch13,
6661       --  and the semantic analysis is in Sem_Ch13, where at clause logically
6662       --  belongs if it were not obsolescent.
6663
6664       --  Note: in Ada 83 the expression must be a simple expression
6665
6666       --  Gigi restriction: This node never appears, it is rewritten as an
6667       --  address attribute definition clause.
6668
6669       --  N_At_Clause
6670       --  Sloc points to FOR
6671       --  Identifier (Node1)
6672       --  Expression (Node3)
6673
6674       ---------------------
6675       -- J.8  Mod clause --
6676       ---------------------
6677
6678       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
6679
6680       --  Note: the parse routine for this construct is located in Par-Ch13,
6681       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
6682       --  belongs if it were not obsolescent.
6683
6684       --  Note: in Ada 83, the expression must be a simple expression
6685
6686       --  Gigi restriction: this node never appears. It is replaced
6687       --  by a corresponding Alignment attribute definition clause.
6688
6689       --  Note: pragmas can appear before and after the MOD_CLAUSE since
6690       --  its name has "clause" in it. This is rather strange, but is quite
6691       --  definitely specified. The pragmas before are collected in the
6692       --  Pragmas_Before field of the mod clause node itself, and pragmas
6693       --  after are simply swallowed up in the list of component clauses.
6694
6695       --  N_Mod_Clause
6696       --  Sloc points to AT
6697       --  Expression (Node3)
6698       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6699
6700    --------------------
6701    -- Semantic Nodes --
6702    --------------------
6703
6704    --  These semantic nodes are used to hold additional semantic information.
6705    --  They are inserted into the tree as a result of semantic processing.
6706    --  Although there are no legitimate source syntax constructions that
6707    --  correspond directly to these nodes, we need a source syntax for the
6708    --  reconstructed tree printed by Sprint, and the node descriptions here
6709    --  show this syntax.
6710
6711    --  Note: Case_Expression and Conditional_Expression is in this section for
6712    --  now, since they are extensions. We will move them to their appropriate
6713    --  places when they are officially approved as extensions (and then we will
6714    --  know what the exact grammar and place in the Reference Manual is!)
6715
6716       ---------------------
6717       -- Case Expression --
6718       ---------------------
6719
6720       --  CASE_EXPRESSION ::=
6721       --    case EXPRESSION is
6722       --      CASE_EXPRESSION_ALTERNATIVE
6723       --      {CASE_EXPRESSION_ALTERNATIVE}
6724
6725       --  Note that the Alternatives cannot include pragmas (this constrasts
6726       --  with the situation of case statements where pragmas are allowed).
6727
6728       --  N_Case_Expression
6729       --  Sloc points to CASE
6730       --  Expression (Node3)
6731       --  Alternatives (List4)
6732
6733       ---------------------------------
6734       -- Case Expression Alternative --
6735       ---------------------------------
6736
6737       --  CASE_STATEMENT_ALTERNATIVE ::=
6738       --    when DISCRETE_CHOICE_LIST =>
6739       --      EXPRESSION
6740
6741       --  N_Case_Expression_Alternative
6742       --  Sloc points to WHEN
6743       --  Actions (List1)
6744       --  Discrete_Choices (List4)
6745       --  Expression (Node3)
6746
6747       --  Note: The Actions field temporarily holds any actions associated with
6748       --  evaluation of the Expression. During expansion of the case expression
6749       --  these actions are wrapped into the an N_Expressions_With_Actions node
6750       --  replacing the original expression.
6751
6752       ----------------------------
6753       -- Conditional Expression --
6754       ----------------------------
6755
6756       --  This node is used to represent an expression corresponding to the
6757       --  C construct (condition ? then-expression : else_expression), where
6758       --  Expressions is a three element list, whose first expression is the
6759       --  condition, and whose second and third expressions are the then and
6760       --  else expressions respectively.
6761
6762       --  Note: the Then_Actions and Else_Actions fields are always set to
6763       --  No_List in the tree passed to Gigi. These fields are used only
6764       --  for temporary processing purposes in the expander.
6765
6766       --  The Ada language does not permit conditional expressions, however
6767       --  this is under discussion as a possible extension by the ARG, and we
6768       --  have implemented a form of this capability in GNAT under control of
6769       --  the -gnatX switch. The syntax is:
6770
6771       --  CONDITIONAL_EXPRESSION ::=
6772       --    if EXPRESSION then EXPRESSION
6773       --                  {elsif EXPRESSION then EXPRESSION}
6774       --                  [else EXPRESSION]
6775
6776       --  And we add the additional constructs
6777
6778       --  PRIMARY ::= ( CONDITIONAL_EXPRESION )
6779       --  PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6780
6781       --  Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6782       --  is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6783       --  the Is_Elsif flag is set on the inner conditional expression.
6784
6785       --  N_Conditional_Expression
6786       --  Sloc points to IF or ELSIF keyword
6787       --  Expressions (List1)
6788       --  Then_Actions (List2-Sem)
6789       --  Else_Actions (List3-Sem)
6790       --  Is_Elsif (Flag13) (set if comes from ELSIF)
6791       --  plus fields for expression
6792
6793       -------------------
6794       -- Expanded_Name --
6795       -------------------
6796
6797       --  The N_Expanded_Name node is used to represent a selected component
6798       --  name that has been resolved to an expanded name. The semantic phase
6799       --  replaces N_Selected_Component nodes that represent names by the use
6800       --  of this node, leaving the N_Selected_Component node used only when
6801       --  the prefix is a record or protected type.
6802
6803       --  The fields of the N_Expanded_Name node are layed out identically
6804       --  to those of the N_Selected_Component node, allowing conversion of
6805       --  an expanded name node to a selected component node to be done
6806       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6807
6808       --  There is no special sprint syntax for an expanded name
6809
6810       --  N_Expanded_Name
6811       --  Sloc points to the period
6812       --  Chars (Name1) copy of Chars field of selector name
6813       --  Prefix (Node3)
6814       --  Selector_Name (Node2)
6815       --  Entity (Node4-Sem)
6816       --  Associated_Node (Node4-Sem)
6817       --  Redundant_Use (Flag13-Sem)
6818       --  Has_Private_View (Flag11-Sem) set in generic units.
6819       --  plus fields for expression
6820
6821       -----------------------------
6822       -- Expression with Actions --
6823       -----------------------------
6824
6825       --  This node is created by the analyzer/expander to handle some
6826       --  expansion cases, notably short circuit forms where there are
6827       --  actions associated with the right hand operand.
6828
6829       --  The N_Expression_With_Actions node represents an expression with
6830       --  an associated set of actions (which are executable statements and
6831       --  declarations, as might occur in a handled statement sequence).
6832
6833       --  The required semantics is that the set of actions is executed in
6834       --  the order in which it appears just before the expression is
6835       --  evaluated (and these actions must only be executed if the value
6836       --  of the expression is evaluated). The node is considered to be
6837       --  a subexpression, whose value is the value of the Expression after
6838       --  executing all the actions.
6839
6840       --  Note: if the actions contain declarations, then these declarations
6841       --  maybe referenced with in the expression. It is thus appropriate for
6842       --  the back end to create a scope that encompasses the construct (any
6843       --  declarations within the actions will definitely not be referenced
6844       --  once elaboration of the construct is completed).
6845
6846       --  Sprint syntax:  do
6847       --                    action;
6848       --                    action;
6849       --                    ...
6850       --                    action;
6851       --                  in expression end
6852
6853       --  N_Expression_With_Actions
6854       --  Actions (List1)
6855       --  Expression (Node3)
6856       --  plus fields for expression
6857
6858       --  Note: the actions list is always non-null, since we would
6859       --  never have created this node if there weren't some actions.
6860
6861       --------------------
6862       -- Free Statement --
6863       --------------------
6864
6865       --  The N_Free_Statement node is generated as a result of a call to an
6866       --  instantiation of Unchecked_Deallocation. The instantiation of this
6867       --  generic is handled specially and generates this node directly.
6868
6869       --  Sprint syntax: free expression
6870
6871       --  N_Free_Statement
6872       --  Sloc is copied from the unchecked deallocation call
6873       --  Expression (Node3) argument to unchecked deallocation call
6874       --  Storage_Pool (Node1-Sem)
6875       --  Procedure_To_Call (Node2-Sem)
6876       --  Actual_Designated_Subtype (Node4-Sem)
6877
6878       --  Note: in the case where a debug source file is generated, the Sloc
6879       --  for this node points to the FREE keyword in the Sprint file output.
6880
6881       -------------------
6882       -- Freeze Entity --
6883       -------------------
6884
6885       --  This node marks the point in a declarative part at which an entity
6886       --  declared therein becomes frozen. The expander places initialization
6887       --  procedures for types at those points. Gigi uses the freezing point
6888       --  to elaborate entities that may depend on previous private types.
6889
6890       --  See the section in Einfo "Delayed Freezing and Elaboration" for
6891       --  a full description of the use of this node.
6892
6893       --  The Entity field points back to the entity for the type (whose
6894       --  Freeze_Node field points back to this freeze node).
6895
6896       --  The Actions field contains a list of declarations and statements
6897       --  generated by the expander which are associated with the freeze
6898       --  node, and are elaborated as though the freeze node were replaced
6899       --  by this sequence of actions.
6900
6901       --  Note: the Sloc field in the freeze node references a construct
6902       --  associated with the freezing point. This is used for posting
6903       --  messages in some error/warning situations, e.g. the case where
6904       --  a primitive operation of a tagged type is declared too late.
6905
6906       --  Sprint syntax: freeze entity-name [
6907       --                   freeze actions
6908       --                 ]
6909
6910       --  N_Freeze_Entity
6911       --  Sloc points near freeze point (see above special note)
6912       --  Entity (Node4-Sem)
6913       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6914       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6915       --  Actions (List1) (set to No_List if no freeze actions)
6916       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6917
6918       --  The Actions field holds actions associated with the freeze. These
6919       --  actions are elaborated at the point where the type is frozen.
6920
6921       --  Note: in the case where a debug source file is generated, the Sloc
6922       --  for this node points to the FREEZE keyword in the Sprint file output.
6923
6924       --------------------------------
6925       -- Implicit Label Declaration --
6926       --------------------------------
6927
6928       --  An implicit label declaration is created for every occurrence of a
6929       --  label on a statement or a label on a block or loop. It is chained
6930       --  in the declarations of the innermost enclosing block as specified
6931       --  in RM section 5.1 (3).
6932
6933       --  The Defining_Identifier is the actual identifier for the statement
6934       --  identifier. Note that the occurrence of the label is a reference, NOT
6935       --  the defining occurrence. The defining occurrence occurs at the head
6936       --  of the innermost enclosing block, and is represented by this node.
6937
6938       --  Note: from the grammar, this might better be called an implicit
6939       --  statement identifier declaration, but the term we choose seems
6940       --  friendlier, since at least informally statement identifiers are
6941       --  called labels in both cases (i.e. when used in labels, and when
6942       --  used as the identifiers of blocks and loops).
6943
6944       --  Note: although this is logically a semantic node, since it does not
6945       --  correspond directly to a source syntax construction, these nodes are
6946       --  actually created by the parser in a post pass done just after parsing
6947       --  is complete, before semantic analysis is started (see Par.Labl).
6948
6949       --  Sprint syntax: labelname : label;
6950
6951       --  N_Implicit_Label_Declaration
6952       --  Sloc points to the << of the label
6953       --  Defining_Identifier (Node1)
6954       --  Label_Construct (Node2-Sem)
6955
6956       --  Note: in the case where a debug source file is generated, the Sloc
6957       --  for this node points to the label name in the generated declaration.
6958
6959       ---------------------
6960       -- Itype_Reference --
6961       ---------------------
6962
6963       --  This node is used to create a reference to an Itype. The only purpose
6964       --  is to make sure the Itype is defined if this is the first reference.
6965
6966       --  A typical use of this node is when an Itype is to be referenced in
6967       --  two branches of an IF statement. In this case it is important that
6968       --  the first use of the Itype not be inside the conditional, since then
6969       --  it might not be defined if the other branch of the IF is taken, in
6970       --  the case where the definition generates elaboration code.
6971
6972       --  The Itype field points to the referenced Itype
6973
6974       --  Sprint syntax: reference itype-name
6975
6976       --  N_Itype_Reference
6977       --  Sloc points to the node generating the reference
6978       --  Itype (Node1-Sem)
6979
6980       --  Note: in the case where a debug source file is generated, the Sloc
6981       --  for this node points to the REFERENCE keyword in the file output.
6982
6983       ---------------------
6984       -- Raise_xxx_Error --
6985       ---------------------
6986
6987       --  One of these nodes is created during semantic analysis to replace
6988       --  a node for an expression that is determined to definitely raise
6989       --  the corresponding exception.
6990
6991       --  The N_Raise_xxx_Error node may also stand alone in place
6992       --  of a declaration or statement, in which case it simply causes
6993       --  the exception to be raised (i.e. it is equivalent to a raise
6994       --  statement that raises the corresponding exception). This use
6995       --  is distinguished by the fact that the Etype in this case is
6996       --  Standard_Void_Type, In the subexpression case, the Etype is the
6997       --  same as the type of the subexpression which it replaces.
6998
6999       --  If Condition is empty, then the raise is unconditional. If the
7000       --  Condition field is non-empty, it is a boolean expression which
7001       --  is first evaluated, and the exception is raised only if the
7002       --  value of the expression is True. In the unconditional case, the
7003       --  creation of this node is usually accompanied by a warning message
7004       --  error. The creation of this node will usually be accompanied by a
7005       --  message (unless it appears within the right operand of a short
7006       --  circuit form whose left argument is static and decisively
7007       --  eliminates elaboration of the raise operation. The condition field
7008       --  can ONLY be present when the node is used as a statement form, it
7009       --  may NOT be present in the case where the node appears within an
7010       --  expression.
7011
7012       --  The exception is generated with a message that contains the
7013       --  file name and line number, and then appended text. The Reason
7014       --  code shows the text to be added. The Reason code is an element
7015       --  of the type Types.RT_Exception_Code, and indicates both the
7016       --  message to be added, and the exception to be raised (which must
7017       --  match the node type). The value is stored by storing a Uint which
7018       --  is the Pos value of the enumeration element in this type.
7019
7020       --  Gigi restriction: This expander ensures that the type of the
7021       --  Condition field is always Standard.Boolean, even if the type
7022       --  in the source is some non-standard boolean type.
7023
7024       --  Sprint syntax: [xxx_error "msg"]
7025       --             or: [xxx_error when condition "msg"]
7026
7027       --  N_Raise_Constraint_Error
7028       --  Sloc references related construct
7029       --  Condition (Node1) (set to Empty if no condition)
7030       --  Reason (Uint3)
7031       --  plus fields for expression
7032
7033       --  N_Raise_Program_Error
7034       --  Sloc references related construct
7035       --  Condition (Node1) (set to Empty if no condition)
7036       --  Reason (Uint3)
7037       --  plus fields for expression
7038
7039       --  N_Raise_Storage_Error
7040       --  Sloc references related construct
7041       --  Condition (Node1) (set to Empty if no condition)
7042       --  Reason (Uint3)
7043       --  plus fields for expression
7044
7045       --  Note: Sloc is copied from the expression generating the exception.
7046       --  In the case where a debug source file is generated, the Sloc for
7047       --  this node points to the left bracket in the Sprint file output.
7048
7049       --  Note: the back end may be required to translate these nodes into
7050       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7051
7052       ---------------------------------------------
7053       -- Optimization of Exception Raise to Goto --
7054       ---------------------------------------------
7055
7056       --  In some cases, the front end will determine that any exception raised
7057       --  by the back end for a certain exception should be transformed into a
7058       --  goto statement.
7059
7060       --  There are three kinds of exceptions raised by the back end (note that
7061       --  for this purpose we consider gigi to be part of the back end in the
7062       --  gcc case):
7063
7064       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
7065       --     2. Exceptions from checks triggered by Do_xxx_Check flags
7066       --     3. Other cases not specifically marked by the front end
7067
7068       --  Normally all such exceptions are translated into calls to the proper
7069       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
7070       --  and the exception message.
7071
7072       --  The front end may determine that for a particular sequence of code,
7073       --  exceptions in any of these three categories for a particular builtin
7074       --  exception should result in a goto, rather than a call to Rcheck_xx.
7075       --  The exact sequence to be generated is:
7076
7077       --      Local_Raise (exception'Identity);
7078       --      goto Label
7079
7080       --  The front end marks such a sequence of code by bracketing it with
7081       --  push and pop nodes:
7082
7083       --       N_Push_xxx_Label (referencing the label)
7084       --       ...
7085       --       (code where transformation is expected for exception xxx)
7086       --       ...
7087       --       N_Pop_xxx_Label
7088
7089       --  The use of push/pop reflects the fact that such regions can properly
7090       --  nest, and one special case is a subregion in which no transformation
7091       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7092       --  Exception_Label field is Empty.
7093
7094       --  N_Push_Constraint_Error_Label
7095       --  Sloc references first statement in region covered
7096       --  Exception_Label (Node5-Sem)
7097
7098       --  N_Push_Program_Error_Label
7099       --  Sloc references first statement in region covered
7100       --  Exception_Label (Node5-Sem)
7101
7102       --  N_Push_Storage_Error_Label
7103       --  Sloc references first statement in region covered
7104       --  Exception_Label (Node5-Sem)
7105
7106       --  N_Pop_Constraint_Error_Label
7107       --  Sloc references last statement in region covered
7108
7109       --  N_Pop_Program_Error_Label
7110       --  Sloc references last statement in region covered
7111
7112       --  N_Pop_Storage_Error_Label
7113       --  Sloc references last statement in region covered
7114
7115       ---------------
7116       -- Reference --
7117       ---------------
7118
7119       --  For a number of purposes, we need to construct references to objects.
7120       --  These references are subsequently treated as normal access values.
7121       --  An example is the construction of the parameter block passed to a
7122       --  task entry. The N_Reference node is provided for this purpose. It is
7123       --  similar in effect to the use of the Unrestricted_Access attribute,
7124       --  and like Unrestricted_Access can be applied to objects which would
7125       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
7126       --  objects which are not aliased, and slices). In addition it can be
7127       --  applied to composite type values as well as objects, including string
7128       --  values and aggregates.
7129
7130       --  Note: we use the Prefix field for this expression so that the
7131       --  resulting node can be treated using common code with the attribute
7132       --  nodes for the 'Access and related attributes. Logically it would make
7133       --  more sense to call it an Expression field, but then we would have to
7134       --  special case the treatment of the N_Reference node.
7135
7136       --  Sprint syntax: prefix'reference
7137
7138       --  N_Reference
7139       --  Sloc is copied from the expression
7140       --  Prefix (Node3)
7141       --  plus fields for expression
7142
7143       --  Note: in the case where a debug source file is generated, the Sloc
7144       --  for this node points to the quote in the Sprint file output.
7145
7146       -----------------
7147       --  SCIL Nodes --
7148       -----------------
7149
7150       --  SCIL nodes are special nodes added to the tree when the CodePeer
7151       --  mode is active. They help the CodePeer backend to locate nodes that
7152       --  require special processing.
7153
7154       --  Major documentation on the general design of the SCIL interface, and
7155       --  in particular detailed description of these nodes is missing and is
7156       --  to be supplied in the future, when the design has finalized ???
7157
7158       --  Meanwhile these nodes should be considered in experimental form, and
7159       --  should be ignored by all code generating back ends. ???
7160
7161       --  N_SCIL_Dispatch_Table_Tag_Init
7162       --  Sloc references a node for a tag initialization
7163       --  SCIL_Entity (Node4-Sem)
7164
7165       --  N_SCIL_Dispatching_Call
7166       --  Sloc references the node of a dispatching call
7167       --  SCIL_Target_Prim (Node2-Sem)
7168       --  SCIL_Entity (Node4-Sem)
7169       --  SCIL_Controlling_Tag (Node5-Sem)
7170
7171       --  N_SCIL_Membership_Test
7172       --  Sloc references the node of a membership test
7173       --  SCIL_Tag_Value (Node5-Sem)
7174       --  SCIL_Entity (Node4-Sem)
7175
7176       ---------------------
7177       -- Subprogram_Info --
7178       ---------------------
7179
7180       --  This node generates the appropriate Subprogram_Info value for a
7181       --  given procedure. See Ada.Exceptions for further details
7182
7183       --  Sprint syntax: subprog'subprogram_info
7184
7185       --  N_Subprogram_Info
7186       --  Sloc points to the entity for the procedure
7187       --  Identifier (Node1) identifier referencing the procedure
7188       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7189
7190       --  Note: in the case where a debug source file is generated, the Sloc
7191       --  for this node points to the quote in the Sprint file output.
7192
7193       --------------------------
7194       -- Unchecked Expression --
7195       --------------------------
7196
7197       --  An unchecked expression is one that must be analyzed and resolved
7198       --  with all checks off, regardless of the current setting of scope
7199       --  suppress flags.
7200
7201       --  Sprint syntax: `(expression)
7202
7203       --  Note: this node is always removed from the tree (and replaced by
7204       --  its constituent expression) on completion of analysis, so it only
7205       --  appears in intermediate trees, and will never be seen by Gigi.
7206
7207       --  N_Unchecked_Expression
7208       --  Sloc is a copy of the Sloc of the expression
7209       --  Expression (Node3)
7210       --  plus fields for expression
7211
7212       --  Note: in the case where a debug source file is generated, the Sloc
7213       --  for this node points to the back quote in the Sprint file output.
7214
7215       -------------------------------
7216       -- Unchecked Type Conversion --
7217       -------------------------------
7218
7219       --  An unchecked type conversion node represents the semantic action
7220       --  corresponding to a call to an instantiation of Unchecked_Conversion.
7221       --  It is generated as a result of actual use of Unchecked_Conversion
7222       --  and also the expander generates unchecked type conversion nodes
7223       --  directly for expansion of complex semantic actions.
7224
7225       --  Note: an unchecked type conversion is a variable as far as the
7226       --  semantics are concerned, which is convenient for the expander.
7227       --  This does not change what Ada source programs are legal, since
7228       --  clearly a function call to an instantiation of Unchecked_Conversion
7229       --  is not a variable in any case.
7230
7231       --  Sprint syntax: subtype-mark!(expression)
7232
7233       --  N_Unchecked_Type_Conversion
7234       --  Sloc points to related node in source
7235       --  Subtype_Mark (Node4)
7236       --  Expression (Node3)
7237       --  Kill_Range_Check (Flag11-Sem)
7238       --  No_Truncation (Flag17-Sem)
7239       --  plus fields for expression
7240
7241       --  Note: in the case where a debug source file is generated, the Sloc
7242       --  for this node points to the exclamation in the Sprint file output.
7243
7244       -----------------------------------
7245       -- Validate_Unchecked_Conversion --
7246       -----------------------------------
7247
7248       --  The front end does most of the validation of unchecked conversion,
7249       --  including checking sizes (this is done after the back end is called
7250       --  to take advantage of back-annotation of calculated sizes).
7251
7252       --  The front end also deals with specific cases that are not allowed
7253       --  e.g. involving unconstrained array types.
7254
7255       --  For the case of the standard gigi backend, this means that all
7256       --  checks are done in the front-end.
7257
7258       --  However, in the case of specialized back-ends, notably the JVM
7259       --  backend for JGNAT, additional requirements and restrictions apply
7260       --  to unchecked conversion, and these are most conveniently performed
7261       --  in the specialized back-end.
7262
7263       --  To accommodate this requirement, for such back ends, the following
7264       --  special node is generated recording an unchecked conversion that
7265       --  needs to be validated. The back end should post an appropriate
7266       --  error message if the unchecked conversion is invalid or warrants
7267       --  a special warning message.
7268
7269       --  Source_Type and Target_Type point to the entities for the two
7270       --  types involved in the unchecked conversion instantiation that
7271       --  is to be validated.
7272
7273       --  Sprint syntax: validate Unchecked_Conversion (source, target);
7274
7275       --  N_Validate_Unchecked_Conversion
7276       --  Sloc points to instantiation (location for warning message)
7277       --  Source_Type (Node1-Sem)
7278       --  Target_Type (Node2-Sem)
7279
7280       --  Note: in the case where a debug source file is generated, the Sloc
7281       --  for this node points to the VALIDATE keyword in the file output.
7282
7283    -----------
7284    -- Empty --
7285    -----------
7286
7287    --  Used as the contents of the Nkind field of the dummy Empty node
7288    --  and in some other situations to indicate an uninitialized value.
7289
7290    --  N_Empty
7291    --  Chars (Name1) is set to No_Name
7292
7293    -----------
7294    -- Error --
7295    -----------
7296
7297    --  Used as the contents of the Nkind field of the dummy Error node.
7298    --  Has an Etype field, which gets set to Any_Type later on, to help
7299    --  error recovery (Error_Posted is also set in the Error node).
7300
7301    --  N_Error
7302    --  Chars (Name1) is set to Error_Name
7303    --  Etype (Node5-Sem)
7304
7305    --------------------------
7306    -- Node Type Definition --
7307    --------------------------
7308
7309    --  The following is the definition of the Node_Kind type. As previously
7310    --  discussed, this is separated off to allow rearrangement of the order to
7311    --  facilitate definition of subtype ranges. The comments show the subtype
7312    --  classes which apply to each set of node kinds. The first entry in the
7313    --  comment characterizes the following list of nodes.
7314
7315    type Node_Kind is (
7316       N_Unused_At_Start,
7317
7318       --  N_Representation_Clause
7319
7320       N_At_Clause,
7321       N_Component_Clause,
7322       N_Enumeration_Representation_Clause,
7323       N_Mod_Clause,
7324       N_Record_Representation_Clause,
7325
7326       --  N_Representation_Clause, N_Has_Chars
7327
7328       N_Attribute_Definition_Clause,
7329
7330       --  N_Has_Chars
7331
7332       N_Empty,
7333       N_Pragma_Argument_Association,
7334
7335       --  N_Has_Etype
7336
7337       N_Error,
7338
7339       --  N_Entity, N_Has_Etype, N_Has_Chars
7340
7341       N_Defining_Character_Literal,
7342       N_Defining_Identifier,
7343       N_Defining_Operator_Symbol,
7344
7345       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7346
7347       N_Expanded_Name,
7348
7349       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7350       --  N_Has_Chars, N_Has_Entity
7351
7352       N_Identifier,
7353       N_Operator_Symbol,
7354
7355       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7356       --  N_Has_Chars, N_Has_Entity
7357
7358       N_Character_Literal,
7359
7360       --  N_Binary_Op, N_Op, N_Subexpr,
7361       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
7362
7363       N_Op_Add,
7364       N_Op_Concat,
7365       N_Op_Expon,
7366       N_Op_Subtract,
7367
7368       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7369       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7370
7371       N_Op_Divide,
7372       N_Op_Mod,
7373       N_Op_Multiply,
7374       N_Op_Rem,
7375
7376       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7377       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7378
7379       N_Op_And,
7380
7381       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7382       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7383
7384       N_Op_Eq,
7385       N_Op_Ge,
7386       N_Op_Gt,
7387       N_Op_Le,
7388       N_Op_Lt,
7389       N_Op_Ne,
7390
7391       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7392       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7393
7394       N_Op_Or,
7395       N_Op_Xor,
7396
7397       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7398       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
7399
7400       N_Op_Rotate_Left,
7401       N_Op_Rotate_Right,
7402       N_Op_Shift_Left,
7403       N_Op_Shift_Right,
7404       N_Op_Shift_Right_Arithmetic,
7405
7406       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7407       --  N_Has_Chars, N_Has_Entity
7408
7409       N_Op_Abs,
7410       N_Op_Minus,
7411       N_Op_Not,
7412       N_Op_Plus,
7413
7414       --  N_Subexpr, N_Has_Etype, N_Has_Entity
7415
7416       N_Attribute_Reference,
7417
7418       --  N_Subexpr, N_Has_Etype, N_Membership_Test
7419
7420       N_In,
7421       N_Not_In,
7422
7423       --  N_Subexpr, N_Has_Etype, N_Short_Circuit
7424
7425       N_And_Then,
7426       N_Or_Else,
7427
7428       --  N_Subexpr, N_Has_Etype
7429
7430       N_Conditional_Expression,
7431       N_Explicit_Dereference,
7432       N_Expression_With_Actions,
7433       N_Function_Call,
7434       N_Indexed_Component,
7435       N_Integer_Literal,
7436       N_Null,
7437       N_Procedure_Call_Statement,
7438       N_Qualified_Expression,
7439
7440       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7441
7442       N_Raise_Constraint_Error,
7443       N_Raise_Program_Error,
7444       N_Raise_Storage_Error,
7445
7446       --  N_Subexpr, N_Has_Etype
7447
7448       N_Aggregate,
7449       N_Allocator,
7450       N_Case_Expression,
7451       N_Extension_Aggregate,
7452       N_Range,
7453       N_Real_Literal,
7454       N_Reference,
7455       N_Selected_Component,
7456       N_Slice,
7457       N_String_Literal,
7458       N_Subprogram_Info,
7459       N_Type_Conversion,
7460       N_Unchecked_Expression,
7461       N_Unchecked_Type_Conversion,
7462
7463       --  N_Has_Etype
7464
7465       N_Subtype_Indication,
7466
7467       --  N_Declaration
7468
7469       N_Component_Declaration,
7470       N_Entry_Declaration,
7471       N_Formal_Object_Declaration,
7472       N_Formal_Type_Declaration,
7473       N_Full_Type_Declaration,
7474       N_Incomplete_Type_Declaration,
7475       N_Loop_Parameter_Specification,
7476       N_Object_Declaration,
7477       N_Parameterized_Expression,
7478       N_Protected_Type_Declaration,
7479       N_Private_Extension_Declaration,
7480       N_Private_Type_Declaration,
7481       N_Subtype_Declaration,
7482
7483       --  N_Subprogram_Specification, N_Declaration
7484
7485       N_Function_Specification,
7486       N_Procedure_Specification,
7487
7488       --  N_Access_To_Subprogram_Definition
7489
7490       N_Access_Function_Definition,
7491       N_Access_Procedure_Definition,
7492
7493       --  N_Later_Decl_Item
7494
7495       N_Task_Type_Declaration,
7496
7497       --  N_Body_Stub, N_Later_Decl_Item
7498
7499       N_Package_Body_Stub,
7500       N_Protected_Body_Stub,
7501       N_Subprogram_Body_Stub,
7502       N_Task_Body_Stub,
7503
7504       --  N_Generic_Instantiation, N_Later_Decl_Item
7505       --  N_Subprogram_Instantiation
7506
7507       N_Function_Instantiation,
7508       N_Procedure_Instantiation,
7509
7510       --  N_Generic_Instantiation, N_Later_Decl_Item
7511
7512       N_Package_Instantiation,
7513
7514       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7515
7516       N_Package_Body,
7517       N_Subprogram_Body,
7518
7519       --  N_Later_Decl_Item, N_Proper_Body
7520
7521       N_Protected_Body,
7522       N_Task_Body,
7523
7524       --  N_Later_Decl_Item
7525
7526       N_Implicit_Label_Declaration,
7527       N_Package_Declaration,
7528       N_Single_Task_Declaration,
7529       N_Subprogram_Declaration,
7530       N_Use_Package_Clause,
7531
7532       --  N_Generic_Declaration, N_Later_Decl_Item
7533
7534       N_Generic_Package_Declaration,
7535       N_Generic_Subprogram_Declaration,
7536
7537       --  N_Array_Type_Definition
7538
7539       N_Constrained_Array_Definition,
7540       N_Unconstrained_Array_Definition,
7541
7542       --  N_Renaming_Declaration
7543
7544       N_Exception_Renaming_Declaration,
7545       N_Object_Renaming_Declaration,
7546       N_Package_Renaming_Declaration,
7547       N_Subprogram_Renaming_Declaration,
7548
7549       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
7550
7551       N_Generic_Function_Renaming_Declaration,
7552       N_Generic_Package_Renaming_Declaration,
7553       N_Generic_Procedure_Renaming_Declaration,
7554
7555       --  N_Statement_Other_Than_Procedure_Call
7556
7557       N_Abort_Statement,
7558       N_Accept_Statement,
7559       N_Assignment_Statement,
7560       N_Asynchronous_Select,
7561       N_Block_Statement,
7562       N_Case_Statement,
7563       N_Code_Statement,
7564       N_Conditional_Entry_Call,
7565
7566       --  N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7567
7568       N_Delay_Relative_Statement,
7569       N_Delay_Until_Statement,
7570
7571       --  N_Statement_Other_Than_Procedure_Call
7572
7573       N_Entry_Call_Statement,
7574       N_Free_Statement,
7575       N_Goto_Statement,
7576       N_Loop_Statement,
7577       N_Null_Statement,
7578       N_Raise_Statement,
7579       N_Requeue_Statement,
7580       N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7581       N_Extended_Return_Statement,
7582       N_Selective_Accept,
7583       N_Timed_Entry_Call,
7584
7585       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7586
7587       N_Exit_Statement,
7588       N_If_Statement,
7589
7590       --  N_Has_Condition
7591
7592       N_Accept_Alternative,
7593       N_Delay_Alternative,
7594       N_Elsif_Part,
7595       N_Entry_Body_Formal_Part,
7596       N_Iteration_Scheme,
7597       N_Terminate_Alternative,
7598
7599       --  N_Formal_Subprogram_Declaration
7600
7601       N_Formal_Abstract_Subprogram_Declaration,
7602       N_Formal_Concrete_Subprogram_Declaration,
7603
7604       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
7605
7606       N_Push_Constraint_Error_Label,
7607       N_Push_Program_Error_Label,
7608       N_Push_Storage_Error_Label,
7609
7610       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7611
7612       N_Pop_Constraint_Error_Label,
7613       N_Pop_Program_Error_Label,
7614       N_Pop_Storage_Error_Label,
7615
7616       --  SCIL nodes
7617
7618       N_SCIL_Dispatch_Table_Tag_Init,
7619       N_SCIL_Dispatching_Call,
7620       N_SCIL_Membership_Test,
7621
7622       --  Other nodes (not part of any subtype class)
7623
7624       N_Abortable_Part,
7625       N_Abstract_Subprogram_Declaration,
7626       N_Access_Definition,
7627       N_Access_To_Object_Definition,
7628       N_Aspect_Specification,
7629       N_Case_Expression_Alternative,
7630       N_Case_Statement_Alternative,
7631       N_Compilation_Unit,
7632       N_Compilation_Unit_Aux,
7633       N_Component_Association,
7634       N_Component_Definition,
7635       N_Component_List,
7636       N_Derived_Type_Definition,
7637       N_Decimal_Fixed_Point_Definition,
7638       N_Defining_Program_Unit_Name,
7639       N_Delta_Constraint,
7640       N_Designator,
7641       N_Digits_Constraint,
7642       N_Discriminant_Association,
7643       N_Discriminant_Specification,
7644       N_Enumeration_Type_Definition,
7645       N_Entry_Body,
7646       N_Entry_Call_Alternative,
7647       N_Entry_Index_Specification,
7648       N_Exception_Declaration,
7649       N_Exception_Handler,
7650       N_Floating_Point_Definition,
7651       N_Formal_Decimal_Fixed_Point_Definition,
7652       N_Formal_Derived_Type_Definition,
7653       N_Formal_Discrete_Type_Definition,
7654       N_Formal_Floating_Point_Definition,
7655       N_Formal_Modular_Type_Definition,
7656       N_Formal_Ordinary_Fixed_Point_Definition,
7657       N_Formal_Package_Declaration,
7658       N_Formal_Private_Type_Definition,
7659       N_Formal_Signed_Integer_Type_Definition,
7660       N_Freeze_Entity,
7661       N_Generic_Association,
7662       N_Handled_Sequence_Of_Statements,
7663       N_Index_Or_Discriminant_Constraint,
7664       N_Itype_Reference,
7665       N_Label,
7666       N_Modular_Type_Definition,
7667       N_Number_Declaration,
7668       N_Ordinary_Fixed_Point_Definition,
7669       N_Others_Choice,
7670       N_Package_Specification,
7671       N_Parameter_Association,
7672       N_Parameter_Specification,
7673       N_Pragma,
7674       N_Protected_Definition,
7675       N_Range_Constraint,
7676       N_Real_Range_Specification,
7677       N_Record_Definition,
7678       N_Signed_Integer_Type_Definition,
7679       N_Single_Protected_Declaration,
7680       N_Subunit,
7681       N_Task_Definition,
7682       N_Triggering_Alternative,
7683       N_Use_Type_Clause,
7684       N_Validate_Unchecked_Conversion,
7685       N_Variant,
7686       N_Variant_Part,
7687       N_With_Clause,
7688       N_Unused_At_End);
7689
7690    for Node_Kind'Size use 8;
7691    --  The data structures in Atree assume this!
7692
7693    ----------------------------
7694    -- Node Class Definitions --
7695    ----------------------------
7696
7697    subtype N_Access_To_Subprogram_Definition is Node_Kind range
7698      N_Access_Function_Definition ..
7699      N_Access_Procedure_Definition;
7700
7701    subtype N_Array_Type_Definition is Node_Kind range
7702      N_Constrained_Array_Definition ..
7703      N_Unconstrained_Array_Definition;
7704
7705    subtype N_Binary_Op is Node_Kind range
7706      N_Op_Add ..
7707      N_Op_Shift_Right_Arithmetic;
7708
7709    subtype N_Body_Stub is Node_Kind range
7710      N_Package_Body_Stub ..
7711      N_Task_Body_Stub;
7712
7713    subtype N_Declaration is Node_Kind range
7714      N_Component_Declaration ..
7715      N_Procedure_Specification;
7716    --  Note: this includes all constructs normally thought of as declarations
7717    --  except those which are separately grouped as later declarations.
7718
7719    subtype N_Delay_Statement is Node_Kind range
7720       N_Delay_Relative_Statement ..
7721       N_Delay_Until_Statement;
7722
7723    subtype N_Direct_Name is Node_Kind range
7724      N_Identifier ..
7725      N_Character_Literal;
7726
7727    subtype N_Entity is Node_Kind range
7728      N_Defining_Character_Literal ..
7729      N_Defining_Operator_Symbol;
7730
7731    subtype N_Formal_Subprogram_Declaration is Node_Kind range
7732      N_Formal_Abstract_Subprogram_Declaration ..
7733      N_Formal_Concrete_Subprogram_Declaration;
7734
7735    subtype N_Generic_Declaration is Node_Kind range
7736      N_Generic_Package_Declaration ..
7737      N_Generic_Subprogram_Declaration;
7738
7739    subtype N_Generic_Instantiation is Node_Kind range
7740      N_Function_Instantiation ..
7741      N_Package_Instantiation;
7742
7743    subtype N_Generic_Renaming_Declaration is Node_Kind range
7744      N_Generic_Function_Renaming_Declaration ..
7745      N_Generic_Procedure_Renaming_Declaration;
7746
7747    subtype N_Has_Chars is Node_Kind range
7748      N_Attribute_Definition_Clause ..
7749      N_Op_Plus;
7750
7751    subtype N_Has_Entity is Node_Kind range
7752      N_Expanded_Name ..
7753      N_Attribute_Reference;
7754    --  Nodes that have Entity fields
7755    --  Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
7756    --  or N_Attribute_Definition_Clause.
7757
7758    subtype N_Has_Etype is Node_Kind range
7759      N_Error ..
7760      N_Subtype_Indication;
7761
7762    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7763       N_Op_Divide ..
7764       N_Op_Rem;
7765
7766    subtype N_Multiplying_Operator is Node_Kind range
7767       N_Op_Divide ..
7768       N_Op_Rem;
7769
7770    subtype N_Later_Decl_Item is Node_Kind range
7771      N_Task_Type_Declaration ..
7772      N_Generic_Subprogram_Declaration;
7773    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7774    --  only those items which can appear as later declarative items. This also
7775    --  includes N_Implicit_Label_Declaration which is not specifically in the
7776    --  grammar but may appear as a valid later declarative items. It does NOT
7777    --  include N_Pragma which can also appear among later declarative items.
7778    --  It does however include N_Protected_Body, which is a bit peculiar, but
7779    --  harmless since this cannot appear in Ada 83 mode anyway.
7780
7781    subtype N_Membership_Test is Node_Kind range
7782       N_In ..
7783       N_Not_In;
7784
7785    subtype N_Op is Node_Kind range
7786      N_Op_Add ..
7787      N_Op_Plus;
7788
7789    subtype N_Op_Boolean is Node_Kind range
7790      N_Op_And ..
7791      N_Op_Xor;
7792    --  Binary operators which take operands of a boolean type, and yield
7793    --  a result of a boolean type.
7794
7795    subtype N_Op_Compare is Node_Kind range
7796      N_Op_Eq ..
7797      N_Op_Ne;
7798
7799    subtype N_Op_Shift is Node_Kind range
7800      N_Op_Rotate_Left ..
7801      N_Op_Shift_Right_Arithmetic;
7802
7803    subtype N_Proper_Body is Node_Kind range
7804      N_Package_Body ..
7805      N_Task_Body;
7806
7807    subtype N_Push_xxx_Label is Node_Kind range
7808      N_Push_Constraint_Error_Label ..
7809      N_Push_Storage_Error_Label;
7810
7811    subtype N_Pop_xxx_Label is Node_Kind range
7812      N_Pop_Constraint_Error_Label ..
7813      N_Pop_Storage_Error_Label;
7814
7815    subtype N_Push_Pop_xxx_Label is Node_Kind range
7816      N_Push_Constraint_Error_Label ..
7817      N_Pop_Storage_Error_Label;
7818
7819    subtype N_Raise_xxx_Error is Node_Kind range
7820      N_Raise_Constraint_Error ..
7821      N_Raise_Storage_Error;
7822
7823    subtype N_Renaming_Declaration is Node_Kind range
7824      N_Exception_Renaming_Declaration ..
7825      N_Generic_Procedure_Renaming_Declaration;
7826
7827    subtype N_Representation_Clause is Node_Kind range
7828      N_At_Clause ..
7829      N_Attribute_Definition_Clause;
7830
7831    subtype N_Short_Circuit is Node_Kind range
7832      N_And_Then ..
7833      N_Or_Else;
7834
7835    subtype N_SCIL_Node is Node_Kind range
7836      N_SCIL_Dispatch_Table_Tag_Init ..
7837      N_SCIL_Membership_Test;
7838
7839    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7840      N_Abort_Statement ..
7841      N_If_Statement;
7842    --  Note that this includes all statement types except for the cases of the
7843    --  N_Procedure_Call_Statement which is considered to be a subexpression
7844    --  (since overloading is possible, so it needs to go through the normal
7845    --  overloading resolution for expressions).
7846
7847    subtype N_Subprogram_Instantiation is Node_Kind range
7848      N_Function_Instantiation ..
7849      N_Procedure_Instantiation;
7850
7851    subtype N_Has_Condition is Node_Kind range
7852      N_Exit_Statement ..
7853      N_Terminate_Alternative;
7854    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
7855
7856    subtype N_Subexpr is Node_Kind range
7857      N_Expanded_Name ..
7858      N_Unchecked_Type_Conversion;
7859    --  Nodes with expression fields
7860
7861    subtype N_Subprogram_Specification is Node_Kind range
7862      N_Function_Specification ..
7863      N_Procedure_Specification;
7864
7865    subtype N_Unary_Op is Node_Kind range
7866      N_Op_Abs ..
7867      N_Op_Plus;
7868
7869    subtype N_Unit_Body is Node_Kind range
7870      N_Package_Body ..
7871        N_Subprogram_Body;
7872
7873    ---------------------------
7874    -- Node Access Functions --
7875    ---------------------------
7876
7877    --  The following functions return the contents of the indicated field of
7878    --  the node referenced by the argument, which is a Node_Id. They provide
7879    --  logical access to fields in the node which could be accessed using the
7880    --  Atree.Unchecked_Access package, but the idea is always to use these
7881    --  higher level routines which preserve strong typing. In debug mode,
7882    --  these routines check that they are being applied to an appropriate
7883    --  node, as well as checking that the node is in range.
7884
7885    function ABE_Is_Certain
7886      (N : Node_Id) return Boolean;    -- Flag18
7887
7888    function Abort_Present
7889      (N : Node_Id) return Boolean;    -- Flag15
7890
7891    function Abortable_Part
7892      (N : Node_Id) return Node_Id;    -- Node2
7893
7894    function Abstract_Present
7895      (N : Node_Id) return Boolean;    -- Flag4
7896
7897    function Accept_Handler_Records
7898      (N : Node_Id) return List_Id;    -- List5
7899
7900    function Accept_Statement
7901      (N : Node_Id) return Node_Id;    -- Node2
7902
7903    function Access_Definition
7904      (N : Node_Id) return Node_Id;    -- Node3
7905
7906    function Access_To_Subprogram_Definition
7907      (N : Node_Id) return Node_Id;    -- Node3
7908
7909    function Access_Types_To_Process
7910      (N : Node_Id) return Elist_Id;   -- Elist2
7911
7912    function Actions
7913      (N : Node_Id) return List_Id;    -- List1
7914
7915    function Activation_Chain_Entity
7916      (N : Node_Id) return Node_Id;    -- Node3
7917
7918    function Acts_As_Spec
7919      (N : Node_Id) return Boolean;    -- Flag4
7920
7921    function Actual_Designated_Subtype
7922      (N : Node_Id) return Node_Id;    -- Node4
7923
7924    function Address_Warning_Posted
7925      (N : Node_Id) return Boolean;    -- Flag18
7926
7927    function Aggregate_Bounds
7928      (N : Node_Id) return Node_Id;    -- Node3
7929
7930    function Aliased_Present
7931      (N : Node_Id) return Boolean;    -- Flag4
7932
7933    function All_Others
7934      (N : Node_Id) return Boolean;    -- Flag11
7935
7936    function All_Present
7937      (N : Node_Id) return Boolean;    -- Flag15
7938
7939    function Alternatives
7940      (N : Node_Id) return List_Id;    -- List4
7941
7942    function Ancestor_Part
7943      (N : Node_Id) return Node_Id;    -- Node3
7944
7945    function Array_Aggregate
7946      (N : Node_Id) return Node_Id;    -- Node3
7947
7948    function Aspect_Cancel
7949      (N : Node_Id) return Boolean;    -- Flag11
7950
7951    function Aspect_Rep_Item
7952      (N : Node_Id) return Node_Id;    -- Node2
7953
7954    function Assignment_OK
7955      (N : Node_Id) return Boolean;    -- Flag15
7956
7957    function Associated_Node
7958      (N : Node_Id) return Node_Id;    -- Node4
7959
7960    function At_End_Proc
7961      (N : Node_Id) return Node_Id;    -- Node1
7962
7963    function Attribute_Name
7964      (N : Node_Id) return Name_Id;    -- Name2
7965
7966    function Aux_Decls_Node
7967      (N : Node_Id) return Node_Id;    -- Node5
7968
7969    function Backwards_OK
7970      (N : Node_Id) return Boolean;    -- Flag6
7971
7972    function Bad_Is_Detected
7973      (N : Node_Id) return Boolean;    -- Flag15
7974
7975    function By_Ref
7976      (N : Node_Id) return Boolean;    -- Flag5
7977
7978    function Body_Required
7979      (N : Node_Id) return Boolean;    -- Flag13
7980
7981    function Body_To_Inline
7982      (N : Node_Id) return Node_Id;    -- Node3
7983
7984    function Box_Present
7985      (N : Node_Id) return Boolean;    -- Flag15
7986
7987    function Char_Literal_Value
7988      (N : Node_Id) return Uint;       -- Uint2
7989
7990    function Chars
7991      (N : Node_Id) return Name_Id;    -- Name1
7992
7993    function Check_Address_Alignment
7994      (N : Node_Id) return Boolean;    -- Flag11
7995
7996    function Choice_Parameter
7997      (N : Node_Id) return Node_Id;    -- Node2
7998
7999    function Choices
8000      (N : Node_Id) return List_Id;    -- List1
8001
8002    function Class_Present
8003      (N : Node_Id) return Boolean;    -- Flag6
8004
8005    function Coextensions
8006       (N : Node_Id) return Elist_Id;  -- Elist4
8007
8008    function Comes_From_Extended_Return_Statement
8009      (N : Node_Id) return Boolean;    -- Flag18
8010
8011    function Compile_Time_Known_Aggregate
8012      (N : Node_Id) return Boolean;    -- Flag18
8013
8014    function Component_Associations
8015      (N : Node_Id) return List_Id;    -- List2
8016
8017    function Component_Clauses
8018      (N : Node_Id) return List_Id;    -- List3
8019
8020    function Component_Definition
8021      (N : Node_Id) return Node_Id;    -- Node4
8022
8023    function Component_Items
8024      (N : Node_Id) return List_Id;    -- List3
8025
8026    function Component_List
8027      (N : Node_Id) return Node_Id;    -- Node1
8028
8029    function Component_Name
8030      (N : Node_Id) return Node_Id;    -- Node1
8031
8032    function Componentwise_Assignment
8033      (N : Node_Id) return Boolean;    -- Flag14
8034
8035    function Condition
8036      (N : Node_Id) return Node_Id;    -- Node1
8037
8038    function Condition_Actions
8039      (N : Node_Id) return List_Id;    -- List3
8040
8041    function Config_Pragmas
8042      (N : Node_Id) return List_Id;    -- List4
8043
8044    function Constant_Present
8045      (N : Node_Id) return Boolean;    -- Flag17
8046
8047    function Constraint
8048      (N : Node_Id) return Node_Id;    -- Node3
8049
8050    function Constraints
8051      (N : Node_Id) return List_Id;    -- List1
8052
8053    function Context_Installed
8054      (N : Node_Id) return Boolean;    -- Flag13
8055
8056    function Context_Pending
8057      (N : Node_Id) return Boolean;    -- Flag16
8058
8059    function Context_Items
8060      (N : Node_Id) return List_Id;    -- List1
8061
8062    function Controlling_Argument
8063      (N : Node_Id) return Node_Id;    -- Node1
8064
8065    function Conversion_OK
8066      (N : Node_Id) return Boolean;    -- Flag14
8067
8068    function Corresponding_Body
8069      (N : Node_Id) return Node_Id;    -- Node5
8070
8071    function Corresponding_Formal_Spec
8072      (N : Node_Id) return Node_Id;    -- Node3
8073
8074    function Corresponding_Generic_Association
8075      (N : Node_Id) return Node_Id;    -- Node5
8076
8077    function Corresponding_Integer_Value
8078      (N : Node_Id) return Uint;       -- Uint4
8079
8080    function Corresponding_Spec
8081      (N : Node_Id) return Node_Id;    -- Node5
8082
8083    function Corresponding_Stub
8084      (N : Node_Id) return Node_Id;    -- Node3
8085
8086    function Dcheck_Function
8087      (N : Node_Id) return Entity_Id;  -- Node5
8088
8089    function Debug_Statement
8090      (N : Node_Id) return Node_Id;    -- Node3
8091
8092    function Declarations
8093      (N : Node_Id) return List_Id;    -- List2
8094
8095    function Default_Expression
8096      (N : Node_Id) return Node_Id;    -- Node5
8097
8098    function Default_Name
8099      (N : Node_Id) return Node_Id;    -- Node2
8100
8101    function Defining_Identifier
8102      (N : Node_Id) return Entity_Id;  -- Node1
8103
8104    function Defining_Unit_Name
8105      (N : Node_Id) return Node_Id;    -- Node1
8106
8107    function Delay_Alternative
8108      (N : Node_Id) return Node_Id;    -- Node4
8109
8110    function Delay_Statement
8111      (N : Node_Id) return Node_Id;    -- Node2
8112
8113    function Delta_Expression
8114      (N : Node_Id) return Node_Id;    -- Node3
8115
8116    function Digits_Expression
8117      (N : Node_Id) return Node_Id;    -- Node2
8118
8119    function Discr_Check_Funcs_Built
8120      (N : Node_Id) return Boolean;    -- Flag11
8121
8122    function Discrete_Choices
8123      (N : Node_Id) return List_Id;    -- List4
8124
8125    function Discrete_Range
8126      (N : Node_Id) return Node_Id;    -- Node4
8127
8128    function Discrete_Subtype_Definition
8129      (N : Node_Id) return Node_Id;    -- Node4
8130
8131    function Discrete_Subtype_Definitions
8132      (N : Node_Id) return List_Id;    -- List2
8133
8134    function Discriminant_Specifications
8135      (N : Node_Id) return List_Id;    -- List4
8136
8137    function Discriminant_Type
8138      (N : Node_Id) return Node_Id;    -- Node5
8139
8140    function Do_Accessibility_Check
8141      (N : Node_Id) return Boolean;    -- Flag13
8142
8143    function Do_Discriminant_Check
8144      (N : Node_Id) return Boolean;    -- Flag13
8145
8146    function Do_Division_Check
8147      (N : Node_Id) return Boolean;    -- Flag13
8148
8149    function Do_Length_Check
8150      (N : Node_Id) return Boolean;    -- Flag4
8151
8152    function Do_Overflow_Check
8153      (N : Node_Id) return Boolean;    -- Flag17
8154
8155    function Do_Range_Check
8156      (N : Node_Id) return Boolean;    -- Flag9
8157
8158    function Do_Storage_Check
8159      (N : Node_Id) return Boolean;    -- Flag17
8160
8161    function Do_Tag_Check
8162      (N : Node_Id) return Boolean;    -- Flag13
8163
8164    function Elaborate_All_Desirable
8165      (N : Node_Id) return Boolean;    -- Flag9
8166
8167    function Elaborate_All_Present
8168      (N : Node_Id) return Boolean;    -- Flag14
8169
8170    function Elaborate_Desirable
8171      (N : Node_Id) return Boolean;    -- Flag11
8172
8173    function Elaborate_Present
8174      (N : Node_Id) return Boolean;    -- Flag4
8175
8176    function Elaboration_Boolean
8177      (N : Node_Id) return Node_Id;    -- Node2
8178
8179    function Else_Actions
8180      (N : Node_Id) return List_Id;    -- List3
8181
8182    function Else_Statements
8183      (N : Node_Id) return List_Id;    -- List4
8184
8185    function Elsif_Parts
8186      (N : Node_Id) return List_Id;    -- List3
8187
8188    function Enclosing_Variant
8189      (N : Node_Id) return Node_Id;    -- Node2
8190
8191    function End_Label
8192      (N : Node_Id) return Node_Id;    -- Node4
8193
8194    function End_Span
8195      (N : Node_Id) return Uint;       -- Uint5
8196
8197    function Entity
8198      (N : Node_Id) return Node_Id;    -- Node4
8199
8200    function Entity_Or_Associated_Node
8201      (N : Node_Id) return Node_Id;    -- Node4
8202
8203    function Entry_Body_Formal_Part
8204      (N : Node_Id) return Node_Id;    -- Node5
8205
8206    function Entry_Call_Alternative
8207      (N : Node_Id) return Node_Id;    -- Node1
8208
8209    function Entry_Call_Statement
8210      (N : Node_Id) return Node_Id;    -- Node1
8211
8212    function Entry_Direct_Name
8213      (N : Node_Id) return Node_Id;    -- Node1
8214
8215    function Entry_Index
8216      (N : Node_Id) return Node_Id;    -- Node5
8217
8218    function Entry_Index_Specification
8219      (N : Node_Id) return Node_Id;    -- Node4
8220
8221    function Etype
8222      (N : Node_Id) return Node_Id;    -- Node5
8223
8224    function Exception_Choices
8225      (N : Node_Id) return List_Id;    -- List4
8226
8227    function Exception_Handlers
8228      (N : Node_Id) return List_Id;    -- List5
8229
8230    function Exception_Junk
8231      (N : Node_Id) return Boolean;    -- Flag8
8232
8233    function Exception_Label
8234      (N : Node_Id) return Node_Id;    -- Node5
8235
8236    function Explicit_Actual_Parameter
8237      (N : Node_Id) return Node_Id;    -- Node3
8238
8239    function Expansion_Delayed
8240      (N : Node_Id) return Boolean;    -- Flag11
8241
8242    function Explicit_Generic_Actual_Parameter
8243      (N : Node_Id) return Node_Id;    -- Node1
8244
8245    function Expression
8246      (N : Node_Id) return Node_Id;    -- Node3
8247
8248    function Expressions
8249      (N : Node_Id) return List_Id;    -- List1
8250
8251    function First_Bit
8252      (N : Node_Id) return Node_Id;    -- Node3
8253
8254    function First_Inlined_Subprogram
8255      (N : Node_Id) return Entity_Id;  -- Node3
8256
8257    function First_Name
8258      (N : Node_Id) return Boolean;    -- Flag5
8259
8260    function First_Named_Actual
8261      (N : Node_Id) return Node_Id;    -- Node4
8262
8263    function First_Real_Statement
8264      (N : Node_Id) return Node_Id;    -- Node2
8265
8266    function First_Subtype_Link
8267      (N : Node_Id) return Entity_Id;  -- Node5
8268
8269    function Float_Truncate
8270      (N : Node_Id) return Boolean;    -- Flag11
8271
8272    function Formal_Type_Definition
8273      (N : Node_Id) return Node_Id;    -- Node3
8274
8275    function Forwards_OK
8276      (N : Node_Id) return Boolean;    -- Flag5
8277
8278    function From_Aspect_Specification
8279      (N : Node_Id) return Boolean;    -- Flag13
8280
8281    function From_At_End
8282      (N : Node_Id) return Boolean;    -- Flag4
8283
8284    function From_At_Mod
8285      (N : Node_Id) return Boolean;    -- Flag4
8286
8287    function From_Default
8288      (N : Node_Id) return Boolean;    -- Flag6
8289
8290    function Generic_Associations
8291      (N : Node_Id) return List_Id;    -- List3
8292
8293    function Generic_Formal_Declarations
8294      (N : Node_Id) return List_Id;    -- List2
8295
8296    function Generic_Parent
8297      (N : Node_Id) return Node_Id;    -- Node5
8298
8299    function Generic_Parent_Type
8300      (N : Node_Id) return Node_Id;    -- Node4
8301
8302    function Handled_Statement_Sequence
8303      (N : Node_Id) return Node_Id;    -- Node4
8304
8305    function Handler_List_Entry
8306      (N : Node_Id) return Node_Id;    -- Node2
8307
8308    function Has_Created_Identifier
8309      (N : Node_Id) return Boolean;    -- Flag15
8310
8311    function Has_Dynamic_Length_Check
8312      (N : Node_Id) return Boolean;    -- Flag10
8313
8314    function Has_Dynamic_Range_Check
8315      (N : Node_Id) return Boolean;    -- Flag12
8316
8317    function Has_Init_Expression
8318      (N : Node_Id) return Boolean;    -- Flag14
8319
8320    function Has_Local_Raise
8321      (N : Node_Id) return Boolean;    -- Flag8
8322
8323    function Has_No_Elaboration_Code
8324      (N : Node_Id) return Boolean;    -- Flag17
8325
8326    function Has_Pragma_CPU
8327      (N : Node_Id) return Boolean;    -- Flag10
8328
8329    function Has_Pragma_Priority
8330      (N : Node_Id) return Boolean;    -- Flag6
8331
8332    function Has_Pragma_Suppress_All
8333      (N : Node_Id) return Boolean;    -- Flag14
8334
8335    function Has_Private_View
8336      (N : Node_Id) return Boolean;    -- Flag11
8337
8338    function Has_Relative_Deadline_Pragma
8339      (N : Node_Id) return Boolean;    -- Flag9
8340
8341    function Has_Self_Reference
8342      (N : Node_Id) return Boolean;    -- Flag13
8343
8344    function Has_Storage_Size_Pragma
8345      (N : Node_Id) return Boolean;    -- Flag5
8346
8347    function Has_Task_Info_Pragma
8348      (N : Node_Id) return Boolean;    -- Flag7
8349
8350    function Has_Task_Name_Pragma
8351      (N : Node_Id) return Boolean;    -- Flag8
8352
8353    function Has_Wide_Character
8354      (N : Node_Id) return Boolean;    -- Flag11
8355
8356    function Has_Wide_Wide_Character
8357      (N : Node_Id) return Boolean;    -- Flag13
8358
8359    function Hidden_By_Use_Clause
8360      (N : Node_Id) return Elist_Id;   -- Elist4
8361
8362    function High_Bound
8363      (N : Node_Id) return Node_Id;    -- Node2
8364
8365    function Identifier
8366      (N : Node_Id) return Node_Id;    -- Node1
8367
8368    function Interface_List
8369      (N : Node_Id) return List_Id;    -- List2
8370
8371    function Interface_Present
8372      (N : Node_Id) return Boolean;    -- Flag16
8373
8374    function Implicit_With
8375      (N : Node_Id) return Boolean;    -- Flag16
8376
8377    function Import_Interface_Present
8378      (N : Node_Id) return Boolean;    -- Flag16
8379
8380    function In_Present
8381      (N : Node_Id) return Boolean;    -- Flag15
8382
8383    function Includes_Infinities
8384      (N : Node_Id) return Boolean;    -- Flag11
8385
8386    function Inherited_Discriminant
8387      (N : Node_Id) return Boolean;    -- Flag13
8388
8389    function Instance_Spec
8390      (N : Node_Id) return Node_Id;    -- Node5
8391
8392    function Intval
8393      (N : Node_Id) return Uint;       -- Uint3
8394
8395    function Is_Accessibility_Actual
8396      (N : Node_Id) return Boolean;    -- Flag13
8397
8398    function Is_Asynchronous_Call_Block
8399      (N : Node_Id) return Boolean;    -- Flag7
8400
8401    function Is_Component_Left_Opnd
8402      (N : Node_Id) return Boolean;    -- Flag13
8403
8404    function Is_Component_Right_Opnd
8405      (N : Node_Id) return Boolean;    -- Flag14
8406
8407    function Is_Controlling_Actual
8408      (N : Node_Id) return Boolean;    -- Flag16
8409
8410    function Is_Delayed_Aspect
8411      (N : Node_Id) return Boolean;    -- Flag14
8412
8413    function Is_Dynamic_Coextension
8414      (N : Node_Id) return Boolean;    -- Flag18
8415
8416    function Is_Elsif
8417      (N : Node_Id) return Boolean;    -- Flag13
8418
8419    function Is_Entry_Barrier_Function
8420      (N : Node_Id) return Boolean;    -- Flag8
8421
8422    function Is_Expanded_Build_In_Place_Call
8423      (N : Node_Id) return Boolean;    -- Flag11
8424
8425    function Is_Folded_In_Parser
8426      (N : Node_Id) return Boolean;    -- Flag4
8427
8428    function Is_In_Discriminant_Check
8429      (N : Node_Id) return Boolean;    -- Flag11
8430
8431    function Is_Machine_Number
8432      (N : Node_Id) return Boolean;    -- Flag11
8433
8434    function Is_Null_Loop
8435      (N : Node_Id) return Boolean;    -- Flag16
8436
8437    function Is_Overloaded
8438      (N : Node_Id) return Boolean;    -- Flag5
8439
8440    function Is_Power_Of_2_For_Shift
8441      (N : Node_Id) return Boolean;    -- Flag13
8442
8443    function Is_Protected_Subprogram_Body
8444      (N : Node_Id) return Boolean;    -- Flag7
8445
8446    function Is_Static_Coextension
8447      (N : Node_Id) return Boolean;    -- Flag14
8448
8449    function Is_Static_Expression
8450      (N : Node_Id) return Boolean;    -- Flag6
8451
8452    function Is_Subprogram_Descriptor
8453      (N : Node_Id) return Boolean;    -- Flag16
8454
8455    function Is_Task_Allocation_Block
8456      (N : Node_Id) return Boolean;    -- Flag6
8457
8458    function Is_Task_Master
8459      (N : Node_Id) return Boolean;    -- Flag5
8460
8461    function Iteration_Scheme
8462      (N : Node_Id) return Node_Id;    -- Node2
8463
8464    function Itype
8465      (N : Node_Id) return Entity_Id;  -- Node1
8466
8467    function Kill_Range_Check
8468      (N : Node_Id) return Boolean;    -- Flag11
8469
8470    function Label_Construct
8471      (N : Node_Id) return Node_Id;    -- Node2
8472
8473    function Left_Opnd
8474      (N : Node_Id) return Node_Id;    -- Node2
8475
8476    function Last_Bit
8477      (N : Node_Id) return Node_Id;    -- Node4
8478
8479    function Last_Name
8480      (N : Node_Id) return Boolean;    -- Flag6
8481
8482    function Library_Unit
8483      (N : Node_Id) return Node_Id;    -- Node4
8484
8485    function Limited_View_Installed
8486      (N : Node_Id) return Boolean;    -- Flag18
8487
8488    function Limited_Present
8489      (N : Node_Id) return Boolean;    -- Flag17
8490
8491    function Literals
8492      (N : Node_Id) return List_Id;    -- List1
8493
8494    function Local_Raise_Not_OK
8495      (N : Node_Id) return Boolean;    -- Flag7
8496
8497    function Local_Raise_Statements
8498      (N : Node_Id) return Elist_Id;   -- Elist1
8499
8500    function Loop_Actions
8501      (N : Node_Id) return List_Id;    -- List2
8502
8503    function Loop_Parameter_Specification
8504      (N : Node_Id) return Node_Id;    -- Node4
8505
8506    function Low_Bound
8507      (N : Node_Id) return Node_Id;    -- Node1
8508
8509    function Mod_Clause
8510      (N : Node_Id) return Node_Id;    -- Node2
8511
8512    function More_Ids
8513      (N : Node_Id) return Boolean;    -- Flag5
8514
8515    function Must_Be_Byte_Aligned
8516      (N : Node_Id) return Boolean;    -- Flag14
8517
8518    function Must_Not_Freeze
8519      (N : Node_Id) return Boolean;    -- Flag8
8520
8521    function Must_Not_Override
8522      (N : Node_Id) return Boolean;    -- Flag15
8523
8524    function Must_Override
8525      (N : Node_Id) return Boolean;    -- Flag14
8526
8527    function Name
8528      (N : Node_Id) return Node_Id;    -- Node2
8529
8530    function Names
8531      (N : Node_Id) return List_Id;    -- List2
8532
8533    function Next_Entity
8534      (N : Node_Id) return Node_Id;    -- Node2
8535
8536    function Next_Exit_Statement
8537      (N : Node_Id) return Node_Id;    -- Node3
8538
8539    function Next_Implicit_With
8540      (N : Node_Id) return Node_Id;    -- Node3
8541
8542    function Next_Named_Actual
8543      (N : Node_Id) return Node_Id;    -- Node4
8544
8545    function Next_Pragma
8546      (N : Node_Id) return Node_Id;    -- Node1
8547
8548    function Next_Rep_Item
8549      (N : Node_Id) return Node_Id;    -- Node5
8550
8551    function Next_Use_Clause
8552      (N : Node_Id) return Node_Id;    -- Node3
8553
8554    function No_Ctrl_Actions
8555      (N : Node_Id) return Boolean;    -- Flag7
8556
8557    function No_Elaboration_Check
8558      (N : Node_Id) return Boolean;    -- Flag14
8559
8560    function No_Entities_Ref_In_Spec
8561      (N : Node_Id) return Boolean;    -- Flag8
8562
8563    function No_Initialization
8564      (N : Node_Id) return Boolean;    -- Flag13
8565
8566    function No_Truncation
8567      (N : Node_Id) return Boolean;    -- Flag17
8568
8569    function Null_Present
8570      (N : Node_Id) return Boolean;    -- Flag13
8571
8572    function Null_Exclusion_Present
8573      (N : Node_Id) return Boolean;    -- Flag11
8574
8575    function Null_Exclusion_In_Return_Present
8576      (N : Node_Id) return Boolean;    -- Flag14
8577
8578    function Null_Record_Present
8579      (N : Node_Id) return Boolean;    -- Flag17
8580
8581    function Object_Definition
8582      (N : Node_Id) return Node_Id;    -- Node4
8583
8584    function Original_Discriminant
8585      (N : Node_Id) return Node_Id;    -- Node2
8586
8587    function Original_Entity
8588      (N : Node_Id) return Entity_Id;  -- Node2
8589
8590    function Others_Discrete_Choices
8591      (N : Node_Id) return List_Id;    -- List1
8592
8593    function Out_Present
8594      (N : Node_Id) return Boolean;    -- Flag17
8595
8596    function Parameter_Associations
8597      (N : Node_Id) return List_Id;    -- List3
8598
8599    function Parameter_List_Truncated
8600      (N : Node_Id) return Boolean;    -- Flag17
8601
8602    function Parameter_Specifications
8603      (N : Node_Id) return List_Id;    -- List3
8604
8605    function Parameter_Type
8606      (N : Node_Id) return Node_Id;    -- Node2
8607
8608    function Parent_Spec
8609      (N : Node_Id) return Node_Id;    -- Node4
8610
8611    function Position
8612      (N : Node_Id) return Node_Id;    -- Node2
8613
8614    function Pragma_Argument_Associations
8615      (N : Node_Id) return List_Id;    -- List2
8616
8617    function Pragma_Enabled
8618      (N : Node_Id) return Boolean;    -- Flag5
8619
8620    function Pragma_Identifier
8621      (N : Node_Id) return Node_Id;    -- Node4
8622
8623    function Pragmas_After
8624      (N : Node_Id) return List_Id;    -- List5
8625
8626    function Pragmas_Before
8627      (N : Node_Id) return List_Id;    -- List4
8628
8629    function Prefix
8630      (N : Node_Id) return Node_Id;    -- Node3
8631
8632    function Present_Expr
8633      (N : Node_Id) return Uint;       -- Uint3
8634
8635    function Prev_Ids
8636      (N : Node_Id) return Boolean;    -- Flag6
8637
8638    function Print_In_Hex
8639      (N : Node_Id) return Boolean;    -- Flag13
8640
8641    function Private_Declarations
8642      (N : Node_Id) return List_Id;    -- List3
8643
8644    function Private_Present
8645      (N : Node_Id) return Boolean;    -- Flag15
8646
8647    function Procedure_To_Call
8648      (N : Node_Id) return Node_Id;    -- Node2
8649
8650    function Proper_Body
8651      (N : Node_Id) return Node_Id;    -- Node1
8652
8653    function Protected_Definition
8654      (N : Node_Id) return Node_Id;    -- Node3
8655
8656    function Protected_Present
8657      (N : Node_Id) return Boolean;    -- Flag6
8658
8659    function Raises_Constraint_Error
8660      (N : Node_Id) return Boolean;    -- Flag7
8661
8662    function Range_Constraint
8663      (N : Node_Id) return Node_Id;    -- Node4
8664
8665    function Range_Expression
8666      (N : Node_Id) return Node_Id;    -- Node4
8667
8668    function Real_Range_Specification
8669      (N : Node_Id) return Node_Id;    -- Node4
8670
8671    function Realval
8672      (N : Node_Id) return Ureal;      -- Ureal3
8673
8674    function Reason
8675      (N : Node_Id) return Uint;       -- Uint3
8676
8677    function Record_Extension_Part
8678      (N : Node_Id) return Node_Id;    -- Node3
8679
8680    function Redundant_Use
8681      (N : Node_Id) return Boolean;    -- Flag13
8682
8683    function Renaming_Exception
8684      (N : Node_Id) return Node_Id;    -- Node2
8685
8686    function Result_Definition
8687      (N : Node_Id) return Node_Id;    -- Node4
8688
8689    function Return_Object_Declarations
8690      (N : Node_Id) return List_Id;    -- List3
8691
8692    function Return_Statement_Entity
8693      (N : Node_Id) return Node_Id;    -- Node5
8694
8695    function Reverse_Present
8696      (N : Node_Id) return Boolean;    -- Flag15
8697
8698    function Right_Opnd
8699      (N : Node_Id) return Node_Id;    -- Node3
8700
8701    function Rounded_Result
8702      (N : Node_Id) return Boolean;    -- Flag18
8703
8704    function SCIL_Controlling_Tag
8705      (N : Node_Id) return Node_Id;    -- Node5
8706
8707    function SCIL_Entity
8708      (N : Node_Id) return Node_Id;    -- Node4
8709
8710    function SCIL_Tag_Value
8711      (N : Node_Id) return Node_Id;    -- Node5
8712
8713    function SCIL_Target_Prim
8714      (N : Node_Id) return Node_Id;    -- Node2
8715
8716    function Scope
8717      (N : Node_Id) return Node_Id;    -- Node3
8718
8719    function Select_Alternatives
8720      (N : Node_Id) return List_Id;    -- List1
8721
8722    function Selector_Name
8723      (N : Node_Id) return Node_Id;    -- Node2
8724
8725    function Selector_Names
8726      (N : Node_Id) return List_Id;    -- List1
8727
8728    function Shift_Count_OK
8729      (N : Node_Id) return Boolean;    -- Flag4
8730
8731    function Source_Type
8732      (N : Node_Id) return Entity_Id;  -- Node1
8733
8734    function Specification
8735      (N : Node_Id) return Node_Id;    -- Node1
8736
8737    function Split_PPC
8738      (N : Node_Id) return Boolean;    -- Flag17
8739
8740    function Statements
8741      (N : Node_Id) return List_Id;    -- List3
8742
8743    function Static_Processing_OK
8744      (N : Node_Id) return Boolean;    -- Flag4
8745
8746    function Storage_Pool
8747      (N : Node_Id) return Node_Id;    -- Node1
8748
8749    function Strval
8750      (N : Node_Id) return String_Id;  -- Str3
8751
8752    function Subtype_Indication
8753      (N : Node_Id) return Node_Id;    -- Node5
8754
8755    function Subtype_Mark
8756      (N : Node_Id) return Node_Id;    -- Node4
8757
8758    function Subtype_Marks
8759      (N : Node_Id) return List_Id;    -- List2
8760
8761    function Suppress_Loop_Warnings
8762      (N : Node_Id) return Boolean;    -- Flag17
8763
8764    function Synchronized_Present
8765      (N : Node_Id) return Boolean;    -- Flag7
8766
8767    function Tagged_Present
8768      (N : Node_Id) return Boolean;    -- Flag15
8769
8770    function Target_Type
8771      (N : Node_Id) return Entity_Id;  -- Node2
8772
8773    function Task_Definition
8774      (N : Node_Id) return Node_Id;    -- Node3
8775
8776    function Task_Present
8777      (N : Node_Id) return Boolean;    -- Flag5
8778
8779    function Then_Actions
8780      (N : Node_Id) return List_Id;    -- List2
8781
8782    function Then_Statements
8783      (N : Node_Id) return List_Id;    -- List2
8784
8785    function Treat_Fixed_As_Integer
8786      (N : Node_Id) return Boolean;    -- Flag14
8787
8788    function Triggering_Alternative
8789      (N : Node_Id) return Node_Id;    -- Node1
8790
8791    function Triggering_Statement
8792      (N : Node_Id) return Node_Id;    -- Node1
8793
8794    function TSS_Elist
8795      (N : Node_Id) return Elist_Id;   -- Elist3
8796
8797    function Type_Definition
8798      (N : Node_Id) return Node_Id;    -- Node3
8799
8800    function Unit
8801      (N : Node_Id) return Node_Id;    -- Node2
8802
8803    function Unknown_Discriminants_Present
8804      (N : Node_Id) return Boolean;    -- Flag13
8805
8806    function Unreferenced_In_Spec
8807      (N : Node_Id) return Boolean;    -- Flag7
8808
8809    function Variant_Part
8810      (N : Node_Id) return Node_Id;    -- Node4
8811
8812    function Variants
8813      (N : Node_Id) return List_Id;    -- List1
8814
8815    function Visible_Declarations
8816      (N : Node_Id) return List_Id;    -- List2
8817
8818    function Was_Originally_Stub
8819      (N : Node_Id) return Boolean;    -- Flag13
8820
8821    function Withed_Body
8822      (N : Node_Id) return Node_Id;    -- Node1
8823
8824    function Zero_Cost_Handling
8825      (N : Node_Id) return Boolean;    -- Flag5
8826
8827    --  End functions (note used by xsinfo utility program to end processing)
8828
8829    ----------------------------
8830    -- Node Update Procedures --
8831    ----------------------------
8832
8833    --  These are the corresponding node update routines, which again provide
8834    --  a high level logical access with type checking. In addition to setting
8835    --  the indicated field of the node N to the given Val, in the case of
8836    --  tree pointers (List1-4), the parent pointer of the Val node is set to
8837    --  point back to node N. This automates the setting of the parent pointer.
8838
8839    procedure Set_ABE_Is_Certain
8840      (N : Node_Id; Val : Boolean := True);    -- Flag18
8841
8842    procedure Set_Abort_Present
8843      (N : Node_Id; Val : Boolean := True);    -- Flag15
8844
8845    procedure Set_Abortable_Part
8846      (N : Node_Id; Val : Node_Id);            -- Node2
8847
8848    procedure Set_Abstract_Present
8849      (N : Node_Id; Val : Boolean := True);    -- Flag4
8850
8851    procedure Set_Accept_Handler_Records
8852      (N : Node_Id; Val : List_Id);            -- List5
8853
8854    procedure Set_Accept_Statement
8855      (N : Node_Id; Val : Node_Id);            -- Node2
8856
8857    procedure Set_Access_Definition
8858      (N : Node_Id; Val : Node_Id);            -- Node3
8859
8860    procedure Set_Access_To_Subprogram_Definition
8861      (N : Node_Id; Val : Node_Id);            -- Node3
8862
8863    procedure Set_Access_Types_To_Process
8864      (N : Node_Id; Val : Elist_Id);           -- Elist2
8865
8866    procedure Set_Actions
8867      (N : Node_Id; Val : List_Id);            -- List1
8868
8869    procedure Set_Activation_Chain_Entity
8870      (N : Node_Id; Val : Node_Id);            -- Node3
8871
8872    procedure Set_Acts_As_Spec
8873      (N : Node_Id; Val : Boolean := True);    -- Flag4
8874
8875    procedure Set_Actual_Designated_Subtype
8876      (N : Node_Id; Val : Node_Id);            -- Node4
8877
8878    procedure Set_Address_Warning_Posted
8879      (N : Node_Id; Val : Boolean := True);    -- Flag18
8880
8881    procedure Set_Aggregate_Bounds
8882      (N : Node_Id; Val : Node_Id);            -- Node3
8883
8884    procedure Set_Aliased_Present
8885      (N : Node_Id; Val : Boolean := True);    -- Flag4
8886
8887    procedure Set_All_Others
8888      (N : Node_Id; Val : Boolean := True);    -- Flag11
8889
8890    procedure Set_All_Present
8891      (N : Node_Id; Val : Boolean := True);    -- Flag15
8892
8893    procedure Set_Alternatives
8894      (N : Node_Id; Val : List_Id);            -- List4
8895
8896    procedure Set_Ancestor_Part
8897      (N : Node_Id; Val : Node_Id);            -- Node3
8898
8899    procedure Set_Array_Aggregate
8900      (N : Node_Id; Val : Node_Id);            -- Node3
8901
8902    procedure Set_Aspect_Cancel
8903      (N : Node_Id; Val : Boolean := True);    -- Flag11
8904
8905    procedure Set_Aspect_Rep_Item
8906      (N : Node_Id; Val : Node_Id);            -- Node2
8907
8908    procedure Set_Assignment_OK
8909      (N : Node_Id; Val : Boolean := True);    -- Flag15
8910
8911    procedure Set_Associated_Node
8912      (N : Node_Id; Val : Node_Id);            -- Node4
8913
8914    procedure Set_Attribute_Name
8915      (N : Node_Id; Val : Name_Id);            -- Name2
8916
8917    procedure Set_At_End_Proc
8918      (N : Node_Id; Val : Node_Id);            -- Node1
8919
8920    procedure Set_Aux_Decls_Node
8921      (N : Node_Id; Val : Node_Id);            -- Node5
8922
8923    procedure Set_Backwards_OK
8924      (N : Node_Id; Val : Boolean := True);    -- Flag6
8925
8926    procedure Set_Bad_Is_Detected
8927      (N : Node_Id; Val : Boolean := True);    -- Flag15
8928
8929    procedure Set_Body_Required
8930      (N : Node_Id; Val : Boolean := True);    -- Flag13
8931
8932    procedure Set_Body_To_Inline
8933      (N : Node_Id; Val : Node_Id);            -- Node3
8934
8935    procedure Set_Box_Present
8936      (N : Node_Id; Val : Boolean := True);    -- Flag15
8937
8938    procedure Set_By_Ref
8939      (N : Node_Id; Val : Boolean := True);    -- Flag5
8940
8941    procedure Set_Char_Literal_Value
8942      (N : Node_Id; Val : Uint);               -- Uint2
8943
8944    procedure Set_Chars
8945      (N : Node_Id; Val : Name_Id);            -- Name1
8946
8947    procedure Set_Check_Address_Alignment
8948      (N : Node_Id; Val : Boolean := True);    -- Flag11
8949
8950    procedure Set_Choice_Parameter
8951      (N : Node_Id; Val : Node_Id);            -- Node2
8952
8953    procedure Set_Choices
8954      (N : Node_Id; Val : List_Id);            -- List1
8955
8956    procedure Set_Class_Present
8957      (N : Node_Id; Val : Boolean := True);    -- Flag6
8958
8959    procedure Set_Coextensions
8960      (N : Node_Id; Val : Elist_Id);           -- Elist4
8961
8962    procedure Set_Comes_From_Extended_Return_Statement
8963      (N : Node_Id; Val : Boolean := True);    -- Flag18
8964
8965    procedure Set_Compile_Time_Known_Aggregate
8966      (N : Node_Id; Val : Boolean := True);    -- Flag18
8967
8968    procedure Set_Component_Associations
8969      (N : Node_Id; Val : List_Id);            -- List2
8970
8971    procedure Set_Component_Clauses
8972      (N : Node_Id; Val : List_Id);            -- List3
8973
8974    procedure Set_Component_Definition
8975      (N : Node_Id; Val : Node_Id);            -- Node4
8976
8977    procedure Set_Component_Items
8978      (N : Node_Id; Val : List_Id);            -- List3
8979
8980    procedure Set_Component_List
8981      (N : Node_Id; Val : Node_Id);            -- Node1
8982
8983    procedure Set_Component_Name
8984      (N : Node_Id; Val : Node_Id);            -- Node1
8985
8986    procedure Set_Componentwise_Assignment
8987      (N : Node_Id; Val : Boolean := True);    -- Flag14
8988
8989    procedure Set_Condition
8990      (N : Node_Id; Val : Node_Id);            -- Node1
8991
8992    procedure Set_Condition_Actions
8993      (N : Node_Id; Val : List_Id);            -- List3
8994
8995    procedure Set_Config_Pragmas
8996      (N : Node_Id; Val : List_Id);            -- List4
8997
8998    procedure Set_Constant_Present
8999      (N : Node_Id; Val : Boolean := True);    -- Flag17
9000
9001    procedure Set_Constraint
9002      (N : Node_Id; Val : Node_Id);            -- Node3
9003
9004    procedure Set_Constraints
9005      (N : Node_Id; Val : List_Id);            -- List1
9006
9007    procedure Set_Context_Installed
9008      (N : Node_Id; Val : Boolean := True);    -- Flag13
9009
9010    procedure Set_Context_Items
9011      (N : Node_Id; Val : List_Id);            -- List1
9012
9013    procedure Set_Context_Pending
9014      (N : Node_Id; Val : Boolean := True);    -- Flag16
9015
9016    procedure Set_Controlling_Argument
9017      (N : Node_Id; Val : Node_Id);            -- Node1
9018
9019    procedure Set_Conversion_OK
9020      (N : Node_Id; Val : Boolean := True);    -- Flag14
9021
9022    procedure Set_Corresponding_Body
9023      (N : Node_Id; Val : Node_Id);            -- Node5
9024
9025    procedure Set_Corresponding_Formal_Spec
9026      (N : Node_Id; Val : Node_Id);            -- Node3
9027
9028    procedure Set_Corresponding_Generic_Association
9029      (N : Node_Id; Val : Node_Id);            -- Node5
9030
9031    procedure Set_Corresponding_Integer_Value
9032      (N : Node_Id; Val : Uint);               -- Uint4
9033
9034    procedure Set_Corresponding_Spec
9035      (N : Node_Id; Val : Node_Id);            -- Node5
9036
9037    procedure Set_Corresponding_Stub
9038      (N : Node_Id; Val : Node_Id);            -- Node3
9039
9040    procedure Set_Dcheck_Function
9041      (N : Node_Id; Val : Entity_Id);          -- Node5
9042
9043    procedure Set_Debug_Statement
9044      (N : Node_Id; Val : Node_Id);            -- Node3
9045
9046    procedure Set_Declarations
9047      (N : Node_Id; Val : List_Id);            -- List2
9048
9049    procedure Set_Default_Expression
9050      (N : Node_Id; Val : Node_Id);            -- Node5
9051
9052    procedure Set_Default_Name
9053      (N : Node_Id; Val : Node_Id);            -- Node2
9054
9055    procedure Set_Defining_Identifier
9056      (N : Node_Id; Val : Entity_Id);          -- Node1
9057
9058    procedure Set_Defining_Unit_Name
9059      (N : Node_Id; Val : Node_Id);            -- Node1
9060
9061    procedure Set_Delay_Alternative
9062      (N : Node_Id; Val : Node_Id);            -- Node4
9063
9064    procedure Set_Delay_Statement
9065      (N : Node_Id; Val : Node_Id);            -- Node2
9066
9067    procedure Set_Delta_Expression
9068      (N : Node_Id; Val : Node_Id);            -- Node3
9069
9070    procedure Set_Digits_Expression
9071      (N : Node_Id; Val : Node_Id);            -- Node2
9072
9073    procedure Set_Discr_Check_Funcs_Built
9074      (N : Node_Id; Val : Boolean := True);    -- Flag11
9075
9076    procedure Set_Discrete_Choices
9077      (N : Node_Id; Val : List_Id);            -- List4
9078
9079    procedure Set_Discrete_Range
9080      (N : Node_Id; Val : Node_Id);            -- Node4
9081
9082    procedure Set_Discrete_Subtype_Definition
9083      (N : Node_Id; Val : Node_Id);            -- Node4
9084
9085    procedure Set_Discrete_Subtype_Definitions
9086      (N : Node_Id; Val : List_Id);            -- List2
9087
9088    procedure Set_Discriminant_Specifications
9089      (N : Node_Id; Val : List_Id);            -- List4
9090
9091    procedure Set_Discriminant_Type
9092      (N : Node_Id; Val : Node_Id);            -- Node5
9093
9094    procedure Set_Do_Accessibility_Check
9095      (N : Node_Id; Val : Boolean := True);    -- Flag13
9096
9097    procedure Set_Do_Discriminant_Check
9098      (N : Node_Id; Val : Boolean := True);    -- Flag13
9099
9100    procedure Set_Do_Division_Check
9101      (N : Node_Id; Val : Boolean := True);    -- Flag13
9102
9103    procedure Set_Do_Length_Check
9104      (N : Node_Id; Val : Boolean := True);    -- Flag4
9105
9106    procedure Set_Do_Overflow_Check
9107      (N : Node_Id; Val : Boolean := True);    -- Flag17
9108
9109    procedure Set_Do_Range_Check
9110      (N : Node_Id; Val : Boolean := True);    -- Flag9
9111
9112    procedure Set_Do_Storage_Check
9113      (N : Node_Id; Val : Boolean := True);    -- Flag17
9114
9115    procedure Set_Do_Tag_Check
9116      (N : Node_Id; Val : Boolean := True);    -- Flag13
9117
9118    procedure Set_Elaborate_All_Desirable
9119      (N : Node_Id; Val : Boolean := True);    -- Flag9
9120
9121    procedure Set_Elaborate_All_Present
9122      (N : Node_Id; Val : Boolean := True);    -- Flag14
9123
9124    procedure Set_Elaborate_Desirable
9125      (N : Node_Id; Val : Boolean := True);    -- Flag11
9126
9127    procedure Set_Elaborate_Present
9128      (N : Node_Id; Val : Boolean := True);    -- Flag4
9129
9130    procedure Set_Elaboration_Boolean
9131      (N : Node_Id; Val : Node_Id);            -- Node2
9132
9133    procedure Set_Else_Actions
9134      (N : Node_Id; Val : List_Id);            -- List3
9135
9136    procedure Set_Else_Statements
9137      (N : Node_Id; Val : List_Id);            -- List4
9138
9139    procedure Set_Elsif_Parts
9140      (N : Node_Id; Val : List_Id);            -- List3
9141
9142    procedure Set_Enclosing_Variant
9143      (N : Node_Id; Val : Node_Id);            -- Node2
9144
9145    procedure Set_End_Label
9146      (N : Node_Id; Val : Node_Id);            -- Node4
9147
9148    procedure Set_End_Span
9149      (N : Node_Id; Val : Uint);               -- Uint5
9150
9151    procedure Set_Entity
9152      (N : Node_Id; Val : Node_Id);            -- Node4
9153
9154    procedure Set_Entry_Body_Formal_Part
9155      (N : Node_Id; Val : Node_Id);            -- Node5
9156
9157    procedure Set_Entry_Call_Alternative
9158      (N : Node_Id; Val : Node_Id);            -- Node1
9159
9160    procedure Set_Entry_Call_Statement
9161      (N : Node_Id; Val : Node_Id);            -- Node1
9162
9163    procedure Set_Entry_Direct_Name
9164      (N : Node_Id; Val : Node_Id);            -- Node1
9165
9166    procedure Set_Entry_Index
9167      (N : Node_Id; Val : Node_Id);            -- Node5
9168
9169    procedure Set_Entry_Index_Specification
9170      (N : Node_Id; Val : Node_Id);            -- Node4
9171
9172    procedure Set_Etype
9173      (N : Node_Id; Val : Node_Id);            -- Node5
9174
9175    procedure Set_Exception_Choices
9176      (N : Node_Id; Val : List_Id);            -- List4
9177
9178    procedure Set_Exception_Handlers
9179      (N : Node_Id; Val : List_Id);            -- List5
9180
9181    procedure Set_Exception_Junk
9182      (N : Node_Id; Val : Boolean := True);    -- Flag8
9183
9184    procedure Set_Exception_Label
9185      (N : Node_Id; Val : Node_Id);            -- Node5
9186
9187    procedure Set_Expansion_Delayed
9188      (N : Node_Id; Val : Boolean := True);    -- Flag11
9189
9190    procedure Set_Explicit_Actual_Parameter
9191      (N : Node_Id; Val : Node_Id);            -- Node3
9192
9193    procedure Set_Explicit_Generic_Actual_Parameter
9194      (N : Node_Id; Val : Node_Id);            -- Node1
9195
9196    procedure Set_Expression
9197      (N : Node_Id; Val : Node_Id);            -- Node3
9198
9199    procedure Set_Expressions
9200      (N : Node_Id; Val : List_Id);            -- List1
9201
9202    procedure Set_First_Bit
9203      (N : Node_Id; Val : Node_Id);            -- Node3
9204
9205    procedure Set_First_Inlined_Subprogram
9206      (N : Node_Id; Val : Entity_Id);          -- Node3
9207
9208    procedure Set_First_Name
9209      (N : Node_Id; Val : Boolean := True);    -- Flag5
9210
9211    procedure Set_First_Named_Actual
9212      (N : Node_Id; Val : Node_Id);            -- Node4
9213
9214    procedure Set_First_Real_Statement
9215      (N : Node_Id; Val : Node_Id);            -- Node2
9216
9217    procedure Set_First_Subtype_Link
9218      (N : Node_Id; Val : Entity_Id);          -- Node5
9219
9220    procedure Set_Float_Truncate
9221      (N : Node_Id; Val : Boolean := True);    -- Flag11
9222
9223    procedure Set_Formal_Type_Definition
9224      (N : Node_Id; Val : Node_Id);            -- Node3
9225
9226    procedure Set_Forwards_OK
9227      (N : Node_Id; Val : Boolean := True);    -- Flag5
9228
9229    procedure Set_From_At_Mod
9230      (N : Node_Id; Val : Boolean := True);    -- Flag4
9231
9232    procedure Set_From_Aspect_Specification
9233      (N : Node_Id; Val : Boolean := True);    -- Flag13
9234
9235    procedure Set_From_At_End
9236      (N : Node_Id; Val : Boolean := True);    -- Flag4
9237
9238    procedure Set_From_Default
9239      (N : Node_Id; Val : Boolean := True);    -- Flag6
9240
9241    procedure Set_Generic_Associations
9242      (N : Node_Id; Val : List_Id);            -- List3
9243
9244    procedure Set_Generic_Formal_Declarations
9245      (N : Node_Id; Val : List_Id);            -- List2
9246
9247    procedure Set_Generic_Parent
9248      (N : Node_Id; Val : Node_Id);            -- Node5
9249
9250    procedure Set_Generic_Parent_Type
9251      (N : Node_Id; Val : Node_Id);            -- Node4
9252
9253    procedure Set_Handled_Statement_Sequence
9254      (N : Node_Id; Val : Node_Id);            -- Node4
9255
9256    procedure Set_Handler_List_Entry
9257      (N : Node_Id; Val : Node_Id);            -- Node2
9258
9259    procedure Set_Has_Created_Identifier
9260      (N : Node_Id; Val : Boolean := True);    -- Flag15
9261
9262    procedure Set_Has_Dynamic_Length_Check
9263      (N : Node_Id; Val : Boolean := True);    -- Flag10
9264
9265    procedure Set_Has_Dynamic_Range_Check
9266      (N : Node_Id; Val : Boolean := True);    -- Flag12
9267
9268    procedure Set_Has_Init_Expression
9269      (N : Node_Id; Val : Boolean := True);    -- Flag14
9270
9271    procedure Set_Has_Local_Raise
9272      (N : Node_Id; Val : Boolean := True);    -- Flag8
9273
9274    procedure Set_Has_No_Elaboration_Code
9275      (N : Node_Id; Val : Boolean := True);    -- Flag17
9276
9277    procedure Set_Has_Pragma_CPU
9278      (N : Node_Id; Val : Boolean := True);    -- Flag10
9279
9280    procedure Set_Has_Pragma_Priority
9281      (N : Node_Id; Val : Boolean := True);    -- Flag6
9282
9283    procedure Set_Has_Pragma_Suppress_All
9284      (N : Node_Id; Val : Boolean := True);    -- Flag14
9285
9286    procedure Set_Has_Private_View
9287      (N : Node_Id; Val : Boolean := True);    -- Flag11
9288
9289    procedure Set_Has_Relative_Deadline_Pragma
9290      (N : Node_Id; Val : Boolean := True);    -- Flag9
9291
9292    procedure Set_Has_Self_Reference
9293      (N : Node_Id; Val : Boolean := True);    -- Flag13
9294
9295    procedure Set_Has_Storage_Size_Pragma
9296      (N : Node_Id; Val : Boolean := True);    -- Flag5
9297
9298    procedure Set_Has_Task_Info_Pragma
9299      (N : Node_Id; Val : Boolean := True);    -- Flag7
9300
9301    procedure Set_Has_Task_Name_Pragma
9302      (N : Node_Id; Val : Boolean := True);    -- Flag8
9303
9304    procedure Set_Has_Wide_Character
9305      (N : Node_Id; Val : Boolean := True);    -- Flag11
9306
9307    procedure Set_Has_Wide_Wide_Character
9308      (N : Node_Id; Val : Boolean := True);    -- Flag13
9309
9310    procedure Set_Hidden_By_Use_Clause
9311      (N : Node_Id; Val : Elist_Id);           -- Elist4
9312
9313    procedure Set_High_Bound
9314      (N : Node_Id; Val : Node_Id);            -- Node2
9315
9316    procedure Set_Identifier
9317      (N : Node_Id; Val : Node_Id);            -- Node1
9318
9319    procedure Set_Interface_List
9320      (N : Node_Id; Val : List_Id);            -- List2
9321
9322    procedure Set_Interface_Present
9323      (N : Node_Id; Val : Boolean := True);    -- Flag16
9324
9325    procedure Set_Implicit_With
9326      (N : Node_Id; Val : Boolean := True);    -- Flag16
9327
9328    procedure Set_Import_Interface_Present
9329      (N : Node_Id; Val : Boolean := True);    -- Flag16
9330
9331    procedure Set_In_Present
9332      (N : Node_Id; Val : Boolean := True);    -- Flag15
9333
9334    procedure Set_Includes_Infinities
9335      (N : Node_Id; Val : Boolean := True);    -- Flag11
9336
9337    procedure Set_Inherited_Discriminant
9338      (N : Node_Id; Val : Boolean := True);    -- Flag13
9339
9340    procedure Set_Instance_Spec
9341      (N : Node_Id; Val : Node_Id);            -- Node5
9342
9343    procedure Set_Intval
9344      (N : Node_Id; Val : Uint);               -- Uint3
9345
9346    procedure Set_Is_Accessibility_Actual
9347      (N : Node_Id; Val : Boolean := True);    -- Flag13
9348
9349    procedure Set_Is_Asynchronous_Call_Block
9350      (N : Node_Id; Val : Boolean := True);    -- Flag7
9351
9352    procedure Set_Is_Component_Left_Opnd
9353      (N : Node_Id; Val : Boolean := True);    -- Flag13
9354
9355    procedure Set_Is_Component_Right_Opnd
9356      (N : Node_Id; Val : Boolean := True);    -- Flag14
9357
9358    procedure Set_Is_Controlling_Actual
9359      (N : Node_Id; Val : Boolean := True);    -- Flag16
9360
9361    procedure Set_Is_Delayed_Aspect
9362      (N : Node_Id; Val : Boolean := True);    -- Flag14
9363
9364    procedure Set_Is_Dynamic_Coextension
9365      (N : Node_Id; Val : Boolean := True);    -- Flag18
9366
9367    procedure Set_Is_Elsif
9368      (N : Node_Id; Val : Boolean := True);    -- Flag13
9369
9370    procedure Set_Is_Entry_Barrier_Function
9371      (N : Node_Id; Val : Boolean := True);    -- Flag8
9372
9373    procedure Set_Is_Expanded_Build_In_Place_Call
9374      (N : Node_Id; Val : Boolean := True);    -- Flag11
9375
9376    procedure Set_Is_Folded_In_Parser
9377      (N : Node_Id; Val : Boolean := True);    -- Flag4
9378
9379    procedure Set_Is_In_Discriminant_Check
9380      (N : Node_Id; Val : Boolean := True);    -- Flag11
9381
9382    procedure Set_Is_Machine_Number
9383      (N : Node_Id; Val : Boolean := True);    -- Flag11
9384
9385    procedure Set_Is_Null_Loop
9386      (N : Node_Id; Val : Boolean := True);    -- Flag16
9387
9388    procedure Set_Is_Overloaded
9389      (N : Node_Id; Val : Boolean := True);    -- Flag5
9390
9391    procedure Set_Is_Power_Of_2_For_Shift
9392      (N : Node_Id; Val : Boolean := True);    -- Flag13
9393
9394    procedure Set_Is_Protected_Subprogram_Body
9395      (N : Node_Id; Val : Boolean := True);    -- Flag7
9396
9397    procedure Set_Is_Static_Coextension
9398      (N : Node_Id; Val : Boolean := True);    -- Flag14
9399
9400    procedure Set_Is_Static_Expression
9401      (N : Node_Id; Val : Boolean := True);    -- Flag6
9402
9403    procedure Set_Is_Subprogram_Descriptor
9404      (N : Node_Id; Val : Boolean := True);    -- Flag16
9405
9406    procedure Set_Is_Task_Allocation_Block
9407      (N : Node_Id; Val : Boolean := True);    -- Flag6
9408
9409    procedure Set_Is_Task_Master
9410      (N : Node_Id; Val : Boolean := True);    -- Flag5
9411
9412    procedure Set_Iteration_Scheme
9413      (N : Node_Id; Val : Node_Id);            -- Node2
9414
9415    procedure Set_Itype
9416      (N : Node_Id; Val : Entity_Id);          -- Node1
9417
9418    procedure Set_Kill_Range_Check
9419      (N : Node_Id; Val : Boolean := True);    -- Flag11
9420
9421    procedure Set_Last_Bit
9422      (N : Node_Id; Val : Node_Id);            -- Node4
9423
9424    procedure Set_Last_Name
9425      (N : Node_Id; Val : Boolean := True);    -- Flag6
9426
9427    procedure Set_Library_Unit
9428      (N : Node_Id; Val : Node_Id);            -- Node4
9429
9430    procedure Set_Label_Construct
9431      (N : Node_Id; Val : Node_Id);            -- Node2
9432
9433    procedure Set_Left_Opnd
9434      (N : Node_Id; Val : Node_Id);            -- Node2
9435
9436    procedure Set_Limited_View_Installed
9437      (N : Node_Id; Val : Boolean := True);    -- Flag18
9438
9439    procedure Set_Limited_Present
9440      (N : Node_Id; Val : Boolean := True);    -- Flag17
9441
9442    procedure Set_Literals
9443      (N : Node_Id; Val : List_Id);            -- List1
9444
9445    procedure Set_Local_Raise_Not_OK
9446      (N : Node_Id; Val : Boolean := True);    -- Flag7
9447
9448    procedure Set_Local_Raise_Statements
9449      (N : Node_Id; Val : Elist_Id);           -- Elist1
9450
9451    procedure Set_Loop_Actions
9452      (N : Node_Id; Val : List_Id);            -- List2
9453
9454    procedure Set_Loop_Parameter_Specification
9455      (N : Node_Id; Val : Node_Id);            -- Node4
9456
9457    procedure Set_Low_Bound
9458      (N : Node_Id; Val : Node_Id);            -- Node1
9459
9460    procedure Set_Mod_Clause
9461      (N : Node_Id; Val : Node_Id);            -- Node2
9462
9463    procedure Set_More_Ids
9464      (N : Node_Id; Val : Boolean := True);    -- Flag5
9465
9466    procedure Set_Must_Be_Byte_Aligned
9467      (N : Node_Id; Val : Boolean := True);    -- Flag14
9468
9469    procedure Set_Must_Not_Freeze
9470      (N : Node_Id; Val : Boolean := True);    -- Flag8
9471
9472    procedure Set_Must_Not_Override
9473      (N : Node_Id; Val : Boolean := True);    -- Flag15
9474
9475    procedure Set_Must_Override
9476      (N : Node_Id; Val : Boolean := True);    -- Flag14
9477
9478    procedure Set_Name
9479      (N : Node_Id; Val : Node_Id);            -- Node2
9480
9481    procedure Set_Names
9482      (N : Node_Id; Val : List_Id);            -- List2
9483
9484    procedure Set_Next_Entity
9485      (N : Node_Id; Val : Node_Id);            -- Node2
9486
9487    procedure Set_Next_Exit_Statement
9488      (N : Node_Id; Val : Node_Id);            -- Node3
9489
9490    procedure Set_Next_Implicit_With
9491      (N : Node_Id; Val : Node_Id);            -- Node3
9492
9493    procedure Set_Next_Named_Actual
9494      (N : Node_Id; Val : Node_Id);            -- Node4
9495
9496    procedure Set_Next_Pragma
9497      (N : Node_Id; Val : Node_Id);            -- Node1
9498
9499    procedure Set_Next_Rep_Item
9500      (N : Node_Id; Val : Node_Id);            -- Node5
9501
9502    procedure Set_Next_Use_Clause
9503      (N : Node_Id; Val : Node_Id);            -- Node3
9504
9505    procedure Set_No_Ctrl_Actions
9506      (N : Node_Id; Val : Boolean := True);    -- Flag7
9507
9508    procedure Set_No_Elaboration_Check
9509      (N : Node_Id; Val : Boolean := True);    -- Flag14
9510
9511    procedure Set_No_Entities_Ref_In_Spec
9512      (N : Node_Id; Val : Boolean := True);    -- Flag8
9513
9514    procedure Set_No_Initialization
9515      (N : Node_Id; Val : Boolean := True);    -- Flag13
9516
9517    procedure Set_No_Truncation
9518      (N : Node_Id; Val : Boolean := True);    -- Flag17
9519
9520    procedure Set_Null_Present
9521      (N : Node_Id; Val : Boolean := True);    -- Flag13
9522
9523    procedure Set_Null_Exclusion_Present
9524      (N : Node_Id; Val : Boolean := True);    -- Flag11
9525
9526    procedure Set_Null_Exclusion_In_Return_Present
9527      (N : Node_Id; Val : Boolean := True);    -- Flag14
9528
9529    procedure Set_Null_Record_Present
9530      (N : Node_Id; Val : Boolean := True);    -- Flag17
9531
9532    procedure Set_Object_Definition
9533      (N : Node_Id; Val : Node_Id);            -- Node4
9534
9535    procedure Set_Original_Discriminant
9536      (N : Node_Id; Val : Node_Id);            -- Node2
9537
9538    procedure Set_Original_Entity
9539      (N : Node_Id; Val : Entity_Id);          -- Node2
9540
9541    procedure Set_Others_Discrete_Choices
9542      (N : Node_Id; Val : List_Id);            -- List1
9543
9544    procedure Set_Out_Present
9545      (N : Node_Id; Val : Boolean := True);    -- Flag17
9546
9547    procedure Set_Parameter_Associations
9548      (N : Node_Id; Val : List_Id);            -- List3
9549
9550    procedure Set_Parameter_List_Truncated
9551      (N : Node_Id; Val : Boolean := True);    -- Flag17
9552
9553    procedure Set_Parameter_Specifications
9554      (N : Node_Id; Val : List_Id);            -- List3
9555
9556    procedure Set_Parameter_Type
9557      (N : Node_Id; Val : Node_Id);            -- Node2
9558
9559    procedure Set_Parent_Spec
9560      (N : Node_Id; Val : Node_Id);            -- Node4
9561
9562    procedure Set_Position
9563      (N : Node_Id; Val : Node_Id);            -- Node2
9564
9565    procedure Set_Pragma_Argument_Associations
9566      (N : Node_Id; Val : List_Id);            -- List2
9567
9568    procedure Set_Pragma_Enabled
9569      (N : Node_Id; Val : Boolean := True);    -- Flag5
9570
9571    procedure Set_Pragma_Identifier
9572      (N : Node_Id; Val : Node_Id);            -- Node4
9573
9574    procedure Set_Pragmas_After
9575      (N : Node_Id; Val : List_Id);            -- List5
9576
9577    procedure Set_Pragmas_Before
9578      (N : Node_Id; Val : List_Id);            -- List4
9579
9580    procedure Set_Prefix
9581      (N : Node_Id; Val : Node_Id);            -- Node3
9582
9583    procedure Set_Present_Expr
9584      (N : Node_Id; Val : Uint);               -- Uint3
9585
9586    procedure Set_Prev_Ids
9587      (N : Node_Id; Val : Boolean := True);    -- Flag6
9588
9589    procedure Set_Print_In_Hex
9590      (N : Node_Id; Val : Boolean := True);    -- Flag13
9591
9592    procedure Set_Private_Declarations
9593      (N : Node_Id; Val : List_Id);            -- List3
9594
9595    procedure Set_Private_Present
9596      (N : Node_Id; Val : Boolean := True);    -- Flag15
9597
9598    procedure Set_Procedure_To_Call
9599      (N : Node_Id; Val : Node_Id);            -- Node2
9600
9601    procedure Set_Proper_Body
9602      (N : Node_Id; Val : Node_Id);            -- Node1
9603
9604    procedure Set_Protected_Definition
9605      (N : Node_Id; Val : Node_Id);            -- Node3
9606
9607    procedure Set_Protected_Present
9608      (N : Node_Id; Val : Boolean := True);    -- Flag6
9609
9610    procedure Set_Raises_Constraint_Error
9611      (N : Node_Id; Val : Boolean := True);    -- Flag7
9612
9613    procedure Set_Range_Constraint
9614      (N : Node_Id; Val : Node_Id);            -- Node4
9615
9616    procedure Set_Range_Expression
9617      (N : Node_Id; Val : Node_Id);            -- Node4
9618
9619    procedure Set_Real_Range_Specification
9620      (N : Node_Id; Val : Node_Id);            -- Node4
9621
9622    procedure Set_Realval
9623      (N : Node_Id; Val : Ureal);              -- Ureal3
9624
9625    procedure Set_Reason
9626      (N : Node_Id; Val : Uint);               -- Uint3
9627
9628    procedure Set_Record_Extension_Part
9629      (N : Node_Id; Val : Node_Id);            -- Node3
9630
9631    procedure Set_Redundant_Use
9632      (N : Node_Id; Val : Boolean := True);    -- Flag13
9633
9634    procedure Set_Renaming_Exception
9635      (N : Node_Id; Val : Node_Id);            -- Node2
9636
9637    procedure Set_Result_Definition
9638      (N : Node_Id; Val : Node_Id);            -- Node4
9639
9640    procedure Set_Return_Object_Declarations
9641      (N : Node_Id; Val : List_Id);            -- List3
9642
9643    procedure Set_Return_Statement_Entity
9644      (N : Node_Id; Val : Node_Id);            -- Node5
9645
9646    procedure Set_Reverse_Present
9647      (N : Node_Id; Val : Boolean := True);    -- Flag15
9648
9649    procedure Set_Right_Opnd
9650      (N : Node_Id; Val : Node_Id);            -- Node3
9651
9652    procedure Set_Rounded_Result
9653      (N : Node_Id; Val : Boolean := True);    -- Flag18
9654
9655    procedure Set_SCIL_Controlling_Tag
9656      (N : Node_Id; Val : Node_Id);            -- Node5
9657
9658    procedure Set_SCIL_Entity
9659      (N : Node_Id; Val : Node_Id);            -- Node4
9660
9661    procedure Set_SCIL_Tag_Value
9662      (N : Node_Id; Val : Node_Id);            -- Node5
9663
9664    procedure Set_SCIL_Target_Prim
9665      (N : Node_Id; Val : Node_Id);            -- Node2
9666
9667    procedure Set_Scope
9668      (N : Node_Id; Val : Node_Id);            -- Node3
9669
9670    procedure Set_Select_Alternatives
9671      (N : Node_Id; Val : List_Id);            -- List1
9672
9673    procedure Set_Selector_Name
9674      (N : Node_Id; Val : Node_Id);            -- Node2
9675
9676    procedure Set_Selector_Names
9677      (N : Node_Id; Val : List_Id);            -- List1
9678
9679    procedure Set_Shift_Count_OK
9680      (N : Node_Id; Val : Boolean := True);    -- Flag4
9681
9682    procedure Set_Source_Type
9683      (N : Node_Id; Val : Entity_Id);          -- Node1
9684
9685    procedure Set_Specification
9686      (N : Node_Id; Val : Node_Id);            -- Node1
9687
9688    procedure Set_Split_PPC
9689      (N : Node_Id; Val : Boolean);            -- Flag17
9690
9691    procedure Set_Statements
9692      (N : Node_Id; Val : List_Id);            -- List3
9693
9694    procedure Set_Static_Processing_OK
9695      (N : Node_Id; Val : Boolean);            -- Flag4
9696
9697    procedure Set_Storage_Pool
9698      (N : Node_Id; Val : Node_Id);            -- Node1
9699
9700    procedure Set_Strval
9701      (N : Node_Id; Val : String_Id);          -- Str3
9702
9703    procedure Set_Subtype_Indication
9704      (N : Node_Id; Val : Node_Id);            -- Node5
9705
9706    procedure Set_Subtype_Mark
9707      (N : Node_Id; Val : Node_Id);            -- Node4
9708
9709    procedure Set_Subtype_Marks
9710      (N : Node_Id; Val : List_Id);            -- List2
9711
9712    procedure Set_Suppress_Loop_Warnings
9713      (N : Node_Id; Val : Boolean := True);    -- Flag17
9714
9715    procedure Set_Synchronized_Present
9716      (N : Node_Id; Val : Boolean := True);    -- Flag7
9717
9718    procedure Set_Tagged_Present
9719      (N : Node_Id; Val : Boolean := True);    -- Flag15
9720
9721    procedure Set_Target_Type
9722      (N : Node_Id; Val : Entity_Id);          -- Node2
9723
9724    procedure Set_Task_Definition
9725      (N : Node_Id; Val : Node_Id);            -- Node3
9726
9727    procedure Set_Task_Present
9728      (N : Node_Id; Val : Boolean := True);    -- Flag5
9729
9730    procedure Set_Then_Actions
9731      (N : Node_Id; Val : List_Id);            -- List2
9732
9733    procedure Set_Then_Statements
9734      (N : Node_Id; Val : List_Id);            -- List2
9735
9736    procedure Set_Treat_Fixed_As_Integer
9737      (N : Node_Id; Val : Boolean := True);    -- Flag14
9738
9739    procedure Set_Triggering_Alternative
9740      (N : Node_Id; Val : Node_Id);            -- Node1
9741
9742    procedure Set_Triggering_Statement
9743      (N : Node_Id; Val : Node_Id);            -- Node1
9744
9745    procedure Set_TSS_Elist
9746      (N : Node_Id; Val : Elist_Id);           -- Elist3
9747
9748    procedure Set_Type_Definition
9749      (N : Node_Id; Val : Node_Id);            -- Node3
9750
9751    procedure Set_Unit
9752      (N : Node_Id; Val : Node_Id);            -- Node2
9753
9754    procedure Set_Unknown_Discriminants_Present
9755      (N : Node_Id; Val : Boolean := True);    -- Flag13
9756
9757    procedure Set_Unreferenced_In_Spec
9758      (N : Node_Id; Val : Boolean := True);    -- Flag7
9759
9760    procedure Set_Variant_Part
9761      (N : Node_Id; Val : Node_Id);            -- Node4
9762
9763    procedure Set_Variants
9764      (N : Node_Id; Val : List_Id);            -- List1
9765
9766    procedure Set_Visible_Declarations
9767      (N : Node_Id; Val : List_Id);            -- List2
9768
9769    procedure Set_Was_Originally_Stub
9770      (N : Node_Id; Val : Boolean := True);    -- Flag13
9771
9772    procedure Set_Withed_Body
9773      (N : Node_Id; Val : Node_Id);            -- Node1
9774
9775    procedure Set_Zero_Cost_Handling
9776      (N : Node_Id; Val : Boolean := True);    -- Flag5
9777
9778    -------------------------
9779    -- Iterator Procedures --
9780    -------------------------
9781
9782    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9783
9784    procedure Next_Entity       (N : in out Node_Id);
9785    procedure Next_Named_Actual (N : in out Node_Id);
9786    procedure Next_Rep_Item     (N : in out Node_Id);
9787    procedure Next_Use_Clause   (N : in out Node_Id);
9788
9789    -------------------------------------------
9790    -- Miscellaneous Tree Access Subprograms --
9791    -------------------------------------------
9792
9793    function End_Location (N : Node_Id) return Source_Ptr;
9794    --  N is an N_If_Statement or N_Case_Statement node, and this function
9795    --  returns the location of the IF token in the END IF sequence by
9796    --  translating the value of the End_Span field.
9797
9798    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9799    --  N is an N_If_Statement or N_Case_Statement node. This procedure sets
9800    --  the End_Span field to correspond to the given value S. In other words,
9801    --  End_Span is set to the difference between S and Sloc (N), the starting
9802    --  location.
9803
9804    function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
9805    --  Given an argument to a pragma Arg, this function returns the expression
9806    --  for the argument. This is Arg itself, or, in the case where Arg is a
9807    --  pragma argument association node, the expression from this node.
9808
9809    --------------------------------
9810    -- Node_Kind Membership Tests --
9811    --------------------------------
9812
9813    --  The following functions allow a convenient notation for testing whether
9814    --  a Node_Kind value matches any one of a list of possible values. In each
9815    --  case True is returned if the given T argument is equal to any of the V
9816    --  arguments. Note that there is a similar set of functions defined in
9817    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
9818
9819    function Nkind_In
9820      (T  : Node_Kind;
9821       V1 : Node_Kind;
9822       V2 : Node_Kind) return Boolean;
9823
9824    function Nkind_In
9825      (T  : Node_Kind;
9826       V1 : Node_Kind;
9827       V2 : Node_Kind;
9828       V3 : Node_Kind) return Boolean;
9829
9830    function Nkind_In
9831      (T  : Node_Kind;
9832       V1 : Node_Kind;
9833       V2 : Node_Kind;
9834       V3 : Node_Kind;
9835       V4 : Node_Kind) return Boolean;
9836
9837    function Nkind_In
9838      (T  : Node_Kind;
9839       V1 : Node_Kind;
9840       V2 : Node_Kind;
9841       V3 : Node_Kind;
9842       V4 : Node_Kind;
9843       V5 : Node_Kind) return Boolean;
9844
9845    function Nkind_In
9846      (T  : Node_Kind;
9847       V1 : Node_Kind;
9848       V2 : Node_Kind;
9849       V3 : Node_Kind;
9850       V4 : Node_Kind;
9851       V5 : Node_Kind;
9852       V6 : Node_Kind) return Boolean;
9853
9854    function Nkind_In
9855      (T  : Node_Kind;
9856       V1 : Node_Kind;
9857       V2 : Node_Kind;
9858       V3 : Node_Kind;
9859       V4 : Node_Kind;
9860       V5 : Node_Kind;
9861       V6 : Node_Kind;
9862       V7 : Node_Kind) return Boolean;
9863
9864    function Nkind_In
9865      (T  : Node_Kind;
9866       V1 : Node_Kind;
9867       V2 : Node_Kind;
9868       V3 : Node_Kind;
9869       V4 : Node_Kind;
9870       V5 : Node_Kind;
9871       V6 : Node_Kind;
9872       V7 : Node_Kind;
9873       V8 : Node_Kind) return Boolean;
9874
9875    function Nkind_In
9876      (T  : Node_Kind;
9877       V1 : Node_Kind;
9878       V2 : Node_Kind;
9879       V3 : Node_Kind;
9880       V4 : Node_Kind;
9881       V5 : Node_Kind;
9882       V6 : Node_Kind;
9883       V7 : Node_Kind;
9884       V8 : Node_Kind;
9885       V9 : Node_Kind) return Boolean;
9886
9887    pragma Inline (Nkind_In);
9888    --  Inline all above functions
9889
9890    -----------------------
9891    -- Utility Functions --
9892    -----------------------
9893
9894    function Pragma_Name (N : Node_Id) return Name_Id;
9895    pragma Inline (Pragma_Name);
9896    --  Convenient function to obtain Chars field of Pragma_Identifier
9897
9898    -----------------------------
9899    -- Syntactic Parent Tables --
9900    -----------------------------
9901
9902    --  These tables show for each node, and for each of the five fields,
9903    --  whether the corresponding field is syntactic (True) or semantic (False).
9904    --  Unused entries are also set to False.
9905
9906    subtype Field_Num is Natural range 1 .. 5;
9907
9908    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9909
9910    --  Following entries can be built automatically from the sinfo sources
9911    --  using the makeisf utility (currently this program is in spitbol).
9912
9913      N_Identifier =>
9914        (1 => True,    --  Chars (Name1)
9915         2 => False,   --  Original_Discriminant (Node2-Sem)
9916         3 => False,   --  unused
9917         4 => False,   --  Entity (Node4-Sem)
9918         5 => False),  --  Etype (Node5-Sem)
9919
9920      N_Integer_Literal =>
9921        (1 => False,   --  unused
9922         2 => False,   --  Original_Entity (Node2-Sem)
9923         3 => True,    --  Intval (Uint3)
9924         4 => False,   --  unused
9925         5 => False),  --  Etype (Node5-Sem)
9926
9927      N_Real_Literal =>
9928        (1 => False,   --  unused
9929         2 => False,   --  Original_Entity (Node2-Sem)
9930         3 => True,    --  Realval (Ureal3)
9931         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
9932         5 => False),  --  Etype (Node5-Sem)
9933
9934      N_Character_Literal =>
9935        (1 => True,    --  Chars (Name1)
9936         2 => True,    --  Char_Literal_Value (Uint2)
9937         3 => False,   --  unused
9938         4 => False,   --  Entity (Node4-Sem)
9939         5 => False),  --  Etype (Node5-Sem)
9940
9941      N_String_Literal =>
9942        (1 => False,   --  unused
9943         2 => False,   --  unused
9944         3 => True,    --  Strval (Str3)
9945         4 => False,   --  unused
9946         5 => False),  --  Etype (Node5-Sem)
9947
9948      N_Pragma =>
9949        (1 => False,   --  Next_Pragma (Node1-Sem)
9950         2 => True,    --  Pragma_Argument_Associations (List2)
9951         3 => True,    --  Debug_Statement (Node3)
9952         4 => True,    --  Pragma_Identifier (Node4)
9953         5 => False),  --  Next_Rep_Item (Node5-Sem)
9954
9955      N_Pragma_Argument_Association =>
9956        (1 => True,    --  Chars (Name1)
9957         2 => False,   --  unused
9958         3 => True,    --  Expression (Node3)
9959         4 => False,   --  unused
9960         5 => False),  --  unused
9961
9962      N_Defining_Identifier =>
9963        (1 => True,    --  Chars (Name1)
9964         2 => False,   --  Next_Entity (Node2-Sem)
9965         3 => False,   --  Scope (Node3-Sem)
9966         4 => False,   --  unused
9967         5 => False),  --  Etype (Node5-Sem)
9968
9969      N_Full_Type_Declaration =>
9970        (1 => True,    --  Defining_Identifier (Node1)
9971         2 => False,   --  unused
9972         3 => True,    --  Type_Definition (Node3)
9973         4 => True,    --  Discriminant_Specifications (List4)
9974         5 => False),  --  unused
9975
9976      N_Subtype_Declaration =>
9977        (1 => True,    --  Defining_Identifier (Node1)
9978         2 => False,   --  unused
9979         3 => False,   --  unused
9980         4 => False,   --  Generic_Parent_Type (Node4-Sem)
9981         5 => True),   --  Subtype_Indication (Node5)
9982
9983      N_Subtype_Indication =>
9984        (1 => False,   --  unused
9985         2 => False,   --  unused
9986         3 => True,    --  Constraint (Node3)
9987         4 => True,    --  Subtype_Mark (Node4)
9988         5 => False),  --  Etype (Node5-Sem)
9989
9990      N_Object_Declaration =>
9991        (1 => True,    --  Defining_Identifier (Node1)
9992         2 => False,   --  Handler_List_Entry (Node2-Sem)
9993         3 => True,    --  Expression (Node3)
9994         4 => True,    --  Object_Definition (Node4)
9995         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
9996
9997      N_Number_Declaration =>
9998        (1 => True,    --  Defining_Identifier (Node1)
9999         2 => False,   --  unused
10000         3 => True,    --  Expression (Node3)
10001         4 => False,   --  unused
10002         5 => False),  --  unused
10003
10004      N_Derived_Type_Definition =>
10005        (1 => False,   --  unused
10006         2 => True,    --  Interface_List (List2)
10007         3 => True,    --  Record_Extension_Part (Node3)
10008         4 => False,   --  unused
10009         5 => True),   --  Subtype_Indication (Node5)
10010
10011      N_Range_Constraint =>
10012        (1 => False,   --  unused
10013         2 => False,   --  unused
10014         3 => False,   --  unused
10015         4 => True,    --  Range_Expression (Node4)
10016         5 => False),  --  unused
10017
10018      N_Range =>
10019        (1 => True,    --  Low_Bound (Node1)
10020         2 => True,    --  High_Bound (Node2)
10021         3 => False,   --  unused
10022         4 => False,   --  unused
10023         5 => False),  --  Etype (Node5-Sem)
10024
10025      N_Enumeration_Type_Definition =>
10026        (1 => True,    --  Literals (List1)
10027         2 => False,   --  unused
10028         3 => False,   --  unused
10029         4 => True,    --  End_Label (Node4)
10030         5 => False),  --  unused
10031
10032      N_Defining_Character_Literal =>
10033        (1 => True,    --  Chars (Name1)
10034         2 => False,   --  Next_Entity (Node2-Sem)
10035         3 => False,   --  Scope (Node3-Sem)
10036         4 => False,   --  unused
10037         5 => False),  --  Etype (Node5-Sem)
10038
10039      N_Signed_Integer_Type_Definition =>
10040        (1 => True,    --  Low_Bound (Node1)
10041         2 => True,    --  High_Bound (Node2)
10042         3 => False,   --  unused
10043         4 => False,   --  unused
10044         5 => False),  --  unused
10045
10046      N_Modular_Type_Definition =>
10047        (1 => False,   --  unused
10048         2 => False,   --  unused
10049         3 => True,    --  Expression (Node3)
10050         4 => False,   --  unused
10051         5 => False),  --  unused
10052
10053      N_Floating_Point_Definition =>
10054        (1 => False,   --  unused
10055         2 => True,    --  Digits_Expression (Node2)
10056         3 => False,   --  unused
10057         4 => True,    --  Real_Range_Specification (Node4)
10058         5 => False),  --  unused
10059
10060      N_Real_Range_Specification =>
10061        (1 => True,    --  Low_Bound (Node1)
10062         2 => True,    --  High_Bound (Node2)
10063         3 => False,   --  unused
10064         4 => False,   --  unused
10065         5 => False),  --  unused
10066
10067      N_Ordinary_Fixed_Point_Definition =>
10068        (1 => False,   --  unused
10069         2 => False,   --  unused
10070         3 => True,    --  Delta_Expression (Node3)
10071         4 => True,    --  Real_Range_Specification (Node4)
10072         5 => False),  --  unused
10073
10074      N_Decimal_Fixed_Point_Definition =>
10075        (1 => False,   --  unused
10076         2 => True,    --  Digits_Expression (Node2)
10077         3 => True,    --  Delta_Expression (Node3)
10078         4 => True,    --  Real_Range_Specification (Node4)
10079         5 => False),  --  unused
10080
10081      N_Digits_Constraint =>
10082        (1 => False,   --  unused
10083         2 => True,    --  Digits_Expression (Node2)
10084         3 => False,   --  unused
10085         4 => True,    --  Range_Constraint (Node4)
10086         5 => False),  --  unused
10087
10088      N_Unconstrained_Array_Definition =>
10089        (1 => False,   --  unused
10090         2 => True,    --  Subtype_Marks (List2)
10091         3 => False,   --  unused
10092         4 => True,    --  Component_Definition (Node4)
10093         5 => False),  --  unused
10094
10095      N_Constrained_Array_Definition =>
10096        (1 => False,   --  unused
10097         2 => True,    --  Discrete_Subtype_Definitions (List2)
10098         3 => False,   --  unused
10099         4 => True,    --  Component_Definition (Node4)
10100         5 => False),  --  unused
10101
10102      N_Component_Definition =>
10103        (1 => False,   --  unused
10104         2 => False,   --  unused
10105         3 => True,    --  Access_Definition (Node3)
10106         4 => False,   --  unused
10107         5 => True),   --  Subtype_Indication (Node5)
10108
10109      N_Discriminant_Specification =>
10110        (1 => True,    --  Defining_Identifier (Node1)
10111         2 => False,   --  unused
10112         3 => True,    --  Expression (Node3)
10113         4 => False,   --  unused
10114         5 => True),   --  Discriminant_Type (Node5)
10115
10116      N_Index_Or_Discriminant_Constraint =>
10117        (1 => True,    --  Constraints (List1)
10118         2 => False,   --  unused
10119         3 => False,   --  unused
10120         4 => False,   --  unused
10121         5 => False),  --  unused
10122
10123      N_Discriminant_Association =>
10124        (1 => True,    --  Selector_Names (List1)
10125         2 => False,   --  unused
10126         3 => True,    --  Expression (Node3)
10127         4 => False,   --  unused
10128         5 => False),  --  unused
10129
10130      N_Record_Definition =>
10131        (1 => True,    --  Component_List (Node1)
10132         2 => True,    --  Interface_List (List2)
10133         3 => False,   --  unused
10134         4 => True,    --  End_Label (Node4)
10135         5 => False),  --  unused
10136
10137      N_Component_List =>
10138        (1 => False,   --  unused
10139         2 => False,   --  unused
10140         3 => True,    --  Component_Items (List3)
10141         4 => True,    --  Variant_Part (Node4)
10142         5 => False),  --  unused
10143
10144      N_Component_Declaration =>
10145        (1 => True,    --  Defining_Identifier (Node1)
10146         2 => False,   --  unused
10147         3 => True,    --  Expression (Node3)
10148         4 => True,    --  Component_Definition (Node4)
10149         5 => False),  --  unused
10150
10151      N_Variant_Part =>
10152        (1 => True,    --  Variants (List1)
10153         2 => True,    --  Name (Node2)
10154         3 => False,   --  unused
10155         4 => False,   --  unused
10156         5 => False),  --  unused
10157
10158      N_Variant =>
10159        (1 => True,    --  Component_List (Node1)
10160         2 => False,   --  Enclosing_Variant (Node2-Sem)
10161         3 => False,   --  Present_Expr (Uint3-Sem)
10162         4 => True,    --  Discrete_Choices (List4)
10163         5 => False),  --  Dcheck_Function (Node5-Sem)
10164
10165      N_Others_Choice =>
10166        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
10167         2 => False,   --  unused
10168         3 => False,   --  unused
10169         4 => False,   --  unused
10170         5 => False),  --  unused
10171
10172      N_Access_To_Object_Definition =>
10173        (1 => False,   --  unused
10174         2 => False,   --  unused
10175         3 => False,   --  unused
10176         4 => False,   --  unused
10177         5 => True),   --  Subtype_Indication (Node5)
10178
10179      N_Access_Function_Definition =>
10180        (1 => False,   --  unused
10181         2 => False,   --  unused
10182         3 => True,    --  Parameter_Specifications (List3)
10183         4 => True,    --  Result_Definition (Node4)
10184         5 => False),  --  unused
10185
10186      N_Access_Procedure_Definition =>
10187        (1 => False,   --  unused
10188         2 => False,   --  unused
10189         3 => True,    --  Parameter_Specifications (List3)
10190         4 => False,   --  unused
10191         5 => False),  --  unused
10192
10193      N_Access_Definition =>
10194        (1 => False,   --  unused
10195         2 => False,   --  unused
10196         3 => True,    --  Access_To_Subprogram_Definition (Node3)
10197         4 => True,    --  Subtype_Mark (Node4)
10198         5 => False),  --  unused
10199
10200      N_Incomplete_Type_Declaration =>
10201        (1 => True,    --  Defining_Identifier (Node1)
10202         2 => False,   --  unused
10203         3 => False,   --  unused
10204         4 => True,    --  Discriminant_Specifications (List4)
10205         5 => False),  --  unused
10206
10207      N_Explicit_Dereference =>
10208        (1 => False,   --  unused
10209         2 => False,   --  unused
10210         3 => True,    --  Prefix (Node3)
10211         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10212         5 => False),  --  Etype (Node5-Sem)
10213
10214      N_Indexed_Component =>
10215        (1 => True,    --  Expressions (List1)
10216         2 => False,   --  unused
10217         3 => True,    --  Prefix (Node3)
10218         4 => False,   --  unused
10219         5 => False),  --  Etype (Node5-Sem)
10220
10221      N_Slice =>
10222        (1 => False,   --  unused
10223         2 => False,   --  unused
10224         3 => True,    --  Prefix (Node3)
10225         4 => True,    --  Discrete_Range (Node4)
10226         5 => False),  --  Etype (Node5-Sem)
10227
10228      N_Selected_Component =>
10229        (1 => False,   --  unused
10230         2 => True,    --  Selector_Name (Node2)
10231         3 => True,    --  Prefix (Node3)
10232         4 => False,   --  unused
10233         5 => False),  --  Etype (Node5-Sem)
10234
10235      N_Attribute_Reference =>
10236        (1 => True,    --  Expressions (List1)
10237         2 => True,    --  Attribute_Name (Name2)
10238         3 => True,    --  Prefix (Node3)
10239         4 => False,   --  Entity (Node4-Sem)
10240         5 => False),  --  Etype (Node5-Sem)
10241
10242      N_Aggregate =>
10243        (1 => True,    --  Expressions (List1)
10244         2 => True,    --  Component_Associations (List2)
10245         3 => False,   --  Aggregate_Bounds (Node3-Sem)
10246         4 => False,   --  unused
10247         5 => False),  --  Etype (Node5-Sem)
10248
10249      N_Component_Association =>
10250        (1 => True,    --  Choices (List1)
10251         2 => False,   --  Loop_Actions (List2-Sem)
10252         3 => True,    --  Expression (Node3)
10253         4 => False,   --  unused
10254         5 => False),  --  unused
10255
10256      N_Extension_Aggregate =>
10257        (1 => True,    --  Expressions (List1)
10258         2 => True,    --  Component_Associations (List2)
10259         3 => True,    --  Ancestor_Part (Node3)
10260         4 => False,   --  unused
10261         5 => False),  --  Etype (Node5-Sem)
10262
10263      N_Null =>
10264        (1 => False,   --  unused
10265         2 => False,   --  unused
10266         3 => False,   --  unused
10267         4 => False,   --  unused
10268         5 => False),  --  Etype (Node5-Sem)
10269
10270      N_And_Then =>
10271        (1 => False,   --  Actions (List1-Sem)
10272         2 => True,    --  Left_Opnd (Node2)
10273         3 => True,    --  Right_Opnd (Node3)
10274         4 => False,   --  unused
10275         5 => False),  --  Etype (Node5-Sem)
10276
10277      N_Or_Else =>
10278        (1 => False,   --  Actions (List1-Sem)
10279         2 => True,    --  Left_Opnd (Node2)
10280         3 => True,    --  Right_Opnd (Node3)
10281         4 => False,   --  unused
10282         5 => False),  --  Etype (Node5-Sem)
10283
10284      N_In =>
10285        (1 => False,   --  unused
10286         2 => True,    --  Left_Opnd (Node2)
10287         3 => True,    --  Right_Opnd (Node3)
10288         4 => True,    --  Alternatives (List4)
10289         5 => False),  --  Etype (Node5-Sem)
10290
10291      N_Not_In =>
10292        (1 => False,   --  unused
10293         2 => True,    --  Left_Opnd (Node2)
10294         3 => True,    --  Right_Opnd (Node3)
10295         4 => True,    --  Alternatives (List4)
10296         5 => False),  --  Etype (Node5-Sem)
10297
10298      N_Op_And =>
10299        (1 => True,    --  Chars (Name1)
10300         2 => True,    --  Left_Opnd (Node2)
10301         3 => True,    --  Right_Opnd (Node3)
10302         4 => False,   --  Entity (Node4-Sem)
10303         5 => False),  --  Etype (Node5-Sem)
10304
10305      N_Op_Or =>
10306        (1 => True,    --  Chars (Name1)
10307         2 => True,    --  Left_Opnd (Node2)
10308         3 => True,    --  Right_Opnd (Node3)
10309         4 => False,   --  Entity (Node4-Sem)
10310         5 => False),  --  Etype (Node5-Sem)
10311
10312      N_Op_Xor =>
10313        (1 => True,    --  Chars (Name1)
10314         2 => True,    --  Left_Opnd (Node2)
10315         3 => True,    --  Right_Opnd (Node3)
10316         4 => False,   --  Entity (Node4-Sem)
10317         5 => False),  --  Etype (Node5-Sem)
10318
10319      N_Op_Eq =>
10320        (1 => True,    --  Chars (Name1)
10321         2 => True,    --  Left_Opnd (Node2)
10322         3 => True,    --  Right_Opnd (Node3)
10323         4 => False,   --  Entity (Node4-Sem)
10324         5 => False),  --  Etype (Node5-Sem)
10325
10326      N_Op_Ne =>
10327        (1 => True,    --  Chars (Name1)
10328         2 => True,    --  Left_Opnd (Node2)
10329         3 => True,    --  Right_Opnd (Node3)
10330         4 => False,   --  Entity (Node4-Sem)
10331         5 => False),  --  Etype (Node5-Sem)
10332
10333      N_Op_Lt =>
10334        (1 => True,    --  Chars (Name1)
10335         2 => True,    --  Left_Opnd (Node2)
10336         3 => True,    --  Right_Opnd (Node3)
10337         4 => False,   --  Entity (Node4-Sem)
10338         5 => False),  --  Etype (Node5-Sem)
10339
10340      N_Op_Le =>
10341        (1 => True,    --  Chars (Name1)
10342         2 => True,    --  Left_Opnd (Node2)
10343         3 => True,    --  Right_Opnd (Node3)
10344         4 => False,   --  Entity (Node4-Sem)
10345         5 => False),  --  Etype (Node5-Sem)
10346
10347      N_Op_Gt =>
10348        (1 => True,    --  Chars (Name1)
10349         2 => True,    --  Left_Opnd (Node2)
10350         3 => True,    --  Right_Opnd (Node3)
10351         4 => False,   --  Entity (Node4-Sem)
10352         5 => False),  --  Etype (Node5-Sem)
10353
10354      N_Op_Ge =>
10355        (1 => True,    --  Chars (Name1)
10356         2 => True,    --  Left_Opnd (Node2)
10357         3 => True,    --  Right_Opnd (Node3)
10358         4 => False,   --  Entity (Node4-Sem)
10359         5 => False),  --  Etype (Node5-Sem)
10360
10361      N_Op_Add =>
10362        (1 => True,    --  Chars (Name1)
10363         2 => True,    --  Left_Opnd (Node2)
10364         3 => True,    --  Right_Opnd (Node3)
10365         4 => False,   --  Entity (Node4-Sem)
10366         5 => False),  --  Etype (Node5-Sem)
10367
10368      N_Op_Subtract =>
10369        (1 => True,    --  Chars (Name1)
10370         2 => True,    --  Left_Opnd (Node2)
10371         3 => True,    --  Right_Opnd (Node3)
10372         4 => False,   --  Entity (Node4-Sem)
10373         5 => False),  --  Etype (Node5-Sem)
10374
10375      N_Op_Concat =>
10376        (1 => True,    --  Chars (Name1)
10377         2 => True,    --  Left_Opnd (Node2)
10378         3 => True,    --  Right_Opnd (Node3)
10379         4 => False,   --  Entity (Node4-Sem)
10380         5 => False),  --  Etype (Node5-Sem)
10381
10382      N_Op_Multiply =>
10383        (1 => True,    --  Chars (Name1)
10384         2 => True,    --  Left_Opnd (Node2)
10385         3 => True,    --  Right_Opnd (Node3)
10386         4 => False,   --  Entity (Node4-Sem)
10387         5 => False),  --  Etype (Node5-Sem)
10388
10389      N_Op_Divide =>
10390        (1 => True,    --  Chars (Name1)
10391         2 => True,    --  Left_Opnd (Node2)
10392         3 => True,    --  Right_Opnd (Node3)
10393         4 => False,   --  Entity (Node4-Sem)
10394         5 => False),  --  Etype (Node5-Sem)
10395
10396      N_Op_Mod =>
10397        (1 => True,    --  Chars (Name1)
10398         2 => True,    --  Left_Opnd (Node2)
10399         3 => True,    --  Right_Opnd (Node3)
10400         4 => False,   --  Entity (Node4-Sem)
10401         5 => False),  --  Etype (Node5-Sem)
10402
10403      N_Op_Rem =>
10404        (1 => True,    --  Chars (Name1)
10405         2 => True,    --  Left_Opnd (Node2)
10406         3 => True,    --  Right_Opnd (Node3)
10407         4 => False,   --  Entity (Node4-Sem)
10408         5 => False),  --  Etype (Node5-Sem)
10409
10410      N_Op_Expon =>
10411        (1 => True,    --  Chars (Name1)
10412         2 => True,    --  Left_Opnd (Node2)
10413         3 => True,    --  Right_Opnd (Node3)
10414         4 => False,   --  Entity (Node4-Sem)
10415         5 => False),  --  Etype (Node5-Sem)
10416
10417      N_Op_Plus =>
10418        (1 => True,    --  Chars (Name1)
10419         2 => False,   --  unused
10420         3 => True,    --  Right_Opnd (Node3)
10421         4 => False,   --  Entity (Node4-Sem)
10422         5 => False),  --  Etype (Node5-Sem)
10423
10424      N_Op_Minus =>
10425        (1 => True,    --  Chars (Name1)
10426         2 => False,   --  unused
10427         3 => True,    --  Right_Opnd (Node3)
10428         4 => False,   --  Entity (Node4-Sem)
10429         5 => False),  --  Etype (Node5-Sem)
10430
10431      N_Op_Abs =>
10432        (1 => True,    --  Chars (Name1)
10433         2 => False,   --  unused
10434         3 => True,    --  Right_Opnd (Node3)
10435         4 => False,   --  Entity (Node4-Sem)
10436         5 => False),  --  Etype (Node5-Sem)
10437
10438      N_Op_Not =>
10439        (1 => True,    --  Chars (Name1)
10440         2 => False,   --  unused
10441         3 => True,    --  Right_Opnd (Node3)
10442         4 => False,   --  Entity (Node4-Sem)
10443         5 => False),  --  Etype (Node5-Sem)
10444
10445      N_Type_Conversion =>
10446        (1 => False,   --  unused
10447         2 => False,   --  unused
10448         3 => True,    --  Expression (Node3)
10449         4 => True,    --  Subtype_Mark (Node4)
10450         5 => False),  --  Etype (Node5-Sem)
10451
10452      N_Qualified_Expression =>
10453        (1 => False,   --  unused
10454         2 => False,   --  unused
10455         3 => True,    --  Expression (Node3)
10456         4 => True,    --  Subtype_Mark (Node4)
10457         5 => False),  --  Etype (Node5-Sem)
10458
10459      N_Allocator =>
10460        (1 => False,   --  Storage_Pool (Node1-Sem)
10461         2 => False,   --  Procedure_To_Call (Node2-Sem)
10462         3 => True,    --  Expression (Node3)
10463         4 => False,   --  Coextensions (Elist4-Sem)
10464         5 => False),  --  Etype (Node5-Sem)
10465
10466      N_Null_Statement =>
10467        (1 => False,   --  unused
10468         2 => False,   --  unused
10469         3 => False,   --  unused
10470         4 => False,   --  unused
10471         5 => False),  --  unused
10472
10473      N_Label =>
10474        (1 => True,    --  Identifier (Node1)
10475         2 => False,   --  unused
10476         3 => False,   --  unused
10477         4 => False,   --  unused
10478         5 => False),  --  unused
10479
10480      N_Assignment_Statement =>
10481        (1 => False,   --  unused
10482         2 => True,    --  Name (Node2)
10483         3 => True,    --  Expression (Node3)
10484         4 => False,   --  unused
10485         5 => False),  --  unused
10486
10487      N_If_Statement =>
10488        (1 => True,    --  Condition (Node1)
10489         2 => True,    --  Then_Statements (List2)
10490         3 => True,    --  Elsif_Parts (List3)
10491         4 => True,    --  Else_Statements (List4)
10492         5 => True),   --  End_Span (Uint5)
10493
10494      N_Elsif_Part =>
10495        (1 => True,    --  Condition (Node1)
10496         2 => True,    --  Then_Statements (List2)
10497         3 => False,   --  Condition_Actions (List3-Sem)
10498         4 => False,   --  unused
10499         5 => False),  --  unused
10500
10501      N_Case_Expression =>
10502        (1 => False,   --  unused
10503         2 => False,   --  unused
10504         3 => True,    --  Expression (Node3)
10505         4 => True,    --  Alternatives (List4)
10506         5 => False),  --  unused
10507
10508      N_Case_Expression_Alternative =>
10509        (1 => False,   --  Actions (List1-Sem)
10510         2 => False,   --  unused
10511         3 => True,    --  Statements (List3)
10512         4 => True,    --  Expression (Node4)
10513         5 => False),  --  unused
10514
10515      N_Case_Statement =>
10516        (1 => False,   --  unused
10517         2 => False,   --  unused
10518         3 => True,    --  Expression (Node3)
10519         4 => True,    --  Alternatives (List4)
10520         5 => True),   --  End_Span (Uint5)
10521
10522      N_Case_Statement_Alternative =>
10523        (1 => False,   --  unused
10524         2 => False,   --  unused
10525         3 => True,    --  Statements (List3)
10526         4 => True,    --  Discrete_Choices (List4)
10527         5 => False),  --  unused
10528
10529      N_Loop_Statement =>
10530        (1 => True,    --  Identifier (Node1)
10531         2 => True,    --  Iteration_Scheme (Node2)
10532         3 => True,    --  Statements (List3)
10533         4 => True,    --  End_Label (Node4)
10534         5 => False),  --  unused
10535
10536      N_Iteration_Scheme =>
10537        (1 => True,    --  Condition (Node1)
10538         2 => False,   --  unused
10539         3 => False,   --  Condition_Actions (List3-Sem)
10540         4 => True,    --  Loop_Parameter_Specification (Node4)
10541         5 => False),  --  unused
10542
10543      N_Loop_Parameter_Specification =>
10544        (1 => True,    --  Defining_Identifier (Node1)
10545         2 => False,   --  unused
10546         3 => False,   --  unused
10547         4 => True,    --  Discrete_Subtype_Definition (Node4)
10548         5 => False),  --  unused
10549
10550      N_Block_Statement =>
10551        (1 => True,    --  Identifier (Node1)
10552         2 => True,    --  Declarations (List2)
10553         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10554         4 => True,    --  Handled_Statement_Sequence (Node4)
10555         5 => False),  --  unused
10556
10557      N_Exit_Statement =>
10558        (1 => True,    --  Condition (Node1)
10559         2 => True,    --  Name (Node2)
10560         3 => False,   --  unused
10561         4 => False,   --  unused
10562         5 => False),  --  unused
10563
10564      N_Goto_Statement =>
10565        (1 => False,   --  unused
10566         2 => True,    --  Name (Node2)
10567         3 => False,   --  unused
10568         4 => False,   --  unused
10569         5 => False),  --  unused
10570
10571      N_Subprogram_Declaration =>
10572        (1 => True,    --  Specification (Node1)
10573         2 => False,   --  unused
10574         3 => False,   --  Body_To_Inline (Node3-Sem)
10575         4 => False,   --  Parent_Spec (Node4-Sem)
10576         5 => False),  --  Corresponding_Body (Node5-Sem)
10577
10578      N_Abstract_Subprogram_Declaration =>
10579        (1 => True,    --  Specification (Node1)
10580         2 => False,   --  unused
10581         3 => False,   --  unused
10582         4 => False,   --  unused
10583         5 => False),  --  unused
10584
10585      N_Function_Specification =>
10586        (1 => True,    --  Defining_Unit_Name (Node1)
10587         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10588         3 => True,    --  Parameter_Specifications (List3)
10589         4 => True,    --  Result_Definition (Node4)
10590         5 => False),  --  Generic_Parent (Node5-Sem)
10591
10592      N_Procedure_Specification =>
10593        (1 => True,    --  Defining_Unit_Name (Node1)
10594         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10595         3 => True,    --  Parameter_Specifications (List3)
10596         4 => False,   --  unused
10597         5 => False),  --  Generic_Parent (Node5-Sem)
10598
10599      N_Designator =>
10600        (1 => True,    --  Identifier (Node1)
10601         2 => True,    --  Name (Node2)
10602         3 => False,   --  unused
10603         4 => False,   --  unused
10604         5 => False),  --  unused
10605
10606      N_Defining_Program_Unit_Name =>
10607        (1 => True,    --  Defining_Identifier (Node1)
10608         2 => True,    --  Name (Node2)
10609         3 => False,   --  unused
10610         4 => False,   --  unused
10611         5 => False),  --  unused
10612
10613      N_Operator_Symbol =>
10614        (1 => True,    --  Chars (Name1)
10615         2 => False,   --  unused
10616         3 => True,    --  Strval (Str3)
10617         4 => False,   --  Entity (Node4-Sem)
10618         5 => False),  --  Etype (Node5-Sem)
10619
10620      N_Defining_Operator_Symbol =>
10621        (1 => True,    --  Chars (Name1)
10622         2 => False,   --  Next_Entity (Node2-Sem)
10623         3 => False,   --  Scope (Node3-Sem)
10624         4 => False,   --  unused
10625         5 => False),  --  Etype (Node5-Sem)
10626
10627      N_Parameter_Specification =>
10628        (1 => True,    --  Defining_Identifier (Node1)
10629         2 => True,    --  Parameter_Type (Node2)
10630         3 => True,    --  Expression (Node3)
10631         4 => False,   --  unused
10632         5 => False),  --  Default_Expression (Node5-Sem)
10633
10634      N_Subprogram_Body =>
10635        (1 => True,    --  Specification (Node1)
10636         2 => True,    --  Declarations (List2)
10637         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10638         4 => True,    --  Handled_Statement_Sequence (Node4)
10639         5 => False),  --  Corresponding_Spec (Node5-Sem)
10640
10641      N_Parameterized_Expression =>
10642        (1 => True,    --  Specification (Node1)
10643         2 => False,   --  unused
10644         3 => True,    --  Expression (Node3)
10645         4 => False,   --  unused
10646         5 => False),  --  unused
10647
10648      N_Procedure_Call_Statement =>
10649        (1 => False,   --  Controlling_Argument (Node1-Sem)
10650         2 => True,    --  Name (Node2)
10651         3 => True,    --  Parameter_Associations (List3)
10652         4 => False,   --  First_Named_Actual (Node4-Sem)
10653         5 => False),  --  Etype (Node5-Sem)
10654
10655      N_Function_Call =>
10656        (1 => False,   --  Controlling_Argument (Node1-Sem)
10657         2 => True,    --  Name (Node2)
10658         3 => True,    --  Parameter_Associations (List3)
10659         4 => False,   --  First_Named_Actual (Node4-Sem)
10660         5 => False),  --  Etype (Node5-Sem)
10661
10662      N_Parameter_Association =>
10663        (1 => False,   --  unused
10664         2 => True,    --  Selector_Name (Node2)
10665         3 => True,    --  Explicit_Actual_Parameter (Node3)
10666         4 => False,   --  Next_Named_Actual (Node4-Sem)
10667         5 => False),  --  unused
10668
10669      N_Return_Statement =>
10670        (1 => False,   --  Storage_Pool (Node1-Sem)
10671         2 => False,   --  Procedure_To_Call (Node2-Sem)
10672         3 => True,    --  Expression (Node3)
10673         4 => False,   --  unused
10674         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10675
10676      N_Extended_Return_Statement =>
10677        (1 => False,   --  Storage_Pool (Node1-Sem)
10678         2 => False,   --  Procedure_To_Call (Node2-Sem)
10679         3 => True,    --  Return_Object_Declarations (List3)
10680         4 => True,    --  Handled_Statement_Sequence (Node4)
10681         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10682
10683      N_Package_Declaration =>
10684        (1 => True,    --  Specification (Node1)
10685         2 => False,   --  unused
10686         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10687         4 => False,   --  Parent_Spec (Node4-Sem)
10688         5 => False),  --  Corresponding_Body (Node5-Sem)
10689
10690      N_Package_Specification =>
10691        (1 => True,    --  Defining_Unit_Name (Node1)
10692         2 => True,    --  Visible_Declarations (List2)
10693         3 => True,    --  Private_Declarations (List3)
10694         4 => True,    --  End_Label (Node4)
10695         5 => False),  --  Generic_Parent (Node5-Sem)
10696
10697      N_Package_Body =>
10698        (1 => True,    --  Defining_Unit_Name (Node1)
10699         2 => True,    --  Declarations (List2)
10700         3 => False,   --  unused
10701         4 => True,    --  Handled_Statement_Sequence (Node4)
10702         5 => False),  --  Corresponding_Spec (Node5-Sem)
10703
10704      N_Private_Type_Declaration =>
10705        (1 => True,    --  Defining_Identifier (Node1)
10706         2 => False,   --  unused
10707         3 => False,   --  unused
10708         4 => True,    --  Discriminant_Specifications (List4)
10709         5 => False),  --  unused
10710
10711      N_Private_Extension_Declaration =>
10712        (1 => True,    --  Defining_Identifier (Node1)
10713         2 => True,    --  Interface_List (List2)
10714         3 => False,   --  unused
10715         4 => True,    --  Discriminant_Specifications (List4)
10716         5 => True),   --  Subtype_Indication (Node5)
10717
10718      N_Use_Package_Clause =>
10719        (1 => False,   --  unused
10720         2 => True,    --  Names (List2)
10721         3 => False,   --  Next_Use_Clause (Node3-Sem)
10722         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10723         5 => False),  --  unused
10724
10725      N_Use_Type_Clause =>
10726        (1 => False,   --  unused
10727         2 => True,    --  Subtype_Marks (List2)
10728         3 => False,   --  Next_Use_Clause (Node3-Sem)
10729         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10730         5 => False),  --  unused
10731
10732      N_Object_Renaming_Declaration =>
10733        (1 => True,    --  Defining_Identifier (Node1)
10734         2 => True,    --  Name (Node2)
10735         3 => True,    --  Access_Definition (Node3)
10736         4 => True,    --  Subtype_Mark (Node4)
10737         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10738
10739      N_Exception_Renaming_Declaration =>
10740        (1 => True,    --  Defining_Identifier (Node1)
10741         2 => True,    --  Name (Node2)
10742         3 => False,   --  unused
10743         4 => False,   --  unused
10744         5 => False),  --  unused
10745
10746      N_Package_Renaming_Declaration =>
10747        (1 => True,    --  Defining_Unit_Name (Node1)
10748         2 => True,    --  Name (Node2)
10749         3 => False,   --  unused
10750         4 => False,   --  Parent_Spec (Node4-Sem)
10751         5 => False),  --  unused
10752
10753      N_Subprogram_Renaming_Declaration =>
10754        (1 => True,    --  Specification (Node1)
10755         2 => True,    --  Name (Node2)
10756         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
10757         4 => False,   --  Parent_Spec (Node4-Sem)
10758         5 => False),  --  Corresponding_Spec (Node5-Sem)
10759
10760      N_Generic_Package_Renaming_Declaration =>
10761        (1 => True,    --  Defining_Unit_Name (Node1)
10762         2 => True,    --  Name (Node2)
10763         3 => False,   --  unused
10764         4 => False,   --  Parent_Spec (Node4-Sem)
10765         5 => False),  --  unused
10766
10767      N_Generic_Procedure_Renaming_Declaration =>
10768        (1 => True,    --  Defining_Unit_Name (Node1)
10769         2 => True,    --  Name (Node2)
10770         3 => False,   --  unused
10771         4 => False,   --  Parent_Spec (Node4-Sem)
10772         5 => False),  --  unused
10773
10774      N_Generic_Function_Renaming_Declaration =>
10775        (1 => True,    --  Defining_Unit_Name (Node1)
10776         2 => True,    --  Name (Node2)
10777         3 => False,   --  unused
10778         4 => False,   --  Parent_Spec (Node4-Sem)
10779         5 => False),  --  unused
10780
10781      N_Task_Type_Declaration =>
10782        (1 => True,    --  Defining_Identifier (Node1)
10783         2 => True,    --  Interface_List (List2)
10784         3 => True,    --  Task_Definition (Node3)
10785         4 => True,    --  Discriminant_Specifications (List4)
10786         5 => False),  --  Corresponding_Body (Node5-Sem)
10787
10788      N_Single_Task_Declaration =>
10789        (1 => True,    --  Defining_Identifier (Node1)
10790         2 => True,    --  Interface_List (List2)
10791         3 => True,    --  Task_Definition (Node3)
10792         4 => False,   --  unused
10793         5 => False),  --  unused
10794
10795      N_Task_Definition =>
10796        (1 => False,   --  unused
10797         2 => True,    --  Visible_Declarations (List2)
10798         3 => True,    --  Private_Declarations (List3)
10799         4 => True,    --  End_Label (Node4)
10800         5 => False),  --  unused
10801
10802      N_Task_Body =>
10803        (1 => True,    --  Defining_Identifier (Node1)
10804         2 => True,    --  Declarations (List2)
10805         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10806         4 => True,    --  Handled_Statement_Sequence (Node4)
10807         5 => False),  --  Corresponding_Spec (Node5-Sem)
10808
10809      N_Protected_Type_Declaration =>
10810        (1 => True,    --  Defining_Identifier (Node1)
10811         2 => True,    --  Interface_List (List2)
10812         3 => True,    --  Protected_Definition (Node3)
10813         4 => True,    --  Discriminant_Specifications (List4)
10814         5 => False),  --  Corresponding_Body (Node5-Sem)
10815
10816      N_Single_Protected_Declaration =>
10817        (1 => True,    --  Defining_Identifier (Node1)
10818         2 => True,    --  Interface_List (List2)
10819         3 => True,    --  Protected_Definition (Node3)
10820         4 => False,   --  unused
10821         5 => False),  --  unused
10822
10823      N_Protected_Definition =>
10824        (1 => False,   --  unused
10825         2 => True,    --  Visible_Declarations (List2)
10826         3 => True,    --  Private_Declarations (List3)
10827         4 => True,    --  End_Label (Node4)
10828         5 => False),  --  unused
10829
10830      N_Protected_Body =>
10831        (1 => True,    --  Defining_Identifier (Node1)
10832         2 => True,    --  Declarations (List2)
10833         3 => False,   --  unused
10834         4 => True,    --  End_Label (Node4)
10835         5 => False),  --  Corresponding_Spec (Node5-Sem)
10836
10837      N_Entry_Declaration =>
10838        (1 => True,    --  Defining_Identifier (Node1)
10839         2 => False,   --  unused
10840         3 => True,    --  Parameter_Specifications (List3)
10841         4 => True,    --  Discrete_Subtype_Definition (Node4)
10842         5 => False),  --  Corresponding_Body (Node5-Sem)
10843
10844      N_Accept_Statement =>
10845        (1 => True,    --  Entry_Direct_Name (Node1)
10846         2 => True,    --  Declarations (List2)
10847         3 => True,    --  Parameter_Specifications (List3)
10848         4 => True,    --  Handled_Statement_Sequence (Node4)
10849         5 => True),   --  Entry_Index (Node5)
10850
10851      N_Entry_Body =>
10852        (1 => True,    --  Defining_Identifier (Node1)
10853         2 => True,    --  Declarations (List2)
10854         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10855         4 => True,    --  Handled_Statement_Sequence (Node4)
10856         5 => True),   --  Entry_Body_Formal_Part (Node5)
10857
10858      N_Entry_Body_Formal_Part =>
10859        (1 => True,    --  Condition (Node1)
10860         2 => False,   --  unused
10861         3 => True,    --  Parameter_Specifications (List3)
10862         4 => True,    --  Entry_Index_Specification (Node4)
10863         5 => False),  --  unused
10864
10865      N_Entry_Index_Specification =>
10866        (1 => True,    --  Defining_Identifier (Node1)
10867         2 => False,   --  unused
10868         3 => False,   --  unused
10869         4 => True,    --  Discrete_Subtype_Definition (Node4)
10870         5 => False),  --  unused
10871
10872      N_Entry_Call_Statement =>
10873        (1 => False,   --  unused
10874         2 => True,    --  Name (Node2)
10875         3 => True,    --  Parameter_Associations (List3)
10876         4 => False,   --  First_Named_Actual (Node4-Sem)
10877         5 => False),  --  unused
10878
10879      N_Requeue_Statement =>
10880        (1 => False,   --  unused
10881         2 => True,    --  Name (Node2)
10882         3 => False,   --  unused
10883         4 => False,   --  unused
10884         5 => False),  --  unused
10885
10886      N_Delay_Until_Statement =>
10887        (1 => False,   --  unused
10888         2 => False,   --  unused
10889         3 => True,    --  Expression (Node3)
10890         4 => False,   --  unused
10891         5 => False),  --  unused
10892
10893      N_Delay_Relative_Statement =>
10894        (1 => False,   --  unused
10895         2 => False,   --  unused
10896         3 => True,    --  Expression (Node3)
10897         4 => False,   --  unused
10898         5 => False),  --  unused
10899
10900      N_Selective_Accept =>
10901        (1 => True,    --  Select_Alternatives (List1)
10902         2 => False,   --  unused
10903         3 => False,   --  unused
10904         4 => True,    --  Else_Statements (List4)
10905         5 => False),  --  unused
10906
10907      N_Accept_Alternative =>
10908        (1 => True,    --  Condition (Node1)
10909         2 => True,    --  Accept_Statement (Node2)
10910         3 => True,    --  Statements (List3)
10911         4 => True,    --  Pragmas_Before (List4)
10912         5 => False),  --  Accept_Handler_Records (List5-Sem)
10913
10914      N_Delay_Alternative =>
10915        (1 => True,    --  Condition (Node1)
10916         2 => True,    --  Delay_Statement (Node2)
10917         3 => True,    --  Statements (List3)
10918         4 => True,    --  Pragmas_Before (List4)
10919         5 => False),  --  unused
10920
10921      N_Terminate_Alternative =>
10922        (1 => True,    --  Condition (Node1)
10923         2 => False,   --  unused
10924         3 => False,   --  unused
10925         4 => True,    --  Pragmas_Before (List4)
10926         5 => True),   --  Pragmas_After (List5)
10927
10928      N_Timed_Entry_Call =>
10929        (1 => True,    --  Entry_Call_Alternative (Node1)
10930         2 => False,   --  unused
10931         3 => False,   --  unused
10932         4 => True,    --  Delay_Alternative (Node4)
10933         5 => False),  --  unused
10934
10935      N_Entry_Call_Alternative =>
10936        (1 => True,    --  Entry_Call_Statement (Node1)
10937         2 => False,   --  unused
10938         3 => True,    --  Statements (List3)
10939         4 => True,    --  Pragmas_Before (List4)
10940         5 => False),  --  unused
10941
10942      N_Conditional_Entry_Call =>
10943        (1 => True,    --  Entry_Call_Alternative (Node1)
10944         2 => False,   --  unused
10945         3 => False,   --  unused
10946         4 => True,    --  Else_Statements (List4)
10947         5 => False),  --  unused
10948
10949      N_Asynchronous_Select =>
10950        (1 => True,    --  Triggering_Alternative (Node1)
10951         2 => True,    --  Abortable_Part (Node2)
10952         3 => False,   --  unused
10953         4 => False,   --  unused
10954         5 => False),  --  unused
10955
10956      N_Triggering_Alternative =>
10957        (1 => True,    --  Triggering_Statement (Node1)
10958         2 => False,   --  unused
10959         3 => True,    --  Statements (List3)
10960         4 => True,    --  Pragmas_Before (List4)
10961         5 => False),  --  unused
10962
10963      N_Abortable_Part =>
10964        (1 => False,   --  unused
10965         2 => False,   --  unused
10966         3 => True,    --  Statements (List3)
10967         4 => False,   --  unused
10968         5 => False),  --  unused
10969
10970      N_Abort_Statement =>
10971        (1 => False,   --  unused
10972         2 => True,    --  Names (List2)
10973         3 => False,   --  unused
10974         4 => False,   --  unused
10975         5 => False),  --  unused
10976
10977      N_Compilation_Unit =>
10978        (1 => True,    --  Context_Items (List1)
10979         2 => True,    --  Unit (Node2)
10980         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
10981         4 => False,   --  Library_Unit (Node4-Sem)
10982         5 => True),   --  Aux_Decls_Node (Node5)
10983
10984      N_Compilation_Unit_Aux =>
10985        (1 => True,    --  Actions (List1)
10986         2 => True,    --  Declarations (List2)
10987         3 => False,   --  unused
10988         4 => True,    --  Config_Pragmas (List4)
10989         5 => True),   --  Pragmas_After (List5)
10990
10991      N_With_Clause =>
10992        (1 => False,   --  unused
10993         2 => True,    --  Name (Node2)
10994         3 => False,   --  unused
10995         4 => False,   --  Library_Unit (Node4-Sem)
10996         5 => False),  --  Corresponding_Spec (Node5-Sem)
10997
10998      N_Subprogram_Body_Stub =>
10999        (1 => True,    --  Specification (Node1)
11000         2 => False,   --  unused
11001         3 => False,   --  unused
11002         4 => False,   --  Library_Unit (Node4-Sem)
11003         5 => False),  --  Corresponding_Body (Node5-Sem)
11004
11005      N_Package_Body_Stub =>
11006        (1 => True,    --  Defining_Identifier (Node1)
11007         2 => False,   --  unused
11008         3 => False,   --  unused
11009         4 => False,   --  Library_Unit (Node4-Sem)
11010         5 => False),  --  Corresponding_Body (Node5-Sem)
11011
11012      N_Task_Body_Stub =>
11013        (1 => True,    --  Defining_Identifier (Node1)
11014         2 => False,   --  unused
11015         3 => False,   --  unused
11016         4 => False,   --  Library_Unit (Node4-Sem)
11017         5 => False),  --  Corresponding_Body (Node5-Sem)
11018
11019      N_Protected_Body_Stub =>
11020        (1 => True,    --  Defining_Identifier (Node1)
11021         2 => False,   --  unused
11022         3 => False,   --  unused
11023         4 => False,   --  Library_Unit (Node4-Sem)
11024         5 => False),  --  Corresponding_Body (Node5-Sem)
11025
11026      N_Subunit =>
11027        (1 => True,    --  Proper_Body (Node1)
11028         2 => True,    --  Name (Node2)
11029         3 => False,   --  Corresponding_Stub (Node3-Sem)
11030         4 => False,   --  unused
11031         5 => False),  --  unused
11032
11033      N_Exception_Declaration =>
11034        (1 => True,    --  Defining_Identifier (Node1)
11035         2 => False,   --  unused
11036         3 => False,   --  Expression (Node3-Sem)
11037         4 => False,   --  unused
11038         5 => False),  --  unused
11039
11040      N_Handled_Sequence_Of_Statements =>
11041        (1 => True,    --  At_End_Proc (Node1)
11042         2 => False,   --  First_Real_Statement (Node2-Sem)
11043         3 => True,    --  Statements (List3)
11044         4 => True,    --  End_Label (Node4)
11045         5 => True),   --  Exception_Handlers (List5)
11046
11047      N_Exception_Handler =>
11048        (1 => False,   --  Local_Raise_Statements (Elist1)
11049         2 => True,    --  Choice_Parameter (Node2)
11050         3 => True,    --  Statements (List3)
11051         4 => True,    --  Exception_Choices (List4)
11052         5 => False),  --  Exception_Label (Node5)
11053
11054      N_Raise_Statement =>
11055        (1 => False,   --  unused
11056         2 => True,    --  Name (Node2)
11057         3 => True,    --  Expression (Node3)
11058         4 => False,   --  unused
11059         5 => False),  --  unused
11060
11061      N_Generic_Subprogram_Declaration =>
11062        (1 => True,    --  Specification (Node1)
11063         2 => True,    --  Generic_Formal_Declarations (List2)
11064         3 => False,   --  unused
11065         4 => False,   --  Parent_Spec (Node4-Sem)
11066         5 => False),  --  Corresponding_Body (Node5-Sem)
11067
11068      N_Generic_Package_Declaration =>
11069        (1 => True,    --  Specification (Node1)
11070         2 => True,    --  Generic_Formal_Declarations (List2)
11071         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11072         4 => False,   --  Parent_Spec (Node4-Sem)
11073         5 => False),  --  Corresponding_Body (Node5-Sem)
11074
11075      N_Package_Instantiation =>
11076        (1 => True,    --  Defining_Unit_Name (Node1)
11077         2 => True,    --  Name (Node2)
11078         3 => True,    --  Generic_Associations (List3)
11079         4 => False,   --  Parent_Spec (Node4-Sem)
11080         5 => False),  --  Instance_Spec (Node5-Sem)
11081
11082      N_Procedure_Instantiation =>
11083        (1 => True,    --  Defining_Unit_Name (Node1)
11084         2 => True,    --  Name (Node2)
11085         3 => True,    --  Generic_Associations (List3)
11086         4 => False,   --  Parent_Spec (Node4-Sem)
11087         5 => False),  --  Instance_Spec (Node5-Sem)
11088
11089      N_Function_Instantiation =>
11090        (1 => True,    --  Defining_Unit_Name (Node1)
11091         2 => True,    --  Name (Node2)
11092         3 => True,    --  Generic_Associations (List3)
11093         4 => False,   --  Parent_Spec (Node4-Sem)
11094         5 => False),  --  Instance_Spec (Node5-Sem)
11095
11096      N_Generic_Association =>
11097        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
11098         2 => True,    --  Selector_Name (Node2)
11099         3 => False,   --  unused
11100         4 => False,   --  unused
11101         5 => False),  --  unused
11102
11103      N_Formal_Object_Declaration =>
11104        (1 => True,    --  Defining_Identifier (Node1)
11105         2 => False,   --  unused
11106         3 => True,    --  Access_Definition (Node3)
11107         4 => True,    --  Subtype_Mark (Node4)
11108         5 => True),   --  Default_Expression (Node5)
11109
11110      N_Formal_Type_Declaration =>
11111        (1 => True,    --  Defining_Identifier (Node1)
11112         2 => False,   --  unused
11113         3 => True,    --  Formal_Type_Definition (Node3)
11114         4 => True,    --  Discriminant_Specifications (List4)
11115         5 => False),  --  unused
11116
11117      N_Formal_Private_Type_Definition =>
11118        (1 => False,   --  unused
11119         2 => False,   --  unused
11120         3 => False,   --  unused
11121         4 => False,   --  unused
11122         5 => False),  --  unused
11123
11124      N_Formal_Derived_Type_Definition =>
11125        (1 => False,   --  unused
11126         2 => True,    --  Interface_List (List2)
11127         3 => False,   --  unused
11128         4 => True,    --  Subtype_Mark (Node4)
11129         5 => False),  --  unused
11130
11131      N_Formal_Discrete_Type_Definition =>
11132        (1 => False,   --  unused
11133         2 => False,   --  unused
11134         3 => False,   --  unused
11135         4 => False,   --  unused
11136         5 => False),  --  unused
11137
11138      N_Formal_Signed_Integer_Type_Definition =>
11139        (1 => False,   --  unused
11140         2 => False,   --  unused
11141         3 => False,   --  unused
11142         4 => False,   --  unused
11143         5 => False),  --  unused
11144
11145      N_Formal_Modular_Type_Definition =>
11146        (1 => False,   --  unused
11147         2 => False,   --  unused
11148         3 => False,   --  unused
11149         4 => False,   --  unused
11150         5 => False),  --  unused
11151
11152      N_Formal_Floating_Point_Definition =>
11153        (1 => False,   --  unused
11154         2 => False,   --  unused
11155         3 => False,   --  unused
11156         4 => False,   --  unused
11157         5 => False),  --  unused
11158
11159      N_Formal_Ordinary_Fixed_Point_Definition =>
11160        (1 => False,   --  unused
11161         2 => False,   --  unused
11162         3 => False,   --  unused
11163         4 => False,   --  unused
11164         5 => False),  --  unused
11165
11166      N_Formal_Decimal_Fixed_Point_Definition =>
11167        (1 => False,   --  unused
11168         2 => False,   --  unused
11169         3 => False,   --  unused
11170         4 => False,   --  unused
11171         5 => False),  --  unused
11172
11173      N_Formal_Concrete_Subprogram_Declaration =>
11174        (1 => True,    --  Specification (Node1)
11175         2 => True,    --  Default_Name (Node2)
11176         3 => False,   --  unused
11177         4 => False,   --  unused
11178         5 => False),  --  unused
11179
11180      N_Formal_Abstract_Subprogram_Declaration =>
11181        (1 => True,    --  Specification (Node1)
11182         2 => True,    --  Default_Name (Node2)
11183         3 => False,   --  unused
11184         4 => False,   --  unused
11185         5 => False),  --  unused
11186
11187      N_Formal_Package_Declaration =>
11188        (1 => True,    --  Defining_Identifier (Node1)
11189         2 => True,    --  Name (Node2)
11190         3 => True,    --  Generic_Associations (List3)
11191         4 => False,   --  unused
11192         5 => False),  --  Instance_Spec (Node5-Sem)
11193
11194      N_Attribute_Definition_Clause =>
11195        (1 => True,    --  Chars (Name1)
11196         2 => True,    --  Name (Node2)
11197         3 => True,    --  Expression (Node3)
11198         4 => False,   --  unused
11199         5 => False),  --  Next_Rep_Item (Node5-Sem)
11200
11201      N_Aspect_Specification =>
11202        (1 => True,    --  Identifier (Node1)
11203         2 => False,   --  Aspect_Rep_Item (Node2-Sem)
11204         3 => True,    --  Expression (Node3)
11205         4 => False,   --  Entity (Node4-Sem)
11206         5 => False),  --  Next_Rep_Item (Node5-Sem)
11207
11208      N_Enumeration_Representation_Clause =>
11209        (1 => True,    --  Identifier (Node1)
11210         2 => False,   --  unused
11211         3 => True,    --  Array_Aggregate (Node3)
11212         4 => False,   --  unused
11213         5 => False),  --  Next_Rep_Item (Node5-Sem)
11214
11215      N_Record_Representation_Clause =>
11216        (1 => True,    --  Identifier (Node1)
11217         2 => True,    --  Mod_Clause (Node2)
11218         3 => True,    --  Component_Clauses (List3)
11219         4 => False,   --  unused
11220         5 => False),  --  Next_Rep_Item (Node5-Sem)
11221
11222      N_Component_Clause =>
11223        (1 => True,    --  Component_Name (Node1)
11224         2 => True,    --  Position (Node2)
11225         3 => True,    --  First_Bit (Node3)
11226         4 => True,    --  Last_Bit (Node4)
11227         5 => False),  --  unused
11228
11229      N_Code_Statement =>
11230        (1 => False,   --  unused
11231         2 => False,   --  unused
11232         3 => True,    --  Expression (Node3)
11233         4 => False,   --  unused
11234         5 => False),  --  unused
11235
11236      N_Op_Rotate_Left =>
11237        (1 => True,    --  Chars (Name1)
11238         2 => True,    --  Left_Opnd (Node2)
11239         3 => True,    --  Right_Opnd (Node3)
11240         4 => False,   --  Entity (Node4-Sem)
11241         5 => False),  --  Etype (Node5-Sem)
11242
11243      N_Op_Rotate_Right =>
11244        (1 => True,    --  Chars (Name1)
11245         2 => True,    --  Left_Opnd (Node2)
11246         3 => True,    --  Right_Opnd (Node3)
11247         4 => False,   --  Entity (Node4-Sem)
11248         5 => False),  --  Etype (Node5-Sem)
11249
11250      N_Op_Shift_Left =>
11251        (1 => True,    --  Chars (Name1)
11252         2 => True,    --  Left_Opnd (Node2)
11253         3 => True,    --  Right_Opnd (Node3)
11254         4 => False,   --  Entity (Node4-Sem)
11255         5 => False),  --  Etype (Node5-Sem)
11256
11257      N_Op_Shift_Right_Arithmetic =>
11258        (1 => True,    --  Chars (Name1)
11259         2 => True,    --  Left_Opnd (Node2)
11260         3 => True,    --  Right_Opnd (Node3)
11261         4 => False,   --  Entity (Node4-Sem)
11262         5 => False),  --  Etype (Node5-Sem)
11263
11264      N_Op_Shift_Right =>
11265        (1 => True,    --  Chars (Name1)
11266         2 => True,    --  Left_Opnd (Node2)
11267         3 => True,    --  Right_Opnd (Node3)
11268         4 => False,   --  Entity (Node4-Sem)
11269         5 => False),  --  Etype (Node5-Sem)
11270
11271      N_Delta_Constraint =>
11272        (1 => False,   --  unused
11273         2 => False,   --  unused
11274         3 => True,    --  Delta_Expression (Node3)
11275         4 => True,    --  Range_Constraint (Node4)
11276         5 => False),  --  unused
11277
11278      N_At_Clause =>
11279        (1 => True,    --  Identifier (Node1)
11280         2 => False,   --  unused
11281         3 => True,    --  Expression (Node3)
11282         4 => False,   --  unused
11283         5 => False),  --  unused
11284
11285      N_Mod_Clause =>
11286        (1 => False,   --  unused
11287         2 => False,   --  unused
11288         3 => True,    --  Expression (Node3)
11289         4 => True,    --  Pragmas_Before (List4)
11290         5 => False),  --  unused
11291
11292      N_Conditional_Expression =>
11293        (1 => True,    --  Expressions (List1)
11294         2 => False,   --  Then_Actions (List2-Sem)
11295         3 => False,   --  Else_Actions (List3-Sem)
11296         4 => False,   --  unused
11297         5 => False),  --  Etype (Node5-Sem)
11298
11299      N_Expanded_Name =>
11300        (1 => True,    --  Chars (Name1)
11301         2 => True,    --  Selector_Name (Node2)
11302         3 => True,    --  Prefix (Node3)
11303         4 => False,   --  Entity (Node4-Sem)
11304         5 => False),  --  Etype (Node5-Sem)
11305
11306      N_Expression_With_Actions =>
11307        (1 => True,    --  Actions (List1)
11308         2 => False,   --  unused
11309         3 => True,    --  Expression (Node3)
11310         4 => False,   --  unused
11311         5 => False),  --  unused
11312
11313      N_Free_Statement =>
11314        (1 => False,   --  Storage_Pool (Node1-Sem)
11315         2 => False,   --  Procedure_To_Call (Node2-Sem)
11316         3 => True,    --  Expression (Node3)
11317         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
11318         5 => False),  --  unused
11319
11320      N_Freeze_Entity =>
11321        (1 => True,    --  Actions (List1)
11322         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
11323         3 => False,   --  TSS_Elist (Elist3-Sem)
11324         4 => False,   --  Entity (Node4-Sem)
11325         5 => False),  --  First_Subtype_Link (Node5-Sem)
11326
11327      N_Implicit_Label_Declaration =>
11328        (1 => True,    --  Defining_Identifier (Node1)
11329         2 => False,   --  Label_Construct (Node2-Sem)
11330         3 => False,   --  unused
11331         4 => False,   --  unused
11332         5 => False),  --  unused
11333
11334      N_Itype_Reference =>
11335        (1 => False,   --  Itype (Node1-Sem)
11336         2 => False,   --  unused
11337         3 => False,   --  unused
11338         4 => False,   --  unused
11339         5 => False),  --  unused
11340
11341      N_Raise_Constraint_Error =>
11342        (1 => True,    --  Condition (Node1)
11343         2 => False,   --  unused
11344         3 => True,    --  Reason (Uint3)
11345         4 => False,   --  unused
11346         5 => False),  --  Etype (Node5-Sem)
11347
11348      N_Raise_Program_Error =>
11349        (1 => True,    --  Condition (Node1)
11350         2 => False,   --  unused
11351         3 => True,    --  Reason (Uint3)
11352         4 => False,   --  unused
11353         5 => False),  --  Etype (Node5-Sem)
11354
11355      N_Raise_Storage_Error =>
11356        (1 => True,    --  Condition (Node1)
11357         2 => False,   --  unused
11358         3 => True,    --  Reason (Uint3)
11359         4 => False,   --  unused
11360         5 => False),  --  Etype (Node5-Sem)
11361
11362      N_Push_Constraint_Error_Label =>
11363        (1 => False,   --  unused
11364         2 => False,   --  unused
11365         3 => False,   --  unused
11366         4 => False,   --  unused
11367         5 => False),  --  unused
11368
11369      N_Push_Program_Error_Label =>
11370        (1 => False,   --  Exception_Label
11371         2 => False,   --  unused
11372         3 => False,   --  unused
11373         4 => False,   --  unused
11374         5 => False),  --  Exception_Label
11375
11376      N_Push_Storage_Error_Label =>
11377        (1 => False,   --  Exception_Label
11378         2 => False,   --  unused
11379         3 => False,   --  unused
11380         4 => False,   --  unused
11381         5 => False),  --  Exception_Label
11382
11383      N_Pop_Constraint_Error_Label =>
11384        (1 => False,   --  unused
11385         2 => False,   --  unused
11386         3 => False,   --  unused
11387         4 => False,   --  unused
11388         5 => False),  --  unused
11389
11390      N_Pop_Program_Error_Label =>
11391        (1 => False,   --  unused
11392         2 => False,   --  unused
11393         3 => False,   --  unused
11394         4 => False,   --  unused
11395         5 => False),  --  unused
11396
11397      N_Pop_Storage_Error_Label =>
11398        (1 => False,   --  unused
11399         2 => False,   --  unused
11400         3 => False,   --  unused
11401         4 => False,   --  unused
11402         5 => False),  --  unused
11403
11404      N_Reference =>
11405        (1 => False,   --  unused
11406         2 => False,   --  unused
11407         3 => True,    --  Prefix (Node3)
11408         4 => False,   --  unused
11409         5 => False),  --  Etype (Node5-Sem)
11410
11411      N_Subprogram_Info =>
11412        (1 => True,    --  Identifier (Node1)
11413         2 => False,   --  unused
11414         3 => False,   --  unused
11415         4 => False,   --  unused
11416         5 => False),  --  Etype (Node5-Sem)
11417
11418      N_Unchecked_Expression =>
11419        (1 => False,   --  unused
11420         2 => False,   --  unused
11421         3 => True,    --  Expression (Node3)
11422         4 => False,   --  unused
11423         5 => False),  --  Etype (Node5-Sem)
11424
11425      N_Unchecked_Type_Conversion =>
11426        (1 => False,   --  unused
11427         2 => False,   --  unused
11428         3 => True,    --  Expression (Node3)
11429         4 => True,    --  Subtype_Mark (Node4)
11430         5 => False),  --  Etype (Node5-Sem)
11431
11432      N_Validate_Unchecked_Conversion =>
11433        (1 => False,   --  Source_Type (Node1-Sem)
11434         2 => False,   --  Target_Type (Node2-Sem)
11435         3 => False,   --  unused
11436         4 => False,   --  unused
11437         5 => False),  --  unused
11438
11439    --  Entries for SCIL nodes
11440
11441      N_SCIL_Dispatch_Table_Tag_Init =>
11442        (1 => False,   --  unused
11443         2 => False,   --  unused
11444         3 => False,   --  unused
11445         4 => False,   --  SCIL_Entity (Node4-Sem)
11446         5 => False),  --  unused
11447
11448      N_SCIL_Dispatching_Call =>
11449        (1 => False,   --  unused
11450         2 => False,   --  SCIL_Target_Prim (Node2-Sem)
11451         3 => False,   --  unused
11452         4 => False,   --  SCIL_Entity (Node4-Sem)
11453         5 => False),  --  SCIL_Controlling_Tag (Node5-Sem)
11454
11455      N_SCIL_Membership_Test =>
11456        (1 => False,   --  unused
11457         2 => False,   --  unused
11458         3 => False,   --  unused
11459         4 => False,   --  SCIL_Entity (Node4-Sem)
11460         5 => False),  --  SCIL_Tag_Value (Node5-Sem)
11461
11462    --  Entries for Empty, Error and Unused. Even thought these have a Chars
11463    --  field for debugging purposes, they are not really syntactic fields, so
11464    --  we mark all fields as unused.
11465
11466      N_Empty =>
11467        (1 => False,   --  unused
11468         2 => False,   --  unused
11469         3 => False,   --  unused
11470         4 => False,   --  unused
11471         5 => False),  --  unused
11472
11473      N_Error =>
11474        (1 => False,   --  unused
11475         2 => False,   --  unused
11476         3 => False,   --  unused
11477         4 => False,   --  unused
11478         5 => False),  --  unused
11479
11480      N_Unused_At_Start =>
11481        (1 => False,   --  unused
11482         2 => False,   --  unused
11483         3 => False,   --  unused
11484         4 => False,   --  unused
11485         5 => False),  --  unused
11486
11487      N_Unused_At_End =>
11488        (1 => False,   --  unused
11489         2 => False,   --  unused
11490         3 => False,   --  unused
11491         4 => False,   --  unused
11492         5 => False)); --  unused
11493
11494    --------------------
11495    -- Inline Pragmas --
11496    --------------------
11497
11498    pragma Inline (ABE_Is_Certain);
11499    pragma Inline (Abort_Present);
11500    pragma Inline (Abortable_Part);
11501    pragma Inline (Abstract_Present);
11502    pragma Inline (Accept_Handler_Records);
11503    pragma Inline (Accept_Statement);
11504    pragma Inline (Access_Definition);
11505    pragma Inline (Access_To_Subprogram_Definition);
11506    pragma Inline (Access_Types_To_Process);
11507    pragma Inline (Actions);
11508    pragma Inline (Activation_Chain_Entity);
11509    pragma Inline (Acts_As_Spec);
11510    pragma Inline (Actual_Designated_Subtype);
11511    pragma Inline (Address_Warning_Posted);
11512    pragma Inline (Aggregate_Bounds);
11513    pragma Inline (Aliased_Present);
11514    pragma Inline (All_Others);
11515    pragma Inline (All_Present);
11516    pragma Inline (Alternatives);
11517    pragma Inline (Ancestor_Part);
11518    pragma Inline (Array_Aggregate);
11519    pragma Inline (Aspect_Cancel);
11520    pragma Inline (Aspect_Rep_Item);
11521    pragma Inline (Assignment_OK);
11522    pragma Inline (Associated_Node);
11523    pragma Inline (At_End_Proc);
11524    pragma Inline (Attribute_Name);
11525    pragma Inline (Aux_Decls_Node);
11526    pragma Inline (Backwards_OK);
11527    pragma Inline (Bad_Is_Detected);
11528    pragma Inline (Body_To_Inline);
11529    pragma Inline (Body_Required);
11530    pragma Inline (By_Ref);
11531    pragma Inline (Box_Present);
11532    pragma Inline (Char_Literal_Value);
11533    pragma Inline (Chars);
11534    pragma Inline (Check_Address_Alignment);
11535    pragma Inline (Choice_Parameter);
11536    pragma Inline (Choices);
11537    pragma Inline (Class_Present);
11538    pragma Inline (Coextensions);
11539    pragma Inline (Comes_From_Extended_Return_Statement);
11540    pragma Inline (Compile_Time_Known_Aggregate);
11541    pragma Inline (Component_Associations);
11542    pragma Inline (Component_Clauses);
11543    pragma Inline (Component_Definition);
11544    pragma Inline (Component_Items);
11545    pragma Inline (Component_List);
11546    pragma Inline (Component_Name);
11547    pragma Inline (Componentwise_Assignment);
11548    pragma Inline (Condition);
11549    pragma Inline (Condition_Actions);
11550    pragma Inline (Config_Pragmas);
11551    pragma Inline (Constant_Present);
11552    pragma Inline (Constraint);
11553    pragma Inline (Constraints);
11554    pragma Inline (Context_Installed);
11555    pragma Inline (Context_Items);
11556    pragma Inline (Context_Pending);
11557    pragma Inline (Controlling_Argument);
11558    pragma Inline (Conversion_OK);
11559    pragma Inline (Corresponding_Body);
11560    pragma Inline (Corresponding_Formal_Spec);
11561    pragma Inline (Corresponding_Generic_Association);
11562    pragma Inline (Corresponding_Integer_Value);
11563    pragma Inline (Corresponding_Spec);
11564    pragma Inline (Corresponding_Stub);
11565    pragma Inline (Dcheck_Function);
11566    pragma Inline (Debug_Statement);
11567    pragma Inline (Declarations);
11568    pragma Inline (Default_Expression);
11569    pragma Inline (Default_Name);
11570    pragma Inline (Defining_Identifier);
11571    pragma Inline (Defining_Unit_Name);
11572    pragma Inline (Delay_Alternative);
11573    pragma Inline (Delay_Statement);
11574    pragma Inline (Delta_Expression);
11575    pragma Inline (Digits_Expression);
11576    pragma Inline (Discr_Check_Funcs_Built);
11577    pragma Inline (Discrete_Choices);
11578    pragma Inline (Discrete_Range);
11579    pragma Inline (Discrete_Subtype_Definition);
11580    pragma Inline (Discrete_Subtype_Definitions);
11581    pragma Inline (Discriminant_Specifications);
11582    pragma Inline (Discriminant_Type);
11583    pragma Inline (Do_Accessibility_Check);
11584    pragma Inline (Do_Discriminant_Check);
11585    pragma Inline (Do_Length_Check);
11586    pragma Inline (Do_Division_Check);
11587    pragma Inline (Do_Overflow_Check);
11588    pragma Inline (Do_Range_Check);
11589    pragma Inline (Do_Storage_Check);
11590    pragma Inline (Do_Tag_Check);
11591    pragma Inline (Elaborate_Present);
11592    pragma Inline (Elaborate_All_Desirable);
11593    pragma Inline (Elaborate_All_Present);
11594    pragma Inline (Elaborate_Desirable);
11595    pragma Inline (Elaboration_Boolean);
11596    pragma Inline (Else_Actions);
11597    pragma Inline (Else_Statements);
11598    pragma Inline (Elsif_Parts);
11599    pragma Inline (Enclosing_Variant);
11600    pragma Inline (End_Label);
11601    pragma Inline (End_Span);
11602    pragma Inline (Entity);
11603    pragma Inline (Entity_Or_Associated_Node);
11604    pragma Inline (Entry_Body_Formal_Part);
11605    pragma Inline (Entry_Call_Alternative);
11606    pragma Inline (Entry_Call_Statement);
11607    pragma Inline (Entry_Direct_Name);
11608    pragma Inline (Entry_Index);
11609    pragma Inline (Entry_Index_Specification);
11610    pragma Inline (Etype);
11611    pragma Inline (Exception_Choices);
11612    pragma Inline (Exception_Handlers);
11613    pragma Inline (Exception_Junk);
11614    pragma Inline (Exception_Label);
11615    pragma Inline (Expansion_Delayed);
11616    pragma Inline (Explicit_Actual_Parameter);
11617    pragma Inline (Explicit_Generic_Actual_Parameter);
11618    pragma Inline (Expression);
11619    pragma Inline (Expressions);
11620    pragma Inline (First_Bit);
11621    pragma Inline (First_Inlined_Subprogram);
11622    pragma Inline (First_Name);
11623    pragma Inline (First_Named_Actual);
11624    pragma Inline (First_Real_Statement);
11625    pragma Inline (First_Subtype_Link);
11626    pragma Inline (Float_Truncate);
11627    pragma Inline (Formal_Type_Definition);
11628    pragma Inline (Forwards_OK);
11629    pragma Inline (From_Aspect_Specification);
11630    pragma Inline (From_At_End);
11631    pragma Inline (From_At_Mod);
11632    pragma Inline (From_Default);
11633    pragma Inline (Generic_Associations);
11634    pragma Inline (Generic_Formal_Declarations);
11635    pragma Inline (Generic_Parent);
11636    pragma Inline (Generic_Parent_Type);
11637    pragma Inline (Handled_Statement_Sequence);
11638    pragma Inline (Handler_List_Entry);
11639    pragma Inline (Has_Created_Identifier);
11640    pragma Inline (Has_Dynamic_Length_Check);
11641    pragma Inline (Has_Dynamic_Range_Check);
11642    pragma Inline (Has_Init_Expression);
11643    pragma Inline (Has_Local_Raise);
11644    pragma Inline (Has_Self_Reference);
11645    pragma Inline (Has_No_Elaboration_Code);
11646    pragma Inline (Has_Pragma_CPU);
11647    pragma Inline (Has_Pragma_Priority);
11648    pragma Inline (Has_Pragma_Suppress_All);
11649    pragma Inline (Has_Private_View);
11650    pragma Inline (Has_Relative_Deadline_Pragma);
11651    pragma Inline (Has_Storage_Size_Pragma);
11652    pragma Inline (Has_Task_Info_Pragma);
11653    pragma Inline (Has_Task_Name_Pragma);
11654    pragma Inline (Has_Wide_Character);
11655    pragma Inline (Has_Wide_Wide_Character);
11656    pragma Inline (Hidden_By_Use_Clause);
11657    pragma Inline (High_Bound);
11658    pragma Inline (Identifier);
11659    pragma Inline (Implicit_With);
11660    pragma Inline (Interface_List);
11661    pragma Inline (Interface_Present);
11662    pragma Inline (Includes_Infinities);
11663    pragma Inline (Import_Interface_Present);
11664    pragma Inline (In_Present);
11665    pragma Inline (Inherited_Discriminant);
11666    pragma Inline (Instance_Spec);
11667    pragma Inline (Intval);
11668    pragma Inline (Is_Accessibility_Actual);
11669    pragma Inline (Is_Asynchronous_Call_Block);
11670    pragma Inline (Is_Component_Left_Opnd);
11671    pragma Inline (Is_Component_Right_Opnd);
11672    pragma Inline (Is_Controlling_Actual);
11673    pragma Inline (Is_Delayed_Aspect);
11674    pragma Inline (Is_Dynamic_Coextension);
11675    pragma Inline (Is_Elsif);
11676    pragma Inline (Is_Entry_Barrier_Function);
11677    pragma Inline (Is_Expanded_Build_In_Place_Call);
11678    pragma Inline (Is_Folded_In_Parser);
11679    pragma Inline (Is_In_Discriminant_Check);
11680    pragma Inline (Is_Machine_Number);
11681    pragma Inline (Is_Null_Loop);
11682    pragma Inline (Is_Overloaded);
11683    pragma Inline (Is_Power_Of_2_For_Shift);
11684    pragma Inline (Is_Protected_Subprogram_Body);
11685    pragma Inline (Is_Static_Coextension);
11686    pragma Inline (Is_Static_Expression);
11687    pragma Inline (Is_Subprogram_Descriptor);
11688    pragma Inline (Is_Task_Allocation_Block);
11689    pragma Inline (Is_Task_Master);
11690    pragma Inline (Iteration_Scheme);
11691    pragma Inline (Itype);
11692    pragma Inline (Kill_Range_Check);
11693    pragma Inline (Last_Bit);
11694    pragma Inline (Last_Name);
11695    pragma Inline (Library_Unit);
11696    pragma Inline (Label_Construct);
11697    pragma Inline (Left_Opnd);
11698    pragma Inline (Limited_View_Installed);
11699    pragma Inline (Limited_Present);
11700    pragma Inline (Literals);
11701    pragma Inline (Local_Raise_Not_OK);
11702    pragma Inline (Local_Raise_Statements);
11703    pragma Inline (Loop_Actions);
11704    pragma Inline (Loop_Parameter_Specification);
11705    pragma Inline (Low_Bound);
11706    pragma Inline (Mod_Clause);
11707    pragma Inline (More_Ids);
11708    pragma Inline (Must_Be_Byte_Aligned);
11709    pragma Inline (Must_Not_Freeze);
11710    pragma Inline (Must_Not_Override);
11711    pragma Inline (Must_Override);
11712    pragma Inline (Name);
11713    pragma Inline (Names);
11714    pragma Inline (Next_Entity);
11715    pragma Inline (Next_Exit_Statement);
11716    pragma Inline (Next_Implicit_With);
11717    pragma Inline (Next_Named_Actual);
11718    pragma Inline (Next_Pragma);
11719    pragma Inline (Next_Rep_Item);
11720    pragma Inline (Next_Use_Clause);
11721    pragma Inline (No_Ctrl_Actions);
11722    pragma Inline (No_Elaboration_Check);
11723    pragma Inline (No_Entities_Ref_In_Spec);
11724    pragma Inline (No_Initialization);
11725    pragma Inline (No_Truncation);
11726    pragma Inline (Null_Present);
11727    pragma Inline (Null_Exclusion_Present);
11728    pragma Inline (Null_Exclusion_In_Return_Present);
11729    pragma Inline (Null_Record_Present);
11730    pragma Inline (Object_Definition);
11731    pragma Inline (Original_Discriminant);
11732    pragma Inline (Original_Entity);
11733    pragma Inline (Others_Discrete_Choices);
11734    pragma Inline (Out_Present);
11735    pragma Inline (Parameter_Associations);
11736    pragma Inline (Parameter_Specifications);
11737    pragma Inline (Parameter_List_Truncated);
11738    pragma Inline (Parameter_Type);
11739    pragma Inline (Parent_Spec);
11740    pragma Inline (Position);
11741    pragma Inline (Pragma_Argument_Associations);
11742    pragma Inline (Pragma_Enabled);
11743    pragma Inline (Pragma_Identifier);
11744    pragma Inline (Pragmas_After);
11745    pragma Inline (Pragmas_Before);
11746    pragma Inline (Prefix);
11747    pragma Inline (Present_Expr);
11748    pragma Inline (Prev_Ids);
11749    pragma Inline (Print_In_Hex);
11750    pragma Inline (Private_Declarations);
11751    pragma Inline (Private_Present);
11752    pragma Inline (Procedure_To_Call);
11753    pragma Inline (Proper_Body);
11754    pragma Inline (Protected_Definition);
11755    pragma Inline (Protected_Present);
11756    pragma Inline (Raises_Constraint_Error);
11757    pragma Inline (Range_Constraint);
11758    pragma Inline (Range_Expression);
11759    pragma Inline (Real_Range_Specification);
11760    pragma Inline (Realval);
11761    pragma Inline (Reason);
11762    pragma Inline (Record_Extension_Part);
11763    pragma Inline (Redundant_Use);
11764    pragma Inline (Renaming_Exception);
11765    pragma Inline (Result_Definition);
11766    pragma Inline (Return_Object_Declarations);
11767    pragma Inline (Return_Statement_Entity);
11768    pragma Inline (Reverse_Present);
11769    pragma Inline (Right_Opnd);
11770    pragma Inline (Rounded_Result);
11771    pragma Inline (SCIL_Controlling_Tag);
11772    pragma Inline (SCIL_Entity);
11773    pragma Inline (SCIL_Tag_Value);
11774    pragma Inline (SCIL_Target_Prim);
11775    pragma Inline (Scope);
11776    pragma Inline (Select_Alternatives);
11777    pragma Inline (Selector_Name);
11778    pragma Inline (Selector_Names);
11779    pragma Inline (Shift_Count_OK);
11780    pragma Inline (Source_Type);
11781    pragma Inline (Specification);
11782    pragma Inline (Split_PPC);
11783    pragma Inline (Statements);
11784    pragma Inline (Static_Processing_OK);
11785    pragma Inline (Storage_Pool);
11786    pragma Inline (Strval);
11787    pragma Inline (Subtype_Indication);
11788    pragma Inline (Subtype_Mark);
11789    pragma Inline (Subtype_Marks);
11790    pragma Inline (Suppress_Loop_Warnings);
11791    pragma Inline (Synchronized_Present);
11792    pragma Inline (Tagged_Present);
11793    pragma Inline (Target_Type);
11794    pragma Inline (Task_Definition);
11795    pragma Inline (Task_Present);
11796    pragma Inline (Then_Actions);
11797    pragma Inline (Then_Statements);
11798    pragma Inline (Triggering_Alternative);
11799    pragma Inline (Triggering_Statement);
11800    pragma Inline (Treat_Fixed_As_Integer);
11801    pragma Inline (TSS_Elist);
11802    pragma Inline (Type_Definition);
11803    pragma Inline (Unit);
11804    pragma Inline (Unknown_Discriminants_Present);
11805    pragma Inline (Unreferenced_In_Spec);
11806    pragma Inline (Variant_Part);
11807    pragma Inline (Variants);
11808    pragma Inline (Visible_Declarations);
11809    pragma Inline (Was_Originally_Stub);
11810    pragma Inline (Withed_Body);
11811    pragma Inline (Zero_Cost_Handling);
11812
11813    pragma Inline (Set_ABE_Is_Certain);
11814    pragma Inline (Set_Abort_Present);
11815    pragma Inline (Set_Abortable_Part);
11816    pragma Inline (Set_Abstract_Present);
11817    pragma Inline (Set_Accept_Handler_Records);
11818    pragma Inline (Set_Accept_Statement);
11819    pragma Inline (Set_Access_Definition);
11820    pragma Inline (Set_Access_To_Subprogram_Definition);
11821    pragma Inline (Set_Access_Types_To_Process);
11822    pragma Inline (Set_Actions);
11823    pragma Inline (Set_Activation_Chain_Entity);
11824    pragma Inline (Set_Acts_As_Spec);
11825    pragma Inline (Set_Actual_Designated_Subtype);
11826    pragma Inline (Set_Address_Warning_Posted);
11827    pragma Inline (Set_Aggregate_Bounds);
11828    pragma Inline (Set_Aliased_Present);
11829    pragma Inline (Set_All_Others);
11830    pragma Inline (Set_All_Present);
11831    pragma Inline (Set_Alternatives);
11832    pragma Inline (Set_Ancestor_Part);
11833    pragma Inline (Set_Array_Aggregate);
11834    pragma Inline (Set_Aspect_Cancel);
11835    pragma Inline (Set_Aspect_Rep_Item);
11836    pragma Inline (Set_Assignment_OK);
11837    pragma Inline (Set_Associated_Node);
11838    pragma Inline (Set_At_End_Proc);
11839    pragma Inline (Set_Attribute_Name);
11840    pragma Inline (Set_Aux_Decls_Node);
11841    pragma Inline (Set_Backwards_OK);
11842    pragma Inline (Set_Bad_Is_Detected);
11843    pragma Inline (Set_Body_To_Inline);
11844    pragma Inline (Set_Body_Required);
11845    pragma Inline (Set_By_Ref);
11846    pragma Inline (Set_Box_Present);
11847    pragma Inline (Set_Char_Literal_Value);
11848    pragma Inline (Set_Chars);
11849    pragma Inline (Set_Check_Address_Alignment);
11850    pragma Inline (Set_Choice_Parameter);
11851    pragma Inline (Set_Choices);
11852    pragma Inline (Set_Class_Present);
11853    pragma Inline (Set_Coextensions);
11854    pragma Inline (Set_Comes_From_Extended_Return_Statement);
11855    pragma Inline (Set_Compile_Time_Known_Aggregate);
11856    pragma Inline (Set_Component_Associations);
11857    pragma Inline (Set_Component_Clauses);
11858    pragma Inline (Set_Component_Definition);
11859    pragma Inline (Set_Component_Items);
11860    pragma Inline (Set_Component_List);
11861    pragma Inline (Set_Component_Name);
11862    pragma Inline (Set_Componentwise_Assignment);
11863    pragma Inline (Set_Condition);
11864    pragma Inline (Set_Condition_Actions);
11865    pragma Inline (Set_Config_Pragmas);
11866    pragma Inline (Set_Constant_Present);
11867    pragma Inline (Set_Constraint);
11868    pragma Inline (Set_Constraints);
11869    pragma Inline (Set_Context_Installed);
11870    pragma Inline (Set_Context_Items);
11871    pragma Inline (Set_Context_Pending);
11872    pragma Inline (Set_Controlling_Argument);
11873    pragma Inline (Set_Conversion_OK);
11874    pragma Inline (Set_Corresponding_Body);
11875    pragma Inline (Set_Corresponding_Formal_Spec);
11876    pragma Inline (Set_Corresponding_Generic_Association);
11877    pragma Inline (Set_Corresponding_Integer_Value);
11878    pragma Inline (Set_Corresponding_Spec);
11879    pragma Inline (Set_Corresponding_Stub);
11880    pragma Inline (Set_Dcheck_Function);
11881    pragma Inline (Set_Debug_Statement);
11882    pragma Inline (Set_Declarations);
11883    pragma Inline (Set_Default_Expression);
11884    pragma Inline (Set_Default_Name);
11885    pragma Inline (Set_Defining_Identifier);
11886    pragma Inline (Set_Defining_Unit_Name);
11887    pragma Inline (Set_Delay_Alternative);
11888    pragma Inline (Set_Delay_Statement);
11889    pragma Inline (Set_Delta_Expression);
11890    pragma Inline (Set_Digits_Expression);
11891    pragma Inline (Set_Discr_Check_Funcs_Built);
11892    pragma Inline (Set_Discrete_Choices);
11893    pragma Inline (Set_Discrete_Range);
11894    pragma Inline (Set_Discrete_Subtype_Definition);
11895    pragma Inline (Set_Discrete_Subtype_Definitions);
11896    pragma Inline (Set_Discriminant_Specifications);
11897    pragma Inline (Set_Discriminant_Type);
11898    pragma Inline (Set_Do_Accessibility_Check);
11899    pragma Inline (Set_Do_Discriminant_Check);
11900    pragma Inline (Set_Do_Length_Check);
11901    pragma Inline (Set_Do_Division_Check);
11902    pragma Inline (Set_Do_Overflow_Check);
11903    pragma Inline (Set_Do_Range_Check);
11904    pragma Inline (Set_Do_Storage_Check);
11905    pragma Inline (Set_Do_Tag_Check);
11906    pragma Inline (Set_Elaborate_Present);
11907    pragma Inline (Set_Elaborate_All_Desirable);
11908    pragma Inline (Set_Elaborate_All_Present);
11909    pragma Inline (Set_Elaborate_Desirable);
11910    pragma Inline (Set_Elaboration_Boolean);
11911    pragma Inline (Set_Else_Actions);
11912    pragma Inline (Set_Else_Statements);
11913    pragma Inline (Set_Elsif_Parts);
11914    pragma Inline (Set_Enclosing_Variant);
11915    pragma Inline (Set_End_Label);
11916    pragma Inline (Set_End_Span);
11917    pragma Inline (Set_Entity);
11918    pragma Inline (Set_Entry_Body_Formal_Part);
11919    pragma Inline (Set_Entry_Call_Alternative);
11920    pragma Inline (Set_Entry_Call_Statement);
11921    pragma Inline (Set_Entry_Direct_Name);
11922    pragma Inline (Set_Entry_Index);
11923    pragma Inline (Set_Entry_Index_Specification);
11924    pragma Inline (Set_Etype);
11925    pragma Inline (Set_Exception_Choices);
11926    pragma Inline (Set_Exception_Handlers);
11927    pragma Inline (Set_Exception_Junk);
11928    pragma Inline (Set_Exception_Label);
11929    pragma Inline (Set_Expansion_Delayed);
11930    pragma Inline (Set_Explicit_Actual_Parameter);
11931    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11932    pragma Inline (Set_Expression);
11933    pragma Inline (Set_Expressions);
11934    pragma Inline (Set_First_Bit);
11935    pragma Inline (Set_First_Inlined_Subprogram);
11936    pragma Inline (Set_First_Name);
11937    pragma Inline (Set_First_Named_Actual);
11938    pragma Inline (Set_First_Real_Statement);
11939    pragma Inline (Set_First_Subtype_Link);
11940    pragma Inline (Set_Float_Truncate);
11941    pragma Inline (Set_Formal_Type_Definition);
11942    pragma Inline (Set_Forwards_OK);
11943    pragma Inline (Set_From_Aspect_Specification);
11944    pragma Inline (Set_From_At_End);
11945    pragma Inline (Set_From_At_Mod);
11946    pragma Inline (Set_From_Default);
11947    pragma Inline (Set_Generic_Associations);
11948    pragma Inline (Set_Generic_Formal_Declarations);
11949    pragma Inline (Set_Generic_Parent);
11950    pragma Inline (Set_Generic_Parent_Type);
11951    pragma Inline (Set_Handled_Statement_Sequence);
11952    pragma Inline (Set_Handler_List_Entry);
11953    pragma Inline (Set_Has_Created_Identifier);
11954    pragma Inline (Set_Has_Dynamic_Length_Check);
11955    pragma Inline (Set_Has_Init_Expression);
11956    pragma Inline (Set_Has_Local_Raise);
11957    pragma Inline (Set_Has_Dynamic_Range_Check);
11958    pragma Inline (Set_Has_No_Elaboration_Code);
11959    pragma Inline (Set_Has_Pragma_CPU);
11960    pragma Inline (Set_Has_Pragma_Priority);
11961    pragma Inline (Set_Has_Pragma_Suppress_All);
11962    pragma Inline (Set_Has_Private_View);
11963    pragma Inline (Set_Has_Relative_Deadline_Pragma);
11964    pragma Inline (Set_Has_Storage_Size_Pragma);
11965    pragma Inline (Set_Has_Task_Info_Pragma);
11966    pragma Inline (Set_Has_Task_Name_Pragma);
11967    pragma Inline (Set_Has_Wide_Character);
11968    pragma Inline (Set_Has_Wide_Wide_Character);
11969    pragma Inline (Set_Hidden_By_Use_Clause);
11970    pragma Inline (Set_High_Bound);
11971    pragma Inline (Set_Identifier);
11972    pragma Inline (Set_Implicit_With);
11973    pragma Inline (Set_Includes_Infinities);
11974    pragma Inline (Set_Interface_List);
11975    pragma Inline (Set_Interface_Present);
11976    pragma Inline (Set_Import_Interface_Present);
11977    pragma Inline (Set_In_Present);
11978    pragma Inline (Set_Inherited_Discriminant);
11979    pragma Inline (Set_Instance_Spec);
11980    pragma Inline (Set_Intval);
11981    pragma Inline (Set_Is_Accessibility_Actual);
11982    pragma Inline (Set_Is_Asynchronous_Call_Block);
11983    pragma Inline (Set_Is_Component_Left_Opnd);
11984    pragma Inline (Set_Is_Component_Right_Opnd);
11985    pragma Inline (Set_Is_Controlling_Actual);
11986    pragma Inline (Set_Is_Delayed_Aspect);
11987    pragma Inline (Set_Is_Dynamic_Coextension);
11988    pragma Inline (Set_Is_Elsif);
11989    pragma Inline (Set_Is_Entry_Barrier_Function);
11990    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11991    pragma Inline (Set_Is_Folded_In_Parser);
11992    pragma Inline (Set_Is_In_Discriminant_Check);
11993    pragma Inline (Set_Is_Machine_Number);
11994    pragma Inline (Set_Is_Null_Loop);
11995    pragma Inline (Set_Is_Overloaded);
11996    pragma Inline (Set_Is_Power_Of_2_For_Shift);
11997    pragma Inline (Set_Is_Protected_Subprogram_Body);
11998    pragma Inline (Set_Has_Self_Reference);
11999    pragma Inline (Set_Is_Static_Coextension);
12000    pragma Inline (Set_Is_Static_Expression);
12001    pragma Inline (Set_Is_Subprogram_Descriptor);
12002    pragma Inline (Set_Is_Task_Allocation_Block);
12003    pragma Inline (Set_Is_Task_Master);
12004    pragma Inline (Set_Iteration_Scheme);
12005    pragma Inline (Set_Itype);
12006    pragma Inline (Set_Kill_Range_Check);
12007    pragma Inline (Set_Last_Bit);
12008    pragma Inline (Set_Last_Name);
12009    pragma Inline (Set_Library_Unit);
12010    pragma Inline (Set_Label_Construct);
12011    pragma Inline (Set_Left_Opnd);
12012    pragma Inline (Set_Limited_View_Installed);
12013    pragma Inline (Set_Limited_Present);
12014    pragma Inline (Set_Literals);
12015    pragma Inline (Set_Local_Raise_Not_OK);
12016    pragma Inline (Set_Local_Raise_Statements);
12017    pragma Inline (Set_Loop_Actions);
12018    pragma Inline (Set_Loop_Parameter_Specification);
12019    pragma Inline (Set_Low_Bound);
12020    pragma Inline (Set_Mod_Clause);
12021    pragma Inline (Set_More_Ids);
12022    pragma Inline (Set_Must_Be_Byte_Aligned);
12023    pragma Inline (Set_Must_Not_Freeze);
12024    pragma Inline (Set_Must_Not_Override);
12025    pragma Inline (Set_Must_Override);
12026    pragma Inline (Set_Name);
12027    pragma Inline (Set_Names);
12028    pragma Inline (Set_Next_Entity);
12029    pragma Inline (Set_Next_Exit_Statement);
12030    pragma Inline (Set_Next_Implicit_With);
12031    pragma Inline (Set_Next_Named_Actual);
12032    pragma Inline (Set_Next_Pragma);
12033    pragma Inline (Set_Next_Rep_Item);
12034    pragma Inline (Set_Next_Use_Clause);
12035    pragma Inline (Set_No_Ctrl_Actions);
12036    pragma Inline (Set_No_Elaboration_Check);
12037    pragma Inline (Set_No_Entities_Ref_In_Spec);
12038    pragma Inline (Set_No_Initialization);
12039    pragma Inline (Set_No_Truncation);
12040    pragma Inline (Set_Null_Present);
12041    pragma Inline (Set_Null_Exclusion_Present);
12042    pragma Inline (Set_Null_Exclusion_In_Return_Present);
12043    pragma Inline (Set_Null_Record_Present);
12044    pragma Inline (Set_Object_Definition);
12045    pragma Inline (Set_Original_Discriminant);
12046    pragma Inline (Set_Original_Entity);
12047    pragma Inline (Set_Others_Discrete_Choices);
12048    pragma Inline (Set_Out_Present);
12049    pragma Inline (Set_Parameter_Associations);
12050    pragma Inline (Set_Parameter_Specifications);
12051    pragma Inline (Set_Parameter_List_Truncated);
12052    pragma Inline (Set_Parameter_Type);
12053    pragma Inline (Set_Parent_Spec);
12054    pragma Inline (Set_Position);
12055    pragma Inline (Set_Pragma_Argument_Associations);
12056    pragma Inline (Set_Pragma_Enabled);
12057    pragma Inline (Set_Pragma_Identifier);
12058    pragma Inline (Set_Pragmas_After);
12059    pragma Inline (Set_Pragmas_Before);
12060    pragma Inline (Set_Prefix);
12061    pragma Inline (Set_Present_Expr);
12062    pragma Inline (Set_Prev_Ids);
12063    pragma Inline (Set_Print_In_Hex);
12064    pragma Inline (Set_Private_Declarations);
12065    pragma Inline (Set_Private_Present);
12066    pragma Inline (Set_Procedure_To_Call);
12067    pragma Inline (Set_Proper_Body);
12068    pragma Inline (Set_Protected_Definition);
12069    pragma Inline (Set_Protected_Present);
12070    pragma Inline (Set_Raises_Constraint_Error);
12071    pragma Inline (Set_Range_Constraint);
12072    pragma Inline (Set_Range_Expression);
12073    pragma Inline (Set_Real_Range_Specification);
12074    pragma Inline (Set_Realval);
12075    pragma Inline (Set_Reason);
12076    pragma Inline (Set_Record_Extension_Part);
12077    pragma Inline (Set_Redundant_Use);
12078    pragma Inline (Set_Renaming_Exception);
12079    pragma Inline (Set_Result_Definition);
12080    pragma Inline (Set_Return_Object_Declarations);
12081    pragma Inline (Set_Reverse_Present);
12082    pragma Inline (Set_Right_Opnd);
12083    pragma Inline (Set_Rounded_Result);
12084    pragma Inline (Set_SCIL_Controlling_Tag);
12085    pragma Inline (Set_SCIL_Entity);
12086    pragma Inline (Set_SCIL_Tag_Value);
12087    pragma Inline (Set_SCIL_Target_Prim);
12088    pragma Inline (Set_Scope);
12089    pragma Inline (Set_Select_Alternatives);
12090    pragma Inline (Set_Selector_Name);
12091    pragma Inline (Set_Selector_Names);
12092    pragma Inline (Set_Shift_Count_OK);
12093    pragma Inline (Set_Source_Type);
12094    pragma Inline (Set_Specification);
12095    pragma Inline (Set_Split_PPC);
12096    pragma Inline (Set_Statements);
12097    pragma Inline (Set_Static_Processing_OK);
12098    pragma Inline (Set_Storage_Pool);
12099    pragma Inline (Set_Strval);
12100    pragma Inline (Set_Subtype_Indication);
12101    pragma Inline (Set_Subtype_Mark);
12102    pragma Inline (Set_Subtype_Marks);
12103    pragma Inline (Set_Suppress_Loop_Warnings);
12104    pragma Inline (Set_Synchronized_Present);
12105    pragma Inline (Set_Tagged_Present);
12106    pragma Inline (Set_Target_Type);
12107    pragma Inline (Set_Task_Definition);
12108    pragma Inline (Set_Task_Present);
12109    pragma Inline (Set_Then_Actions);
12110    pragma Inline (Set_Then_Statements);
12111    pragma Inline (Set_Triggering_Alternative);
12112    pragma Inline (Set_Triggering_Statement);
12113    pragma Inline (Set_Treat_Fixed_As_Integer);
12114    pragma Inline (Set_TSS_Elist);
12115    pragma Inline (Set_Type_Definition);
12116    pragma Inline (Set_Unit);
12117    pragma Inline (Set_Unknown_Discriminants_Present);
12118    pragma Inline (Set_Unreferenced_In_Spec);
12119    pragma Inline (Set_Variant_Part);
12120    pragma Inline (Set_Variants);
12121    pragma Inline (Set_Visible_Declarations);
12122    pragma Inline (Set_Was_Originally_Stub);
12123    pragma Inline (Set_Withed_Body);
12124    pragma Inline (Set_Zero_Cost_Handling);
12125
12126    N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
12127    --  Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
12128    --  should refer to N_Simple_Return_Statement.
12129
12130 end Sinfo;