einfo.ads, einfo.adb (Default_Aspect_Component_Value): Is on base type only.
[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-2013, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
17 --                                                                          --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception,   --
20 -- version 3.1, as published by the Free Software Foundation.               --
21 --                                                                          --
22 -- You should have received a copy of the GNU General Public License and    --
23 -- a copy of the GCC Runtime Library Exception along with this program;     --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
25 -- <http://www.gnu.org/licenses/>.                                          --
26 --                                                                          --
27 -- GNAT was originally developed  by the GNAT team at  New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
29 --                                                                          --
30 ------------------------------------------------------------------------------
31
32 --  This package defines the structure of the abstract syntax tree. The Tree
33 --  package provides a basic tree structure. Sinfo describes how this structure
34 --  is used to represent the syntax of an Ada program.
35
36 --  The grammar in the RM is followed very closely in the tree design, and is
37 --  repeated as part of this source file.
38
39 --  The tree contains not only the full syntactic representation of the
40 --  program, but also the results of semantic analysis. In particular, the
41 --  nodes for defining identifiers, defining character literals and defining
42 --  operator symbols, collectively referred to as entities, represent what
43 --  would normally be regarded as the symbol table information. In addition a
44 --  number of the tree nodes contain semantic information.
45
46 --  WARNING: Several files are automatically generated from this package.
47 --  See below for details.
48
49 with Namet;  use Namet;
50 with Types;  use Types;
51 with Uintp;  use Uintp;
52 with Urealp; use Urealp;
53
54 package Sinfo is
55
56    ---------------------------------
57    -- Making Changes to This File --
58    ---------------------------------
59
60    --  If changes are made to this file, a number of related steps must be
61    --  carried out to ensure consistency. First, if a field access function is
62    --  added, it appears in these places:
63
64    --    In sinfo.ads:
65    --      The documentation associated with the field (if semantic)
66    --      The documentation associated with the node
67    --      The spec of the access function
68    --      The spec of the set procedure
69    --      The entries in Is_Syntactic_Field
70    --      The pragma Inline for the access function
71    --      The pragma Inline for the set procedure
72    --    In sinfo.adb:
73    --      The body of the access function
74    --      The body of the set procedure
75
76    --  The field chosen must be consistent in all places, and, for a node that
77    --  is a subexpression, must not overlap any of the standard expression
78    --  fields.
79
80    --  In addition, if any of the standard expression fields is changed, then
81    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
82    --  must be updated appropriately, since it special cases expression fields.
83
84    --  If a new tree node is added, then the following changes are made
85
86    --    Add it to the documentation in the appropriate place
87    --    Add its fields to this documentation section
88    --    Define it in the appropriate classification in Node_Kind
89    --    In the body (sinfo), add entries to the access functions for all
90    --     its fields (except standard expression fields) to include the new
91    --     node in the checks.
92    --    Add an appropriate section to the case statement in sprint.adb
93    --    Add an appropriate section to the case statement in sem.adb
94    --    Add an appropriate section to the case statement in exp_util.adb
95    --     (Insert_Actions procedure)
96    --    For a subexpression, add an appropriate section to the case
97    --     statement in sem_eval.adb
98    --    For a subexpression, add an appropriate section to the case
99    --     statement in sem_res.adb
100
101    --  Finally, four utility programs must be run:
102
103    --    (Optional.) Run CSinfo to check that you have made the changes
104    --     consistently. It checks most of the rules given above. This utility
105    --     reads sinfo.ads and sinfo.adb and generates a report to standard
106    --     output. This step is optional because XSinfo runs CSinfo.
107
108    --    Run XSinfo to create sinfo.h, the corresponding C header. This
109    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
110    --     not need to read sinfo.adb, since the contents of the body are
111    --     algorithmically determinable from the spec.
112
113    --    Run XTreeprs to create treeprs.ads, an updated version of the module
114    --     that is used to drive the tree print routine. This utility reads (but
115    --     does not modify) treeprs.adt, the template that provides the basic
116    --     structure of the file, and then fills in the data from the comments
117    --     in sinfo.ads.
118
119    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
120    --     spec of the Nmake package which contains functions for constructing
121    --     nodes.
122
123    --  The above steps are done automatically by the build scripts when you do
124    --  a full bootstrap.
125
126    --  Note: sometime we could write a utility that actually generated the body
127    --  of sinfo from the spec instead of simply checking it, since, as noted
128    --  above, the contents of the body can be determined from the spec.
129
130    --------------------------------
131    -- Implicit Nodes in the Tree --
132    --------------------------------
133
134    --  Generally the structure of the tree very closely follows the grammar as
135    --  defined in the RM. However, certain nodes are omitted to save space and
136    --  simplify semantic processing. Two general classes of such omitted nodes
137    --  are as follows:
138
139    --   If the only possibilities for a non-terminal are one or more other
140    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
141    --   corresponding node is omitted from the tree, and the target construct
142    --   appears directly. For example, a real type definition is either
143    --   floating point definition or a fixed point definition. No explicit node
144    --   appears for real type definition. Instead either the floating point
145    --   definition or fixed point definition appears directly.
146
147    --   If a non-terminal corresponds to a list of some other non-terminal
148    --   (possibly with separating punctuation), then usually it is omitted from
149    --   the tree, and a list of components appears instead. For example,
150    --   sequence of statements does not appear explicitly in the tree. Instead
151    --   a list of statements appears directly.
152
153    --  Some additional cases of omitted nodes occur and are documented
154    --  individually. In particular, many nodes are omitted in the tree
155    --  generated for an expression.
156
157    -------------------------------------------
158    -- Handling of Defining Identifier Lists --
159    -------------------------------------------
160
161    --  In several declarative forms in the syntax, lists of defining
162    --  identifiers appear (object declarations, component declarations, number
163    --  declarations etc.)
164
165    --  The semantics of such statements are equivalent to a series of identical
166    --  declarations of single defining identifiers (except that conformance
167    --  checks require the same grouping of identifiers in the parameter case).
168
169    --  To simplify semantic processing, the parser breaks down such multiple
170    --  declaration cases into sequences of single declarations, duplicating
171    --  type and initialization information as required. The flags More_Ids and
172    --  Prev_Ids are used to record the original form of the source in the case
173    --  where the original source used a list of names, More_Ids being set on
174    --  all but the last name and Prev_Ids being set on all but the first name.
175    --  These flags are used to reconstruct the original source (e.g. in the
176    --  Sprint package), and also are included in the conformance checks, but
177    --  otherwise have no semantic significance.
178
179    --  Note: the reason that we use More_Ids and Prev_Ids rather than
180    --  First_Name and Last_Name flags is so that the flags are off in the
181    --  normal one identifier case, which minimizes tree print output.
182
183    -----------------------
184    -- Use of Node Lists --
185    -----------------------
186
187    --  With a few exceptions, if a construction of the form {non-terminal}
188    --  appears in the tree, lists are used in the corresponding tree node (see
189    --  package Nlists for handling of node lists). In this case a field of the
190    --  parent node points to a list of nodes for the non-terminal. The field
191    --  name for such fields has a plural name which always ends in "s". For
192    --  example, a case statement has a field Alternatives pointing to list of
193    --  case statement alternative nodes.
194
195    --  Only fields pointing to lists have names ending in "s", so generally the
196    --  structure is strongly typed, fields not ending in s point to single
197    --  nodes, and fields ending in s point to lists.
198
199    --  The following example shows how a traversal of a list is written. We
200    --  suppose here that Stmt points to a N_Case_Statement node which has a
201    --  list field called Alternatives:
202
203    --   Alt := First (Alternatives (Stmt));
204    --   while Present (Alt) loop
205    --      ..
206    --      -- processing for case statement alternative Alt
207    --      ..
208    --      Alt := Next (Alt);
209    --   end loop;
210
211    --  The Present function tests for Empty, which in this case signals the end
212    --  of the list. First returns Empty immediately if the list is empty.
213    --  Present is defined in Atree, First and Next are defined in Nlists.
214
215    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
216    --  contexts, which is handled as described in the previous section, and
217    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
218    --  using the First_Name and Last_Name flags, as further detailed in the
219    --  description of the N_With_Clause node.
220
221    -------------
222    -- Pragmas --
223    -------------
224
225    --  Pragmas can appear in many different context, but are not included in
226    --  the grammar. Still they must appear in the tree, so they can be properly
227    --  processed.
228
229    --  Two approaches are used. In some cases, an extra field is defined in an
230    --  appropriate node that contains a list of pragmas appearing in the
231    --  expected context. For example pragmas can appear before an
232    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
233    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
234
235    --  The other approach is to simply allow pragmas to appear in syntactic
236    --  lists where the grammar (of course) does not include the possibility.
237    --  For example, the Variants field of an N_Variant_Part node points to a
238    --  list that can contain both N_Pragma and N_Variant nodes.
239
240    --  To make processing easier in the latter case, the Nlists package
241    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
242    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
243    --  ignoring all pragmas.
244
245    --  In the case of the variants list, we can either write:
246
247    --      Variant := First (Variants (N));
248    --      while Present (Variant) loop
249    --         ...
250    --         Variant := Next (Variant);
251    --      end loop;
252
253    --  or
254
255    --      Variant := First_Non_Pragma (Variants (N));
256    --      while Present (Variant) loop
257    --         ...
258    --         Variant := Next_Non_Pragma (Variant);
259    --      end loop;
260
261    --  In the first form of the loop, Variant can either be an N_Pragma or an
262    --  N_Variant node. In the second form, Variant can only be N_Variant since
263    --  all pragmas are skipped.
264
265    ---------------------
266    -- Optional Fields --
267    ---------------------
268
269    --  Fields which correspond to a section of the syntax enclosed in square
270    --  brackets are generally omitted (and the corresponding field set to Empty
271    --  for a node, or No_List for a list). The documentation of such fields
272    --  notes these cases. One exception to this rule occurs in the case of
273    --  possibly empty statement sequences (such as the sequence of statements
274    --  in an entry call alternative). Such cases appear in the syntax rules as
275    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
276    --  statement sequences always contain an empty list (not No_List) if no
277    --  statements are present.
278
279    --  Note: the utility program that constructs the body and spec of the Nmake
280    --  package relies on the format of the comments to determine if a field
281    --  should have a default value in the corresponding make routine. The rule
282    --  is that if the first line of the description of the field contains the
283    --  string "(set to xxx if", then a default value of xxx is provided for
284    --  this field in the corresponding Make_yyy routine.
285
286    -----------------------------------
287    -- Note on Body/Spec Terminology --
288    -----------------------------------
289
290    --  In informal discussions about Ada, it is customary to refer to package
291    --  and subprogram specs and bodies. However, this is not technically
292    --  correct, what is normally referred to as a spec or specification is in
293    --  fact a package declaration or subprogram declaration. We are careful in
294    --  GNAT to use the correct terminology and in particular, the full word
295    --  specification is never used as an incorrect substitute for declaration.
296    --  The structure and terminology used in the tree also reflects the grammar
297    --  and thus uses declaration and specification in the technically correct
298    --  manner.
299
300    --  However, there are contexts in which the informal terminology is useful.
301    --  We have the word "body" to refer to the Interp_Etype declared by the
302    --  declaration of a unit body, and in some contexts we need similar term to
303    --  refer to the entity declared by the package or subprogram declaration,
304    --  and simply using declaration can be confusing since the body also has a
305    --  declaration.
306
307    --  An example of such a context is the link between the package body and
308    --  its declaration. With_Declaration is confusing, since the package body
309    --  itself is a declaration.
310
311    --  To deal with this problem, we reserve the informal term Spec, i.e. the
312    --  popular abbreviation used in this context, to refer to the entity
313    --  declared by the package or subprogram declaration. So in the above
314    --  example case, the field in the body is called With_Spec.
315
316    --  Another important context for the use of the word Spec is in error
317    --  messages, where a hyper-correct use of declaration would be confusing to
318    --  a typical Ada programmer, and even for an expert programmer can cause
319    --  confusion since the body has a declaration as well.
320
321    --  So, to summarize:
322
323    --     Declaration    always refers to the syntactic entity that is called
324    --                    a declaration. In particular, subprogram declaration
325    --                    and package declaration are used to describe the
326    --                    syntactic entity that includes the semicolon.
327
328    --     Specification  always refers to the syntactic entity that is called
329    --                    a specification. In particular, the terms procedure
330    --                    specification, function specification, package
331    --                    specification, subprogram specification always refer
332    --                    to the syntactic entity that has no semicolon.
333
334    --     Spec           is an informal term, used to refer to the entity
335    --                    that is declared by a task declaration, protected
336    --                    declaration, generic declaration, subprogram
337    --                    declaration or package declaration.
338
339    --  This convention is followed throughout the GNAT documentation
340    --  both internal and external, and in all error message text.
341
342    ------------------------
343    -- Internal Use Nodes --
344    ------------------------
345
346    --  These are Node_Kind settings used in the internal implementation which
347    --  are not logically part of the specification.
348
349    --  N_Unused_At_Start
350    --  Completely unused entry at the start of the enumeration type. This
351    --  is inserted so that no legitimate value is zero, which helps to get
352    --  better debugging behavior, since zero is a likely uninitialized value).
353
354    --  N_Unused_At_End
355    --  Completely unused entry at the end of the enumeration type. This is
356    --  handy so that arrays with Node_Kind as the index type have an extra
357    --  entry at the end (see for example the use of the Pchar_Pos_Array in
358    --  Treepr, where the extra entry provides the limit value when dealing with
359    --  the last used entry in the array).
360
361    -----------------------------------------
362    -- Note on the settings of Sloc fields --
363    -----------------------------------------
364
365    --  The Sloc field of nodes that come from the source is set by the parser.
366    --  For internal nodes, and nodes generated during expansion the Sloc is
367    --  usually set in the call to the constructor for the node. In general the
368    --  Sloc value chosen for an internal node is the Sloc of the source node
369    --  whose processing is responsible for the expansion. For example, the Sloc
370    --  of an inherited primitive operation is the Sloc of the corresponding
371    --  derived type declaration.
372
373    --  For the nodes of a generic instantiation, the Sloc value is encoded to
374    --  represent both the original Sloc in the generic unit, and the Sloc of
375    --  the instantiation itself. See Sinput.ads for details.
376
377    --  Subprogram instances create two callable entities: one is the visible
378    --  subprogram instance, and the other is an anonymous subprogram nested
379    --  within a wrapper package that contains the renamings for the actuals.
380    --  Both of these entities have the Sloc of the defining entity in the
381    --  instantiation node. This simplifies some ASIS queries.
382
383    -----------------------
384    -- Field Definitions --
385    -----------------------
386
387    --  In the following node definitions, all fields, both syntactic and
388    --  semantic, are documented. The one exception is in the case of entities
389    --  (defining identifiers, character literals and operator symbols), where
390    --  the usage of the fields depends on the entity kind. Entity fields are
391    --  fully documented in the separate package Einfo.
392
393    --  In the node definitions, three common sets of fields are abbreviated to
394    --  save both space in the documentation, and also space in the string
395    --  (defined in Tree_Print_Strings) used to print trees. The following
396    --  abbreviations are used:
397
398    --  Note: the utility program that creates the Treeprs spec (in the file
399    --  xtreeprs.adb) knows about the special fields here, so it must be
400    --  modified if any change is made to these fields.
401
402    --    "plus fields for binary operator"
403    --       Chars                    (Name1)      Name_Id for the operator
404    --       Left_Opnd                (Node2)      left operand expression
405    --       Right_Opnd               (Node3)      right operand expression
406    --       Entity                   (Node4-Sem)  defining entity for operator
407    --       Associated_Node          (Node4-Sem)  for generic processing
408    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
409    --       Has_Private_View         (Flag11-Sem) set in generic units.
410
411    --    "plus fields for unary operator"
412    --       Chars                    (Name1)      Name_Id for the operator
413    --       Right_Opnd               (Node3)      right operand expression
414    --       Entity                   (Node4-Sem)  defining entity for operator
415    --       Associated_Node          (Node4-Sem)  for generic processing
416    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
417    --       Has_Private_View         (Flag11-Sem) set in generic units.
418
419    --    "plus fields for expression"
420    --       Paren_Count                           number of parentheses levels
421    --       Etype                    (Node5-Sem)  type of the expression
422    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
423    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
424    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
425    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
426    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
427    --       Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
428    --       Has_Dynamic_Range_Check  (Flag12-Sem) set if range check inserted
429    --       Assignment_OK            (Flag15-Sem) set if modification is OK
430    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
431
432    --  Note: see under (EXPRESSION) for further details on the use of
433    --  the Paren_Count field to record the number of parentheses levels.
434
435    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
436    --  The actual definition of this type is given later (the reason for this
437    --  is that we want the descriptions ordered by logical chapter in the RM,
438    --  but the type definition is reordered to facilitate the definition of
439    --  some subtype ranges. The individual descriptions of the nodes show how
440    --  the various fields are used in each node kind, as well as providing
441    --  logical names for the fields. Functions and procedures are provided for
442    --  accessing and setting these fields using these logical names.
443
444    -----------------------
445    -- Gigi Restrictions --
446    -----------------------
447
448    --  The tree passed to Gigi is more restricted than the general tree form.
449    --  For example, as a result of expansion, most of the tasking nodes can
450    --  never appear. For each node to which either a complete or partial
451    --  restriction applies, a note entitled "Gigi restriction" appears which
452    --  documents the restriction.
453
454    --  Note that most of these restrictions apply only to trees generated when
455    --  code is being generated, since they involved expander actions that
456    --  destroy the tree.
457
458    ---------------
459    -- ASIS Mode --
460    ---------------
461
462    --  When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
463    --  and the analysis must generate a tree in a form that meets all ASIS
464    --  requirements.
465
466    --  ASIS must be able to recover the original tree that corresponds to the
467    --  source. It relies heavily on Original_Node for this purpose, which as
468    --  described in Atree, records the history when a node is rewritten. ASIS
469    --  uses Original_Node to recover the original node before the Rewrite.
470
471    --  At least in ASIS mode (not really important in non-ASIS mode), when
472    --  N1 is rewritten as N2:
473
474    --    The subtree rooted by the original node N1 should be fully decorated,
475    --    i.e. all semantic fields noted in sinfo.ads should be set properly
476    --    and any referenced entities should be complete (with exceptions for
477    --    representation information, noted below).
478
479    --    For all the direct descendants of N1 (original node) their Parent
480    --    links should point not to N1, but to N2 (rewriting node).
481
482    --    The Parent links of rewritten nodes (N1 in this example) are set in
483    --    some cases (to point to the rewritten parent), but in other cases
484    --    they are set to Empty. This needs sorting out ??? It would be much
485    --    cleaner if they could always be set in the original node ???
486
487    --  Representation Information
488
489    --    For the purposes of the data description annex, the representation
490    --    information for source declared entities must be complete in the
491    --    ASIS tree.
492
493    --    This requires that the front end call the back end (gigi/gcc) in
494    --    a special "back annotate only" mode to obtain information on layout
495    --    from the back end.
496
497    --    For the purposes of this special "back annotate only" mode, the
498    --    requirements that would normally need to be met to generate code
499    --    are relaxed as follows:
500
501    --      Anonymous types need not have full representation information (e.g.
502    --      sizes need not be set for types where the front end would normally
503    --      set the sizes), since anonymous types can be ignored in this mode.
504
505    --      In this mode, gigi will see at least fragments of a fully annotated
506    --      unexpanded tree. This means that it will encounter nodes it does
507    --      not normally handle (such as stubs, task bodies etc). It should
508    --      simply ignore these nodes, since they are not relevant to the task
509    --      of back annotating representation information.
510
511    ------------------------
512    -- Common Flag Fields --
513    ------------------------
514
515    --  The following flag fields appear in all nodes
516
517    --  Analyzed
518    --    This flag is used to indicate that a node (and all its children have
519    --    been analyzed. It is used to avoid reanalysis of a node that has
520    --    already been analyzed, both for efficiency and functional correctness
521    --    reasons.
522
523    --  Comes_From_Source
524    --    This flag is set if the node comes directly from an explicit construct
525    --    in the source. It is normally on for any nodes built by the scanner or
526    --    parser from the source program, with the exception that in a few cases
527    --    the parser adds nodes to normalize the representation (in particular
528    --    a null statement is added to a package body if there is no begin/end
529    --    initialization section.
530    --
531    --    Most nodes inserted by the analyzer or expander are not considered
532    --    as coming from source, so the flag is off for such nodes. In a few
533    --    cases, the expander constructs nodes closely equivalent to nodes
534    --    from the source program (e.g. the allocator built for build-in-place
535    --    case), and the Comes_From_Source flag is deliberately set.
536
537    --  Error_Posted
538    --    This flag is used to avoid multiple error messages being posted on or
539    --    referring to the same node. This flag is set if an error message
540    --    refers to a node or is posted on its source location, and has the
541    --    effect of inhibiting further messages involving this same node.
542
543    ------------------------------------
544    -- Description of Semantic Fields --
545    ------------------------------------
546
547    --  The meaning of the syntactic fields is generally clear from their names
548    --  without any further description, since the names are chosen to
549    --  correspond very closely to the syntax in the reference manual. This
550    --  section describes the usage of the semantic fields, which are used to
551    --  contain additional information determined during semantic analysis.
552
553    --  ABE_Is_Certain (Flag18-Sem)
554    --    This flag is set in an instantiation node or a call node is determined
555    --    to be sure to raise an ABE. This is used to trigger special handling
556    --    of such cases, particularly in the instantiation case where we avoid
557    --    instantiating the body if this flag is set. This flag is also present
558    --    in an N_Formal_Package_Declaration_Node since formal package
559    --    declarations are treated like instantiations, but it is always set to
560    --    False in this context.
561
562    --  Accept_Handler_Records (List5-Sem)
563    --    This field is present only in an N_Accept_Alternative node. It is used
564    --    to temporarily hold the exception handler records from an accept
565    --    statement in a selective accept. These exception handlers will
566    --    eventually be placed in the Handler_Records list of the procedure
567    --    built for this accept (see Expand_N_Selective_Accept procedure in
568    --    Exp_Ch9 for further details).
569
570    --  Access_Types_To_Process (Elist2-Sem)
571    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
572    --    Contains the list of access types which may require specific treatment
573    --    when the nature of the type completion is completely known. An example
574    --    of such treatment is the generation of the associated_final_chain.
575
576    --  Actions (List1-Sem)
577    --    This field contains a sequence of actions that are associated with the
578    --    node holding the field. See the individual node types for details of
579    --    how this field is used, as well as the description of the specific use
580    --    for a particular node type.
581
582    --  Activation_Chain_Entity (Node3-Sem)
583    --    This is used in tree nodes representing task activators (blocks,
584    --    subprogram bodies, package declarations, and task bodies). It is
585    --    initially Empty, and then gets set to point to the entity for the
586    --    declared Activation_Chain variable when the first task is declared.
587    --    When tasks are declared in the corresponding declarative region this
588    --    entity is located by name (its name is always _Chain) and the declared
589    --    tasks are added to the chain. Note that N_Extended_Return_Statement
590    --    does not have this attribute, although it does have an activation
591    --    chain. This chain is used to store the tasks temporarily, and is not
592    --    used for activating them. On successful completion of the return
593    --    statement, the tasks are moved to the caller's chain, and the caller
594    --    activates them.
595
596    --  Acts_As_Spec (Flag4-Sem)
597    --    A flag set in the N_Subprogram_Body node for a subprogram body which
598    --    is acting as its own spec, except in the case of a library level
599    --    subprogram, in which case the flag is set on the parent compilation
600    --    unit node instead (see further description in spec of Lib package).
601    --    ??? Above note about Lib is dubious since lib.ads does not mention
602    --    Acts_As_Spec at all.
603
604    --  Actual_Designated_Subtype (Node4-Sem)
605    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
606    --    needs to known the dynamic constrained subtype of the designated
607    --    object, this attribute is set to that type. This is done for
608    --    N_Free_Statements for access-to-classwide types and access to
609    --    unconstrained packed array types, and for N_Explicit_Dereference when
610    --    the designated type is an unconstrained packed array and the
611    --    dereference is the prefix of a 'Size attribute reference.
612
613    --  Address_Warning_Posted (Flag18-Sem)
614    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
615    --    posted a warning for the address clause regarding size or alignment
616    --    issues. Used to inhibit multiple redundant messages.
617
618    --  Aggregate_Bounds (Node3-Sem)
619    --    Present in array N_Aggregate nodes. If the bounds of the aggregate are
620    --    known at compile time, this field points to an N_Range node with those
621    --    bounds. Otherwise Empty.
622
623    --  All_Others (Flag11-Sem)
624    --    Present in an N_Others_Choice node. This flag is set for an others
625    --    exception where all exceptions are to be caught, even those that are
626    --    not normally handled (in particular the tasking abort signal). This
627    --    is used for translation of the at end handler into a normal exception
628    --    handler.
629
630    --  Aspect_Rep_Item (Node2-Sem)
631    --    Present in N_Aspect_Specification nodes. Points to the corresponding
632    --    pragma/attribute definition node used to process the aspect.
633
634    --  Assignment_OK (Flag15-Sem)
635    --    This flag is set in a subexpression node for an object, indicating
636    --    that the associated object can be modified, even if this would not
637    --    normally be permissible (either by direct assignment, or by being
638    --    passed as an out or in-out parameter). This is used by the expander
639    --    for a number of purposes, including initialization of constants and
640    --    limited type objects (such as tasks), setting discriminant fields,
641    --    setting tag values, etc. N_Object_Declaration nodes also have this
642    --    flag defined. Here it is used to indicate that an initialization
643    --    expression is valid, even where it would normally not be allowed
644    --    (e.g. where the type involved is limited).
645
646    --  Associated_Node (Node4-Sem)
647    --    Present in nodes that can denote an entity: identifiers, character
648    --    literals, operator symbols, expanded names, operator nodes, and
649    --    attribute reference nodes (all these nodes have an Entity field).
650    --    This field is also present in N_Aggregate, N_Selected_Component, and
651    --    N_Extension_Aggregate nodes. This field is used in generic processing
652    --    to create links between the generic template and the generic copy.
653    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
654    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
655    --    the normal function of Entity is not required at the point where the
656    --    Associated_Node is set. Note also, that in generic templates, this
657    --    means that the Entity field does not necessarily point to an Entity.
658    --    Since the back end is expected to ignore generic templates, this is
659    --    harmless.
660
661    --  Atomic_Sync_Required (Flag14-Sem)
662    --    This flag is set on a node for which atomic synchronization is
663    --    required for the corresponding reference or modification.
664
665    --  At_End_Proc (Node1)
666    --    This field is present in an N_Handled_Sequence_Of_Statements node.
667    --    It contains an identifier reference for the cleanup procedure to be
668    --    called. See description of this node for further details.
669
670    --  Backwards_OK (Flag6-Sem)
671    --    A flag present in the N_Assignment_Statement node. It is used only
672    --    if the type being assigned is an array type, and is set if analysis
673    --    determines that it is definitely safe to do the copy backwards, i.e.
674    --    starting at the highest addressed element. This is the case if either
675    --    the operands do not overlap, or they may overlap, but if they do,
676    --    then the left operand is at a higher address than the right operand.
677    --
678    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
679    --    means that the front end could not determine that either direction is
680    --    definitely safe, and a runtime check may be required if the backend
681    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
682    --    set, it means that the front end can assure no overlap of operands.
683
684    --  Body_To_Inline (Node3-Sem)
685    --    present in subprogram declarations. Denotes analyzed but unexpanded
686    --    body of subprogram, to be used when inlining calls. Present when the
687    --    subprogram has an Inline pragma and inlining is enabled. If the
688    --    declaration is completed by a renaming_as_body, and the renamed en-
689    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
690    --    which is used directly in later calls to the original subprogram.
691
692    --  Body_Required (Flag13-Sem)
693    --    A flag that appears in the N_Compilation_Unit node indicating that
694    --    the corresponding unit requires a body. For the package case, this
695    --    indicates that a completion is required. In Ada 95, if the flag is not
696    --    set for the package case, then a body may not be present. In Ada 83,
697    --    if the flag is not set for the package case, then body is optional.
698    --    For a subprogram declaration, the flag is set except in the case where
699    --    a pragma Import or Interface applies, in which case no body is
700    --    permitted (in Ada 83 or Ada 95).
701
702    --  By_Ref (Flag5-Sem)
703    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
704    --    this flag is set when the returned expression is already allocated on
705    --    the secondary stack and thus the result is passed by reference rather
706    --    than copied another time.
707
708    --  Check_Address_Alignment (Flag11-Sem)
709    --    A flag present in N_Attribute_Definition clause for a 'Address
710    --    attribute definition. This flag is set if a dynamic check should be
711    --    generated at the freeze point for the entity to which this address
712    --    clause applies. The reason that we need this flag is that we want to
713    --    check for range checks being suppressed at the point where the
714    --    attribute definition clause is given, rather than testing this at the
715    --    freeze point.
716
717    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
718    --    Present in N_Simple_Return_Statement nodes. True if this node was
719    --    constructed as part of the N_Extended_Return_Statement expansion.
720
721    --  Compile_Time_Known_Aggregate (Flag18-Sem)
722    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
723    --    evaluated at compile time without raising constraint error. Such
724    --    aggregates can be passed as is the back end without any expansion.
725    --    See Exp_Aggr for specific conditions under which this flag gets set.
726
727    --  Componentwise_Assignment (Flag14-Sem)
728    --    Present in N_Assignment_Statement nodes. Set for a record assignment
729    --    where all that needs doing is to expand it into component-by-component
730    --    assignments. This is used internally for the case of tagged types with
731    --    rep clauses, where we need to avoid recursion (we don't want to try to
732    --    generate a call to the primitive operation, because this is the case
733    --    where we are compiling the primitive operation). Note that when we are
734    --    expanding component assignments in this case, we never assign the _tag
735    --    field, but we recursively assign components of the parent type.
736
737    --  Condition_Actions (List3-Sem)
738    --    This field appears in else-if nodes and in the iteration scheme node
739    --    for while loops. This field is only used during semantic processing to
740    --    temporarily hold actions inserted into the tree. In the tree passed
741    --    to gigi, the condition actions field is always set to No_List. For
742    --    details on how this field is used, see the routine Insert_Actions in
743    --    package Exp_Util, and also the expansion routines for the relevant
744    --    nodes.
745
746    --  Context_Pending (Flag16-Sem)
747    --    This field appears in Compilation_Unit nodes, to indicate that the
748    --    context of the unit is being compiled. Used to detect circularities
749    --    that are not otherwise detected by the loading mechanism. Such
750    --    circularities can occur in the presence of limited and non-limited
751    --    with_clauses that mention the same units.
752
753    --  Controlling_Argument (Node1-Sem)
754    --    This field is set in procedure and function call nodes if the call
755    --    is a dispatching call (it is Empty for a non-dispatching call). It
756    --    indicates the source of the call's controlling tag. For procedure
757    --    calls, the Controlling_Argument is one of the actuals. For function
758    --    that has a dispatching result, it is an entity in the context of the
759    --    call that can provide a tag, or else it is the tag of the root type
760    --    of the class. It can also specify a tag directly rather than being a
761    --    tagged object. The latter is needed by the implementations of AI-239
762    --    and AI-260.
763
764    --  Conversion_OK (Flag14-Sem)
765    --    A flag set on type conversion nodes to indicate that the conversion
766    --    is to be considered as being valid, even though it is the case that
767    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
768    --    Fixed_Value and Integer_Value, for internal conversions done for
769    --    fixed-point operations, and for certain conversions for calls to
770    --    initialization procedures. If Conversion_OK is set, then Etype must be
771    --    set (the analyzer assumes that Etype has been set). For the case of
772    --    fixed-point operands, it also indicates that the conversion is to be
773    --    direct conversion of the underlying integer result, with no regard to
774    --    the small operand.
775
776    --  Convert_To_Return_False (Flag13-Sem)
777    --    Present in N_Raise_Expression nodes that appear in the body of the
778    --    special predicateM function used to test a predicate in the context
779    --    of a membership test, where raise expression results in returning a
780    --    value of False rather than raising an exception.
781
782    --  Corresponding_Aspect (Node3-Sem)
783    --    Present in N_Pragma node. Used to point back to the source aspect from
784    --    the corresponding pragma. This field is Empty for source pragmas.
785
786    --  Corresponding_Body (Node5-Sem)
787    --    This field is set in subprogram declarations, package declarations,
788    --    entry declarations of protected types, and in generic units. It points
789    --    to the defining entity for the corresponding body (NOT the node for
790    --    the body itself).
791
792    --  Corresponding_Formal_Spec (Node3-Sem)
793    --    This field is set in subprogram renaming declarations, where it points
794    --    to the defining entity for a formal subprogram in the case where the
795    --    renaming corresponds to a generic formal subprogram association in an
796    --    instantiation. The field is Empty if the renaming does not correspond
797    --    to such a formal association.
798
799    --  Corresponding_Generic_Association (Node5-Sem)
800    --    This field is defined for object declarations and object renaming
801    --    declarations. It is set for the declarations within an instance that
802    --    map generic formals to their actuals. If set, the field points to
803    --    a generic_association which is the original parent of the expression
804    --    or name appearing in the declaration. This simplifies ASIS queries.
805
806    --  Corresponding_Integer_Value (Uint4-Sem)
807    --    This field is set in real literals of fixed-point types (it is not
808    --    used for floating-point types). It contains the integer value used
809    --    to represent the fixed-point value. It is also set on the universal
810    --    real literals used to represent bounds of fixed-point base types
811    --    and their first named subtypes.
812
813    --  Corresponding_Spec (Node5-Sem)
814    --    This field is set in subprogram, package, task, and protected body
815    --    nodes, where it points to the defining entity in the corresponding
816    --    spec. The attribute is also set in N_With_Clause nodes where it points
817    --    to the defining entity for the with'ed spec, and in a subprogram
818    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
819    --    if there is no corresponding spec, as in the case of a subprogram body
820    --    that serves as its own spec.
821    --
822    --    In Ada 2012, Corresponding_Spec is set on expression functions that
823    --    complete a subprogram declaration.
824
825    --  Corresponding_Spec_Of_Stub (Node2-Sem)
826    --    This field is present in subprogram, package, task and protected body
827    --    stubs where it points to the corresponding spec of the stub. Due to
828    --    clashes in the structure of nodes, we cannot use Corresponding_Spec.
829
830    --  Corresponding_Stub (Node3-Sem)
831    --    This field is present in an N_Subunit node. It holds the node in
832    --    the parent unit that is the stub declaration for the subunit. It is
833    --    set when analysis of the stub forces loading of the proper body. If
834    --    expansion of the proper body creates new declarative nodes, they are
835    --    inserted at the point of the corresponding_stub.
836
837    --  Dcheck_Function (Node5-Sem)
838    --    This field is present in an N_Variant node, It references the entity
839    --    for the discriminant checking function for the variant.
840
841    --  Default_Expression (Node5-Sem)
842    --    This field is Empty if there is no default expression. If there is a
843    --    simple default expression (one with no side effects), then this field
844    --    simply contains a copy of the Expression field (both point to the tree
845    --    for the default expression). Default_Expression is used for
846    --    conformance checking.
847
848    --  Default_Storage_Pool (Node3-Sem)
849    --    This field is present in N_Compilation_Unit_Aux nodes. It is set to a
850    --    copy of Opt.Default_Pool at the end of the compilation unit. See
851    --    package Opt for details. This is used for inheriting the
852    --    Default_Storage_Pool in child units.
853
854    --  Discr_Check_Funcs_Built (Flag11-Sem)
855    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
856    --    discriminant checking functions are constructed. The purpose is to
857    --    avoid attempting to set these functions more than once.
858
859    --  Do_Accessibility_Check (Flag13-Sem)
860    --    This flag is set on N_Parameter_Specification nodes to indicate
861    --    that an accessibility check is required for the parameter. It is
862    --    not yet decided who takes care of this check (TBD ???).
863
864    --  Do_Discriminant_Check (Flag13-Sem)
865    --    This flag is set on N_Selected_Component nodes to indicate that a
866    --    discriminant check is required using the discriminant check routine
867    --    associated with the selector. The actual check is generated by the
868    --    expander when processing selected components. In the case of
869    --    Unchecked_Union, the flag is also set, but no discriminant check
870    --    routine is associated with the selector, and the expander does not
871    --    generate a check.
872
873    --  Do_Division_Check (Flag13-Sem)
874    --    This flag is set on a division operator (/ mod rem) to indicate
875    --    that a zero divide check is required. The actual check is dealt
876    --    with by the backend (all the front end does is to set the flag).
877
878    --  Do_Length_Check (Flag4-Sem)
879    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
880    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
881    --    is required. It is not determined who deals with this flag (???).
882
883    --  Do_Overflow_Check (Flag17-Sem)
884    --    This flag is set on an operator where an overflow check is required on
885    --    the operation. The actual check is dealt with by the backend (all the
886    --    front end does is to set the flag). The other cases where this flag is
887    --    used is on a Type_Conversion node and for attribute reference nodes.
888    --    For a type conversion, it means that the conversion is from one base
889    --    type to another, and the value may not fit in the target base type.
890    --    See also the description of Do_Range_Check for this case. The only
891    --    attribute references which use this flag are Pred and Succ, where it
892    --    means that the result should be checked for going outside the base
893    --    range. Note that this flag is not set for modular types. This flag is
894    --    also set on if and case expression nodes if we are operating in either
895    --    MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
896    --    properly process overflow checking for dependent expressions).
897
898    --  Do_Range_Check (Flag9-Sem)
899    --    This flag is set on an expression which appears in a context where a
900    --    range check is required. The target type is clear from the context.
901    --    The contexts in which this flag can appear are the following:
902
903    --      Right side of an assignment. In this case the target type is
904    --      taken from the left side of the assignment, which is referenced
905    --      by the Name of the N_Assignment_Statement node.
906
907    --      Subscript expressions in an indexed component. In this case the
908    --      target type is determined from the type of the array, which is
909    --      referenced by the Prefix of the N_Indexed_Component node.
910
911    --      Argument expression for a parameter, appearing either directly in
912    --      the Parameter_Associations list of a call or as the Expression of an
913    --      N_Parameter_Association node that appears in this list. In either
914    --      case, the check is against the type of the formal. Note that the
915    --      flag is relevant only in IN and IN OUT parameters, and will be
916    --      ignored for OUT parameters, where no check is required in the call,
917    --      and if a check is required on the return, it is generated explicitly
918    --      with a type conversion.
919
920    --      Initialization expression for the initial value in an object
921    --      declaration. In this case the Do_Range_Check flag is set on
922    --      the initialization expression, and the check is against the
923    --      range of the type of the object being declared.
924
925    --      The expression of a type conversion. In this case the range check is
926    --      against the target type of the conversion. See also the use of
927    --      Do_Overflow_Check on a type conversion. The distinction is that the
928    --      overflow check protects against a value that is outside the range of
929    --      the target base type, whereas a range check checks that the
930    --      resulting value (which is a value of the base type of the target
931    --      type), satisfies the range constraint of the target type.
932
933    --    Note: when a range check is required in contexts other than those
934    --    listed above (e.g. in a return statement), an additional type
935    --    conversion node is introduced to represent the required check.
936
937    --    A special case arises for the arguments of the Pred/Succ attributes.
938    --    Here the range check needed is against First + 1 ..  Last (Pred) or
939    --    First .. Last - 1 (Succ) of the corresponding base type. Essentially
940    --    these checks are what would be performed within the implicit body of
941    --    the functions that correspond to these attributes. In these cases,
942    --    the Do_Range check flag is set on the argument to the attribute
943    --    function, and the back end must special case the appropriate range
944    --    to check against.
945
946    --  Do_Storage_Check (Flag17-Sem)
947    --    This flag is set in an N_Allocator node to indicate that a storage
948    --    check is required for the allocation, or in an N_Subprogram_Body node
949    --    to indicate that a stack check is required in the subprogram prolog.
950    --    The N_Allocator case is handled by the routine that expands the call
951    --    to the runtime routine. The N_Subprogram_Body case is handled by the
952    --    backend, and all the semantics does is set the flag.
953
954    --  Do_Tag_Check (Flag13-Sem)
955    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
956    --    N_Procedure_Call_Statement, N_Type_Conversion,
957    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
958    --    node to indicate that the tag check can be suppressed. It is not
959    --    yet decided how this flag is used (TBD ???).
960
961    --  Elaborate_Present (Flag4-Sem)
962    --    This flag is set in the N_With_Clause node to indicate that pragma
963    --    Elaborate pragma appears for the with'ed units.
964
965    --  Elaborate_All_Desirable (Flag9-Sem)
966    --    This flag is set in the N_With_Clause mode to indicate that the static
967    --    elaboration processing has determined that an Elaborate_All pragma is
968    --    desirable for correct elaboration for this unit.
969
970    --  Elaborate_All_Present (Flag14-Sem)
971    --    This flag is set in the N_With_Clause node to indicate that a
972    --    pragma Elaborate_All pragma appears for the with'ed units.
973
974    --  Elaborate_Desirable (Flag11-Sem)
975    --    This flag is set in the N_With_Clause mode to indicate that the static
976    --    elaboration processing has determined that an Elaborate pragma is
977    --    desirable for correct elaboration for this unit.
978
979    --  Elaboration_Boolean (Node2-Sem)
980    --    This field is present in function and procedure specification nodes.
981    --    If set, it points to the entity for a Boolean flag that must be tested
982    --    for certain calls to check for access before elaboration. See body of
983    --    Sem_Elab for further details. This field is Empty if no elaboration
984    --    boolean is required.
985
986    --  Else_Actions (List3-Sem)
987    --    This field is present in if expression nodes. During code
988    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
989    --    actions at an appropriate place in the tree to get elaborated at the
990    --    right time. For if expressions, we have to be sure that the actions
991    --    for the Else branch are only elaborated if the condition is False.
992    --    The Else_Actions field is used as a temporary parking place for
993    --    these actions. The final tree is always rewritten to eliminate the
994    --    need for this field, so in the tree passed to Gigi, this field is
995    --    always set to No_List.
996
997    --  Enclosing_Variant (Node2-Sem)
998    --    This field is present in the N_Variant node and identifies the Node_Id
999    --    corresponding to the immediately enclosing variant when the variant is
1000    --    nested, and N_Empty otherwise. Set during semantic processing of the
1001    --    variant part of a record type.
1002
1003    --  Entity (Node4-Sem)
1004    --    Appears in all direct names (identifiers, character literals, and
1005    --    operator symbols), as well as expanded names, and attributes that
1006    --    denote entities, such as 'Class. Points to entity for corresponding
1007    --    defining occurrence. Set after name resolution. For identifiers in a
1008    --    WITH list, the corresponding defining occurrence is in a separately
1009    --    compiled file, and Entity must be set by the library Load procedure.
1010    --
1011    --    Note: During name resolution, the value in Entity may be temporarily
1012    --    incorrect (e.g. during overload resolution, Entity is initially set to
1013    --    the first possible correct interpretation, and then later modified if
1014    --    necessary to contain the correct value after resolution).
1015    --
1016    --    Note: This field overlaps Associated_Node, which is used during
1017    --    generic processing (see Sem_Ch12 for details). Note also that in
1018    --    generic templates, this means that the Entity field does not always
1019    --    point to an Entity. Since the back end is expected to ignore generic
1020    --    templates, this is harmless.
1021    --
1022    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
1023    --    It is used only for stream attributes definition clauses. In this
1024    --    case, it denotes a (possibly dummy) subprogram entity that is declared
1025    --    conceptually at the point of the clause. Thus the visibility of the
1026    --    attribute definition clause (in the sense of 8.3(23) as amended by
1027    --    AI-195) can be checked by testing the visibility of that subprogram.
1028    --
1029    --    Note: Normally the Entity field of an identifier points to the entity
1030    --    for the corresponding defining identifier, and hence the Chars field
1031    --    of an identifier will match the Chars field of the entity. However,
1032    --    there is no requirement that these match, and there are obscure cases
1033    --    of generated code where they do not match.
1034
1035    --    Note: Ada 2012 aspect specifications require additional links between
1036    --    identifiers and various attributes. These attributes can be of
1037    --    arbitrary types, and the entity field of identifiers that denote
1038    --    aspects must be used to store arbitrary expressions for later semantic
1039    --    checks. See section on aspect specifications for details.
1040
1041    --  Entity_Or_Associated_Node (Node4-Sem)
1042    --    A synonym for both Entity and Associated_Node. Used by convention in
1043    --    the code when referencing this field in cases where it is not known
1044    --    whether the field contains an Entity or an Associated_Node.
1045
1046    --  Etype (Node5-Sem)
1047    --    Appears in all expression nodes, all direct names, and all entities.
1048    --    Points to the entity for the related type. Set after type resolution.
1049    --    Normally this is the actual subtype of the expression. However, in
1050    --    certain contexts such as the right side of an assignment, subscripts,
1051    --    arguments to calls, returned value in a function, initial value etc.
1052    --    it is the desired target type. In the event that this is different
1053    --    from the actual type, the Do_Range_Check flag will be set if a range
1054    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
1055    --    points to an essentially arbitrary choice from the possible set of
1056    --    types.
1057
1058    --  Exception_Junk (Flag8-Sem)
1059    --    This flag is set in a various nodes appearing in a statement sequence
1060    --    to indicate that the corresponding node is an artifact of the
1061    --    generated code for exception handling, and should be ignored when
1062    --    analyzing the control flow of the relevant sequence of statements
1063    --    (e.g. to check that it does not end with a bad return statement).
1064
1065    --  Exception_Label (Node5-Sem)
1066    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1067    --    to be used for transforming the corresponding exception into a goto,
1068    --    or contains Empty, if this exception is not to be transformed. Also
1069    --    appears in N_Exception_Handler nodes, where, if set, it indicates
1070    --    that there may be a local raise for the handler, so that expansion
1071    --    to allow a goto is required (and this field contains the label for
1072    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1073
1074    --  Expansion_Delayed (Flag11-Sem)
1075    --    Set on aggregates and extension aggregates that need a top-down rather
1076    --    than bottom-up expansion. Typically aggregate expansion happens bottom
1077    --    up. For nested aggregates the expansion is delayed until the enclosing
1078    --    aggregate itself is expanded, e.g. in the context of a declaration. To
1079    --    delay it we set this flag. This is done to avoid creating a temporary
1080    --    for each level of a nested aggregates, and also to prevent the
1081    --    premature generation of constraint checks. This is also a requirement
1082    --    if we want to generate the proper attachment to the internal
1083    --    finalization lists (for record with controlled components). Top down
1084    --    expansion of aggregates is also used for in-place array aggregate
1085    --    assignment or initialization. When the full context is known, the
1086    --    target of the assignment or initialization is used to generate the
1087    --    left-hand side of individual assignment to each sub-component.
1088
1089    --  First_Inlined_Subprogram (Node3-Sem)
1090    --    Present in the N_Compilation_Unit node for the main program. Points
1091    --    to a chain of entities for subprograms that are to be inlined. The
1092    --    Next_Inlined_Subprogram field of these entities is used as a link
1093    --    pointer with Empty marking the end of the list. This field is Empty
1094    --    if there are no inlined subprograms or inlining is not active.
1095
1096    --  First_Named_Actual (Node4-Sem)
1097    --    Present in procedure call statement and function call nodes, and also
1098    --    in Intrinsic nodes. Set during semantic analysis to point to the first
1099    --    named parameter where parameters are ordered by declaration order (as
1100    --    opposed to the actual order in the call which may be different due to
1101    --    named associations). Note: this field points to the explicit actual
1102    --    parameter itself, not the N_Parameter_Association node (its parent).
1103
1104    --  First_Real_Statement (Node2-Sem)
1105    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1106    --    Empty. Used only when declarations are moved into the statement part
1107    --    of a construct as a result of wrapping an AT END handler that is
1108    --    required to cover the declarations. In this case, this field is used
1109    --    to remember the location in the statements list of the first real
1110    --    statement, i.e. the statement that used to be first in the statement
1111    --    list before the declarations were prepended.
1112
1113    --  First_Subtype_Link (Node5-Sem)
1114    --    Present in N_Freeze_Entity node for an anonymous base type that is
1115    --    implicitly created by the declaration of a first subtype. It points
1116    --    to the entity for the first subtype.
1117
1118    --  Float_Truncate (Flag11-Sem)
1119    --    A flag present in type conversion nodes. This is used for float to
1120    --    integer conversions where truncation is required rather than rounding.
1121    --    Note that Gigi does not handle type conversions from real to integer
1122    --    with rounding (see Expand_N_Type_Conversion).
1123
1124    --  Forwards_OK (Flag5-Sem)
1125    --    A flag present in the N_Assignment_Statement node. It is used only
1126    --    if the type being assigned is an array type, and is set if analysis
1127    --    determines that it is definitely safe to do the copy forwards, i.e.
1128    --    starting at the lowest addressed element. This is the case if either
1129    --    the operands do not overlap, or they may overlap, but if they do,
1130    --    then the left operand is at a lower address than the right operand.
1131    --
1132    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1133    --    means that the front end could not determine that either direction is
1134    --    definitely safe, and a runtime check may be required if the backend
1135    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1136    --    set, it means that the front end can assure no overlap of operands.
1137
1138    --  From_Aspect_Specification (Flag13-Sem)
1139    --    Processing of aspect specifications typically results in insertion in
1140    --    the tree of corresponding pragma or attribute definition clause nodes.
1141    --    These generated nodes have the From_Aspect_Specification flag set to
1142    --    indicate that they came from aspect specifications originally.
1143
1144    --  From_At_End (Flag4-Sem)
1145    --    This flag is set on an N_Raise_Statement node if it corresponds to
1146    --    the reraise statement generated as the last statement of an AT END
1147    --    handler when SJLJ exception handling is active. It is used to stop
1148    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1149    --    because if the restriction is set, the reraise is not generated.
1150
1151    --  From_At_Mod (Flag4-Sem)
1152    --    This flag is set on the attribute definition clause node that is
1153    --    generated by a transformation of an at mod phrase in a record
1154    --    representation clause. This is used to give slightly different (Ada 83
1155    --    compatible) semantics to such a clause, namely it is used to specify a
1156    --    minimum acceptable alignment for the base type and all subtypes. In
1157    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1158    --    must be a multiple of the given value, and the representation clause
1159    --    is considered to be type specific instead of subtype specific.
1160
1161    --  From_Default (Flag6-Sem)
1162    --    This flag is set on the subprogram renaming declaration created in an
1163    --    instance for a formal subprogram, when the formal is declared with a
1164    --    box, and there is no explicit actual. If the flag is present, the
1165    --    declaration is treated as an implicit reference to the formal in the
1166    --    ali file.
1167
1168    --  Generic_Parent (Node5-Sem)
1169    --    Generic_Parent is defined on declaration nodes that are instances. The
1170    --    value of Generic_Parent is the generic entity from which the instance
1171    --    is obtained. Generic_Parent is also defined for the renaming
1172    --    declarations and object declarations created for the actuals in an
1173    --    instantiation. The generic parent of such a declaration is the
1174    --    corresponding generic association in the Instantiation node.
1175
1176    --  Generic_Parent_Type (Node4-Sem)
1177    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1178    --    actuals of formal private and derived types. Within the instance, the
1179    --    operations on the actual are those inherited from the parent. For a
1180    --    formal private type, the parent type is the generic type itself. The
1181    --    Generic_Parent_Type is also used in an instance to determine whether a
1182    --    private operation overrides an inherited one.
1183
1184    --  Handler_List_Entry (Node2-Sem)
1185    --    This field is present in N_Object_Declaration nodes. It is set only
1186    --    for the Handler_Record entry generated for an exception in zero cost
1187    --    exception handling mode. It references the corresponding item in the
1188    --    handler list, and is used to delete this entry if the corresponding
1189    --    handler is deleted during optimization. For further details on why
1190    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1191
1192    --  Has_Dereference_Action (Flag13-Sem)
1193    --    This flag is present in N_Explicit_Dereference nodes. It is set to
1194    --    indicate that the expansion has aready produced a call to primitive
1195    --    Dereference of a System.Checked_Pools.Checked_Pool implementation.
1196    --    Such dereference actions are produced for debugging purposes.
1197
1198    --  Has_Dynamic_Length_Check (Flag10-Sem)
1199    --    This flag is present in all expression nodes. It is set to indicate
1200    --    that one of the routines in unit Checks has generated a length check
1201    --    action which has been inserted at the flagged node. This is used to
1202    --    avoid the generation of duplicate checks.
1203
1204    --  Has_Dynamic_Range_Check (Flag12-Sem)
1205    --    This flag is present in N_Subtype_Declaration nodes and on all
1206    --    expression nodes. It is set to indicate that one of the routines in
1207    --    unit Checks has generated a range check action which has been inserted
1208    --    at the flagged node. This is used to avoid the generation of duplicate
1209    --    checks. Why does this occur on N_Subtype_Declaration nodes, what does
1210    --    it mean in that context???
1211
1212    --  Has_Local_Raise (Flag8-Sem)
1213    --    Present in exception handler nodes. Set if the handler can be entered
1214    --    via a local raise that gets transformed to a goto statement. This will
1215    --    always be set if Local_Raise_Statements is non-empty, but can also be
1216    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
1217    --    nodes requiring generation of back end checks.
1218
1219    --  Has_No_Elaboration_Code (Flag17-Sem)
1220    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1221    --    or not elaboration code is present for this unit. It is initially set
1222    --    true for subprogram specs and bodies and for all generic units and
1223    --    false for non-generic package specs and bodies. Gigi may set the flag
1224    --    in the non-generic package case if it determines that no elaboration
1225    --    code is generated. Note that this flag is not related to the
1226    --    Is_Preelaborated status, there can be preelaborated packages that
1227    --    generate elaboration code, and non-preelaborated packages which do
1228    --    not generate elaboration code.
1229
1230    --  Has_Pragma_Suppress_All (Flag14-Sem)
1231    --    This flag is set in an N_Compilation_Unit node if the Suppress_All
1232    --    pragma appears anywhere in the unit. This accommodates the rather
1233    --    strange placement rules of other compilers (DEC permits it at the
1234    --    end of a unit, and Rational allows it as a program unit pragma). We
1235    --    allow it anywhere at all, and consider it equivalent to a pragma
1236    --    Suppress (All_Checks) appearing at the start of the configuration
1237    --    pragmas for the unit.
1238
1239    --  Has_Private_View (Flag11-Sem)
1240    --    A flag present in generic nodes that have an entity, to indicate that
1241    --    the node has a private type. Used to exchange private and full
1242    --    declarations if the visibility at instantiation is different from the
1243    --    visibility at generic definition.
1244
1245    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1246    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1247    --    flag the presence of a pragma Relative_Deadline.
1248
1249    --  Has_Self_Reference (Flag13-Sem)
1250    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1251    --    of the expressions contains an access attribute reference to the
1252    --    enclosing type. Such a self-reference can only appear in default-
1253    --    initialized aggregate for a record type.
1254
1255    --  Has_SP_Choice (Flag15-Sem)
1256    --    Present in all nodes containing a Discrete_Choices field (N_Variant,
1257    --    N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1258    --    True if the Discrete_Choices list has at least one occurrence of a
1259    --    statically predicated subtype.
1260
1261    --  Has_Storage_Size_Pragma (Flag5-Sem)
1262    --    A flag present in an N_Task_Definition node to flag the presence of a
1263    --    Storage_Size pragma.
1264
1265    --  Has_Wide_Character (Flag11-Sem)
1266    --    Present in string literals, set if any wide character (i.e. character
1267    --    code outside the Character range but within Wide_Character range)
1268    --    appears in the string. Used to implement pragma preference rules.
1269
1270    --  Has_Wide_Wide_Character (Flag13-Sem)
1271    --    Present in string literals, set if any wide character (i.e. character
1272    --    code outside the Wide_Character range) appears in the string. Used to
1273    --    implement pragma preference rules.
1274
1275    --  Header_Size_Added (Flag11-Sem)
1276    --    Present in N_Attribute_Reference nodes, set only for attribute
1277    --    Max_Size_In_Storage_Elements. The flag indicates that the size of the
1278    --    hidden list header used by the runtime finalization support has been
1279    --    added to the size of the prefix. The flag also prevents the infinite
1280    --    expansion of the same attribute in the said context.
1281
1282    --  Hidden_By_Use_Clause (Elist4-Sem)
1283    --     An entity list present in use clauses that appear within
1284    --     instantiations. For the resolution of local entities, entities
1285    --     introduced by these use clauses have priority over global ones, and
1286    --     outer entities must be explicitly hidden/restored on exit.
1287
1288    --  Implicit_With (Flag16-Sem)
1289    --    This flag is set in the N_With_Clause node that is implicitly
1290    --    generated for runtime units that are loaded by the expander, and also
1291    --    for package System, if it is loaded implicitly by a use of the
1292    --    'Address or 'Tag attribute. ???There are other implicit with clauses
1293    --    as well.
1294
1295    --  Implicit_With_From_Instantiation (Flag12-Sem)
1296    --     Set in N_With_Clause nodes from generic instantiations.
1297
1298    --  Import_Interface_Present (Flag16-Sem)
1299    --     This flag is set in an Interface or Import pragma if a matching
1300    --     pragma of the other kind is also present. This is used to avoid
1301    --     generating some unwanted error messages.
1302
1303    --  In_Assertion_Expression (Flag4-Sem)
1304    --     This flag is present in N_Function_Call nodes. It is set if the
1305    --     function is called from within an assertion expression. This is
1306    --     used to avoid some bogus warnings about early elaboration.
1307
1308    --  Includes_Infinities (Flag11-Sem)
1309    --    This flag is present in N_Range nodes. It is set for the range of
1310    --    unconstrained float types defined in Standard, which include not only
1311    --    the given range of values, but also legitimately can include infinite
1312    --    values. This flag is false for any float type for which an explicit
1313    --    range is given by the programmer, even if that range is identical to
1314    --    the range for Float.
1315
1316    --  Inherited_Discriminant (Flag13-Sem)
1317    --    This flag is present in N_Component_Association nodes. It indicates
1318    --    that a given component association in an extension aggregate is the
1319    --    value obtained from a constraint on an ancestor. Used to prevent
1320    --    double expansion when the aggregate has expansion delayed.
1321
1322    --  Instance_Spec (Node5-Sem)
1323    --    This field is present in generic instantiation nodes, and also in
1324    --    formal package declaration nodes (formal package declarations are
1325    --    treated in a manner very similar to package instantiations). It points
1326    --    to the node for the spec of the instance, inserted as part of the
1327    --    semantic processing for instantiations in Sem_Ch12.
1328
1329    --  Is_Accessibility_Actual (Flag13-Sem)
1330    --    Present in N_Parameter_Association nodes. True if the parameter is
1331    --    an extra actual that carries the accessibility level of the actual
1332    --    for an access parameter, in a function that dispatches on result and
1333    --    is called in a dispatching context. Used to prevent a formal/actual
1334    --    mismatch when the call is rewritten as a dispatching call.
1335
1336    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1337    --    A flag set in a Block_Statement node to indicate that it is the
1338    --    expansion of an asynchronous entry call. Such a block needs cleanup
1339    --    handler to assure that the call is cancelled.
1340
1341    --  Is_Boolean_Aspect (Flag16-Sem)
1342    --    Present in N_Aspect_Specification node. Set if the aspect is for a
1343    --    boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1344
1345    --  Is_Checked (Flag11-Sem)
1346    --    Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1347    --    assertion aspect or pragma, or check pragma for an assertion, that
1348    --    is to be checked at run time. If either Is_Checked or Is_Ignored
1349    --    is set (they cannot both be set), then this means that the status of
1350    --    the pragma has been checked at the appropriate point and should not
1351    --    be further modified (in some cases these flags are copied when a
1352    --    pragma is rewritten).
1353
1354    --  Is_Component_Left_Opnd  (Flag13-Sem)
1355    --  Is_Component_Right_Opnd (Flag14-Sem)
1356    --    Present in concatenation nodes, to indicate that the corresponding
1357    --    operand is of the component type of the result. Used in resolving
1358    --    concatenation nodes in instances.
1359
1360    --  Is_Delayed_Aspect (Flag14-Sem)
1361    --    Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1362    --    come from aspect specifications, where the evaluation of the aspect
1363    --    must be delayed to the freeze point. This flag is also set True in
1364    --    the corresponding N_Aspect_Specification node.
1365
1366    --  Is_Controlling_Actual (Flag16-Sem)
1367    --    This flag is set on in an expression that is a controlling argument in
1368    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1369    --    details of its use.
1370
1371    --  Is_Disabled (Flag15-Sem)
1372    --    A flag set in an N_Aspect_Specification or N_Pragma node if there was
1373    --    a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1374    --    a Debug_Policy pragma that resulted in totally disabling the flagged
1375    --    aspect or policy as a result of using the GNAT-defined policy DISABLE.
1376    --    If this flag is set, the aspect or policy is not analyzed for semantic
1377    --    correctness, so any expressions etc will not be marked as analyzed.
1378
1379    --  Is_Dynamic_Coextension (Flag18-Sem)
1380    --    Present in allocator nodes, to indicate that this is an allocator
1381    --    for an access discriminant of a dynamically allocated object. The
1382    --    coextension must be deallocated and finalized at the same time as
1383    --    the enclosing object.
1384
1385    --  Is_Entry_Barrier_Function (Flag8-Sem)
1386    --    This flag is set in an N_Subprogram_Body node which is the expansion
1387    --    of an entry barrier from a protected entry body. It is used for the
1388    --    circuitry checking for incorrect use of Current_Task.
1389
1390    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1391    --    This flag is set in an N_Function_Call node to indicate that the extra
1392    --    actuals to support a build-in-place style of call have been added to
1393    --    the call.
1394
1395    --  Is_Finalization_Wrapper (Flag9-Sem);
1396    --    This flag is present in N_Block_Statement nodes. It is set when the
1397    --    block acts as a wrapper of a handled construct which has controlled
1398    --    objects. The wrapper prevents interference between exception handlers
1399    --    and At_End handlers.
1400
1401    --  Is_Ignored (Flag9-Sem)
1402    --    A flag set in an N_Aspect_Specification or N_Pragma node if there was
1403    --    a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1404    --    a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1405    --    OFF, for the pragma/aspect. If there was a Policy pragma specifying
1406    --    a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1407    --    gives a policy for the aspect or pragma, then there are two cases. For
1408    --    an assertion aspect or pragma (one of the assertion kinds allowed in
1409    --    an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1410    --    ignored because of the absence of a -gnata switch. For any other
1411    --    aspects or pragmas, the flag is off. If this flag is set, the
1412    --    aspect/pragma is fully analyzed and checked for other syntactic
1413    --    and semantic errors, but it does not have any semantic effect.
1414
1415    --  Is_In_Discriminant_Check (Flag11-Sem)
1416    --    This flag is present in a selected component, and is used to indicate
1417    --    that the reference occurs within a discriminant check. The
1418    --    significance is that optimizations based on assuming that the
1419    --    discriminant check has a correct value cannot be performed in this
1420    --    case (or the discriminant check may be optimized away!)
1421
1422    --  Is_Machine_Number (Flag11-Sem)
1423    --    This flag is set in an N_Real_Literal node to indicate that the value
1424    --    is a machine number. This avoids some unnecessary cases of converting
1425    --    real literals to machine numbers.
1426
1427    --  Is_Null_Loop (Flag16-Sem)
1428    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1429    --    can be determined to be null at compile time. This is used to remove
1430    --    the loop entirely at expansion time.
1431
1432    --  Is_Overloaded (Flag5-Sem)
1433    --    A flag present in all expression nodes. Used temporarily during
1434    --    overloading determination. The setting of this flag is not relevant
1435    --    once overloading analysis is complete.
1436
1437    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1438    --    A flag present only in N_Op_Expon nodes. It is set when the
1439    --    exponentiation is of the form 2 ** N, where the type of N is an
1440    --    unsigned integral subtype whose size does not exceed the size of
1441    --    Standard_Integer (i.e. a type that can be safely converted to
1442    --    Natural), and the exponentiation appears as the right operand of an
1443    --    integer multiplication or an integer division where the dividend is
1444    --    unsigned. It is also required that overflow checking is off for both
1445    --    the exponentiation and the multiply/divide node. If this set of
1446    --    conditions holds, and the flag is set, then the division or
1447    --    multiplication can be (and is) converted to a shift.
1448
1449    --  Is_Prefixed_Call (Flag17-Sem)
1450    --    This flag is set in a selected component within a generic unit, if
1451    --    it resolves to a prefixed call to a primitive operation. The flag
1452    --    is used to prevent accidental overloadings in an instance, when a
1453    --    primitive operation and a private record component may be homographs.
1454
1455    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1456    --    A flag set in a Subprogram_Body block to indicate that it is the
1457    --    implementation of a protected subprogram. Such a body needs cleanup
1458    --    handler to make sure that the associated protected object is unlocked
1459    --    when the subprogram completes.
1460
1461    --  Is_Static_Coextension (Flag14-Sem)
1462    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1463    --    of an object allocated on the stack rather than the heap.
1464
1465    --  Is_Static_Expression (Flag6-Sem)
1466    --    Indicates that an expression is a static expression (RM 4.9). See spec
1467    --    of package Sem_Eval for full details on the use of this flag.
1468
1469    --  Is_Subprogram_Descriptor (Flag16-Sem)
1470    --    Present in N_Object_Declaration, and set only for the object
1471    --    declaration generated for a subprogram descriptor in fast exception
1472    --    mode. See Exp_Ch11 for details of use.
1473
1474    --  Is_Task_Allocation_Block (Flag6-Sem)
1475    --    A flag set in a Block_Statement node to indicate that it is the
1476    --    expansion of a task allocator, or the allocator of an object
1477    --    containing tasks. Such a block requires a cleanup handler to call
1478    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1479    --    allocated but not activated when the allocator completes abnormally.
1480
1481    --  Is_Task_Master (Flag5-Sem)
1482    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1483    --    indicate that the construct is a task master (i.e. has declared tasks
1484    --    or declares an access to a task type).
1485
1486    --  Itype (Node1-Sem)
1487    --    Used in N_Itype_Reference node to reference an itype for which it is
1488    --    important to ensure that it is defined. See description of this node
1489    --    for further details.
1490
1491    --  Kill_Range_Check (Flag11-Sem)
1492    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1493    --    result should not be subjected to range checks. This is used for the
1494    --    implementation of Normalize_Scalars.
1495
1496    --  Label_Construct (Node2-Sem)
1497    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1498    --    N_Block_Statement or N_Loop_Statement node to which the label
1499    --    declaration applies. This attribute is used both in the compiler and
1500    --    in the implementation of ASIS queries. The field is left empty for the
1501    --    special labels generated as part of expanding raise statements with a
1502    --    local exception handler.
1503
1504    --  Library_Unit (Node4-Sem)
1505    --    In a stub node, Library_Unit points to the compilation unit node of
1506    --    the corresponding subunit.
1507    --
1508    --    In a with clause node, Library_Unit points to the spec of the with'ed
1509    --    unit.
1510    --
1511    --    In a compilation unit node, the usage depends on the unit type:
1512    --
1513    --     For a library unit body, Library_Unit points to the compilation unit
1514    --     node of the corresponding spec, unless it's a subprogram body with
1515    --     Acts_As_Spec set, in which case it points to itself.
1516    --
1517    --     For a spec, Library_Unit points to the compilation unit node of the
1518    --     corresponding body, if present. The body will be present if the spec
1519    --     is or contains generics that we needed to instantiate. Similarly, the
1520    --     body will be present if we needed it for inlining purposes. Thus, if
1521    --     we have a spec/body pair, both of which are present, they point to
1522    --     each other via Library_Unit.
1523    --
1524    --     For a subunit, Library_Unit points to the compilation unit node of
1525    --     the parent body.
1526    --
1527    --    Note that this field is not used to hold the parent pointer for child
1528    --    unit (which might in any case need to use it for some other purpose as
1529    --    described above). Instead for a child unit, implicit with's are
1530    --    generated for all parents.
1531
1532    --  Local_Raise_Statements (Elist1)
1533    --    This field is present in exception handler nodes. It is set to
1534    --    No_Elist in the normal case. If there is at least one raise statement
1535    --    which can potentially be handled as a local raise, then this field
1536    --    points to a list of raise nodes, which are calls to a routine to raise
1537    --    an exception. These are raise nodes which can be optimized into gotos
1538    --    if the handler turns out to meet the conditions which permit this
1539    --    transformation. Note that this does NOT include instances of the
1540    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1541    --    handled by the back end (using the N_Push/N_Pop mechanism).
1542
1543    --  Loop_Actions (List2-Sem)
1544    --    A list present in Component_Association nodes in array aggregates.
1545    --    Used to collect actions that must be executed within the loop because
1546    --    they may need to be evaluated anew each time through.
1547
1548    --  Limited_View_Installed (Flag18-Sem)
1549    --    Present in With_Clauses and in package specifications. If set on
1550    --    with_clause, it indicates that this clause has created the current
1551    --    limited view of the designated package. On a package specification, it
1552    --    indicates that the limited view has already been created because the
1553    --    package is mentioned in a limited_with_clause in the closure of the
1554    --    unit being compiled.
1555
1556    --  Local_Raise_Not_OK (Flag7-Sem)
1557    --    Present in N_Exception_Handler nodes. Set if the handler contains
1558    --    a construct (reraise statement, or call to subprogram in package
1559    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1560    --    for a local raise (one that could otherwise be converted to a goto).
1561
1562    --  Must_Be_Byte_Aligned (Flag14-Sem)
1563    --    This flag is present in N_Attribute_Reference nodes. It can be set
1564    --    only for the Address and Unrestricted_Access attributes. If set it
1565    --    means that the object for which the address/access is given must be on
1566    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1567    --    of the object is to be made before taking the address (this copy is in
1568    --    the current scope on the stack frame). This is used for certain cases
1569    --    of code generated by the expander that passes parameters by address.
1570    --
1571    --    The reason the copy is not made by the front end is that the back end
1572    --    has more information about type layout and may be able to (but is not
1573    --    guaranteed to) prevent making unnecessary copies.
1574
1575    --  Must_Not_Freeze (Flag8-Sem)
1576    --    A flag present in all expression nodes. Normally expressions cause
1577    --    freezing as described in the RM. If this flag is set, then this is
1578    --    inhibited. This is used by the analyzer and expander to label nodes
1579    --    that are created by semantic analysis or expansion and which must not
1580    --    cause freezing even though they normally would. This flag is also
1581    --    present in an N_Subtype_Indication node, since we also use these in
1582    --    calls to Freeze_Expression.
1583
1584    --  Next_Entity (Node2-Sem)
1585    --    Present in defining identifiers, defining character literals and
1586    --    defining operator symbols (i.e. in all entities). The entities of a
1587    --    scope are chained, and this field is used as the forward pointer for
1588    --    this list. See Einfo for further details.
1589
1590    --  Next_Exit_Statement (Node3-Sem)
1591    --    Present in N_Exit_Statement nodes. The exit statements for a loop are
1592    --    chained (in reverse order of appearance) from the First_Exit_Statement
1593    --    field of the E_Loop entity for the loop. Next_Exit_Statement points to
1594    --    the next entry on this chain (Empty = end of list).
1595
1596    --  Next_Implicit_With (Node3-Sem)
1597    --    Present in N_With_Clause. Part of a chain of with_clauses generated
1598    --    in rtsfind to indicate implicit dependencies on predefined units. Used
1599    --    to prevent multiple with_clauses for the same unit in a given context.
1600    --    A postorder traversal of the tree whose nodes are units and whose
1601    --    links are with_clauses defines the order in which CodePeer must
1602    --    examine a compiled unit and its full context. This ordering ensures
1603    --    that any subprogram call is examined after the subprogram declaration
1604    --    has been seen.
1605
1606    --  Next_Named_Actual (Node4-Sem)
1607    --    Present in parameter association nodes. Set during semantic analysis
1608    --    to point to the next named parameter, where parameters are ordered by
1609    --    declaration order (as opposed to the actual order in the call, which
1610    --    may be different due to named associations). Not that this field
1611    --    points to the explicit actual parameter itself, not to the
1612    --    N_Parameter_Association node (its parent).
1613
1614    --  Next_Pragma (Node1-Sem)
1615    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1616    --    nodes. Currently used for two purposes:
1617    --
1618    --      Create a list of linked Check_Policy pragmas. The head of this list
1619    --      is stored in Opt.Check_Policy_List (which has further details).
1620    --
1621    --      Used by processing for Pre/Postcondition pragmas to store a list of
1622    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1623    --      details).
1624    --
1625    --      Used by processing for pragma SPARK_Mode to store multiple pragmas
1626    --      the apply to the same construct. These are visible/private mode for
1627    --      a package spec and declarative/statement mode for package body.
1628
1629    --  Next_Rep_Item (Node5-Sem)
1630    --    Present in pragma nodes, attribute definition nodes, enumeration rep
1631    --    clauses, record rep clauses, aspect specification nodes. Used to link
1632    --    representation items that apply to an entity. See full description of
1633    --    First_Rep_Item field in Einfo for further details.
1634
1635    --  Next_Use_Clause (Node3-Sem)
1636    --    While use clauses are active during semantic processing, they are
1637    --    chained from the scope stack entry, using Next_Use_Clause as a link
1638    --    pointer, with Empty marking the end of the list. The head pointer is
1639    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1640    --    processing (i.e. when Gigi sees the tree, the contents of this field
1641    --    is undefined and should not be read).
1642
1643    --  No_Ctrl_Actions (Flag7-Sem)
1644    --    Present in N_Assignment_Statement to indicate that no finalize nor
1645    --    adjust should take place on this assignment even though the rhs is
1646    --    controlled. This is used in init procs and aggregate expansions where
1647    --    the generated assignments are more initialisations than real
1648    --    assignments.
1649
1650    --  No_Elaboration_Check (Flag14-Sem)
1651    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1652    --    that no elaboration check is needed on the call, because it appears in
1653    --    the context of a local Suppress pragma. This is used on calls within
1654    --    task bodies, where the actual elaboration checks are applied after
1655    --    analysis, when the local scope stack is not present.
1656
1657    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1658    --    Present in N_With_Clause nodes. Set if the with clause is on the
1659    --    package or subprogram spec where the main unit is the corresponding
1660    --    body, and no entities of the with'ed unit are referenced by the spec
1661    --    (an entity may still be referenced in the body, so this flag is used
1662    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1663    --    full details)
1664
1665    --  No_Initialization (Flag13-Sem)
1666    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1667    --    object must not be initialized (by Initialize or call to an init
1668    --    proc). This is needed for controlled aggregates. When the Object
1669    --    declaration has an expression, this flag means that this expression
1670    --    should not be taken into account (needed for in place initialization
1671    --    with aggregates, and for object with an address clause, which are
1672    --    initialized with an assignment at freeze time).
1673
1674    --  No_Minimize_Eliminate (Flag17-Sem)
1675    --    This flag is present in membership operator nodes (N_In/N_Not_In).
1676    --    It is used to indicate that processing for extended overflow checking
1677    --    modes is not required (this is used to prevent infinite recursion).
1678
1679    --  No_Truncation (Flag17-Sem)
1680    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1681    --    only if the RM_Size of the source is greater than the RM_Size of the
1682    --    target for scalar operands. Normally in such a case we truncate some
1683    --    higher order bits of the source, and then sign/zero extend the result
1684    --    to form the output value. But if this flag is set, then we do not do
1685    --    any truncation, so for example, if an 8 bit input is converted to 5
1686    --    bit result which is in fact stored in 8 bits, then the high order
1687    --    three bits of the target result will be copied from the source. This
1688    --    is used for properly setting out of range values for use by pragmas
1689    --    Initialize_Scalars and Normalize_Scalars.
1690
1691    --  Original_Discriminant (Node2-Sem)
1692    --    Present in identifiers. Used in references to discriminants that
1693    --    appear in generic units. Because the names of the discriminants may be
1694    --    different in an instance, we use this field to recover the position of
1695    --    the discriminant in the original type, and replace it with the
1696    --    discriminant at the same position in the instantiated type.
1697
1698    --  Original_Entity (Node2-Sem)
1699    --    Present in numeric literals. Used to denote the named number that has
1700    --    been constant-folded into the given literal. If literal is from
1701    --    source, or the result of some other constant-folding operation, then
1702    --    Original_Entity is empty. This field is needed to handle properly
1703    --    named numbers in generic units, where the Associated_Node field
1704    --    interferes with the Entity field, making it impossible to preserve the
1705    --    original entity at the point of instantiation (ASIS problem).
1706
1707    --  Others_Discrete_Choices (List1-Sem)
1708    --    When a case statement or variant is analyzed, the semantic checks
1709    --    determine the actual list of choices that correspond to an others
1710    --    choice. This list is materialized for later use by the expander and
1711    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1712    --    this materialized list of choices, which is in standard format for a
1713    --    list of discrete choices, except that of course it cannot contain an
1714    --    N_Others_Choice entry.
1715
1716    --  Parameter_List_Truncated (Flag17-Sem)
1717    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1718    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1719    --    a result of a First_Optional_Parameter specification in an
1720    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1721    --    The truncation is done by the expander by removing trailing parameters
1722    --    from the argument list, in accordance with the set of rules allowing
1723    --    such parameter removal. In particular, parameters can be removed
1724    --    working from the end of the parameter list backwards up to and
1725    --    including the entry designated by First_Optional_Parameter in the
1726    --    Import pragma. Parameters can be removed if they are implicit and the
1727    --    default value is a known-at-compile-time value, including the use of
1728    --    the Null_Parameter attribute, or if explicit parameter values are
1729    --    present that match the corresponding defaults.
1730
1731    --  Parent_Spec (Node4-Sem)
1732    --    For a library unit that is a child unit spec (package or subprogram
1733    --    declaration, generic declaration or instantiation, or library level
1734    --    rename, this field points to the compilation unit node for the parent
1735    --    package specification. This field is Empty for library bodies (the
1736    --    parent spec in this case can be found from the corresponding spec).
1737
1738    --  Premature_Use (Node5-Sem)
1739    --    Present in N_Incomplete_Type_Declaration node. Used for improved
1740    --    error diagnostics: if there is a premature usage of an incomplete
1741    --    type, a subsequently generated error message indicates the position
1742    --    of its full declaration.
1743
1744    --  Present_Expr (Uint3-Sem)
1745    --    Present in an N_Variant node. This has a meaningful value only after
1746    --    Gigi has back annotated the tree with representation information. At
1747    --    this point, it contains a reference to a gcc expression that depends
1748    --    on the values of one or more discriminants. Give a set of discriminant
1749    --    values, this expression evaluates to False (zero) if variant is not
1750    --    present, and True (non-zero) if it is present. See unit Repinfo for
1751    --    further details on gigi back annotation. This field is used during
1752    --    ASIS processing (data decomposition annex) to determine if a field is
1753    --    present or not.
1754
1755    --  Print_In_Hex (Flag13-Sem)
1756    --    Set on an N_Integer_Literal node to indicate that the value should be
1757    --    printed in hexadecimal in the sprint listing. Has no effect on
1758    --    legality or semantics of program, only on the displayed output. This
1759    --    is used to clarify output from the packed array cases.
1760
1761    --  Procedure_To_Call (Node2-Sem)
1762    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1763    --    and N_Extended_Return_Statement nodes. References the entity for the
1764    --    declaration of the procedure to be called to accomplish the required
1765    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1766    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1767    --    allocating the return value), and for the Deallocate procedure in the
1768    --    case of N_Free_Statement.
1769
1770    --  Raises_Constraint_Error (Flag7-Sem)
1771    --    Set on an expression whose evaluation will definitely fail constraint
1772    --    error check. In the case of static expressions, this flag must be set
1773    --    accurately (and if it is set, the expression is typically illegal
1774    --    unless it appears as a non-elaborated branch of a short-circuit form).
1775    --    For a non-static expression, this flag may be set whenever an
1776    --    expression (e.g. an aggregate) is known to raise constraint error. If
1777    --    set, the expression definitely will raise CE if elaborated at runtime.
1778    --    If not set, the expression may or may not raise CE. In other words, on
1779    --    static expressions, the flag is set accurately, on non-static
1780    --    expressions it is set conservatively.
1781
1782    --  Redundant_Use (Flag13-Sem)
1783    --    Present in nodes that can appear as an operand in a use clause or use
1784    --    type clause (identifiers, expanded names, attribute references). Set
1785    --    to indicate that a use is redundant (and therefore need not be undone
1786    --    on scope exit).
1787
1788    --  Renaming_Exception (Node2-Sem)
1789    --    Present in N_Exception_Declaration node. Used to point back to the
1790    --    exception renaming for an exception declared within a subprogram.
1791    --    What happens is that an exception declared in a subprogram is moved
1792    --    to the library level with a unique name, and the original exception
1793    --    becomes a renaming. This link from the library level exception to the
1794    --    renaming declaration allows registering of the proper exception name.
1795
1796    --  Return_Statement_Entity (Node5-Sem)
1797    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1798    --    Points to an E_Return_Statement representing the return statement.
1799
1800    --  Return_Object_Declarations (List3)
1801    --    Present in N_Extended_Return_Statement. Points to a list initially
1802    --    containing a single N_Object_Declaration representing the return
1803    --    object. We use a list (instead of just a pointer to the object decl)
1804    --    because Analyze wants to insert extra actions on this list.
1805
1806    --  Rounded_Result (Flag18-Sem)
1807    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1808    --    Used in the fixed-point cases to indicate that the result must be
1809    --    rounded as a result of the use of the 'Round attribute. Also used for
1810    --    integer N_Op_Divide nodes to indicate that the result should be
1811    --    rounded to the nearest integer (breaking ties away from zero), rather
1812    --    than truncated towards zero as usual. These rounded integer operations
1813    --    are the result of expansion of rounded fixed-point divide, conversion
1814    --    and multiplication operations.
1815
1816    --  SCIL_Entity (Node4-Sem)
1817    --    Present in SCIL nodes. Used to reference the tagged type associated
1818    --    with the SCIL node.
1819
1820    --  SCIL_Controlling_Tag (Node5-Sem)
1821    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1822    --    controlling tag of a dispatching call.
1823
1824    --  SCIL_Tag_Value (Node5-Sem)
1825    --    Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1826    --    value that is being tested.
1827
1828    --  SCIL_Target_Prim (Node2-Sem)
1829    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1830    --    type primitive associated with the SCIL node.
1831
1832    --  Scope (Node3-Sem)
1833    --    Present in defining identifiers, defining character literals and
1834    --    defining operator symbols (i.e. in all entities). The entities of a
1835    --    scope all use this field to reference the corresponding scope entity.
1836    --    See Einfo for further details.
1837
1838    --  Shift_Count_OK (Flag4-Sem)
1839    --    A flag present in shift nodes to indicate that the shift count is
1840    --    known to be in range, i.e. is in the range from zero to word length
1841    --    minus one. If this flag is not set, then the shift count may be
1842    --    outside this range, i.e. larger than the word length, and the code
1843    --    must ensure that such shift counts give the appropriate result.
1844
1845    --  Source_Type (Node1-Sem)
1846    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1847    --    source type entity for the unchecked conversion instantiation
1848    --    which gigi must do size validation for.
1849
1850    --  Split_PPC (Flag17)
1851    --    When a Pre or Post aspect specification is processed, it is broken
1852    --    into AND THEN sections. The left most section has Split_PPC set to
1853    --    False, indicating that it is the original specification (e.g. for
1854    --    posting errors). For other sections, Split_PPC is set to True.
1855    --    This flag is set in both the N_Aspect_Specification node itself,
1856    --    and in the pragma which is generated from this node.
1857
1858    --  Storage_Pool (Node1-Sem)
1859    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1860    --    and N_Extended_Return_Statement nodes. References the entity for the
1861    --    storage pool to be used for the allocate or free call or for the
1862    --    allocation of the returned value from function. Empty indicates that
1863    --    the global default pool is to be used. Note that in the case
1864    --    of a return statement, this field is set only if the function returns
1865    --    value of a type whose size is not known at compile time on the
1866    --    secondary stack.
1867
1868    --  Suppress_Assignment_Checks (Flag18-Sem)
1869    --    Used in generated N_Assignment_Statement nodes to suppress predicate
1870    --    and range checks in cases where the generated code knows that the
1871    --    value being assigned is in range and satisfies any predicate. Also
1872    --    can be set in N_Object_Declaration nodes, to similarly suppress any
1873    --    checks on the initializing value.
1874
1875    --  Suppress_Loop_Warnings (Flag17-Sem)
1876    --    Used in N_Loop_Statement node to indicate that warnings within the
1877    --    body of the loop should be suppressed. This is set when the range
1878    --    of a FOR loop is known to be null, or is probably null (loop would
1879    --    only execute if invalid values are present).
1880
1881    --  Target_Type (Node2-Sem)
1882    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1883    --    type entity for the unchecked conversion instantiation which gigi must
1884    --    do size validation for.
1885
1886    --  Then_Actions (List3-Sem)
1887    --    This field is present in if expression nodes. During code expansion
1888    --    we use the Insert_Actions procedure (in Exp_Util) to insert actions
1889    --    at an appropriate place in the tree to get elaborated at the right
1890    --    time. For if expressions, we have to be sure that the actions for
1891    --    for the Then branch are only elaborated if the condition is True.
1892    --    The Then_Actions field is used as a temporary parking place for
1893    --    these actions. The final tree is always rewritten to eliminate the
1894    --    need for this field, so in the tree passed to Gigi, this field is
1895    --    always set to No_List.
1896
1897    --  Treat_Fixed_As_Integer (Flag14-Sem)
1898    --    This flag appears in operator nodes for divide, multiply, mod and rem
1899    --    on fixed-point operands. It indicates that the operands are to be
1900    --    treated as integer values, ignoring small values. This flag is only
1901    --    set as a result of expansion of fixed-point operations. Typically a
1902    --    fixed-point multiplication in the source generates subsidiary
1903    --    multiplication and division operations that work with the underlying
1904    --    integer values and have this flag set. Note that this flag is not
1905    --    needed on other arithmetic operations (add, neg, subtract etc.) since
1906    --    in these cases it is always the case that fixed is treated as integer.
1907    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1908    --    leave such nodes alone, and whoever makes them must set the correct
1909    --    Etype value.
1910
1911    --  TSS_Elist (Elist3-Sem)
1912    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1913    --    entries for each TSS (type support subprogram) associated with the
1914    --    frozen type. The elements of the list are the entities for the
1915    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1916    --    if there are no type support subprograms for the type or if the freeze
1917    --    node is not for a type.
1918
1919    --  Unreferenced_In_Spec (Flag7-Sem)
1920    --    Present in N_With_Clause nodes. Set if the with clause is on the
1921    --    package or subprogram spec where the main unit is the corresponding
1922    --    body, and is not referenced by the spec (it may still be referenced by
1923    --    the body, so this flag is used to generate the proper message (see
1924    --    Sem_Util.Check_Unused_Withs for details)
1925
1926    --  Used_Operations (Elist5-Sem)
1927    --    Present in N_Use_Type_Clause nodes. Holds the list of operations that
1928    --    are made potentially use-visible by the clause. Simplifies processing
1929    --    on exit from the scope of the use_type_clause, in particular in the
1930    --    case of Use_All_Type, when those operations several scopes.
1931
1932    --  Was_Originally_Stub (Flag13-Sem)
1933    --    This flag is set in the node for a proper body that replaces stub.
1934    --    During the analysis procedure, stubs in some situations get rewritten
1935    --    by the corresponding bodies, and we set this flag to remember that
1936    --    this happened. Note that it is not good enough to rely on the use of
1937    --    Original_Node here because of the case of nested instantiations where
1938    --    the substituted node can be copied.
1939
1940    --  Withed_Body (Node1-Sem)
1941    --    Present in N_With_Clause nodes. Set if the unit in whose context
1942    --    the with_clause appears instantiates a generic contained in the
1943    --    library unit of the with_clause and as a result loads its body.
1944    --    Used for a more precise unit traversal for CodePeer.
1945
1946    --------------------------------------------------
1947    -- Note on Use of End_Label and End_Span Fields --
1948    --------------------------------------------------
1949
1950    --  Several constructs have end lines:
1951
1952    --    Loop Statement             end loop [loop_IDENTIFIER];
1953    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1954    --    Task Definition            end [task_IDENTIFIER]
1955    --    Protected Definition       end [protected_IDENTIFIER]
1956    --    Protected Body             end [protected_IDENTIFIER]
1957
1958    --    Block Statement            end [block_IDENTIFIER];
1959    --    Subprogram Body            end [DESIGNATOR];
1960    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1961    --    Task Body                  end [task_IDENTIFIER];
1962    --    Accept Statement           end [entry_IDENTIFIER]];
1963    --    Entry Body                 end [entry_IDENTIFIER];
1964
1965    --    If Statement               end if;
1966    --    Case Statement             end case;
1967
1968    --    Record Definition          end record;
1969    --    Enumeration Definition     );
1970
1971    --  The End_Label and End_Span fields are used to mark the locations of
1972    --  these lines, and also keep track of the label in the case where a label
1973    --  is present.
1974
1975    --  For the first group above, the End_Label field of the corresponding node
1976    --  is used to point to the label identifier. In the case where there is no
1977    --  label in the source, the parser supplies a dummy identifier (with
1978    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1979    --  marks the location of the token following the END token.
1980
1981    --  For the second group, the use of End_Label is similar, but the End_Label
1982    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1983    --  simply because in some cases there is no room in the parent node.
1984
1985    --  For the third group, there is never any label, and instead of using
1986    --  End_Label, we use the End_Span field which gives the location of the
1987    --  token following END, relative to the starting Sloc of the construct,
1988    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1989    --  following the End_Label.
1990
1991    --  The record definition case is handled specially, we treat it as though
1992    --  it required an optional label which is never present, and so the parser
1993    --  always builds a dummy identifier with Comes From Source set False. The
1994    --  reason we do this, rather than using End_Span in this case, is that we
1995    --  want to generate a cross-ref entry for the end of a record, since it
1996    --  represents a scope for name declaration purposes.
1997
1998    --  The enumeration definition case is handled in an exactly similar manner,
1999    --  building a dummy identifier to get a cross-reference.
2000
2001    --  Note: the reason we store the difference as a Uint, instead of storing
2002    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
2003    --  distinguished from other types of values, and we count on all general
2004    --  use fields being self describing. To make things easier for clients,
2005    --  note that we provide function End_Location, and procedure
2006    --  Set_End_Location to allow access to the logical value (which is the
2007    --  Source_Ptr value for the end token).
2008
2009    ---------------------
2010    -- Syntactic Nodes --
2011    ---------------------
2012
2013       ---------------------
2014       -- 2.3  Identifier --
2015       ---------------------
2016
2017       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2018       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2019
2020       --  An IDENTIFIER shall not be a reserved word
2021
2022       --  In the Ada grammar identifiers are the bottom level tokens which have
2023       --  very few semantics. Actual program identifiers are direct names. If
2024       --  we were being 100% honest with the grammar, then we would have a node
2025       --  called N_Direct_Name which would point to an identifier. However,
2026       --  that's too many extra nodes, so we just use the N_Identifier node
2027       --  directly as a direct name, and it contains the expression fields and
2028       --  Entity field that correspond to its use as a direct name. In those
2029       --  few cases where identifiers appear in contexts where they are not
2030       --  direct names (pragmas, pragma argument associations, attribute
2031       --  references and attribute definition clauses), the Chars field of the
2032       --  node contains the Name_Id for the identifier name.
2033
2034       --  Note: in GNAT, a reserved word can be treated as an identifier in two
2035       --  cases. First, an incorrect use of a reserved word as an identifier is
2036       --  diagnosed and then treated as a normal identifier. Second, an
2037       --  attribute designator of the form of a reserved word (access, delta,
2038       --  digits, range) is treated as an identifier.
2039
2040       --  Note: The set of letters that is permitted in an identifier depends
2041       --  on the character set in use. See package Csets for full details.
2042
2043       --  N_Identifier
2044       --  Sloc points to identifier
2045       --  Chars (Name1) contains the Name_Id for the identifier
2046       --  Entity (Node4-Sem)
2047       --  Associated_Node (Node4-Sem)
2048       --  Original_Discriminant (Node2-Sem)
2049       --  Redundant_Use (Flag13-Sem)
2050       --  Atomic_Sync_Required (Flag14-Sem)
2051       --  Has_Private_View (Flag11-Sem) (set in generic units)
2052       --  plus fields for expression
2053
2054       --------------------------
2055       -- 2.4  Numeric Literal --
2056       --------------------------
2057
2058       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2059
2060       ----------------------------
2061       -- 2.4.1  Decimal Literal --
2062       ----------------------------
2063
2064       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2065
2066       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2067
2068       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2069
2070       --  Decimal literals appear in the tree as either integer literal nodes
2071       --  or real literal nodes, depending on whether a period is present.
2072
2073       --  Note: literal nodes appear as a result of direct use of literals
2074       --  in the source program, and also as the result of evaluating
2075       --  expressions at compile time. In the latter case, it is possible
2076       --  to construct real literals that have no syntactic representation
2077       --  using the standard literal format. Such literals are listed by
2078       --  Sprint using the notation [numerator / denominator].
2079
2080       --  Note: the value of an integer literal node created by the front end
2081       --  is never outside the range of values of the base type. However, it
2082       --  can be the case that the created value is outside the range of the
2083       --  particular subtype. This happens in the case of integer overflows
2084       --  with checks suppressed.
2085
2086       --  N_Integer_Literal
2087       --  Sloc points to literal
2088       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2089       --  has been constant-folded into its literal value.
2090       --  Intval (Uint3) contains integer value of literal
2091       --  plus fields for expression
2092       --  Print_In_Hex (Flag13-Sem)
2093
2094       --  N_Real_Literal
2095       --  Sloc points to literal
2096       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2097       --  has been constant-folded into its literal value.
2098       --  Realval (Ureal3) contains real value of literal
2099       --  Corresponding_Integer_Value (Uint4-Sem)
2100       --  Is_Machine_Number (Flag11-Sem)
2101       --  plus fields for expression
2102
2103       --------------------------
2104       -- 2.4.2  Based Literal --
2105       --------------------------
2106
2107       --  BASED_LITERAL ::=
2108       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2109
2110       --  BASE ::= NUMERAL
2111
2112       --  BASED_NUMERAL ::=
2113       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2114
2115       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2116
2117       --  Based literals appear in the tree as either integer literal nodes
2118       --  or real literal nodes, depending on whether a period is present.
2119
2120       ----------------------------
2121       -- 2.5  Character Literal --
2122       ----------------------------
2123
2124       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2125
2126       --  N_Character_Literal
2127       --  Sloc points to literal
2128       --  Chars (Name1) contains the Name_Id for the identifier
2129       --  Char_Literal_Value (Uint2) contains the literal value
2130       --  Entity (Node4-Sem)
2131       --  Associated_Node (Node4-Sem)
2132       --  Has_Private_View (Flag11-Sem) set in generic units.
2133       --  plus fields for expression
2134
2135       --  Note: the Entity field will be missing (set to Empty) for character
2136       --  literals whose type is Standard.Wide_Character or Standard.Character
2137       --  or a type derived from one of these two. In this case the character
2138       --  literal stands for its own coding. The reason we take this irregular
2139       --  short cut is to avoid the need to build lots of junk defining
2140       --  character literal nodes.
2141
2142       -------------------------
2143       -- 2.6  String Literal --
2144       -------------------------
2145
2146       --  STRING LITERAL ::= "{STRING_ELEMENT}"
2147
2148       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
2149       --  single GRAPHIC_CHARACTER other than a quotation mark.
2150       --
2151       --  Is_Folded_In_Parser is True if the parser created this literal by
2152       --  folding a sequence of "&" operators. For example, if the source code
2153       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2154       --  is set. This flag is needed because the parser doesn't know about
2155       --  visibility, so the folded result might be wrong, and semantic
2156       --  analysis needs to check for that.
2157
2158       --  N_String_Literal
2159       --  Sloc points to literal
2160       --  Strval (Str3) contains Id of string value
2161       --  Has_Wide_Character (Flag11-Sem)
2162       --  Has_Wide_Wide_Character (Flag13-Sem)
2163       --  Is_Folded_In_Parser (Flag4)
2164       --  plus fields for expression
2165
2166       ------------------
2167       -- 2.7  Comment --
2168       ------------------
2169
2170       --  A COMMENT starts with two adjacent hyphens and extends up to the
2171       --  end of the line. A COMMENT may appear on any line of a program.
2172
2173       --  Comments are skipped by the scanner and do not appear in the tree.
2174       --  It is possible to reconstruct the position of comments with respect
2175       --  to the elements of the tree by using the source position (Sloc)
2176       --  pointers that appear in every tree node.
2177
2178       -----------------
2179       -- 2.8  Pragma --
2180       -----------------
2181
2182       --  PRAGMA ::= pragma IDENTIFIER
2183       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2184
2185       --  Note that a pragma may appear in the tree anywhere a declaration
2186       --  or a statement may appear, as well as in some other situations
2187       --  which are explicitly documented.
2188
2189       --  N_Pragma
2190       --  Sloc points to PRAGMA
2191       --  Next_Pragma (Node1-Sem)
2192       --  Pragma_Argument_Associations (List2) (set to No_List if none)
2193       --  Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2194       --  Pragma_Identifier (Node4)
2195       --  Next_Rep_Item (Node5-Sem)
2196       --  Class_Present (Flag6) set if from Aspect with 'Class
2197       --  From_Aspect_Specification (Flag13-Sem)
2198       --  Is_Delayed_Aspect (Flag14-Sem)
2199       --  Is_Disabled (Flag15-Sem)
2200       --  Is_Ignored (Flag9-Sem)
2201       --  Is_Checked (Flag11-Sem)
2202       --  Import_Interface_Present (Flag16-Sem)
2203       --  Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2204
2205       --  Note: we should have a section on what pragmas are passed on to
2206       --  the back end to be processed. This section should note that pragma
2207       --  Psect_Object is always converted to Common_Object, but there are
2208       --  undoubtedly many other similar notes required ???
2209
2210       --  Note: a utility function Pragma_Name may be applied to pragma nodes
2211       --  to conveniently obtain the Chars field of the Pragma_Identifier.
2212
2213       --  Note: if From_Aspect_Specification is set, then Sloc points to the
2214       --  aspect name, as does the Pragma_Identifier. In this case if the
2215       --  pragma has a local name argument (such as pragma Inline), it is
2216       --  resolved to point to the specific entity affected by the pragma.
2217
2218       --------------------------------------
2219       -- 2.8  Pragma Argument Association --
2220       --------------------------------------
2221
2222       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2223       --    [pragma_argument_IDENTIFIER =>] NAME
2224       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
2225
2226       --  In Ada 2012, there are two more possibilities:
2227
2228       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2229       --    [pragma_argument_ASPECT_MARK =>] NAME
2230       --  | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2231
2232       --  where the interesting allowed cases (which do not fit the syntax of
2233       --  the first alternative above) are
2234
2235       --  ASPECT_MARK => Pre'Class |
2236       --                 Post'Class |
2237       --                 Type_Invariant'Class |
2238       --                 Invariant'Class
2239
2240       --  We allow this special usage in all Ada modes, but it would be a
2241       --  pain to allow these aspects to pervade the pragma syntax, and the
2242       --  representation of pragma nodes internally. So what we do is to
2243       --  replace these ASPECT_MARK forms with identifiers whose name is one
2244       --  of the special internal names _Pre, _Post or _Type_Invariant.
2245
2246       --  We do a similar replacement of these Aspect_Mark forms in the
2247       --  Expression of a pragma argument association for the cases of
2248       --  the first arguments of any Check pragmas and Check_Policy pragmas
2249
2250       --  N_Pragma_Argument_Association
2251       --  Sloc points to first token in association
2252       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
2253       --  Expression (Node3)
2254
2255       ------------------------
2256       -- 2.9  Reserved Word --
2257       ------------------------
2258
2259       --  Reserved words are parsed by the scanner, and returned as the
2260       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2261
2262       ----------------------------
2263       -- 3.1  Basic Declaration --
2264       ----------------------------
2265
2266       --  BASIC_DECLARATION ::=
2267       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
2268       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
2269       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
2270       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
2271       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
2272       --  | GENERIC_INSTANTIATION
2273
2274       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2275       --  see further description in section on semantic nodes.
2276
2277       --  Also, in the tree that is constructed, a pragma may appear
2278       --  anywhere that a declaration may appear.
2279
2280       ------------------------------
2281       -- 3.1  Defining Identifier --
2282       ------------------------------
2283
2284       --  DEFINING_IDENTIFIER ::= IDENTIFIER
2285
2286       --  A defining identifier is an entity, which has additional fields
2287       --  depending on the setting of the Ekind field. These additional
2288       --  fields are defined (and access subprograms declared) in package
2289       --  Einfo.
2290
2291       --  Note: N_Defining_Identifier is an extended node whose fields are
2292       --  deliberate layed out to match the layout of fields in an ordinary
2293       --  N_Identifier node allowing for easy alteration of an identifier
2294       --  node into a defining identifier node. For details, see procedure
2295       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2296
2297       --  N_Defining_Identifier
2298       --  Sloc points to identifier
2299       --  Chars (Name1) contains the Name_Id for the identifier
2300       --  Next_Entity (Node2-Sem)
2301       --  Scope (Node3-Sem)
2302       --  Etype (Node5-Sem)
2303
2304       -----------------------------
2305       -- 3.2.1  Type Declaration --
2306       -----------------------------
2307
2308       --  TYPE_DECLARATION ::=
2309       --    FULL_TYPE_DECLARATION
2310       --  | INCOMPLETE_TYPE_DECLARATION
2311       --  | PRIVATE_TYPE_DECLARATION
2312       --  | PRIVATE_EXTENSION_DECLARATION
2313
2314       ----------------------------------
2315       -- 3.2.1  Full Type Declaration --
2316       ----------------------------------
2317
2318       --  FULL_TYPE_DECLARATION ::=
2319       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2320       --      is TYPE_DEFINITION
2321       --        [ASPECT_SPECIFICATIONS];
2322       --  | TASK_TYPE_DECLARATION
2323       --  | PROTECTED_TYPE_DECLARATION
2324
2325       --  The full type declaration node is used only for the first case. The
2326       --  second case (concurrent type declaration), is represented directly
2327       --  by a task type declaration or a protected type declaration.
2328
2329       --  N_Full_Type_Declaration
2330       --  Sloc points to TYPE
2331       --  Defining_Identifier (Node1)
2332       --  Discriminant_Specifications (List4) (set to No_List if none)
2333       --  Type_Definition (Node3)
2334       --  Discr_Check_Funcs_Built (Flag11-Sem)
2335
2336       ----------------------------
2337       -- 3.2.1  Type Definition --
2338       ----------------------------
2339
2340       --  TYPE_DEFINITION ::=
2341       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2342       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2343       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2344       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2345
2346       --------------------------------
2347       -- 3.2.2  Subtype Declaration --
2348       --------------------------------
2349
2350       --  SUBTYPE_DECLARATION ::=
2351       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2352       --      [ASPECT_SPECIFICATIONS];
2353
2354       --  The subtype indication field is set to Empty for subtypes
2355       --  declared in package Standard (Positive, Natural).
2356
2357       --  N_Subtype_Declaration
2358       --  Sloc points to SUBTYPE
2359       --  Defining_Identifier (Node1)
2360       --  Null_Exclusion_Present (Flag11)
2361       --  Subtype_Indication (Node5)
2362       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2363       --  Exception_Junk (Flag8-Sem)
2364       --  Has_Dynamic_Range_Check (Flag12-Sem)
2365
2366       -------------------------------
2367       -- 3.2.2  Subtype Indication --
2368       -------------------------------
2369
2370       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2371
2372       --  Note: if no constraint is present, the subtype indication appears
2373       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2374       --  node is used only if a constraint is present.
2375
2376       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2377       --  with the null-exclusion part (see AI-231), we had to introduce a new
2378       --  attribute in all the parents of subtype_indication nodes to indicate
2379       --  if the null-exclusion is present.
2380
2381       --  Note: the reason that this node has expression fields is that a
2382       --  subtype indication can appear as an operand of a membership test.
2383
2384       --  N_Subtype_Indication
2385       --  Sloc points to first token of subtype mark
2386       --  Subtype_Mark (Node4)
2387       --  Constraint (Node3)
2388       --  Etype (Node5-Sem)
2389       --  Must_Not_Freeze (Flag8-Sem)
2390
2391       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2392       --  reason for this redundancy is so that in a list of array index types,
2393       --  the Etype can be uniformly accessed to determine the subscript type.
2394       --  This means that no Itype is constructed for the actual subtype that
2395       --  is created by the subtype indication. If such an Itype is required,
2396       --  it is constructed in the context in which the indication appears.
2397
2398       -------------------------
2399       -- 3.2.2  Subtype Mark --
2400       -------------------------
2401
2402       --  SUBTYPE_MARK ::= subtype_NAME
2403
2404       -----------------------
2405       -- 3.2.2  Constraint --
2406       -----------------------
2407
2408       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2409
2410       ------------------------------
2411       -- 3.2.2  Scalar Constraint --
2412       ------------------------------
2413
2414       --  SCALAR_CONSTRAINT ::=
2415       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2416
2417       ---------------------------------
2418       -- 3.2.2  Composite Constraint --
2419       ---------------------------------
2420
2421       --  COMPOSITE_CONSTRAINT ::=
2422       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2423
2424       -------------------------------
2425       -- 3.3.1  Object Declaration --
2426       -------------------------------
2427
2428       --  OBJECT_DECLARATION ::=
2429       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2430       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2431       --        [ASPECT_SPECIFICATIONS];
2432       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2433       --      ACCESS_DEFINITION [:= EXPRESSION]
2434       --        [ASPECT_SPECIFICATIONS];
2435       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2436       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2437       --        [ASPECT_SPECIFICATIONS];
2438       --  | SINGLE_TASK_DECLARATION
2439       --  | SINGLE_PROTECTED_DECLARATION
2440
2441       --  Note: aliased is not permitted in Ada 83 mode
2442
2443       --  The N_Object_Declaration node is only for the first two cases.
2444       --  Single task declaration is handled by P_Task (9.1)
2445       --  Single protected declaration is handled by P_protected (9.5)
2446
2447       --  Although the syntax allows multiple identifiers in the list, the
2448       --  semantics is as though successive declarations were given with
2449       --  identical type definition and expression components. To simplify
2450       --  semantic processing, the parser represents a multiple declaration
2451       --  case as a sequence of single declarations, using the More_Ids and
2452       --  Prev_Ids flags to preserve the original source form as described
2453       --  in the section on "Handling of Defining Identifier Lists".
2454
2455       --  The flag Has_Init_Expression is set if an initializing expression
2456       --  is present. Normally it is set if and only if Expression contains
2457       --  a non-empty value, but there is an exception to this. When the
2458       --  initializing expression is an aggregate which requires explicit
2459       --  assignments, the Expression field gets set to Empty, but this flag
2460       --  is still set, so we don't forget we had an initializing expression.
2461
2462       --  Note: if a range check is required for the initialization
2463       --  expression then the Do_Range_Check flag is set in the Expression,
2464       --  with the check being done against the type given by the object
2465       --  definition, which is also the Etype of the defining identifier.
2466
2467       --  Note: the contents of the Expression field must be ignored (i.e.
2468       --  treated as though it were Empty) if No_Initialization is set True.
2469
2470       --  Note: the back end places some restrictions on the form of the
2471       --  Expression field. If the object being declared is Atomic, then
2472       --  the Expression may not have the form of an aggregate (since this
2473       --  might cause the back end to generate separate assignments). In this
2474       --  case the front end must generate an extra temporary and initialize
2475       --  this temporary as required (the temporary itself is not atomic).
2476
2477       --  Note: there is not node kind for object definition. Instead, the
2478       --  corresponding field holds a subtype indication, an array type
2479       --  definition, or (Ada 2005, AI-406) an access definition.
2480
2481       --  N_Object_Declaration
2482       --  Sloc points to first identifier
2483       --  Defining_Identifier (Node1)
2484       --  Aliased_Present (Flag4)
2485       --  Constant_Present (Flag17) set if CONSTANT appears
2486       --  Null_Exclusion_Present (Flag11)
2487       --  Object_Definition (Node4) subtype indic./array type def./access def.
2488       --  Expression (Node3) (set to Empty if not present)
2489       --  Handler_List_Entry (Node2-Sem)
2490       --  Corresponding_Generic_Association (Node5-Sem)
2491       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2492       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2493       --  No_Initialization (Flag13-Sem)
2494       --  Assignment_OK (Flag15-Sem)
2495       --  Exception_Junk (Flag8-Sem)
2496       --  Is_Subprogram_Descriptor (Flag16-Sem)
2497       --  Has_Init_Expression (Flag14)
2498       --  Suppress_Assignment_Checks (Flag18-Sem)
2499
2500       -------------------------------------
2501       -- 3.3.1  Defining Identifier List --
2502       -------------------------------------
2503
2504       --  DEFINING_IDENTIFIER_LIST ::=
2505       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2506
2507       -------------------------------
2508       -- 3.3.2  Number Declaration --
2509       -------------------------------
2510
2511       --  NUMBER_DECLARATION ::=
2512       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2513
2514       --  Although the syntax allows multiple identifiers in the list, the
2515       --  semantics is as though successive declarations were given with
2516       --  identical expressions. To simplify semantic processing, the parser
2517       --  represents a multiple declaration case as a sequence of single
2518       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2519       --  the original source form as described in the section on "Handling
2520       --  of Defining Identifier Lists".
2521
2522       --  N_Number_Declaration
2523       --  Sloc points to first identifier
2524       --  Defining_Identifier (Node1)
2525       --  Expression (Node3)
2526       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2527       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2528
2529       ----------------------------------
2530       -- 3.4  Derived Type Definition --
2531       ----------------------------------
2532
2533       --  DERIVED_TYPE_DEFINITION ::=
2534       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2535       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2536
2537       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2538       --  in Ada 83 mode
2539
2540       --  Note: a record extension part is required if ABSTRACT is present
2541
2542       --  N_Derived_Type_Definition
2543       --  Sloc points to NEW
2544       --  Abstract_Present (Flag4)
2545       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2546       --  Subtype_Indication (Node5)
2547       --  Record_Extension_Part (Node3) (set to Empty if not present)
2548       --  Limited_Present (Flag17)
2549       --  Task_Present (Flag5) set in task interfaces
2550       --  Protected_Present (Flag6) set in protected interfaces
2551       --  Synchronized_Present (Flag7) set in interfaces
2552       --  Interface_List (List2) (set to No_List if none)
2553       --  Interface_Present (Flag16) set in abstract interfaces
2554
2555       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2556       --        Interface_List, and Interface_Present are used for abstract
2557       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2558
2559       ---------------------------
2560       -- 3.5  Range Constraint --
2561       ---------------------------
2562
2563       --  RANGE_CONSTRAINT ::= range RANGE
2564
2565       --  N_Range_Constraint
2566       --  Sloc points to RANGE
2567       --  Range_Expression (Node4)
2568
2569       ----------------
2570       -- 3.5  Range --
2571       ----------------
2572
2573       --  RANGE ::=
2574       --    RANGE_ATTRIBUTE_REFERENCE
2575       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2576
2577       --  Note: the case of a range given as a range attribute reference
2578       --  appears directly in the tree as an attribute reference.
2579
2580       --  Note: the field name for a reference to a range is Range_Expression
2581       --  rather than Range, because range is a reserved keyword in Ada!
2582
2583       --  Note: the reason that this node has expression fields is that a
2584       --  range can appear as an operand of a membership test. The Etype
2585       --  field is the type of the range (we do NOT construct an implicit
2586       --  subtype to represent the range exactly).
2587
2588       --  N_Range
2589       --  Sloc points to ..
2590       --  Low_Bound (Node1)
2591       --  High_Bound (Node2)
2592       --  Includes_Infinities (Flag11)
2593       --  plus fields for expression
2594
2595       --  Note: if the range appears in a context, such as a subtype
2596       --  declaration, where range checks are required on one or both of
2597       --  the expression fields, then type conversion nodes are inserted
2598       --  to represent the required checks.
2599
2600       ----------------------------------------
2601       -- 3.5.1  Enumeration Type Definition --
2602       ----------------------------------------
2603
2604       --  ENUMERATION_TYPE_DEFINITION ::=
2605       --    (ENUMERATION_LITERAL_SPECIFICATION
2606       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2607
2608       --  Note: the Literals field in the node described below is null for
2609       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2610       --  which special processing handles these types as special cases.
2611
2612       --  N_Enumeration_Type_Definition
2613       --  Sloc points to left parenthesis
2614       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2615       --  End_Label (Node4) (set to Empty if internally generated record)
2616
2617       ----------------------------------------------
2618       -- 3.5.1  Enumeration Literal Specification --
2619       ----------------------------------------------
2620
2621       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2622       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2623
2624       ---------------------------------------
2625       -- 3.5.1  Defining Character Literal --
2626       ---------------------------------------
2627
2628       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2629
2630       --  A defining character literal is an entity, which has additional
2631       --  fields depending on the setting of the Ekind field. These
2632       --  additional fields are defined (and access subprograms declared)
2633       --  in package Einfo.
2634
2635       --  Note: N_Defining_Character_Literal is an extended node whose fields
2636       --  are deliberate layed out to match the layout of fields in an ordinary
2637       --  N_Character_Literal node allowing for easy alteration of a character
2638       --  literal node into a defining character literal node. For details, see
2639       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2640
2641       --  N_Defining_Character_Literal
2642       --  Sloc points to literal
2643       --  Chars (Name1) contains the Name_Id for the identifier
2644       --  Next_Entity (Node2-Sem)
2645       --  Scope (Node3-Sem)
2646       --  Etype (Node5-Sem)
2647
2648       ------------------------------------
2649       -- 3.5.4  Integer Type Definition --
2650       ------------------------------------
2651
2652       --  Note: there is an error in this rule in the latest version of the
2653       --  grammar, so we have retained the old rule pending clarification.
2654
2655       --  INTEGER_TYPE_DEFINITION ::=
2656       --    SIGNED_INTEGER_TYPE_DEFINITION
2657       --  | MODULAR_TYPE_DEFINITION
2658
2659       -------------------------------------------
2660       -- 3.5.4  Signed Integer Type Definition --
2661       -------------------------------------------
2662
2663       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2664       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2665
2666       --  Note: the Low_Bound and High_Bound fields are set to Empty
2667       --  for integer types defined in package Standard.
2668
2669       --  N_Signed_Integer_Type_Definition
2670       --  Sloc points to RANGE
2671       --  Low_Bound (Node1)
2672       --  High_Bound (Node2)
2673
2674       ------------------------------------
2675       -- 3.5.4  Modular Type Definition --
2676       ------------------------------------
2677
2678       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2679
2680       --  N_Modular_Type_Definition
2681       --  Sloc points to MOD
2682       --  Expression (Node3)
2683
2684       ---------------------------------
2685       -- 3.5.6  Real Type Definition --
2686       ---------------------------------
2687
2688       --  REAL_TYPE_DEFINITION ::=
2689       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2690
2691       --------------------------------------
2692       -- 3.5.7  Floating Point Definition --
2693       --------------------------------------
2694
2695       --  FLOATING_POINT_DEFINITION ::=
2696       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2697
2698       --  Note: The Digits_Expression and Real_Range_Specifications fields
2699       --  are set to Empty for floating-point types declared in Standard.
2700
2701       --  N_Floating_Point_Definition
2702       --  Sloc points to DIGITS
2703       --  Digits_Expression (Node2)
2704       --  Real_Range_Specification (Node4) (set to Empty if not present)
2705
2706       -------------------------------------
2707       -- 3.5.7  Real Range Specification --
2708       -------------------------------------
2709
2710       --  REAL_RANGE_SPECIFICATION ::=
2711       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2712
2713       --  N_Real_Range_Specification
2714       --  Sloc points to RANGE
2715       --  Low_Bound (Node1)
2716       --  High_Bound (Node2)
2717
2718       -----------------------------------
2719       -- 3.5.9  Fixed Point Definition --
2720       -----------------------------------
2721
2722       --  FIXED_POINT_DEFINITION ::=
2723       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2724
2725       --------------------------------------------
2726       -- 3.5.9  Ordinary Fixed Point Definition --
2727       --------------------------------------------
2728
2729       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2730       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2731
2732       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2733
2734       --  N_Ordinary_Fixed_Point_Definition
2735       --  Sloc points to DELTA
2736       --  Delta_Expression (Node3)
2737       --  Real_Range_Specification (Node4)
2738
2739       -------------------------------------------
2740       -- 3.5.9  Decimal Fixed Point Definition --
2741       -------------------------------------------
2742
2743       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2744       --    delta static_EXPRESSION
2745       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2746
2747       --  Note: decimal types are not permitted in Ada 83 mode
2748
2749       --  N_Decimal_Fixed_Point_Definition
2750       --  Sloc points to DELTA
2751       --  Delta_Expression (Node3)
2752       --  Digits_Expression (Node2)
2753       --  Real_Range_Specification (Node4) (set to Empty if not present)
2754
2755       ------------------------------
2756       -- 3.5.9  Digits Constraint --
2757       ------------------------------
2758
2759       --  DIGITS_CONSTRAINT ::=
2760       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2761
2762       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2763       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2764
2765       --  N_Digits_Constraint
2766       --  Sloc points to DIGITS
2767       --  Digits_Expression (Node2)
2768       --  Range_Constraint (Node4) (set to Empty if not present)
2769
2770       --------------------------------
2771       -- 3.6  Array Type Definition --
2772       --------------------------------
2773
2774       --  ARRAY_TYPE_DEFINITION ::=
2775       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2776
2777       -----------------------------------------
2778       -- 3.6  Unconstrained Array Definition --
2779       -----------------------------------------
2780
2781       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2782       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2783       --      COMPONENT_DEFINITION
2784
2785       --  Note: dimensionality of array is indicated by number of entries in
2786       --  the Subtype_Marks list, which has one entry for each dimension.
2787
2788       --  N_Unconstrained_Array_Definition
2789       --  Sloc points to ARRAY
2790       --  Subtype_Marks (List2)
2791       --  Component_Definition (Node4)
2792
2793       -----------------------------------
2794       -- 3.6  Index Subtype Definition --
2795       -----------------------------------
2796
2797       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2798
2799       --  There is no explicit node in the tree for an index subtype
2800       --  definition since the N_Unconstrained_Array_Definition node
2801       --  incorporates the type marks which appear in this context.
2802
2803       ---------------------------------------
2804       -- 3.6  Constrained Array Definition --
2805       ---------------------------------------
2806
2807       --  CONSTRAINED_ARRAY_DEFINITION ::=
2808       --    array (DISCRETE_SUBTYPE_DEFINITION
2809       --      {, DISCRETE_SUBTYPE_DEFINITION})
2810       --        of COMPONENT_DEFINITION
2811
2812       --  Note: dimensionality of array is indicated by number of entries
2813       --  in the Discrete_Subtype_Definitions list, which has one entry
2814       --  for each dimension.
2815
2816       --  N_Constrained_Array_Definition
2817       --  Sloc points to ARRAY
2818       --  Discrete_Subtype_Definitions (List2)
2819       --  Component_Definition (Node4)
2820
2821       --------------------------------------
2822       -- 3.6  Discrete Subtype Definition --
2823       --------------------------------------
2824
2825       --  DISCRETE_SUBTYPE_DEFINITION ::=
2826       --    discrete_SUBTYPE_INDICATION | RANGE
2827
2828       -------------------------------
2829       -- 3.6  Component Definition --
2830       -------------------------------
2831
2832       --  COMPONENT_DEFINITION ::=
2833       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2834
2835       --  Note: although the syntax does not permit a component definition to
2836       --  be an anonymous array (and the parser will diagnose such an attempt
2837       --  with an appropriate message), it is possible for anonymous arrays
2838       --  to appear as component definitions. The semantics and back end handle
2839       --  this case properly, and the expander in fact generates such cases.
2840       --  Access_Definition is an optional field that gives support to
2841       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2842       --  Subtype_Indication field or else the Access_Definition field.
2843
2844       --  N_Component_Definition
2845       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2846       --  Aliased_Present (Flag4)
2847       --  Null_Exclusion_Present (Flag11)
2848       --  Subtype_Indication (Node5) (set to Empty if not present)
2849       --  Access_Definition (Node3) (set to Empty if not present)
2850
2851       -----------------------------
2852       -- 3.6.1  Index Constraint --
2853       -----------------------------
2854
2855       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2856
2857       --  It is not in general possible to distinguish between discriminant
2858       --  constraints and index constraints at parse time, since a simple
2859       --  name could be either the subtype mark of a discrete range, or an
2860       --  expression in a discriminant association with no name. Either
2861       --  entry appears simply as the name, and the semantic parse must
2862       --  distinguish between the two cases. Thus we use a common tree
2863       --  node format for both of these constraint types.
2864
2865       --  See Discriminant_Constraint for format of node
2866
2867       ---------------------------
2868       -- 3.6.1  Discrete Range --
2869       ---------------------------
2870
2871       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2872
2873       ----------------------------
2874       -- 3.7  Discriminant Part --
2875       ----------------------------
2876
2877       --  DISCRIMINANT_PART ::=
2878       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2879
2880       ------------------------------------
2881       -- 3.7  Unknown Discriminant Part --
2882       ------------------------------------
2883
2884       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2885
2886       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2887
2888       --  There is no explicit node in the tree for an unknown discriminant
2889       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2890       --  parent node.
2891
2892       ----------------------------------
2893       -- 3.7  Known Discriminant Part --
2894       ----------------------------------
2895
2896       --  KNOWN_DISCRIMINANT_PART ::=
2897       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2898
2899       -------------------------------------
2900       -- 3.7  Discriminant Specification --
2901       -------------------------------------
2902
2903       --  DISCRIMINANT_SPECIFICATION ::=
2904       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2905       --      [:= DEFAULT_EXPRESSION]
2906       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2907       --      [:= DEFAULT_EXPRESSION]
2908
2909       --  Although the syntax allows multiple identifiers in the list, the
2910       --  semantics is as though successive specifications were given with
2911       --  identical type definition and expression components. To simplify
2912       --  semantic processing, the parser represents a multiple declaration
2913       --  case as a sequence of single specifications, using the More_Ids and
2914       --  Prev_Ids flags to preserve the original source form as described
2915       --  in the section on "Handling of Defining Identifier Lists".
2916
2917       --  N_Discriminant_Specification
2918       --  Sloc points to first identifier
2919       --  Defining_Identifier (Node1)
2920       --  Null_Exclusion_Present (Flag11)
2921       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2922       --  Expression (Node3) (set to Empty if no default expression)
2923       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2924       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2925
2926       -----------------------------
2927       -- 3.7  Default Expression --
2928       -----------------------------
2929
2930       --  DEFAULT_EXPRESSION ::= EXPRESSION
2931
2932       ------------------------------------
2933       -- 3.7.1  Discriminant Constraint --
2934       ------------------------------------
2935
2936       --  DISCRIMINANT_CONSTRAINT ::=
2937       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2938
2939       --  It is not in general possible to distinguish between discriminant
2940       --  constraints and index constraints at parse time, since a simple
2941       --  name could be either the subtype mark of a discrete range, or an
2942       --  expression in a discriminant association with no name. Either
2943       --  entry appears simply as the name, and the semantic parse must
2944       --  distinguish between the two cases. Thus we use a common tree
2945       --  node format for both of these constraint types.
2946
2947       --  N_Index_Or_Discriminant_Constraint
2948       --  Sloc points to left paren
2949       --  Constraints (List1) points to list of discrete ranges or
2950       --    discriminant associations
2951
2952       -------------------------------------
2953       -- 3.7.1  Discriminant Association --
2954       -------------------------------------
2955
2956       --  DISCRIMINANT_ASSOCIATION ::=
2957       --    [discriminant_SELECTOR_NAME
2958       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2959
2960       --  Note: a discriminant association that has no selector name list
2961       --  appears directly as an expression in the tree.
2962
2963       --  N_Discriminant_Association
2964       --  Sloc points to first token of discriminant association
2965       --  Selector_Names (List1) (always non-empty, since if no selector
2966       --   names are present, this node is not used, see comment above)
2967       --  Expression (Node3)
2968
2969       ---------------------------------
2970       -- 3.8  Record Type Definition --
2971       ---------------------------------
2972
2973       --  RECORD_TYPE_DEFINITION ::=
2974       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2975
2976       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2977
2978       --  There is no explicit node in the tree for a record type definition.
2979       --  Instead the flags for Tagged_Present and Limited_Present appear in
2980       --  the N_Record_Definition node for a record definition appearing in
2981       --  the context of a record type definition.
2982
2983       ----------------------------
2984       -- 3.8  Record Definition --
2985       ----------------------------
2986
2987       --  RECORD_DEFINITION ::=
2988       --    record
2989       --      COMPONENT_LIST
2990       --    end record
2991       --  | null record
2992
2993       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2994       --  flags appear only for a record definition appearing in a record
2995       --  type definition.
2996
2997       --  Note: the NULL RECORD case is not permitted in Ada 83
2998
2999       --  N_Record_Definition
3000       --  Sloc points to RECORD or NULL
3001       --  End_Label (Node4) (set to Empty if internally generated record)
3002       --  Abstract_Present (Flag4)
3003       --  Tagged_Present (Flag15)
3004       --  Limited_Present (Flag17)
3005       --  Component_List (Node1) empty in null record case
3006       --  Null_Present (Flag13) set in null record case
3007       --  Task_Present (Flag5) set in task interfaces
3008       --  Protected_Present (Flag6) set in protected interfaces
3009       --  Synchronized_Present (Flag7) set in interfaces
3010       --  Interface_Present (Flag16) set in abstract interfaces
3011       --  Interface_List (List2) (set to No_List if none)
3012
3013       --  Note: Task_Present, Protected_Present, Synchronized _Present,
3014       --        Interface_List and Interface_Present are used for abstract
3015       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3016
3017       -------------------------
3018       -- 3.8  Component List --
3019       -------------------------
3020
3021       --  COMPONENT_LIST ::=
3022       --    COMPONENT_ITEM {COMPONENT_ITEM}
3023       --  | {COMPONENT_ITEM} VARIANT_PART
3024       --  | null;
3025
3026       --  N_Component_List
3027       --  Sloc points to first token of component list
3028       --  Component_Items (List3)
3029       --  Variant_Part (Node4) (set to Empty if no variant part)
3030       --  Null_Present (Flag13)
3031
3032       -------------------------
3033       -- 3.8  Component Item --
3034       -------------------------
3035
3036       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3037
3038       --  Note: A component item can also be a pragma, and in the tree
3039       --  that is obtained after semantic processing, a component item
3040       --  can be an N_Null node resulting from a non-recognized pragma.
3041
3042       --------------------------------
3043       -- 3.8  Component Declaration --
3044       --------------------------------
3045
3046       --  COMPONENT_DECLARATION ::=
3047       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3048       --      [:= DEFAULT_EXPRESSION]
3049       --        [ASPECT_SPECIFICATIONS];
3050
3051       --  Note: although the syntax does not permit a component definition to
3052       --  be an anonymous array (and the parser will diagnose such an attempt
3053       --  with an appropriate message), it is possible for anonymous arrays
3054       --  to appear as component definitions. The semantics and back end handle
3055       --  this case properly, and the expander in fact generates such cases.
3056
3057       --  Although the syntax allows multiple identifiers in the list, the
3058       --  semantics is as though successive declarations were given with the
3059       --  same component definition and expression components. To simplify
3060       --  semantic processing, the parser represents a multiple declaration
3061       --  case as a sequence of single declarations, using the More_Ids and
3062       --  Prev_Ids flags to preserve the original source form as described
3063       --  in the section on "Handling of Defining Identifier Lists".
3064
3065       --  N_Component_Declaration
3066       --  Sloc points to first identifier
3067       --  Defining_Identifier (Node1)
3068       --  Component_Definition (Node4)
3069       --  Expression (Node3) (set to Empty if no default expression)
3070       --  More_Ids (Flag5) (set to False if no more identifiers in list)
3071       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3072
3073       -------------------------
3074       -- 3.8.1  Variant Part --
3075       -------------------------
3076
3077       --  VARIANT_PART ::=
3078       --    case discriminant_DIRECT_NAME is
3079       --      VARIANT {VARIANT}
3080       --    end case;
3081
3082       --  Note: the variants list can contain pragmas as well as variants.
3083       --  In a properly formed program there is at least one variant.
3084
3085       --  N_Variant_Part
3086       --  Sloc points to CASE
3087       --  Name (Node2)
3088       --  Variants (List1)
3089
3090       --------------------
3091       -- 3.8.1  Variant --
3092       --------------------
3093
3094       --  VARIANT ::=
3095       --    when DISCRETE_CHOICE_LIST =>
3096       --      COMPONENT_LIST
3097
3098       --  N_Variant
3099       --  Sloc points to WHEN
3100       --  Discrete_Choices (List4)
3101       --  Component_List (Node1)
3102       --  Enclosing_Variant (Node2-Sem)
3103       --  Present_Expr (Uint3-Sem)
3104       --  Dcheck_Function (Node5-Sem)
3105       --  Has_SP_Choice (Flag15-Sem)
3106
3107       --  Note: in the list of Discrete_Choices, the tree passed to the back
3108       --  end does not have choice entries corresponding to names of statically
3109       --  predicated subtypes. Such entries are always expanded out to the list
3110       --  of equivalent values or ranges. The ASIS tree generated in -gnatct
3111       --  mode also has this expansion, but done with a proper Rewrite call on
3112       --  the N_Variant node so that ASIS can properly retrieve the original.
3113
3114       ---------------------------------
3115       -- 3.8.1  Discrete Choice List --
3116       ---------------------------------
3117
3118       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3119
3120       ----------------------------
3121       -- 3.8.1  Discrete Choice --
3122       ----------------------------
3123
3124       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3125
3126       --  Note: in Ada 83 mode, the expression must be a simple expression
3127
3128       --  The only choice that appears explicitly is the OTHERS choice, as
3129       --  defined here. Other cases of discrete choice (expression and
3130       --  discrete range) appear directly. This production is also used
3131       --  for the OTHERS possibility of an exception choice.
3132
3133       --  Note: in accordance with the syntax, the parser does not check that
3134       --  OTHERS appears at the end on its own in a choice list context. This
3135       --  is a semantic check.
3136
3137       --  N_Others_Choice
3138       --  Sloc points to OTHERS
3139       --  Others_Discrete_Choices (List1-Sem)
3140       --  All_Others (Flag11-Sem)
3141
3142       ----------------------------------
3143       -- 3.9.1  Record Extension Part --
3144       ----------------------------------
3145
3146       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3147
3148       --  Note: record extension parts are not permitted in Ada 83 mode
3149
3150       --------------------------------------
3151       -- 3.9.4  Interface Type Definition --
3152       --------------------------------------
3153
3154       --  INTERFACE_TYPE_DEFINITION ::=
3155       --    [limited | task | protected | synchronized]
3156       --    interface [interface_list]
3157
3158       --  Note: Interfaces are implemented with N_Record_Definition and
3159       --        N_Derived_Type_Definition nodes because most of the support
3160       --        for the analysis of abstract types has been reused to
3161       --        analyze abstract interfaces.
3162
3163       ----------------------------------
3164       -- 3.10  Access Type Definition --
3165       ----------------------------------
3166
3167       --  ACCESS_TYPE_DEFINITION ::=
3168       --    ACCESS_TO_OBJECT_DEFINITION
3169       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3170
3171       --------------------------
3172       -- 3.10  Null Exclusion --
3173       --------------------------
3174
3175       --  NULL_EXCLUSION ::= not null
3176
3177       ---------------------------------------
3178       -- 3.10  Access To Object Definition --
3179       ---------------------------------------
3180
3181       --  ACCESS_TO_OBJECT_DEFINITION ::=
3182       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3183       --    SUBTYPE_INDICATION
3184
3185       --  N_Access_To_Object_Definition
3186       --  Sloc points to ACCESS
3187       --  All_Present (Flag15)
3188       --  Null_Exclusion_Present (Flag11)
3189       --  Subtype_Indication (Node5)
3190       --  Constant_Present (Flag17)
3191
3192       -----------------------------------
3193       -- 3.10  General Access Modifier --
3194       -----------------------------------
3195
3196       --  GENERAL_ACCESS_MODIFIER ::= all | constant
3197
3198       --  Note: general access modifiers are not permitted in Ada 83 mode
3199
3200       --  There is no explicit node in the tree for general access modifier.
3201       --  Instead the All_Present or Constant_Present flags are set in the
3202       --  parent node.
3203
3204       -------------------------------------------
3205       -- 3.10  Access To Subprogram Definition --
3206       -------------------------------------------
3207
3208       --  ACCESS_TO_SUBPROGRAM_DEFINITION
3209       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3210       --  | [NULL_EXCLUSION] access [protected] function
3211       --    PARAMETER_AND_RESULT_PROFILE
3212
3213       --  Note: access to subprograms are not permitted in Ada 83 mode
3214
3215       --  N_Access_Function_Definition
3216       --  Sloc points to ACCESS
3217       --  Null_Exclusion_Present (Flag11)
3218       --  Null_Exclusion_In_Return_Present (Flag14)
3219       --  Protected_Present (Flag6)
3220       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3221       --  Result_Definition (Node4) result subtype (subtype mark or access def)
3222
3223       --  N_Access_Procedure_Definition
3224       --  Sloc points to ACCESS
3225       --  Null_Exclusion_Present (Flag11)
3226       --  Protected_Present (Flag6)
3227       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3228
3229       -----------------------------
3230       -- 3.10  Access Definition --
3231       -----------------------------
3232
3233       --  ACCESS_DEFINITION ::=
3234       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3235       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3236
3237       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
3238
3239       --  N_Access_Definition
3240       --  Sloc points to ACCESS
3241       --  Null_Exclusion_Present (Flag11)
3242       --  All_Present (Flag15)
3243       --  Constant_Present (Flag17)
3244       --  Subtype_Mark (Node4)
3245       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3246
3247       -----------------------------------------
3248       -- 3.10.1  Incomplete Type Declaration --
3249       -----------------------------------------
3250
3251       --  INCOMPLETE_TYPE_DECLARATION ::=
3252       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3253
3254       --  N_Incomplete_Type_Declaration
3255       --  Sloc points to TYPE
3256       --  Defining_Identifier (Node1)
3257       --  Discriminant_Specifications (List4) (set to No_List if no
3258       --   discriminant part, or if the discriminant part is an
3259       --   unknown discriminant part)
3260       --  Premature_Use (Node5-Sem) used for improved diagnostics.
3261       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3262       --  Tagged_Present (Flag15)
3263
3264       ----------------------------
3265       -- 3.11  Declarative Part --
3266       ----------------------------
3267
3268       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3269
3270       --  Note: although the parser enforces the syntactic requirement that
3271       --  a declarative part can contain only declarations, the semantic
3272       --  processing may add statements to the list of actions in a
3273       --  declarative part, so the code generator should be prepared
3274       --  to accept a statement in this position.
3275
3276       ----------------------------
3277       -- 3.11  Declarative Item --
3278       ----------------------------
3279
3280       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3281
3282       ----------------------------------
3283       -- 3.11  Basic Declarative Item --
3284       ----------------------------------
3285
3286       --  BASIC_DECLARATIVE_ITEM ::=
3287       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3288
3289       ----------------
3290       -- 3.11  Body --
3291       ----------------
3292
3293       --  BODY ::= PROPER_BODY | BODY_STUB
3294
3295       -----------------------
3296       -- 3.11  Proper Body --
3297       -----------------------
3298
3299       --  PROPER_BODY ::=
3300       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3301
3302       ---------------
3303       -- 4.1  Name --
3304       ---------------
3305
3306       --  NAME ::=
3307       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
3308       --  | INDEXED_COMPONENT  | SLICE
3309       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3310       --  | TYPE_CONVERSION    | FUNCTION_CALL
3311       --  | CHARACTER_LITERAL
3312
3313       ----------------------
3314       -- 4.1  Direct Name --
3315       ----------------------
3316
3317       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3318
3319       -----------------
3320       -- 4.1  Prefix --
3321       -----------------
3322
3323       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3324
3325       -------------------------------
3326       -- 4.1  Explicit Dereference --
3327       -------------------------------
3328
3329       --  EXPLICIT_DEREFERENCE ::= NAME . all
3330
3331       --  N_Explicit_Dereference
3332       --  Sloc points to ALL
3333       --  Prefix (Node3)
3334       --  Actual_Designated_Subtype (Node4-Sem)
3335       --  Atomic_Sync_Required (Flag14-Sem)
3336       --  Has_Dereference_Action (Flag13-Sem)
3337       --  plus fields for expression
3338
3339       -------------------------------
3340       -- 4.1  Implicit Dereference --
3341       -------------------------------
3342
3343       --  IMPLICIT_DEREFERENCE ::= NAME
3344
3345       ------------------------------
3346       -- 4.1.1  Indexed Component --
3347       ------------------------------
3348
3349       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3350
3351       --  Note: the parser may generate this node in some situations where it
3352       --  should be a function call. The semantic  pass must correct this
3353       --  misidentification (which is inevitable at the parser level).
3354
3355       --  N_Indexed_Component
3356       --  Sloc contains a copy of the Sloc value of the Prefix
3357       --  Prefix (Node3)
3358       --  Expressions (List1)
3359       --  Atomic_Sync_Required (Flag14-Sem)
3360       --  plus fields for expression
3361
3362       --  Note: if any of the subscripts requires a range check, then the
3363       --  Do_Range_Check flag is set on the corresponding expression, with
3364       --  the index type being determined from the type of the Prefix, which
3365       --  references the array being indexed.
3366
3367       --  Note: in a fully analyzed and expanded indexed component node, and
3368       --  hence in any such node that gigi sees, if the prefix is an access
3369       --  type, then an explicit dereference operation has been inserted.
3370
3371       ------------------
3372       -- 4.1.2  Slice --
3373       ------------------
3374
3375       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3376
3377       --  Note: an implicit subtype is created to describe the resulting
3378       --  type, so that the bounds of this type are the bounds of the slice.
3379
3380       --  N_Slice
3381       --  Sloc points to first token of prefix
3382       --  Prefix (Node3)
3383       --  Discrete_Range (Node4)
3384       --  plus fields for expression
3385
3386       -------------------------------
3387       -- 4.1.3  Selected Component --
3388       -------------------------------
3389
3390       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3391
3392       --  Note: selected components that are semantically expanded names get
3393       --  changed during semantic processing into the separate N_Expanded_Name
3394       --  node. See description of this node in the section on semantic nodes.
3395
3396       --  N_Selected_Component
3397       --  Sloc points to period
3398       --  Prefix (Node3)
3399       --  Selector_Name (Node2)
3400       --  Associated_Node (Node4-Sem)
3401       --  Do_Discriminant_Check (Flag13-Sem)
3402       --  Is_In_Discriminant_Check (Flag11-Sem)
3403       --  Is_Prefixed_Call (Flag17-Sem)
3404       --  Atomic_Sync_Required (Flag14-Sem)
3405       --  plus fields for expression
3406
3407       --------------------------
3408       -- 4.1.3  Selector Name --
3409       --------------------------
3410
3411       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3412
3413       --------------------------------
3414       -- 4.1.4  Attribute Reference --
3415       --------------------------------
3416
3417       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3418
3419       --  Note: the syntax is quite ambiguous at this point. Consider:
3420
3421       --    A'Length (X)  X is part of the attribute designator
3422       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3423       --    A'Class (X)   X is the expression of a type conversion
3424
3425       --  It would be possible for the parser to distinguish these cases
3426       --  by looking at the attribute identifier. However, that would mean
3427       --  more work in introducing new implementation defined attributes,
3428       --  and also it would mean that special processing for attributes
3429       --  would be scattered around, instead of being centralized in the
3430       --  semantic routine that handles an N_Attribute_Reference node.
3431       --  Consequently, the parser in all the above cases stores the
3432       --  expression (X in these examples) as a single element list in
3433       --  in the Expressions field of the N_Attribute_Reference node.
3434
3435       --  Similarly, for attributes like Max which take two arguments,
3436       --  we store the two arguments as a two element list in the
3437       --  Expressions field. Of course it is clear at parse time that
3438       --  this case is really a function call with an attribute as the
3439       --  prefix, but it turns out to be convenient to handle the two
3440       --  argument case in a similar manner to the one argument case,
3441       --  and indeed in general the parser will accept any number of
3442       --  expressions in this position and store them as a list in the
3443       --  attribute reference node. This allows for future addition of
3444       --  attributes that take more than two arguments.
3445
3446       --  Note: named associates are not permitted in function calls where
3447       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3448       --  to skip the normal subprogram argument processing.
3449
3450       --  Note: for the attributes whose designators are technically keywords,
3451       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3452       --  the corresponding name, even though no identifier is involved.
3453
3454       --  Note: the generated code may contain stream attributes applied to
3455       --  limited types for which no stream routines exist officially. In such
3456       --  case, the result is to use the stream attribute for the underlying
3457       --  full type, or in the case of a protected type, the components
3458       --  (including any discriminants) are merely streamed in order.
3459
3460       --  See Exp_Attr for a complete description of which attributes are
3461       --  passed onto Gigi, and which are handled entirely by the front end.
3462
3463       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3464       --  a non-standard enumeration type or a nonzero/zero semantics
3465       --  boolean type, so the value is simply the stored representation.
3466
3467       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3468       --  references a subprogram that is a renaming, then the front end must
3469       --  rewrite the attribute to refer directly to the renamed entity.
3470
3471       --  Note: In generated code, the Address and Unrestricted_Access
3472       --  attributes can be applied to any expression, and the meaning is
3473       --  to create an object containing the value (the object is in the
3474       --  current stack frame), and pass the address of this value. If the
3475       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3476       --  is taken must be on a byte (storage unit) boundary, and if it is
3477       --  not (or may not be), then the generated code must create a copy
3478       --  that is byte aligned, and pass the address of this copy.
3479
3480       --  N_Attribute_Reference
3481       --  Sloc points to apostrophe
3482       --  Prefix (Node3)
3483       --  Attribute_Name (Name2) identifier name from attribute designator
3484       --  Expressions (List1) (set to No_List if no associated expressions)
3485       --  Entity (Node4-Sem) used if the attribute yields a type
3486       --  Associated_Node (Node4-Sem)
3487       --  Do_Overflow_Check (Flag17-Sem)
3488       --  Header_Size_Added (Flag11-Sem)
3489       --  Redundant_Use (Flag13-Sem)
3490       --  Must_Be_Byte_Aligned (Flag14)
3491       --  plus fields for expression
3492
3493       ---------------------------------
3494       -- 4.1.4  Attribute Designator --
3495       ---------------------------------
3496
3497       --  ATTRIBUTE_DESIGNATOR ::=
3498       --    IDENTIFIER [(static_EXPRESSION)]
3499       --  | access | delta | digits
3500
3501       --  There is no explicit node in the tree for an attribute designator.
3502       --  Instead the Attribute_Name and Expressions fields of the parent
3503       --  node (N_Attribute_Reference node) hold the information.
3504
3505       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3506       --  designator, then they are treated as identifiers internally
3507       --  rather than the keywords of the same name.
3508
3509       --------------------------------------
3510       -- 4.1.4  Range Attribute Reference --
3511       --------------------------------------
3512
3513       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3514
3515       --  A range attribute reference is represented in the tree using the
3516       --  normal N_Attribute_Reference node.
3517
3518       ---------------------------------------
3519       -- 4.1.4  Range Attribute Designator --
3520       ---------------------------------------
3521
3522       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3523
3524       --  A range attribute designator is represented in the tree using the
3525       --  normal N_Attribute_Reference node.
3526
3527       --------------------
3528       -- 4.3  Aggregate --
3529       --------------------
3530
3531       --  AGGREGATE ::=
3532       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3533
3534       -----------------------------
3535       -- 4.3.1  Record Aggregate --
3536       -----------------------------
3537
3538       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3539
3540       --  N_Aggregate
3541       --  Sloc points to left parenthesis
3542       --  Expressions (List1) (set to No_List if none or null record case)
3543       --  Component_Associations (List2) (set to No_List if none)
3544       --  Null_Record_Present (Flag17)
3545       --  Aggregate_Bounds (Node3-Sem)
3546       --  Associated_Node (Node4-Sem)
3547       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3548       --  Expansion_Delayed (Flag11-Sem)
3549       --  Has_Self_Reference (Flag13-Sem)
3550       --  plus fields for expression
3551
3552       --  Note: this structure is used for both record and array aggregates
3553       --  since the two cases are not separable by the parser. The parser
3554       --  makes no attempt to enforce consistency here, so it is up to the
3555       --  semantic phase to make sure that the aggregate is consistent (i.e.
3556       --  that it is not a "half-and-half" case that mixes record and array
3557       --  syntax. In particular, for a record aggregate, the expressions
3558       --  field will be set if there are positional associations.
3559
3560       --  Note: N_Aggregate is not used for all aggregates; in particular,
3561       --  there is a separate node kind for extension aggregates.
3562
3563       --  Note: gigi/gcc can handle array aggregates correctly providing that
3564       --  they are entirely positional, and the array subtype involved has a
3565       --  known at compile time length and is not bit packed, or a convention
3566       --  Fortran array with more than one dimension. If these conditions
3567       --  are not met, then the front end must translate the aggregate into
3568       --  an appropriate set of assignments into a temporary.
3569
3570       --  Note: for the record aggregate case, gigi/gcc can handle all cases of
3571       --  record aggregates, including those for packed, and rep-claused
3572       --  records, and also variant records, providing that there are no
3573       --  variable length fields whose size is not known at compile time, and
3574       --  providing that the aggregate is presented in fully named form.
3575
3576       ----------------------------------------------
3577       -- 4.3.1  Record Component Association List --
3578       ----------------------------------------------
3579
3580       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3581       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3582       --   | null record
3583
3584       --  There is no explicit node in the tree for a record component
3585       --  association list. Instead the Null_Record_Present flag is set in
3586       --  the parent node for the NULL RECORD case.
3587
3588       ------------------------------------------------------
3589       -- 4.3.1  Record Component Association (also 4.3.3) --
3590       ------------------------------------------------------
3591
3592       --  RECORD_COMPONENT_ASSOCIATION ::=
3593       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3594
3595       --  N_Component_Association
3596       --  Sloc points to first selector name
3597       --  Choices (List1)
3598       --  Loop_Actions (List2-Sem)
3599       --  Expression (Node3) (empty if Box_Present)
3600       --  Box_Present (Flag15)
3601       --  Inherited_Discriminant (Flag13)
3602
3603       --  Note: this structure is used for both record component associations
3604       --  and array component associations, since the two cases aren't always
3605       --  separable by the parser. The choices list may represent either a
3606       --  list of selector names in the record aggregate case, or a list of
3607       --  discrete choices in the array aggregate case or an N_Others_Choice
3608       --  node (which appears as a singleton list). Box_Present gives support
3609       --  to Ada 2005 (AI-287).
3610
3611       ----------------------------------
3612       -- 4.3.1  Component Choice List --
3613       ----------------------------------
3614
3615       --  COMPONENT_CHOICE_LIST ::=
3616       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3617       --  | others
3618
3619       --  The entries of a component choice list appear in the Choices list of
3620       --  the associated N_Component_Association, as either selector names, or
3621       --  as an N_Others_Choice node.
3622
3623       --------------------------------
3624       -- 4.3.2  Extension Aggregate --
3625       --------------------------------
3626
3627       --  EXTENSION_AGGREGATE ::=
3628       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3629
3630       --  Note: extension aggregates are not permitted in Ada 83 mode
3631
3632       --  N_Extension_Aggregate
3633       --  Sloc points to left parenthesis
3634       --  Ancestor_Part (Node3)
3635       --  Associated_Node (Node4-Sem)
3636       --  Expressions (List1) (set to No_List if none or null record case)
3637       --  Component_Associations (List2) (set to No_List if none)
3638       --  Null_Record_Present (Flag17)
3639       --  Expansion_Delayed (Flag11-Sem)
3640       --  Has_Self_Reference (Flag13-Sem)
3641       --  plus fields for expression
3642
3643       --------------------------
3644       -- 4.3.2  Ancestor Part --
3645       --------------------------
3646
3647       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3648
3649       ----------------------------
3650       -- 4.3.3  Array Aggregate --
3651       ----------------------------
3652
3653       --  ARRAY_AGGREGATE ::=
3654       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3655
3656       ---------------------------------------
3657       -- 4.3.3  Positional Array Aggregate --
3658       ---------------------------------------
3659
3660       --  POSITIONAL_ARRAY_AGGREGATE ::=
3661       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3662       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3663
3664       --  See Record_Aggregate (4.3.1) for node structure
3665
3666       ----------------------------------
3667       -- 4.3.3  Named Array Aggregate --
3668       ----------------------------------
3669
3670       --  NAMED_ARRAY_AGGREGATE ::=
3671       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3672
3673       --  See Record_Aggregate (4.3.1) for node structure
3674
3675       ----------------------------------------
3676       -- 4.3.3  Array Component Association --
3677       ----------------------------------------
3678
3679       --  ARRAY_COMPONENT_ASSOCIATION ::=
3680       --    DISCRETE_CHOICE_LIST => EXPRESSION
3681
3682       --  See Record_Component_Association (4.3.1) for node structure
3683
3684       --------------------------------------------------
3685       -- 4.4  Expression/Relation/Term/Factor/Primary --
3686       --------------------------------------------------
3687
3688       --  EXPRESSION ::=
3689       --    RELATION {LOGICAL_OPERATOR RELATION}
3690
3691       --  CHOICE_EXPRESSION ::=
3692       --    CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3693
3694       --  CHOICE_RELATION ::=
3695       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3696
3697       --  RELATION ::=
3698       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3699       --  | RAISE_EXPRESSION
3700
3701       --  MEMBERSHIP_CHOICE_LIST ::=
3702       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3703
3704       --  MEMBERSHIP_CHOICE ::=
3705       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3706
3707       --  LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3708
3709       --  SIMPLE_EXPRESSION ::=
3710       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3711
3712       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3713
3714       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3715
3716       --  No nodes are generated for any of these constructs. Instead, the
3717       --  node for the operator appears directly. When we refer to an
3718       --  expression in this description, we mean any of the possible
3719       --  constituent components of an expression (e.g. identifier is
3720       --  an example of an expression).
3721
3722       --  Note: the above syntax is that Ada 2012 syntax which restricts
3723       --  choice relations to simple expressions to avoid ambiguities in
3724       --  some contexts with set membership notation. It has been decided
3725       --  that in retrospect, the Ada 95 change allowing general expressions
3726       --  in this context was a mistake, so we have reverted to the above
3727       --  syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3728       --  expressions was there in Ada 83 from the start).
3729
3730       ------------------
3731       -- 4.4  Primary --
3732       ------------------
3733
3734       --  PRIMARY ::=
3735       --    NUMERIC_LITERAL  | null
3736       --  | STRING_LITERAL   | AGGREGATE
3737       --  | NAME             | QUALIFIED_EXPRESSION
3738       --  | ALLOCATOR        | (EXPRESSION)
3739
3740       --  Usually there is no explicit node in the tree for primary. Instead
3741       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3742       --  exceptions. First, there is an explicit node for a null primary.
3743
3744       --  N_Null
3745       --  Sloc points to NULL
3746       --  plus fields for expression
3747
3748       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3749       --  that the parser keep track of which subexpressions are enclosed
3750       --  in parentheses, and how many levels of parentheses are used. This
3751       --  information is required for optimization purposes, and also for
3752       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3753       --  conform with ((((1)))) in the body).
3754
3755       --  The parentheses are recorded by keeping a Paren_Count field in every
3756       --  subexpression node (it is actually present in all nodes, but only
3757       --  used in subexpression nodes). This count records the number of
3758       --  levels of parentheses. If the number of levels in the source exceeds
3759       --  the maximum accommodated by this count, then the count is simply left
3760       --  at the maximum value. This means that there are some pathological
3761       --  cases of failure to detect conformance failures (e.g. an expression
3762       --  with 500 levels of parens will conform with one with 501 levels),
3763       --  but we do not need to lose sleep over this.
3764
3765       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3766       --  type N_Parenthesized_Expression used to accurately record unlimited
3767       --  numbers of levels of parentheses. However, it turned out to be a
3768       --  real nuisance to have to take into account the possible presence of
3769       --  this node during semantic analysis, since basically parentheses have
3770       --  zero relevance to semantic analysis.
3771
3772       --  Note: the level of parentheses always present in things like
3773       --  aggregates does not count, only the parentheses in the primary
3774       --  (EXPRESSION) affect the setting of the Paren_Count field.
3775
3776       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3777       --  treated as though it were Empty) if No_Initialization is set True.
3778
3779       --------------------------------------
3780       -- 4.5  Short Circuit Control Forms --
3781       --------------------------------------
3782
3783       --  EXPRESSION ::=
3784       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3785
3786       --  Gigi restriction: For both these control forms, the operand and
3787       --  result types are always Standard.Boolean. The expander inserts the
3788       --  required conversion operations where needed to ensure this is the
3789       --  case.
3790
3791       --  N_And_Then
3792       --  Sloc points to AND of AND THEN
3793       --  Left_Opnd (Node2)
3794       --  Right_Opnd (Node3)
3795       --  Actions (List1-Sem)
3796       --  plus fields for expression
3797
3798       --  N_Or_Else
3799       --  Sloc points to OR of OR ELSE
3800       --  Left_Opnd (Node2)
3801       --  Right_Opnd (Node3)
3802       --  Actions (List1-Sem)
3803       --  plus fields for expression
3804
3805       --  Note: The Actions field is used to hold actions associated with
3806       --  the right hand operand. These have to be treated specially since
3807       --  they are not unconditionally executed. See Insert_Actions for a
3808       --  more detailed description of how these actions are handled.
3809
3810       ---------------------------
3811       -- 4.5  Membership Tests --
3812       ---------------------------
3813
3814       --  RELATION ::=
3815       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3816
3817       --  MEMBERSHIP_CHOICE_LIST ::=
3818       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3819
3820       --  MEMBERSHIP_CHOICE ::=
3821       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3822
3823       --  Note: although the grammar above allows only a range or a subtype
3824       --  mark, the parser in fact will accept any simple expression in place
3825       --  of a subtype mark. This means that the semantic analyzer must be able
3826       --  to deal with, and diagnose a simple expression other than a name for
3827       --  the right operand. This simplifies error recovery in the parser.
3828
3829       --  The Alternatives field below is present only if there is more
3830       --  than one Membership_Choice present (which is legitimate only in
3831       --  Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3832       --  contains the list of choices. In the tree passed to the back end,
3833       --  Alternatives is always No_List, and Right_Opnd is set (i.e. the
3834       --  expansion circuitry expands out the complex set membership case
3835       --  using simple membership operations).
3836
3837       --  Should we rename Alternatives here to Membership_Choices ???
3838
3839       --  N_In
3840       --  Sloc points to IN
3841       --  Left_Opnd (Node2)
3842       --  Right_Opnd (Node3)
3843       --  Alternatives (List4) (set to No_List if only one set alternative)
3844       --  No_Minimize_Eliminate (Flag17)
3845       --  plus fields for expression
3846
3847       --  N_Not_In
3848       --  Sloc points to NOT of NOT IN
3849       --  Left_Opnd (Node2)
3850       --  Right_Opnd (Node3)
3851       --  Alternatives (List4) (set to No_List if only one set alternative)
3852       --  No_Minimize_Eliminate (Flag17)
3853       --  plus fields for expression
3854
3855       --------------------
3856       -- 4.5  Operators --
3857       --------------------
3858
3859       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3860
3861       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3862
3863       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3864
3865       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3866
3867       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3868
3869       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3870
3871       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3872
3873       --     x #* y
3874       --     x #/ y
3875       --     x #mod y
3876       --     x #rem y
3877
3878       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3879       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3880       --  All handling of smalls for multiplication and division is handled
3881       --  by the front end (mod and rem result only from expansion). Gigi
3882       --  thus never needs to worry about small values (for other operators
3883       --  operating on fixed-point, e.g. addition, the small value does not
3884       --  have any semantic effect anyway, these are always integer operations.
3885
3886       --  Gigi restriction: For all operators taking Boolean operands, the
3887       --  type is always Standard.Boolean. The expander inserts the required
3888       --  conversion operations where needed to ensure this is the case.
3889
3890       --  N_Op_And
3891       --  Sloc points to AND
3892       --  Do_Length_Check (Flag4-Sem)
3893       --  plus fields for binary operator
3894       --  plus fields for expression
3895
3896       --  N_Op_Or
3897       --  Sloc points to OR
3898       --  Do_Length_Check (Flag4-Sem)
3899       --  plus fields for binary operator
3900       --  plus fields for expression
3901
3902       --  N_Op_Xor
3903       --  Sloc points to XOR
3904       --  Do_Length_Check (Flag4-Sem)
3905       --  plus fields for binary operator
3906       --  plus fields for expression
3907
3908       --  N_Op_Eq
3909       --  Sloc points to =
3910       --  plus fields for binary operator
3911       --  plus fields for expression
3912
3913       --  N_Op_Ne
3914       --  Sloc points to /=
3915       --  plus fields for binary operator
3916       --  plus fields for expression
3917
3918       --  N_Op_Lt
3919       --  Sloc points to <
3920       --  plus fields for binary operator
3921       --  plus fields for expression
3922
3923       --  N_Op_Le
3924       --  Sloc points to <=
3925       --  plus fields for binary operator
3926       --  plus fields for expression
3927
3928       --  N_Op_Gt
3929       --  Sloc points to >
3930       --  plus fields for binary operator
3931       --  plus fields for expression
3932
3933       --  N_Op_Ge
3934       --  Sloc points to >=
3935       --  plus fields for binary operator
3936       --  plus fields for expression
3937
3938       --  N_Op_Add
3939       --  Sloc points to + (binary)
3940       --  plus fields for binary operator
3941       --  plus fields for expression
3942
3943       --  N_Op_Subtract
3944       --  Sloc points to - (binary)
3945       --  plus fields for binary operator
3946       --  plus fields for expression
3947
3948       --  N_Op_Concat
3949       --  Sloc points to &
3950       --  Is_Component_Left_Opnd (Flag13-Sem)
3951       --  Is_Component_Right_Opnd (Flag14-Sem)
3952       --  plus fields for binary operator
3953       --  plus fields for expression
3954
3955       --  N_Op_Multiply
3956       --  Sloc points to *
3957       --  Treat_Fixed_As_Integer (Flag14-Sem)
3958       --  Rounded_Result (Flag18-Sem)
3959       --  plus fields for binary operator
3960       --  plus fields for expression
3961
3962       --  N_Op_Divide
3963       --  Sloc points to /
3964       --  Treat_Fixed_As_Integer (Flag14-Sem)
3965       --  Do_Division_Check (Flag13-Sem)
3966       --  Rounded_Result (Flag18-Sem)
3967       --  plus fields for binary operator
3968       --  plus fields for expression
3969
3970       --  N_Op_Mod
3971       --  Sloc points to MOD
3972       --  Treat_Fixed_As_Integer (Flag14-Sem)
3973       --  Do_Division_Check (Flag13-Sem)
3974       --  plus fields for binary operator
3975       --  plus fields for expression
3976
3977       --  N_Op_Rem
3978       --  Sloc points to REM
3979       --  Treat_Fixed_As_Integer (Flag14-Sem)
3980       --  Do_Division_Check (Flag13-Sem)
3981       --  plus fields for binary operator
3982       --  plus fields for expression
3983
3984       --  N_Op_Expon
3985       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3986       --  Sloc points to **
3987       --  plus fields for binary operator
3988       --  plus fields for expression
3989
3990       --  N_Op_Plus
3991       --  Sloc points to + (unary)
3992       --  plus fields for unary operator
3993       --  plus fields for expression
3994
3995       --  N_Op_Minus
3996       --  Sloc points to - (unary)
3997       --  plus fields for unary operator
3998       --  plus fields for expression
3999
4000       --  N_Op_Abs
4001       --  Sloc points to ABS
4002       --  plus fields for unary operator
4003       --  plus fields for expression
4004
4005       --  N_Op_Not
4006       --  Sloc points to NOT
4007       --  plus fields for unary operator
4008       --  plus fields for expression
4009
4010       --  See also shift operators in section B.2
4011
4012       --  Note on fixed-point operations passed to Gigi: For adding operators,
4013       --  the semantics is to treat these simply as integer operations, with
4014       --  the small values being ignored (the bounds are already stored in
4015       --  units of small, so that constraint checking works as usual). For the
4016       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
4017       --  point operands if the Treat_Fixed_As_Integer flag is set and will
4018       --  thus treat these nodes in identical manner, ignoring small values.
4019
4020       --  Note on overflow handling: When the overflow checking mode is set to
4021       --  MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4022       --  be modified to use a larger type for the operands and result. In
4023       --  the case where the computed range exceeds that of Long_Long_Integer,
4024       --  and we are running in ELIMINATED mode, the operator node will be
4025       --  changed to be a call to the appropriate routine in System.Bignums.
4026
4027       ------------------------------------
4028       -- 4.5.7  Conditional Expressions --
4029       ------------------------------------
4030
4031       --  CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4032
4033       --------------------------
4034       -- 4.5.7  If Expression --
4035       ----------------------------
4036
4037       --  IF_EXPRESSION ::=
4038       --    if CONDITION then DEPENDENT_EXPRESSION
4039       --                {elsif CONDITION then DEPENDENT_EXPRESSION}
4040       --                [else DEPENDENT_EXPRESSION]
4041
4042       --  DEPENDENT_EXPRESSION ::= EXPRESSION
4043
4044       --  Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4045       --  is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4046       --  the Is_Elsif flag is set on the inner if expression.
4047
4048       --  N_If_Expression
4049       --  Sloc points to IF or ELSIF keyword
4050       --  Expressions (List1)
4051       --  Then_Actions (List2-Sem)
4052       --  Else_Actions (List3-Sem)
4053       --  Is_Elsif (Flag13) (set if comes from ELSIF)
4054       --  Do_Overflow_Check (Flag17-Sem)
4055       --  plus fields for expression
4056
4057       --  Expressions here is a three-element list, whose first element is the
4058       --  condition, the second element is the dependent expression after THEN
4059       --  and the third element is the dependent expression after the ELSE
4060       --  (explicitly set to True if missing).
4061
4062       --  Note: the Then_Actions and Else_Actions fields are always set to
4063       --  No_List in the tree passed to Gigi. These fields are used only
4064       --  for temporary processing purposes in the expander.
4065
4066       ----------------------------
4067       -- 4.5.7  Case Expression --
4068       ----------------------------
4069
4070       --  CASE_EXPRESSION ::=
4071       --    case SELECTING_EXPRESSION is
4072       --      CASE_EXPRESSION_ALTERNATIVE
4073       --      {CASE_EXPRESSION_ALTERNATIVE}
4074
4075       --  Note that the Alternatives cannot include pragmas (this contrasts
4076       --  with the situation of case statements where pragmas are allowed).
4077
4078       --  N_Case_Expression
4079       --  Sloc points to CASE
4080       --  Expression (Node3) (the selecting expression)
4081       --  Alternatives (List4) (the case expression alternatives)
4082       --  Do_Overflow_Check (Flag17-Sem)
4083
4084       ----------------------------------------
4085       -- 4.5.7  Case Expression Alternative --
4086       ----------------------------------------
4087
4088       --  CASE_EXPRESSION_ALTERNATIVE ::=
4089       --    when DISCRETE_CHOICE_LIST =>
4090       --      DEPENDENT_EXPRESSION
4091
4092       --  N_Case_Expression_Alternative
4093       --  Sloc points to WHEN
4094       --  Actions (List1)
4095       --  Discrete_Choices (List4)
4096       --  Expression (Node3)
4097       --  Has_SP_Choice (Flag15-Sem)
4098
4099       --  Note: The Actions field temporarily holds any actions associated with
4100       --  evaluation of the Expression. During expansion of the case expression
4101       --  these actions are wrapped into an N_Expressions_With_Actions node
4102       --  replacing the original expression.
4103
4104       --  Note: this node never appears in the tree passed to the back end,
4105       --  since the expander converts case expressions into case statements.
4106
4107       ---------------------------------
4108       -- 4.5.9 Quantified Expression --
4109       ---------------------------------
4110
4111       --  QUANTIFIED_EXPRESSION ::=
4112       --    for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4113       --  | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4114       --
4115       --  QUANTIFIER ::= all | some
4116
4117       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
4118       --  is present at a time, in which case the other one is empty.
4119
4120       --  N_Quantified_Expression
4121       --  Sloc points to FOR
4122       --  Iterator_Specification (Node2)
4123       --  Loop_Parameter_Specification (Node4)
4124       --  Condition (Node1)
4125       --  All_Present (Flag15)
4126
4127       --------------------------
4128       -- 4.6  Type Conversion --
4129       --------------------------
4130
4131       --  TYPE_CONVERSION ::=
4132       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4133
4134       --  In the (NAME) case, the name is stored as the expression
4135
4136       --  Note: the parser never generates a type conversion node, since it
4137       --  looks like an indexed component which is generated by preference.
4138       --  The semantic pass must correct this misidentification.
4139
4140       --  Gigi handles conversions that involve no change in the root type,
4141       --  and also all conversions from integer to floating-point types.
4142       --  Conversions from floating-point to integer are only handled in
4143       --  the case where Float_Truncate flag set. Other conversions from
4144       --  floating-point to integer (involving rounding) and all conversions
4145       --  involving fixed-point types are handled by the expander.
4146
4147       --  Sprint syntax if Float_Truncate set: X^(Y)
4148       --  Sprint syntax if Conversion_OK set X?(Y)
4149       --  Sprint syntax if both flags set X?^(Y)
4150
4151       --  Note: If either the operand or result type is fixed-point, Gigi will
4152       --  only see a type conversion node with Conversion_OK set. The front end
4153       --  takes care of all handling of small's for fixed-point conversions.
4154
4155       --  N_Type_Conversion
4156       --  Sloc points to first token of subtype mark
4157       --  Subtype_Mark (Node4)
4158       --  Expression (Node3)
4159       --  Do_Tag_Check (Flag13-Sem)
4160       --  Do_Length_Check (Flag4-Sem)
4161       --  Do_Overflow_Check (Flag17-Sem)
4162       --  Float_Truncate (Flag11-Sem)
4163       --  Rounded_Result (Flag18-Sem)
4164       --  Conversion_OK (Flag14-Sem)
4165       --  plus fields for expression
4166
4167       --  Note: if a range check is required, then the Do_Range_Check flag
4168       --  is set in the Expression with the check being done against the
4169       --  target type range (after the base type conversion, if any).
4170
4171       -------------------------------
4172       -- 4.7  Qualified Expression --
4173       -------------------------------
4174
4175       --  QUALIFIED_EXPRESSION ::=
4176       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4177
4178       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4179       --  the expression, so the Expression field of this node always points
4180       --  to a parenthesized expression in this case (i.e. Paren_Count will
4181       --  always be non-zero for the referenced expression if it is not an
4182       --  aggregate).
4183
4184       --  N_Qualified_Expression
4185       --  Sloc points to apostrophe
4186       --  Subtype_Mark (Node4)
4187       --  Expression (Node3) expression or aggregate
4188       --  plus fields for expression
4189
4190       --------------------
4191       -- 4.8  Allocator --
4192       --------------------
4193
4194       --  ALLOCATOR ::=
4195       --      new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4196       --    | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4197       --
4198       --  SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4199
4200       --  Sprint syntax (when storage pool present)
4201       --    new xxx (storage_pool = pool)
4202       --  or
4203       --    new (subpool) xxx (storage_pool = pool)
4204
4205       --  N_Allocator
4206       --  Sloc points to NEW
4207       --  Expression (Node3) subtype indication or qualified expression
4208       --  Subpool_Handle_Name (Node4) (set to Empty if not present)
4209       --  Storage_Pool (Node1-Sem)
4210       --  Procedure_To_Call (Node2-Sem)
4211       --  Null_Exclusion_Present (Flag11)
4212       --  No_Initialization (Flag13-Sem)
4213       --  Is_Static_Coextension (Flag14-Sem)
4214       --  Do_Storage_Check (Flag17-Sem)
4215       --  Is_Dynamic_Coextension (Flag18-Sem)
4216       --  plus fields for expression
4217
4218       --  Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4219       --  This flag has a special function in conjunction with the restriction
4220       --  No_Implicit_Heap_Allocations, which will be triggered if this flag
4221       --  is not set. This means that if a source allocator is replaced with
4222       --  a constructed allocator, the Comes_From_Source flag should be copied
4223       --  to the newly created allocator.
4224
4225       ---------------------------------
4226       -- 5.1  Sequence Of Statements --
4227       ---------------------------------
4228
4229       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4230
4231       --  Note: Although the parser will not accept a declaration as a
4232       --  statement, the semantic analyzer may insert declarations (e.g.
4233       --  declarations of implicit types needed for execution of other
4234       --  statements) into a sequence of statements, so the code generator
4235       --  should be prepared to accept a declaration where a statement is
4236       --  expected. Note also that pragmas can appear as statements.
4237
4238       --------------------
4239       -- 5.1  Statement --
4240       --------------------
4241
4242       --  STATEMENT ::=
4243       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4244
4245       --  There is no explicit node in the tree for a statement. Instead, the
4246       --  individual statement appears directly. Labels are treated  as a
4247       --  kind of statement, i.e. they are linked into a statement list at
4248       --  the point they appear, so the labeled statement appears following
4249       --  the label or labels in the statement list.
4250
4251       ---------------------------
4252       -- 5.1  Simple Statement --
4253       ---------------------------
4254
4255       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
4256       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
4257       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
4258       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4259       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
4260       --  | ABORT_STATEMENT         | RAISE_STATEMENT
4261       --  | CODE_STATEMENT
4262
4263       -----------------------------
4264       -- 5.1  Compound Statement --
4265       -----------------------------
4266
4267       --  COMPOUND_STATEMENT ::=
4268       --    IF_STATEMENT              | CASE_STATEMENT
4269       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
4270       --  | EXTENDED_RETURN_STATEMENT
4271       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
4272
4273       -------------------------
4274       -- 5.1  Null Statement --
4275       -------------------------
4276
4277       --  NULL_STATEMENT ::= null;
4278
4279       --  N_Null_Statement
4280       --  Sloc points to NULL
4281
4282       ----------------
4283       -- 5.1  Label --
4284       ----------------
4285
4286       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4287
4288       --  Note that the occurrence of a label is not a defining identifier,
4289       --  but rather a referencing occurrence. The defining occurrence is
4290       --  in the implicit label declaration which occurs in the innermost
4291       --  enclosing block.
4292
4293       --  N_Label
4294       --  Sloc points to <<
4295       --  Identifier (Node1) direct name of statement identifier
4296       --  Exception_Junk (Flag8-Sem)
4297
4298       --  Note: Before Ada 2012, a label is always followed by a statement,
4299       --  and this is true in the tree even in Ada 2012 mode (the parser
4300       --  inserts a null statement marked with Comes_From_Source False).
4301
4302       -------------------------------
4303       -- 5.1  Statement Identifier --
4304       -------------------------------
4305
4306       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
4307
4308       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4309       --  (not an OPERATOR_SYMBOL)
4310
4311       -------------------------------
4312       -- 5.2  Assignment Statement --
4313       -------------------------------
4314
4315       --  ASSIGNMENT_STATEMENT ::=
4316       --    variable_NAME := EXPRESSION;
4317
4318       --  N_Assignment_Statement
4319       --  Sloc points to :=
4320       --  Name (Node2)
4321       --  Expression (Node3)
4322       --  Do_Tag_Check (Flag13-Sem)
4323       --  Do_Length_Check (Flag4-Sem)
4324       --  Forwards_OK (Flag5-Sem)
4325       --  Backwards_OK (Flag6-Sem)
4326       --  No_Ctrl_Actions (Flag7-Sem)
4327       --  Componentwise_Assignment (Flag14-Sem)
4328       --  Suppress_Assignment_Checks (Flag18-Sem)
4329
4330       --  Note: if a range check is required, then the Do_Range_Check flag
4331       --  is set in the Expression (right hand side), with the check being
4332       --  done against the type of the Name (left hand side).
4333
4334       --  Note: the back end places some restrictions on the form of the
4335       --  Expression field. If the object being assigned to is Atomic, then
4336       --  the Expression may not have the form of an aggregate (since this
4337       --  might cause the back end to generate separate assignments). In this
4338       --  case the front end must generate an extra temporary and initialize
4339       --  this temporary as required (the temporary itself is not atomic).
4340
4341       -----------------------
4342       -- 5.3  If Statement --
4343       -----------------------
4344
4345       --  IF_STATEMENT ::=
4346       --    if CONDITION then
4347       --      SEQUENCE_OF_STATEMENTS
4348       --    {elsif CONDITION then
4349       --      SEQUENCE_OF_STATEMENTS}
4350       --    [else
4351       --      SEQUENCE_OF_STATEMENTS]
4352       --    end if;
4353
4354       --  Gigi restriction: This expander ensures that the type of the
4355       --  Condition fields is always Standard.Boolean, even if the type
4356       --  in the source is some non-standard boolean type.
4357
4358       --  N_If_Statement
4359       --  Sloc points to IF
4360       --  Condition (Node1)
4361       --  Then_Statements (List2)
4362       --  Elsif_Parts (List3) (set to No_List if none present)
4363       --  Else_Statements (List4) (set to No_List if no else part present)
4364       --  End_Span (Uint5) (set to Uint_0 if expander generated)
4365
4366       --  N_Elsif_Part
4367       --  Sloc points to ELSIF
4368       --  Condition (Node1)
4369       --  Then_Statements (List2)
4370       --  Condition_Actions (List3-Sem)
4371
4372       --------------------
4373       -- 5.3  Condition --
4374       --------------------
4375
4376       --  CONDITION ::= boolean_EXPRESSION
4377
4378       -------------------------
4379       -- 5.4  Case Statement --
4380       -------------------------
4381
4382       --  CASE_STATEMENT ::=
4383       --    case EXPRESSION is
4384       --      CASE_STATEMENT_ALTERNATIVE
4385       --      {CASE_STATEMENT_ALTERNATIVE}
4386       --    end case;
4387
4388       --  Note: the Alternatives can contain pragmas. These only occur at
4389       --  the start of the list, since any pragmas occurring after the first
4390       --  alternative are absorbed into the corresponding statement sequence.
4391
4392       --  N_Case_Statement
4393       --  Sloc points to CASE
4394       --  Expression (Node3)
4395       --  Alternatives (List4)
4396       --  End_Span (Uint5) (set to Uint_0 if expander generated)
4397
4398       --  Note: Before Ada 2012, a pragma in a statement sequence is always
4399       --  followed by a statement, and this is true in the tree even in Ada
4400       --  2012 mode (the parser inserts a null statement marked with the flag
4401       --  Comes_From_Source False).
4402
4403       -------------------------------------
4404       -- 5.4  Case Statement Alternative --
4405       -------------------------------------
4406
4407       --  CASE_STATEMENT_ALTERNATIVE ::=
4408       --    when DISCRETE_CHOICE_LIST =>
4409       --      SEQUENCE_OF_STATEMENTS
4410
4411       --  N_Case_Statement_Alternative
4412       --  Sloc points to WHEN
4413       --  Discrete_Choices (List4)
4414       --  Statements (List3)
4415       --  Has_SP_Choice (Flag15-Sem)
4416
4417       --  Note: in the list of Discrete_Choices, the tree passed to the back
4418       --  end does not have choice entries corresponding to names of statically
4419       --  predicated subtypes. Such entries are always expanded out to the list
4420       --  of equivalent values or ranges. The ASIS tree generated in -gnatct
4421       --  mode does not have this expansion, and has the original choices.
4422
4423       -------------------------
4424       -- 5.5  Loop Statement --
4425       -------------------------
4426
4427       --  LOOP_STATEMENT ::=
4428       --    [loop_STATEMENT_IDENTIFIER :]
4429       --      [ITERATION_SCHEME] loop
4430       --        SEQUENCE_OF_STATEMENTS
4431       --      end loop [loop_IDENTIFIER];
4432
4433       --  Note: The occurrence of a loop label is not a defining identifier
4434       --  but rather a referencing occurrence. The defining occurrence is in
4435       --  the implicit label declaration which occurs in the innermost
4436       --  enclosing block.
4437
4438       --  Note: there is always a loop statement identifier present in
4439       --  the tree, even if none was given in the source. In the case where
4440       --  no loop identifier is given in the source, the parser creates
4441       --  a name of the form _Loop_n, where n is a decimal integer (the
4442       --  two underlines ensure that the loop names created in this manner
4443       --  do not conflict with any user defined identifiers), and the flag
4444       --  Has_Created_Identifier is set to True. The only exception to the
4445       --  rule that all loop statement nodes have identifiers occurs for
4446       --  loops constructed by the expander, and the semantic analyzer will
4447       --  create and supply dummy loop identifiers in these cases.
4448
4449       --  N_Loop_Statement
4450       --  Sloc points to LOOP
4451       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
4452       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4453       --  Statements (List3)
4454       --  End_Label (Node4)
4455       --  Has_Created_Identifier (Flag15)
4456       --  Is_Null_Loop (Flag16)
4457       --  Suppress_Loop_Warnings (Flag17)
4458
4459       --  Note: the parser fills in the Identifier field if there is an
4460       --  explicit loop identifier. Otherwise the parser leaves this field
4461       --  set to Empty, and then the semantic processing for a loop statement
4462       --  creates an identifier, setting the Has_Created_Identifier flag to
4463       --  True. So after semantic analysis, the Identifier is always set,
4464       --  referencing an identifier whose entity has an Ekind of E_Loop.
4465
4466       ---------------------------
4467       -- 5.5  Iteration Scheme --
4468       ---------------------------
4469
4470       --  ITERATION_SCHEME ::=
4471       --    while CONDITION
4472       --  | for LOOP_PARAMETER_SPECIFICATION
4473       --  | for ITERATOR_SPECIFICATION
4474
4475       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
4476       --  is present at a time, in which case the other one is empty. Both are
4477       --  empty in the case of a WHILE loop.
4478
4479       --  Gigi restriction: This expander ensures that the type of the
4480       --  Condition field is always Standard.Boolean, even if the type
4481       --  in the source is some non-standard boolean type.
4482
4483       --  N_Iteration_Scheme
4484       --  Sloc points to WHILE or FOR
4485       --  Condition (Node1) (set to Empty if FOR case)
4486       --  Condition_Actions (List3-Sem)
4487       --  Iterator_Specification (Node2) (set to Empty if WHILE case)
4488       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4489
4490       ---------------------------------------
4491       -- 5.5  Loop Parameter Specification --
4492       ---------------------------------------
4493
4494       --  LOOP_PARAMETER_SPECIFICATION ::=
4495       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4496
4497       --  N_Loop_Parameter_Specification
4498       --  Sloc points to first identifier
4499       --  Defining_Identifier (Node1)
4500       --  Reverse_Present (Flag15)
4501       --  Discrete_Subtype_Definition (Node4)
4502
4503       -----------------------------------
4504       -- 5.5.1  Iterator Specification --
4505       -----------------------------------
4506
4507       --  ITERATOR_SPECIFICATION ::=
4508       --    DEFINING_IDENTIFIER in [reverse] NAME
4509       --  | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4510
4511       --  N_Iterator_Specification
4512       --  Sloc points to defining identifier
4513       --  Defining_Identifier (Node1)
4514       --  Name (Node2)
4515       --  Reverse_Present (Flag15)
4516       --  Of_Present (Flag16)
4517       --  Subtype_Indication (Node5)
4518
4519       --  Note: The Of_Present flag distinguishes the two forms
4520
4521       --------------------------
4522       -- 5.6  Block Statement --
4523       --------------------------
4524
4525       --  BLOCK_STATEMENT ::=
4526       --    [block_STATEMENT_IDENTIFIER:]
4527       --      [declare
4528       --        DECLARATIVE_PART]
4529       --      begin
4530       --        HANDLED_SEQUENCE_OF_STATEMENTS
4531       --      end [block_IDENTIFIER];
4532
4533       --  Note that the occurrence of a block identifier is not a defining
4534       --  identifier, but rather a referencing occurrence. The defining
4535       --  occurrence is an E_Block entity declared by the implicit label
4536       --  declaration which occurs in the innermost enclosing block statement
4537       --  or body; the block identifier denotes that E_Block.
4538
4539       --  For block statements that come from source code, there is always a
4540       --  block statement identifier present in the tree, denoting an
4541       --  E_Block. In the case where no block identifier is given in the
4542       --  source, the parser creates a name of the form B_n, where n is a
4543       --  decimal integer, and the flag Has_Created_Identifier is set to
4544       --  True. Blocks constructed by the expander usually have no identifier,
4545       --  and no corresponding entity.
4546
4547       --  Note: the block statement created for an extended return statement
4548       --  has an entity, and this entity is an E_Return_Statement, rather than
4549       --  the usual E_Block.
4550
4551       --  Note: Exception_Junk is set for the wrapping blocks created during
4552       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4553
4554       --  Note: from a control flow viewpoint, a block statement defines an
4555       --  extended basic block, i.e. the entry of the block dominates every
4556       --  statement in the sequence. When generating new statements with
4557       --  exception handlers in the expander at the end of a sequence that
4558       --  comes from source code, it can be necessary to wrap them all in a
4559       --  block statement in order to expose the implicit control flow to
4560       --  gigi and thus prevent it from issuing bogus control flow warnings.
4561
4562       --  N_Block_Statement
4563       --  Sloc points to DECLARE or BEGIN
4564       --  Identifier (Node1) block direct name (set to Empty if not present)
4565       --  Declarations (List2) (set to No_List if no DECLARE part)
4566       --  Handled_Statement_Sequence (Node4)
4567       --  Is_Task_Master (Flag5-Sem)
4568       --  Activation_Chain_Entity (Node3-Sem)
4569       --  Has_Created_Identifier (Flag15)
4570       --  Is_Task_Allocation_Block (Flag6)
4571       --  Is_Asynchronous_Call_Block (Flag7)
4572       --  Exception_Junk (Flag8-Sem)
4573       --  Is_Finalization_Wrapper (Flag9-Sem)
4574
4575       -------------------------
4576       -- 5.7  Exit Statement --
4577       -------------------------
4578
4579       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4580
4581       --  Gigi restriction: This expander ensures that the type of the
4582       --  Condition field is always Standard.Boolean, even if the type
4583       --  in the source is some non-standard boolean type.
4584
4585       --  N_Exit_Statement
4586       --  Sloc points to EXIT
4587       --  Name (Node2) (set to Empty if no loop name present)
4588       --  Condition (Node1) (set to Empty if no WHEN part present)
4589       --  Next_Exit_Statement (Node3-Sem): Next exit on chain
4590
4591       -------------------------
4592       -- 5.9  Goto Statement --
4593       -------------------------
4594
4595       --  GOTO_STATEMENT ::= goto label_NAME;
4596
4597       --  N_Goto_Statement
4598       --  Sloc points to GOTO
4599       --  Name (Node2)
4600       --  Exception_Junk (Flag8-Sem)
4601
4602       ---------------------------------
4603       -- 6.1  Subprogram Declaration --
4604       ---------------------------------
4605
4606       --  SUBPROGRAM_DECLARATION ::=
4607       --    SUBPROGRAM_SPECIFICATION
4608       --      [ASPECT_SPECIFICATIONS];
4609
4610       --  N_Subprogram_Declaration
4611       --  Sloc points to FUNCTION or PROCEDURE
4612       --  Specification (Node1)
4613       --  Body_To_Inline (Node3-Sem)
4614       --  Corresponding_Body (Node5-Sem)
4615       --  Parent_Spec (Node4-Sem)
4616
4617       ------------------------------------------
4618       -- 6.1  Abstract Subprogram Declaration --
4619       ------------------------------------------
4620
4621       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4622       --    SUBPROGRAM_SPECIFICATION is abstract
4623       --      [ASPECT_SPECIFICATIONS];
4624
4625       --  N_Abstract_Subprogram_Declaration
4626       --  Sloc points to ABSTRACT
4627       --  Specification (Node1)
4628
4629       -----------------------------------
4630       -- 6.1  Subprogram Specification --
4631       -----------------------------------
4632
4633       --  SUBPROGRAM_SPECIFICATION ::=
4634       --    [[not] overriding]
4635       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4636       --  | [[not] overriding]
4637       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4638
4639       --  Note: there are no separate nodes for the profiles, instead the
4640       --  information appears directly in the following nodes.
4641
4642       --  N_Function_Specification
4643       --  Sloc points to FUNCTION
4644       --  Defining_Unit_Name (Node1) (the designator)
4645       --  Elaboration_Boolean (Node2-Sem)
4646       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4647       --  Null_Exclusion_Present (Flag11)
4648       --  Result_Definition (Node4) for result subtype
4649       --  Generic_Parent (Node5-Sem)
4650       --  Must_Override (Flag14) set if overriding indicator present
4651       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4652
4653       --  N_Procedure_Specification
4654       --  Sloc points to PROCEDURE
4655       --  Defining_Unit_Name (Node1)
4656       --  Elaboration_Boolean (Node2-Sem)
4657       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4658       --  Generic_Parent (Node5-Sem)
4659       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4660       --  Must_Override (Flag14) set if overriding indicator present
4661       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4662
4663       --  Note: overriding indicator is an Ada 2005 feature
4664
4665       ---------------------
4666       -- 6.1  Designator --
4667       ---------------------
4668
4669       --  DESIGNATOR ::=
4670       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4671
4672       --  Designators that are simply identifiers or operator symbols appear
4673       --  directly in the tree in this form. The following node is used only
4674       --  in the case where the designator has a parent unit name component.
4675
4676       --  N_Designator
4677       --  Sloc points to period
4678       --  Name (Node2) holds the parent unit name. Note that this is always
4679       --   non-Empty, since this node is only used for the case where a
4680       --   parent library unit package name is present.
4681       --  Identifier (Node1)
4682
4683       --  Note that the identifier can also be an operator symbol here
4684
4685       ------------------------------
4686       -- 6.1  Defining Designator --
4687       ------------------------------
4688
4689       --  DEFINING_DESIGNATOR ::=
4690       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4691
4692       -------------------------------------
4693       -- 6.1  Defining Program Unit Name --
4694       -------------------------------------
4695
4696       --  DEFINING_PROGRAM_UNIT_NAME ::=
4697       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4698
4699       --  The parent unit name is present only in the case of a child unit
4700       --  name (permissible only for Ada 95 for a library level unit, i.e.
4701       --  a unit at scope level one). If no such name is present, the defining
4702       --  program unit name is represented simply as the defining identifier.
4703       --  In the child unit case, the following node is used to represent the
4704       --  child unit name.
4705
4706       --  N_Defining_Program_Unit_Name
4707       --  Sloc points to period
4708       --  Name (Node2) holds the parent unit name. Note that this is always
4709       --   non-Empty, since this node is only used for the case where a
4710       --   parent unit name is present.
4711       --  Defining_Identifier (Node1)
4712
4713       --------------------------
4714       -- 6.1  Operator Symbol --
4715       --------------------------
4716
4717       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4718
4719       --  Note: the fields of the N_Operator_Symbol node are laid out to
4720       --  match the corresponding fields of an N_Character_Literal node. This
4721       --  allows easy conversion of the operator symbol node into a character
4722       --  literal node in the case where a string constant of the form of an
4723       --  operator symbol is scanned out as such, but turns out semantically
4724       --  to be a string literal that is not an operator. For details see
4725       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4726
4727       --  N_Operator_Symbol
4728       --  Sloc points to literal
4729       --  Chars (Name1) contains the Name_Id for the operator symbol
4730       --  Strval (Str3) Id of string value. This is used if the operator
4731       --   symbol turns out to be a normal string after all.
4732       --  Entity (Node4-Sem)
4733       --  Associated_Node (Node4-Sem)
4734       --  Has_Private_View (Flag11-Sem) set in generic units.
4735       --  Etype (Node5-Sem)
4736
4737       --  Note: the Strval field may be set to No_String for generated
4738       --  operator symbols that are known not to be string literals
4739       --  semantically.
4740
4741       -----------------------------------
4742       -- 6.1  Defining Operator Symbol --
4743       -----------------------------------
4744
4745       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4746
4747       --  A defining operator symbol is an entity, which has additional
4748       --  fields depending on the setting of the Ekind field. These
4749       --  additional fields are defined (and access subprograms declared)
4750       --  in package Einfo.
4751
4752       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4753       --  are deliberately layed out to match the layout of fields in an
4754       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4755       --  an operator symbol node into a defining operator symbol node.
4756       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4757       --  for further details.
4758
4759       --  N_Defining_Operator_Symbol
4760       --  Sloc points to literal
4761       --  Chars (Name1) contains the Name_Id for the operator symbol
4762       --  Next_Entity (Node2-Sem)
4763       --  Scope (Node3-Sem)
4764       --  Etype (Node5-Sem)
4765
4766       ----------------------------
4767       -- 6.1  Parameter Profile --
4768       ----------------------------
4769
4770       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4771
4772       ---------------------------------------
4773       -- 6.1  Parameter and Result Profile --
4774       ---------------------------------------
4775
4776       --  PARAMETER_AND_RESULT_PROFILE ::=
4777       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4778       --  | [FORMAL_PART] return ACCESS_DEFINITION
4779
4780       --  There is no explicit node in the tree for a parameter and result
4781       --  profile. Instead the information appears directly in the parent.
4782
4783       ----------------------
4784       -- 6.1  Formal Part --
4785       ----------------------
4786
4787       --  FORMAL_PART ::=
4788       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4789
4790       ----------------------------------
4791       -- 6.1  Parameter Specification --
4792       ----------------------------------
4793
4794       --  PARAMETER_SPECIFICATION ::=
4795       --    DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4796       --      SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4797       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4798       --      [:= DEFAULT_EXPRESSION]
4799
4800       --  Although the syntax allows multiple identifiers in the list, the
4801       --  semantics is as though successive specifications were given with
4802       --  identical type definition and expression components. To simplify
4803       --  semantic processing, the parser represents a multiple declaration
4804       --  case as a sequence of single Specifications, using the More_Ids and
4805       --  Prev_Ids flags to preserve the original source form as described
4806       --  in the section on "Handling of Defining Identifier Lists".
4807
4808       --  ALIASED can only be present in Ada 2012 mode
4809
4810       --  N_Parameter_Specification
4811       --  Sloc points to first identifier
4812       --  Defining_Identifier (Node1)
4813       --  Aliased_Present (Flag4)
4814       --  In_Present (Flag15)
4815       --  Out_Present (Flag17)
4816       --  Null_Exclusion_Present (Flag11)
4817       --  Parameter_Type (Node2) subtype mark or access definition
4818       --  Expression (Node3) (set to Empty if no default expression present)
4819       --  Do_Accessibility_Check (Flag13-Sem)
4820       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4821       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4822       --  Default_Expression (Node5-Sem)
4823
4824       ---------------
4825       -- 6.1  Mode --
4826       ---------------
4827
4828       --  MODE ::= [in] | in out | out
4829
4830       --  There is no explicit node in the tree for the Mode. Instead the
4831       --  In_Present and Out_Present flags are set in the parent node to
4832       --  record the presence of keywords specifying the mode.
4833
4834       --------------------------
4835       -- 6.3  Subprogram Body --
4836       --------------------------
4837
4838       --  SUBPROGRAM_BODY ::=
4839       --    SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
4840       --      DECLARATIVE_PART
4841       --    begin
4842       --      HANDLED_SEQUENCE_OF_STATEMENTS
4843       --    end [DESIGNATOR];
4844
4845       --  N_Subprogram_Body
4846       --  Sloc points to FUNCTION or PROCEDURE
4847       --  Specification (Node1)
4848       --  Declarations (List2)
4849       --  Handled_Statement_Sequence (Node4)
4850       --  Activation_Chain_Entity (Node3-Sem)
4851       --  Corresponding_Spec (Node5-Sem)
4852       --  Acts_As_Spec (Flag4-Sem)
4853       --  Bad_Is_Detected (Flag15) used only by parser
4854       --  Do_Storage_Check (Flag17-Sem)
4855       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4856       --  Is_Entry_Barrier_Function (Flag8-Sem)
4857       --  Is_Task_Master (Flag5-Sem)
4858       --  Was_Originally_Stub (Flag13-Sem)
4859       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4860
4861       -------------------------
4862       -- Expression Function --
4863       -------------------------
4864
4865       --  This is an Ada 2012 extension, we put it here for now, to be labeled
4866       --  and put in its proper section when we know exactly where that is!
4867
4868       --  EXPRESSION_FUNCTION ::=
4869       --    FUNCTION SPECIFICATION IS (EXPRESSION)
4870       --      [ASPECT_SPECIFICATIONS];
4871
4872       --  N_Expression_Function
4873       --  Sloc points to FUNCTION
4874       --  Specification (Node1)
4875       --  Expression (Node3)
4876       --  Corresponding_Spec (Node5-Sem)
4877
4878       -----------------------------------
4879       -- 6.4  Procedure Call Statement --
4880       -----------------------------------
4881
4882       --  PROCEDURE_CALL_STATEMENT ::=
4883       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4884
4885       --  Note: the reason that a procedure call has expression fields is
4886       --  that it semantically resembles an expression, e.g. overloading is
4887       --  allowed and a type is concocted for semantic processing purposes.
4888       --  Certain of these fields, such as Parens are not relevant, but it
4889       --  is easier to just supply all of them together!
4890
4891       --  N_Procedure_Call_Statement
4892       --  Sloc points to first token of name or prefix
4893       --  Name (Node2) stores name or prefix
4894       --  Parameter_Associations (List3) (set to No_List if no
4895       --   actual parameter part)
4896       --  First_Named_Actual (Node4-Sem)
4897       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4898       --  Do_Tag_Check (Flag13-Sem)
4899       --  No_Elaboration_Check (Flag14-Sem)
4900       --  Parameter_List_Truncated (Flag17-Sem)
4901       --  ABE_Is_Certain (Flag18-Sem)
4902       --  plus fields for expression
4903
4904       --  If any IN parameter requires a range check, then the corresponding
4905       --  argument expression has the Do_Range_Check flag set, and the range
4906       --  check is done against the formal type. Note that this argument
4907       --  expression may appear directly in the Parameter_Associations list,
4908       --  or may be a descendent of an N_Parameter_Association node that
4909       --  appears in this list.
4910
4911       ------------------------
4912       -- 6.4  Function Call --
4913       ------------------------
4914
4915       --  FUNCTION_CALL ::=
4916       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4917
4918       --  Note: the parser may generate an indexed component node or simply
4919       --  a name node instead of a function call node. The semantic pass must
4920       --  correct this misidentification.
4921
4922       --  N_Function_Call
4923       --  Sloc points to first token of name or prefix
4924       --  Name (Node2) stores name or prefix
4925       --  Parameter_Associations (List3) (set to No_List if no
4926       --   actual parameter part)
4927       --  First_Named_Actual (Node4-Sem)
4928       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4929       --  In_Assertion_Expression (Flag4-Sem)
4930       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4931       --  Do_Tag_Check (Flag13-Sem)
4932       --  No_Elaboration_Check (Flag14-Sem)
4933       --  Parameter_List_Truncated (Flag17-Sem)
4934       --  ABE_Is_Certain (Flag18-Sem)
4935       --  plus fields for expression
4936
4937       --------------------------------
4938       -- 6.4  Actual Parameter Part --
4939       --------------------------------
4940
4941       --  ACTUAL_PARAMETER_PART ::=
4942       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4943
4944       --------------------------------
4945       -- 6.4  Parameter Association --
4946       --------------------------------
4947
4948       --  PARAMETER_ASSOCIATION ::=
4949       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4950
4951       --  Note: the N_Parameter_Association node is built only if a formal
4952       --  parameter selector name is present, otherwise the parameter
4953       --  association appears in the tree simply as the node for the
4954       --  explicit actual parameter.
4955
4956       --  N_Parameter_Association
4957       --  Sloc points to formal parameter
4958       --  Selector_Name (Node2) (always non-Empty)
4959       --  Explicit_Actual_Parameter (Node3)
4960       --  Next_Named_Actual (Node4-Sem)
4961       --  Is_Accessibility_Actual (Flag13-Sem)
4962
4963       ---------------------------
4964       -- 6.4  Actual Parameter --
4965       ---------------------------
4966
4967       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4968
4969       ---------------------------
4970       -- 6.5  Return Statement --
4971       ---------------------------
4972
4973       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4974
4975       --  EXTENDED_RETURN_STATEMENT ::=
4976       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4977       --                                           [:= EXPRESSION] [do
4978       --      HANDLED_SEQUENCE_OF_STATEMENTS
4979       --    end return];
4980
4981       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4982
4983       --  The term "return statement" is defined in 6.5 to mean either a
4984       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
4985       --  the use of this term, since it used to mean someting else in earlier
4986       --  versions of Ada.
4987
4988       --  N_Simple_Return_Statement
4989       --  Sloc points to RETURN
4990       --  Return_Statement_Entity (Node5-Sem)
4991       --  Expression (Node3) (set to Empty if no expression present)
4992       --  Storage_Pool (Node1-Sem)
4993       --  Procedure_To_Call (Node2-Sem)
4994       --  Do_Tag_Check (Flag13-Sem)
4995       --  By_Ref (Flag5-Sem)
4996       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4997
4998       --  Note: Return_Statement_Entity points to an E_Return_Statement
4999
5000       --  If a range check is required, then Do_Range_Check is set on the
5001       --  Expression. The check is against the return subtype of the function.
5002
5003       --  N_Extended_Return_Statement
5004       --  Sloc points to RETURN
5005       --  Return_Statement_Entity (Node5-Sem)
5006       --  Return_Object_Declarations (List3)
5007       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
5008       --  Storage_Pool (Node1-Sem)
5009       --  Procedure_To_Call (Node2-Sem)
5010       --  Do_Tag_Check (Flag13-Sem)
5011       --  By_Ref (Flag5-Sem)
5012
5013       --  Note: Return_Statement_Entity points to an E_Return_Statement.
5014
5015       --  Note that Return_Object_Declarations is a list containing the
5016       --  N_Object_Declaration -- see comment on this field above.
5017
5018       --  The declared object will have Is_Return_Object = True.
5019
5020       --  There is no such syntactic category as return_object_declaration
5021       --  in the RM. Return_Object_Declarations represents this portion of
5022       --  the syntax for EXTENDED_RETURN_STATEMENT:
5023       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5024       --                                      [:= EXPRESSION]
5025
5026       --  There are two entities associated with an extended_return_statement:
5027       --  the Return_Statement_Entity represents the statement itself, and the
5028       --  Defining_Identifier of the Object_Declaration in
5029       --  Return_Object_Declarations represents the object being
5030       --  returned. N_Simple_Return_Statement has only the former.
5031
5032       ------------------------------
5033       -- 7.1  Package Declaration --
5034       ------------------------------
5035
5036       --  PACKAGE_DECLARATION ::=
5037       --    PACKAGE_SPECIFICATION;
5038
5039       --  Note: the activation chain entity for a package spec is used for
5040       --  all tasks declared in the package spec, or in the package body.
5041
5042       --  N_Package_Declaration
5043       --  Sloc points to PACKAGE
5044       --  Specification (Node1)
5045       --  Corresponding_Body (Node5-Sem)
5046       --  Parent_Spec (Node4-Sem)
5047       --  Activation_Chain_Entity (Node3-Sem)
5048
5049       --------------------------------
5050       -- 7.1  Package Specification --
5051       --------------------------------
5052
5053       --  PACKAGE_SPECIFICATION ::=
5054       --    package DEFINING_PROGRAM_UNIT_NAME
5055       --      [ASPECT_SPECIFICATIONS]
5056       --    is
5057       --      {BASIC_DECLARATIVE_ITEM}
5058       --    [private
5059       --      {BASIC_DECLARATIVE_ITEM}]
5060       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
5061
5062       --  N_Package_Specification
5063       --  Sloc points to PACKAGE
5064       --  Defining_Unit_Name (Node1)
5065       --  Visible_Declarations (List2)
5066       --  Private_Declarations (List3) (set to No_List if no private
5067       --   part present)
5068       --  End_Label (Node4)
5069       --  Generic_Parent (Node5-Sem)
5070       --  Limited_View_Installed (Flag18-Sem)
5071
5072       -----------------------
5073       -- 7.1  Package Body --
5074       -----------------------
5075
5076       --  PACKAGE_BODY ::=
5077       --    package body DEFINING_PROGRAM_UNIT_NAME
5078       --      [ASPECT_SPECIFICATIONS]
5079       --    is
5080       --      DECLARATIVE_PART
5081       --    [begin
5082       --      HANDLED_SEQUENCE_OF_STATEMENTS]
5083       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
5084
5085       --  N_Package_Body
5086       --  Sloc points to PACKAGE
5087       --  Defining_Unit_Name (Node1)
5088       --  Declarations (List2)
5089       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5090       --  Corresponding_Spec (Node5-Sem)
5091       --  Was_Originally_Stub (Flag13-Sem)
5092
5093       --  Note: if a source level package does not contain a handled sequence
5094       --  of statements, then the parser supplies a dummy one with a null
5095       --  sequence of statements. Comes_From_Source will be False in this
5096       --  constructed sequence. The reason we need this is for the End_Label
5097       --  field in the HSS.
5098
5099       -----------------------------------
5100       -- 7.4  Private Type Declaration --
5101       -----------------------------------
5102
5103       --  PRIVATE_TYPE_DECLARATION ::=
5104       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5105       --      is [[abstract] tagged] [limited] private
5106       --        [ASPECT_SPECIFICATIONS];
5107
5108       --  Note: TAGGED is not permitted in Ada 83 mode
5109
5110       --  N_Private_Type_Declaration
5111       --  Sloc points to TYPE
5112       --  Defining_Identifier (Node1)
5113       --  Discriminant_Specifications (List4) (set to No_List if no
5114       --   discriminant part)
5115       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5116       --  Abstract_Present (Flag4)
5117       --  Tagged_Present (Flag15)
5118       --  Limited_Present (Flag17)
5119
5120       ----------------------------------------
5121       -- 7.4  Private Extension Declaration --
5122       ----------------------------------------
5123
5124       --  PRIVATE_EXTENSION_DECLARATION ::=
5125       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5126       --      [abstract] [limited | synchronized]
5127       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5128       --           with private [ASPECT_SPECIFICATIONS];
5129
5130       --  Note: LIMITED, and private extension declarations are not allowed
5131       --        in Ada 83 mode.
5132
5133       --  N_Private_Extension_Declaration
5134       --  Sloc points to TYPE
5135       --  Defining_Identifier (Node1)
5136       --  Discriminant_Specifications (List4) (set to No_List if no
5137       --   discriminant part)
5138       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5139       --  Abstract_Present (Flag4)
5140       --  Limited_Present (Flag17)
5141       --  Synchronized_Present (Flag7)
5142       --  Subtype_Indication (Node5)
5143       --  Interface_List (List2) (set to No_List if none)
5144
5145       ---------------------
5146       -- 8.4  Use Clause --
5147       ---------------------
5148
5149       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5150
5151       -----------------------------
5152       -- 8.4  Use Package Clause --
5153       -----------------------------
5154
5155       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5156
5157       --  N_Use_Package_Clause
5158       --  Sloc points to USE
5159       --  Names (List2)
5160       --  Next_Use_Clause (Node3-Sem)
5161       --  Hidden_By_Use_Clause (Elist4-Sem)
5162
5163       --------------------------
5164       -- 8.4  Use Type Clause --
5165       --------------------------
5166
5167       --  USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5168
5169       --  Note: use type clause is not permitted in Ada 83 mode
5170
5171       --  Note: the ALL keyword can appear only in Ada 2012 mode
5172
5173       --  N_Use_Type_Clause
5174       --  Sloc points to USE
5175       --  Subtype_Marks (List2)
5176       --  Next_Use_Clause (Node3-Sem)
5177       --  Hidden_By_Use_Clause (Elist4-Sem)
5178       --  Used_Operations (Elist5-Sem)
5179       --  All_Present (Flag15)
5180
5181       -------------------------------
5182       -- 8.5  Renaming Declaration --
5183       -------------------------------
5184
5185       --  RENAMING_DECLARATION ::=
5186       --    OBJECT_RENAMING_DECLARATION
5187       --  | EXCEPTION_RENAMING_DECLARATION
5188       --  | PACKAGE_RENAMING_DECLARATION
5189       --  | SUBPROGRAM_RENAMING_DECLARATION
5190       --  | GENERIC_RENAMING_DECLARATION
5191
5192       --------------------------------------
5193       -- 8.5  Object Renaming Declaration --
5194       --------------------------------------
5195
5196       --  OBJECT_RENAMING_DECLARATION ::=
5197       --    DEFINING_IDENTIFIER :
5198       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5199       --        [ASPECT_SPECIFICATIONS];
5200       --  | DEFINING_IDENTIFIER :
5201       --      ACCESS_DEFINITION renames object_NAME
5202       --        [ASPECT_SPECIFICATIONS];
5203
5204       --  Note: Access_Definition is an optional field that gives support to
5205       --  Ada 2005 (AI-230). The parser generates nodes that have either the
5206       --  Subtype_Indication field or else the Access_Definition field.
5207
5208       --  N_Object_Renaming_Declaration
5209       --  Sloc points to first identifier
5210       --  Defining_Identifier (Node1)
5211       --  Null_Exclusion_Present (Flag11) (set to False if not present)
5212       --  Subtype_Mark (Node4) (set to Empty if not present)
5213       --  Access_Definition (Node3) (set to Empty if not present)
5214       --  Name (Node2)
5215       --  Corresponding_Generic_Association (Node5-Sem)
5216
5217       -----------------------------------------
5218       -- 8.5  Exception Renaming Declaration --
5219       -----------------------------------------
5220
5221       --  EXCEPTION_RENAMING_DECLARATION ::=
5222       --    DEFINING_IDENTIFIER : exception renames exception_NAME
5223       --      [ASPECT_SPECIFICATIONS];
5224
5225       --  N_Exception_Renaming_Declaration
5226       --  Sloc points to first identifier
5227       --  Defining_Identifier (Node1)
5228       --  Name (Node2)
5229
5230       ---------------------------------------
5231       -- 8.5  Package Renaming Declaration --
5232       ---------------------------------------
5233
5234       --  PACKAGE_RENAMING_DECLARATION ::=
5235       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5236       --      [ASPECT_SPECIFICATIONS];
5237
5238       --  N_Package_Renaming_Declaration
5239       --  Sloc points to PACKAGE
5240       --  Defining_Unit_Name (Node1)
5241       --  Name (Node2)
5242       --  Parent_Spec (Node4-Sem)
5243
5244       ------------------------------------------
5245       -- 8.5  Subprogram Renaming Declaration --
5246       ------------------------------------------
5247
5248       --  SUBPROGRAM_RENAMING_DECLARATION ::=
5249       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5250       --      [ASPECT_SPECIFICATIONS];
5251
5252       --  N_Subprogram_Renaming_Declaration
5253       --  Sloc points to RENAMES
5254       --  Specification (Node1)
5255       --  Name (Node2)
5256       --  Parent_Spec (Node4-Sem)
5257       --  Corresponding_Spec (Node5-Sem)
5258       --  Corresponding_Formal_Spec (Node3-Sem)
5259       --  From_Default (Flag6-Sem)
5260
5261       -----------------------------------------
5262       -- 8.5.5  Generic Renaming Declaration --
5263       -----------------------------------------
5264
5265       --  GENERIC_RENAMING_DECLARATION ::=
5266       --    generic package DEFINING_PROGRAM_UNIT_NAME
5267       --      renames generic_package_NAME
5268       --        [ASPECT_SPECIFICATIONS];
5269       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
5270       --      renames generic_procedure_NAME
5271       --        [ASPECT_SPECIFICATIONS];
5272       --  | generic function DEFINING_PROGRAM_UNIT_NAME
5273       --      renames generic_function_NAME
5274       --        [ASPECT_SPECIFICATIONS];
5275
5276       --  N_Generic_Package_Renaming_Declaration
5277       --  Sloc points to GENERIC
5278       --  Defining_Unit_Name (Node1)
5279       --  Name (Node2)
5280       --  Parent_Spec (Node4-Sem)
5281
5282       --  N_Generic_Procedure_Renaming_Declaration
5283       --  Sloc points to GENERIC
5284       --  Defining_Unit_Name (Node1)
5285       --  Name (Node2)
5286       --  Parent_Spec (Node4-Sem)
5287
5288       --  N_Generic_Function_Renaming_Declaration
5289       --  Sloc points to GENERIC
5290       --  Defining_Unit_Name (Node1)
5291       --  Name (Node2)
5292       --  Parent_Spec (Node4-Sem)
5293
5294       --------------------------------
5295       -- 9.1  Task Type Declaration --
5296       --------------------------------
5297
5298       --  TASK_TYPE_DECLARATION ::=
5299       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5300       --      [ASPECT_SPECIFICATIONS]
5301       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5302
5303       --  N_Task_Type_Declaration
5304       --  Sloc points to TASK
5305       --  Defining_Identifier (Node1)
5306       --  Discriminant_Specifications (List4) (set to No_List if no
5307       --   discriminant part)
5308       --  Interface_List (List2) (set to No_List if none)
5309       --  Task_Definition (Node3) (set to Empty if not present)
5310       --  Corresponding_Body (Node5-Sem)
5311
5312       ----------------------------------
5313       -- 9.1  Single Task Declaration --
5314       ----------------------------------
5315
5316       --  SINGLE_TASK_DECLARATION ::=
5317       --    task DEFINING_IDENTIFIER
5318       --      [ASPECT_SPECIFICATIONS]
5319       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5320
5321       --  N_Single_Task_Declaration
5322       --  Sloc points to TASK
5323       --  Defining_Identifier (Node1)
5324       --  Interface_List (List2) (set to No_List if none)
5325       --  Task_Definition (Node3) (set to Empty if not present)
5326
5327       --------------------------
5328       -- 9.1  Task Definition --
5329       --------------------------
5330
5331       --  TASK_DEFINITION ::=
5332       --      {TASK_ITEM}
5333       --    [private
5334       --      {TASK_ITEM}]
5335       --    end [task_IDENTIFIER]
5336
5337       --  Note: as a result of semantic analysis, the list of task items can
5338       --  include implicit type declarations resulting from entry families.
5339
5340       --  N_Task_Definition
5341       --  Sloc points to first token of task definition
5342       --  Visible_Declarations (List2)
5343       --  Private_Declarations (List3) (set to No_List if no private part)
5344       --  End_Label (Node4)
5345       --  Has_Storage_Size_Pragma (Flag5-Sem)
5346       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
5347
5348       --------------------
5349       -- 9.1  Task Item --
5350       --------------------
5351
5352       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5353
5354       --------------------
5355       -- 9.1  Task Body --
5356       --------------------
5357
5358       --  TASK_BODY ::=
5359       --    task body task_DEFINING_IDENTIFIER
5360       --      [ASPECT_SPECIFICATIONS]
5361       --    is
5362       --      DECLARATIVE_PART
5363       --    begin
5364       --      HANDLED_SEQUENCE_OF_STATEMENTS
5365       --    end [task_IDENTIFIER];
5366
5367       --  Gigi restriction: This node never appears
5368
5369       --  N_Task_Body
5370       --  Sloc points to TASK
5371       --  Defining_Identifier (Node1)
5372       --  Declarations (List2)
5373       --  Handled_Statement_Sequence (Node4)
5374       --  Is_Task_Master (Flag5-Sem)
5375       --  Activation_Chain_Entity (Node3-Sem)
5376       --  Corresponding_Spec (Node5-Sem)
5377       --  Was_Originally_Stub (Flag13-Sem)
5378
5379       -------------------------------------
5380       -- 9.4  Protected Type Declaration --
5381       -------------------------------------
5382
5383       --  PROTECTED_TYPE_DECLARATION ::=
5384       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5385       --      [ASPECT_SPECIFICATIONS]
5386       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5387
5388       --  Note: protected type declarations are not permitted in Ada 83 mode
5389
5390       --  N_Protected_Type_Declaration
5391       --  Sloc points to PROTECTED
5392       --  Defining_Identifier (Node1)
5393       --  Discriminant_Specifications (List4) (set to No_List if no
5394       --   discriminant part)
5395       --  Interface_List (List2) (set to No_List if none)
5396       --  Protected_Definition (Node3)
5397       --  Corresponding_Body (Node5-Sem)
5398
5399       ---------------------------------------
5400       -- 9.4  Single Protected Declaration --
5401       ---------------------------------------
5402
5403       --  SINGLE_PROTECTED_DECLARATION ::=
5404       --    protected DEFINING_IDENTIFIER
5405       --      [ASPECT_SPECIFICATIONS]
5406       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5407
5408       --  Note: single protected declarations are not allowed in Ada 83 mode
5409
5410       --  N_Single_Protected_Declaration
5411       --  Sloc points to PROTECTED
5412       --  Defining_Identifier (Node1)
5413       --  Interface_List (List2) (set to No_List if none)
5414       --  Protected_Definition (Node3)
5415
5416       -------------------------------
5417       -- 9.4  Protected Definition --
5418       -------------------------------
5419
5420       --  PROTECTED_DEFINITION ::=
5421       --      {PROTECTED_OPERATION_DECLARATION}
5422       --    [private
5423       --      {PROTECTED_ELEMENT_DECLARATION}]
5424       --    end [protected_IDENTIFIER]
5425
5426       --  N_Protected_Definition
5427       --  Sloc points to first token of protected definition
5428       --  Visible_Declarations (List2)
5429       --  Private_Declarations (List3) (set to No_List if no private part)
5430       --  End_Label (Node4)
5431
5432       ------------------------------------------
5433       -- 9.4  Protected Operation Declaration --
5434       ------------------------------------------
5435
5436       --  PROTECTED_OPERATION_DECLARATION ::=
5437       --    SUBPROGRAM_DECLARATION
5438       --  | ENTRY_DECLARATION
5439       --  | REPRESENTATION_CLAUSE
5440
5441       ----------------------------------------
5442       -- 9.4  Protected Element Declaration --
5443       ----------------------------------------
5444
5445       --  PROTECTED_ELEMENT_DECLARATION ::=
5446       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5447
5448       -------------------------
5449       -- 9.4  Protected Body --
5450       -------------------------
5451
5452       --  PROTECTED_BODY ::=
5453       --    protected body DEFINING_IDENTIFIER
5454       --      [ASPECT_SPECIFICATIONS];
5455       --    is
5456       --      {PROTECTED_OPERATION_ITEM}
5457       --    end [protected_IDENTIFIER];
5458
5459       --  Note: protected bodies are not allowed in Ada 83 mode
5460
5461       --  Gigi restriction: This node never appears
5462
5463       --  N_Protected_Body
5464       --  Sloc points to PROTECTED
5465       --  Defining_Identifier (Node1)
5466       --  Declarations (List2) protected operation items (and pragmas)
5467       --  End_Label (Node4)
5468       --  Corresponding_Spec (Node5-Sem)
5469       --  Was_Originally_Stub (Flag13-Sem)
5470
5471       -----------------------------------
5472       -- 9.4  Protected Operation Item --
5473       -----------------------------------
5474
5475       --  PROTECTED_OPERATION_ITEM ::=
5476       --    SUBPROGRAM_DECLARATION
5477       --  | SUBPROGRAM_BODY
5478       --  | ENTRY_BODY
5479       --  | REPRESENTATION_CLAUSE
5480
5481       ------------------------------
5482       -- 9.5.2  Entry Declaration --
5483       ------------------------------
5484
5485       --  ENTRY_DECLARATION ::=
5486       --    [[not] overriding]
5487       --    entry DEFINING_IDENTIFIER
5488       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5489       --        [ASPECT_SPECIFICATIONS];
5490
5491       --  N_Entry_Declaration
5492       --  Sloc points to ENTRY
5493       --  Defining_Identifier (Node1)
5494       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5495       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5496       --  Corresponding_Body (Node5-Sem)
5497       --  Must_Override (Flag14) set if overriding indicator present
5498       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5499
5500       --  Note: overriding indicator is an Ada 2005 feature
5501
5502       -----------------------------
5503       -- 9.5.2  Accept statement --
5504       -----------------------------
5505
5506       --  ACCEPT_STATEMENT ::=
5507       --    accept entry_DIRECT_NAME
5508       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5509       --        HANDLED_SEQUENCE_OF_STATEMENTS
5510       --    end [entry_IDENTIFIER]];
5511
5512       --  Gigi restriction: This node never appears
5513
5514       --  Note: there are no explicit declarations allowed in an accept
5515       --  statement. However, the implicit declarations for any statement
5516       --  identifiers (labels and block/loop identifiers) are declarations
5517       --  that belong logically to the accept statement, and that is why
5518       --  there is a Declarations field in this node.
5519
5520       --  N_Accept_Statement
5521       --  Sloc points to ACCEPT
5522       --  Entry_Direct_Name (Node1)
5523       --  Entry_Index (Node5) (set to Empty if not present)
5524       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5525       --  Handled_Statement_Sequence (Node4)
5526       --  Declarations (List2) (set to No_List if no declarations)
5527
5528       ------------------------
5529       -- 9.5.2  Entry Index --
5530       ------------------------
5531
5532       --  ENTRY_INDEX ::= EXPRESSION
5533
5534       -----------------------
5535       -- 9.5.2  Entry Body --
5536       -----------------------
5537
5538       --  ENTRY_BODY ::=
5539       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5540       --      DECLARATIVE_PART
5541       --    begin
5542       --      HANDLED_SEQUENCE_OF_STATEMENTS
5543       --    end [entry_IDENTIFIER];
5544
5545       --  ENTRY_BARRIER ::= when CONDITION
5546
5547       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5548       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5549       --  too full (it would otherwise have too many fields)
5550
5551       --  Gigi restriction: This node never appears
5552
5553       --  N_Entry_Body
5554       --  Sloc points to ENTRY
5555       --  Defining_Identifier (Node1)
5556       --  Entry_Body_Formal_Part (Node5)
5557       --  Declarations (List2)
5558       --  Handled_Statement_Sequence (Node4)
5559       --  Activation_Chain_Entity (Node3-Sem)
5560
5561       -----------------------------------
5562       -- 9.5.2  Entry Body Formal Part --
5563       -----------------------------------
5564
5565       --  ENTRY_BODY_FORMAL_PART ::=
5566       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5567
5568       --  Note that an entry body formal part node is present even if it is
5569       --  empty. This reflects the grammar, in which it is the components of
5570       --  the entry body formal part that are optional, not the entry body
5571       --  formal part itself. Also this means that the barrier condition
5572       --  always has somewhere to be stored.
5573
5574       --  Gigi restriction: This node never appears
5575
5576       --  N_Entry_Body_Formal_Part
5577       --  Sloc points to first token
5578       --  Entry_Index_Specification (Node4) (set to Empty if not present)
5579       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5580       --  Condition (Node1) from entry barrier of entry body
5581
5582       --------------------------
5583       -- 9.5.2  Entry Barrier --
5584       --------------------------
5585
5586       --  ENTRY_BARRIER ::= when CONDITION
5587
5588       --------------------------------------
5589       -- 9.5.2  Entry Index Specification --
5590       --------------------------------------
5591
5592       --  ENTRY_INDEX_SPECIFICATION ::=
5593       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5594
5595       --  Gigi restriction: This node never appears
5596
5597       --  N_Entry_Index_Specification
5598       --  Sloc points to FOR
5599       --  Defining_Identifier (Node1)
5600       --  Discrete_Subtype_Definition (Node4)
5601
5602       ---------------------------------
5603       -- 9.5.3  Entry Call Statement --
5604       ---------------------------------
5605
5606       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5607
5608       --  The parser may generate a procedure call for this construct. The
5609       --  semantic pass must correct this misidentification where needed.
5610
5611       --  Gigi restriction: This node never appears
5612
5613       --  N_Entry_Call_Statement
5614       --  Sloc points to first token of name
5615       --  Name (Node2)
5616       --  Parameter_Associations (List3) (set to No_List if no
5617       --   actual parameter part)
5618       --  First_Named_Actual (Node4-Sem)
5619
5620       ------------------------------
5621       -- 9.5.4  Requeue Statement --
5622       ------------------------------
5623
5624       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5625
5626       --  Note: requeue statements are not permitted in Ada 83 mode
5627
5628       --  Gigi restriction: This node never appears
5629
5630       --  N_Requeue_Statement
5631       --  Sloc points to REQUEUE
5632       --  Name (Node2)
5633       --  Abort_Present (Flag15)
5634
5635       --------------------------
5636       -- 9.6  Delay Statement --
5637       --------------------------
5638
5639       --  DELAY_STATEMENT ::=
5640       --    DELAY_UNTIL_STATEMENT
5641       --  | DELAY_RELATIVE_STATEMENT
5642
5643       --------------------------------
5644       -- 9.6  Delay Until Statement --
5645       --------------------------------
5646
5647       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5648
5649       --  Note: delay until statements are not permitted in Ada 83 mode
5650
5651       --  Gigi restriction: This node never appears
5652
5653       --  N_Delay_Until_Statement
5654       --  Sloc points to DELAY
5655       --  Expression (Node3)
5656
5657       -----------------------------------
5658       -- 9.6  Delay Relative Statement --
5659       -----------------------------------
5660
5661       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5662
5663       --  Gigi restriction: This node never appears
5664
5665       --  N_Delay_Relative_Statement
5666       --  Sloc points to DELAY
5667       --  Expression (Node3)
5668
5669       ---------------------------
5670       -- 9.7  Select Statement --
5671       ---------------------------
5672
5673       --  SELECT_STATEMENT ::=
5674       --    SELECTIVE_ACCEPT
5675       --  | TIMED_ENTRY_CALL
5676       --  | CONDITIONAL_ENTRY_CALL
5677       --  | ASYNCHRONOUS_SELECT
5678
5679       -----------------------------
5680       -- 9.7.1  Selective Accept --
5681       -----------------------------
5682
5683       --  SELECTIVE_ACCEPT ::=
5684       --    select
5685       --      [GUARD]
5686       --        SELECT_ALTERNATIVE
5687       --    {or
5688       --      [GUARD]
5689       --        SELECT_ALTERNATIVE}
5690       --    [else
5691       --      SEQUENCE_OF_STATEMENTS]
5692       --    end select;
5693
5694       --  Gigi restriction: This node never appears
5695
5696       --  Note: the guard expression, if present, appears in the node for
5697       --  the select alternative.
5698
5699       --  N_Selective_Accept
5700       --  Sloc points to SELECT
5701       --  Select_Alternatives (List1)
5702       --  Else_Statements (List4) (set to No_List if no else part)
5703
5704       ------------------
5705       -- 9.7.1  Guard --
5706       ------------------
5707
5708       --  GUARD ::= when CONDITION =>
5709
5710       --  As noted above, the CONDITION that is part of a GUARD is included
5711       --  in the node for the select alternative for convenience.
5712
5713       -------------------------------
5714       -- 9.7.1  Select Alternative --
5715       -------------------------------
5716
5717       --  SELECT_ALTERNATIVE ::=
5718       --    ACCEPT_ALTERNATIVE
5719       --  | DELAY_ALTERNATIVE
5720       --  | TERMINATE_ALTERNATIVE
5721
5722       -------------------------------
5723       -- 9.7.1  Accept Alternative --
5724       -------------------------------
5725
5726       --  ACCEPT_ALTERNATIVE ::=
5727       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5728
5729       --  Gigi restriction: This node never appears
5730
5731       --  N_Accept_Alternative
5732       --  Sloc points to ACCEPT
5733       --  Accept_Statement (Node2)
5734       --  Condition (Node1) from the guard (set to Empty if no guard present)
5735       --  Statements (List3) (set to Empty_List if no statements)
5736       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5737       --  Accept_Handler_Records (List5-Sem)
5738
5739       ------------------------------
5740       -- 9.7.1  Delay Alternative --
5741       ------------------------------
5742
5743       --  DELAY_ALTERNATIVE ::=
5744       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5745
5746       --  Gigi restriction: This node never appears
5747
5748       --  N_Delay_Alternative
5749       --  Sloc points to DELAY
5750       --  Delay_Statement (Node2)
5751       --  Condition (Node1) from the guard (set to Empty if no guard present)
5752       --  Statements (List3) (set to Empty_List if no statements)
5753       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5754
5755       ----------------------------------
5756       -- 9.7.1  Terminate Alternative --
5757       ----------------------------------
5758
5759       --  TERMINATE_ALTERNATIVE ::= terminate;
5760
5761       --  Gigi restriction: This node never appears
5762
5763       --  N_Terminate_Alternative
5764       --  Sloc points to TERMINATE
5765       --  Condition (Node1) from the guard (set to Empty if no guard present)
5766       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5767       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5768
5769       -----------------------------
5770       -- 9.7.2  Timed Entry Call --
5771       -----------------------------
5772
5773       --  TIMED_ENTRY_CALL ::=
5774       --    select
5775       --      ENTRY_CALL_ALTERNATIVE
5776       --    or
5777       --      DELAY_ALTERNATIVE
5778       --    end select;
5779
5780       --  Gigi restriction: This node never appears
5781
5782       --  N_Timed_Entry_Call
5783       --  Sloc points to SELECT
5784       --  Entry_Call_Alternative (Node1)
5785       --  Delay_Alternative (Node4)
5786
5787       -----------------------------------
5788       -- 9.7.2  Entry Call Alternative --
5789       -----------------------------------
5790
5791       --  ENTRY_CALL_ALTERNATIVE ::=
5792       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5793
5794       --  PROCEDURE_OR_ENTRY_CALL ::=
5795       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5796
5797       --  Gigi restriction: This node never appears
5798
5799       --  N_Entry_Call_Alternative
5800       --  Sloc points to first token of entry call statement
5801       --  Entry_Call_Statement (Node1)
5802       --  Statements (List3) (set to Empty_List if no statements)
5803       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5804
5805       -----------------------------------
5806       -- 9.7.3  Conditional Entry Call --
5807       -----------------------------------
5808
5809       --  CONDITIONAL_ENTRY_CALL ::=
5810       --    select
5811       --      ENTRY_CALL_ALTERNATIVE
5812       --    else
5813       --      SEQUENCE_OF_STATEMENTS
5814       --    end select;
5815
5816       --  Gigi restriction: This node never appears
5817
5818       --  N_Conditional_Entry_Call
5819       --  Sloc points to SELECT
5820       --  Entry_Call_Alternative (Node1)
5821       --  Else_Statements (List4)
5822
5823       --------------------------------
5824       -- 9.7.4  Asynchronous Select --
5825       --------------------------------
5826
5827       --  ASYNCHRONOUS_SELECT ::=
5828       --    select
5829       --      TRIGGERING_ALTERNATIVE
5830       --    then abort
5831       --      ABORTABLE_PART
5832       --    end select;
5833
5834       --  Note: asynchronous select is not permitted in Ada 83 mode
5835
5836       --  Gigi restriction: This node never appears
5837
5838       --  N_Asynchronous_Select
5839       --  Sloc points to SELECT
5840       --  Triggering_Alternative (Node1)
5841       --  Abortable_Part (Node2)
5842
5843       -----------------------------------
5844       -- 9.7.4  Triggering Alternative --
5845       -----------------------------------
5846
5847       --  TRIGGERING_ALTERNATIVE ::=
5848       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5849
5850       --  Gigi restriction: This node never appears
5851
5852       --  N_Triggering_Alternative
5853       --  Sloc points to first token of triggering statement
5854       --  Triggering_Statement (Node1)
5855       --  Statements (List3) (set to Empty_List if no statements)
5856       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5857
5858       ---------------------------------
5859       -- 9.7.4  Triggering Statement --
5860       ---------------------------------
5861
5862       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5863
5864       ---------------------------
5865       -- 9.7.4  Abortable Part --
5866       ---------------------------
5867
5868       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5869
5870       --  Gigi restriction: This node never appears
5871
5872       --  N_Abortable_Part
5873       --  Sloc points to ABORT
5874       --  Statements (List3)
5875
5876       --------------------------
5877       -- 9.8  Abort Statement --
5878       --------------------------
5879
5880       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5881
5882       --  Gigi restriction: This node never appears
5883
5884       --  N_Abort_Statement
5885       --  Sloc points to ABORT
5886       --  Names (List2)
5887
5888       -------------------------
5889       -- 10.1.1  Compilation --
5890       -------------------------
5891
5892       --  COMPILATION ::= {COMPILATION_UNIT}
5893
5894       --  There is no explicit node in the tree for a compilation, since in
5895       --  general the compiler is processing only a single compilation unit
5896       --  at a time. It is possible to parse multiple units in syntax check
5897       --  only mode, but the trees are discarded in that case.
5898
5899       ------------------------------
5900       -- 10.1.1  Compilation Unit --
5901       ------------------------------
5902
5903       --  COMPILATION_UNIT ::=
5904       --    CONTEXT_CLAUSE LIBRARY_ITEM
5905       --  | CONTEXT_CLAUSE SUBUNIT
5906
5907       --  The N_Compilation_Unit node itself represents the above syntax.
5908       --  However, there are two additional items not reflected in the above
5909       --  syntax. First we have the global declarations that are added by the
5910       --  code generator. These are outer level declarations (so they cannot
5911       --  be represented as being inside the units). An example is the wrapper
5912       --  subprograms that are created to do ABE checking. As always a list of
5913       --  declarations can contain actions as well (i.e. statements), and such
5914       --  statements are executed as part of the elaboration of the unit. Note
5915       --  that all such declarations are elaborated before the library unit.
5916
5917       --  Similarly, certain actions need to be elaborated at the completion
5918       --  of elaboration of the library unit (notably the statement that sets
5919       --  the Boolean flag indicating that elaboration is complete).
5920
5921       --  The third item not reflected in the syntax is pragmas that appear
5922       --  after the compilation unit. As always pragmas are a problem since
5923       --  they are not part of the formal syntax, but can be stuck into the
5924       --  source following a set of ad hoc rules, and we have to find an ad
5925       --  hoc way of sticking them into the tree. For pragmas that appear
5926       --  before the library unit, we just consider them to be part of the
5927       --  context clause, and pragmas can appear in the Context_Items list
5928       --  of the compilation unit. However, pragmas can also appear after
5929       --  the library item.
5930
5931       --  To deal with all these problems, we create an auxiliary node for
5932       --  a compilation unit, referenced from the N_Compilation_Unit node,
5933       --  that contains these items.
5934
5935       --  N_Compilation_Unit
5936       --  Sloc points to first token of defining unit name
5937       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5938       --  Context_Items (List1) context items and pragmas preceding unit
5939       --  Private_Present (Flag15) set if library unit has private keyword
5940       --  Unit (Node2) library item or subunit
5941       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5942       --  Has_No_Elaboration_Code (Flag17-Sem)
5943       --  Body_Required (Flag13-Sem) set for spec if body is required
5944       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5945       --  Context_Pending (Flag16-Sem)
5946       --  First_Inlined_Subprogram (Node3-Sem)
5947       --  Has_Pragma_Suppress_All (Flag14-Sem)
5948
5949       --  N_Compilation_Unit_Aux
5950       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5951       --  Declarations (List2) (set to No_List if no global declarations)
5952       --  Actions (List1) (set to No_List if no actions)
5953       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5954       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5955       --  Default_Storage_Pool (Node3-Sem)
5956
5957       --------------------------
5958       -- 10.1.1  Library Item --
5959       --------------------------
5960
5961       --  LIBRARY_ITEM ::=
5962       --    [private] LIBRARY_UNIT_DECLARATION
5963       --  | LIBRARY_UNIT_BODY
5964       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5965
5966       --  Note: PRIVATE is not allowed in Ada 83 mode
5967
5968       --  There is no explicit node in the tree for library item, instead
5969       --  the declaration or body, and the flag for private if present,
5970       --  appear in the N_Compilation_Unit node.
5971
5972       --------------------------------------
5973       -- 10.1.1  Library Unit Declaration --
5974       --------------------------------------
5975
5976       --  LIBRARY_UNIT_DECLARATION ::=
5977       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5978       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5979
5980       -----------------------------------------------
5981       -- 10.1.1  Library Unit Renaming Declaration --
5982       -----------------------------------------------
5983
5984       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5985       --    PACKAGE_RENAMING_DECLARATION
5986       --  | GENERIC_RENAMING_DECLARATION
5987       --  | SUBPROGRAM_RENAMING_DECLARATION
5988
5989       -------------------------------
5990       -- 10.1.1  Library unit body --
5991       -------------------------------
5992
5993       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5994
5995       ------------------------------
5996       -- 10.1.1  Parent Unit Name --
5997       ------------------------------
5998
5999       --  PARENT_UNIT_NAME ::= NAME
6000
6001       ----------------------------
6002       -- 10.1.2  Context clause --
6003       ----------------------------
6004
6005       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6006
6007       --  The context clause can include pragmas, and any pragmas that appear
6008       --  before the context clause proper (i.e. all configuration pragmas,
6009       --  also appear at the front of this list).
6010
6011       --------------------------
6012       -- 10.1.2  Context_Item --
6013       --------------------------
6014
6015       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
6016
6017       -------------------------
6018       -- 10.1.2  With clause --
6019       -------------------------
6020
6021       --  WITH_CLAUSE ::=
6022       --    with library_unit_NAME {,library_unit_NAME};
6023
6024       --  A separate With clause is built for each name, so that we have
6025       --  a Corresponding_Spec field for each with'ed spec. The flags
6026       --  First_Name and Last_Name are used to reconstruct the exact
6027       --  source form. When a list of names appears in one with clause,
6028       --  the first name in the list has First_Name set, and the last
6029       --  has Last_Name set. If the with clause has only one name, then
6030       --  both of the flags First_Name and Last_Name are set in this name.
6031
6032       --  Note: in the case of implicit with's that are installed by the
6033       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
6034       --  set to Standard_Location, but it is incorrect to test the Sloc
6035       --  to find out if a with clause is implicit, test the flag instead.
6036
6037       --  N_With_Clause
6038       --  Sloc points to first token of library unit name
6039       --  Withed_Body (Node1-Sem)
6040       --  Name (Node2)
6041       --  Next_Implicit_With (Node3-Sem)
6042       --  Library_Unit (Node4-Sem)
6043       --  Corresponding_Spec (Node5-Sem)
6044       --  First_Name (Flag5) (set to True if first name or only one name)
6045       --  Last_Name (Flag6) (set to True if last name or only one name)
6046       --  Context_Installed (Flag13-Sem)
6047       --  Elaborate_Present (Flag4-Sem)
6048       --  Elaborate_All_Present (Flag14-Sem)
6049       --  Elaborate_All_Desirable (Flag9-Sem)
6050       --  Elaborate_Desirable (Flag11-Sem)
6051       --  Private_Present (Flag15) set if with_clause has private keyword
6052       --  Implicit_With (Flag16-Sem)
6053       --  Implicit_With_From_Instantiation (Flag12-Sem)
6054       --  Limited_Present (Flag17) set if LIMITED is present
6055       --  Limited_View_Installed (Flag18-Sem)
6056       --  Unreferenced_In_Spec (Flag7-Sem)
6057       --  No_Entities_Ref_In_Spec (Flag8-Sem)
6058
6059       --  Note: Limited_Present and Limited_View_Installed are used to support
6060       --  the implementation of Ada 2005 (AI-50217).
6061
6062       --  Similarly, Private_Present is used to support the implementation of
6063       --  Ada 2005 (AI-50262).
6064
6065       ----------------------
6066       -- With_Type clause --
6067       ----------------------
6068
6069       --  This is a GNAT extension, used to implement mutually recursive
6070       --  types declared in different packages.
6071
6072       --  Note: this is now obsolete. The functionality of this construct
6073       --  is now implemented by the Ada 2005 limited_with_clause.
6074
6075       ---------------------
6076       -- 10.2  Body stub --
6077       ---------------------
6078
6079       --  BODY_STUB ::=
6080       --    SUBPROGRAM_BODY_STUB
6081       --  | PACKAGE_BODY_STUB
6082       --  | TASK_BODY_STUB
6083       --  | PROTECTED_BODY_STUB
6084
6085       ----------------------------------
6086       -- 10.1.3  Subprogram Body Stub --
6087       ----------------------------------
6088
6089       --  SUBPROGRAM_BODY_STUB ::=
6090       --    SUBPROGRAM_SPECIFICATION is separate
6091       --      [ASPECT_SPECIFICATION];
6092
6093       --  N_Subprogram_Body_Stub
6094       --  Sloc points to FUNCTION or PROCEDURE
6095       --  Specification (Node1)
6096       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6097       --  Library_Unit (Node4-Sem) points to the subunit
6098       --  Corresponding_Body (Node5-Sem)
6099
6100       -------------------------------
6101       -- 10.1.3  Package Body Stub --
6102       -------------------------------
6103
6104       --  PACKAGE_BODY_STUB ::=
6105       --    package body DEFINING_IDENTIFIER is separate
6106       --      [ASPECT_SPECIFICATION];
6107
6108       --  N_Package_Body_Stub
6109       --  Sloc points to PACKAGE
6110       --  Defining_Identifier (Node1)
6111       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6112       --  Library_Unit (Node4-Sem) points to the subunit
6113       --  Corresponding_Body (Node5-Sem)
6114
6115       ----------------------------
6116       -- 10.1.3  Task Body Stub --
6117       ----------------------------
6118
6119       --  TASK_BODY_STUB ::=
6120       --    task body DEFINING_IDENTIFIER is separate
6121       --      [ASPECT_SPECIFICATION];
6122
6123       --  N_Task_Body_Stub
6124       --  Sloc points to TASK
6125       --  Defining_Identifier (Node1)
6126       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6127       --  Library_Unit (Node4-Sem) points to the subunit
6128       --  Corresponding_Body (Node5-Sem)
6129
6130       ---------------------------------
6131       -- 10.1.3  Protected Body Stub --
6132       ---------------------------------
6133
6134       --  PROTECTED_BODY_STUB ::=
6135       --    protected body DEFINING_IDENTIFIER is separate
6136       --      [ASPECT_SPECIFICATION];
6137
6138       --  Note: protected body stubs are not allowed in Ada 83 mode
6139
6140       --  N_Protected_Body_Stub
6141       --  Sloc points to PROTECTED
6142       --  Defining_Identifier (Node1)
6143       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6144       --  Library_Unit (Node4-Sem) points to the subunit
6145       --  Corresponding_Body (Node5-Sem)
6146
6147       ---------------------
6148       -- 10.1.3  Subunit --
6149       ---------------------
6150
6151       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6152
6153       --  N_Subunit
6154       --  Sloc points to SEPARATE
6155       --  Name (Node2) is the name of the parent unit
6156       --  Proper_Body (Node1) is the subunit body
6157       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6158
6159       ---------------------------------
6160       -- 11.1  Exception Declaration --
6161       ---------------------------------
6162
6163       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6164       --    [ASPECT_SPECIFICATIONS];
6165
6166       --  For consistency with object declarations etc., the parser converts
6167       --  the case of multiple identifiers being declared to a series of
6168       --  declarations in which the expression is copied, using the More_Ids
6169       --  and Prev_Ids flags to remember the source form as described in the
6170       --  section on "Handling of Defining Identifier Lists".
6171
6172       --  N_Exception_Declaration
6173       --  Sloc points to EXCEPTION
6174       --  Defining_Identifier (Node1)
6175       --  Expression (Node3-Sem)
6176       --  Renaming_Exception (Node2-Sem)
6177       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6178       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6179
6180       ------------------------------------------
6181       -- 11.2  Handled Sequence Of Statements --
6182       ------------------------------------------
6183
6184       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
6185       --      SEQUENCE_OF_STATEMENTS
6186       --    [exception
6187       --      EXCEPTION_HANDLER
6188       --      {EXCEPTION_HANDLER}]
6189       --    [at end
6190       --      cleanup_procedure_call (param, param, param, ...);]
6191
6192       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
6193       --  used only internally currently, but is considered to be syntactic.
6194       --  At the moment, the only cleanup action allowed is a single call to
6195       --  a parameterless procedure, and the Identifier field of the node is
6196       --  the procedure to be called. The cleanup action occurs whenever the
6197       --  sequence of statements is left for any reason. The possible reasons
6198       --  are:
6199       --      1. reaching the end of the sequence
6200       --      2. exit, return, or goto
6201       --      3. exception or abort
6202       --  For some back ends, such as gcc with ZCX, "at end" is implemented
6203       --  entirely in the back end. In this case, a handled sequence of
6204       --  statements with an "at end" cannot also have exception handlers.
6205       --  For other back ends, such as gcc with SJLJ and .NET, the
6206       --  implementation is split between the front end and back end; the front
6207       --  end implements 3, and the back end implements 1 and 2. In this case,
6208       --  if there is an "at end", the front end inserts the appropriate
6209       --  exception handler, and this handler takes precedence over "at end"
6210       --  in case of exception.
6211
6212       --  The inserted exception handler is of the form:
6213
6214       --     when all others =>
6215       --        cleanup;
6216       --        raise;
6217
6218       --  where cleanup is the procedure to be called. The reason we do this is
6219       --  so that the front end can handle the necessary entries in the
6220       --  exception tables, and other exception handler actions required as
6221       --  part of the normal handling for exception handlers.
6222
6223       --  The AT END cleanup handler protects only the sequence of statements
6224       --  (not the associated declarations of the parent), just like exception
6225       --  handlers. The big difference is that the cleanup procedure is called
6226       --  on either a normal or an abnormal exit from the statement sequence.
6227
6228       --  Note: the list of Exception_Handlers can contain pragmas as well
6229       --  as actual handlers. In practice these pragmas can only occur at
6230       --  the start of the list, since any pragmas occurring later on will
6231       --  be included in the statement list of the corresponding handler.
6232
6233       --  Note: although in the Ada syntax, the sequence of statements in
6234       --  a handled sequence of statements can only contain statements, we
6235       --  allow free mixing of declarations and statements in the resulting
6236       --  expanded tree. This is for example used to deal with the case of
6237       --  a cleanup procedure that must handle declarations as well as the
6238       --  statements of a block.
6239
6240       --  N_Handled_Sequence_Of_Statements
6241       --  Sloc points to first token of first statement
6242       --  Statements (List3)
6243       --  End_Label (Node4) (set to Empty if expander generated)
6244       --  Exception_Handlers (List5) (set to No_List if none present)
6245       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
6246       --  First_Real_Statement (Node2-Sem)
6247
6248       --  Note: the parent always contains a Declarations field which contains
6249       --  declarations associated with the handled sequence of statements. This
6250       --  is true even in the case of an accept statement (see description of
6251       --  the N_Accept_Statement node).
6252
6253       --  End_Label refers to the containing construct
6254
6255       -----------------------------
6256       -- 11.2  Exception Handler --
6257       -----------------------------
6258
6259       --  EXCEPTION_HANDLER ::=
6260       --    when [CHOICE_PARAMETER_SPECIFICATION :]
6261       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6262       --        SEQUENCE_OF_STATEMENTS
6263
6264       --  Note: choice parameter specification is not allowed in Ada 83 mode
6265
6266       --  N_Exception_Handler
6267       --  Sloc points to WHEN
6268       --  Choice_Parameter (Node2) (set to Empty if not present)
6269       --  Exception_Choices (List4)
6270       --  Statements (List3)
6271       --  Exception_Label (Node5-Sem) (set to Empty of not present)
6272       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6273       --  Local_Raise_Not_OK (Flag7-Sem)
6274       --  Has_Local_Raise (Flag8-Sem)
6275
6276       ------------------------------------------
6277       -- 11.2  Choice parameter specification --
6278       ------------------------------------------
6279
6280       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6281
6282       ----------------------------
6283       -- 11.2  Exception Choice --
6284       ----------------------------
6285
6286       --  EXCEPTION_CHOICE ::= exception_NAME | others
6287
6288       --  Except in the case of OTHERS, no explicit node appears in the tree
6289       --  for exception choice. Instead the exception name appears directly.
6290       --  An OTHERS choice is represented by a N_Others_Choice node (see
6291       --  section 3.8.1.
6292
6293       --  Note: for the exception choice created for an at end handler, the
6294       --  exception choice is an N_Others_Choice node with All_Others set.
6295
6296       ---------------------------
6297       -- 11.3  Raise Statement --
6298       ---------------------------
6299
6300       --  RAISE_STATEMENT ::= raise [exception_NAME];
6301
6302       --  In Ada 2005, we have
6303
6304       --  RAISE_STATEMENT ::=
6305       --    raise; | raise exception_NAME [with string_EXPRESSION];
6306
6307       --  N_Raise_Statement
6308       --  Sloc points to RAISE
6309       --  Name (Node2) (set to Empty if no exception name present)
6310       --  Expression (Node3) (set to Empty if no expression present)
6311       --  From_At_End (Flag4-Sem)
6312
6313       ----------------------------
6314       -- 11.3  Raise Expression --
6315       ----------------------------
6316
6317       --  RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6318
6319       --  N_Raise_Expression
6320       --  Sloc points to RAISE
6321       --  Name (Node2) (always present)
6322       --  Expression (Node3) (set to Empty if no expression present)
6323       --  Convert_To_Return_False (Flag13-Sem)
6324       --  plus fields for expression
6325
6326       -------------------------------
6327       -- 12.1  Generic Declaration --
6328       -------------------------------
6329
6330       --  GENERIC_DECLARATION ::=
6331       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6332
6333       ------------------------------------------
6334       -- 12.1  Generic Subprogram Declaration --
6335       ------------------------------------------
6336
6337       --  GENERIC_SUBPROGRAM_DECLARATION ::=
6338       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6339       --      [ASPECT_SPECIFICATIONS];
6340
6341       --  Note: Generic_Formal_Declarations can include pragmas
6342
6343       --  N_Generic_Subprogram_Declaration
6344       --  Sloc points to GENERIC
6345       --  Specification (Node1) subprogram specification
6346       --  Corresponding_Body (Node5-Sem)
6347       --  Generic_Formal_Declarations (List2) from generic formal part
6348       --  Parent_Spec (Node4-Sem)
6349
6350       ---------------------------------------
6351       -- 12.1  Generic Package Declaration --
6352       ---------------------------------------
6353
6354       --  GENERIC_PACKAGE_DECLARATION ::=
6355       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6356       --      [ASPECT_SPECIFICATIONS];
6357
6358       --  Note: when we do generics right, the Activation_Chain_Entity entry
6359       --  for this node can be removed (since the expander won't see generic
6360       --  units any more)???.
6361
6362       --  Note: Generic_Formal_Declarations can include pragmas
6363
6364       --  N_Generic_Package_Declaration
6365       --  Sloc points to GENERIC
6366       --  Specification (Node1) package specification
6367       --  Corresponding_Body (Node5-Sem)
6368       --  Generic_Formal_Declarations (List2) from generic formal part
6369       --  Parent_Spec (Node4-Sem)
6370       --  Activation_Chain_Entity (Node3-Sem)
6371
6372       -------------------------------
6373       -- 12.1  Generic Formal Part --
6374       -------------------------------
6375
6376       --  GENERIC_FORMAL_PART ::=
6377       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6378
6379       ------------------------------------------------
6380       -- 12.1  Generic Formal Parameter Declaration --
6381       ------------------------------------------------
6382
6383       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6384       --    FORMAL_OBJECT_DECLARATION
6385       --  | FORMAL_TYPE_DECLARATION
6386       --  | FORMAL_SUBPROGRAM_DECLARATION
6387       --  | FORMAL_PACKAGE_DECLARATION
6388
6389       ---------------------------------
6390       -- 12.3  Generic Instantiation --
6391       ---------------------------------
6392
6393       --  GENERIC_INSTANTIATION ::=
6394       --    package DEFINING_PROGRAM_UNIT_NAME is
6395       --      new generic_package_NAME [GENERIC_ACTUAL_PART]
6396       --        [ASPECT_SPECIFICATIONS];
6397       --  | [[not] overriding]
6398       --    procedure DEFINING_PROGRAM_UNIT_NAME is
6399       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6400       --        [ASPECT_SPECIFICATIONS];
6401       --  | [[not] overriding]
6402       --    function DEFINING_DESIGNATOR is
6403       --      new generic_function_NAME [GENERIC_ACTUAL_PART]
6404       --        [ASPECT_SPECIFICATIONS];
6405
6406       --  N_Package_Instantiation
6407       --  Sloc points to PACKAGE
6408       --  Defining_Unit_Name (Node1)
6409       --  Name (Node2)
6410       --  Generic_Associations (List3) (set to No_List if no
6411       --   generic actual part)
6412       --  Parent_Spec (Node4-Sem)
6413       --  Instance_Spec (Node5-Sem)
6414       --  ABE_Is_Certain (Flag18-Sem)
6415
6416       --  N_Procedure_Instantiation
6417       --  Sloc points to PROCEDURE
6418       --  Defining_Unit_Name (Node1)
6419       --  Name (Node2)
6420       --  Parent_Spec (Node4-Sem)
6421       --  Generic_Associations (List3) (set to No_List if no
6422       --   generic actual part)
6423       --  Instance_Spec (Node5-Sem)
6424       --  Must_Override (Flag14) set if overriding indicator present
6425       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6426       --  ABE_Is_Certain (Flag18-Sem)
6427
6428       --  N_Function_Instantiation
6429       --  Sloc points to FUNCTION
6430       --  Defining_Unit_Name (Node1)
6431       --  Name (Node2)
6432       --  Generic_Associations (List3) (set to No_List if no
6433       --   generic actual part)
6434       --  Parent_Spec (Node4-Sem)
6435       --  Instance_Spec (Node5-Sem)
6436       --  Must_Override (Flag14) set if overriding indicator present
6437       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6438       --  ABE_Is_Certain (Flag18-Sem)
6439
6440       --  Note: overriding indicator is an Ada 2005 feature
6441
6442       -------------------------------
6443       -- 12.3  Generic Actual Part --
6444       -------------------------------
6445
6446       --  GENERIC_ACTUAL_PART ::=
6447       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6448
6449       -------------------------------
6450       -- 12.3  Generic Association --
6451       -------------------------------
6452
6453       --  GENERIC_ASSOCIATION ::=
6454       --    [generic_formal_parameter_SELECTOR_NAME =>]
6455
6456       --  Note: unlike the procedure call case, a generic association node
6457       --  is generated for every association, even if no formal parameter
6458       --  selector name is present. In this case the parser will leave the
6459       --  Selector_Name field set to Empty, to be filled in later by the
6460       --  semantic pass.
6461
6462       --  In Ada 2005, a formal may be associated with a box, if the
6463       --  association is part of the list of actuals for a formal package.
6464       --  If the association is given by  OTHERS => <>, the association is
6465       --  an N_Others_Choice.
6466
6467       --  N_Generic_Association
6468       --  Sloc points to first token of generic association
6469       --  Selector_Name (Node2) (set to Empty if no formal
6470       --   parameter selector name)
6471       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6472       --  Box_Present (Flag15) (for formal_package associations with a box)
6473
6474       ---------------------------------------------
6475       -- 12.3  Explicit Generic Actual Parameter --
6476       ---------------------------------------------
6477
6478       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6479       --    EXPRESSION      | variable_NAME   | subprogram_NAME
6480       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
6481
6482       -------------------------------------
6483       -- 12.4  Formal Object Declaration --
6484       -------------------------------------
6485
6486       --  FORMAL_OBJECT_DECLARATION ::=
6487       --    DEFINING_IDENTIFIER_LIST :
6488       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6489       --        [ASPECT_SPECIFICATIONS];
6490       --  | DEFINING_IDENTIFIER_LIST :
6491       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6492       --        [ASPECT_SPECIFICATIONS];
6493
6494       --  Although the syntax allows multiple identifiers in the list, the
6495       --  semantics is as though successive declarations were given with
6496       --  identical type definition and expression components. To simplify
6497       --  semantic processing, the parser represents a multiple declaration
6498       --  case as a sequence of single declarations, using the More_Ids and
6499       --  Prev_Ids flags to preserve the original source form as described
6500       --  in the section on "Handling of Defining Identifier Lists".
6501
6502       --  N_Formal_Object_Declaration
6503       --  Sloc points to first identifier
6504       --  Defining_Identifier (Node1)
6505       --  In_Present (Flag15)
6506       --  Out_Present (Flag17)
6507       --  Null_Exclusion_Present (Flag11) (set to False if not present)
6508       --  Subtype_Mark (Node4) (set to Empty if not present)
6509       --  Access_Definition (Node3) (set to Empty if not present)
6510       --  Default_Expression (Node5) (set to Empty if no default expression)
6511       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6512       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6513
6514       -----------------------------------
6515       -- 12.5  Formal Type Declaration --
6516       -----------------------------------
6517
6518       --  FORMAL_TYPE_DECLARATION ::=
6519       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6520       --      is FORMAL_TYPE_DEFINITION
6521       --        [ASPECT_SPECIFICATIONS];
6522       --  | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6523
6524       --  N_Formal_Type_Declaration
6525       --  Sloc points to TYPE
6526       --  Defining_Identifier (Node1)
6527       --  Formal_Type_Definition (Node3)
6528       --  Discriminant_Specifications (List4) (set to No_List if no
6529       --   discriminant part)
6530       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6531
6532       ----------------------------------
6533       -- 12.5  Formal type definition --
6534       ----------------------------------
6535
6536       --  FORMAL_TYPE_DEFINITION ::=
6537       --    FORMAL_PRIVATE_TYPE_DEFINITION
6538       --  | FORMAL_DERIVED_TYPE_DEFINITION
6539       --  | FORMAL_DISCRETE_TYPE_DEFINITION
6540       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6541       --  | FORMAL_MODULAR_TYPE_DEFINITION
6542       --  | FORMAL_FLOATING_POINT_DEFINITION
6543       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6544       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6545       --  | FORMAL_ARRAY_TYPE_DEFINITION
6546       --  | FORMAL_ACCESS_TYPE_DEFINITION
6547       --  | FORMAL_INTERFACE_TYPE_DEFINITION
6548       --  | FORMAL_INCOMPLETE_TYPE_DEFINITION
6549
6550       --  The Ada 2012 syntax introduces two new non-terminals:
6551       --  Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6552       --  the latter category. Here we introduce an incomplete type definition
6553       --  in order to preserve as much as possible the existing structure.
6554
6555       ---------------------------------------------
6556       -- 12.5.1  Formal Private Type Definition --
6557       ---------------------------------------------
6558
6559       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
6560       --    [[abstract] tagged] [limited] private
6561
6562       --  Note: TAGGED is not allowed in Ada 83 mode
6563
6564       --  N_Formal_Private_Type_Definition
6565       --  Sloc points to PRIVATE
6566       --  Abstract_Present (Flag4)
6567       --  Tagged_Present (Flag15)
6568       --  Limited_Present (Flag17)
6569
6570       --------------------------------------------
6571       -- 12.5.1  Formal Derived Type Definition --
6572       --------------------------------------------
6573
6574       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
6575       --    [abstract] [limited | synchronized]
6576       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6577       --  Note: this construct is not allowed in Ada 83 mode
6578
6579       --  N_Formal_Derived_Type_Definition
6580       --  Sloc points to NEW
6581       --  Subtype_Mark (Node4)
6582       --  Private_Present (Flag15)
6583       --  Abstract_Present (Flag4)
6584       --  Limited_Present (Flag17)
6585       --  Synchronized_Present (Flag7)
6586       --  Interface_List (List2) (set to No_List if none)
6587
6588       -----------------------------------------------
6589       -- 12.5.1  Formal Incomplete Type Definition --
6590       -----------------------------------------------
6591
6592       --  FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6593
6594       --  N_Formal_Incomplete_Type_Definition
6595       --  Sloc points to identifier of parent
6596       --  Tagged_Present (Flag15)
6597
6598       ---------------------------------------------
6599       -- 12.5.2  Formal Discrete Type Definition --
6600       ---------------------------------------------
6601
6602       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6603
6604       --  N_Formal_Discrete_Type_Definition
6605       --  Sloc points to (
6606
6607       ---------------------------------------------------
6608       -- 12.5.2  Formal Signed Integer Type Definition --
6609       ---------------------------------------------------
6610
6611       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6612
6613       --  N_Formal_Signed_Integer_Type_Definition
6614       --  Sloc points to RANGE
6615
6616       --------------------------------------------
6617       -- 12.5.2  Formal Modular Type Definition --
6618       --------------------------------------------
6619
6620       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6621
6622       --  N_Formal_Modular_Type_Definition
6623       --  Sloc points to MOD
6624
6625       ----------------------------------------------
6626       -- 12.5.2  Formal Floating Point Definition --
6627       ----------------------------------------------
6628
6629       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6630
6631       --  N_Formal_Floating_Point_Definition
6632       --  Sloc points to DIGITS
6633
6634       ----------------------------------------------------
6635       -- 12.5.2  Formal Ordinary Fixed Point Definition --
6636       ----------------------------------------------------
6637
6638       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6639
6640       --  N_Formal_Ordinary_Fixed_Point_Definition
6641       --  Sloc points to DELTA
6642
6643       ---------------------------------------------------
6644       -- 12.5.2  Formal Decimal Fixed Point Definition --
6645       ---------------------------------------------------
6646
6647       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6648
6649       --  Note: formal decimal fixed point definition not allowed in Ada 83
6650
6651       --  N_Formal_Decimal_Fixed_Point_Definition
6652       --  Sloc points to DELTA
6653
6654       ------------------------------------------
6655       -- 12.5.3  Formal Array Type Definition --
6656       ------------------------------------------
6657
6658       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6659
6660       -------------------------------------------
6661       -- 12.5.4  Formal Access Type Definition --
6662       -------------------------------------------
6663
6664       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6665
6666       ----------------------------------------------
6667       -- 12.5.5  Formal Interface Type Definition --
6668       ----------------------------------------------
6669
6670       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6671
6672       -----------------------------------------
6673       -- 12.6  Formal Subprogram Declaration --
6674       -----------------------------------------
6675
6676       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6677       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6678       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6679
6680       --------------------------------------------------
6681       -- 12.6  Formal Concrete Subprogram Declaration --
6682       --------------------------------------------------
6683
6684       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6685       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6686       --      [ASPECT_SPECIFICATIONS];
6687
6688       --  N_Formal_Concrete_Subprogram_Declaration
6689       --  Sloc points to WITH
6690       --  Specification (Node1)
6691       --  Default_Name (Node2) (set to Empty if no subprogram default)
6692       --  Box_Present (Flag15)
6693
6694       --  Note: if no subprogram default is present, then Name is set
6695       --  to Empty, and Box_Present is False.
6696
6697       --------------------------------------------------
6698       -- 12.6  Formal Abstract Subprogram Declaration --
6699       --------------------------------------------------
6700
6701       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6702       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6703       --      [ASPECT_SPECIFICATIONS];
6704
6705       --  N_Formal_Abstract_Subprogram_Declaration
6706       --  Sloc points to WITH
6707       --  Specification (Node1)
6708       --  Default_Name (Node2) (set to Empty if no subprogram default)
6709       --  Box_Present (Flag15)
6710
6711       --  Note: if no subprogram default is present, then Name is set
6712       --  to Empty, and Box_Present is False.
6713
6714       ------------------------------
6715       -- 12.6  Subprogram Default --
6716       ------------------------------
6717
6718       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6719
6720       --  There is no separate node in the tree for a subprogram default.
6721       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6722       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6723       --  default name or box indication, as needed.
6724
6725       ------------------------
6726       -- 12.6  Default Name --
6727       ------------------------
6728
6729       --  DEFAULT_NAME ::= NAME
6730
6731       --------------------------------------
6732       -- 12.7  Formal Package Declaration --
6733       --------------------------------------
6734
6735       --  FORMAL_PACKAGE_DECLARATION ::=
6736       --    with package DEFINING_IDENTIFIER
6737       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6738       --        [ASPECT_SPECIFICATIONS];
6739
6740       --  Note: formal package declarations not allowed in Ada 83 mode
6741
6742       --  N_Formal_Package_Declaration
6743       --  Sloc points to WITH
6744       --  Defining_Identifier (Node1)
6745       --  Name (Node2)
6746       --  Generic_Associations (List3) (set to No_List if (<>) case or
6747       --   empty generic actual part)
6748       --  Box_Present (Flag15)
6749       --  Instance_Spec (Node5-Sem)
6750       --  ABE_Is_Certain (Flag18-Sem)
6751
6752       --------------------------------------
6753       -- 12.7  Formal Package Actual Part --
6754       --------------------------------------
6755
6756       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6757       --    ([OTHERS] => <>)
6758       --    | [GENERIC_ACTUAL_PART]
6759       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6760
6761       --  FORMAL_PACKAGE_ASSOCIATION ::=
6762       --   GENERIC_ASSOCIATION
6763       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6764
6765       --  There is no explicit node in the tree for a formal package actual
6766       --  part. Instead the information appears in the parent node (i.e. the
6767       --  formal package declaration node itself).
6768
6769       --  There is no explicit node for a formal package association. All of
6770       --  them are represented either by a generic association, possibly with
6771       --  Box_Present, or by an N_Others_Choice.
6772
6773       ---------------------------------
6774       -- 13.1  Representation clause --
6775       ---------------------------------
6776
6777       --  REPRESENTATION_CLAUSE ::=
6778       --    ATTRIBUTE_DEFINITION_CLAUSE
6779       --  | ENUMERATION_REPRESENTATION_CLAUSE
6780       --  | RECORD_REPRESENTATION_CLAUSE
6781       --  | AT_CLAUSE
6782
6783       ----------------------
6784       -- 13.1  Local Name --
6785       ----------------------
6786
6787       --  LOCAL_NAME :=
6788       --    DIRECT_NAME
6789       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6790       --  | library_unit_NAME
6791
6792       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6793       --  as an attribute reference, which has essentially the same form.
6794
6795       ---------------------------------------
6796       -- 13.3  Attribute definition clause --
6797       ---------------------------------------
6798
6799       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6800       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6801       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6802
6803       --  In Ada 83, the expression must be a simple expression and the
6804       --  local name must be a direct name.
6805
6806       --  Note: the only attribute definition clause that is processed by
6807       --  gigi is an address clause. For all other cases, the information
6808       --  is extracted by the front end and either results in setting entity
6809       --  information, e.g. Esize for the Size clause, or in appropriate
6810       --  expansion actions (e.g. in the case of Storage_Size).
6811
6812       --  For an address clause, Gigi constructs the appropriate addressing
6813       --  code. It also ensures that no aliasing optimizations are made
6814       --  for the object for which the address clause appears.
6815
6816       --  Note: for an address clause used to achieve an overlay:
6817
6818       --    A : Integer;
6819       --    B : Integer;
6820       --    for B'Address use A'Address;
6821
6822       --  the above rule means that Gigi will ensure that no optimizations
6823       --  will be made for B that would violate the implementation advice
6824       --  of RM 13.3(19). However, this advice applies only to B and not
6825       --  to A, which seems unfortunate. The GNAT front end will mark the
6826       --  object A as volatile to also prevent unwanted optimization
6827       --  assumptions based on no aliasing being made for B.
6828
6829       --  N_Attribute_Definition_Clause
6830       --  Sloc points to FOR
6831       --  Name (Node2) the local name
6832       --  Chars (Name1) the identifier name from the attribute designator
6833       --  Expression (Node3) the expression or name
6834       --  Entity (Node4-Sem)
6835       --  Next_Rep_Item (Node5-Sem)
6836       --  From_At_Mod (Flag4-Sem)
6837       --  Check_Address_Alignment (Flag11-Sem)
6838       --  From_Aspect_Specification (Flag13-Sem)
6839       --  Is_Delayed_Aspect (Flag14-Sem)
6840       --  Address_Warning_Posted (Flag18-Sem)
6841
6842       --  Note: if From_Aspect_Specification is set, then Sloc points to the
6843       --  aspect name, and Entity is resolved already to reference the entity
6844       --  to which the aspect applies.
6845
6846       -----------------------------------
6847       -- 13.3.1  Aspect Specifications --
6848       -----------------------------------
6849
6850       --  We modify the RM grammar here, the RM grammar is:
6851
6852       --     ASPECT_SPECIFICATION ::=
6853       --       with ASPECT_MARK [=> ASPECT_DEFINITION] {,
6854       --            ASPECT_MARK [=> ASPECT_DEFINITION] }
6855
6856       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6857
6858       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
6859
6860       --  That's inconvenient, since there is no non-terminal name for a single
6861       --  entry in the list of aspects. So we use this grammar instead:
6862
6863       --     ASPECT_SPECIFICATIONS ::=
6864       --       with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6865
6866       --     ASPECT_SPECIFICATION =>
6867       --       ASPECT_MARK [=> ASPECT_DEFINITION]
6868
6869       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6870
6871       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
6872
6873       --  See separate package Aspects for details on the incorporation of
6874       --  these nodes into the tree, and how aspect specifications for a given
6875       --  declaration node are associated with that node.
6876
6877       --  N_Aspect_Specification
6878       --  Sloc points to aspect identifier
6879       --  Identifier (Node1) aspect identifier
6880       --  Aspect_Rep_Item (Node2-Sem)
6881       --  Expression (Node3) Aspect_Definition (set to Empty if none)
6882       --  Entity (Node4-Sem) entity to which the aspect applies
6883       --  Class_Present (Flag6) Set if 'Class present
6884       --  Next_Rep_Item (Node5-Sem)
6885       --  Split_PPC (Flag17) Set if split pre/post attribute
6886       --  Is_Boolean_Aspect (Flag16-Sem)
6887       --  Is_Checked (Flag11-Sem)
6888       --  Is_Delayed_Aspect (Flag14-Sem)
6889       --  Is_Disabled (Flag15-Sem)
6890       --  Is_Ignored (Flag9-Sem)
6891
6892       --  Note: Aspect_Specification is an Ada 2012 feature
6893
6894       --  Note: The Identifier serves to identify the aspect involved (it
6895       --  is the aspect whose name corresponds to the Chars field). This
6896       --  means that the other fields of this identifier are unused, and
6897       --  in particular we use the Entity field of this identifier to save
6898       --  a copy of the expression for visibility analysis, see spec of
6899       --  Sem_Ch13 for full details of this usage.
6900
6901       --  In the case of aspects of the form xxx'Class, the aspect identifier
6902       --  is for xxx, and Class_Present is set to True.
6903
6904       --  Note: When a Pre or Post aspect specification is processed, it is
6905       --  broken into AND THEN sections. The left most section has Split_PPC
6906       --  set to False, indicating that it is the original specification (e.g.
6907       --  for posting errors). For the other sections, Split_PPC is set True.
6908
6909       ---------------------------------------------
6910       -- 13.4  Enumeration representation clause --
6911       ---------------------------------------------
6912
6913       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6914       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6915
6916       --  In Ada 83, the name must be a direct name
6917
6918       --  N_Enumeration_Representation_Clause
6919       --  Sloc points to FOR
6920       --  Identifier (Node1) direct name
6921       --  Array_Aggregate (Node3)
6922       --  Next_Rep_Item (Node5-Sem)
6923
6924       ---------------------------------
6925       -- 13.4  Enumeration aggregate --
6926       ---------------------------------
6927
6928       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6929
6930       ------------------------------------------
6931       -- 13.5.1  Record representation clause --
6932       ------------------------------------------
6933
6934       --  RECORD_REPRESENTATION_CLAUSE ::=
6935       --    for first_subtype_LOCAL_NAME use
6936       --      record [MOD_CLAUSE]
6937       --        {COMPONENT_CLAUSE}
6938       --      end record;
6939
6940       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6941       --  replaced by a corresponding Alignment attribute definition clause).
6942
6943       --  Note: Component_Clauses can include pragmas
6944
6945       --  N_Record_Representation_Clause
6946       --  Sloc points to FOR
6947       --  Identifier (Node1) direct name
6948       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6949       --  Component_Clauses (List3)
6950       --  Next_Rep_Item (Node5-Sem)
6951
6952       ------------------------------
6953       -- 13.5.1  Component clause --
6954       ------------------------------
6955
6956       --  COMPONENT_CLAUSE ::=
6957       --    component_LOCAL_NAME at POSITION
6958       --      range FIRST_BIT .. LAST_BIT;
6959
6960       --  N_Component_Clause
6961       --  Sloc points to AT
6962       --  Component_Name (Node1) points to Name or Attribute_Reference
6963       --  Position (Node2)
6964       --  First_Bit (Node3)
6965       --  Last_Bit (Node4)
6966
6967       ----------------------
6968       -- 13.5.1  Position --
6969       ----------------------
6970
6971       --  POSITION ::= static_EXPRESSION
6972
6973       -----------------------
6974       -- 13.5.1  First_Bit --
6975       -----------------------
6976
6977       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6978
6979       ----------------------
6980       -- 13.5.1  Last_Bit --
6981       ----------------------
6982
6983       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6984
6985       --------------------------
6986       -- 13.8  Code statement --
6987       --------------------------
6988
6989       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6990
6991       --  Note: in GNAT, the qualified expression has the form
6992
6993       --    Asm_Insn'(Asm (...));
6994
6995       --  See package System.Machine_Code in file s-maccod.ads for details on
6996       --  the allowed parameters to Asm. There are two ways this node can
6997       --  arise, as a code statement, in which case the expression is the
6998       --  qualified expression, or as a result of the expansion of an intrinsic
6999       --  call to the Asm or Asm_Input procedure.
7000
7001       --  N_Code_Statement
7002       --  Sloc points to first token of the expression
7003       --  Expression (Node3)
7004
7005       --  Note: package Exp_Code contains an abstract functional interface
7006       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
7007
7008       ------------------------
7009       -- 13.12  Restriction --
7010       ------------------------
7011
7012       --  RESTRICTION ::=
7013       --    restriction_IDENTIFIER
7014       --  | restriction_parameter_IDENTIFIER => EXPRESSION
7015
7016       --  There is no explicit node for restrictions. Instead the restriction
7017       --  appears in normal pragma syntax as a pragma argument association,
7018       --  which has the same syntactic form.
7019
7020       --------------------------
7021       -- B.2  Shift Operators --
7022       --------------------------
7023
7024       --  Calls to the intrinsic shift functions are converted to one of
7025       --  the following shift nodes, which have the form of normal binary
7026       --  operator names. Note that for a given shift operation, one node
7027       --  covers all possible types, as for normal operators.
7028
7029       --  Note: it is perfectly permissible for the expander to generate
7030       --  shift operation nodes directly, in which case they will be analyzed
7031       --  and parsed in the usual manner.
7032
7033       --  Sprint syntax: shift-function-name!(expr, count)
7034
7035       --  Note: the Left_Opnd field holds the first argument (the value to
7036       --  be shifted). The Right_Opnd field holds the second argument (the
7037       --  shift count). The Chars field is the name of the intrinsic function.
7038
7039       --  N_Op_Rotate_Left
7040       --  Sloc points to the function name
7041       --  plus fields for binary operator
7042       --  plus fields for expression
7043       --  Shift_Count_OK (Flag4-Sem)
7044
7045       --  N_Op_Rotate_Right
7046       --  Sloc points to the function name
7047       --  plus fields for binary operator
7048       --  plus fields for expression
7049       --  Shift_Count_OK (Flag4-Sem)
7050
7051       --  N_Op_Shift_Left
7052       --  Sloc points to the function name
7053       --  plus fields for binary operator
7054       --  plus fields for expression
7055       --  Shift_Count_OK (Flag4-Sem)
7056
7057       --  N_Op_Shift_Right_Arithmetic
7058       --  Sloc points to the function name
7059       --  plus fields for binary operator
7060       --  plus fields for expression
7061       --  Shift_Count_OK (Flag4-Sem)
7062
7063       --  N_Op_Shift_Right
7064       --  Sloc points to the function name
7065       --  plus fields for binary operator
7066       --  plus fields for expression
7067       --  Shift_Count_OK (Flag4-Sem)
7068
7069    --------------------------
7070    -- Obsolescent Features --
7071    --------------------------
7072
7073       --  The syntax descriptions and tree nodes for obsolescent features are
7074       --  grouped together, corresponding to their location in appendix I in
7075       --  the RM. However, parsing and semantic analysis for these constructs
7076       --  is located in an appropriate chapter (see individual notes).
7077
7078       ---------------------------
7079       -- J.3  Delta Constraint --
7080       ---------------------------
7081
7082       --  Note: the parse routine for this construct is located in section
7083       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7084       --  where delta constraint logically belongs.
7085
7086       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7087
7088       --  N_Delta_Constraint
7089       --  Sloc points to DELTA
7090       --  Delta_Expression (Node3)
7091       --  Range_Constraint (Node4) (set to Empty if not present)
7092
7093       --------------------
7094       -- J.7  At Clause --
7095       --------------------
7096
7097       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7098
7099       --  Note: the parse routine for this construct is located in Par-Ch13,
7100       --  and the semantic analysis is in Sem_Ch13, where at clause logically
7101       --  belongs if it were not obsolescent.
7102
7103       --  Note: in Ada 83 the expression must be a simple expression
7104
7105       --  Gigi restriction: This node never appears, it is rewritten as an
7106       --  address attribute definition clause.
7107
7108       --  N_At_Clause
7109       --  Sloc points to FOR
7110       --  Identifier (Node1)
7111       --  Expression (Node3)
7112
7113       ---------------------
7114       -- J.8  Mod clause --
7115       ---------------------
7116
7117       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
7118
7119       --  Note: the parse routine for this construct is located in Par-Ch13,
7120       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
7121       --  belongs if it were not obsolescent.
7122
7123       --  Note: in Ada 83, the expression must be a simple expression
7124
7125       --  Gigi restriction: this node never appears. It is replaced
7126       --  by a corresponding Alignment attribute definition clause.
7127
7128       --  Note: pragmas can appear before and after the MOD_CLAUSE since
7129       --  its name has "clause" in it. This is rather strange, but is quite
7130       --  definitely specified. The pragmas before are collected in the
7131       --  Pragmas_Before field of the mod clause node itself, and pragmas
7132       --  after are simply swallowed up in the list of component clauses.
7133
7134       --  N_Mod_Clause
7135       --  Sloc points to AT
7136       --  Expression (Node3)
7137       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7138
7139    --------------------
7140    -- Semantic Nodes --
7141    --------------------
7142
7143    --  These semantic nodes are used to hold additional semantic information.
7144    --  They are inserted into the tree as a result of semantic processing.
7145    --  Although there are no legitimate source syntax constructions that
7146    --  correspond directly to these nodes, we need a source syntax for the
7147    --  reconstructed tree printed by Sprint, and the node descriptions here
7148    --  show this syntax.
7149
7150       --------------
7151       -- Contract --
7152       --------------
7153
7154       --  This node is used to hold the various parts of an entry, subprogram
7155       --  [body] or package [body] contract, in particular:
7156       --     Abstract states declared by a package declaration
7157       --     Contract cases that apply to a subprogram
7158       --     Dependency relations of inputs and output of a subprogram
7159       --     Global annotations classifying data as input or output
7160       --     Initialization sequences for a package declaration
7161       --     Pre- and postconditions that apply to a subprogram
7162
7163       --  The node appears in an entry and [generic] subprogram [body] entity.
7164
7165       --  Sprint syntax:  <none> as the node should not appear in the tree, but
7166       --                  only attached to an entry or [generic] subprogram
7167       --                  entity.
7168
7169       --  N_Contract
7170       --  Sloc points to the subprogram's name
7171       --  Pre_Post_Conditions (Node1) (set to Empty if none)
7172       --  Contract_Test_Cases (Node2) (set to Empty if none)
7173       --  Classifications (Node3) (set to Empty if none)
7174
7175       --  Pre_Post_Conditions contains a collection of pragmas that correspond
7176       --  to pre- and postconditions associated with an entry or a subprogram
7177       --  [body or stub]. The pragmas can either come from source or be the
7178       --  byproduct of aspect expansion. Currently the following pragmas appear
7179       --  in this list:
7180       --    Post
7181       --    Postcondition
7182       --    Pre
7183       --    Precondition
7184       --  The ordering in the list is in LIFO fashion.
7185
7186       --  Note that there might be multiple preconditions or postconditions
7187       --  in this list, either because they come from separate pragmas in the
7188       --  source, or because a Pre (resp. Post) aspect specification has been
7189       --  broken into AND THEN sections. See Split_PPC for details.
7190
7191       --  Contract_Test_Cases contains a collection of pragmas that correspond
7192       --  to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7193       --  list is in LIFO fashion.
7194
7195       --  Classifications contains pragmas that either declare, categorize or
7196       --  establish dependencies between subprogram or package inputs and
7197       --  outputs. Currently the following pragmas appear in this list:
7198       --    Abstract_States
7199       --    Depends
7200       --    Global
7201       --    Initializes
7202       --    Refined_Depends
7203       --    Refined_Global
7204       --    Refined_States
7205       --  The ordering is in LIFO fashion.
7206
7207       -------------------
7208       -- Expanded_Name --
7209       -------------------
7210
7211       --  The N_Expanded_Name node is used to represent a selected component
7212       --  name that has been resolved to an expanded name. The semantic phase
7213       --  replaces N_Selected_Component nodes that represent names by the use
7214       --  of this node, leaving the N_Selected_Component node used only when
7215       --  the prefix is a record or protected type.
7216
7217       --  The fields of the N_Expanded_Name node are layed out identically
7218       --  to those of the N_Selected_Component node, allowing conversion of
7219       --  an expanded name node to a selected component node to be done
7220       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7221
7222       --  There is no special sprint syntax for an expanded name
7223
7224       --  N_Expanded_Name
7225       --  Sloc points to the period
7226       --  Chars (Name1) copy of Chars field of selector name
7227       --  Prefix (Node3)
7228       --  Selector_Name (Node2)
7229       --  Entity (Node4-Sem)
7230       --  Associated_Node (Node4-Sem)
7231       --  Has_Private_View (Flag11-Sem) set in generic units.
7232       --  Redundant_Use (Flag13-Sem)
7233       --  Atomic_Sync_Required (Flag14-Sem)
7234       --  plus fields for expression
7235
7236       -----------------------------
7237       -- Expression with Actions --
7238       -----------------------------
7239
7240       --  This node is created by the analyzer/expander to handle some
7241       --  expansion cases, notably short circuit forms where there are
7242       --  actions associated with the right-hand side operand.
7243
7244       --  The N_Expression_With_Actions node represents an expression with
7245       --  an associated set of actions (which are executable statements and
7246       --  declarations, as might occur in a handled statement sequence).
7247
7248       --  The required semantics is that the set of actions is executed in
7249       --  the order in which it appears just before the expression is
7250       --  evaluated (and these actions must only be executed if the value
7251       --  of the expression is evaluated). The node is considered to be
7252       --  a subexpression, whose value is the value of the Expression after
7253       --  executing all the actions.
7254
7255       --  If the actions contain declarations, then these declarations may
7256       --  be referenced within the expression. However note that there is
7257       --  no proper scope associated with the expression-with-action, so the
7258       --  back-end will elaborate them in the context of the enclosing scope.
7259
7260       --  Sprint syntax:  do
7261       --                    action;
7262       --                    action;
7263       --                    ...
7264       --                    action;
7265       --                  in expression end
7266
7267       --  N_Expression_With_Actions
7268       --  Actions (List1)
7269       --  Expression (Node3)
7270       --  plus fields for expression
7271
7272       --  Note: the actions list is always non-null, since we would never have
7273       --  created this node if there weren't some actions.
7274
7275       --  Note: Expression may be a Null_Statement, in which case the
7276       --  N_Expression_With_Actions has type Standard_Void_Type. However some
7277       --  backends do not support such expression-with-actions occurring
7278       --  outside of a proper (non-void) expression, so this should just be
7279       --  used as an intermediate representation within the front-end. Also
7280       --  note that this is really an irregularity (expressions and statements
7281       --  are not interchangeable, and in particular an N_Null_Statement is
7282       --  not a proper expression), and in the long term all cases of this
7283       --  idiom should instead use a new node kind N_Compound_Statement.
7284
7285       --------------------
7286       -- Free Statement --
7287       --------------------
7288
7289       --  The N_Free_Statement node is generated as a result of a call to an
7290       --  instantiation of Unchecked_Deallocation. The instantiation of this
7291       --  generic is handled specially and generates this node directly.
7292
7293       --  Sprint syntax: free expression
7294
7295       --  N_Free_Statement
7296       --  Sloc is copied from the unchecked deallocation call
7297       --  Expression (Node3) argument to unchecked deallocation call
7298       --  Storage_Pool (Node1-Sem)
7299       --  Procedure_To_Call (Node2-Sem)
7300       --  Actual_Designated_Subtype (Node4-Sem)
7301
7302       --  Note: in the case where a debug source file is generated, the Sloc
7303       --  for this node points to the FREE keyword in the Sprint file output.
7304
7305       -------------------
7306       -- Freeze Entity --
7307       -------------------
7308
7309       --  This node marks the point in a declarative part at which an entity
7310       --  declared therein becomes frozen. The expander places initialization
7311       --  procedures for types at those points. Gigi uses the freezing point
7312       --  to elaborate entities that may depend on previous private types.
7313
7314       --  See the section in Einfo "Delayed Freezing and Elaboration" for
7315       --  a full description of the use of this node.
7316
7317       --  The Entity field points back to the entity for the type (whose
7318       --  Freeze_Node field points back to this freeze node).
7319
7320       --  The Actions field contains a list of declarations and statements
7321       --  generated by the expander which are associated with the freeze
7322       --  node, and are elaborated as though the freeze node were replaced
7323       --  by this sequence of actions.
7324
7325       --  Note: the Sloc field in the freeze node references a construct
7326       --  associated with the freezing point. This is used for posting
7327       --  messages in some error/warning situations, e.g. the case where
7328       --  a primitive operation of a tagged type is declared too late.
7329
7330       --  Sprint syntax: freeze entity-name [
7331       --                   freeze actions
7332       --                 ]
7333
7334       --  N_Freeze_Entity
7335       --  Sloc points near freeze point (see above special note)
7336       --  Entity (Node4-Sem)
7337       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7338       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7339       --  Actions (List1) (set to No_List if no freeze actions)
7340       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7341
7342       --  The Actions field holds actions associated with the freeze. These
7343       --  actions are elaborated at the point where the type is frozen.
7344
7345       --  Note: in the case where a debug source file is generated, the Sloc
7346       --  for this node points to the FREEZE keyword in the Sprint file output.
7347
7348       ---------------------------
7349       -- Freeze_Generic_Entity --
7350       ---------------------------
7351
7352       --  The freeze point of an entity indicates the point at which the
7353       --  information needed to generate code for the entity is complete.
7354       --  The freeze node for an entity triggers expander activities, such as
7355       --  build initialization procedures, and backend activities, such as
7356       --  completing the elaboration of packages.
7357
7358       --  For entities declared within a generic unit, for which no code is
7359       --  generated, the freeze point is not equally meaningful. However, in
7360       --  Ada 2012 several semantic checks on declarations must be delayed to
7361       --  the freeze point, and we need to include such a mark in the tree to
7362       --  trigger these checks. The Freeze_Generic_Entity node plays no other
7363       --  role, and is ignored by the expander and the back-end.
7364
7365       --  Sprint syntax: freeze_generic entity-name
7366
7367       --  N_Freeze_Generic_Entity
7368       --  Sloc points near freeze point
7369       --  Entity (Node4-Sem)
7370
7371       --------------------------------
7372       -- Implicit Label Declaration --
7373       --------------------------------
7374
7375       --  An implicit label declaration is created for every occurrence of a
7376       --  label on a statement or a label on a block or loop. It is chained
7377       --  in the declarations of the innermost enclosing block as specified
7378       --  in RM section 5.1 (3).
7379
7380       --  The Defining_Identifier is the actual identifier for the statement
7381       --  identifier. Note that the occurrence of the label is a reference, NOT
7382       --  the defining occurrence. The defining occurrence occurs at the head
7383       --  of the innermost enclosing block, and is represented by this node.
7384
7385       --  Note: from the grammar, this might better be called an implicit
7386       --  statement identifier declaration, but the term we choose seems
7387       --  friendlier, since at least informally statement identifiers are
7388       --  called labels in both cases (i.e. when used in labels, and when
7389       --  used as the identifiers of blocks and loops).
7390
7391       --  Note: although this is logically a semantic node, since it does not
7392       --  correspond directly to a source syntax construction, these nodes are
7393       --  actually created by the parser in a post pass done just after parsing
7394       --  is complete, before semantic analysis is started (see Par.Labl).
7395
7396       --  Sprint syntax: labelname : label;
7397
7398       --  N_Implicit_Label_Declaration
7399       --  Sloc points to the << token for a statement identifier, or to the
7400       --    LOOP, DECLARE, or BEGIN token for a loop or block identifier
7401       --  Defining_Identifier (Node1)
7402       --  Label_Construct (Node2-Sem)
7403
7404       --  Note: in the case where a debug source file is generated, the Sloc
7405       --  for this node points to the label name in the generated declaration.
7406
7407       ---------------------
7408       -- Itype_Reference --
7409       ---------------------
7410
7411       --  This node is used to create a reference to an Itype. The only purpose
7412       --  is to make sure the Itype is defined if this is the first reference.
7413
7414       --  A typical use of this node is when an Itype is to be referenced in
7415       --  two branches of an IF statement. In this case it is important that
7416       --  the first use of the Itype not be inside the conditional, since then
7417       --  it might not be defined if the other branch of the IF is taken, in
7418       --  the case where the definition generates elaboration code.
7419
7420       --  The Itype field points to the referenced Itype
7421
7422       --  Sprint syntax: reference itype-name
7423
7424       --  N_Itype_Reference
7425       --  Sloc points to the node generating the reference
7426       --  Itype (Node1-Sem)
7427
7428       --  Note: in the case where a debug source file is generated, the Sloc
7429       --  for this node points to the REFERENCE keyword in the file output.
7430
7431       ---------------------
7432       -- Raise_xxx_Error --
7433       ---------------------
7434
7435       --  One of these nodes is created during semantic analysis to replace
7436       --  a node for an expression that is determined to definitely raise
7437       --  the corresponding exception.
7438
7439       --  The N_Raise_xxx_Error node may also stand alone in place
7440       --  of a declaration or statement, in which case it simply causes
7441       --  the exception to be raised (i.e. it is equivalent to a raise
7442       --  statement that raises the corresponding exception). This use
7443       --  is distinguished by the fact that the Etype in this case is
7444       --  Standard_Void_Type; in the subexpression case, the Etype is the
7445       --  same as the type of the subexpression which it replaces.
7446
7447       --  If Condition is empty, then the raise is unconditional. If the
7448       --  Condition field is non-empty, it is a boolean expression which
7449       --  is first evaluated, and the exception is raised only if the
7450       --  value of the expression is True. In the unconditional case, the
7451       --  creation of this node is usually accompanied by a warning message
7452       --  error. The creation of this node will usually be accompanied by a
7453       --  message (unless it appears within the right operand of a short
7454       --  circuit form whose left argument is static and decisively
7455       --  eliminates elaboration of the raise operation. The condition field
7456       --  can ONLY be present when the node is used as a statement form, it
7457       --  may NOT be present in the case where the node appears within an
7458       --  expression.
7459
7460       --  The exception is generated with a message that contains the
7461       --  file name and line number, and then appended text. The Reason
7462       --  code shows the text to be added. The Reason code is an element
7463       --  of the type Types.RT_Exception_Code, and indicates both the
7464       --  message to be added, and the exception to be raised (which must
7465       --  match the node type). The value is stored by storing a Uint which
7466       --  is the Pos value of the enumeration element in this type.
7467
7468       --  Gigi restriction: This expander ensures that the type of the
7469       --  Condition field is always Standard.Boolean, even if the type
7470       --  in the source is some non-standard boolean type.
7471
7472       --  Sprint syntax: [xxx_error "msg"]
7473       --             or: [xxx_error when condition "msg"]
7474
7475       --  N_Raise_Constraint_Error
7476       --  Sloc references related construct
7477       --  Condition (Node1) (set to Empty if no condition)
7478       --  Reason (Uint3)
7479       --  plus fields for expression
7480
7481       --  N_Raise_Program_Error
7482       --  Sloc references related construct
7483       --  Condition (Node1) (set to Empty if no condition)
7484       --  Reason (Uint3)
7485       --  plus fields for expression
7486
7487       --  N_Raise_Storage_Error
7488       --  Sloc references related construct
7489       --  Condition (Node1) (set to Empty if no condition)
7490       --  Reason (Uint3)
7491       --  plus fields for expression
7492
7493       --  Note: Sloc is copied from the expression generating the exception.
7494       --  In the case where a debug source file is generated, the Sloc for
7495       --  this node points to the left bracket in the Sprint file output.
7496
7497       --  Note: the back end may be required to translate these nodes into
7498       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7499
7500       ---------------------------------------------
7501       -- Optimization of Exception Raise to Goto --
7502       ---------------------------------------------
7503
7504       --  In some cases, the front end will determine that any exception raised
7505       --  by the back end for a certain exception should be transformed into a
7506       --  goto statement.
7507
7508       --  There are three kinds of exceptions raised by the back end (note that
7509       --  for this purpose we consider gigi to be part of the back end in the
7510       --  gcc case):
7511
7512       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
7513       --     2. Exceptions from checks triggered by Do_xxx_Check flags
7514       --     3. Other cases not specifically marked by the front end
7515
7516       --  Normally all such exceptions are translated into calls to the proper
7517       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
7518       --  and the exception message.
7519
7520       --  The front end may determine that for a particular sequence of code,
7521       --  exceptions in any of these three categories for a particular builtin
7522       --  exception should result in a goto, rather than a call to Rcheck_xx.
7523       --  The exact sequence to be generated is:
7524
7525       --      Local_Raise (exception'Identity);
7526       --      goto Label
7527
7528       --  The front end marks such a sequence of code by bracketing it with
7529       --  push and pop nodes:
7530
7531       --       N_Push_xxx_Label (referencing the label)
7532       --       ...
7533       --       (code where transformation is expected for exception xxx)
7534       --       ...
7535       --       N_Pop_xxx_Label
7536
7537       --  The use of push/pop reflects the fact that such regions can properly
7538       --  nest, and one special case is a subregion in which no transformation
7539       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7540       --  Exception_Label field is Empty.
7541
7542       --  N_Push_Constraint_Error_Label
7543       --  Sloc references first statement in region covered
7544       --  Exception_Label (Node5-Sem)
7545
7546       --  N_Push_Program_Error_Label
7547       --  Sloc references first statement in region covered
7548       --  Exception_Label (Node5-Sem)
7549
7550       --  N_Push_Storage_Error_Label
7551       --  Sloc references first statement in region covered
7552       --  Exception_Label (Node5-Sem)
7553
7554       --  N_Pop_Constraint_Error_Label
7555       --  Sloc references last statement in region covered
7556
7557       --  N_Pop_Program_Error_Label
7558       --  Sloc references last statement in region covered
7559
7560       --  N_Pop_Storage_Error_Label
7561       --  Sloc references last statement in region covered
7562
7563       ---------------
7564       -- Reference --
7565       ---------------
7566
7567       --  For a number of purposes, we need to construct references to objects.
7568       --  These references are subsequently treated as normal access values.
7569       --  An example is the construction of the parameter block passed to a
7570       --  task entry. The N_Reference node is provided for this purpose. It is
7571       --  similar in effect to the use of the Unrestricted_Access attribute,
7572       --  and like Unrestricted_Access can be applied to objects which would
7573       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
7574       --  objects which are not aliased, and slices). In addition it can be
7575       --  applied to composite type values as well as objects, including string
7576       --  values and aggregates.
7577
7578       --  Note: we use the Prefix field for this expression so that the
7579       --  resulting node can be treated using common code with the attribute
7580       --  nodes for the 'Access and related attributes. Logically it would make
7581       --  more sense to call it an Expression field, but then we would have to
7582       --  special case the treatment of the N_Reference node.
7583
7584       --  Note: evaluating a N_Reference node is guaranteed to yield a non-null
7585       --  value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7586       --  a temporary initialized to a N_Reference node in order to eliminate
7587       --  superfluous access checks.
7588
7589       --  Sprint syntax: prefix'reference
7590
7591       --  N_Reference
7592       --  Sloc is copied from the expression
7593       --  Prefix (Node3)
7594       --  plus fields for expression
7595
7596       --  Note: in the case where a debug source file is generated, the Sloc
7597       --  for this node points to the quote in the Sprint file output.
7598
7599       -----------------
7600       --  SCIL Nodes --
7601       -----------------
7602
7603       --  SCIL nodes are special nodes added to the tree when the CodePeer
7604       --  mode is active. They help the CodePeer backend to locate nodes that
7605       --  require special processing. They are only generated if SCIL
7606       --  generation is enabled. A standard tree-walk will not encounter
7607       --  these nodes even if they are present; these nodes are only
7608       --  accessible via the function SCIL_LL.Get_SCIL_Node.
7609
7610       --  N_SCIL_Dispatch_Table_Tag_Init
7611       --  Sloc references a node for a tag initialization
7612       --  SCIL_Entity (Node4-Sem)
7613       --
7614       --  An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7615       --  Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7616       --  the declaration of the dispatch table for a tagged type.
7617
7618       --  N_SCIL_Dispatching_Call
7619       --  Sloc references the node of a dispatching call
7620       --  SCIL_Target_Prim (Node2-Sem)
7621       --  SCIL_Entity (Node4-Sem)
7622       --  SCIL_Controlling_Tag (Node5-Sem)
7623       --
7624       --  An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7625       --  with the N_Procedure_Call or N_Function_Call node (or a rewriting
7626       --  thereof) corresponding to a dispatching call.
7627
7628       --  N_SCIL_Membership_Test
7629       --  Sloc references the node of a membership test
7630       --  SCIL_Tag_Value (Node5-Sem)
7631       --  SCIL_Entity (Node4-Sem)
7632       --
7633       --  An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7634       --  with the N_In node (or a rewriting thereof) corresponding to a
7635       --  classwide membership test.
7636
7637       ---------------------
7638       -- Subprogram_Info --
7639       ---------------------
7640
7641       --  This node generates the appropriate Subprogram_Info value for a
7642       --  given procedure. See Ada.Exceptions for further details
7643
7644       --  Sprint syntax: subprog'subprogram_info
7645
7646       --  N_Subprogram_Info
7647       --  Sloc points to the entity for the procedure
7648       --  Identifier (Node1) identifier referencing the procedure
7649       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7650
7651       --  Note: in the case where a debug source file is generated, the Sloc
7652       --  for this node points to the quote in the Sprint file output.
7653
7654       --------------------------
7655       -- Unchecked Expression --
7656       --------------------------
7657
7658       --  An unchecked expression is one that must be analyzed and resolved
7659       --  with all checks off, regardless of the current setting of scope
7660       --  suppress flags.
7661
7662       --  Sprint syntax: `(expression)
7663
7664       --  Note: this node is always removed from the tree (and replaced by
7665       --  its constituent expression) on completion of analysis, so it only
7666       --  appears in intermediate trees, and will never be seen by Gigi.
7667
7668       --  N_Unchecked_Expression
7669       --  Sloc is a copy of the Sloc of the expression
7670       --  Expression (Node3)
7671       --  plus fields for expression
7672
7673       --  Note: in the case where a debug source file is generated, the Sloc
7674       --  for this node points to the back quote in the Sprint file output.
7675
7676       -------------------------------
7677       -- Unchecked Type Conversion --
7678       -------------------------------
7679
7680       --  An unchecked type conversion node represents the semantic action
7681       --  corresponding to a call to an instantiation of Unchecked_Conversion.
7682       --  It is generated as a result of actual use of Unchecked_Conversion
7683       --  and also the expander generates unchecked type conversion nodes
7684       --  directly for expansion of complex semantic actions.
7685
7686       --  Note: an unchecked type conversion is a variable as far as the
7687       --  semantics are concerned, which is convenient for the expander.
7688       --  This does not change what Ada source programs are legal, since
7689       --  clearly a function call to an instantiation of Unchecked_Conversion
7690       --  is not a variable in any case.
7691
7692       --  Sprint syntax: subtype-mark!(expression)
7693
7694       --  N_Unchecked_Type_Conversion
7695       --  Sloc points to related node in source
7696       --  Subtype_Mark (Node4)
7697       --  Expression (Node3)
7698       --  Kill_Range_Check (Flag11-Sem)
7699       --  No_Truncation (Flag17-Sem)
7700       --  plus fields for expression
7701
7702       --  Note: in the case where a debug source file is generated, the Sloc
7703       --  for this node points to the exclamation in the Sprint file output.
7704
7705       -----------------------------------
7706       -- Validate_Unchecked_Conversion --
7707       -----------------------------------
7708
7709       --  The front end does most of the validation of unchecked conversion,
7710       --  including checking sizes (this is done after the back end is called
7711       --  to take advantage of back-annotation of calculated sizes).
7712
7713       --  The front end also deals with specific cases that are not allowed
7714       --  e.g. involving unconstrained array types.
7715
7716       --  For the case of the standard gigi backend, this means that all
7717       --  checks are done in the front-end.
7718
7719       --  However, in the case of specialized back-ends, notably the JVM
7720       --  backend for JGNAT, additional requirements and restrictions apply
7721       --  to unchecked conversion, and these are most conveniently performed
7722       --  in the specialized back-end.
7723
7724       --  To accommodate this requirement, for such back ends, the following
7725       --  special node is generated recording an unchecked conversion that
7726       --  needs to be validated. The back end should post an appropriate
7727       --  error message if the unchecked conversion is invalid or warrants
7728       --  a special warning message.
7729
7730       --  Source_Type and Target_Type point to the entities for the two
7731       --  types involved in the unchecked conversion instantiation that
7732       --  is to be validated.
7733
7734       --  Sprint syntax: validate Unchecked_Conversion (source, target);
7735
7736       --  N_Validate_Unchecked_Conversion
7737       --  Sloc points to instantiation (location for warning message)
7738       --  Source_Type (Node1-Sem)
7739       --  Target_Type (Node2-Sem)
7740
7741       --  Note: in the case where a debug source file is generated, the Sloc
7742       --  for this node points to the VALIDATE keyword in the file output.
7743
7744    -----------
7745    -- Empty --
7746    -----------
7747
7748    --  Used as the contents of the Nkind field of the dummy Empty node
7749    --  and in some other situations to indicate an uninitialized value.
7750
7751    --  N_Empty
7752    --  Chars (Name1) is set to No_Name
7753
7754    -----------
7755    -- Error --
7756    -----------
7757
7758    --  Used as the contents of the Nkind field of the dummy Error node.
7759    --  Has an Etype field, which gets set to Any_Type later on, to help
7760    --  error recovery (Error_Posted is also set in the Error node).
7761
7762    --  N_Error
7763    --  Chars (Name1) is set to Error_Name
7764    --  Etype (Node5-Sem)
7765
7766    --------------------------
7767    -- Node Type Definition --
7768    --------------------------
7769
7770    --  The following is the definition of the Node_Kind type. As previously
7771    --  discussed, this is separated off to allow rearrangement of the order to
7772    --  facilitate definition of subtype ranges. The comments show the subtype
7773    --  classes which apply to each set of node kinds. The first entry in the
7774    --  comment characterizes the following list of nodes.
7775
7776    type Node_Kind is (
7777       N_Unused_At_Start,
7778
7779       --  N_Representation_Clause
7780
7781       N_At_Clause,
7782       N_Component_Clause,
7783       N_Enumeration_Representation_Clause,
7784       N_Mod_Clause,
7785       N_Record_Representation_Clause,
7786
7787       --  N_Representation_Clause, N_Has_Chars
7788
7789       N_Attribute_Definition_Clause,
7790
7791       --  N_Has_Chars
7792
7793       N_Empty,
7794       N_Pragma_Argument_Association,
7795
7796       --  N_Has_Etype, N_Has_Chars
7797
7798       --  Note: of course N_Error does not really have Etype or Chars fields,
7799       --  and any attempt to access these fields in N_Error will cause an
7800       --  error, but historically this always has been positioned so that an
7801       --  "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
7802       --  Most likely this makes coding easier somewhere but still seems
7803       --  undesirable. To be investigated some time ???
7804
7805       N_Error,
7806
7807       --  N_Entity, N_Has_Etype, N_Has_Chars
7808
7809       N_Defining_Character_Literal,
7810       N_Defining_Identifier,
7811       N_Defining_Operator_Symbol,
7812
7813       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7814
7815       N_Expanded_Name,
7816
7817       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7818       --  N_Has_Chars, N_Has_Entity
7819
7820       N_Identifier,
7821       N_Operator_Symbol,
7822
7823       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7824       --  N_Has_Chars, N_Has_Entity
7825
7826       N_Character_Literal,
7827
7828       --  N_Binary_Op, N_Op, N_Subexpr,
7829       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
7830
7831       N_Op_Add,
7832       N_Op_Concat,
7833       N_Op_Expon,
7834       N_Op_Subtract,
7835
7836       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7837       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7838
7839       N_Op_Divide,
7840       N_Op_Mod,
7841       N_Op_Multiply,
7842       N_Op_Rem,
7843
7844       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7845       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7846
7847       N_Op_And,
7848
7849       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7850       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7851
7852       N_Op_Eq,
7853       N_Op_Ge,
7854       N_Op_Gt,
7855       N_Op_Le,
7856       N_Op_Lt,
7857       N_Op_Ne,
7858
7859       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7860       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7861
7862       N_Op_Or,
7863       N_Op_Xor,
7864
7865       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7866       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
7867
7868       N_Op_Rotate_Left,
7869       N_Op_Rotate_Right,
7870       N_Op_Shift_Left,
7871       N_Op_Shift_Right,
7872       N_Op_Shift_Right_Arithmetic,
7873
7874       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7875       --  N_Has_Chars, N_Has_Entity
7876
7877       N_Op_Abs,
7878       N_Op_Minus,
7879       N_Op_Not,
7880       N_Op_Plus,
7881
7882       --  N_Subexpr, N_Has_Etype, N_Has_Entity
7883
7884       N_Attribute_Reference,
7885
7886       --  N_Subexpr, N_Has_Etype, N_Membership_Test
7887
7888       N_In,
7889       N_Not_In,
7890
7891       --  N_Subexpr, N_Has_Etype, N_Short_Circuit
7892
7893       N_And_Then,
7894       N_Or_Else,
7895
7896       --  N_Subexpr, N_Has_Etype, N_Subprogram_Call
7897
7898       N_Function_Call,
7899       N_Procedure_Call_Statement,
7900
7901       --  N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
7902
7903       N_Raise_Constraint_Error,
7904       N_Raise_Program_Error,
7905       N_Raise_Storage_Error,
7906
7907       --  N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
7908
7909       N_Integer_Literal,
7910       N_Real_Literal,
7911       N_String_Literal,
7912
7913       --  N_Subexpr, N_Has_Etype
7914
7915       N_Explicit_Dereference,
7916       N_Expression_With_Actions,
7917       N_If_Expression,
7918       N_Indexed_Component,
7919       N_Null,
7920       N_Qualified_Expression,
7921       N_Quantified_Expression,
7922       N_Aggregate,
7923       N_Allocator,
7924       N_Case_Expression,
7925       N_Extension_Aggregate,
7926       N_Raise_Expression,
7927       N_Range,
7928       N_Reference,
7929       N_Selected_Component,
7930       N_Slice,
7931       N_Subprogram_Info,
7932       N_Type_Conversion,
7933       N_Unchecked_Expression,
7934       N_Unchecked_Type_Conversion,
7935
7936       --  N_Has_Etype
7937
7938       N_Subtype_Indication,
7939
7940       --  N_Declaration
7941
7942       N_Component_Declaration,
7943       N_Entry_Declaration,
7944       N_Expression_Function,
7945       N_Formal_Object_Declaration,
7946       N_Formal_Type_Declaration,
7947       N_Full_Type_Declaration,
7948       N_Incomplete_Type_Declaration,
7949       N_Iterator_Specification,
7950       N_Loop_Parameter_Specification,
7951       N_Object_Declaration,
7952       N_Protected_Type_Declaration,
7953       N_Private_Extension_Declaration,
7954       N_Private_Type_Declaration,
7955       N_Subtype_Declaration,
7956
7957       --  N_Subprogram_Specification, N_Declaration
7958
7959       N_Function_Specification,
7960       N_Procedure_Specification,
7961
7962       --  N_Access_To_Subprogram_Definition
7963
7964       N_Access_Function_Definition,
7965       N_Access_Procedure_Definition,
7966
7967       --  N_Later_Decl_Item
7968
7969       N_Task_Type_Declaration,
7970
7971       --  N_Body_Stub, N_Later_Decl_Item
7972
7973       N_Package_Body_Stub,
7974       N_Protected_Body_Stub,
7975       N_Subprogram_Body_Stub,
7976       N_Task_Body_Stub,
7977
7978       --  N_Generic_Instantiation, N_Later_Decl_Item
7979       --  N_Subprogram_Instantiation
7980
7981       N_Function_Instantiation,
7982       N_Procedure_Instantiation,
7983
7984       --  N_Generic_Instantiation, N_Later_Decl_Item
7985
7986       N_Package_Instantiation,
7987
7988       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7989
7990       N_Package_Body,
7991       N_Subprogram_Body,
7992
7993       --  N_Later_Decl_Item, N_Proper_Body
7994
7995       N_Protected_Body,
7996       N_Task_Body,
7997
7998       --  N_Later_Decl_Item
7999
8000       N_Implicit_Label_Declaration,
8001       N_Package_Declaration,
8002       N_Single_Task_Declaration,
8003       N_Subprogram_Declaration,
8004       N_Use_Package_Clause,
8005
8006       --  N_Generic_Declaration, N_Later_Decl_Item
8007
8008       N_Generic_Package_Declaration,
8009       N_Generic_Subprogram_Declaration,
8010
8011       --  N_Array_Type_Definition
8012
8013       N_Constrained_Array_Definition,
8014       N_Unconstrained_Array_Definition,
8015
8016       --  N_Renaming_Declaration
8017
8018       N_Exception_Renaming_Declaration,
8019       N_Object_Renaming_Declaration,
8020       N_Package_Renaming_Declaration,
8021       N_Subprogram_Renaming_Declaration,
8022
8023       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
8024
8025       N_Generic_Function_Renaming_Declaration,
8026       N_Generic_Package_Renaming_Declaration,
8027       N_Generic_Procedure_Renaming_Declaration,
8028
8029       --  N_Statement_Other_Than_Procedure_Call
8030
8031       N_Abort_Statement,
8032       N_Accept_Statement,
8033       N_Assignment_Statement,
8034       N_Asynchronous_Select,
8035       N_Block_Statement,
8036       N_Case_Statement,
8037       N_Code_Statement,
8038       N_Conditional_Entry_Call,
8039
8040       --  N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8041
8042       N_Delay_Relative_Statement,
8043       N_Delay_Until_Statement,
8044
8045       --  N_Statement_Other_Than_Procedure_Call
8046
8047       N_Entry_Call_Statement,
8048       N_Free_Statement,
8049       N_Goto_Statement,
8050       N_Loop_Statement,
8051       N_Null_Statement,
8052       N_Raise_Statement,
8053       N_Requeue_Statement,
8054       N_Simple_Return_Statement,
8055       N_Extended_Return_Statement,
8056       N_Selective_Accept,
8057       N_Timed_Entry_Call,
8058
8059       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8060
8061       N_Exit_Statement,
8062       N_If_Statement,
8063
8064       --  N_Has_Condition
8065
8066       N_Accept_Alternative,
8067       N_Delay_Alternative,
8068       N_Elsif_Part,
8069       N_Entry_Body_Formal_Part,
8070       N_Iteration_Scheme,
8071       N_Terminate_Alternative,
8072
8073       --  N_Formal_Subprogram_Declaration
8074
8075       N_Formal_Abstract_Subprogram_Declaration,
8076       N_Formal_Concrete_Subprogram_Declaration,
8077
8078       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
8079
8080       N_Push_Constraint_Error_Label,
8081       N_Push_Program_Error_Label,
8082       N_Push_Storage_Error_Label,
8083
8084       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8085
8086       N_Pop_Constraint_Error_Label,
8087       N_Pop_Program_Error_Label,
8088       N_Pop_Storage_Error_Label,
8089
8090       --  SCIL nodes
8091
8092       N_SCIL_Dispatch_Table_Tag_Init,
8093       N_SCIL_Dispatching_Call,
8094       N_SCIL_Membership_Test,
8095
8096       --  Other nodes (not part of any subtype class)
8097
8098       N_Abortable_Part,
8099       N_Abstract_Subprogram_Declaration,
8100       N_Access_Definition,
8101       N_Access_To_Object_Definition,
8102       N_Aspect_Specification,
8103       N_Case_Expression_Alternative,
8104       N_Case_Statement_Alternative,
8105       N_Compilation_Unit,
8106       N_Compilation_Unit_Aux,
8107       N_Component_Association,
8108       N_Component_Definition,
8109       N_Component_List,
8110       N_Contract,
8111       N_Derived_Type_Definition,
8112       N_Decimal_Fixed_Point_Definition,
8113       N_Defining_Program_Unit_Name,
8114       N_Delta_Constraint,
8115       N_Designator,
8116       N_Digits_Constraint,
8117       N_Discriminant_Association,
8118       N_Discriminant_Specification,
8119       N_Enumeration_Type_Definition,
8120       N_Entry_Body,
8121       N_Entry_Call_Alternative,
8122       N_Entry_Index_Specification,
8123       N_Exception_Declaration,
8124       N_Exception_Handler,
8125       N_Floating_Point_Definition,
8126       N_Formal_Decimal_Fixed_Point_Definition,
8127       N_Formal_Derived_Type_Definition,
8128       N_Formal_Discrete_Type_Definition,
8129       N_Formal_Floating_Point_Definition,
8130       N_Formal_Modular_Type_Definition,
8131       N_Formal_Ordinary_Fixed_Point_Definition,
8132       N_Formal_Package_Declaration,
8133       N_Formal_Private_Type_Definition,
8134       N_Formal_Incomplete_Type_Definition,
8135       N_Formal_Signed_Integer_Type_Definition,
8136       N_Freeze_Entity,
8137       N_Freeze_Generic_Entity,
8138       N_Generic_Association,
8139       N_Handled_Sequence_Of_Statements,
8140       N_Index_Or_Discriminant_Constraint,
8141       N_Itype_Reference,
8142       N_Label,
8143       N_Modular_Type_Definition,
8144       N_Number_Declaration,
8145       N_Ordinary_Fixed_Point_Definition,
8146       N_Others_Choice,
8147       N_Package_Specification,
8148       N_Parameter_Association,
8149       N_Parameter_Specification,
8150       N_Pragma,
8151       N_Protected_Definition,
8152       N_Range_Constraint,
8153       N_Real_Range_Specification,
8154       N_Record_Definition,
8155       N_Signed_Integer_Type_Definition,
8156       N_Single_Protected_Declaration,
8157       N_Subunit,
8158       N_Task_Definition,
8159       N_Triggering_Alternative,
8160       N_Use_Type_Clause,
8161       N_Validate_Unchecked_Conversion,
8162       N_Variant,
8163       N_Variant_Part,
8164       N_With_Clause,
8165       N_Unused_At_End);
8166
8167    for Node_Kind'Size use 8;
8168    --  The data structures in Atree assume this!
8169
8170    ----------------------------
8171    -- Node Class Definitions --
8172    ----------------------------
8173
8174    subtype N_Access_To_Subprogram_Definition is Node_Kind range
8175      N_Access_Function_Definition ..
8176      N_Access_Procedure_Definition;
8177
8178    subtype N_Array_Type_Definition is Node_Kind range
8179      N_Constrained_Array_Definition ..
8180      N_Unconstrained_Array_Definition;
8181
8182    subtype N_Binary_Op is Node_Kind range
8183      N_Op_Add ..
8184      N_Op_Shift_Right_Arithmetic;
8185
8186    subtype N_Body_Stub is Node_Kind range
8187      N_Package_Body_Stub ..
8188      N_Task_Body_Stub;
8189
8190    subtype N_Declaration is Node_Kind range
8191      N_Component_Declaration ..
8192      N_Procedure_Specification;
8193    --  Note: this includes all constructs normally thought of as declarations
8194    --  except those which are separately grouped as later declarations.
8195
8196    subtype N_Delay_Statement is Node_Kind range
8197       N_Delay_Relative_Statement ..
8198       N_Delay_Until_Statement;
8199
8200    subtype N_Direct_Name is Node_Kind range
8201      N_Identifier ..
8202      N_Character_Literal;
8203
8204    subtype N_Entity is Node_Kind range
8205      N_Defining_Character_Literal ..
8206      N_Defining_Operator_Symbol;
8207
8208    subtype N_Formal_Subprogram_Declaration is Node_Kind range
8209      N_Formal_Abstract_Subprogram_Declaration ..
8210      N_Formal_Concrete_Subprogram_Declaration;
8211
8212    subtype N_Generic_Declaration is Node_Kind range
8213      N_Generic_Package_Declaration ..
8214      N_Generic_Subprogram_Declaration;
8215
8216    subtype N_Generic_Instantiation is Node_Kind range
8217      N_Function_Instantiation ..
8218      N_Package_Instantiation;
8219
8220    subtype N_Generic_Renaming_Declaration is Node_Kind range
8221      N_Generic_Function_Renaming_Declaration ..
8222      N_Generic_Procedure_Renaming_Declaration;
8223
8224    subtype N_Has_Chars is Node_Kind range
8225      N_Attribute_Definition_Clause ..
8226      N_Op_Plus;
8227
8228    subtype N_Has_Entity is Node_Kind range
8229      N_Expanded_Name ..
8230      N_Attribute_Reference;
8231    --  Nodes that have Entity fields
8232    --  Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8233    --  N_Aspect_Specification, or N_Attribute_Definition_Clause.
8234
8235    subtype N_Has_Etype is Node_Kind range
8236      N_Error ..
8237      N_Subtype_Indication;
8238
8239    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8240       N_Op_Divide ..
8241       N_Op_Rem;
8242
8243    subtype N_Multiplying_Operator is Node_Kind range
8244       N_Op_Divide ..
8245       N_Op_Rem;
8246
8247    subtype N_Later_Decl_Item is Node_Kind range
8248      N_Task_Type_Declaration ..
8249      N_Generic_Subprogram_Declaration;
8250    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8251    --  only those items which can appear as later declarative items. This also
8252    --  includes N_Implicit_Label_Declaration which is not specifically in the
8253    --  grammar but may appear as a valid later declarative items. It does NOT
8254    --  include N_Pragma which can also appear among later declarative items.
8255    --  It does however include N_Protected_Body, which is a bit peculiar, but
8256    --  harmless since this cannot appear in Ada 83 mode anyway.
8257
8258    subtype N_Membership_Test is Node_Kind range
8259       N_In ..
8260       N_Not_In;
8261
8262    subtype N_Numeric_Or_String_Literal is Node_Kind range
8263       N_Integer_Literal ..
8264       N_String_Literal;
8265
8266    subtype N_Op is Node_Kind range
8267      N_Op_Add ..
8268      N_Op_Plus;
8269
8270    subtype N_Op_Boolean is Node_Kind range
8271      N_Op_And ..
8272      N_Op_Xor;
8273    --  Binary operators which take operands of a boolean type, and yield
8274    --  a result of a boolean type.
8275
8276    subtype N_Op_Compare is Node_Kind range
8277      N_Op_Eq ..
8278      N_Op_Ne;
8279
8280    subtype N_Op_Shift is Node_Kind range
8281      N_Op_Rotate_Left ..
8282      N_Op_Shift_Right_Arithmetic;
8283
8284    subtype N_Proper_Body is Node_Kind range
8285      N_Package_Body ..
8286      N_Task_Body;
8287
8288    subtype N_Push_xxx_Label is Node_Kind range
8289      N_Push_Constraint_Error_Label ..
8290      N_Push_Storage_Error_Label;
8291
8292    subtype N_Pop_xxx_Label is Node_Kind range
8293      N_Pop_Constraint_Error_Label ..
8294      N_Pop_Storage_Error_Label;
8295
8296    subtype N_Push_Pop_xxx_Label is Node_Kind range
8297      N_Push_Constraint_Error_Label ..
8298      N_Pop_Storage_Error_Label;
8299
8300    subtype N_Raise_xxx_Error is Node_Kind range
8301      N_Raise_Constraint_Error ..
8302      N_Raise_Storage_Error;
8303
8304    subtype N_Renaming_Declaration is Node_Kind range
8305      N_Exception_Renaming_Declaration ..
8306      N_Generic_Procedure_Renaming_Declaration;
8307
8308    subtype N_Representation_Clause is Node_Kind range
8309      N_At_Clause ..
8310      N_Attribute_Definition_Clause;
8311
8312    subtype N_Short_Circuit is Node_Kind range
8313      N_And_Then ..
8314      N_Or_Else;
8315
8316    subtype N_SCIL_Node is Node_Kind range
8317      N_SCIL_Dispatch_Table_Tag_Init ..
8318      N_SCIL_Membership_Test;
8319
8320    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8321      N_Abort_Statement ..
8322      N_If_Statement;
8323    --  Note that this includes all statement types except for the cases of the
8324    --  N_Procedure_Call_Statement which is considered to be a subexpression
8325    --  (since overloading is possible, so it needs to go through the normal
8326    --  overloading resolution for expressions).
8327
8328    subtype N_Subprogram_Call is Node_Kind range
8329       N_Function_Call ..
8330       N_Procedure_Call_Statement;
8331
8332    subtype N_Subprogram_Instantiation is Node_Kind range
8333      N_Function_Instantiation ..
8334      N_Procedure_Instantiation;
8335
8336    subtype N_Has_Condition is Node_Kind range
8337      N_Exit_Statement ..
8338      N_Terminate_Alternative;
8339    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
8340
8341    subtype N_Subexpr is Node_Kind range
8342      N_Expanded_Name ..
8343      N_Unchecked_Type_Conversion;
8344    --  Nodes with expression fields
8345
8346    subtype N_Subprogram_Specification is Node_Kind range
8347      N_Function_Specification ..
8348      N_Procedure_Specification;
8349
8350    subtype N_Unary_Op is Node_Kind range
8351      N_Op_Abs ..
8352      N_Op_Plus;
8353
8354    subtype N_Unit_Body is Node_Kind range
8355      N_Package_Body ..
8356        N_Subprogram_Body;
8357
8358    ---------------------------
8359    -- Node Access Functions --
8360    ---------------------------
8361
8362    --  The following functions return the contents of the indicated field of
8363    --  the node referenced by the argument, which is a Node_Id. They provide
8364    --  logical access to fields in the node which could be accessed using the
8365    --  Atree.Unchecked_Access package, but the idea is always to use these
8366    --  higher level routines which preserve strong typing. In debug mode,
8367    --  these routines check that they are being applied to an appropriate
8368    --  node, as well as checking that the node is in range.
8369
8370    function ABE_Is_Certain
8371      (N : Node_Id) return Boolean;    -- Flag18
8372
8373    function Abort_Present
8374      (N : Node_Id) return Boolean;    -- Flag15
8375
8376    function Abortable_Part
8377      (N : Node_Id) return Node_Id;    -- Node2
8378
8379    function Abstract_Present
8380      (N : Node_Id) return Boolean;    -- Flag4
8381
8382    function Accept_Handler_Records
8383      (N : Node_Id) return List_Id;    -- List5
8384
8385    function Accept_Statement
8386      (N : Node_Id) return Node_Id;    -- Node2
8387
8388    function Access_Definition
8389      (N : Node_Id) return Node_Id;    -- Node3
8390
8391    function Access_To_Subprogram_Definition
8392      (N : Node_Id) return Node_Id;    -- Node3
8393
8394    function Access_Types_To_Process
8395      (N : Node_Id) return Elist_Id;   -- Elist2
8396
8397    function Actions
8398      (N : Node_Id) return List_Id;    -- List1
8399
8400    function Activation_Chain_Entity
8401      (N : Node_Id) return Node_Id;    -- Node3
8402
8403    function Acts_As_Spec
8404      (N : Node_Id) return Boolean;    -- Flag4
8405
8406    function Actual_Designated_Subtype
8407      (N : Node_Id) return Node_Id;    -- Node4
8408
8409    function Address_Warning_Posted
8410      (N : Node_Id) return Boolean;    -- Flag18
8411
8412    function Aggregate_Bounds
8413      (N : Node_Id) return Node_Id;    -- Node3
8414
8415    function Aliased_Present
8416      (N : Node_Id) return Boolean;    -- Flag4
8417
8418    function All_Others
8419      (N : Node_Id) return Boolean;    -- Flag11
8420
8421    function All_Present
8422      (N : Node_Id) return Boolean;    -- Flag15
8423
8424    function Alternatives
8425      (N : Node_Id) return List_Id;    -- List4
8426
8427    function Ancestor_Part
8428      (N : Node_Id) return Node_Id;    -- Node3
8429
8430    function Atomic_Sync_Required
8431      (N : Node_Id) return Boolean;    -- Flag14
8432
8433    function Array_Aggregate
8434      (N : Node_Id) return Node_Id;    -- Node3
8435
8436    function Aspect_Rep_Item
8437      (N : Node_Id) return Node_Id;    -- Node2
8438
8439    function Assignment_OK
8440      (N : Node_Id) return Boolean;    -- Flag15
8441
8442    function Associated_Node
8443      (N : Node_Id) return Node_Id;    -- Node4
8444
8445    function At_End_Proc
8446      (N : Node_Id) return Node_Id;    -- Node1
8447
8448    function Attribute_Name
8449      (N : Node_Id) return Name_Id;    -- Name2
8450
8451    function Aux_Decls_Node
8452      (N : Node_Id) return Node_Id;    -- Node5
8453
8454    function Backwards_OK
8455      (N : Node_Id) return Boolean;    -- Flag6
8456
8457    function Bad_Is_Detected
8458      (N : Node_Id) return Boolean;    -- Flag15
8459
8460    function By_Ref
8461      (N : Node_Id) return Boolean;    -- Flag5
8462
8463    function Body_Required
8464      (N : Node_Id) return Boolean;    -- Flag13
8465
8466    function Body_To_Inline
8467      (N : Node_Id) return Node_Id;    -- Node3
8468
8469    function Box_Present
8470      (N : Node_Id) return Boolean;    -- Flag15
8471
8472    function Char_Literal_Value
8473      (N : Node_Id) return Uint;       -- Uint2
8474
8475    function Chars
8476      (N : Node_Id) return Name_Id;    -- Name1
8477
8478    function Check_Address_Alignment
8479      (N : Node_Id) return Boolean;    -- Flag11
8480
8481    function Choice_Parameter
8482      (N : Node_Id) return Node_Id;    -- Node2
8483
8484    function Choices
8485      (N : Node_Id) return List_Id;    -- List1
8486
8487    function Class_Present
8488      (N : Node_Id) return Boolean;    -- Flag6
8489
8490    function Classifications
8491      (N : Node_Id) return Node_Id;    -- Node3
8492
8493    function Comes_From_Extended_Return_Statement
8494      (N : Node_Id) return Boolean;    -- Flag18
8495
8496    function Compile_Time_Known_Aggregate
8497      (N : Node_Id) return Boolean;    -- Flag18
8498
8499    function Component_Associations
8500      (N : Node_Id) return List_Id;    -- List2
8501
8502    function Component_Clauses
8503      (N : Node_Id) return List_Id;    -- List3
8504
8505    function Component_Definition
8506      (N : Node_Id) return Node_Id;    -- Node4
8507
8508    function Component_Items
8509      (N : Node_Id) return List_Id;    -- List3
8510
8511    function Component_List
8512      (N : Node_Id) return Node_Id;    -- Node1
8513
8514    function Component_Name
8515      (N : Node_Id) return Node_Id;    -- Node1
8516
8517    function Componentwise_Assignment
8518      (N : Node_Id) return Boolean;    -- Flag14
8519
8520    function Condition
8521      (N : Node_Id) return Node_Id;    -- Node1
8522
8523    function Condition_Actions
8524      (N : Node_Id) return List_Id;    -- List3
8525
8526    function Config_Pragmas
8527      (N : Node_Id) return List_Id;    -- List4
8528
8529    function Constant_Present
8530      (N : Node_Id) return Boolean;    -- Flag17
8531
8532    function Constraint
8533      (N : Node_Id) return Node_Id;    -- Node3
8534
8535    function Constraints
8536      (N : Node_Id) return List_Id;    -- List1
8537
8538    function Context_Installed
8539      (N : Node_Id) return Boolean;    -- Flag13
8540
8541    function Context_Pending
8542      (N : Node_Id) return Boolean;    -- Flag16
8543
8544    function Context_Items
8545      (N : Node_Id) return List_Id;    -- List1
8546
8547    function Contract_Test_Cases
8548      (N : Node_Id) return Node_Id;    -- Node2
8549
8550    function Controlling_Argument
8551      (N : Node_Id) return Node_Id;    -- Node1
8552
8553    function Conversion_OK
8554      (N : Node_Id) return Boolean;    -- Flag14
8555
8556    function Convert_To_Return_False
8557      (N : Node_Id) return Boolean;    -- Flag13
8558
8559    function Corresponding_Aspect
8560      (N : Node_Id) return Node_Id;    -- Node3
8561
8562    function Corresponding_Body
8563      (N : Node_Id) return Node_Id;    -- Node5
8564
8565    function Corresponding_Formal_Spec
8566      (N : Node_Id) return Node_Id;    -- Node3
8567
8568    function Corresponding_Generic_Association
8569      (N : Node_Id) return Node_Id;    -- Node5
8570
8571    function Corresponding_Integer_Value
8572      (N : Node_Id) return Uint;       -- Uint4
8573
8574    function Corresponding_Spec
8575      (N : Node_Id) return Node_Id;    -- Node5
8576
8577    function Corresponding_Spec_Of_Stub
8578      (N : Node_Id) return Node_Id;    -- Node2
8579
8580    function Corresponding_Stub
8581      (N : Node_Id) return Node_Id;    -- Node3
8582
8583    function Dcheck_Function
8584      (N : Node_Id) return Entity_Id;  -- Node5
8585
8586    function Declarations
8587      (N : Node_Id) return List_Id;    -- List2
8588
8589    function Default_Expression
8590      (N : Node_Id) return Node_Id;    -- Node5
8591
8592    function Default_Storage_Pool
8593      (N : Node_Id) return Node_Id;    -- Node3
8594
8595    function Default_Name
8596      (N : Node_Id) return Node_Id;    -- Node2
8597
8598    function Defining_Identifier
8599      (N : Node_Id) return Entity_Id;  -- Node1
8600
8601    function Defining_Unit_Name
8602      (N : Node_Id) return Node_Id;    -- Node1
8603
8604    function Delay_Alternative
8605      (N : Node_Id) return Node_Id;    -- Node4
8606
8607    function Delay_Statement
8608      (N : Node_Id) return Node_Id;    -- Node2
8609
8610    function Delta_Expression
8611      (N : Node_Id) return Node_Id;    -- Node3
8612
8613    function Digits_Expression
8614      (N : Node_Id) return Node_Id;    -- Node2
8615
8616    function Discr_Check_Funcs_Built
8617      (N : Node_Id) return Boolean;    -- Flag11
8618
8619    function Discrete_Choices
8620      (N : Node_Id) return List_Id;    -- List4
8621
8622    function Discrete_Range
8623      (N : Node_Id) return Node_Id;    -- Node4
8624
8625    function Discrete_Subtype_Definition
8626      (N : Node_Id) return Node_Id;    -- Node4
8627
8628    function Discrete_Subtype_Definitions
8629      (N : Node_Id) return List_Id;    -- List2
8630
8631    function Discriminant_Specifications
8632      (N : Node_Id) return List_Id;    -- List4
8633
8634    function Discriminant_Type
8635      (N : Node_Id) return Node_Id;    -- Node5
8636
8637    function Do_Accessibility_Check
8638      (N : Node_Id) return Boolean;    -- Flag13
8639
8640    function Do_Discriminant_Check
8641      (N : Node_Id) return Boolean;    -- Flag13
8642
8643    function Do_Division_Check
8644      (N : Node_Id) return Boolean;    -- Flag13
8645
8646    function Do_Length_Check
8647      (N : Node_Id) return Boolean;    -- Flag4
8648
8649    function Do_Overflow_Check
8650      (N : Node_Id) return Boolean;    -- Flag17
8651
8652    function Do_Range_Check
8653      (N : Node_Id) return Boolean;    -- Flag9
8654
8655    function Do_Storage_Check
8656      (N : Node_Id) return Boolean;    -- Flag17
8657
8658    function Do_Tag_Check
8659      (N : Node_Id) return Boolean;    -- Flag13
8660
8661    function Elaborate_All_Desirable
8662      (N : Node_Id) return Boolean;    -- Flag9
8663
8664    function Elaborate_All_Present
8665      (N : Node_Id) return Boolean;    -- Flag14
8666
8667    function Elaborate_Desirable
8668      (N : Node_Id) return Boolean;    -- Flag11
8669
8670    function Elaborate_Present
8671      (N : Node_Id) return Boolean;    -- Flag4
8672
8673    function Elaboration_Boolean
8674      (N : Node_Id) return Node_Id;    -- Node2
8675
8676    function Else_Actions
8677      (N : Node_Id) return List_Id;    -- List3
8678
8679    function Else_Statements
8680      (N : Node_Id) return List_Id;    -- List4
8681
8682    function Elsif_Parts
8683      (N : Node_Id) return List_Id;    -- List3
8684
8685    function Enclosing_Variant
8686      (N : Node_Id) return Node_Id;    -- Node2
8687
8688    function End_Label
8689      (N : Node_Id) return Node_Id;    -- Node4
8690
8691    function End_Span
8692      (N : Node_Id) return Uint;       -- Uint5
8693
8694    function Entity
8695      (N : Node_Id) return Node_Id;    -- Node4
8696
8697    function Entity_Or_Associated_Node
8698      (N : Node_Id) return Node_Id;    -- Node4
8699
8700    function Entry_Body_Formal_Part
8701      (N : Node_Id) return Node_Id;    -- Node5
8702
8703    function Entry_Call_Alternative
8704      (N : Node_Id) return Node_Id;    -- Node1
8705
8706    function Entry_Call_Statement
8707      (N : Node_Id) return Node_Id;    -- Node1
8708
8709    function Entry_Direct_Name
8710      (N : Node_Id) return Node_Id;    -- Node1
8711
8712    function Entry_Index
8713      (N : Node_Id) return Node_Id;    -- Node5
8714
8715    function Entry_Index_Specification
8716      (N : Node_Id) return Node_Id;    -- Node4
8717
8718    function Etype
8719      (N : Node_Id) return Node_Id;    -- Node5
8720
8721    function Exception_Choices
8722      (N : Node_Id) return List_Id;    -- List4
8723
8724    function Exception_Handlers
8725      (N : Node_Id) return List_Id;    -- List5
8726
8727    function Exception_Junk
8728      (N : Node_Id) return Boolean;    -- Flag8
8729
8730    function Exception_Label
8731      (N : Node_Id) return Node_Id;    -- Node5
8732
8733    function Explicit_Actual_Parameter
8734      (N : Node_Id) return Node_Id;    -- Node3
8735
8736    function Expansion_Delayed
8737      (N : Node_Id) return Boolean;    -- Flag11
8738
8739    function Explicit_Generic_Actual_Parameter
8740      (N : Node_Id) return Node_Id;    -- Node1
8741
8742    function Expression
8743      (N : Node_Id) return Node_Id;    -- Node3
8744
8745    function Expressions
8746      (N : Node_Id) return List_Id;    -- List1
8747
8748    function First_Bit
8749      (N : Node_Id) return Node_Id;    -- Node3
8750
8751    function First_Inlined_Subprogram
8752      (N : Node_Id) return Entity_Id;  -- Node3
8753
8754    function First_Name
8755      (N : Node_Id) return Boolean;    -- Flag5
8756
8757    function First_Named_Actual
8758      (N : Node_Id) return Node_Id;    -- Node4
8759
8760    function First_Real_Statement
8761      (N : Node_Id) return Node_Id;    -- Node2
8762
8763    function First_Subtype_Link
8764      (N : Node_Id) return Entity_Id;  -- Node5
8765
8766    function Float_Truncate
8767      (N : Node_Id) return Boolean;    -- Flag11
8768
8769    function Formal_Type_Definition
8770      (N : Node_Id) return Node_Id;    -- Node3
8771
8772    function Forwards_OK
8773      (N : Node_Id) return Boolean;    -- Flag5
8774
8775    function From_Aspect_Specification
8776      (N : Node_Id) return Boolean;    -- Flag13
8777
8778    function From_At_End
8779      (N : Node_Id) return Boolean;    -- Flag4
8780
8781    function From_At_Mod
8782      (N : Node_Id) return Boolean;    -- Flag4
8783
8784    function From_Default
8785      (N : Node_Id) return Boolean;    -- Flag6
8786
8787    function Generic_Associations
8788      (N : Node_Id) return List_Id;    -- List3
8789
8790    function Generic_Formal_Declarations
8791      (N : Node_Id) return List_Id;    -- List2
8792
8793    function Generic_Parent
8794      (N : Node_Id) return Node_Id;    -- Node5
8795
8796    function Generic_Parent_Type
8797      (N : Node_Id) return Node_Id;    -- Node4
8798
8799    function Handled_Statement_Sequence
8800      (N : Node_Id) return Node_Id;    -- Node4
8801
8802    function Handler_List_Entry
8803      (N : Node_Id) return Node_Id;    -- Node2
8804
8805    function Has_Created_Identifier
8806      (N : Node_Id) return Boolean;    -- Flag15
8807
8808    function Has_Dereference_Action
8809      (N : Node_Id) return Boolean;    -- Flag13
8810
8811    function Has_Dynamic_Length_Check
8812      (N : Node_Id) return Boolean;    -- Flag10
8813
8814    function Has_Dynamic_Range_Check
8815      (N : Node_Id) return Boolean;    -- Flag12
8816
8817    function Has_Init_Expression
8818      (N : Node_Id) return Boolean;    -- Flag14
8819
8820    function Has_Local_Raise
8821      (N : Node_Id) return Boolean;    -- Flag8
8822
8823    function Has_No_Elaboration_Code
8824      (N : Node_Id) return Boolean;    -- Flag17
8825
8826    function Has_Pragma_Suppress_All
8827      (N : Node_Id) return Boolean;    -- Flag14
8828
8829    function Has_Private_View
8830      (N : Node_Id) return Boolean;    -- Flag11
8831
8832    function Has_Relative_Deadline_Pragma
8833      (N : Node_Id) return Boolean;    -- Flag9
8834
8835    function Has_Self_Reference
8836      (N : Node_Id) return Boolean;    -- Flag13
8837
8838    function Has_SP_Choice
8839      (N : Node_Id) return Boolean;    -- Flag15
8840
8841    function Has_Storage_Size_Pragma
8842      (N : Node_Id) return Boolean;    -- Flag5
8843
8844    function Has_Wide_Character
8845      (N : Node_Id) return Boolean;    -- Flag11
8846
8847    function Has_Wide_Wide_Character
8848      (N : Node_Id) return Boolean;    -- Flag13
8849
8850    function Header_Size_Added
8851      (N : Node_Id) return Boolean;    -- Flag11
8852
8853    function Hidden_By_Use_Clause
8854      (N : Node_Id) return Elist_Id;   -- Elist4
8855
8856    function High_Bound
8857      (N : Node_Id) return Node_Id;    -- Node2
8858
8859    function Identifier
8860      (N : Node_Id) return Node_Id;    -- Node1
8861
8862    function Interface_List
8863      (N : Node_Id) return List_Id;    -- List2
8864
8865    function Interface_Present
8866      (N : Node_Id) return Boolean;    -- Flag16
8867
8868    function Implicit_With
8869      (N : Node_Id) return Boolean;    -- Flag16
8870
8871    function Implicit_With_From_Instantiation
8872      (N : Node_Id) return Boolean;    -- Flag12
8873
8874    function Import_Interface_Present
8875      (N : Node_Id) return Boolean;    -- Flag16
8876
8877    function In_Assertion_Expression
8878      (N : Node_Id) return Boolean;    -- Flag4
8879
8880    function In_Present
8881      (N : Node_Id) return Boolean;    -- Flag15
8882
8883    function Includes_Infinities
8884      (N : Node_Id) return Boolean;    -- Flag11
8885
8886    function Inherited_Discriminant
8887      (N : Node_Id) return Boolean;    -- Flag13
8888
8889    function Instance_Spec
8890      (N : Node_Id) return Node_Id;    -- Node5
8891
8892    function Intval
8893      (N : Node_Id) return Uint;       -- Uint3
8894
8895    function Is_Accessibility_Actual
8896      (N : Node_Id) return Boolean;    -- Flag13
8897
8898    function Is_Asynchronous_Call_Block
8899      (N : Node_Id) return Boolean;    -- Flag7
8900
8901    function Is_Boolean_Aspect
8902      (N : Node_Id) return Boolean;    -- Flag16
8903
8904    function Is_Checked
8905      (N : Node_Id) return Boolean;    -- Flag11
8906
8907    function Is_Component_Left_Opnd
8908      (N : Node_Id) return Boolean;    -- Flag13
8909
8910    function Is_Component_Right_Opnd
8911      (N : Node_Id) return Boolean;    -- Flag14
8912
8913    function Is_Controlling_Actual
8914      (N : Node_Id) return Boolean;    -- Flag16
8915
8916    function Is_Delayed_Aspect
8917      (N : Node_Id) return Boolean;    -- Flag14
8918
8919    function Is_Disabled
8920      (N : Node_Id) return Boolean;    -- Flag15
8921
8922    function Is_Dynamic_Coextension
8923      (N : Node_Id) return Boolean;    -- Flag18
8924
8925    function Is_Elsif
8926      (N : Node_Id) return Boolean;    -- Flag13
8927
8928    function Is_Entry_Barrier_Function
8929      (N : Node_Id) return Boolean;    -- Flag8
8930
8931    function Is_Expanded_Build_In_Place_Call
8932      (N : Node_Id) return Boolean;    -- Flag11
8933
8934    function Is_Finalization_Wrapper
8935      (N : Node_Id) return Boolean;    -- Flag9
8936
8937    function Is_Folded_In_Parser
8938      (N : Node_Id) return Boolean;    -- Flag4
8939
8940    function Is_Ignored
8941      (N : Node_Id) return Boolean;    -- Flag9
8942
8943    function Is_In_Discriminant_Check
8944      (N : Node_Id) return Boolean;    -- Flag11
8945
8946    function Is_Machine_Number
8947      (N : Node_Id) return Boolean;    -- Flag11
8948
8949    function Is_Null_Loop
8950      (N : Node_Id) return Boolean;    -- Flag16
8951
8952    function Is_Overloaded
8953      (N : Node_Id) return Boolean;    -- Flag5
8954
8955    function Is_Power_Of_2_For_Shift
8956      (N : Node_Id) return Boolean;    -- Flag13
8957
8958    function Is_Prefixed_Call
8959      (N : Node_Id) return Boolean;    -- Flag17
8960
8961    function Is_Protected_Subprogram_Body
8962      (N : Node_Id) return Boolean;    -- Flag7
8963
8964    function Is_Static_Coextension
8965      (N : Node_Id) return Boolean;    -- Flag14
8966
8967    function Is_Static_Expression
8968      (N : Node_Id) return Boolean;    -- Flag6
8969
8970    function Is_Subprogram_Descriptor
8971      (N : Node_Id) return Boolean;    -- Flag16
8972
8973    function Is_Task_Allocation_Block
8974      (N : Node_Id) return Boolean;    -- Flag6
8975
8976    function Is_Task_Master
8977      (N : Node_Id) return Boolean;    -- Flag5
8978
8979    function Iteration_Scheme
8980      (N : Node_Id) return Node_Id;    -- Node2
8981
8982    function Iterator_Specification
8983      (N : Node_Id) return Node_Id;    -- Node2
8984
8985    function Itype
8986      (N : Node_Id) return Entity_Id;  -- Node1
8987
8988    function Kill_Range_Check
8989      (N : Node_Id) return Boolean;    -- Flag11
8990
8991    function Label_Construct
8992      (N : Node_Id) return Node_Id;    -- Node2
8993
8994    function Left_Opnd
8995      (N : Node_Id) return Node_Id;    -- Node2
8996
8997    function Last_Bit
8998      (N : Node_Id) return Node_Id;    -- Node4
8999
9000    function Last_Name
9001      (N : Node_Id) return Boolean;    -- Flag6
9002
9003    function Library_Unit
9004      (N : Node_Id) return Node_Id;    -- Node4
9005
9006    function Limited_View_Installed
9007      (N : Node_Id) return Boolean;    -- Flag18
9008
9009    function Limited_Present
9010      (N : Node_Id) return Boolean;    -- Flag17
9011
9012    function Literals
9013      (N : Node_Id) return List_Id;    -- List1
9014
9015    function Local_Raise_Not_OK
9016      (N : Node_Id) return Boolean;    -- Flag7
9017
9018    function Local_Raise_Statements
9019      (N : Node_Id) return Elist_Id;   -- Elist1
9020
9021    function Loop_Actions
9022      (N : Node_Id) return List_Id;    -- List2
9023
9024    function Loop_Parameter_Specification
9025      (N : Node_Id) return Node_Id;    -- Node4
9026
9027    function Low_Bound
9028      (N : Node_Id) return Node_Id;    -- Node1
9029
9030    function Mod_Clause
9031      (N : Node_Id) return Node_Id;    -- Node2
9032
9033    function More_Ids
9034      (N : Node_Id) return Boolean;    -- Flag5
9035
9036    function Must_Be_Byte_Aligned
9037      (N : Node_Id) return Boolean;    -- Flag14
9038
9039    function Must_Not_Freeze
9040      (N : Node_Id) return Boolean;    -- Flag8
9041
9042    function Must_Not_Override
9043      (N : Node_Id) return Boolean;    -- Flag15
9044
9045    function Must_Override
9046      (N : Node_Id) return Boolean;    -- Flag14
9047
9048    function Name
9049      (N : Node_Id) return Node_Id;    -- Node2
9050
9051    function Names
9052      (N : Node_Id) return List_Id;    -- List2
9053
9054    function Next_Entity
9055      (N : Node_Id) return Node_Id;    -- Node2
9056
9057    function Next_Exit_Statement
9058      (N : Node_Id) return Node_Id;    -- Node3
9059
9060    function Next_Implicit_With
9061      (N : Node_Id) return Node_Id;    -- Node3
9062
9063    function Next_Named_Actual
9064      (N : Node_Id) return Node_Id;    -- Node4
9065
9066    function Next_Pragma
9067      (N : Node_Id) return Node_Id;    -- Node1
9068
9069    function Next_Rep_Item
9070      (N : Node_Id) return Node_Id;    -- Node5
9071
9072    function Next_Use_Clause
9073      (N : Node_Id) return Node_Id;    -- Node3
9074
9075    function No_Ctrl_Actions
9076      (N : Node_Id) return Boolean;    -- Flag7
9077
9078    function No_Elaboration_Check
9079      (N : Node_Id) return Boolean;    -- Flag14
9080
9081    function No_Entities_Ref_In_Spec
9082      (N : Node_Id) return Boolean;    -- Flag8
9083
9084    function No_Initialization
9085      (N : Node_Id) return Boolean;    -- Flag13
9086
9087    function No_Minimize_Eliminate
9088      (N : Node_Id) return Boolean;    -- Flag17
9089
9090    function No_Truncation
9091      (N : Node_Id) return Boolean;    -- Flag17
9092
9093    function Null_Present
9094      (N : Node_Id) return Boolean;    -- Flag13
9095
9096    function Null_Exclusion_Present
9097      (N : Node_Id) return Boolean;    -- Flag11
9098
9099    function Null_Exclusion_In_Return_Present
9100      (N : Node_Id) return Boolean;    -- Flag14
9101
9102    function Null_Record_Present
9103      (N : Node_Id) return Boolean;    -- Flag17
9104
9105    function Object_Definition
9106      (N : Node_Id) return Node_Id;    -- Node4
9107
9108    function Of_Present
9109      (N : Node_Id) return Boolean;    -- Flag16
9110
9111    function Original_Discriminant
9112      (N : Node_Id) return Node_Id;    -- Node2
9113
9114    function Original_Entity
9115      (N : Node_Id) return Entity_Id;  -- Node2
9116
9117    function Others_Discrete_Choices
9118      (N : Node_Id) return List_Id;    -- List1
9119
9120    function Out_Present
9121      (N : Node_Id) return Boolean;    -- Flag17
9122
9123    function Parameter_Associations
9124      (N : Node_Id) return List_Id;    -- List3
9125
9126    function Parameter_List_Truncated
9127      (N : Node_Id) return Boolean;    -- Flag17
9128
9129    function Parameter_Specifications
9130      (N : Node_Id) return List_Id;    -- List3
9131
9132    function Parameter_Type
9133      (N : Node_Id) return Node_Id;    -- Node2
9134
9135    function Parent_Spec
9136      (N : Node_Id) return Node_Id;    -- Node4
9137
9138    function Position
9139      (N : Node_Id) return Node_Id;    -- Node2
9140
9141    function Pragma_Argument_Associations
9142      (N : Node_Id) return List_Id;    -- List2
9143
9144    function Pragma_Identifier
9145      (N : Node_Id) return Node_Id;    -- Node4
9146
9147    function Pragmas_After
9148      (N : Node_Id) return List_Id;    -- List5
9149
9150    function Pragmas_Before
9151      (N : Node_Id) return List_Id;    -- List4
9152
9153    function Pre_Post_Conditions
9154      (N : Node_Id) return Node_Id;    -- Node1
9155
9156    function Prefix
9157      (N : Node_Id) return Node_Id;    -- Node3
9158
9159    function Premature_Use
9160      (N : Node_Id) return Node_Id;    -- Node5
9161
9162    function Present_Expr
9163      (N : Node_Id) return Uint;       -- Uint3
9164
9165    function Prev_Ids
9166      (N : Node_Id) return Boolean;    -- Flag6
9167
9168    function Print_In_Hex
9169      (N : Node_Id) return Boolean;    -- Flag13
9170
9171    function Private_Declarations
9172      (N : Node_Id) return List_Id;    -- List3
9173
9174    function Private_Present
9175      (N : Node_Id) return Boolean;    -- Flag15
9176
9177    function Procedure_To_Call
9178      (N : Node_Id) return Node_Id;    -- Node2
9179
9180    function Proper_Body
9181      (N : Node_Id) return Node_Id;    -- Node1
9182
9183    function Protected_Definition
9184      (N : Node_Id) return Node_Id;    -- Node3
9185
9186    function Protected_Present
9187      (N : Node_Id) return Boolean;    -- Flag6
9188
9189    function Raises_Constraint_Error
9190      (N : Node_Id) return Boolean;    -- Flag7
9191
9192    function Range_Constraint
9193      (N : Node_Id) return Node_Id;    -- Node4
9194
9195    function Range_Expression
9196      (N : Node_Id) return Node_Id;    -- Node4
9197
9198    function Real_Range_Specification
9199      (N : Node_Id) return Node_Id;    -- Node4
9200
9201    function Realval
9202      (N : Node_Id) return Ureal;      -- Ureal3
9203
9204    function Reason
9205      (N : Node_Id) return Uint;       -- Uint3
9206
9207    function Record_Extension_Part
9208      (N : Node_Id) return Node_Id;    -- Node3
9209
9210    function Redundant_Use
9211      (N : Node_Id) return Boolean;    -- Flag13
9212
9213    function Renaming_Exception
9214      (N : Node_Id) return Node_Id;    -- Node2
9215
9216    function Result_Definition
9217      (N : Node_Id) return Node_Id;    -- Node4
9218
9219    function Return_Object_Declarations
9220      (N : Node_Id) return List_Id;    -- List3
9221
9222    function Return_Statement_Entity
9223      (N : Node_Id) return Node_Id;    -- Node5
9224
9225    function Reverse_Present
9226      (N : Node_Id) return Boolean;    -- Flag15
9227
9228    function Right_Opnd
9229      (N : Node_Id) return Node_Id;    -- Node3
9230
9231    function Rounded_Result
9232      (N : Node_Id) return Boolean;    -- Flag18
9233
9234    function SCIL_Controlling_Tag
9235      (N : Node_Id) return Node_Id;    -- Node5
9236
9237    function SCIL_Entity
9238      (N : Node_Id) return Node_Id;    -- Node4
9239
9240    function SCIL_Tag_Value
9241      (N : Node_Id) return Node_Id;    -- Node5
9242
9243    function SCIL_Target_Prim
9244      (N : Node_Id) return Node_Id;    -- Node2
9245
9246    function Scope
9247      (N : Node_Id) return Node_Id;    -- Node3
9248
9249    function Select_Alternatives
9250      (N : Node_Id) return List_Id;    -- List1
9251
9252    function Selector_Name
9253      (N : Node_Id) return Node_Id;    -- Node2
9254
9255    function Selector_Names
9256      (N : Node_Id) return List_Id;    -- List1
9257
9258    function Shift_Count_OK
9259      (N : Node_Id) return Boolean;    -- Flag4
9260
9261    function Source_Type
9262      (N : Node_Id) return Entity_Id;  -- Node1
9263
9264    function Specification
9265      (N : Node_Id) return Node_Id;    -- Node1
9266
9267    function Split_PPC
9268      (N : Node_Id) return Boolean;    -- Flag17
9269
9270    function Statements
9271      (N : Node_Id) return List_Id;    -- List3
9272
9273    function Storage_Pool
9274      (N : Node_Id) return Node_Id;    -- Node1
9275
9276    function Subpool_Handle_Name
9277      (N : Node_Id) return Node_Id;    -- Node4
9278
9279    function Strval
9280      (N : Node_Id) return String_Id;  -- Str3
9281
9282    function Subtype_Indication
9283      (N : Node_Id) return Node_Id;    -- Node5
9284
9285    function Subtype_Mark
9286      (N : Node_Id) return Node_Id;    -- Node4
9287
9288    function Subtype_Marks
9289      (N : Node_Id) return List_Id;    -- List2
9290
9291    function Suppress_Assignment_Checks
9292      (N : Node_Id) return Boolean;    -- Flag18
9293
9294    function Suppress_Loop_Warnings
9295      (N : Node_Id) return Boolean;    -- Flag17
9296
9297    function Synchronized_Present
9298      (N : Node_Id) return Boolean;    -- Flag7
9299
9300    function Tagged_Present
9301      (N : Node_Id) return Boolean;    -- Flag15
9302
9303    function Target_Type
9304      (N : Node_Id) return Entity_Id;  -- Node2
9305
9306    function Task_Definition
9307      (N : Node_Id) return Node_Id;    -- Node3
9308
9309    function Task_Present
9310      (N : Node_Id) return Boolean;    -- Flag5
9311
9312    function Then_Actions
9313      (N : Node_Id) return List_Id;    -- List2
9314
9315    function Then_Statements
9316      (N : Node_Id) return List_Id;    -- List2
9317
9318    function Treat_Fixed_As_Integer
9319      (N : Node_Id) return Boolean;    -- Flag14
9320
9321    function Triggering_Alternative
9322      (N : Node_Id) return Node_Id;    -- Node1
9323
9324    function Triggering_Statement
9325      (N : Node_Id) return Node_Id;    -- Node1
9326
9327    function TSS_Elist
9328      (N : Node_Id) return Elist_Id;   -- Elist3
9329
9330    function Type_Definition
9331      (N : Node_Id) return Node_Id;    -- Node3
9332
9333    function Unit
9334      (N : Node_Id) return Node_Id;    -- Node2
9335
9336    function Unknown_Discriminants_Present
9337      (N : Node_Id) return Boolean;    -- Flag13
9338
9339    function Unreferenced_In_Spec
9340      (N : Node_Id) return Boolean;    -- Flag7
9341
9342    function Variant_Part
9343      (N : Node_Id) return Node_Id;    -- Node4
9344
9345    function Variants
9346      (N : Node_Id) return List_Id;    -- List1
9347
9348    function Visible_Declarations
9349      (N : Node_Id) return List_Id;    -- List2
9350
9351    function Used_Operations
9352      (N : Node_Id) return Elist_Id;   -- Elist5
9353
9354    function Was_Originally_Stub
9355      (N : Node_Id) return Boolean;    -- Flag13
9356
9357    function Withed_Body
9358      (N : Node_Id) return Node_Id;    -- Node1
9359
9360    --  End functions (note used by xsinfo utility program to end processing)
9361
9362    ----------------------------
9363    -- Node Update Procedures --
9364    ----------------------------
9365
9366    --  These are the corresponding node update routines, which again provide
9367    --  a high level logical access with type checking. In addition to setting
9368    --  the indicated field of the node N to the given Val, in the case of
9369    --  tree pointers (List1-4), the parent pointer of the Val node is set to
9370    --  point back to node N. This automates the setting of the parent pointer.
9371
9372    procedure Set_ABE_Is_Certain
9373      (N : Node_Id; Val : Boolean := True);    -- Flag18
9374
9375    procedure Set_Abort_Present
9376      (N : Node_Id; Val : Boolean := True);    -- Flag15
9377
9378    procedure Set_Abortable_Part
9379      (N : Node_Id; Val : Node_Id);            -- Node2
9380
9381    procedure Set_Abstract_Present
9382      (N : Node_Id; Val : Boolean := True);    -- Flag4
9383
9384    procedure Set_Accept_Handler_Records
9385      (N : Node_Id; Val : List_Id);            -- List5
9386
9387    procedure Set_Accept_Statement
9388      (N : Node_Id; Val : Node_Id);            -- Node2
9389
9390    procedure Set_Access_Definition
9391      (N : Node_Id; Val : Node_Id);            -- Node3
9392
9393    procedure Set_Access_To_Subprogram_Definition
9394      (N : Node_Id; Val : Node_Id);            -- Node3
9395
9396    procedure Set_Access_Types_To_Process
9397      (N : Node_Id; Val : Elist_Id);           -- Elist2
9398
9399    procedure Set_Actions
9400      (N : Node_Id; Val : List_Id);            -- List1
9401
9402    procedure Set_Activation_Chain_Entity
9403      (N : Node_Id; Val : Node_Id);            -- Node3
9404
9405    procedure Set_Acts_As_Spec
9406      (N : Node_Id; Val : Boolean := True);    -- Flag4
9407
9408    procedure Set_Actual_Designated_Subtype
9409      (N : Node_Id; Val : Node_Id);            -- Node4
9410
9411    procedure Set_Address_Warning_Posted
9412      (N : Node_Id; Val : Boolean := True);    -- Flag18
9413
9414    procedure Set_Aggregate_Bounds
9415      (N : Node_Id; Val : Node_Id);            -- Node3
9416
9417    procedure Set_Aliased_Present
9418      (N : Node_Id; Val : Boolean := True);    -- Flag4
9419
9420    procedure Set_All_Others
9421      (N : Node_Id; Val : Boolean := True);    -- Flag11
9422
9423    procedure Set_All_Present
9424      (N : Node_Id; Val : Boolean := True);    -- Flag15
9425
9426    procedure Set_Alternatives
9427      (N : Node_Id; Val : List_Id);            -- List4
9428
9429    procedure Set_Ancestor_Part
9430      (N : Node_Id; Val : Node_Id);            -- Node3
9431
9432    procedure Set_Atomic_Sync_Required
9433      (N : Node_Id; Val : Boolean := True);    -- Flag14
9434
9435    procedure Set_Array_Aggregate
9436      (N : Node_Id; Val : Node_Id);            -- Node3
9437
9438    procedure Set_Aspect_Rep_Item
9439      (N : Node_Id; Val : Node_Id);            -- Node2
9440
9441    procedure Set_Assignment_OK
9442      (N : Node_Id; Val : Boolean := True);    -- Flag15
9443
9444    procedure Set_Associated_Node
9445      (N : Node_Id; Val : Node_Id);            -- Node4
9446
9447    procedure Set_Attribute_Name
9448      (N : Node_Id; Val : Name_Id);            -- Name2
9449
9450    procedure Set_At_End_Proc
9451      (N : Node_Id; Val : Node_Id);            -- Node1
9452
9453    procedure Set_Aux_Decls_Node
9454      (N : Node_Id; Val : Node_Id);            -- Node5
9455
9456    procedure Set_Backwards_OK
9457      (N : Node_Id; Val : Boolean := True);    -- Flag6
9458
9459    procedure Set_Bad_Is_Detected
9460      (N : Node_Id; Val : Boolean := True);    -- Flag15
9461
9462    procedure Set_Body_Required
9463      (N : Node_Id; Val : Boolean := True);    -- Flag13
9464
9465    procedure Set_Body_To_Inline
9466      (N : Node_Id; Val : Node_Id);            -- Node3
9467
9468    procedure Set_Box_Present
9469      (N : Node_Id; Val : Boolean := True);    -- Flag15
9470
9471    procedure Set_By_Ref
9472      (N : Node_Id; Val : Boolean := True);    -- Flag5
9473
9474    procedure Set_Char_Literal_Value
9475      (N : Node_Id; Val : Uint);               -- Uint2
9476
9477    procedure Set_Chars
9478      (N : Node_Id; Val : Name_Id);            -- Name1
9479
9480    procedure Set_Check_Address_Alignment
9481      (N : Node_Id; Val : Boolean := True);    -- Flag11
9482
9483    procedure Set_Choice_Parameter
9484      (N : Node_Id; Val : Node_Id);            -- Node2
9485
9486    procedure Set_Choices
9487      (N : Node_Id; Val : List_Id);            -- List1
9488
9489    procedure Set_Class_Present
9490      (N : Node_Id; Val : Boolean := True);    -- Flag6
9491
9492    procedure Set_Classifications
9493      (N : Node_Id; Val : Node_Id);            -- Node3
9494
9495    procedure Set_Comes_From_Extended_Return_Statement
9496      (N : Node_Id; Val : Boolean := True);    -- Flag18
9497
9498    procedure Set_Compile_Time_Known_Aggregate
9499      (N : Node_Id; Val : Boolean := True);    -- Flag18
9500
9501    procedure Set_Component_Associations
9502      (N : Node_Id; Val : List_Id);            -- List2
9503
9504    procedure Set_Component_Clauses
9505      (N : Node_Id; Val : List_Id);            -- List3
9506
9507    procedure Set_Component_Definition
9508      (N : Node_Id; Val : Node_Id);            -- Node4
9509
9510    procedure Set_Component_Items
9511      (N : Node_Id; Val : List_Id);            -- List3
9512
9513    procedure Set_Component_List
9514      (N : Node_Id; Val : Node_Id);            -- Node1
9515
9516    procedure Set_Component_Name
9517      (N : Node_Id; Val : Node_Id);            -- Node1
9518
9519    procedure Set_Componentwise_Assignment
9520      (N : Node_Id; Val : Boolean := True);    -- Flag14
9521
9522    procedure Set_Condition
9523      (N : Node_Id; Val : Node_Id);            -- Node1
9524
9525    procedure Set_Condition_Actions
9526      (N : Node_Id; Val : List_Id);            -- List3
9527
9528    procedure Set_Config_Pragmas
9529      (N : Node_Id; Val : List_Id);            -- List4
9530
9531    procedure Set_Constant_Present
9532      (N : Node_Id; Val : Boolean := True);    -- Flag17
9533
9534    procedure Set_Constraint
9535      (N : Node_Id; Val : Node_Id);            -- Node3
9536
9537    procedure Set_Constraints
9538      (N : Node_Id; Val : List_Id);            -- List1
9539
9540    procedure Set_Context_Installed
9541      (N : Node_Id; Val : Boolean := True);    -- Flag13
9542
9543    procedure Set_Context_Items
9544      (N : Node_Id; Val : List_Id);            -- List1
9545
9546    procedure Set_Context_Pending
9547      (N : Node_Id; Val : Boolean := True);    -- Flag16
9548
9549    procedure Set_Contract_Test_Cases
9550      (N : Node_Id; Val : Node_Id);            -- Node2
9551
9552    procedure Set_Controlling_Argument
9553      (N : Node_Id; Val : Node_Id);            -- Node1
9554
9555    procedure Set_Conversion_OK
9556      (N : Node_Id; Val : Boolean := True);    -- Flag14
9557
9558    procedure Set_Convert_To_Return_False
9559      (N : Node_Id; Val : Boolean := True);    -- Flag13
9560
9561    procedure Set_Corresponding_Aspect
9562      (N : Node_Id; Val : Node_Id);            -- Node3
9563
9564    procedure Set_Corresponding_Body
9565      (N : Node_Id; Val : Node_Id);            -- Node5
9566
9567    procedure Set_Corresponding_Formal_Spec
9568      (N : Node_Id; Val : Node_Id);            -- Node3
9569
9570    procedure Set_Corresponding_Generic_Association
9571      (N : Node_Id; Val : Node_Id);            -- Node5
9572
9573    procedure Set_Corresponding_Integer_Value
9574      (N : Node_Id; Val : Uint);               -- Uint4
9575
9576    procedure Set_Corresponding_Spec
9577      (N : Node_Id; Val : Node_Id);            -- Node5
9578
9579    procedure Set_Corresponding_Spec_Of_Stub
9580      (N : Node_Id; Val : Node_Id);            -- Node2
9581
9582    procedure Set_Corresponding_Stub
9583      (N : Node_Id; Val : Node_Id);            -- Node3
9584
9585    procedure Set_Dcheck_Function
9586      (N : Node_Id; Val : Entity_Id);          -- Node5
9587
9588    procedure Set_Declarations
9589      (N : Node_Id; Val : List_Id);            -- List2
9590
9591    procedure Set_Default_Expression
9592      (N : Node_Id; Val : Node_Id);            -- Node5
9593
9594    procedure Set_Default_Storage_Pool
9595      (N : Node_Id; Val : Node_Id);            -- Node3
9596
9597    procedure Set_Default_Name
9598      (N : Node_Id; Val : Node_Id);            -- Node2
9599
9600    procedure Set_Defining_Identifier
9601      (N : Node_Id; Val : Entity_Id);          -- Node1
9602
9603    procedure Set_Defining_Unit_Name
9604      (N : Node_Id; Val : Node_Id);            -- Node1
9605
9606    procedure Set_Delay_Alternative
9607      (N : Node_Id; Val : Node_Id);            -- Node4
9608
9609    procedure Set_Delay_Statement
9610      (N : Node_Id; Val : Node_Id);            -- Node2
9611
9612    procedure Set_Delta_Expression
9613      (N : Node_Id; Val : Node_Id);            -- Node3
9614
9615    procedure Set_Digits_Expression
9616      (N : Node_Id; Val : Node_Id);            -- Node2
9617
9618    procedure Set_Discr_Check_Funcs_Built
9619      (N : Node_Id; Val : Boolean := True);    -- Flag11
9620
9621    procedure Set_Discrete_Choices
9622      (N : Node_Id; Val : List_Id);            -- List4
9623
9624    procedure Set_Discrete_Range
9625      (N : Node_Id; Val : Node_Id);            -- Node4
9626
9627    procedure Set_Discrete_Subtype_Definition
9628      (N : Node_Id; Val : Node_Id);            -- Node4
9629
9630    procedure Set_Discrete_Subtype_Definitions
9631      (N : Node_Id; Val : List_Id);            -- List2
9632
9633    procedure Set_Discriminant_Specifications
9634      (N : Node_Id; Val : List_Id);            -- List4
9635
9636    procedure Set_Discriminant_Type
9637      (N : Node_Id; Val : Node_Id);            -- Node5
9638
9639    procedure Set_Do_Accessibility_Check
9640      (N : Node_Id; Val : Boolean := True);    -- Flag13
9641
9642    procedure Set_Do_Discriminant_Check
9643      (N : Node_Id; Val : Boolean := True);    -- Flag13
9644
9645    procedure Set_Do_Division_Check
9646      (N : Node_Id; Val : Boolean := True);    -- Flag13
9647
9648    procedure Set_Do_Length_Check
9649      (N : Node_Id; Val : Boolean := True);    -- Flag4
9650
9651    procedure Set_Do_Overflow_Check
9652      (N : Node_Id; Val : Boolean := True);    -- Flag17
9653
9654    procedure Set_Do_Range_Check
9655      (N : Node_Id; Val : Boolean := True);    -- Flag9
9656
9657    procedure Set_Do_Storage_Check
9658      (N : Node_Id; Val : Boolean := True);    -- Flag17
9659
9660    procedure Set_Do_Tag_Check
9661      (N : Node_Id; Val : Boolean := True);    -- Flag13
9662
9663    procedure Set_Elaborate_All_Desirable
9664      (N : Node_Id; Val : Boolean := True);    -- Flag9
9665
9666    procedure Set_Elaborate_All_Present
9667      (N : Node_Id; Val : Boolean := True);    -- Flag14
9668
9669    procedure Set_Elaborate_Desirable
9670      (N : Node_Id; Val : Boolean := True);    -- Flag11
9671
9672    procedure Set_Elaborate_Present
9673      (N : Node_Id; Val : Boolean := True);    -- Flag4
9674
9675    procedure Set_Elaboration_Boolean
9676      (N : Node_Id; Val : Node_Id);            -- Node2
9677
9678    procedure Set_Else_Actions
9679      (N : Node_Id; Val : List_Id);            -- List3
9680
9681    procedure Set_Else_Statements
9682      (N : Node_Id; Val : List_Id);            -- List4
9683
9684    procedure Set_Elsif_Parts
9685      (N : Node_Id; Val : List_Id);            -- List3
9686
9687    procedure Set_Enclosing_Variant
9688      (N : Node_Id; Val : Node_Id);            -- Node2
9689
9690    procedure Set_End_Label
9691      (N : Node_Id; Val : Node_Id);            -- Node4
9692
9693    procedure Set_End_Span
9694      (N : Node_Id; Val : Uint);               -- Uint5
9695
9696    procedure Set_Entity
9697      (N : Node_Id; Val : Node_Id);            -- Node4
9698
9699    procedure Set_Entry_Body_Formal_Part
9700      (N : Node_Id; Val : Node_Id);            -- Node5
9701
9702    procedure Set_Entry_Call_Alternative
9703      (N : Node_Id; Val : Node_Id);            -- Node1
9704
9705    procedure Set_Entry_Call_Statement
9706      (N : Node_Id; Val : Node_Id);            -- Node1
9707
9708    procedure Set_Entry_Direct_Name
9709      (N : Node_Id; Val : Node_Id);            -- Node1
9710
9711    procedure Set_Entry_Index
9712      (N : Node_Id; Val : Node_Id);            -- Node5
9713
9714    procedure Set_Entry_Index_Specification
9715      (N : Node_Id; Val : Node_Id);            -- Node4
9716
9717    procedure Set_Etype
9718      (N : Node_Id; Val : Node_Id);            -- Node5
9719
9720    procedure Set_Exception_Choices
9721      (N : Node_Id; Val : List_Id);            -- List4
9722
9723    procedure Set_Exception_Handlers
9724      (N : Node_Id; Val : List_Id);            -- List5
9725
9726    procedure Set_Exception_Junk
9727      (N : Node_Id; Val : Boolean := True);    -- Flag8
9728
9729    procedure Set_Exception_Label
9730      (N : Node_Id; Val : Node_Id);            -- Node5
9731
9732    procedure Set_Expansion_Delayed
9733      (N : Node_Id; Val : Boolean := True);    -- Flag11
9734
9735    procedure Set_Explicit_Actual_Parameter
9736      (N : Node_Id; Val : Node_Id);            -- Node3
9737
9738    procedure Set_Explicit_Generic_Actual_Parameter
9739      (N : Node_Id; Val : Node_Id);            -- Node1
9740
9741    procedure Set_Expression
9742      (N : Node_Id; Val : Node_Id);            -- Node3
9743
9744    procedure Set_Expressions
9745      (N : Node_Id; Val : List_Id);            -- List1
9746
9747    procedure Set_First_Bit
9748      (N : Node_Id; Val : Node_Id);            -- Node3
9749
9750    procedure Set_First_Inlined_Subprogram
9751      (N : Node_Id; Val : Entity_Id);          -- Node3
9752
9753    procedure Set_First_Name
9754      (N : Node_Id; Val : Boolean := True);    -- Flag5
9755
9756    procedure Set_First_Named_Actual
9757      (N : Node_Id; Val : Node_Id);            -- Node4
9758
9759    procedure Set_First_Real_Statement
9760      (N : Node_Id; Val : Node_Id);            -- Node2
9761
9762    procedure Set_First_Subtype_Link
9763      (N : Node_Id; Val : Entity_Id);          -- Node5
9764
9765    procedure Set_Float_Truncate
9766      (N : Node_Id; Val : Boolean := True);    -- Flag11
9767
9768    procedure Set_Formal_Type_Definition
9769      (N : Node_Id; Val : Node_Id);            -- Node3
9770
9771    procedure Set_Forwards_OK
9772      (N : Node_Id; Val : Boolean := True);    -- Flag5
9773
9774    procedure Set_From_At_Mod
9775      (N : Node_Id; Val : Boolean := True);    -- Flag4
9776
9777    procedure Set_From_Aspect_Specification
9778      (N : Node_Id; Val : Boolean := True);    -- Flag13
9779
9780    procedure Set_From_At_End
9781      (N : Node_Id; Val : Boolean := True);    -- Flag4
9782
9783    procedure Set_From_Default
9784      (N : Node_Id; Val : Boolean := True);    -- Flag6
9785
9786    procedure Set_Generic_Associations
9787      (N : Node_Id; Val : List_Id);            -- List3
9788
9789    procedure Set_Generic_Formal_Declarations
9790      (N : Node_Id; Val : List_Id);            -- List2
9791
9792    procedure Set_Generic_Parent
9793      (N : Node_Id; Val : Node_Id);            -- Node5
9794
9795    procedure Set_Generic_Parent_Type
9796      (N : Node_Id; Val : Node_Id);            -- Node4
9797
9798    procedure Set_Handled_Statement_Sequence
9799      (N : Node_Id; Val : Node_Id);            -- Node4
9800
9801    procedure Set_Handler_List_Entry
9802      (N : Node_Id; Val : Node_Id);            -- Node2
9803
9804    procedure Set_Has_Created_Identifier
9805      (N : Node_Id; Val : Boolean := True);    -- Flag15
9806
9807    procedure Set_Has_Dereference_Action
9808      (N : Node_Id; Val : Boolean := True);    -- Flag13
9809
9810    procedure Set_Has_Dynamic_Length_Check
9811      (N : Node_Id; Val : Boolean := True);    -- Flag10
9812
9813    procedure Set_Has_Dynamic_Range_Check
9814      (N : Node_Id; Val : Boolean := True);    -- Flag12
9815
9816    procedure Set_Has_Init_Expression
9817      (N : Node_Id; Val : Boolean := True);    -- Flag14
9818
9819    procedure Set_Has_Local_Raise
9820      (N : Node_Id; Val : Boolean := True);    -- Flag8
9821
9822    procedure Set_Has_No_Elaboration_Code
9823      (N : Node_Id; Val : Boolean := True);    -- Flag17
9824
9825    procedure Set_Has_Pragma_Suppress_All
9826      (N : Node_Id; Val : Boolean := True);    -- Flag14
9827
9828    procedure Set_Has_Private_View
9829      (N : Node_Id; Val : Boolean := True);    -- Flag11
9830
9831    procedure Set_Has_Relative_Deadline_Pragma
9832      (N : Node_Id; Val : Boolean := True);    -- Flag9
9833
9834    procedure Set_Has_Self_Reference
9835      (N : Node_Id; Val : Boolean := True);    -- Flag13
9836
9837    procedure Set_Has_SP_Choice
9838      (N : Node_Id; Val : Boolean := True);    -- Flag15
9839
9840    procedure Set_Has_Storage_Size_Pragma
9841      (N : Node_Id; Val : Boolean := True);    -- Flag5
9842
9843    procedure Set_Has_Wide_Character
9844      (N : Node_Id; Val : Boolean := True);    -- Flag11
9845
9846    procedure Set_Has_Wide_Wide_Character
9847      (N : Node_Id; Val : Boolean := True);    -- Flag13
9848
9849    procedure Set_Header_Size_Added
9850      (N : Node_Id; Val : Boolean := True);    -- Flag11
9851
9852    procedure Set_Hidden_By_Use_Clause
9853      (N : Node_Id; Val : Elist_Id);           -- Elist4
9854
9855    procedure Set_High_Bound
9856      (N : Node_Id; Val : Node_Id);            -- Node2
9857
9858    procedure Set_Identifier
9859      (N : Node_Id; Val : Node_Id);            -- Node1
9860
9861    procedure Set_Interface_List
9862      (N : Node_Id; Val : List_Id);            -- List2
9863
9864    procedure Set_Interface_Present
9865      (N : Node_Id; Val : Boolean := True);    -- Flag16
9866
9867    procedure Set_Implicit_With
9868      (N : Node_Id; Val : Boolean := True);    -- Flag16
9869
9870    procedure Set_Implicit_With_From_Instantiation
9871      (N : Node_Id; Val : Boolean := True);    -- Flag12
9872
9873    procedure Set_Import_Interface_Present
9874      (N : Node_Id; Val : Boolean := True);    -- Flag16
9875
9876    procedure Set_In_Assertion_Expression
9877      (N : Node_Id; Val : Boolean := True);    -- Flag4
9878
9879    procedure Set_In_Present
9880      (N : Node_Id; Val : Boolean := True);    -- Flag15
9881
9882    procedure Set_Includes_Infinities
9883      (N : Node_Id; Val : Boolean := True);    -- Flag11
9884
9885    procedure Set_Inherited_Discriminant
9886      (N : Node_Id; Val : Boolean := True);    -- Flag13
9887
9888    procedure Set_Instance_Spec
9889      (N : Node_Id; Val : Node_Id);            -- Node5
9890
9891    procedure Set_Intval
9892      (N : Node_Id; Val : Uint);               -- Uint3
9893
9894    procedure Set_Is_Accessibility_Actual
9895      (N : Node_Id; Val : Boolean := True);    -- Flag13
9896
9897    procedure Set_Is_Asynchronous_Call_Block
9898      (N : Node_Id; Val : Boolean := True);    -- Flag7
9899
9900    procedure Set_Is_Boolean_Aspect
9901      (N : Node_Id; Val : Boolean := True);    -- Flag16
9902
9903    procedure Set_Is_Checked
9904      (N : Node_Id; Val : Boolean := True);    -- Flag11
9905
9906    procedure Set_Is_Component_Left_Opnd
9907      (N : Node_Id; Val : Boolean := True);    -- Flag13
9908
9909    procedure Set_Is_Component_Right_Opnd
9910      (N : Node_Id; Val : Boolean := True);    -- Flag14
9911
9912    procedure Set_Is_Controlling_Actual
9913      (N : Node_Id; Val : Boolean := True);    -- Flag16
9914
9915    procedure Set_Is_Delayed_Aspect
9916      (N : Node_Id; Val : Boolean := True);    -- Flag14
9917
9918    procedure Set_Is_Disabled
9919      (N : Node_Id; Val : Boolean := True);    -- Flag15
9920
9921    procedure Set_Is_Ignored
9922      (N : Node_Id; Val : Boolean := True);    -- Flag9
9923
9924    procedure Set_Is_Dynamic_Coextension
9925      (N : Node_Id; Val : Boolean := True);    -- Flag18
9926
9927    procedure Set_Is_Elsif
9928      (N : Node_Id; Val : Boolean := True);    -- Flag13
9929
9930    procedure Set_Is_Entry_Barrier_Function
9931      (N : Node_Id; Val : Boolean := True);    -- Flag8
9932
9933    procedure Set_Is_Expanded_Build_In_Place_Call
9934      (N : Node_Id; Val : Boolean := True);    -- Flag11
9935
9936    procedure Set_Is_Finalization_Wrapper
9937      (N : Node_Id; Val : Boolean := True);    -- Flag9
9938
9939    procedure Set_Is_Folded_In_Parser
9940      (N : Node_Id; Val : Boolean := True);    -- Flag4
9941
9942    procedure Set_Is_In_Discriminant_Check
9943      (N : Node_Id; Val : Boolean := True);    -- Flag11
9944
9945    procedure Set_Is_Machine_Number
9946      (N : Node_Id; Val : Boolean := True);    -- Flag11
9947
9948    procedure Set_Is_Null_Loop
9949      (N : Node_Id; Val : Boolean := True);    -- Flag16
9950
9951    procedure Set_Is_Overloaded
9952      (N : Node_Id; Val : Boolean := True);    -- Flag5
9953
9954    procedure Set_Is_Power_Of_2_For_Shift
9955      (N : Node_Id; Val : Boolean := True);    -- Flag13
9956
9957    procedure Set_Is_Prefixed_Call
9958      (N : Node_Id; Val : Boolean := True);    -- Flag17
9959
9960    procedure Set_Is_Protected_Subprogram_Body
9961      (N : Node_Id; Val : Boolean := True);    -- Flag7
9962
9963    procedure Set_Is_Static_Coextension
9964      (N : Node_Id; Val : Boolean := True);    -- Flag14
9965
9966    procedure Set_Is_Static_Expression
9967      (N : Node_Id; Val : Boolean := True);    -- Flag6
9968
9969    procedure Set_Is_Subprogram_Descriptor
9970      (N : Node_Id; Val : Boolean := True);    -- Flag16
9971
9972    procedure Set_Is_Task_Allocation_Block
9973      (N : Node_Id; Val : Boolean := True);    -- Flag6
9974
9975    procedure Set_Is_Task_Master
9976      (N : Node_Id; Val : Boolean := True);    -- Flag5
9977
9978    procedure Set_Iteration_Scheme
9979      (N : Node_Id; Val : Node_Id);            -- Node2
9980
9981    procedure Set_Iterator_Specification
9982      (N : Node_Id; Val : Node_Id);            -- Node2
9983
9984    procedure Set_Itype
9985      (N : Node_Id; Val : Entity_Id);          -- Node1
9986
9987    procedure Set_Kill_Range_Check
9988      (N : Node_Id; Val : Boolean := True);    -- Flag11
9989
9990    procedure Set_Last_Bit
9991      (N : Node_Id; Val : Node_Id);            -- Node4
9992
9993    procedure Set_Last_Name
9994      (N : Node_Id; Val : Boolean := True);    -- Flag6
9995
9996    procedure Set_Library_Unit
9997      (N : Node_Id; Val : Node_Id);            -- Node4
9998
9999    procedure Set_Label_Construct
10000      (N : Node_Id; Val : Node_Id);            -- Node2
10001
10002    procedure Set_Left_Opnd
10003      (N : Node_Id; Val : Node_Id);            -- Node2
10004
10005    procedure Set_Limited_View_Installed
10006      (N : Node_Id; Val : Boolean := True);    -- Flag18
10007
10008    procedure Set_Limited_Present
10009      (N : Node_Id; Val : Boolean := True);    -- Flag17
10010
10011    procedure Set_Literals
10012      (N : Node_Id; Val : List_Id);            -- List1
10013
10014    procedure Set_Local_Raise_Not_OK
10015      (N : Node_Id; Val : Boolean := True);    -- Flag7
10016
10017    procedure Set_Local_Raise_Statements
10018      (N : Node_Id; Val : Elist_Id);           -- Elist1
10019
10020    procedure Set_Loop_Actions
10021      (N : Node_Id; Val : List_Id);            -- List2
10022
10023    procedure Set_Loop_Parameter_Specification
10024      (N : Node_Id; Val : Node_Id);            -- Node4
10025
10026    procedure Set_Low_Bound
10027      (N : Node_Id; Val : Node_Id);            -- Node1
10028
10029    procedure Set_Mod_Clause
10030      (N : Node_Id; Val : Node_Id);            -- Node2
10031
10032    procedure Set_More_Ids
10033      (N : Node_Id; Val : Boolean := True);    -- Flag5
10034
10035    procedure Set_Must_Be_Byte_Aligned
10036      (N : Node_Id; Val : Boolean := True);    -- Flag14
10037
10038    procedure Set_Must_Not_Freeze
10039      (N : Node_Id; Val : Boolean := True);    -- Flag8
10040
10041    procedure Set_Must_Not_Override
10042      (N : Node_Id; Val : Boolean := True);    -- Flag15
10043
10044    procedure Set_Must_Override
10045      (N : Node_Id; Val : Boolean := True);    -- Flag14
10046
10047    procedure Set_Name
10048      (N : Node_Id; Val : Node_Id);            -- Node2
10049
10050    procedure Set_Names
10051      (N : Node_Id; Val : List_Id);            -- List2
10052
10053    procedure Set_Next_Entity
10054      (N : Node_Id; Val : Node_Id);            -- Node2
10055
10056    procedure Set_Next_Exit_Statement
10057      (N : Node_Id; Val : Node_Id);            -- Node3
10058
10059    procedure Set_Next_Implicit_With
10060      (N : Node_Id; Val : Node_Id);            -- Node3
10061
10062    procedure Set_Next_Named_Actual
10063      (N : Node_Id; Val : Node_Id);            -- Node4
10064
10065    procedure Set_Next_Pragma
10066      (N : Node_Id; Val : Node_Id);            -- Node1
10067
10068    procedure Set_Next_Rep_Item
10069      (N : Node_Id; Val : Node_Id);            -- Node5
10070
10071    procedure Set_Next_Use_Clause
10072      (N : Node_Id; Val : Node_Id);            -- Node3
10073
10074    procedure Set_No_Ctrl_Actions
10075      (N : Node_Id; Val : Boolean := True);    -- Flag7
10076
10077    procedure Set_No_Elaboration_Check
10078      (N : Node_Id; Val : Boolean := True);    -- Flag14
10079
10080    procedure Set_No_Entities_Ref_In_Spec
10081      (N : Node_Id; Val : Boolean := True);    -- Flag8
10082
10083    procedure Set_No_Initialization
10084      (N : Node_Id; Val : Boolean := True);    -- Flag13
10085
10086    procedure Set_No_Minimize_Eliminate
10087      (N : Node_Id; Val : Boolean := True);    -- Flag17
10088
10089    procedure Set_No_Truncation
10090      (N : Node_Id; Val : Boolean := True);    -- Flag17
10091
10092    procedure Set_Null_Present
10093      (N : Node_Id; Val : Boolean := True);    -- Flag13
10094
10095    procedure Set_Null_Exclusion_Present
10096      (N : Node_Id; Val : Boolean := True);    -- Flag11
10097
10098    procedure Set_Null_Exclusion_In_Return_Present
10099      (N : Node_Id; Val : Boolean := True);    -- Flag14
10100
10101    procedure Set_Null_Record_Present
10102      (N : Node_Id; Val : Boolean := True);    -- Flag17
10103
10104    procedure Set_Object_Definition
10105      (N : Node_Id; Val : Node_Id);            -- Node4
10106
10107    procedure Set_Of_Present
10108      (N : Node_Id; Val : Boolean := True);   -- Flag16
10109
10110    procedure Set_Original_Discriminant
10111      (N : Node_Id; Val : Node_Id);            -- Node2
10112
10113    procedure Set_Original_Entity
10114      (N : Node_Id; Val : Entity_Id);          -- Node2
10115
10116    procedure Set_Others_Discrete_Choices
10117      (N : Node_Id; Val : List_Id);            -- List1
10118
10119    procedure Set_Out_Present
10120      (N : Node_Id; Val : Boolean := True);    -- Flag17
10121
10122    procedure Set_Parameter_Associations
10123      (N : Node_Id; Val : List_Id);            -- List3
10124
10125    procedure Set_Parameter_List_Truncated
10126      (N : Node_Id; Val : Boolean := True);    -- Flag17
10127
10128    procedure Set_Parameter_Specifications
10129      (N : Node_Id; Val : List_Id);            -- List3
10130
10131    procedure Set_Parameter_Type
10132      (N : Node_Id; Val : Node_Id);            -- Node2
10133
10134    procedure Set_Parent_Spec
10135      (N : Node_Id; Val : Node_Id);            -- Node4
10136
10137    procedure Set_Position
10138      (N : Node_Id; Val : Node_Id);            -- Node2
10139
10140    procedure Set_Pragma_Argument_Associations
10141      (N : Node_Id; Val : List_Id);            -- List2
10142
10143    procedure Set_Pragma_Identifier
10144      (N : Node_Id; Val : Node_Id);            -- Node4
10145
10146    procedure Set_Pragmas_After
10147      (N : Node_Id; Val : List_Id);            -- List5
10148
10149    procedure Set_Pragmas_Before
10150      (N : Node_Id; Val : List_Id);            -- List4
10151
10152    procedure Set_Pre_Post_Conditions
10153      (N : Node_Id; Val : Node_Id);            -- Node1
10154
10155    procedure Set_Prefix
10156      (N : Node_Id; Val : Node_Id);            -- Node3
10157
10158    procedure Set_Premature_Use
10159      (N : Node_Id; Val : Node_Id);            -- Node5
10160
10161    procedure Set_Present_Expr
10162      (N : Node_Id; Val : Uint);               -- Uint3
10163
10164    procedure Set_Prev_Ids
10165      (N : Node_Id; Val : Boolean := True);    -- Flag6
10166
10167    procedure Set_Print_In_Hex
10168      (N : Node_Id; Val : Boolean := True);    -- Flag13
10169
10170    procedure Set_Private_Declarations
10171      (N : Node_Id; Val : List_Id);            -- List3
10172
10173    procedure Set_Private_Present
10174      (N : Node_Id; Val : Boolean := True);    -- Flag15
10175
10176    procedure Set_Procedure_To_Call
10177      (N : Node_Id; Val : Node_Id);            -- Node2
10178
10179    procedure Set_Proper_Body
10180      (N : Node_Id; Val : Node_Id);            -- Node1
10181
10182    procedure Set_Protected_Definition
10183      (N : Node_Id; Val : Node_Id);            -- Node3
10184
10185    procedure Set_Protected_Present
10186      (N : Node_Id; Val : Boolean := True);    -- Flag6
10187
10188    procedure Set_Raises_Constraint_Error
10189      (N : Node_Id; Val : Boolean := True);    -- Flag7
10190
10191    procedure Set_Range_Constraint
10192      (N : Node_Id; Val : Node_Id);            -- Node4
10193
10194    procedure Set_Range_Expression
10195      (N : Node_Id; Val : Node_Id);            -- Node4
10196
10197    procedure Set_Real_Range_Specification
10198      (N : Node_Id; Val : Node_Id);            -- Node4
10199
10200    procedure Set_Realval
10201      (N : Node_Id; Val : Ureal);              -- Ureal3
10202
10203    procedure Set_Reason
10204      (N : Node_Id; Val : Uint);               -- Uint3
10205
10206    procedure Set_Record_Extension_Part
10207      (N : Node_Id; Val : Node_Id);            -- Node3
10208
10209    procedure Set_Redundant_Use
10210      (N : Node_Id; Val : Boolean := True);    -- Flag13
10211
10212    procedure Set_Renaming_Exception
10213      (N : Node_Id; Val : Node_Id);            -- Node2
10214
10215    procedure Set_Result_Definition
10216      (N : Node_Id; Val : Node_Id);            -- Node4
10217
10218    procedure Set_Return_Object_Declarations
10219      (N : Node_Id; Val : List_Id);            -- List3
10220
10221    procedure Set_Return_Statement_Entity
10222      (N : Node_Id; Val : Node_Id);            -- Node5
10223
10224    procedure Set_Reverse_Present
10225      (N : Node_Id; Val : Boolean := True);    -- Flag15
10226
10227    procedure Set_Right_Opnd
10228      (N : Node_Id; Val : Node_Id);            -- Node3
10229
10230    procedure Set_Rounded_Result
10231      (N : Node_Id; Val : Boolean := True);    -- Flag18
10232
10233    procedure Set_SCIL_Controlling_Tag
10234      (N : Node_Id; Val : Node_Id);            -- Node5
10235
10236    procedure Set_SCIL_Entity
10237      (N : Node_Id; Val : Node_Id);            -- Node4
10238
10239    procedure Set_SCIL_Tag_Value
10240      (N : Node_Id; Val : Node_Id);            -- Node5
10241
10242    procedure Set_SCIL_Target_Prim
10243      (N : Node_Id; Val : Node_Id);            -- Node2
10244
10245    procedure Set_Scope
10246      (N : Node_Id; Val : Node_Id);            -- Node3
10247
10248    procedure Set_Select_Alternatives
10249      (N : Node_Id; Val : List_Id);            -- List1
10250
10251    procedure Set_Selector_Name
10252      (N : Node_Id; Val : Node_Id);            -- Node2
10253
10254    procedure Set_Selector_Names
10255      (N : Node_Id; Val : List_Id);            -- List1
10256
10257    procedure Set_Shift_Count_OK
10258      (N : Node_Id; Val : Boolean := True);    -- Flag4
10259
10260    procedure Set_Source_Type
10261      (N : Node_Id; Val : Entity_Id);          -- Node1
10262
10263    procedure Set_Specification
10264      (N : Node_Id; Val : Node_Id);            -- Node1
10265
10266    procedure Set_Split_PPC
10267      (N : Node_Id; Val : Boolean);            -- Flag17
10268
10269    procedure Set_Statements
10270      (N : Node_Id; Val : List_Id);            -- List3
10271
10272    procedure Set_Storage_Pool
10273      (N : Node_Id; Val : Node_Id);            -- Node1
10274
10275    procedure Set_Subpool_Handle_Name
10276      (N : Node_Id; Val : Node_Id);            -- Node4
10277
10278    procedure Set_Strval
10279      (N : Node_Id; Val : String_Id);          -- Str3
10280
10281    procedure Set_Subtype_Indication
10282      (N : Node_Id; Val : Node_Id);            -- Node5
10283
10284    procedure Set_Subtype_Mark
10285      (N : Node_Id; Val : Node_Id);            -- Node4
10286
10287    procedure Set_Subtype_Marks
10288      (N : Node_Id; Val : List_Id);            -- List2
10289
10290    procedure Set_Suppress_Assignment_Checks
10291      (N : Node_Id; Val : Boolean := True);    -- Flag18
10292
10293    procedure Set_Suppress_Loop_Warnings
10294      (N : Node_Id; Val : Boolean := True);    -- Flag17
10295
10296    procedure Set_Synchronized_Present
10297      (N : Node_Id; Val : Boolean := True);    -- Flag7
10298
10299    procedure Set_Tagged_Present
10300      (N : Node_Id; Val : Boolean := True);    -- Flag15
10301
10302    procedure Set_Target_Type
10303      (N : Node_Id; Val : Entity_Id);          -- Node2
10304
10305    procedure Set_Task_Definition
10306      (N : Node_Id; Val : Node_Id);            -- Node3
10307
10308    procedure Set_Task_Present
10309      (N : Node_Id; Val : Boolean := True);    -- Flag5
10310
10311    procedure Set_Then_Actions
10312      (N : Node_Id; Val : List_Id);            -- List2
10313
10314    procedure Set_Then_Statements
10315      (N : Node_Id; Val : List_Id);            -- List2
10316
10317    procedure Set_Treat_Fixed_As_Integer
10318      (N : Node_Id; Val : Boolean := True);    -- Flag14
10319
10320    procedure Set_Triggering_Alternative
10321      (N : Node_Id; Val : Node_Id);            -- Node1
10322
10323    procedure Set_Triggering_Statement
10324      (N : Node_Id; Val : Node_Id);            -- Node1
10325
10326    procedure Set_TSS_Elist
10327      (N : Node_Id; Val : Elist_Id);           -- Elist3
10328
10329    procedure Set_Type_Definition
10330      (N : Node_Id; Val : Node_Id);            -- Node3
10331
10332    procedure Set_Unit
10333      (N : Node_Id; Val : Node_Id);            -- Node2
10334
10335    procedure Set_Unknown_Discriminants_Present
10336      (N : Node_Id; Val : Boolean := True);    -- Flag13
10337
10338    procedure Set_Unreferenced_In_Spec
10339      (N : Node_Id; Val : Boolean := True);    -- Flag7
10340
10341    procedure Set_Variant_Part
10342      (N : Node_Id; Val : Node_Id);            -- Node4
10343
10344    procedure Set_Variants
10345      (N : Node_Id; Val : List_Id);            -- List1
10346
10347    procedure Set_Visible_Declarations
10348      (N : Node_Id; Val : List_Id);            -- List2
10349
10350    procedure Set_Used_Operations
10351      (N : Node_Id; Val : Elist_Id);           -- Elist5
10352
10353    procedure Set_Was_Originally_Stub
10354      (N : Node_Id; Val : Boolean := True);    -- Flag13
10355
10356    procedure Set_Withed_Body
10357      (N : Node_Id; Val : Node_Id);            -- Node1
10358
10359    -------------------------
10360    -- Iterator Procedures --
10361    -------------------------
10362
10363    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10364
10365    procedure Next_Entity       (N : in out Node_Id);
10366    procedure Next_Named_Actual (N : in out Node_Id);
10367    procedure Next_Rep_Item     (N : in out Node_Id);
10368    procedure Next_Use_Clause   (N : in out Node_Id);
10369
10370    -------------------------------------------
10371    -- Miscellaneous Tree Access Subprograms --
10372    -------------------------------------------
10373
10374    function End_Location (N : Node_Id) return Source_Ptr;
10375    --  N is an N_If_Statement or N_Case_Statement node, and this function
10376    --  returns the location of the IF token in the END IF sequence by
10377    --  translating the value of the End_Span field.
10378
10379    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10380    --  N is an N_If_Statement or N_Case_Statement node. This procedure sets
10381    --  the End_Span field to correspond to the given value S. In other words,
10382    --  End_Span is set to the difference between S and Sloc (N), the starting
10383    --  location.
10384
10385    function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10386    --  Given an argument to a pragma Arg, this function returns the expression
10387    --  for the argument. This is Arg itself, or, in the case where Arg is a
10388    --  pragma argument association node, the expression from this node.
10389
10390    --------------------------------
10391    -- Node_Kind Membership Tests --
10392    --------------------------------
10393
10394    --  The following functions allow a convenient notation for testing whether
10395    --  a Node_Kind value matches any one of a list of possible values. In each
10396    --  case True is returned if the given T argument is equal to any of the V
10397    --  arguments. Note that there is a similar set of functions defined in
10398    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
10399
10400    function Nkind_In
10401      (T  : Node_Kind;
10402       V1 : Node_Kind;
10403       V2 : Node_Kind) return Boolean;
10404
10405    function Nkind_In
10406      (T  : Node_Kind;
10407       V1 : Node_Kind;
10408       V2 : Node_Kind;
10409       V3 : Node_Kind) return Boolean;
10410
10411    function Nkind_In
10412      (T  : Node_Kind;
10413       V1 : Node_Kind;
10414       V2 : Node_Kind;
10415       V3 : Node_Kind;
10416       V4 : Node_Kind) return Boolean;
10417
10418    function Nkind_In
10419      (T  : Node_Kind;
10420       V1 : Node_Kind;
10421       V2 : Node_Kind;
10422       V3 : Node_Kind;
10423       V4 : Node_Kind;
10424       V5 : Node_Kind) return Boolean;
10425
10426    function Nkind_In
10427      (T  : Node_Kind;
10428       V1 : Node_Kind;
10429       V2 : Node_Kind;
10430       V3 : Node_Kind;
10431       V4 : Node_Kind;
10432       V5 : Node_Kind;
10433       V6 : Node_Kind) return Boolean;
10434
10435    function Nkind_In
10436      (T  : Node_Kind;
10437       V1 : Node_Kind;
10438       V2 : Node_Kind;
10439       V3 : Node_Kind;
10440       V4 : Node_Kind;
10441       V5 : Node_Kind;
10442       V6 : Node_Kind;
10443       V7 : Node_Kind) return Boolean;
10444
10445    function Nkind_In
10446      (T  : Node_Kind;
10447       V1 : Node_Kind;
10448       V2 : Node_Kind;
10449       V3 : Node_Kind;
10450       V4 : Node_Kind;
10451       V5 : Node_Kind;
10452       V6 : Node_Kind;
10453       V7 : Node_Kind;
10454       V8 : Node_Kind) return Boolean;
10455
10456    function Nkind_In
10457      (T  : Node_Kind;
10458       V1 : Node_Kind;
10459       V2 : Node_Kind;
10460       V3 : Node_Kind;
10461       V4 : Node_Kind;
10462       V5 : Node_Kind;
10463       V6 : Node_Kind;
10464       V7 : Node_Kind;
10465       V8 : Node_Kind;
10466       V9 : Node_Kind) return Boolean;
10467
10468    pragma Inline (Nkind_In);
10469    --  Inline all above functions
10470
10471    -----------------------
10472    -- Utility Functions --
10473    -----------------------
10474
10475    function Pragma_Name (N : Node_Id) return Name_Id;
10476    pragma Inline (Pragma_Name);
10477    --  Convenient function to obtain Chars field of Pragma_Identifier
10478
10479    -----------------------------
10480    -- Syntactic Parent Tables --
10481    -----------------------------
10482
10483    --  These tables show for each node, and for each of the five fields,
10484    --  whether the corresponding field is syntactic (True) or semantic (False).
10485    --  Unused entries are also set to False.
10486
10487    subtype Field_Num is Natural range 1 .. 5;
10488
10489    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10490
10491    --  Following entries can be built automatically from the sinfo sources
10492    --  using the makeisf utility (currently this program is in spitbol).
10493
10494      N_Identifier =>
10495        (1 => True,    --  Chars (Name1)
10496         2 => False,   --  Original_Discriminant (Node2-Sem)
10497         3 => False,   --  unused
10498         4 => False,   --  Entity (Node4-Sem)
10499         5 => False),  --  Etype (Node5-Sem)
10500
10501      N_Integer_Literal =>
10502        (1 => False,   --  unused
10503         2 => False,   --  Original_Entity (Node2-Sem)
10504         3 => True,    --  Intval (Uint3)
10505         4 => False,   --  unused
10506         5 => False),  --  Etype (Node5-Sem)
10507
10508      N_Real_Literal =>
10509        (1 => False,   --  unused
10510         2 => False,   --  Original_Entity (Node2-Sem)
10511         3 => True,    --  Realval (Ureal3)
10512         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
10513         5 => False),  --  Etype (Node5-Sem)
10514
10515      N_Character_Literal =>
10516        (1 => True,    --  Chars (Name1)
10517         2 => True,    --  Char_Literal_Value (Uint2)
10518         3 => False,   --  unused
10519         4 => False,   --  Entity (Node4-Sem)
10520         5 => False),  --  Etype (Node5-Sem)
10521
10522      N_String_Literal =>
10523        (1 => False,   --  unused
10524         2 => False,   --  unused
10525         3 => True,    --  Strval (Str3)
10526         4 => False,   --  unused
10527         5 => False),  --  Etype (Node5-Sem)
10528
10529      N_Pragma =>
10530        (1 => False,   --  Next_Pragma (Node1-Sem)
10531         2 => True,    --  Pragma_Argument_Associations (List2)
10532         3 => False,   --  unused
10533         4 => True,    --  Pragma_Identifier (Node4)
10534         5 => False),  --  Next_Rep_Item (Node5-Sem)
10535
10536      N_Pragma_Argument_Association =>
10537        (1 => True,    --  Chars (Name1)
10538         2 => False,   --  unused
10539         3 => True,    --  Expression (Node3)
10540         4 => False,   --  unused
10541         5 => False),  --  unused
10542
10543      N_Defining_Identifier =>
10544        (1 => True,    --  Chars (Name1)
10545         2 => False,   --  Next_Entity (Node2-Sem)
10546         3 => False,   --  Scope (Node3-Sem)
10547         4 => False,   --  unused
10548         5 => False),  --  Etype (Node5-Sem)
10549
10550      N_Full_Type_Declaration =>
10551        (1 => True,    --  Defining_Identifier (Node1)
10552         2 => False,   --  unused
10553         3 => True,    --  Type_Definition (Node3)
10554         4 => True,    --  Discriminant_Specifications (List4)
10555         5 => False),  --  unused
10556
10557      N_Subtype_Declaration =>
10558        (1 => True,    --  Defining_Identifier (Node1)
10559         2 => False,   --  unused
10560         3 => False,   --  unused
10561         4 => False,   --  Generic_Parent_Type (Node4-Sem)
10562         5 => True),   --  Subtype_Indication (Node5)
10563
10564      N_Subtype_Indication =>
10565        (1 => False,   --  unused
10566         2 => False,   --  unused
10567         3 => True,    --  Constraint (Node3)
10568         4 => True,    --  Subtype_Mark (Node4)
10569         5 => False),  --  Etype (Node5-Sem)
10570
10571      N_Object_Declaration =>
10572        (1 => True,    --  Defining_Identifier (Node1)
10573         2 => False,   --  Handler_List_Entry (Node2-Sem)
10574         3 => True,    --  Expression (Node3)
10575         4 => True,    --  Object_Definition (Node4)
10576         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10577
10578      N_Number_Declaration =>
10579        (1 => True,    --  Defining_Identifier (Node1)
10580         2 => False,   --  unused
10581         3 => True,    --  Expression (Node3)
10582         4 => False,   --  unused
10583         5 => False),  --  unused
10584
10585      N_Derived_Type_Definition =>
10586        (1 => False,   --  unused
10587         2 => True,    --  Interface_List (List2)
10588         3 => True,    --  Record_Extension_Part (Node3)
10589         4 => False,   --  unused
10590         5 => True),   --  Subtype_Indication (Node5)
10591
10592      N_Range_Constraint =>
10593        (1 => False,   --  unused
10594         2 => False,   --  unused
10595         3 => False,   --  unused
10596         4 => True,    --  Range_Expression (Node4)
10597         5 => False),  --  unused
10598
10599      N_Range =>
10600        (1 => True,    --  Low_Bound (Node1)
10601         2 => True,    --  High_Bound (Node2)
10602         3 => False,   --  unused
10603         4 => False,   --  unused
10604         5 => False),  --  Etype (Node5-Sem)
10605
10606      N_Enumeration_Type_Definition =>
10607        (1 => True,    --  Literals (List1)
10608         2 => False,   --  unused
10609         3 => False,   --  unused
10610         4 => True,    --  End_Label (Node4)
10611         5 => False),  --  unused
10612
10613      N_Defining_Character_Literal =>
10614        (1 => True,    --  Chars (Name1)
10615         2 => False,   --  Next_Entity (Node2-Sem)
10616         3 => False,   --  Scope (Node3-Sem)
10617         4 => False,   --  unused
10618         5 => False),  --  Etype (Node5-Sem)
10619
10620      N_Signed_Integer_Type_Definition =>
10621        (1 => True,    --  Low_Bound (Node1)
10622         2 => True,    --  High_Bound (Node2)
10623         3 => False,   --  unused
10624         4 => False,   --  unused
10625         5 => False),  --  unused
10626
10627      N_Modular_Type_Definition =>
10628        (1 => False,   --  unused
10629         2 => False,   --  unused
10630         3 => True,    --  Expression (Node3)
10631         4 => False,   --  unused
10632         5 => False),  --  unused
10633
10634      N_Floating_Point_Definition =>
10635        (1 => False,   --  unused
10636         2 => True,    --  Digits_Expression (Node2)
10637         3 => False,   --  unused
10638         4 => True,    --  Real_Range_Specification (Node4)
10639         5 => False),  --  unused
10640
10641      N_Real_Range_Specification =>
10642        (1 => True,    --  Low_Bound (Node1)
10643         2 => True,    --  High_Bound (Node2)
10644         3 => False,   --  unused
10645         4 => False,   --  unused
10646         5 => False),  --  unused
10647
10648      N_Ordinary_Fixed_Point_Definition =>
10649        (1 => False,   --  unused
10650         2 => False,   --  unused
10651         3 => True,    --  Delta_Expression (Node3)
10652         4 => True,    --  Real_Range_Specification (Node4)
10653         5 => False),  --  unused
10654
10655      N_Decimal_Fixed_Point_Definition =>
10656        (1 => False,   --  unused
10657         2 => True,    --  Digits_Expression (Node2)
10658         3 => True,    --  Delta_Expression (Node3)
10659         4 => True,    --  Real_Range_Specification (Node4)
10660         5 => False),  --  unused
10661
10662      N_Digits_Constraint =>
10663        (1 => False,   --  unused
10664         2 => True,    --  Digits_Expression (Node2)
10665         3 => False,   --  unused
10666         4 => True,    --  Range_Constraint (Node4)
10667         5 => False),  --  unused
10668
10669      N_Unconstrained_Array_Definition =>
10670        (1 => False,   --  unused
10671         2 => True,    --  Subtype_Marks (List2)
10672         3 => False,   --  unused
10673         4 => True,    --  Component_Definition (Node4)
10674         5 => False),  --  unused
10675
10676      N_Constrained_Array_Definition =>
10677        (1 => False,   --  unused
10678         2 => True,    --  Discrete_Subtype_Definitions (List2)
10679         3 => False,   --  unused
10680         4 => True,    --  Component_Definition (Node4)
10681         5 => False),  --  unused
10682
10683      N_Component_Definition =>
10684        (1 => False,   --  unused
10685         2 => False,   --  unused
10686         3 => True,    --  Access_Definition (Node3)
10687         4 => False,   --  unused
10688         5 => True),   --  Subtype_Indication (Node5)
10689
10690      N_Discriminant_Specification =>
10691        (1 => True,    --  Defining_Identifier (Node1)
10692         2 => False,   --  unused
10693         3 => True,    --  Expression (Node3)
10694         4 => False,   --  unused
10695         5 => True),   --  Discriminant_Type (Node5)
10696
10697      N_Index_Or_Discriminant_Constraint =>
10698        (1 => True,    --  Constraints (List1)
10699         2 => False,   --  unused
10700         3 => False,   --  unused
10701         4 => False,   --  unused
10702         5 => False),  --  unused
10703
10704      N_Discriminant_Association =>
10705        (1 => True,    --  Selector_Names (List1)
10706         2 => False,   --  unused
10707         3 => True,    --  Expression (Node3)
10708         4 => False,   --  unused
10709         5 => False),  --  unused
10710
10711      N_Record_Definition =>
10712        (1 => True,    --  Component_List (Node1)
10713         2 => True,    --  Interface_List (List2)
10714         3 => False,   --  unused
10715         4 => True,    --  End_Label (Node4)
10716         5 => False),  --  unused
10717
10718      N_Component_List =>
10719        (1 => False,   --  unused
10720         2 => False,   --  unused
10721         3 => True,    --  Component_Items (List3)
10722         4 => True,    --  Variant_Part (Node4)
10723         5 => False),  --  unused
10724
10725      N_Component_Declaration =>
10726        (1 => True,    --  Defining_Identifier (Node1)
10727         2 => False,   --  unused
10728         3 => True,    --  Expression (Node3)
10729         4 => True,    --  Component_Definition (Node4)
10730         5 => False),  --  unused
10731
10732      N_Variant_Part =>
10733        (1 => True,    --  Variants (List1)
10734         2 => True,    --  Name (Node2)
10735         3 => False,   --  unused
10736         4 => False,   --  unused
10737         5 => False),  --  unused
10738
10739      N_Variant =>
10740        (1 => True,    --  Component_List (Node1)
10741         2 => False,   --  Enclosing_Variant (Node2-Sem)
10742         3 => False,   --  Present_Expr (Uint3-Sem)
10743         4 => True,    --  Discrete_Choices (List4)
10744         5 => False),  --  Dcheck_Function (Node5-Sem)
10745
10746      N_Others_Choice =>
10747        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
10748         2 => False,   --  unused
10749         3 => False,   --  unused
10750         4 => False,   --  unused
10751         5 => False),  --  unused
10752
10753      N_Access_To_Object_Definition =>
10754        (1 => False,   --  unused
10755         2 => False,   --  unused
10756         3 => False,   --  unused
10757         4 => False,   --  unused
10758         5 => True),   --  Subtype_Indication (Node5)
10759
10760      N_Access_Function_Definition =>
10761        (1 => False,   --  unused
10762         2 => False,   --  unused
10763         3 => True,    --  Parameter_Specifications (List3)
10764         4 => True,    --  Result_Definition (Node4)
10765         5 => False),  --  unused
10766
10767      N_Access_Procedure_Definition =>
10768        (1 => False,   --  unused
10769         2 => False,   --  unused
10770         3 => True,    --  Parameter_Specifications (List3)
10771         4 => False,   --  unused
10772         5 => False),  --  unused
10773
10774      N_Access_Definition =>
10775        (1 => False,   --  unused
10776         2 => False,   --  unused
10777         3 => True,    --  Access_To_Subprogram_Definition (Node3)
10778         4 => True,    --  Subtype_Mark (Node4)
10779         5 => False),  --  unused
10780
10781      N_Incomplete_Type_Declaration =>
10782        (1 => True,    --  Defining_Identifier (Node1)
10783         2 => False,   --  unused
10784         3 => False,   --  unused
10785         4 => True,    --  Discriminant_Specifications (List4)
10786         5 => False),  --  Premature_Use
10787
10788      N_Explicit_Dereference =>
10789        (1 => False,   --  unused
10790         2 => False,   --  unused
10791         3 => True,    --  Prefix (Node3)
10792         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10793         5 => False),  --  Etype (Node5-Sem)
10794
10795      N_Indexed_Component =>
10796        (1 => True,    --  Expressions (List1)
10797         2 => False,   --  unused
10798         3 => True,    --  Prefix (Node3)
10799         4 => False,   --  unused
10800         5 => False),  --  Etype (Node5-Sem)
10801
10802      N_Slice =>
10803        (1 => False,   --  unused
10804         2 => False,   --  unused
10805         3 => True,    --  Prefix (Node3)
10806         4 => True,    --  Discrete_Range (Node4)
10807         5 => False),  --  Etype (Node5-Sem)
10808
10809      N_Selected_Component =>
10810        (1 => False,   --  unused
10811         2 => True,    --  Selector_Name (Node2)
10812         3 => True,    --  Prefix (Node3)
10813         4 => False,   --  unused
10814         5 => False),  --  Etype (Node5-Sem)
10815
10816      N_Attribute_Reference =>
10817        (1 => True,    --  Expressions (List1)
10818         2 => True,    --  Attribute_Name (Name2)
10819         3 => True,    --  Prefix (Node3)
10820         4 => False,   --  Entity (Node4-Sem)
10821         5 => False),  --  Etype (Node5-Sem)
10822
10823      N_Aggregate =>
10824        (1 => True,    --  Expressions (List1)
10825         2 => True,    --  Component_Associations (List2)
10826         3 => False,   --  Aggregate_Bounds (Node3-Sem)
10827         4 => False,   --  unused
10828         5 => False),  --  Etype (Node5-Sem)
10829
10830      N_Component_Association =>
10831        (1 => True,    --  Choices (List1)
10832         2 => False,   --  Loop_Actions (List2-Sem)
10833         3 => True,    --  Expression (Node3)
10834         4 => False,   --  unused
10835         5 => False),  --  unused
10836
10837      N_Extension_Aggregate =>
10838        (1 => True,    --  Expressions (List1)
10839         2 => True,    --  Component_Associations (List2)
10840         3 => True,    --  Ancestor_Part (Node3)
10841         4 => False,   --  unused
10842         5 => False),  --  Etype (Node5-Sem)
10843
10844      N_Null =>
10845        (1 => False,   --  unused
10846         2 => False,   --  unused
10847         3 => False,   --  unused
10848         4 => False,   --  unused
10849         5 => False),  --  Etype (Node5-Sem)
10850
10851      N_And_Then =>
10852        (1 => False,   --  Actions (List1-Sem)
10853         2 => True,    --  Left_Opnd (Node2)
10854         3 => True,    --  Right_Opnd (Node3)
10855         4 => False,   --  unused
10856         5 => False),  --  Etype (Node5-Sem)
10857
10858      N_Or_Else =>
10859        (1 => False,   --  Actions (List1-Sem)
10860         2 => True,    --  Left_Opnd (Node2)
10861         3 => True,    --  Right_Opnd (Node3)
10862         4 => False,   --  unused
10863         5 => False),  --  Etype (Node5-Sem)
10864
10865      N_In =>
10866        (1 => False,   --  unused
10867         2 => True,    --  Left_Opnd (Node2)
10868         3 => True,    --  Right_Opnd (Node3)
10869         4 => True,    --  Alternatives (List4)
10870         5 => False),  --  Etype (Node5-Sem)
10871
10872      N_Not_In =>
10873        (1 => False,   --  unused
10874         2 => True,    --  Left_Opnd (Node2)
10875         3 => True,    --  Right_Opnd (Node3)
10876         4 => True,    --  Alternatives (List4)
10877         5 => False),  --  Etype (Node5-Sem)
10878
10879      N_Op_And =>
10880        (1 => True,    --  Chars (Name1)
10881         2 => True,    --  Left_Opnd (Node2)
10882         3 => True,    --  Right_Opnd (Node3)
10883         4 => False,   --  Entity (Node4-Sem)
10884         5 => False),  --  Etype (Node5-Sem)
10885
10886      N_Op_Or =>
10887        (1 => True,    --  Chars (Name1)
10888         2 => True,    --  Left_Opnd (Node2)
10889         3 => True,    --  Right_Opnd (Node3)
10890         4 => False,   --  Entity (Node4-Sem)
10891         5 => False),  --  Etype (Node5-Sem)
10892
10893      N_Op_Xor =>
10894        (1 => True,    --  Chars (Name1)
10895         2 => True,    --  Left_Opnd (Node2)
10896         3 => True,    --  Right_Opnd (Node3)
10897         4 => False,   --  Entity (Node4-Sem)
10898         5 => False),  --  Etype (Node5-Sem)
10899
10900      N_Op_Eq =>
10901        (1 => True,    --  Chars (Name1)
10902         2 => True,    --  Left_Opnd (Node2)
10903         3 => True,    --  Right_Opnd (Node3)
10904         4 => False,   --  Entity (Node4-Sem)
10905         5 => False),  --  Etype (Node5-Sem)
10906
10907      N_Op_Ne =>
10908        (1 => True,    --  Chars (Name1)
10909         2 => True,    --  Left_Opnd (Node2)
10910         3 => True,    --  Right_Opnd (Node3)
10911         4 => False,   --  Entity (Node4-Sem)
10912         5 => False),  --  Etype (Node5-Sem)
10913
10914      N_Op_Lt =>
10915        (1 => True,    --  Chars (Name1)
10916         2 => True,    --  Left_Opnd (Node2)
10917         3 => True,    --  Right_Opnd (Node3)
10918         4 => False,   --  Entity (Node4-Sem)
10919         5 => False),  --  Etype (Node5-Sem)
10920
10921      N_Op_Le =>
10922        (1 => True,    --  Chars (Name1)
10923         2 => True,    --  Left_Opnd (Node2)
10924         3 => True,    --  Right_Opnd (Node3)
10925         4 => False,   --  Entity (Node4-Sem)
10926         5 => False),  --  Etype (Node5-Sem)
10927
10928      N_Op_Gt =>
10929        (1 => True,    --  Chars (Name1)
10930         2 => True,    --  Left_Opnd (Node2)
10931         3 => True,    --  Right_Opnd (Node3)
10932         4 => False,   --  Entity (Node4-Sem)
10933         5 => False),  --  Etype (Node5-Sem)
10934
10935      N_Op_Ge =>
10936        (1 => True,    --  Chars (Name1)
10937         2 => True,    --  Left_Opnd (Node2)
10938         3 => True,    --  Right_Opnd (Node3)
10939         4 => False,   --  Entity (Node4-Sem)
10940         5 => False),  --  Etype (Node5-Sem)
10941
10942      N_Op_Add =>
10943        (1 => True,    --  Chars (Name1)
10944         2 => True,    --  Left_Opnd (Node2)
10945         3 => True,    --  Right_Opnd (Node3)
10946         4 => False,   --  Entity (Node4-Sem)
10947         5 => False),  --  Etype (Node5-Sem)
10948
10949      N_Op_Subtract =>
10950        (1 => True,    --  Chars (Name1)
10951         2 => True,    --  Left_Opnd (Node2)
10952         3 => True,    --  Right_Opnd (Node3)
10953         4 => False,   --  Entity (Node4-Sem)
10954         5 => False),  --  Etype (Node5-Sem)
10955
10956      N_Op_Concat =>
10957        (1 => True,    --  Chars (Name1)
10958         2 => True,    --  Left_Opnd (Node2)
10959         3 => True,    --  Right_Opnd (Node3)
10960         4 => False,   --  Entity (Node4-Sem)
10961         5 => False),  --  Etype (Node5-Sem)
10962
10963      N_Op_Multiply =>
10964        (1 => True,    --  Chars (Name1)
10965         2 => True,    --  Left_Opnd (Node2)
10966         3 => True,    --  Right_Opnd (Node3)
10967         4 => False,   --  Entity (Node4-Sem)
10968         5 => False),  --  Etype (Node5-Sem)
10969
10970      N_Op_Divide =>
10971        (1 => True,    --  Chars (Name1)
10972         2 => True,    --  Left_Opnd (Node2)
10973         3 => True,    --  Right_Opnd (Node3)
10974         4 => False,   --  Entity (Node4-Sem)
10975         5 => False),  --  Etype (Node5-Sem)
10976
10977      N_Op_Mod =>
10978        (1 => True,    --  Chars (Name1)
10979         2 => True,    --  Left_Opnd (Node2)
10980         3 => True,    --  Right_Opnd (Node3)
10981         4 => False,   --  Entity (Node4-Sem)
10982         5 => False),  --  Etype (Node5-Sem)
10983
10984      N_Op_Rem =>
10985        (1 => True,    --  Chars (Name1)
10986         2 => True,    --  Left_Opnd (Node2)
10987         3 => True,    --  Right_Opnd (Node3)
10988         4 => False,   --  Entity (Node4-Sem)
10989         5 => False),  --  Etype (Node5-Sem)
10990
10991      N_Op_Expon =>
10992        (1 => True,    --  Chars (Name1)
10993         2 => True,    --  Left_Opnd (Node2)
10994         3 => True,    --  Right_Opnd (Node3)
10995         4 => False,   --  Entity (Node4-Sem)
10996         5 => False),  --  Etype (Node5-Sem)
10997
10998      N_Op_Plus =>
10999        (1 => True,    --  Chars (Name1)
11000         2 => False,   --  unused
11001         3 => True,    --  Right_Opnd (Node3)
11002         4 => False,   --  Entity (Node4-Sem)
11003         5 => False),  --  Etype (Node5-Sem)
11004
11005      N_Op_Minus =>
11006        (1 => True,    --  Chars (Name1)
11007         2 => False,   --  unused
11008         3 => True,    --  Right_Opnd (Node3)
11009         4 => False,   --  Entity (Node4-Sem)
11010         5 => False),  --  Etype (Node5-Sem)
11011
11012      N_Op_Abs =>
11013        (1 => True,    --  Chars (Name1)
11014         2 => False,   --  unused
11015         3 => True,    --  Right_Opnd (Node3)
11016         4 => False,   --  Entity (Node4-Sem)
11017         5 => False),  --  Etype (Node5-Sem)
11018
11019      N_Op_Not =>
11020        (1 => True,    --  Chars (Name1)
11021         2 => False,   --  unused
11022         3 => True,    --  Right_Opnd (Node3)
11023         4 => False,   --  Entity (Node4-Sem)
11024         5 => False),  --  Etype (Node5-Sem)
11025
11026      N_Type_Conversion =>
11027        (1 => False,   --  unused
11028         2 => False,   --  unused
11029         3 => True,    --  Expression (Node3)
11030         4 => True,    --  Subtype_Mark (Node4)
11031         5 => False),  --  Etype (Node5-Sem)
11032
11033      N_Qualified_Expression =>
11034        (1 => False,   --  unused
11035         2 => False,   --  unused
11036         3 => True,    --  Expression (Node3)
11037         4 => True,    --  Subtype_Mark (Node4)
11038         5 => False),  --  Etype (Node5-Sem)
11039
11040      N_Quantified_Expression =>
11041        (1 => True,    --  Condition (Node1)
11042         2 => True,    --  Iterator_Specification
11043         3 => False,   --  unused
11044         4 => True,    --  Loop_Parameter_Specification (Node4)
11045         5 => False),  --  Etype (Node5-Sem)
11046
11047      N_Allocator =>
11048        (1 => False,   --  Storage_Pool (Node1-Sem)
11049         2 => False,   --  Procedure_To_Call (Node2-Sem)
11050         3 => True,    --  Expression (Node3)
11051         4 => True,    --  Subpool_Handle_Name (Node4)
11052         5 => False),  --  Etype (Node5-Sem)
11053
11054      N_Null_Statement =>
11055        (1 => False,   --  unused
11056         2 => False,   --  unused
11057         3 => False,   --  unused
11058         4 => False,   --  unused
11059         5 => False),  --  unused
11060
11061      N_Label =>
11062        (1 => True,    --  Identifier (Node1)
11063         2 => False,   --  unused
11064         3 => False,   --  unused
11065         4 => False,   --  unused
11066         5 => False),  --  unused
11067
11068      N_Assignment_Statement =>
11069        (1 => False,   --  unused
11070         2 => True,    --  Name (Node2)
11071         3 => True,    --  Expression (Node3)
11072         4 => False,   --  unused
11073         5 => False),  --  unused
11074
11075      N_If_Statement =>
11076        (1 => True,    --  Condition (Node1)
11077         2 => True,    --  Then_Statements (List2)
11078         3 => True,    --  Elsif_Parts (List3)
11079         4 => True,    --  Else_Statements (List4)
11080         5 => True),   --  End_Span (Uint5)
11081
11082      N_Elsif_Part =>
11083        (1 => True,    --  Condition (Node1)
11084         2 => True,    --  Then_Statements (List2)
11085         3 => False,   --  Condition_Actions (List3-Sem)
11086         4 => False,   --  unused
11087         5 => False),  --  unused
11088
11089      N_Case_Expression =>
11090        (1 => False,   --  unused
11091         2 => False,   --  unused
11092         3 => True,    --  Expression (Node3)
11093         4 => True,    --  Alternatives (List4)
11094         5 => False),  --  unused
11095
11096      N_Case_Expression_Alternative =>
11097        (1 => False,   --  Actions (List1-Sem)
11098         2 => False,   --  unused
11099         3 => True,    --  Statements (List3)
11100         4 => True,    --  Expression (Node4)
11101         5 => False),  --  unused
11102
11103      N_Case_Statement =>
11104        (1 => False,   --  unused
11105         2 => False,   --  unused
11106         3 => True,    --  Expression (Node3)
11107         4 => True,    --  Alternatives (List4)
11108         5 => True),   --  End_Span (Uint5)
11109
11110      N_Case_Statement_Alternative =>
11111        (1 => False,   --  unused
11112         2 => False,   --  unused
11113         3 => True,    --  Statements (List3)
11114         4 => True,    --  Discrete_Choices (List4)
11115         5 => False),  --  unused
11116
11117      N_Loop_Statement =>
11118        (1 => True,    --  Identifier (Node1)
11119         2 => True,    --  Iteration_Scheme (Node2)
11120         3 => True,    --  Statements (List3)
11121         4 => True,    --  End_Label (Node4)
11122         5 => False),  --  unused
11123
11124      N_Iteration_Scheme =>
11125        (1 => True,    --  Condition (Node1)
11126         2 => True,    --  Iterator_Specification (Node2)
11127         3 => False,   --  Condition_Actions (List3-Sem)
11128         4 => True,    --  Loop_Parameter_Specification (Node4)
11129         5 => False),  --  unused
11130
11131      N_Loop_Parameter_Specification =>
11132        (1 => True,    --  Defining_Identifier (Node1)
11133         2 => False,   --  unused
11134         3 => False,   --  unused
11135         4 => True,    --  Discrete_Subtype_Definition (Node4)
11136         5 => False),  --  unused
11137
11138      N_Iterator_Specification =>
11139        (1 => True,    --  Defining_Identifier (Node1)
11140         2 => True,    --  Name (Node2)
11141         3 => False,   --  Unused
11142         4 => False,   --  Unused
11143         5 => True),   --  Subtype_Indication (Node5)
11144
11145      N_Block_Statement =>
11146        (1 => True,    --  Identifier (Node1)
11147         2 => True,    --  Declarations (List2)
11148         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11149         4 => True,    --  Handled_Statement_Sequence (Node4)
11150         5 => False),  --  unused
11151
11152      N_Exit_Statement =>
11153        (1 => True,    --  Condition (Node1)
11154         2 => True,    --  Name (Node2)
11155         3 => False,   --  unused
11156         4 => False,   --  unused
11157         5 => False),  --  unused
11158
11159      N_Goto_Statement =>
11160        (1 => False,   --  unused
11161         2 => True,    --  Name (Node2)
11162         3 => False,   --  unused
11163         4 => False,   --  unused
11164         5 => False),  --  unused
11165
11166      N_Subprogram_Declaration =>
11167        (1 => True,    --  Specification (Node1)
11168         2 => False,   --  unused
11169         3 => False,   --  Body_To_Inline (Node3-Sem)
11170         4 => False,   --  Parent_Spec (Node4-Sem)
11171         5 => False),  --  Corresponding_Body (Node5-Sem)
11172
11173      N_Abstract_Subprogram_Declaration =>
11174        (1 => True,    --  Specification (Node1)
11175         2 => False,   --  unused
11176         3 => False,   --  unused
11177         4 => False,   --  unused
11178         5 => False),  --  unused
11179
11180      N_Function_Specification =>
11181        (1 => True,    --  Defining_Unit_Name (Node1)
11182         2 => False,   --  Elaboration_Boolean (Node2-Sem)
11183         3 => True,    --  Parameter_Specifications (List3)
11184         4 => True,    --  Result_Definition (Node4)
11185         5 => False),  --  Generic_Parent (Node5-Sem)
11186
11187      N_Procedure_Specification =>
11188        (1 => True,    --  Defining_Unit_Name (Node1)
11189         2 => False,   --  Elaboration_Boolean (Node2-Sem)
11190         3 => True,    --  Parameter_Specifications (List3)
11191         4 => False,   --  unused
11192         5 => False),  --  Generic_Parent (Node5-Sem)
11193
11194      N_Designator =>
11195        (1 => True,    --  Identifier (Node1)
11196         2 => True,    --  Name (Node2)
11197         3 => False,   --  unused
11198         4 => False,   --  unused
11199         5 => False),  --  unused
11200
11201      N_Defining_Program_Unit_Name =>
11202        (1 => True,    --  Defining_Identifier (Node1)
11203         2 => True,    --  Name (Node2)
11204         3 => False,   --  unused
11205         4 => False,   --  unused
11206         5 => False),  --  unused
11207
11208      N_Operator_Symbol =>
11209        (1 => True,    --  Chars (Name1)
11210         2 => False,   --  unused
11211         3 => True,    --  Strval (Str3)
11212         4 => False,   --  Entity (Node4-Sem)
11213         5 => False),  --  Etype (Node5-Sem)
11214
11215      N_Defining_Operator_Symbol =>
11216        (1 => True,    --  Chars (Name1)
11217         2 => False,   --  Next_Entity (Node2-Sem)
11218         3 => False,   --  Scope (Node3-Sem)
11219         4 => False,   --  unused
11220         5 => False),  --  Etype (Node5-Sem)
11221
11222      N_Parameter_Specification =>
11223        (1 => True,    --  Defining_Identifier (Node1)
11224         2 => True,    --  Parameter_Type (Node2)
11225         3 => True,    --  Expression (Node3)
11226         4 => False,   --  unused
11227         5 => False),  --  Default_Expression (Node5-Sem)
11228
11229      N_Subprogram_Body =>
11230        (1 => True,    --  Specification (Node1)
11231         2 => True,    --  Declarations (List2)
11232         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11233         4 => True,    --  Handled_Statement_Sequence (Node4)
11234         5 => False),  --  Corresponding_Spec (Node5-Sem)
11235
11236      N_Expression_Function =>
11237        (1 => True,    --  Specification (Node1)
11238         2 => False,   --  unused
11239         3 => True,    --  Expression (Node3)
11240         4 => False,   --  unused
11241         5 => False),  --  unused
11242
11243      N_Procedure_Call_Statement =>
11244        (1 => False,   --  Controlling_Argument (Node1-Sem)
11245         2 => True,    --  Name (Node2)
11246         3 => True,    --  Parameter_Associations (List3)
11247         4 => False,   --  First_Named_Actual (Node4-Sem)
11248         5 => False),  --  Etype (Node5-Sem)
11249
11250      N_Function_Call =>
11251        (1 => False,   --  Controlling_Argument (Node1-Sem)
11252         2 => True,    --  Name (Node2)
11253         3 => True,    --  Parameter_Associations (List3)
11254         4 => False,   --  First_Named_Actual (Node4-Sem)
11255         5 => False),  --  Etype (Node5-Sem)
11256
11257      N_Parameter_Association =>
11258        (1 => False,   --  unused
11259         2 => True,    --  Selector_Name (Node2)
11260         3 => True,    --  Explicit_Actual_Parameter (Node3)
11261         4 => False,   --  Next_Named_Actual (Node4-Sem)
11262         5 => False),  --  unused
11263
11264      N_Simple_Return_Statement =>
11265        (1 => False,   --  Storage_Pool (Node1-Sem)
11266         2 => False,   --  Procedure_To_Call (Node2-Sem)
11267         3 => True,    --  Expression (Node3)
11268         4 => False,   --  unused
11269         5 => False),  --  Return_Statement_Entity (Node5-Sem)
11270
11271      N_Extended_Return_Statement =>
11272        (1 => False,   --  Storage_Pool (Node1-Sem)
11273         2 => False,   --  Procedure_To_Call (Node2-Sem)
11274         3 => True,    --  Return_Object_Declarations (List3)
11275         4 => True,    --  Handled_Statement_Sequence (Node4)
11276         5 => False),  --  Return_Statement_Entity (Node5-Sem)
11277
11278      N_Package_Declaration =>
11279        (1 => True,    --  Specification (Node1)
11280         2 => False,   --  unused
11281         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11282         4 => False,   --  Parent_Spec (Node4-Sem)
11283         5 => False),  --  Corresponding_Body (Node5-Sem)
11284
11285      N_Package_Specification =>
11286        (1 => True,    --  Defining_Unit_Name (Node1)
11287         2 => True,    --  Visible_Declarations (List2)
11288         3 => True,    --  Private_Declarations (List3)
11289         4 => True,    --  End_Label (Node4)
11290         5 => False),  --  Generic_Parent (Node5-Sem)
11291
11292      N_Package_Body =>
11293        (1 => True,    --  Defining_Unit_Name (Node1)
11294         2 => True,    --  Declarations (List2)
11295         3 => False,   --  unused
11296         4 => True,    --  Handled_Statement_Sequence (Node4)
11297         5 => False),  --  Corresponding_Spec (Node5-Sem)
11298
11299      N_Private_Type_Declaration =>
11300        (1 => True,    --  Defining_Identifier (Node1)
11301         2 => False,   --  unused
11302         3 => False,   --  unused
11303         4 => True,    --  Discriminant_Specifications (List4)
11304         5 => False),  --  unused
11305
11306      N_Private_Extension_Declaration =>
11307        (1 => True,    --  Defining_Identifier (Node1)
11308         2 => True,    --  Interface_List (List2)
11309         3 => False,   --  unused
11310         4 => True,    --  Discriminant_Specifications (List4)
11311         5 => True),   --  Subtype_Indication (Node5)
11312
11313      N_Use_Package_Clause =>
11314        (1 => False,   --  unused
11315         2 => True,    --  Names (List2)
11316         3 => False,   --  Next_Use_Clause (Node3-Sem)
11317         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
11318         5 => False),  --  unused
11319
11320      N_Use_Type_Clause =>
11321        (1 => False,   --  unused
11322         2 => True,    --  Subtype_Marks (List2)
11323         3 => False,   --  Next_Use_Clause (Node3-Sem)
11324         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
11325         5 => False),  --  unused
11326
11327      N_Object_Renaming_Declaration =>
11328        (1 => True,    --  Defining_Identifier (Node1)
11329         2 => True,    --  Name (Node2)
11330         3 => True,    --  Access_Definition (Node3)
11331         4 => True,    --  Subtype_Mark (Node4)
11332         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
11333
11334      N_Exception_Renaming_Declaration =>
11335        (1 => True,    --  Defining_Identifier (Node1)
11336         2 => True,    --  Name (Node2)
11337         3 => False,   --  unused
11338         4 => False,   --  unused
11339         5 => False),  --  unused
11340
11341      N_Package_Renaming_Declaration =>
11342        (1 => True,    --  Defining_Unit_Name (Node1)
11343         2 => True,    --  Name (Node2)
11344         3 => False,   --  unused
11345         4 => False,   --  Parent_Spec (Node4-Sem)
11346         5 => False),  --  unused
11347
11348      N_Subprogram_Renaming_Declaration =>
11349        (1 => True,    --  Specification (Node1)
11350         2 => True,    --  Name (Node2)
11351         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
11352         4 => False,   --  Parent_Spec (Node4-Sem)
11353         5 => False),  --  Corresponding_Spec (Node5-Sem)
11354
11355      N_Generic_Package_Renaming_Declaration =>
11356        (1 => True,    --  Defining_Unit_Name (Node1)
11357         2 => True,    --  Name (Node2)
11358         3 => False,   --  unused
11359         4 => False,   --  Parent_Spec (Node4-Sem)
11360         5 => False),  --  unused
11361
11362      N_Generic_Procedure_Renaming_Declaration =>
11363        (1 => True,    --  Defining_Unit_Name (Node1)
11364         2 => True,    --  Name (Node2)
11365         3 => False,   --  unused
11366         4 => False,   --  Parent_Spec (Node4-Sem)
11367         5 => False),  --  unused
11368
11369      N_Generic_Function_Renaming_Declaration =>
11370        (1 => True,    --  Defining_Unit_Name (Node1)
11371         2 => True,    --  Name (Node2)
11372         3 => False,   --  unused
11373         4 => False,   --  Parent_Spec (Node4-Sem)
11374         5 => False),  --  unused
11375
11376      N_Task_Type_Declaration =>
11377        (1 => True,    --  Defining_Identifier (Node1)
11378         2 => True,    --  Interface_List (List2)
11379         3 => True,    --  Task_Definition (Node3)
11380         4 => True,    --  Discriminant_Specifications (List4)
11381         5 => False),  --  Corresponding_Body (Node5-Sem)
11382
11383      N_Single_Task_Declaration =>
11384        (1 => True,    --  Defining_Identifier (Node1)
11385         2 => True,    --  Interface_List (List2)
11386         3 => True,    --  Task_Definition (Node3)
11387         4 => False,   --  unused
11388         5 => False),  --  unused
11389
11390      N_Task_Definition =>
11391        (1 => False,   --  unused
11392         2 => True,    --  Visible_Declarations (List2)
11393         3 => True,    --  Private_Declarations (List3)
11394         4 => True,    --  End_Label (Node4)
11395         5 => False),  --  unused
11396
11397      N_Task_Body =>
11398        (1 => True,    --  Defining_Identifier (Node1)
11399         2 => True,    --  Declarations (List2)
11400         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11401         4 => True,    --  Handled_Statement_Sequence (Node4)
11402         5 => False),  --  Corresponding_Spec (Node5-Sem)
11403
11404      N_Protected_Type_Declaration =>
11405        (1 => True,    --  Defining_Identifier (Node1)
11406         2 => True,    --  Interface_List (List2)
11407         3 => True,    --  Protected_Definition (Node3)
11408         4 => True,    --  Discriminant_Specifications (List4)
11409         5 => False),  --  Corresponding_Body (Node5-Sem)
11410
11411      N_Single_Protected_Declaration =>
11412        (1 => True,    --  Defining_Identifier (Node1)
11413         2 => True,    --  Interface_List (List2)
11414         3 => True,    --  Protected_Definition (Node3)
11415         4 => False,   --  unused
11416         5 => False),  --  unused
11417
11418      N_Protected_Definition =>
11419        (1 => False,   --  unused
11420         2 => True,    --  Visible_Declarations (List2)
11421         3 => True,    --  Private_Declarations (List3)
11422         4 => True,    --  End_Label (Node4)
11423         5 => False),  --  unused
11424
11425      N_Protected_Body =>
11426        (1 => True,    --  Defining_Identifier (Node1)
11427         2 => True,    --  Declarations (List2)
11428         3 => False,   --  unused
11429         4 => True,    --  End_Label (Node4)
11430         5 => False),  --  Corresponding_Spec (Node5-Sem)
11431
11432      N_Entry_Declaration =>
11433        (1 => True,    --  Defining_Identifier (Node1)
11434         2 => False,   --  unused
11435         3 => True,    --  Parameter_Specifications (List3)
11436         4 => True,    --  Discrete_Subtype_Definition (Node4)
11437         5 => False),  --  Corresponding_Body (Node5-Sem)
11438
11439      N_Accept_Statement =>
11440        (1 => True,    --  Entry_Direct_Name (Node1)
11441         2 => True,    --  Declarations (List2)
11442         3 => True,    --  Parameter_Specifications (List3)
11443         4 => True,    --  Handled_Statement_Sequence (Node4)
11444         5 => True),   --  Entry_Index (Node5)
11445
11446      N_Entry_Body =>
11447        (1 => True,    --  Defining_Identifier (Node1)
11448         2 => True,    --  Declarations (List2)
11449         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11450         4 => True,    --  Handled_Statement_Sequence (Node4)
11451         5 => True),   --  Entry_Body_Formal_Part (Node5)
11452
11453      N_Entry_Body_Formal_Part =>
11454        (1 => True,    --  Condition (Node1)
11455         2 => False,   --  unused
11456         3 => True,    --  Parameter_Specifications (List3)
11457         4 => True,    --  Entry_Index_Specification (Node4)
11458         5 => False),  --  unused
11459
11460      N_Entry_Index_Specification =>
11461        (1 => True,    --  Defining_Identifier (Node1)
11462         2 => False,   --  unused
11463         3 => False,   --  unused
11464         4 => True,    --  Discrete_Subtype_Definition (Node4)
11465         5 => False),  --  unused
11466
11467      N_Entry_Call_Statement =>
11468        (1 => False,   --  unused
11469         2 => True,    --  Name (Node2)
11470         3 => True,    --  Parameter_Associations (List3)
11471         4 => False,   --  First_Named_Actual (Node4-Sem)
11472         5 => False),  --  unused
11473
11474      N_Requeue_Statement =>
11475        (1 => False,   --  unused
11476         2 => True,    --  Name (Node2)
11477         3 => False,   --  unused
11478         4 => False,   --  unused
11479         5 => False),  --  unused
11480
11481      N_Delay_Until_Statement =>
11482        (1 => False,   --  unused
11483         2 => False,   --  unused
11484         3 => True,    --  Expression (Node3)
11485         4 => False,   --  unused
11486         5 => False),  --  unused
11487
11488      N_Delay_Relative_Statement =>
11489        (1 => False,   --  unused
11490         2 => False,   --  unused
11491         3 => True,    --  Expression (Node3)
11492         4 => False,   --  unused
11493         5 => False),  --  unused
11494
11495      N_Selective_Accept =>
11496        (1 => True,    --  Select_Alternatives (List1)
11497         2 => False,   --  unused
11498         3 => False,   --  unused
11499         4 => True,    --  Else_Statements (List4)
11500         5 => False),  --  unused
11501
11502      N_Accept_Alternative =>
11503        (1 => True,    --  Condition (Node1)
11504         2 => True,    --  Accept_Statement (Node2)
11505         3 => True,    --  Statements (List3)
11506         4 => True,    --  Pragmas_Before (List4)
11507         5 => False),  --  Accept_Handler_Records (List5-Sem)
11508
11509      N_Delay_Alternative =>
11510        (1 => True,    --  Condition (Node1)
11511         2 => True,    --  Delay_Statement (Node2)
11512         3 => True,    --  Statements (List3)
11513         4 => True,    --  Pragmas_Before (List4)
11514         5 => False),  --  unused
11515
11516      N_Terminate_Alternative =>
11517        (1 => True,    --  Condition (Node1)
11518         2 => False,   --  unused
11519         3 => False,   --  unused
11520         4 => True,    --  Pragmas_Before (List4)
11521         5 => True),   --  Pragmas_After (List5)
11522
11523      N_Timed_Entry_Call =>
11524        (1 => True,    --  Entry_Call_Alternative (Node1)
11525         2 => False,   --  unused
11526         3 => False,   --  unused
11527         4 => True,    --  Delay_Alternative (Node4)
11528         5 => False),  --  unused
11529
11530      N_Entry_Call_Alternative =>
11531        (1 => True,    --  Entry_Call_Statement (Node1)
11532         2 => False,   --  unused
11533         3 => True,    --  Statements (List3)
11534         4 => True,    --  Pragmas_Before (List4)
11535         5 => False),  --  unused
11536
11537      N_Conditional_Entry_Call =>
11538        (1 => True,    --  Entry_Call_Alternative (Node1)
11539         2 => False,   --  unused
11540         3 => False,   --  unused
11541         4 => True,    --  Else_Statements (List4)
11542         5 => False),  --  unused
11543
11544      N_Asynchronous_Select =>
11545        (1 => True,    --  Triggering_Alternative (Node1)
11546         2 => True,    --  Abortable_Part (Node2)
11547         3 => False,   --  unused
11548         4 => False,   --  unused
11549         5 => False),  --  unused
11550
11551      N_Triggering_Alternative =>
11552        (1 => True,    --  Triggering_Statement (Node1)
11553         2 => False,   --  unused
11554         3 => True,    --  Statements (List3)
11555         4 => True,    --  Pragmas_Before (List4)
11556         5 => False),  --  unused
11557
11558      N_Abortable_Part =>
11559        (1 => False,   --  unused
11560         2 => False,   --  unused
11561         3 => True,    --  Statements (List3)
11562         4 => False,   --  unused
11563         5 => False),  --  unused
11564
11565      N_Abort_Statement =>
11566        (1 => False,   --  unused
11567         2 => True,    --  Names (List2)
11568         3 => False,   --  unused
11569         4 => False,   --  unused
11570         5 => False),  --  unused
11571
11572      N_Compilation_Unit =>
11573        (1 => True,    --  Context_Items (List1)
11574         2 => True,    --  Unit (Node2)
11575         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
11576         4 => False,   --  Library_Unit (Node4-Sem)
11577         5 => True),   --  Aux_Decls_Node (Node5)
11578
11579      N_Compilation_Unit_Aux =>
11580        (1 => True,    --  Actions (List1)
11581         2 => True,    --  Declarations (List2)
11582         3 => False,   --  Default_Storage_Pool (Node3)
11583         4 => True,    --  Config_Pragmas (List4)
11584         5 => True),   --  Pragmas_After (List5)
11585
11586      N_With_Clause =>
11587        (1 => False,   --  unused
11588         2 => True,    --  Name (Node2)
11589         3 => False,   --  unused
11590         4 => False,   --  Library_Unit (Node4-Sem)
11591         5 => False),  --  Corresponding_Spec (Node5-Sem)
11592
11593      N_Subprogram_Body_Stub =>
11594        (1 => True,    --  Specification (Node1)
11595         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
11596         3 => False,   --  unused
11597         4 => False,   --  Library_Unit (Node4-Sem)
11598         5 => False),  --  Corresponding_Body (Node5-Sem)
11599
11600      N_Package_Body_Stub =>
11601        (1 => True,    --  Defining_Identifier (Node1)
11602         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
11603         3 => False,   --  unused
11604         4 => False,   --  Library_Unit (Node4-Sem)
11605         5 => False),  --  Corresponding_Body (Node5-Sem)
11606
11607      N_Task_Body_Stub =>
11608        (1 => True,    --  Defining_Identifier (Node1)
11609         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
11610         3 => False,   --  unused
11611         4 => False,   --  Library_Unit (Node4-Sem)
11612         5 => False),  --  Corresponding_Body (Node5-Sem)
11613
11614      N_Protected_Body_Stub =>
11615        (1 => True,    --  Defining_Identifier (Node1)
11616         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
11617         3 => False,   --  unused
11618         4 => False,   --  Library_Unit (Node4-Sem)
11619         5 => False),  --  Corresponding_Body (Node5-Sem)
11620
11621      N_Subunit =>
11622        (1 => True,    --  Proper_Body (Node1)
11623         2 => True,    --  Name (Node2)
11624         3 => False,   --  Corresponding_Stub (Node3-Sem)
11625         4 => False,   --  unused
11626         5 => False),  --  unused
11627
11628      N_Exception_Declaration =>
11629        (1 => True,    --  Defining_Identifier (Node1)
11630         2 => False,   --  unused
11631         3 => False,   --  Expression (Node3-Sem)
11632         4 => False,   --  unused
11633         5 => False),  --  unused
11634
11635      N_Handled_Sequence_Of_Statements =>
11636        (1 => True,    --  At_End_Proc (Node1)
11637         2 => False,   --  First_Real_Statement (Node2-Sem)
11638         3 => True,    --  Statements (List3)
11639         4 => True,    --  End_Label (Node4)
11640         5 => True),   --  Exception_Handlers (List5)
11641
11642      N_Exception_Handler =>
11643        (1 => False,   --  Local_Raise_Statements (Elist1)
11644         2 => True,    --  Choice_Parameter (Node2)
11645         3 => True,    --  Statements (List3)
11646         4 => True,    --  Exception_Choices (List4)
11647         5 => False),  --  Exception_Label (Node5)
11648
11649      N_Raise_Statement =>
11650        (1 => False,   --  unused
11651         2 => True,    --  Name (Node2)
11652         3 => True,    --  Expression (Node3)
11653         4 => False,   --  unused
11654         5 => False),  --  unused
11655
11656      N_Raise_Expression =>
11657        (1 => False,   --  unused
11658         2 => True,    --  Name (Node2)
11659         3 => True,    --  Expression (Node3)
11660         4 => False,   --  unused
11661         5 => False),  --  Etype (Node5-Sem)
11662
11663      N_Generic_Subprogram_Declaration =>
11664        (1 => True,    --  Specification (Node1)
11665         2 => True,    --  Generic_Formal_Declarations (List2)
11666         3 => False,   --  unused
11667         4 => False,   --  Parent_Spec (Node4-Sem)
11668         5 => False),  --  Corresponding_Body (Node5-Sem)
11669
11670      N_Generic_Package_Declaration =>
11671        (1 => True,    --  Specification (Node1)
11672         2 => True,    --  Generic_Formal_Declarations (List2)
11673         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11674         4 => False,   --  Parent_Spec (Node4-Sem)
11675         5 => False),  --  Corresponding_Body (Node5-Sem)
11676
11677      N_Package_Instantiation =>
11678        (1 => True,    --  Defining_Unit_Name (Node1)
11679         2 => True,    --  Name (Node2)
11680         3 => True,    --  Generic_Associations (List3)
11681         4 => False,   --  Parent_Spec (Node4-Sem)
11682         5 => False),  --  Instance_Spec (Node5-Sem)
11683
11684      N_Procedure_Instantiation =>
11685        (1 => True,    --  Defining_Unit_Name (Node1)
11686         2 => True,    --  Name (Node2)
11687         3 => True,    --  Generic_Associations (List3)
11688         4 => False,   --  Parent_Spec (Node4-Sem)
11689         5 => False),  --  Instance_Spec (Node5-Sem)
11690
11691      N_Function_Instantiation =>
11692        (1 => True,    --  Defining_Unit_Name (Node1)
11693         2 => True,    --  Name (Node2)
11694         3 => True,    --  Generic_Associations (List3)
11695         4 => False,   --  Parent_Spec (Node4-Sem)
11696         5 => False),  --  Instance_Spec (Node5-Sem)
11697
11698      N_Generic_Association =>
11699        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
11700         2 => True,    --  Selector_Name (Node2)
11701         3 => False,   --  unused
11702         4 => False,   --  unused
11703         5 => False),  --  unused
11704
11705      N_Formal_Object_Declaration =>
11706        (1 => True,    --  Defining_Identifier (Node1)
11707         2 => False,   --  unused
11708         3 => True,    --  Access_Definition (Node3)
11709         4 => True,    --  Subtype_Mark (Node4)
11710         5 => True),   --  Default_Expression (Node5)
11711
11712      N_Formal_Type_Declaration =>
11713        (1 => True,    --  Defining_Identifier (Node1)
11714         2 => False,   --  unused
11715         3 => True,    --  Formal_Type_Definition (Node3)
11716         4 => True,    --  Discriminant_Specifications (List4)
11717         5 => False),  --  unused
11718
11719      N_Formal_Private_Type_Definition =>
11720        (1 => False,   --  unused
11721         2 => False,   --  unused
11722         3 => False,   --  unused
11723         4 => False,   --  unused
11724         5 => False),  --  unused
11725
11726      N_Formal_Incomplete_Type_Definition =>
11727        (1 => False,   --  unused
11728         2 => False,   --  unused
11729         3 => False,   --  unused
11730         4 => False,   --  unused
11731         5 => False),  --  unused
11732
11733      N_Formal_Derived_Type_Definition =>
11734        (1 => False,   --  unused
11735         2 => True,    --  Interface_List (List2)
11736         3 => False,   --  unused
11737         4 => True,    --  Subtype_Mark (Node4)
11738         5 => False),  --  unused
11739
11740      N_Formal_Discrete_Type_Definition =>
11741        (1 => False,   --  unused
11742         2 => False,   --  unused
11743         3 => False,   --  unused
11744         4 => False,   --  unused
11745         5 => False),  --  unused
11746
11747      N_Formal_Signed_Integer_Type_Definition =>
11748        (1 => False,   --  unused
11749         2 => False,   --  unused
11750         3 => False,   --  unused
11751         4 => False,   --  unused
11752         5 => False),  --  unused
11753
11754      N_Formal_Modular_Type_Definition =>
11755        (1 => False,   --  unused
11756         2 => False,   --  unused
11757         3 => False,   --  unused
11758         4 => False,   --  unused
11759         5 => False),  --  unused
11760
11761      N_Formal_Floating_Point_Definition =>
11762        (1 => False,   --  unused
11763         2 => False,   --  unused
11764         3 => False,   --  unused
11765         4 => False,   --  unused
11766         5 => False),  --  unused
11767
11768      N_Formal_Ordinary_Fixed_Point_Definition =>
11769        (1 => False,   --  unused
11770         2 => False,   --  unused
11771         3 => False,   --  unused
11772         4 => False,   --  unused
11773         5 => False),  --  unused
11774
11775      N_Formal_Decimal_Fixed_Point_Definition =>
11776        (1 => False,   --  unused
11777         2 => False,   --  unused
11778         3 => False,   --  unused
11779         4 => False,   --  unused
11780         5 => False),  --  unused
11781
11782      N_Formal_Concrete_Subprogram_Declaration =>
11783        (1 => True,    --  Specification (Node1)
11784         2 => True,    --  Default_Name (Node2)
11785         3 => False,   --  unused
11786         4 => False,   --  unused
11787         5 => False),  --  unused
11788
11789      N_Formal_Abstract_Subprogram_Declaration =>
11790        (1 => True,    --  Specification (Node1)
11791         2 => True,    --  Default_Name (Node2)
11792         3 => False,   --  unused
11793         4 => False,   --  unused
11794         5 => False),  --  unused
11795
11796      N_Formal_Package_Declaration =>
11797        (1 => True,    --  Defining_Identifier (Node1)
11798         2 => True,    --  Name (Node2)
11799         3 => True,    --  Generic_Associations (List3)
11800         4 => False,   --  unused
11801         5 => False),  --  Instance_Spec (Node5-Sem)
11802
11803      N_Attribute_Definition_Clause =>
11804        (1 => True,    --  Chars (Name1)
11805         2 => True,    --  Name (Node2)
11806         3 => True,    --  Expression (Node3)
11807         4 => False,   --  unused
11808         5 => False),  --  Next_Rep_Item (Node5-Sem)
11809
11810      N_Aspect_Specification =>
11811        (1 => True,    --  Identifier (Node1)
11812         2 => False,   --  Aspect_Rep_Item (Node2-Sem)
11813         3 => True,    --  Expression (Node3)
11814         4 => False,   --  Entity (Node4-Sem)
11815         5 => False),  --  Next_Rep_Item (Node5-Sem)
11816
11817      N_Enumeration_Representation_Clause =>
11818        (1 => True,    --  Identifier (Node1)
11819         2 => False,   --  unused
11820         3 => True,    --  Array_Aggregate (Node3)
11821         4 => False,   --  unused
11822         5 => False),  --  Next_Rep_Item (Node5-Sem)
11823
11824      N_Record_Representation_Clause =>
11825        (1 => True,    --  Identifier (Node1)
11826         2 => True,    --  Mod_Clause (Node2)
11827         3 => True,    --  Component_Clauses (List3)
11828         4 => False,   --  unused
11829         5 => False),  --  Next_Rep_Item (Node5-Sem)
11830
11831      N_Component_Clause =>
11832        (1 => True,    --  Component_Name (Node1)
11833         2 => True,    --  Position (Node2)
11834         3 => True,    --  First_Bit (Node3)
11835         4 => True,    --  Last_Bit (Node4)
11836         5 => False),  --  unused
11837
11838      N_Code_Statement =>
11839        (1 => False,   --  unused
11840         2 => False,   --  unused
11841         3 => True,    --  Expression (Node3)
11842         4 => False,   --  unused
11843         5 => False),  --  unused
11844
11845      N_Op_Rotate_Left =>
11846        (1 => True,    --  Chars (Name1)
11847         2 => True,    --  Left_Opnd (Node2)
11848         3 => True,    --  Right_Opnd (Node3)
11849         4 => False,   --  Entity (Node4-Sem)
11850         5 => False),  --  Etype (Node5-Sem)
11851
11852      N_Op_Rotate_Right =>
11853        (1 => True,    --  Chars (Name1)
11854         2 => True,    --  Left_Opnd (Node2)
11855         3 => True,    --  Right_Opnd (Node3)
11856         4 => False,   --  Entity (Node4-Sem)
11857         5 => False),  --  Etype (Node5-Sem)
11858
11859      N_Op_Shift_Left =>
11860        (1 => True,    --  Chars (Name1)
11861         2 => True,    --  Left_Opnd (Node2)
11862         3 => True,    --  Right_Opnd (Node3)
11863         4 => False,   --  Entity (Node4-Sem)
11864         5 => False),  --  Etype (Node5-Sem)
11865
11866      N_Op_Shift_Right_Arithmetic =>
11867        (1 => True,    --  Chars (Name1)
11868         2 => True,    --  Left_Opnd (Node2)
11869         3 => True,    --  Right_Opnd (Node3)
11870         4 => False,   --  Entity (Node4-Sem)
11871         5 => False),  --  Etype (Node5-Sem)
11872
11873      N_Op_Shift_Right =>
11874        (1 => True,    --  Chars (Name1)
11875         2 => True,    --  Left_Opnd (Node2)
11876         3 => True,    --  Right_Opnd (Node3)
11877         4 => False,   --  Entity (Node4-Sem)
11878         5 => False),  --  Etype (Node5-Sem)
11879
11880      N_Delta_Constraint =>
11881        (1 => False,   --  unused
11882         2 => False,   --  unused
11883         3 => True,    --  Delta_Expression (Node3)
11884         4 => True,    --  Range_Constraint (Node4)
11885         5 => False),  --  unused
11886
11887      N_At_Clause =>
11888        (1 => True,    --  Identifier (Node1)
11889         2 => False,   --  unused
11890         3 => True,    --  Expression (Node3)
11891         4 => False,   --  unused
11892         5 => False),  --  unused
11893
11894      N_Mod_Clause =>
11895        (1 => False,   --  unused
11896         2 => False,   --  unused
11897         3 => True,    --  Expression (Node3)
11898         4 => True,    --  Pragmas_Before (List4)
11899         5 => False),  --  unused
11900
11901      N_If_Expression =>
11902        (1 => True,    --  Expressions (List1)
11903         2 => False,   --  Then_Actions (List2-Sem)
11904         3 => False,   --  Else_Actions (List3-Sem)
11905         4 => False,   --  unused
11906         5 => False),  --  Etype (Node5-Sem)
11907
11908      N_Contract =>
11909        (1 => False,   --  Pre_Post_Conditions (Node1)
11910         2 => False,   --  Contract_Test_Cases (Node2)
11911         3 => False,   --  Classifications (Node3)
11912         4 => False,   --  unused
11913         5 => False),  --  unused
11914
11915      N_Expanded_Name =>
11916        (1 => True,    --  Chars (Name1)
11917         2 => True,    --  Selector_Name (Node2)
11918         3 => True,    --  Prefix (Node3)
11919         4 => False,   --  Entity (Node4-Sem)
11920         5 => False),  --  Etype (Node5-Sem)
11921
11922      N_Expression_With_Actions =>
11923        (1 => True,    --  Actions (List1)
11924         2 => False,   --  unused
11925         3 => True,    --  Expression (Node3)
11926         4 => False,   --  unused
11927         5 => False),  --  unused
11928
11929      N_Free_Statement =>
11930        (1 => False,   --  Storage_Pool (Node1-Sem)
11931         2 => False,   --  Procedure_To_Call (Node2-Sem)
11932         3 => True,    --  Expression (Node3)
11933         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
11934         5 => False),  --  unused
11935
11936      N_Freeze_Entity =>
11937        (1 => True,    --  Actions (List1)
11938         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
11939         3 => False,   --  TSS_Elist (Elist3-Sem)
11940         4 => False,   --  Entity (Node4-Sem)
11941         5 => False),  --  First_Subtype_Link (Node5-Sem)
11942
11943      N_Freeze_Generic_Entity =>
11944        (1 => False,   --  unused
11945         2 => False,   --  unused
11946         3 => False,   --  unused
11947         4 => False,   --  Entity (Node4-Sem)
11948         5 => False),  --  unused
11949
11950      N_Implicit_Label_Declaration =>
11951        (1 => True,    --  Defining_Identifier (Node1)
11952         2 => False,   --  Label_Construct (Node2-Sem)
11953         3 => False,   --  unused
11954         4 => False,   --  unused
11955         5 => False),  --  unused
11956
11957      N_Itype_Reference =>
11958        (1 => False,   --  Itype (Node1-Sem)
11959         2 => False,   --  unused
11960         3 => False,   --  unused
11961         4 => False,   --  unused
11962         5 => False),  --  unused
11963
11964      N_Raise_Constraint_Error =>
11965        (1 => True,    --  Condition (Node1)
11966         2 => False,   --  unused
11967         3 => True,    --  Reason (Uint3)
11968         4 => False,   --  unused
11969         5 => False),  --  Etype (Node5-Sem)
11970
11971      N_Raise_Program_Error =>
11972        (1 => True,    --  Condition (Node1)
11973         2 => False,   --  unused
11974         3 => True,    --  Reason (Uint3)
11975         4 => False,   --  unused
11976         5 => False),  --  Etype (Node5-Sem)
11977
11978      N_Raise_Storage_Error =>
11979        (1 => True,    --  Condition (Node1)
11980         2 => False,   --  unused
11981         3 => True,    --  Reason (Uint3)
11982         4 => False,   --  unused
11983         5 => False),  --  Etype (Node5-Sem)
11984
11985      N_Push_Constraint_Error_Label =>
11986        (1 => False,   --  unused
11987         2 => False,   --  unused
11988         3 => False,   --  unused
11989         4 => False,   --  unused
11990         5 => False),  --  unused
11991
11992      N_Push_Program_Error_Label =>
11993        (1 => False,   --  Exception_Label
11994         2 => False,   --  unused
11995         3 => False,   --  unused
11996         4 => False,   --  unused
11997         5 => False),  --  Exception_Label
11998
11999      N_Push_Storage_Error_Label =>
12000        (1 => False,   --  Exception_Label
12001         2 => False,   --  unused
12002         3 => False,   --  unused
12003         4 => False,   --  unused
12004         5 => False),  --  Exception_Label
12005
12006      N_Pop_Constraint_Error_Label =>
12007        (1 => False,   --  unused
12008         2 => False,   --  unused
12009         3 => False,   --  unused
12010         4 => False,   --  unused
12011         5 => False),  --  unused
12012
12013      N_Pop_Program_Error_Label =>
12014        (1 => False,   --  unused
12015         2 => False,   --  unused
12016         3 => False,   --  unused
12017         4 => False,   --  unused
12018         5 => False),  --  unused
12019
12020      N_Pop_Storage_Error_Label =>
12021        (1 => False,   --  unused
12022         2 => False,   --  unused
12023         3 => False,   --  unused
12024         4 => False,   --  unused
12025         5 => False),  --  unused
12026
12027      N_Reference =>
12028        (1 => False,   --  unused
12029         2 => False,   --  unused
12030         3 => True,    --  Prefix (Node3)
12031         4 => False,   --  unused
12032         5 => False),  --  Etype (Node5-Sem)
12033
12034      N_Subprogram_Info =>
12035        (1 => True,    --  Identifier (Node1)
12036         2 => False,   --  unused
12037         3 => False,   --  unused
12038         4 => False,   --  unused
12039         5 => False),  --  Etype (Node5-Sem)
12040
12041      N_Unchecked_Expression =>
12042        (1 => False,   --  unused
12043         2 => False,   --  unused
12044         3 => True,    --  Expression (Node3)
12045         4 => False,   --  unused
12046         5 => False),  --  Etype (Node5-Sem)
12047
12048      N_Unchecked_Type_Conversion =>
12049        (1 => False,   --  unused
12050         2 => False,   --  unused
12051         3 => True,    --  Expression (Node3)
12052         4 => True,    --  Subtype_Mark (Node4)
12053         5 => False),  --  Etype (Node5-Sem)
12054
12055      N_Validate_Unchecked_Conversion =>
12056        (1 => False,   --  Source_Type (Node1-Sem)
12057         2 => False,   --  Target_Type (Node2-Sem)
12058         3 => False,   --  unused
12059         4 => False,   --  unused
12060         5 => False),  --  unused
12061
12062    --  Entries for SCIL nodes
12063
12064      N_SCIL_Dispatch_Table_Tag_Init =>
12065        (1 => False,   --  unused
12066         2 => False,   --  unused
12067         3 => False,   --  unused
12068         4 => False,   --  SCIL_Entity (Node4-Sem)
12069         5 => False),  --  unused
12070
12071      N_SCIL_Dispatching_Call =>
12072        (1 => False,   --  unused
12073         2 => False,   --  SCIL_Target_Prim (Node2-Sem)
12074         3 => False,   --  unused
12075         4 => False,   --  SCIL_Entity (Node4-Sem)
12076         5 => False),  --  SCIL_Controlling_Tag (Node5-Sem)
12077
12078      N_SCIL_Membership_Test =>
12079        (1 => False,   --  unused
12080         2 => False,   --  unused
12081         3 => False,   --  unused
12082         4 => False,   --  SCIL_Entity (Node4-Sem)
12083         5 => False),  --  SCIL_Tag_Value (Node5-Sem)
12084
12085    --  Entries for Empty, Error and Unused. Even thought these have a Chars
12086    --  field for debugging purposes, they are not really syntactic fields, so
12087    --  we mark all fields as unused.
12088
12089      N_Empty =>
12090        (1 => False,   --  unused
12091         2 => False,   --  unused
12092         3 => False,   --  unused
12093         4 => False,   --  unused
12094         5 => False),  --  unused
12095
12096      N_Error =>
12097        (1 => False,   --  unused
12098         2 => False,   --  unused
12099         3 => False,   --  unused
12100         4 => False,   --  unused
12101         5 => False),  --  unused
12102
12103      N_Unused_At_Start =>
12104        (1 => False,   --  unused
12105         2 => False,   --  unused
12106         3 => False,   --  unused
12107         4 => False,   --  unused
12108         5 => False),  --  unused
12109
12110      N_Unused_At_End =>
12111        (1 => False,   --  unused
12112         2 => False,   --  unused
12113         3 => False,   --  unused
12114         4 => False,   --  unused
12115         5 => False)); --  unused
12116
12117    --------------------
12118    -- Inline Pragmas --
12119    --------------------
12120
12121    pragma Inline (ABE_Is_Certain);
12122    pragma Inline (Abort_Present);
12123    pragma Inline (Abortable_Part);
12124    pragma Inline (Abstract_Present);
12125    pragma Inline (Accept_Handler_Records);
12126    pragma Inline (Accept_Statement);
12127    pragma Inline (Access_Definition);
12128    pragma Inline (Access_To_Subprogram_Definition);
12129    pragma Inline (Access_Types_To_Process);
12130    pragma Inline (Actions);
12131    pragma Inline (Activation_Chain_Entity);
12132    pragma Inline (Acts_As_Spec);
12133    pragma Inline (Actual_Designated_Subtype);
12134    pragma Inline (Address_Warning_Posted);
12135    pragma Inline (Aggregate_Bounds);
12136    pragma Inline (Aliased_Present);
12137    pragma Inline (All_Others);
12138    pragma Inline (All_Present);
12139    pragma Inline (Alternatives);
12140    pragma Inline (Ancestor_Part);
12141    pragma Inline (Atomic_Sync_Required);
12142    pragma Inline (Array_Aggregate);
12143    pragma Inline (Aspect_Rep_Item);
12144    pragma Inline (Assignment_OK);
12145    pragma Inline (Associated_Node);
12146    pragma Inline (At_End_Proc);
12147    pragma Inline (Attribute_Name);
12148    pragma Inline (Aux_Decls_Node);
12149    pragma Inline (Backwards_OK);
12150    pragma Inline (Bad_Is_Detected);
12151    pragma Inline (Body_To_Inline);
12152    pragma Inline (Body_Required);
12153    pragma Inline (By_Ref);
12154    pragma Inline (Box_Present);
12155    pragma Inline (Char_Literal_Value);
12156    pragma Inline (Chars);
12157    pragma Inline (Check_Address_Alignment);
12158    pragma Inline (Choice_Parameter);
12159    pragma Inline (Choices);
12160    pragma Inline (Class_Present);
12161    pragma Inline (Classifications);
12162    pragma Inline (Comes_From_Extended_Return_Statement);
12163    pragma Inline (Compile_Time_Known_Aggregate);
12164    pragma Inline (Component_Associations);
12165    pragma Inline (Component_Clauses);
12166    pragma Inline (Component_Definition);
12167    pragma Inline (Component_Items);
12168    pragma Inline (Component_List);
12169    pragma Inline (Component_Name);
12170    pragma Inline (Componentwise_Assignment);
12171    pragma Inline (Condition);
12172    pragma Inline (Condition_Actions);
12173    pragma Inline (Config_Pragmas);
12174    pragma Inline (Constant_Present);
12175    pragma Inline (Constraint);
12176    pragma Inline (Constraints);
12177    pragma Inline (Context_Installed);
12178    pragma Inline (Context_Items);
12179    pragma Inline (Context_Pending);
12180    pragma Inline (Contract_Test_Cases);
12181    pragma Inline (Controlling_Argument);
12182    pragma Inline (Convert_To_Return_False);
12183    pragma Inline (Conversion_OK);
12184    pragma Inline (Corresponding_Aspect);
12185    pragma Inline (Corresponding_Body);
12186    pragma Inline (Corresponding_Formal_Spec);
12187    pragma Inline (Corresponding_Generic_Association);
12188    pragma Inline (Corresponding_Integer_Value);
12189    pragma Inline (Corresponding_Spec);
12190    pragma Inline (Corresponding_Spec_Of_Stub);
12191    pragma Inline (Corresponding_Stub);
12192    pragma Inline (Dcheck_Function);
12193    pragma Inline (Declarations);
12194    pragma Inline (Default_Expression);
12195    pragma Inline (Default_Storage_Pool);
12196    pragma Inline (Default_Name);
12197    pragma Inline (Defining_Identifier);
12198    pragma Inline (Defining_Unit_Name);
12199    pragma Inline (Delay_Alternative);
12200    pragma Inline (Delay_Statement);
12201    pragma Inline (Delta_Expression);
12202    pragma Inline (Digits_Expression);
12203    pragma Inline (Discr_Check_Funcs_Built);
12204    pragma Inline (Discrete_Choices);
12205    pragma Inline (Discrete_Range);
12206    pragma Inline (Discrete_Subtype_Definition);
12207    pragma Inline (Discrete_Subtype_Definitions);
12208    pragma Inline (Discriminant_Specifications);
12209    pragma Inline (Discriminant_Type);
12210    pragma Inline (Do_Accessibility_Check);
12211    pragma Inline (Do_Discriminant_Check);
12212    pragma Inline (Do_Length_Check);
12213    pragma Inline (Do_Division_Check);
12214    pragma Inline (Do_Overflow_Check);
12215    pragma Inline (Do_Range_Check);
12216    pragma Inline (Do_Storage_Check);
12217    pragma Inline (Do_Tag_Check);
12218    pragma Inline (Elaborate_Present);
12219    pragma Inline (Elaborate_All_Desirable);
12220    pragma Inline (Elaborate_All_Present);
12221    pragma Inline (Elaborate_Desirable);
12222    pragma Inline (Elaboration_Boolean);
12223    pragma Inline (Else_Actions);
12224    pragma Inline (Else_Statements);
12225    pragma Inline (Elsif_Parts);
12226    pragma Inline (Enclosing_Variant);
12227    pragma Inline (End_Label);
12228    pragma Inline (End_Span);
12229    pragma Inline (Entity);
12230    pragma Inline (Entity_Or_Associated_Node);
12231    pragma Inline (Entry_Body_Formal_Part);
12232    pragma Inline (Entry_Call_Alternative);
12233    pragma Inline (Entry_Call_Statement);
12234    pragma Inline (Entry_Direct_Name);
12235    pragma Inline (Entry_Index);
12236    pragma Inline (Entry_Index_Specification);
12237    pragma Inline (Etype);
12238    pragma Inline (Exception_Choices);
12239    pragma Inline (Exception_Handlers);
12240    pragma Inline (Exception_Junk);
12241    pragma Inline (Exception_Label);
12242    pragma Inline (Expansion_Delayed);
12243    pragma Inline (Explicit_Actual_Parameter);
12244    pragma Inline (Explicit_Generic_Actual_Parameter);
12245    pragma Inline (Expression);
12246    pragma Inline (Expressions);
12247    pragma Inline (First_Bit);
12248    pragma Inline (First_Inlined_Subprogram);
12249    pragma Inline (First_Name);
12250    pragma Inline (First_Named_Actual);
12251    pragma Inline (First_Real_Statement);
12252    pragma Inline (First_Subtype_Link);
12253    pragma Inline (Float_Truncate);
12254    pragma Inline (Formal_Type_Definition);
12255    pragma Inline (Forwards_OK);
12256    pragma Inline (From_Aspect_Specification);
12257    pragma Inline (From_At_End);
12258    pragma Inline (From_At_Mod);
12259    pragma Inline (From_Default);
12260    pragma Inline (Generic_Associations);
12261    pragma Inline (Generic_Formal_Declarations);
12262    pragma Inline (Generic_Parent);
12263    pragma Inline (Generic_Parent_Type);
12264    pragma Inline (Handled_Statement_Sequence);
12265    pragma Inline (Handler_List_Entry);
12266    pragma Inline (Has_Created_Identifier);
12267    pragma Inline (Has_Dereference_Action);
12268    pragma Inline (Has_Dynamic_Length_Check);
12269    pragma Inline (Has_Dynamic_Range_Check);
12270    pragma Inline (Has_Init_Expression);
12271    pragma Inline (Has_Local_Raise);
12272    pragma Inline (Has_Self_Reference);
12273    pragma Inline (Has_SP_Choice);
12274    pragma Inline (Has_No_Elaboration_Code);
12275    pragma Inline (Has_Pragma_Suppress_All);
12276    pragma Inline (Has_Private_View);
12277    pragma Inline (Has_Relative_Deadline_Pragma);
12278    pragma Inline (Has_Storage_Size_Pragma);
12279    pragma Inline (Has_Wide_Character);
12280    pragma Inline (Has_Wide_Wide_Character);
12281    pragma Inline (Header_Size_Added);
12282    pragma Inline (Hidden_By_Use_Clause);
12283    pragma Inline (High_Bound);
12284    pragma Inline (Identifier);
12285    pragma Inline (Implicit_With);
12286    pragma Inline (Implicit_With_From_Instantiation);
12287    pragma Inline (Interface_List);
12288    pragma Inline (Interface_Present);
12289    pragma Inline (Includes_Infinities);
12290    pragma Inline (Import_Interface_Present);
12291    pragma Inline (In_Assertion_Expression);
12292    pragma Inline (In_Present);
12293    pragma Inline (Inherited_Discriminant);
12294    pragma Inline (Instance_Spec);
12295    pragma Inline (Intval);
12296    pragma Inline (Iterator_Specification);
12297    pragma Inline (Is_Accessibility_Actual);
12298    pragma Inline (Is_Asynchronous_Call_Block);
12299    pragma Inline (Is_Boolean_Aspect);
12300    pragma Inline (Is_Checked);
12301    pragma Inline (Is_Component_Left_Opnd);
12302    pragma Inline (Is_Component_Right_Opnd);
12303    pragma Inline (Is_Controlling_Actual);
12304    pragma Inline (Is_Delayed_Aspect);
12305    pragma Inline (Is_Disabled);
12306    pragma Inline (Is_Dynamic_Coextension);
12307    pragma Inline (Is_Elsif);
12308    pragma Inline (Is_Entry_Barrier_Function);
12309    pragma Inline (Is_Expanded_Build_In_Place_Call);
12310    pragma Inline (Is_Finalization_Wrapper);
12311    pragma Inline (Is_Folded_In_Parser);
12312    pragma Inline (Is_Ignored);
12313    pragma Inline (Is_In_Discriminant_Check);
12314    pragma Inline (Is_Machine_Number);
12315    pragma Inline (Is_Null_Loop);
12316    pragma Inline (Is_Overloaded);
12317    pragma Inline (Is_Power_Of_2_For_Shift);
12318    pragma Inline (Is_Prefixed_Call);
12319    pragma Inline (Is_Protected_Subprogram_Body);
12320    pragma Inline (Is_Static_Coextension);
12321    pragma Inline (Is_Static_Expression);
12322    pragma Inline (Is_Subprogram_Descriptor);
12323    pragma Inline (Is_Task_Allocation_Block);
12324    pragma Inline (Is_Task_Master);
12325    pragma Inline (Iteration_Scheme);
12326    pragma Inline (Itype);
12327    pragma Inline (Kill_Range_Check);
12328    pragma Inline (Last_Bit);
12329    pragma Inline (Last_Name);
12330    pragma Inline (Library_Unit);
12331    pragma Inline (Label_Construct);
12332    pragma Inline (Left_Opnd);
12333    pragma Inline (Limited_View_Installed);
12334    pragma Inline (Limited_Present);
12335    pragma Inline (Literals);
12336    pragma Inline (Local_Raise_Not_OK);
12337    pragma Inline (Local_Raise_Statements);
12338    pragma Inline (Loop_Actions);
12339    pragma Inline (Loop_Parameter_Specification);
12340    pragma Inline (Low_Bound);
12341    pragma Inline (Mod_Clause);
12342    pragma Inline (More_Ids);
12343    pragma Inline (Must_Be_Byte_Aligned);
12344    pragma Inline (Must_Not_Freeze);
12345    pragma Inline (Must_Not_Override);
12346    pragma Inline (Must_Override);
12347    pragma Inline (Name);
12348    pragma Inline (Names);
12349    pragma Inline (Next_Entity);
12350    pragma Inline (Next_Exit_Statement);
12351    pragma Inline (Next_Implicit_With);
12352    pragma Inline (Next_Named_Actual);
12353    pragma Inline (Next_Pragma);
12354    pragma Inline (Next_Rep_Item);
12355    pragma Inline (Next_Use_Clause);
12356    pragma Inline (No_Ctrl_Actions);
12357    pragma Inline (No_Elaboration_Check);
12358    pragma Inline (No_Entities_Ref_In_Spec);
12359    pragma Inline (No_Initialization);
12360    pragma Inline (No_Minimize_Eliminate);
12361    pragma Inline (No_Truncation);
12362    pragma Inline (Null_Present);
12363    pragma Inline (Null_Exclusion_Present);
12364    pragma Inline (Null_Exclusion_In_Return_Present);
12365    pragma Inline (Null_Record_Present);
12366    pragma Inline (Object_Definition);
12367    pragma Inline (Of_Present);
12368    pragma Inline (Original_Discriminant);
12369    pragma Inline (Original_Entity);
12370    pragma Inline (Others_Discrete_Choices);
12371    pragma Inline (Out_Present);
12372    pragma Inline (Parameter_Associations);
12373    pragma Inline (Parameter_Specifications);
12374    pragma Inline (Parameter_List_Truncated);
12375    pragma Inline (Parameter_Type);
12376    pragma Inline (Parent_Spec);
12377    pragma Inline (Position);
12378    pragma Inline (Pragma_Argument_Associations);
12379    pragma Inline (Pragma_Identifier);
12380    pragma Inline (Pragmas_After);
12381    pragma Inline (Pragmas_Before);
12382    pragma Inline (Pre_Post_Conditions);
12383    pragma Inline (Prefix);
12384    pragma Inline (Premature_Use);
12385    pragma Inline (Present_Expr);
12386    pragma Inline (Prev_Ids);
12387    pragma Inline (Print_In_Hex);
12388    pragma Inline (Private_Declarations);
12389    pragma Inline (Private_Present);
12390    pragma Inline (Procedure_To_Call);
12391    pragma Inline (Proper_Body);
12392    pragma Inline (Protected_Definition);
12393    pragma Inline (Protected_Present);
12394    pragma Inline (Raises_Constraint_Error);
12395    pragma Inline (Range_Constraint);
12396    pragma Inline (Range_Expression);
12397    pragma Inline (Real_Range_Specification);
12398    pragma Inline (Realval);
12399    pragma Inline (Reason);
12400    pragma Inline (Record_Extension_Part);
12401    pragma Inline (Redundant_Use);
12402    pragma Inline (Renaming_Exception);
12403    pragma Inline (Result_Definition);
12404    pragma Inline (Return_Object_Declarations);
12405    pragma Inline (Return_Statement_Entity);
12406    pragma Inline (Reverse_Present);
12407    pragma Inline (Right_Opnd);
12408    pragma Inline (Rounded_Result);
12409    pragma Inline (SCIL_Controlling_Tag);
12410    pragma Inline (SCIL_Entity);
12411    pragma Inline (SCIL_Tag_Value);
12412    pragma Inline (SCIL_Target_Prim);
12413    pragma Inline (Scope);
12414    pragma Inline (Select_Alternatives);
12415    pragma Inline (Selector_Name);
12416    pragma Inline (Selector_Names);
12417    pragma Inline (Shift_Count_OK);
12418    pragma Inline (Source_Type);
12419    pragma Inline (Specification);
12420    pragma Inline (Split_PPC);
12421    pragma Inline (Statements);
12422    pragma Inline (Storage_Pool);
12423    pragma Inline (Subpool_Handle_Name);
12424    pragma Inline (Strval);
12425    pragma Inline (Subtype_Indication);
12426    pragma Inline (Subtype_Mark);
12427    pragma Inline (Subtype_Marks);
12428    pragma Inline (Suppress_Assignment_Checks);
12429    pragma Inline (Suppress_Loop_Warnings);
12430    pragma Inline (Synchronized_Present);
12431    pragma Inline (Tagged_Present);
12432    pragma Inline (Target_Type);
12433    pragma Inline (Task_Definition);
12434    pragma Inline (Task_Present);
12435    pragma Inline (Then_Actions);
12436    pragma Inline (Then_Statements);
12437    pragma Inline (Triggering_Alternative);
12438    pragma Inline (Triggering_Statement);
12439    pragma Inline (Treat_Fixed_As_Integer);
12440    pragma Inline (TSS_Elist);
12441    pragma Inline (Type_Definition);
12442    pragma Inline (Unit);
12443    pragma Inline (Unknown_Discriminants_Present);
12444    pragma Inline (Unreferenced_In_Spec);
12445    pragma Inline (Variant_Part);
12446    pragma Inline (Variants);
12447    pragma Inline (Visible_Declarations);
12448    pragma Inline (Used_Operations);
12449    pragma Inline (Was_Originally_Stub);
12450    pragma Inline (Withed_Body);
12451
12452    pragma Inline (Set_ABE_Is_Certain);
12453    pragma Inline (Set_Abort_Present);
12454    pragma Inline (Set_Abortable_Part);
12455    pragma Inline (Set_Abstract_Present);
12456    pragma Inline (Set_Accept_Handler_Records);
12457    pragma Inline (Set_Accept_Statement);
12458    pragma Inline (Set_Access_Definition);
12459    pragma Inline (Set_Access_To_Subprogram_Definition);
12460    pragma Inline (Set_Access_Types_To_Process);
12461    pragma Inline (Set_Actions);
12462    pragma Inline (Set_Activation_Chain_Entity);
12463    pragma Inline (Set_Acts_As_Spec);
12464    pragma Inline (Set_Actual_Designated_Subtype);
12465    pragma Inline (Set_Address_Warning_Posted);
12466    pragma Inline (Set_Aggregate_Bounds);
12467    pragma Inline (Set_Aliased_Present);
12468    pragma Inline (Set_All_Others);
12469    pragma Inline (Set_All_Present);
12470    pragma Inline (Set_Alternatives);
12471    pragma Inline (Set_Ancestor_Part);
12472    pragma Inline (Set_Array_Aggregate);
12473    pragma Inline (Set_Aspect_Rep_Item);
12474    pragma Inline (Set_Assignment_OK);
12475    pragma Inline (Set_Associated_Node);
12476    pragma Inline (Set_At_End_Proc);
12477    pragma Inline (Set_Atomic_Sync_Required);
12478    pragma Inline (Set_Attribute_Name);
12479    pragma Inline (Set_Aux_Decls_Node);
12480    pragma Inline (Set_Backwards_OK);
12481    pragma Inline (Set_Bad_Is_Detected);
12482    pragma Inline (Set_Body_Required);
12483    pragma Inline (Set_Body_To_Inline);
12484    pragma Inline (Set_Box_Present);
12485    pragma Inline (Set_By_Ref);
12486    pragma Inline (Set_Char_Literal_Value);
12487    pragma Inline (Set_Chars);
12488    pragma Inline (Set_Check_Address_Alignment);
12489    pragma Inline (Set_Choice_Parameter);
12490    pragma Inline (Set_Choices);
12491    pragma Inline (Set_Class_Present);
12492    pragma Inline (Set_Classifications);
12493    pragma Inline (Set_Comes_From_Extended_Return_Statement);
12494    pragma Inline (Set_Compile_Time_Known_Aggregate);
12495    pragma Inline (Set_Component_Associations);
12496    pragma Inline (Set_Component_Clauses);
12497    pragma Inline (Set_Component_Definition);
12498    pragma Inline (Set_Component_Items);
12499    pragma Inline (Set_Component_List);
12500    pragma Inline (Set_Component_Name);
12501    pragma Inline (Set_Componentwise_Assignment);
12502    pragma Inline (Set_Condition);
12503    pragma Inline (Set_Condition_Actions);
12504    pragma Inline (Set_Config_Pragmas);
12505    pragma Inline (Set_Constant_Present);
12506    pragma Inline (Set_Constraint);
12507    pragma Inline (Set_Constraints);
12508    pragma Inline (Set_Context_Installed);
12509    pragma Inline (Set_Context_Items);
12510    pragma Inline (Set_Context_Pending);
12511    pragma Inline (Set_Contract_Test_Cases);
12512    pragma Inline (Set_Controlling_Argument);
12513    pragma Inline (Set_Conversion_OK);
12514    pragma Inline (Set_Convert_To_Return_False);
12515    pragma Inline (Set_Corresponding_Aspect);
12516    pragma Inline (Set_Corresponding_Body);
12517    pragma Inline (Set_Corresponding_Formal_Spec);
12518    pragma Inline (Set_Corresponding_Generic_Association);
12519    pragma Inline (Set_Corresponding_Integer_Value);
12520    pragma Inline (Set_Corresponding_Spec);
12521    pragma Inline (Set_Corresponding_Spec_Of_Stub);
12522    pragma Inline (Set_Corresponding_Stub);
12523    pragma Inline (Set_Dcheck_Function);
12524    pragma Inline (Set_Declarations);
12525    pragma Inline (Set_Default_Expression);
12526    pragma Inline (Set_Default_Name);
12527    pragma Inline (Set_Default_Storage_Pool);
12528    pragma Inline (Set_Defining_Identifier);
12529    pragma Inline (Set_Defining_Unit_Name);
12530    pragma Inline (Set_Delay_Alternative);
12531    pragma Inline (Set_Delay_Statement);
12532    pragma Inline (Set_Delta_Expression);
12533    pragma Inline (Set_Digits_Expression);
12534    pragma Inline (Set_Discr_Check_Funcs_Built);
12535    pragma Inline (Set_Discrete_Choices);
12536    pragma Inline (Set_Discrete_Range);
12537    pragma Inline (Set_Discrete_Subtype_Definition);
12538    pragma Inline (Set_Discrete_Subtype_Definitions);
12539    pragma Inline (Set_Discriminant_Specifications);
12540    pragma Inline (Set_Discriminant_Type);
12541    pragma Inline (Set_Do_Accessibility_Check);
12542    pragma Inline (Set_Do_Discriminant_Check);
12543    pragma Inline (Set_Do_Division_Check);
12544    pragma Inline (Set_Do_Length_Check);
12545    pragma Inline (Set_Do_Overflow_Check);
12546    pragma Inline (Set_Do_Range_Check);
12547    pragma Inline (Set_Do_Storage_Check);
12548    pragma Inline (Set_Do_Tag_Check);
12549    pragma Inline (Set_Elaborate_All_Desirable);
12550    pragma Inline (Set_Elaborate_All_Present);
12551    pragma Inline (Set_Elaborate_Desirable);
12552    pragma Inline (Set_Elaborate_Present);
12553    pragma Inline (Set_Elaboration_Boolean);
12554    pragma Inline (Set_Else_Actions);
12555    pragma Inline (Set_Else_Statements);
12556    pragma Inline (Set_Elsif_Parts);
12557    pragma Inline (Set_Enclosing_Variant);
12558    pragma Inline (Set_End_Label);
12559    pragma Inline (Set_End_Span);
12560    pragma Inline (Set_Entity);
12561    pragma Inline (Set_Entry_Body_Formal_Part);
12562    pragma Inline (Set_Entry_Call_Alternative);
12563    pragma Inline (Set_Entry_Call_Statement);
12564    pragma Inline (Set_Entry_Direct_Name);
12565    pragma Inline (Set_Entry_Index);
12566    pragma Inline (Set_Entry_Index_Specification);
12567    pragma Inline (Set_Etype);
12568    pragma Inline (Set_Exception_Choices);
12569    pragma Inline (Set_Exception_Handlers);
12570    pragma Inline (Set_Exception_Junk);
12571    pragma Inline (Set_Exception_Label);
12572    pragma Inline (Set_Expansion_Delayed);
12573    pragma Inline (Set_Explicit_Actual_Parameter);
12574    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12575    pragma Inline (Set_Expression);
12576    pragma Inline (Set_Expressions);
12577    pragma Inline (Set_First_Bit);
12578    pragma Inline (Set_First_Inlined_Subprogram);
12579    pragma Inline (Set_First_Name);
12580    pragma Inline (Set_First_Named_Actual);
12581    pragma Inline (Set_First_Real_Statement);
12582    pragma Inline (Set_First_Subtype_Link);
12583    pragma Inline (Set_Float_Truncate);
12584    pragma Inline (Set_Formal_Type_Definition);
12585    pragma Inline (Set_Forwards_OK);
12586    pragma Inline (Set_From_Aspect_Specification);
12587    pragma Inline (Set_From_At_End);
12588    pragma Inline (Set_From_At_Mod);
12589    pragma Inline (Set_From_Default);
12590    pragma Inline (Set_Generic_Associations);
12591    pragma Inline (Set_Generic_Formal_Declarations);
12592    pragma Inline (Set_Generic_Parent);
12593    pragma Inline (Set_Generic_Parent_Type);
12594    pragma Inline (Set_Handled_Statement_Sequence);
12595    pragma Inline (Set_Handler_List_Entry);
12596    pragma Inline (Set_Has_Created_Identifier);
12597    pragma Inline (Set_Has_Dereference_Action);
12598    pragma Inline (Set_Has_Dynamic_Length_Check);
12599    pragma Inline (Set_Has_Dynamic_Range_Check);
12600    pragma Inline (Set_Has_Init_Expression);
12601    pragma Inline (Set_Has_Local_Raise);
12602    pragma Inline (Set_Has_No_Elaboration_Code);
12603    pragma Inline (Set_Has_Pragma_Suppress_All);
12604    pragma Inline (Set_Has_Private_View);
12605    pragma Inline (Set_Has_Relative_Deadline_Pragma);
12606    pragma Inline (Set_Has_Self_Reference);
12607    pragma Inline (Set_Has_SP_Choice);
12608    pragma Inline (Set_Has_Storage_Size_Pragma);
12609    pragma Inline (Set_Has_Wide_Character);
12610    pragma Inline (Set_Has_Wide_Wide_Character);
12611    pragma Inline (Set_Header_Size_Added);
12612    pragma Inline (Set_Hidden_By_Use_Clause);
12613    pragma Inline (Set_High_Bound);
12614    pragma Inline (Set_Identifier);
12615    pragma Inline (Set_Implicit_With);
12616    pragma Inline (Set_Import_Interface_Present);
12617    pragma Inline (Set_In_Assertion_Expression);
12618    pragma Inline (Set_In_Present);
12619    pragma Inline (Set_Includes_Infinities);
12620    pragma Inline (Set_Inherited_Discriminant);
12621    pragma Inline (Set_Instance_Spec);
12622    pragma Inline (Set_Interface_List);
12623    pragma Inline (Set_Interface_Present);
12624    pragma Inline (Set_Intval);
12625    pragma Inline (Set_Is_Accessibility_Actual);
12626    pragma Inline (Set_Is_Asynchronous_Call_Block);
12627    pragma Inline (Set_Is_Boolean_Aspect);
12628    pragma Inline (Set_Is_Checked);
12629    pragma Inline (Set_Is_Component_Left_Opnd);
12630    pragma Inline (Set_Is_Component_Right_Opnd);
12631    pragma Inline (Set_Is_Controlling_Actual);
12632    pragma Inline (Set_Is_Delayed_Aspect);
12633    pragma Inline (Set_Is_Disabled);
12634    pragma Inline (Set_Is_Dynamic_Coextension);
12635    pragma Inline (Set_Is_Elsif);
12636    pragma Inline (Set_Is_Entry_Barrier_Function);
12637    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12638    pragma Inline (Set_Is_Finalization_Wrapper);
12639    pragma Inline (Set_Is_Folded_In_Parser);
12640    pragma Inline (Set_Is_Ignored);
12641    pragma Inline (Set_Is_In_Discriminant_Check);
12642    pragma Inline (Set_Is_Machine_Number);
12643    pragma Inline (Set_Is_Null_Loop);
12644    pragma Inline (Set_Is_Overloaded);
12645    pragma Inline (Set_Is_Power_Of_2_For_Shift);
12646    pragma Inline (Set_Is_Prefixed_Call);
12647    pragma Inline (Set_Is_Protected_Subprogram_Body);
12648    pragma Inline (Set_Is_Static_Coextension);
12649    pragma Inline (Set_Is_Static_Expression);
12650    pragma Inline (Set_Is_Subprogram_Descriptor);
12651    pragma Inline (Set_Is_Task_Allocation_Block);
12652    pragma Inline (Set_Is_Task_Master);
12653    pragma Inline (Set_Iteration_Scheme);
12654    pragma Inline (Set_Iterator_Specification);
12655    pragma Inline (Set_Itype);
12656    pragma Inline (Set_Kill_Range_Check);
12657    pragma Inline (Set_Label_Construct);
12658    pragma Inline (Set_Last_Bit);
12659    pragma Inline (Set_Last_Name);
12660    pragma Inline (Set_Left_Opnd);
12661    pragma Inline (Set_Library_Unit);
12662    pragma Inline (Set_Limited_Present);
12663    pragma Inline (Set_Limited_View_Installed);
12664    pragma Inline (Set_Literals);
12665    pragma Inline (Set_Local_Raise_Not_OK);
12666    pragma Inline (Set_Local_Raise_Statements);
12667    pragma Inline (Set_Loop_Actions);
12668    pragma Inline (Set_Loop_Parameter_Specification);
12669    pragma Inline (Set_Low_Bound);
12670    pragma Inline (Set_Mod_Clause);
12671    pragma Inline (Set_More_Ids);
12672    pragma Inline (Set_Must_Be_Byte_Aligned);
12673    pragma Inline (Set_Must_Not_Freeze);
12674    pragma Inline (Set_Must_Not_Override);
12675    pragma Inline (Set_Must_Override);
12676    pragma Inline (Set_Name);
12677    pragma Inline (Set_Names);
12678    pragma Inline (Set_Next_Entity);
12679    pragma Inline (Set_Next_Exit_Statement);
12680    pragma Inline (Set_Next_Implicit_With);
12681    pragma Inline (Set_Next_Named_Actual);
12682    pragma Inline (Set_Next_Pragma);
12683    pragma Inline (Set_Next_Rep_Item);
12684    pragma Inline (Set_Next_Use_Clause);
12685    pragma Inline (Set_No_Ctrl_Actions);
12686    pragma Inline (Set_No_Elaboration_Check);
12687    pragma Inline (Set_No_Entities_Ref_In_Spec);
12688    pragma Inline (Set_No_Initialization);
12689    pragma Inline (Set_No_Minimize_Eliminate);
12690    pragma Inline (Set_No_Truncation);
12691    pragma Inline (Set_Null_Exclusion_Present);
12692    pragma Inline (Set_Null_Exclusion_In_Return_Present);
12693    pragma Inline (Set_Null_Present);
12694    pragma Inline (Set_Null_Record_Present);
12695    pragma Inline (Set_Object_Definition);
12696    pragma Inline (Set_Of_Present);
12697    pragma Inline (Set_Original_Discriminant);
12698    pragma Inline (Set_Original_Entity);
12699    pragma Inline (Set_Others_Discrete_Choices);
12700    pragma Inline (Set_Out_Present);
12701    pragma Inline (Set_Parameter_Associations);
12702    pragma Inline (Set_Parameter_List_Truncated);
12703    pragma Inline (Set_Parameter_Specifications);
12704    pragma Inline (Set_Parameter_Type);
12705    pragma Inline (Set_Parent_Spec);
12706    pragma Inline (Set_Position);
12707    pragma Inline (Set_Pragma_Argument_Associations);
12708    pragma Inline (Set_Pragma_Identifier);
12709    pragma Inline (Set_Pragmas_After);
12710    pragma Inline (Set_Pragmas_Before);
12711    pragma Inline (Set_Pre_Post_Conditions);
12712    pragma Inline (Set_Prefix);
12713    pragma Inline (Set_Premature_Use);
12714    pragma Inline (Set_Present_Expr);
12715    pragma Inline (Set_Prev_Ids);
12716    pragma Inline (Set_Print_In_Hex);
12717    pragma Inline (Set_Private_Declarations);
12718    pragma Inline (Set_Private_Present);
12719    pragma Inline (Set_Procedure_To_Call);
12720    pragma Inline (Set_Proper_Body);
12721    pragma Inline (Set_Protected_Definition);
12722    pragma Inline (Set_Protected_Present);
12723    pragma Inline (Set_Raises_Constraint_Error);
12724    pragma Inline (Set_Range_Constraint);
12725    pragma Inline (Set_Range_Expression);
12726    pragma Inline (Set_Real_Range_Specification);
12727    pragma Inline (Set_Realval);
12728    pragma Inline (Set_Reason);
12729    pragma Inline (Set_Record_Extension_Part);
12730    pragma Inline (Set_Redundant_Use);
12731    pragma Inline (Set_Renaming_Exception);
12732    pragma Inline (Set_Result_Definition);
12733    pragma Inline (Set_Return_Object_Declarations);
12734    pragma Inline (Set_Reverse_Present);
12735    pragma Inline (Set_Right_Opnd);
12736    pragma Inline (Set_Rounded_Result);
12737    pragma Inline (Set_SCIL_Controlling_Tag);
12738    pragma Inline (Set_SCIL_Entity);
12739    pragma Inline (Set_SCIL_Tag_Value);
12740    pragma Inline (Set_SCIL_Target_Prim);
12741    pragma Inline (Set_Scope);
12742    pragma Inline (Set_Select_Alternatives);
12743    pragma Inline (Set_Selector_Name);
12744    pragma Inline (Set_Selector_Names);
12745    pragma Inline (Set_Shift_Count_OK);
12746    pragma Inline (Set_Source_Type);
12747    pragma Inline (Set_Split_PPC);
12748    pragma Inline (Set_Statements);
12749    pragma Inline (Set_Storage_Pool);
12750    pragma Inline (Set_Strval);
12751    pragma Inline (Set_Subpool_Handle_Name);
12752    pragma Inline (Set_Subtype_Indication);
12753    pragma Inline (Set_Subtype_Mark);
12754    pragma Inline (Set_Subtype_Marks);
12755    pragma Inline (Set_Suppress_Assignment_Checks);
12756    pragma Inline (Set_Suppress_Loop_Warnings);
12757    pragma Inline (Set_Synchronized_Present);
12758    pragma Inline (Set_TSS_Elist);
12759    pragma Inline (Set_Tagged_Present);
12760    pragma Inline (Set_Target_Type);
12761    pragma Inline (Set_Task_Definition);
12762    pragma Inline (Set_Task_Present);
12763    pragma Inline (Set_Then_Actions);
12764    pragma Inline (Set_Then_Statements);
12765    pragma Inline (Set_Treat_Fixed_As_Integer);
12766    pragma Inline (Set_Triggering_Alternative);
12767    pragma Inline (Set_Triggering_Statement);
12768    pragma Inline (Set_Type_Definition);
12769    pragma Inline (Set_Unit);
12770    pragma Inline (Set_Unknown_Discriminants_Present);
12771    pragma Inline (Set_Unreferenced_In_Spec);
12772    pragma Inline (Set_Used_Operations);
12773    pragma Inline (Set_Variant_Part);
12774    pragma Inline (Set_Variants);
12775    pragma Inline (Set_Visible_Declarations);
12776    pragma Inline (Set_Was_Originally_Stub);
12777    pragma Inline (Set_Withed_Body);
12778
12779 end Sinfo;