OSDN Git Service

2009-12-14 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / sinfo.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                                S I N F O                                 --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
17 --                                                                          --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception,   --
20 -- version 3.1, as published by the Free Software Foundation.               --
21 --                                                                          --
22 -- You should have received a copy of the GNU General Public License and    --
23 -- a copy of the GCC Runtime Library Exception along with this program;     --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
25 -- <http://www.gnu.org/licenses/>.                                          --
26 --                                                                          --
27 -- GNAT was originally developed  by the GNAT team at  New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
29 --                                                                          --
30 ------------------------------------------------------------------------------
31
32 --  This package defines the structure of the abstract syntax tree. The Tree
33 --  package provides a basic tree structure. Sinfo describes how this structure
34 --  is used to represent the syntax of an Ada program.
35
36 --  The grammar in the RM is followed very closely in the tree design, and is
37 --  repeated as part of this source file.
38
39 --  The tree contains not only the full syntactic representation of the
40 --  program, but also the results of semantic analysis. In particular, the
41 --  nodes for defining identifiers, defining character literals and defining
42 --  operator symbols, collectively referred to as entities, represent what
43 --  would normally be regarded as the symbol table information. In addition a
44 --  number of the tree nodes contain semantic information.
45
46 --  WARNING: Several files are automatically generated from this package.
47 --  See below for details.
48
49 with Namet;  use Namet;
50 with Types;  use Types;
51 with Uintp;  use Uintp;
52 with Urealp; use Urealp;
53
54 package Sinfo is
55
56    ---------------------------------
57    -- Making Changes to This File --
58    ---------------------------------
59
60    --  If changes are made to this file, a number of related steps must be
61    --  carried out to ensure consistency. First, if a field access function is
62    --  added, it appears in seven places:
63
64    --    The documentation associated with the node
65    --    The spec of the access function in sinfo.ads
66    --    The body of the access function in sinfo.adb
67    --    The pragma Inline at the end of sinfo.ads for the access function
68    --    The spec of the set procedure in sinfo.ads
69    --    The body of the set procedure in sinfo.adb
70    --    The pragma Inline at the end of sinfo.ads for the set procedure
71
72    --  The field chosen must be consistent in all places, and, for a node that
73    --  is a subexpression, must not overlap any of the standard expression
74    --  fields.
75
76    --  In addition, if any of the standard expression fields is changed, then
77    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
78    --  must be updated appropriately, since it special cases expression fields.
79
80    --  If a new tree node is added, then the following changes are made
81
82    --    Add it to the documentation in the appropriate place
83    --    Add its fields to this documentation section
84    --    Define it in the appropriate classification in Node_Kind
85    --    In the body (sinfo), add entries to the access functions for all
86    --     its fields (except standard expression fields) to include the new
87    --     node in the checks.
88    --    Add an appropriate section to the case statement in sprint.adb
89    --    Add an appropriate section to the case statement in sem.adb
90    --    Add an appropriate section to the case statement in exp_util.adb
91    --     (Insert_Actions procedure)
92    --    For a subexpression, add an appropriate section to the case
93    --     statement in sem_eval.adb
94    --    For a subexpression, add an appropriate section to the case
95    --     statement in sem_res.adb
96
97    --  Finally, four utility programs must be run:
98
99    --    Run CSinfo to check that you have made the changes consistently. It
100    --     checks most of the rules given above, with clear error messages. This
101    --     utility reads sinfo.ads and sinfo.adb and generates a report to
102    --     standard output.
103
104    --    Run XSinfo to create sinfo.h, the corresponding C header. This
105    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
106    --     not need to read sinfo.adb, since the contents of the body are
107    --     algorithmically determinable from the spec.
108
109    --    Run XTreeprs to create treeprs.ads, an updated version of the module
110    --     that is used to drive the tree print routine. This utility reads (but
111    --     does not modify) treeprs.adt, the template that provides the basic
112    --     structure of the file, and then fills in the data from the comments
113    --     in sinfo.ads.
114
115    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
116    --     spec of the Nmake package which contains functions for constructing
117    --     nodes.
118
119    --  All of the above steps except CSinfo are done automatically by the
120    --  build scripts when you do a full bootstrap.
121
122    --  Note: sometime we could write a utility that actually generated the body
123    --  of sinfo from the spec instead of simply checking it, since, as noted
124    --  above, the contents of the body can be determined from the spec.
125
126    --------------------------------
127    -- Implicit Nodes in the Tree --
128    --------------------------------
129
130    --  Generally the structure of the tree very closely follows the grammar as
131    --  defined in the RM. However, certain nodes are omitted to save space and
132    --  simplify semantic processing. Two general classes of such omitted nodes
133    --  are as follows:
134
135    --   If the only possibilities for a non-terminal are one or more other
136    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
137    --   corresponding node is omitted from the tree, and the target construct
138    --   appears directly. For example, a real type definition is either
139    --   floating point definition or a fixed point definition. No explicit node
140    --   appears for real type definition. Instead either the floating point
141    --   definition or fixed point definition appears directly.
142
143    --   If a non-terminal corresponds to a list of some other non-terminal
144    --   (possibly with separating punctuation), then usually it is omitted from
145    --   the tree, and a list of components appears instead. For example,
146    --   sequence of statements does not appear explicitly in the tree. Instead
147    --   a list of statements appears directly.
148
149    --  Some additional cases of omitted nodes occur and are documented
150    --  individually. In particular, many nodes are omitted in the tree
151    --  generated for an expression.
152
153    -------------------------------------------
154    -- Handling of Defining Identifier Lists --
155    -------------------------------------------
156
157    --  In several declarative forms in the syntax, lists of defining
158    --  identifiers appear (object declarations, component declarations, number
159    --  declarations etc.)
160
161    --  The semantics of such statements are equivalent to a series of identical
162    --  declarations of single defining identifiers (except that conformance
163    --  checks require the same grouping of identifiers in the parameter case).
164
165    --  To simplify semantic processing, the parser breaks down such multiple
166    --  declaration cases into sequences of single declarations, duplicating
167    --  type and initialization information as required. The flags More_Ids and
168    --  Prev_Ids are used to record the original form of the source in the case
169    --  where the original source used a list of names, More_Ids being set on
170    --  all but the last name and Prev_Ids being set on all but the first name.
171    --  These flags are used to reconstruct the original source (e.g. in the
172    --  Sprint package), and also are included in the conformance checks, but
173    --  otherwise have no semantic significance.
174
175    --  Note: the reason that we use More_Ids and Prev_Ids rather than
176    --  First_Name and Last_Name flags is so that the flags are off in the
177    --  normal one identifier case, which minimizes tree print output.
178
179    -----------------------
180    -- Use of Node Lists --
181    -----------------------
182
183    --  With a few exceptions, if a construction of the form {non-terminal}
184    --  appears in the tree, lists are used in the corresponding tree node (see
185    --  package Nlists for handling of node lists). In this case a field of the
186    --  parent node points to a list of nodes for the non-terminal. The field
187    --  name for such fields has a plural name which always ends in "s". For
188    --  example, a case statement has a field Alternatives pointing to list of
189    --  case statement alternative nodes.
190
191    --  Only fields pointing to lists have names ending in "s", so generally the
192    --  structure is strongly typed, fields not ending in s point to single
193    --  nodes, and fields ending in s point to lists.
194
195    --  The following example shows how a traversal of a list is written. We
196    --  suppose here that Stmt points to a N_Case_Statement node which has a
197    --  list field called Alternatives:
198
199    --   Alt := First (Alternatives (Stmt));
200    --   while Present (Alt) loop
201    --      ..
202    --      -- processing for case statement alternative Alt
203    --      ..
204    --      Alt := Next (Alt);
205    --   end loop;
206
207    --  The Present function tests for Empty, which in this case signals the end
208    --  of the list. First returns Empty immediately if the list is empty.
209    --  Present is defined in Atree, First and Next are defined in Nlists.
210
211    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
212    --  contexts, which is handled as described in the previous section, and
213    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
214    --  using the First_Name and Last_Name flags, as further detailed in the
215    --  description of the N_With_Clause node.
216
217    -------------
218    -- Pragmas --
219    -------------
220
221    --  Pragmas can appear in many different context, but are not included in
222    --  the grammar. Still they must appear in the tree, so they can be properly
223    --  processed.
224
225    --  Two approaches are used. In some cases, an extra field is defined in an
226    --  appropriate node that contains a list of pragmas appearing in the
227    --  expected context. For example pragmas can appear before an
228    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
229    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
230
231    --  The other approach is to simply allow pragmas to appear in syntactic
232    --  lists where the grammar (of course) does not include the possibility.
233    --  For example, the Variants field of an N_Variant_Part node points to a
234    --  list that can contain both N_Pragma and N_Variant nodes.
235
236    --  To make processing easier in the latter case, the Nlists package
237    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
238    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
239    --  ignoring all pragmas.
240
241    --  In the case of the variants list, we can either write:
242
243    --      Variant := First (Variants (N));
244    --      while Present (Variant) loop
245    --         ...
246    --         Variant := Next (Variant);
247    --      end loop;
248
249    --  or
250
251    --      Variant := First_Non_Pragma (Variants (N));
252    --      while Present (Variant) loop
253    --         ...
254    --         Variant := Next_Non_Pragma (Variant);
255    --      end loop;
256
257    --  In the first form of the loop, Variant can either be an N_Pragma or an
258    --  N_Variant node. In the second form, Variant can only be N_Variant since
259    --  all pragmas are skipped.
260
261    ---------------------
262    -- Optional Fields --
263    ---------------------
264
265    --  Fields which correspond to a section of the syntax enclosed in square
266    --  brackets are generally omitted (and the corresponding field set to Empty
267    --  for a node, or No_List for a list). The documentation of such fields
268    --  notes these cases. One exception to this rule occurs in the case of
269    --  possibly empty statement sequences (such as the sequence of statements
270    --  in an entry call alternative). Such cases appear in the syntax rules as
271    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
272    --  statement sequences always contain an empty list (not No_List) if no
273    --  statements are present.
274
275    --  Note: the utility program that constructs the body and spec of the Nmake
276    --  package relies on the format of the comments to determine if a field
277    --  should have a default value in the corresponding make routine. The rule
278    --  is that if the first line of the description of the field contains the
279    --  string "(set to xxx if", then a default value of xxx is provided for
280    --  this field in the corresponding Make_yyy routine.
281
282    -----------------------------------
283    -- Note on Body/Spec Terminology --
284    -----------------------------------
285
286    --  In informal discussions about Ada, it is customary to refer to package
287    --  and subprogram specs and bodies. However, this is not technically
288    --  correct, what is normally referred to as a spec or specification is in
289    --  fact a package declaration or subprogram declaration. We are careful in
290    --  GNAT to use the correct terminology and in particular, the full word
291    --  specification is never used as an incorrect substitute for declaration.
292    --  The structure and terminology used in the tree also reflects the grammar
293    --  and thus uses declaration and specification in the technically correct
294    --  manner.
295
296    --  However, there are contexts in which the informal terminology is useful.
297    --  We have the word "body" to refer to the Interp_Etype declared by the
298    --  declaration of a unit body, and in some contexts we need similar term to
299    --  refer to the entity declared by the package or subprogram declaration,
300    --  and simply using declaration can be confusing since the body also has a
301    --  declaration.
302
303    --  An example of such a context is the link between the package body and
304    --  its declaration. With_Declaration is confusing, since the package body
305    --  itself is a declaration.
306
307    --  To deal with this problem, we reserve the informal term Spec, i.e. the
308    --  popular abbreviation used in this context, to refer to the entity
309    --  declared by the package or subprogram declaration. So in the above
310    --  example case, the field in the body is called With_Spec.
311
312    --  Another important context for the use of the word Spec is in error
313    --  messages, where a hyper-correct use of declaration would be confusing to
314    --  a typical Ada programmer, and even for an expert programmer can cause
315    --  confusion since the body has a declaration as well.
316
317    --  So, to summarize:
318
319    --     Declaration    always refers to the syntactic entity that is called
320    --                    a declaration. In particular, subprogram declaration
321    --                    and package declaration are used to describe the
322    --                    syntactic entity that includes the semicolon.
323
324    --     Specification  always refers to the syntactic entity that is called
325    --                    a specification. In particular, the terms procedure
326    --                    specification, function specification, package
327    --                    specification, subprogram specification always refer
328    --                    to the syntactic entity that has no semicolon.
329
330    --     Spec           is an informal term, used to refer to the entity
331    --                    that is declared by a task declaration, protected
332    --                    declaration, generic declaration, subprogram
333    --                    declaration or package declaration.
334
335    --  This convention is followed throughout the GNAT documentation
336    --  both internal and external, and in all error message text.
337
338    ------------------------
339    -- Internal Use Nodes --
340    ------------------------
341
342    --  These are Node_Kind settings used in the internal implementation which
343    --  are not logically part of the specification.
344
345    --  N_Unused_At_Start
346    --  Completely unused entry at the start of the enumeration type. This
347    --  is inserted so that no legitimate value is zero, which helps to get
348    --  better debugging behavior, since zero is a likely uninitialized value).
349
350    --  N_Unused_At_End
351    --  Completely unused entry at the end of the enumeration type. This is
352    --  handy so that arrays with Node_Kind as the index type have an extra
353    --  entry at the end (see for example the use of the Pchar_Pos_Array in
354    --  Treepr, where the extra entry provides the limit value when dealing with
355    --  the last used entry in the array).
356
357    -----------------------------------------
358    -- Note on the settings of Sloc fields --
359    -----------------------------------------
360
361    --  The Sloc field of nodes that come from the source is set by the parser.
362    --  For internal nodes, and nodes generated during expansion the Sloc is
363    --  usually set in the call to the constructor for the node. In general the
364    --  Sloc value chosen for an internal node is the Sloc of the source node
365    --  whose processing is responsible for the expansion. For example, the Sloc
366    --  of an inherited primitive operation is the Sloc of the corresponding
367    --  derived type declaration.
368
369    --  For the nodes of a generic instantiation, the Sloc value is encoded to
370    --  represent both the original Sloc in the generic unit, and the Sloc of
371    --  the instantiation itself. See Sinput.ads for details.
372
373    --  Subprogram instances create two callable entities: one is the visible
374    --  subprogram instance, and the other is an anonymous subprogram nested
375    --  within a wrapper package that contains the renamings for the actuals.
376    --  Both of these entities have the Sloc of the defining entity in the
377    --  instantiation node. This simplifies some ASIS queries.
378
379    -----------------------
380    -- Field Definitions --
381    -----------------------
382
383    --  In the following node definitions, all fields, both syntactic and
384    --  semantic, are documented. The one exception is in the case of entities
385    --  (defining identifiers, character literals and operator symbols), where
386    --  the usage of the fields depends on the entity kind. Entity fields are
387    --  fully documented in the separate package Einfo.
388
389    --  In the node definitions, three common sets of fields are abbreviated to
390    --  save both space in the documentation, and also space in the string
391    --  (defined in Tree_Print_Strings) used to print trees. The following
392    --  abbreviations are used:
393
394    --  Note: the utility program that creates the Treeprs spec (in the file
395    --  xtreeprs.adb) knows about the special fields here, so it must be
396    --  modified if any change is made to these fields.
397
398    --    "plus fields for binary operator"
399    --       Chars                    (Name1)      Name_Id for the operator
400    --       Left_Opnd                (Node2)      left operand expression
401    --       Right_Opnd               (Node3)      right operand expression
402    --       Entity                   (Node4-Sem)  defining entity for operator
403    --       Associated_Node          (Node4-Sem)  for generic processing
404    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
405    --       Has_Private_View         (Flag11-Sem) set in generic units.
406
407    --    "plus fields for unary operator"
408    --       Chars                    (Name1)      Name_Id for the operator
409    --       Right_Opnd               (Node3)      right operand expression
410    --       Entity                   (Node4-Sem)  defining entity for operator
411    --       Associated_Node          (Node4-Sem)  for generic processing
412    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
413    --       Has_Private_View         (Flag11-Sem) set in generic units.
414
415    --    "plus fields for expression"
416    --       Paren_Count                           number of parentheses levels
417    --       Etype                    (Node5-Sem)  type of the expression
418    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
419    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
420    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
421    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
422    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
423    --       Assignment_OK            (Flag15-Sem) set if modification is OK
424    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
425
426    --  Note: see under (EXPRESSION) for further details on the use of
427    --  the Paren_Count field to record the number of parentheses levels.
428
429    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
430    --  The actual definition of this type is given later (the reason for this
431    --  is that we want the descriptions ordered by logical chapter in the RM,
432    --  but the type definition is reordered to facilitate the definition of
433    --  some subtype ranges. The individual descriptions of the nodes show how
434    --  the various fields are used in each node kind, as well as providing
435    --  logical names for the fields. Functions and procedures are provided for
436    --  accessing and setting these fields using these logical names.
437
438    -----------------------
439    -- Gigi Restrictions --
440    -----------------------
441
442    --  The tree passed to Gigi is more restricted than the general tree form.
443    --  For example, as a result of expansion, most of the tasking nodes can
444    --  never appear. For each node to which either a complete or partial
445    --  restriction applies, a note entitled "Gigi restriction" appears which
446    --  documents the restriction.
447
448    --  Note that most of these restrictions apply only to trees generated when
449    --  code is being generated, since they involved expander actions that
450    --  destroy the tree.
451
452    ------------------------
453    -- Common Flag Fields --
454    ------------------------
455
456    --  The following flag fields appear in all nodes
457
458    --  Analyzed (Flag1)
459    --    This flag is used to indicate that a node (and all its children have
460    --    been analyzed. It is used to avoid reanalysis of a node that has
461    --    already been analyzed, both for efficiency and functional correctness
462    --    reasons.
463
464    --  Comes_From_Source (Flag2)
465    --    This flag is set if the node comes directly from an explicit construct
466    --    in the source. It is normally on for any nodes built by the scanner or
467    --    parser from the source program, with the exception that in a few cases
468    --    the parser adds nodes to normalize the representation (in particular
469    --    a null statement is added to a package body if there is no begin/end
470    --    initialization section.
471    --
472    --    Most nodes inserted by the analyzer or expander are not considered
473    --    as coming from source, so the flag is off for such nodes. In a few
474    --    cases, the expander constructs nodes closely equivalent to nodes
475    --    from the source program (e.g. the allocator built for build-in-place
476    --    case), and the Comes_From_Source flag is deliberately set.
477
478    --  Error_Posted (Flag3)
479    --    This flag is used to avoid multiple error messages being posted on or
480    --    referring to the same node. This flag is set if an error message
481    --    refers to a node or is posted on its source location, and has the
482    --    effect of inhibiting further messages involving this same node.
483
484    --  Has_Dynamic_Length_Check (Flag10-Sem)
485    --    This flag is present on all nodes. It is set to indicate that one of
486    --    the routines in unit Checks has generated a length check action which
487    --    has been inserted at the flagged node. This is used to avoid the
488    --    generation of duplicate checks.
489
490    --  Has_Dynamic_Range_Check (Flag12-Sem)
491    --    This flag is present on all nodes. It is set to indicate that one of
492    --    the routines in unit Checks has generated a range check action which
493    --    has been inserted at the flagged node. This is used to avoid the
494    --    generation of duplicate checks.
495
496    --  Has_Local_Raise (Flag8-Sem)
497    --    Present in exception handler nodes. Set if the handler can be entered
498    --    via a local raise that gets transformed to a goto statement. This will
499    --    always be set if Local_Raise_Statements is non-empty, but can also be
500    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
501    --    nodes requiring generation of back end checks.
502
503    ------------------------------------
504    -- Description of Semantic Fields --
505    ------------------------------------
506
507    --  The meaning of the syntactic fields is generally clear from their names
508    --  without any further description, since the names are chosen to
509    --  correspond very closely to the syntax in the reference manual. This
510    --  section describes the usage of the semantic fields, which are used to
511    --  contain additional information determined during semantic analysis.
512
513    --  ABE_Is_Certain (Flag18-Sem)
514    --    This flag is set in an instantiation node or a call node is determined
515    --    to be sure to raise an ABE. This is used to trigger special handling
516    --    of such cases, particularly in the instantiation case where we avoid
517    --    instantiating the body if this flag is set. This flag is also present
518    --    in an N_Formal_Package_Declaration_Node since formal package
519    --    declarations are treated like instantiations, but it is always set to
520    --    False in this context.
521
522    --  Accept_Handler_Records (List5-Sem)
523    --    This field is present only in an N_Accept_Alternative node. It is used
524    --    to temporarily hold the exception handler records from an accept
525    --    statement in a selective accept. These exception handlers will
526    --    eventually be placed in the Handler_Records list of the procedure
527    --    built for this accept (see Expand_N_Selective_Accept procedure in
528    --    Exp_Ch9 for further details).
529
530    --  Access_Types_To_Process (Elist2-Sem)
531    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
532    --    Contains the list of access types which may require specific treatment
533    --    when the nature of the type completion is completely known. An example
534    --    of such treatment is the generation of the associated_final_chain.
535
536    --  Actions (List1-Sem)
537    --    This field contains a sequence of actions that are associated with the
538    --    node holding the field. See the individual node types for details of
539    --    how this field is used, as well as the description of the specific use
540    --    for a particular node type.
541
542    --  Activation_Chain_Entity (Node3-Sem)
543    --    This is used in tree nodes representing task activators (blocks,
544    --    subprogram bodies, package declarations, and task bodies). It is
545    --    initially Empty, and then gets set to point to the entity for the
546    --    declared Activation_Chain variable when the first task is declared.
547    --    When tasks are declared in the corresponding declarative region this
548    --    entity is located by name (its name is always _Chain) and the declared
549    --    tasks are added to the chain. Note that N_Extended_Return_Statement
550    --    does not have this attribute, although it does have an activation
551    --    chain. This chain is used to store the tasks temporarily, and is not
552    --    used for activating them. On successful completion of the return
553    --    statement, the tasks are moved to the caller's chain, and the caller
554    --    activates them.
555
556    --  Acts_As_Spec (Flag4-Sem)
557    --    A flag set in the N_Subprogram_Body node for a subprogram body which
558    --    is acting as its own spec, except in the case of a library level
559    --    subprogram, in which case the flag is set on the parent compilation
560    --    unit node instead (see further description in spec of Lib package).
561    --    ??? Above note about Lib is dubious since lib.ads does not mention
562    --    Acts_As_Spec at all.
563
564    --  Actual_Designated_Subtype (Node4-Sem)
565    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
566    --    needs to known the dynamic constrained subtype of the designated
567    --    object, this attribute is set to that type. This is done for
568    --    N_Free_Statements for access-to-classwide types and access to
569    --    unconstrained packed array types, and for N_Explicit_Dereference when
570    --    the designated type is an unconstrained packed array and the
571    --    dereference is the prefix of a 'Size attribute reference.
572
573    --  Address_Warning_Posted (Flag18-Sem)
574    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
575    --    posted a warning for the address clause regarding size or alignment
576    --    issues. Used to inhibit multiple redundant messages.
577
578    --  Aggregate_Bounds (Node3-Sem)
579    --    Present in array N_Aggregate nodes. If the aggregate contains
580    --    component associations this field points to an N_Range node whose
581    --    bounds give the lowest and highest discrete choice values. If the
582    --    named aggregate contains a dynamic or null choice this field is empty.
583    --    If the aggregate contains positional elements this field points to an
584    --    N_Integer_Literal node giving the number of positional elements. Note
585    --    that if the aggregate contains positional elements and an other choice
586    --    the N_Integer_Literal only accounts for the number of positional
587    --    elements.
588
589    --  All_Others (Flag11-Sem)
590    --    Present in an N_Others_Choice node. This flag is set for an others
591    --    exception where all exceptions are to be caught, even those that are
592    --    not normally handled (in particular the tasking abort signal). This
593    --    is used for translation of the at end handler into a normal exception
594    --    handler.
595
596    --  Assignment_OK (Flag15-Sem)
597    --    This flag is set in a subexpression node for an object, indicating
598    --    that the associated object can be modified, even if this would not
599    --    normally be permissible (either by direct assignment, or by being
600    --    passed as an out or in-out parameter). This is used by the expander
601    --    for a number of purposes, including initialization of constants and
602    --    limited type objects (such as tasks), setting discriminant fields,
603    --    setting tag values, etc. N_Object_Declaration nodes also have this
604    --    flag defined. Here it is used to indicate that an initialization
605    --    expression is valid, even where it would normally not be allowed
606    --    (e.g. where the type involved is limited).
607
608    --  Associated_Node (Node4-Sem)
609    --    Present in nodes that can denote an entity: identifiers, character
610    --    literals, operator symbols, expanded names, operator nodes, and
611    --    attribute reference nodes (all these nodes have an Entity field).
612    --    This field is also present in N_Aggregate, N_Selected_Component, and
613    --    N_Extension_Aggregate nodes. This field is used in generic processing
614    --    to create links between the generic template and the generic copy.
615    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
616    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
617    --    the normal function of Entity is not required at the point where the
618    --    Associated_Node is set. Note also, that in generic templates, this
619    --    means that the Entity field does not necessarily point to an Entity.
620    --    Since the back end is expected to ignore generic templates, this is
621    --    harmless.
622
623    --  At_End_Proc (Node1)
624    --    This field is present in an N_Handled_Sequence_Of_Statements node.
625    --    It contains an identifier reference for the cleanup procedure to be
626    --    called. See description of this node for further details.
627
628    --  Backwards_OK (Flag6-Sem)
629    --    A flag present in the N_Assignment_Statement node. It is used only
630    --    if the type being assigned is an array type, and is set if analysis
631    --    determines that it is definitely safe to do the copy backwards, i.e.
632    --    starting at the highest addressed element. This is the case if either
633    --    the operands do not overlap, or they may overlap, but if they do,
634    --    then the left operand is at a higher address than the right operand.
635    --
636    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
637    --    means that the front end could not determine that either direction is
638    --    definitely safe, and a runtime check may be required if the backend
639    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
640    --    set, it means that the front end can assure no overlap of operands.
641
642    --  Body_To_Inline (Node3-Sem)
643    --    present in subprogram declarations. Denotes analyzed but unexpanded
644    --    body of subprogram, to be used when inlining calls. Present when the
645    --    subprogram has an Inline pragma and inlining is enabled. If the
646    --    declaration is completed by a renaming_as_body, and the renamed en-
647    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
648    --    which is used directly in later calls to the original subprogram.
649
650    --  Body_Required (Flag13-Sem)
651    --    A flag that appears in the N_Compilation_Unit node indicating that
652    --    the corresponding unit requires a body. For the package case, this
653    --    indicates that a completion is required. In Ada 95, if the flag is not
654    --    set for the package case, then a body may not be present. In Ada 83,
655    --    if the flag is not set for the package case, then body is optional.
656    --    For a subprogram declaration, the flag is set except in the case where
657    --    a pragma Import or Interface applies, in which case no body is
658    --    permitted (in Ada 83 or Ada 95).
659
660    --  By_Ref (Flag5-Sem)
661    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
662    --    this flag is set when the returned expression is already allocated on
663    --    the secondary stack and thus the result is passed by reference rather
664    --    than copied another time.
665
666    --  Check_Address_Alignment (Flag11-Sem)
667    --    A flag present in N_Attribute_Definition clause for a 'Address
668    --    attribute definition. This flag is set if a dynamic check should be
669    --    generated at the freeze point for the entity to which this address
670    --    clause applies. The reason that we need this flag is that we want to
671    --    check for range checks being suppressed at the point where the
672    --    attribute definition clause is given, rather than testing this at the
673    --    freeze point.
674
675    --  Coextensions (Elist4-Sem)
676    --    Present in allocators nodes. Points to list of allocators for the
677    --    access discriminants of the allocated object.
678
679    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
680    --    Present in N_Simple_Return_Statement nodes. True if this node was
681    --    constructed as part of the N_Extended_Return_Statement expansion.
682
683    --  Compile_Time_Known_Aggregate (Flag18-Sem)
684    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
685    --    evaluated at compile time without raising constraint error. Such
686    --    aggregates can be passed as is to Gigi without any expansion. See
687    --    Sem_Aggr for the specific conditions under which an aggregate has this
688    --    flag set. See also the flag Static_Processing_OK.
689
690    --  Componentwise_Assignment (Flag14-Sem)
691    --    Present in N_Assignment_Statement nodes. Set for a record assignment
692    --    where all that needs doing is to expand it into component-by-component
693    --    assignments. This is used internally for the case of tagged types with
694    --    rep clauses, where we need to avoid recursion (we don't want to try to
695    --    generate a call to the primitive operation, because this is the case
696    --    where we are compiling the primitive operation). Note that when we are
697    --    expanding component assignments in this case, we never assign the _tag
698    --    field, but we recursively assign components of the parent type.
699
700    --  Condition_Actions (List3-Sem)
701    --    This field appears in else-if nodes and in the iteration scheme node
702    --    for while loops. This field is only used during semantic processing to
703    --    temporarily hold actions inserted into the tree. In the tree passed
704    --    to gigi, the condition actions field is always set to No_List. For
705    --    details on how this field is used, see the routine Insert_Actions in
706    --    package Exp_Util, and also the expansion routines for the relevant
707    --    nodes.
708
709    --  Context_Pending (Flag16-Sem)
710    --    This field appears in Compilation_Unit nodes, to indicate that the
711    --    context of the unit is being compiled. Used to detect circularities
712    --    that are not otherwise detected by the loading mechanism. Such
713    --    circularities can occur in the presence of limited and non-limited
714    --    with_clauses that mention the same units.
715
716    --  Controlling_Argument (Node1-Sem)
717    --    This field is set in procedure and function call nodes if the call
718    --    is a dispatching call (it is Empty for a non-dispatching call). It
719    --    indicates the source of the call's controlling tag. For procedure
720    --    calls, the Controlling_Argument is one of the actuals. For function
721    --    that has a dispatching result, it is an entity in the context of the
722    --    call that can provide a tag, or else it is the tag of the root type
723    --    of the class. It can also specify a tag directly rather than being a
724    --    tagged object. The latter is needed by the implementations of AI-239
725    --    and AI-260.
726
727    --  Conversion_OK (Flag14-Sem)
728    --    A flag set on type conversion nodes to indicate that the conversion
729    --    is to be considered as being valid, even though it is the case that
730    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
731    --    Fixed_Value and Integer_Value, for internal conversions done for
732    --    fixed-point operations, and for certain conversions for calls to
733    --    initialization procedures. If Conversion_OK is set, then Etype must be
734    --    set (the analyzer assumes that Etype has been set). For the case of
735    --    fixed-point operands, it also indicates that the conversion is to be
736    --    direct conversion of the underlying integer result, with no regard to
737    --    the small operand.
738
739    --  Corresponding_Body (Node5-Sem)
740    --    This field is set in subprogram declarations, package declarations,
741    --    entry declarations of protected types, and in generic units. It
742    --    points to the defining entity for the corresponding body (NOT the
743    --    node for the body itself).
744
745    --  Corresponding_Formal_Spec (Node3-Sem)
746    --    This field is set in subprogram renaming declarations, where it points
747    --    to the defining entity for a formal subprogram in the case where the
748    --    renaming corresponds to a generic formal subprogram association in an
749    --    instantiation. The field is Empty if the renaming does not correspond
750    --    to such a formal association.
751
752    --  Corresponding_Generic_Association (Node5-Sem)
753    --    This field is defined for object declarations and object renaming
754    --    declarations. It is set for the declarations within an instance that
755    --    map generic formals to their actuals. If set, the field points to
756    --    a generic_association which is the original parent of the expression
757    --    or name appearing in the declaration. This simplifies ASIS queries.
758
759    --  Corresponding_Integer_Value (Uint4-Sem)
760    --    This field is set in real literals of fixed-point types (it is not
761    --    used for floating-point types). It contains the integer value used
762    --    to represent the fixed-point value. It is also set on the universal
763    --    real literals used to represent bounds of fixed-point base types
764    --    and their first named subtypes.
765
766    --  Corresponding_Spec (Node5-Sem)
767    --    This field is set in subprogram, package, task, and protected body
768    --    nodes, where it points to the defining entity in the corresponding
769    --    spec. The attribute is also set in N_With_Clause nodes where it points
770    --    to the defining entity for the with'ed spec, and in a subprogram
771    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
772    --    if there is no corresponding spec, as in the case of a subprogram body
773    --    that serves as its own spec.
774
775    --  Corresponding_Stub (Node3-Sem)
776    --    This field is present in an N_Subunit node. It holds the node in
777    --    the parent unit that is the stub declaration for the subunit. It is
778    --    set when analysis of the stub forces loading of the proper body. If
779    --    expansion of the proper body creates new declarative nodes, they are
780    --    inserted at the point of the corresponding_stub.
781
782    --  Dcheck_Function (Node5-Sem)
783    --    This field is present in an N_Variant node, It references the entity
784    --    for the discriminant checking function for the variant.
785
786    --  Debug_Statement (Node3)
787    --    This field is present in an N_Pragma node. It is used only for a Debug
788    --    pragma. The parameter is of the form of an expression, as required by
789    --    the pragma syntax, but is actually a procedure call. To simplify
790    --    semantic processing, the parser creates a copy of the argument
791    --    rearranged into a procedure call statement and places it in the
792    --    Debug_Statement field. Note that this field is considered syntactic
793    --    field, since it is created by the parser.
794
795    --  Default_Expression (Node5-Sem)
796    --    This field is Empty if there is no default expression. If there is a
797    --    simple default expression (one with no side effects), then this field
798    --    simply contains a copy of the Expression field (both point to the tree
799    --    for the default expression). Default_Expression is used for
800    --    conformance checking.
801
802    --  Discr_Check_Funcs_Built (Flag11-Sem)
803    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
804    --    discriminant checking functions are constructed. The purpose is to
805    --    avoid attempting to set these functions more than once.
806
807    --  Do_Accessibility_Check (Flag13-Sem)
808    --    This flag is set on N_Parameter_Specification nodes to indicate
809    --    that an accessibility check is required for the parameter. It is
810    --    not yet decided who takes care of this check (TBD ???).
811
812    --  Do_Discriminant_Check (Flag13-Sem)
813    --    This flag is set on N_Selected_Component nodes to indicate that a
814    --    discriminant check is required using the discriminant check routine
815    --    associated with the selector. The actual check is generated by the
816    --    expander when processing selected components.
817
818    --  Do_Division_Check (Flag13-Sem)
819    --    This flag is set on a division operator (/ mod rem) to indicate
820    --    that a zero divide check is required. The actual check is dealt
821    --    with by the backend (all the front end does is to set the flag).
822
823    --  Do_Length_Check (Flag4-Sem)
824    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
825    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
826    --    is required. It is not determined who deals with this flag (???).
827
828    --  Do_Overflow_Check (Flag17-Sem)
829    --    This flag is set on an operator where an overflow check is required on
830    --    the operation. The actual check is dealt with by the backend (all the
831    --    front end does is to set the flag). The other cases where this flag is
832    --    used is on a Type_Conversion node and for attribute reference nodes.
833    --    For a type conversion, it means that the conversion is from one base
834    --    type to another, and the value may not fit in the target base type.
835    --    See also the description of Do_Range_Check for this case. The only
836    --    attribute references which use this flag are Pred and Succ, where it
837    --    means that the result should be checked for going outside the base
838    --    range. Note that this flag is not set for modular types.
839
840    --  Do_Range_Check (Flag9-Sem)
841    --    This flag is set on an expression which appears in a context where a
842    --    range check is required. The target type is clear from the context.
843    --    The contexts in which this flag can appear are the following:
844
845    --      Right side of an assignment. In this case the target type is
846    --      taken from the left side of the assignment, which is referenced
847    --      by the Name of the N_Assignment_Statement node.
848
849    --      Subscript expressions in an indexed component. In this case the
850    --      target type is determined from the type of the array, which is
851    --      referenced by the Prefix of the N_Indexed_Component node.
852
853    --      Argument expression for a parameter, appearing either directly in
854    --      the Parameter_Associations list of a call or as the Expression of an
855    --      N_Parameter_Association node that appears in this list. In either
856    --      case, the check is against the type of the formal. Note that the
857    --      flag is relevant only in IN and IN OUT parameters, and will be
858    --      ignored for OUT parameters, where no check is required in the call,
859    --      and if a check is required on the return, it is generated explicitly
860    --      with a type conversion.
861
862    --      Initialization expression for the initial value in an object
863    --      declaration. In this case the Do_Range_Check flag is set on
864    --      the initialization expression, and the check is against the
865    --      range of the type of the object being declared.
866
867    --      The expression of a type conversion. In this case the range check is
868    --      against the target type of the conversion. See also the use of
869    --      Do_Overflow_Check on a type conversion. The distinction is that the
870    --      overflow check protects against a value that is outside the range of
871    --      the target base type, whereas a range check checks that the
872    --      resulting value (which is a value of the base type of the target
873    --      type), satisfies the range constraint of the target type.
874
875    --    Note: when a range check is required in contexts other than those
876    --    listed above (e.g. in a return statement), an additional type
877    --    conversion node is introduced to represent the required check.
878
879    --  Do_Storage_Check (Flag17-Sem)
880    --    This flag is set in an N_Allocator node to indicate that a storage
881    --    check is required for the allocation, or in an N_Subprogram_Body node
882    --    to indicate that a stack check is required in the subprogram prolog.
883    --    The N_Allocator case is handled by the routine that expands the call
884    --    to the runtime routine. The N_Subprogram_Body case is handled by the
885    --    backend, and all the semantics does is set the flag.
886
887    --  Do_Tag_Check (Flag13-Sem)
888    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
889    --    N_Procedure_Call_Statement, N_Type_Conversion,
890    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
891    --    node to indicate that the tag check can be suppressed. It is not
892    --    yet decided how this flag is used (TBD ???).
893
894    --  Elaborate_Present (Flag4-Sem)
895    --    This flag is set in the N_With_Clause node to indicate that pragma
896    --    Elaborate pragma appears for the with'ed units.
897
898    --  Elaborate_All_Desirable (Flag9-Sem)
899    --    This flag is set in the N_With_Clause mode to indicate that the static
900    --    elaboration processing has determined that an Elaborate_All pragma is
901    --    desirable for correct elaboration for this unit.
902
903    --  Elaborate_All_Present (Flag14-Sem)
904    --    This flag is set in the N_With_Clause node to indicate that a
905    --    pragma Elaborate_All pragma appears for the with'ed units.
906
907    --  Elaborate_Desirable (Flag11-Sem)
908    --    This flag is set in the N_With_Clause mode to indicate that the static
909    --    elaboration processing has determined that an Elaborate pragma is
910    --    desirable for correct elaboration for this unit.
911
912    --  Elaboration_Boolean (Node2-Sem)
913    --    This field is present in function and procedure specification nodes.
914    --    If set, it points to the entity for a Boolean flag that must be tested
915    --    for certain calls to check for access before elaboration. See body of
916    --    Sem_Elab for further details. This field is Empty if no elaboration
917    --    boolean is required.
918
919    --  Else_Actions (List3-Sem)
920    --    This field is present in conditional expression nodes. During code
921    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
922    --    actions at an appropriate place in the tree to get elaborated at the
923    --    right time. For conditional expressions, we have to be sure that the
924    --    actions for the Else branch are only elaborated if the condition is
925    --    False. The Else_Actions field is used as a temporary parking place for
926    --    these actions. The final tree is always rewritten to eliminate the
927    --    need for this field, so in the tree passed to Gigi, this field is
928    --    always set to No_List.
929
930    --  Enclosing_Variant (Node2-Sem)
931    --    This field is present in the N_Variant node and identifies the Node_Id
932    --    corresponding to the immediately enclosing variant when the variant is
933    --    nested, and N_Empty otherwise. Set during semantic processing of the
934    --    variant part of a record type.
935
936    --  Entity (Node4-Sem)
937    --    Appears in all direct names (identifiers, character literals, and
938    --    operator symbols), as well as expanded names, and attributes that
939    --    denote entities, such as 'Class. Points to entity for corresponding
940    --    defining occurrence. Set after name resolution. For identifiers in a
941    --    WITH list, the corresponding defining occurrence is in a separately
942    --    compiled file, and Entity must be set by the library Load procedure.
943    --
944    --    Note: During name resolution, the value in Entity may be temporarily
945    --    incorrect (e.g. during overload resolution, Entity is initially set to
946    --    the first possible correct interpretation, and then later modified if
947    --    necessary to contain the correct value after resolution).
948    --
949    --    Note: This field overlaps Associated_Node, which is used during
950    --    generic processing (see Sem_Ch12 for details). Note also that in
951    --    generic templates, this means that the Entity field does not always
952    --    point to an Entity. Since the back end is expected to ignore generic
953    --    templates, this is harmless.
954    --
955    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
956    --    It is used only for stream attributes definition clauses. In this
957    --    case, it denotes a (possibly dummy) subprogram entity that is declared
958    --    conceptually at the point of the clause. Thus the visibility of the
959    --    attribute definition clause (in the sense of 8.3(23) as amended by
960    --    AI-195) can be checked by testing the visibility of that subprogram.
961    --
962    --    Note: Normally the Entity field of an identifier points to the entity
963    --    for the corresponding defining identifier, and hence the Chars field
964    --    of an identifier will match the Chars field of the entity. However,
965    --    there is no requirement that these match, and there are obscure cases
966    --    of generated code where they do not match.
967
968    --  Entity_Or_Associated_Node (Node4-Sem)
969    --    A synonym for both Entity and Associated_Node. Used by convention in
970    --    the code when referencing this field in cases where it is not known
971    --    whether the field contains an Entity or an Associated_Node.
972
973    --  Etype (Node5-Sem)
974    --    Appears in all expression nodes, all direct names, and all entities.
975    --    Points to the entity for the related type. Set after type resolution.
976    --    Normally this is the actual subtype of the expression. However, in
977    --    certain contexts such as the right side of an assignment, subscripts,
978    --    arguments to calls, returned value in a function, initial value etc.
979    --    it is the desired target type. In the event that this is different
980    --    from the actual type, the Do_Range_Check flag will be set if a range
981    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
982    --    points to an essentially arbitrary choice from the possible set of
983    --    types.
984
985    --  Exception_Junk (Flag8-Sem)
986    --    This flag is set in a various nodes appearing in a statement sequence
987    --    to indicate that the corresponding node is an artifact of the
988    --    generated code for exception handling, and should be ignored when
989    --    analyzing the control flow of the relevant sequence of statements
990    --    (e.g. to check that it does not end with a bad return statement).
991
992    --  Exception_Label (Node5-Sem)
993    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
994    --    to be used for transforming the corresponding exception into a goto,
995    --    or contains Empty, if this exception is not to be transformed. Also
996    --    appears in N_Exception_Handler nodes, where, if set, it indicates
997    --    that there may be a local raise for the handler, so that expansion
998    --    to allow a goto is required (and this field contains the label for
999    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1000
1001    --  Expansion_Delayed (Flag11-Sem)
1002    --    Set on aggregates and extension aggregates that need a top-down rather
1003    --    than bottom-up expansion. Typically aggregate expansion happens bottom
1004    --    up. For nested aggregates the expansion is delayed until the enclosing
1005    --    aggregate itself is expanded, e.g. in the context of a declaration. To
1006    --    delay it we set this flag. This is done to avoid creating a temporary
1007    --    for each level of a nested aggregates, and also to prevent the
1008    --    premature generation of constraint checks. This is also a requirement
1009    --    if we want to generate the proper attachment to the internal
1010    --    finalization lists (for record with controlled components). Top down
1011    --    expansion of aggregates is also used for in-place array aggregate
1012    --    assignment or initialization. When the full context is known, the
1013    --    target of the assignment or initialization is used to generate the
1014    --    left-hand side of individual assignment to each sub-component.
1015
1016    --  First_Inlined_Subprogram (Node3-Sem)
1017    --    Present in the N_Compilation_Unit node for the main program. Points
1018    --    to a chain of entities for subprograms that are to be inlined. The
1019    --    Next_Inlined_Subprogram field of these entities is used as a link
1020    --    pointer with Empty marking the end of the list. This field is Empty
1021    --    if there are no inlined subprograms or inlining is not active.
1022
1023    --  First_Named_Actual (Node4-Sem)
1024    --    Present in procedure call statement and function call nodes, and also
1025    --    in Intrinsic nodes. Set during semantic analysis to point to the first
1026    --    named parameter where parameters are ordered by declaration order (as
1027    --    opposed to the actual order in the call which may be different due to
1028    --    named associations). Note: this field points to the explicit actual
1029    --    parameter itself, not the N_Parameter_Association node (its parent).
1030
1031    --  First_Real_Statement (Node2-Sem)
1032    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1033    --    Empty. Used only when declarations are moved into the statement part
1034    --    of a construct as a result of wrapping an AT END handler that is
1035    --    required to cover the declarations. In this case, this field is used
1036    --    to remember the location in the statements list of the first real
1037    --    statement, i.e. the statement that used to be first in the statement
1038    --    list before the declarations were prepended.
1039
1040    --  First_Subtype_Link (Node5-Sem)
1041    --    Present in N_Freeze_Entity node for an anonymous base type that is
1042    --    implicitly created by the declaration of a first subtype. It points
1043    --    to the entity for the first subtype.
1044
1045    --  Float_Truncate (Flag11-Sem)
1046    --    A flag present in type conversion nodes. This is used for float to
1047    --    integer conversions where truncation is required rather than rounding.
1048    --    Note that Gigi does not handle type conversions from real to integer
1049    --    with rounding (see Expand_N_Type_Conversion).
1050
1051    --  Forwards_OK (Flag5-Sem)
1052    --    A flag present in the N_Assignment_Statement node. It is used only
1053    --    if the type being assigned is an array type, and is set if analysis
1054    --    determines that it is definitely safe to do the copy forwards, i.e.
1055    --    starting at the lowest addressed element. This is the case if either
1056    --    the operands do not overlap, or they may overlap, but if they do,
1057    --    then the left operand is at a lower address than the right operand.
1058    --
1059    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1060    --    means that the front end could not determine that either direction is
1061    --    definitely safe, and a runtime check may be required if the backend
1062    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1063    --    set, it means that the front end can assure no overlap of operands.
1064
1065    --  From_At_End (Flag4-Sem)
1066    --    This flag is set on an N_Raise_Statement node if it corresponds to
1067    --    the reraise statement generated as the last statement of an AT END
1068    --    handler when SJLJ exception handling is active. It is used to stop
1069    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1070    --    because if the restriction is set, the reraise is not generated.
1071
1072    --  From_At_Mod (Flag4-Sem)
1073    --    This flag is set on the attribute definition clause node that is
1074    --    generated by a transformation of an at mod phrase in a record
1075    --    representation clause. This is used to give slightly different (Ada 83
1076    --    compatible) semantics to such a clause, namely it is used to specify a
1077    --    minimum acceptable alignment for the base type and all subtypes. In
1078    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1079    --    must be a multiple of the given value, and the representation clause
1080    --    is considered to be type specific instead of subtype specific.
1081
1082    --  From_Default (Flag6-Sem)
1083    --    This flag is set on the subprogram renaming declaration created in an
1084    --    instance for a formal subprogram, when the formal is declared with a
1085    --    box, and there is no explicit actual. If the flag is present, the
1086    --    declaration is treated as an implicit reference to the formal in the
1087    --    ali file.
1088
1089    --  Generic_Parent (Node5-Sem)
1090    --    Generic_Parent is defined on declaration nodes that are instances. The
1091    --    value of Generic_Parent is the generic entity from which the instance
1092    --    is obtained. Generic_Parent is also defined for the renaming
1093    --    declarations and object declarations created for the actuals in an
1094    --    instantiation. The generic parent of such a declaration is the
1095    --    corresponding generic association in the Instantiation node.
1096
1097    --  Generic_Parent_Type (Node4-Sem)
1098    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1099    --    actuals of formal private and derived types. Within the instance, the
1100    --    operations on the actual are those inherited from the parent. For a
1101    --    formal private type, the parent type is the generic type itself. The
1102    --    Generic_Parent_Type is also used in an instance to determine whether a
1103    --    private operation overrides an inherited one.
1104
1105    --  Handler_List_Entry (Node2-Sem)
1106    --    This field is present in N_Object_Declaration nodes. It is set only
1107    --    for the Handler_Record entry generated for an exception in zero cost
1108    --    exception handling mode. It references the corresponding item in the
1109    --    handler list, and is used to delete this entry if the corresponding
1110    --    handler is deleted during optimization. For further details on why
1111    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1112
1113    --  Has_No_Elaboration_Code (Flag17-Sem)
1114    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1115    --    or not elaboration code is present for this unit. It is initially set
1116    --    true for subprogram specs and bodies and for all generic units and
1117    --    false for non-generic package specs and bodies. Gigi may set the flag
1118    --    in the non-generic package case if it determines that no elaboration
1119    --    code is generated. Note that this flag is not related to the
1120    --    Is_Preelaborated status, there can be preelaborated packages that
1121    --    generate elaboration code, and non-preelaborated packages which do
1122    --    not generate elaboration code.
1123
1124    --  Has_Priority_Pragma (Flag6-Sem)
1125    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1126    --    N_Protected_Definition nodes to flag the presence of either a Priority
1127    --    or Interrupt_Priority pragma in the declaration sequence (public or
1128    --    private in the task and protected cases)
1129
1130    --  Has_Private_View (Flag11-Sem)
1131    --    A flag present in generic nodes that have an entity, to indicate that
1132    --    the node has a private type. Used to exchange private and full
1133    --    declarations if the visibility at instantiation is different from the
1134    --    visibility at generic definition.
1135
1136    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1137    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1138    --    flag the presence of a pragma Relative_Deadline.
1139
1140    --  Has_Self_Reference (Flag13-Sem)
1141    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1142    --    of the expressions contains an access attribute reference to the
1143    --    enclosing type. Such a self-reference can only appear in default-
1144    --    initialized aggregate for a record type.
1145
1146    --  Has_Storage_Size_Pragma (Flag5-Sem)
1147    --    A flag present in an N_Task_Definition node to flag the presence of a
1148    --    Storage_Size pragma.
1149
1150    --  Has_Task_Info_Pragma (Flag7-Sem)
1151    --    A flag present in an N_Task_Definition node to flag the presence of a
1152    --    Task_Info pragma. Used to detect duplicate pragmas.
1153
1154    --  Has_Task_Name_Pragma (Flag8-Sem)
1155    --    A flag present in N_Task_Definition nodes to flag the presence of a
1156    --    Task_Name pragma in the declaration sequence for the task.
1157
1158    --  Has_Wide_Character (Flag11-Sem)
1159    --    Present in string literals, set if any wide character (i.e. character
1160    --    code outside the Character range but within Wide_Character range)
1161    --    appears in the string. Used to implement pragma preference rules.
1162
1163    --  Has_Wide_Wide_Character (Flag13-Sem)
1164    --    Present in string literals, set if any wide character (i.e. character
1165    --    code outside the Wide_Character range) appears in the string. Used to
1166    --    implement pragma preference rules.
1167
1168    --  Hidden_By_Use_Clause (Elist4-Sem)
1169    --     An entity list present in use clauses that appear within
1170    --     instantiations. For the resolution of local entities, entities
1171    --     introduced by these use clauses have priority over global ones, and
1172    --     outer entities must be explicitly hidden/restored on exit.
1173
1174    --  Implicit_With (Flag16-Sem)
1175    --    This flag is set in the N_With_Clause node that is implicitly
1176    --    generated for runtime units that are loaded by the expander, and also
1177    --    for package System, if it is loaded implicitly by a use of the
1178    --    'Address or 'Tag attribute. ???There are other implicit with clauses
1179    --    as well.
1180
1181    --  Includes_Infinities (Flag11-Sem)
1182    --    This flag is present in N_Range nodes. It is set for the range of
1183    --    unconstrained float types defined in Standard, which include not only
1184    --    the given range of values, but also legitimately can include infinite
1185    --    values. This flag is false for any float type for which an explicit
1186    --    range is given by the programmer, even if that range is identical to
1187    --    the range for Float.
1188
1189    --  Instance_Spec (Node5-Sem)
1190    --    This field is present in generic instantiation nodes, and also in
1191    --    formal package declaration nodes (formal package declarations are
1192    --    treated in a manner very similar to package instantiations). It points
1193    --    to the node for the spec of the instance, inserted as part of the
1194    --    semantic processing for instantiations in Sem_Ch12.
1195
1196    --  Is_Accessibility_Actual (Flag12-Sem)
1197    --    Present in N_Parameter_Association nodes. True if the parameter is
1198    --    an extra actual that carries the accessibility level of the actual
1199    --    for an access parameter, in a function that dispatches on result and
1200    --    is called in a dispatching context. Used to prevent a formal/actual
1201    --    mismatch when the call is rewritten as a dispatching call.
1202
1203    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1204    --    A flag set in a Block_Statement node to indicate that it is the
1205    --    expansion of an asynchronous entry call. Such a block needs cleanup
1206    --    handler to assure that the call is cancelled.
1207
1208    --  Is_Component_Left_Opnd  (Flag13-Sem)
1209    --  Is_Component_Right_Opnd (Flag14-Sem)
1210    --    Present in concatenation nodes, to indicate that the corresponding
1211    --    operand is of the component type of the result. Used in resolving
1212    --    concatenation nodes in instances.
1213
1214    --  Is_Controlling_Actual (Flag16-Sem)
1215    --    This flag is set on in an expression that is a controlling argument in
1216    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1217    --    details of its use.
1218
1219    --  Is_Dynamic_Coextension (Flag18-Sem)
1220    --    Present in allocator nodes, to indicate that this is an allocator
1221    --    for an access discriminant of a dynamically allocated object. The
1222    --    coextension must be deallocated and finalized at the same time as
1223    --    the enclosing object.
1224
1225    --  Is_Entry_Barrier_Function (Flag8-Sem)
1226    --    This flag is set in an N_Subprogram_Body node which is the expansion
1227    --    of an entry barrier from a protected entry body. It is used for the
1228    --    circuitry checking for incorrect use of Current_Task.
1229
1230    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1231    --    This flag is set in an N_Function_Call node to indicate that the extra
1232    --    actuals to support a build-in-place style of call have been added to
1233    --    the call.
1234
1235    --  Is_In_Discriminant_Check (Flag11-Sem)
1236    --    This flag is present in a selected component, and is used to indicate
1237    --    that the reference occurs within a discriminant check. The
1238    --    significance is that optimizations based on assuming that the
1239    --    discriminant check has a correct value cannot be performed in this
1240    --    case (or the discriminant check may be optimized away!)
1241
1242    --  Is_Machine_Number (Flag11-Sem)
1243    --    This flag is set in an N_Real_Literal node to indicate that the value
1244    --    is a machine number. This avoids some unnecessary cases of converting
1245    --    real literals to machine numbers.
1246
1247    --  Is_Null_Loop (Flag16-Sem)
1248    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1249    --    can be determined to be null at compile time. This is used to remove
1250    --    the loop entirely at expansion time.
1251
1252    --  Is_Overloaded (Flag5-Sem)
1253    --    A flag present in all expression nodes. Used temporarily during
1254    --    overloading determination. The setting of this flag is not relevant
1255    --    once overloading analysis is complete.
1256
1257    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1258    --    A flag present only in N_Op_Expon nodes. It is set when the
1259    --    exponentiation is of the form 2 ** N, where the type of N is an
1260    --    unsigned integral subtype whose size does not exceed the size of
1261    --    Standard_Integer (i.e. a type that can be safely converted to
1262    --    Natural), and the exponentiation appears as the right operand of an
1263    --    integer multiplication or an integer division where the dividend is
1264    --    unsigned. It is also required that overflow checking is off for both
1265    --    the exponentiation and the multiply/divide node. If this set of
1266    --    conditions holds, and the flag is set, then the division or
1267    --    multiplication can be (and is) converted to a shift.
1268
1269    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1270    --    A flag set in a Subprogram_Body block to indicate that it is the
1271    --    implementation of a protected subprogram. Such a body needs cleanup
1272    --    handler to make sure that the associated protected object is unlocked
1273    --    when the subprogram completes.
1274
1275    --  Is_Static_Coextension (Flag14-Sem)
1276    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1277    --    of an object allocated on the stack rather than the heap.
1278
1279    --  Is_Static_Expression (Flag6-Sem)
1280    --    Indicates that an expression is a static expression (RM 4.9). See spec
1281    --    of package Sem_Eval for full details on the use of this flag.
1282
1283    --  Is_Subprogram_Descriptor (Flag16-Sem)
1284    --    Present in N_Object_Declaration, and set only for the object
1285    --    declaration generated for a subprogram descriptor in fast exception
1286    --    mode. See Exp_Ch11 for details of use.
1287
1288    --  Is_Task_Allocation_Block (Flag6-Sem)
1289    --    A flag set in a Block_Statement node to indicate that it is the
1290    --    expansion of a task allocator, or the allocator of an object
1291    --    containing tasks. Such a block requires a cleanup handler to call
1292    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1293    --    allocated but not activated when the allocator completes abnormally.
1294
1295    --  Is_Task_Master (Flag5-Sem)
1296    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1297    --    indicate that the construct is a task master (i.e. has declared tasks
1298    --    or declares an access to a task type).
1299
1300    --  Itype (Node1-Sem)
1301    --    Used in N_Itype_Reference node to reference an itype for which it is
1302    --    important to ensure that it is defined. See description of this node
1303    --    for further details.
1304
1305    --  Kill_Range_Check (Flag11-Sem)
1306    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1307    --    result should not be subjected to range checks. This is used for the
1308    --    implementation of Normalize_Scalars.
1309
1310    --  Label_Construct (Node2-Sem)
1311    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1312    --    N_Block_Statement or N_Loop_Statement node to which the label
1313    --    declaration applies. This is not currently used in the compiler
1314    --    itself, but it is useful in the implementation of ASIS queries.
1315    --    This field is left empty for the special labels generated as part
1316    --    of expanding raise statements with a local exception handler.
1317
1318    --  Library_Unit (Node4-Sem)
1319    --    In a stub node, Library_Unit points to the compilation unit node of
1320    --    the corresponding subunit.
1321    --
1322    --    In a with clause node, Library_Unit points to the spec of the with'ed
1323    --    unit.
1324    --
1325    --    In a compilation unit node, the usage depends on the unit type:
1326    --
1327    --     For a library unit body, Library_Unit points to the compilation unit
1328    --     node of the corresponding spec, unless it's a subprogram body with
1329    --     Acts_As_Spec set, in which case it points to itself.
1330    --
1331    --     For a spec, Library_Unit points to the compilation unit node of the
1332    --     corresponding body, if present. The body will be present if the spec
1333    --     is or contains generics that we needed to instantiate. Similarly, the
1334    --     body will be present if we needed it for inlining purposes. Thus, if
1335    --     we have a spec/body pair, both of which are present, they point to
1336    --     each other via Library_Unit.
1337    --
1338    --     For a subunit, Library_Unit points to the compilation unit node of
1339    --     the parent body.
1340    --
1341    --    Note that this field is not used to hold the parent pointer for child
1342    --    unit (which might in any case need to use it for some other purpose as
1343    --    described above). Instead for a child unit, implicit with's are
1344    --    generated for all parents.
1345
1346    --  Local_Raise_Statements (Elist1)
1347    --    This field is present in exception handler nodes. It is set to
1348    --    No_Elist in the normal case. If there is at least one raise statement
1349    --    which can potentially be handled as a local raise, then this field
1350    --    points to a list of raise nodes, which are calls to a routine to raise
1351    --    an exception. These are raise nodes which can be optimized into gotos
1352    --    if the handler turns out to meet the conditions which permit this
1353    --    transformation. Note that this does NOT include instances of the
1354    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1355    --    handled by the back end (using the N_Push/N_Pop mechanism).
1356
1357    --  Loop_Actions (List2-Sem)
1358    --    A list present in Component_Association nodes in array aggregates.
1359    --    Used to collect actions that must be executed within the loop because
1360    --    they may need to be evaluated anew each time through.
1361
1362    --  Limited_View_Installed (Flag18-Sem)
1363    --    Present in With_Clauses and in package specifications. If set on
1364    --    with_clause, it indicates that this clause has created the current
1365    --    limited view of the designated package. On a package specification, it
1366    --    indicates that the limited view has already been created because the
1367    --    package is mentioned in a limited_with_clause in the closure of the
1368    --    unit being compiled.
1369
1370    --  Local_Raise_Not_OK (Flag7-Sem)
1371    --    Present in N_Exception_Handler nodes. Set if the handler contains
1372    --    a construct (reraise statement, or call to subprogram in package
1373    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1374    --    for a local raise (one that could otherwise be converted to a goto).
1375
1376    --  Must_Be_Byte_Aligned (Flag14-Sem)
1377    --    This flag is present in N_Attribute_Reference nodes. It can be set
1378    --    only for the Address and Unrestricted_Access attributes. If set it
1379    --    means that the object for which the address/access is given must be on
1380    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1381    --    of the object is to be made before taking the address (this copy is in
1382    --    the current scope on the stack frame). This is used for certain cases
1383    --    of code generated by the expander that passes parameters by address.
1384    --
1385    --    The reason the copy is not made by the front end is that the back end
1386    --    has more information about type layout and may be able to (but is not
1387    --    guaranteed to) prevent making unnecessary copies.
1388
1389    --  Must_Not_Freeze (Flag8-Sem)
1390    --    A flag present in all expression nodes. Normally expressions cause
1391    --    freezing as described in the RM. If this flag is set, then this is
1392    --    inhibited. This is used by the analyzer and expander to label nodes
1393    --    that are created by semantic analysis or expansion and which must not
1394    --    cause freezing even though they normally would. This flag is also
1395    --    present in an N_Subtype_Indication node, since we also use these in
1396    --    calls to Freeze_Expression.
1397
1398    --  Next_Entity (Node2-Sem)
1399    --    Present in defining identifiers, defining character literals and
1400    --    defining operator symbols (i.e. in all entities). The entities of a
1401    --    scope are chained, and this field is used as the forward pointer for
1402    --    this list. See Einfo for further details.
1403
1404    --  Next_Implicit_With (Node3-Sem)
1405    --    Present in N_With_Clause. Part of a chain of with_clauses generated
1406    --    in rtsfind to indicate implicit dependencies on predefined units. Used
1407    --    to prevent multiple with_clauses for the same unit in a given context.
1408    --    A postorder traversal of the tree whose nodes are units and whose
1409    --    links are with_clauses defines the order in which Inspector must
1410    --    examine a compiled unit and its full context. This ordering ensures
1411    --    that any subprogram call is examined after the subprogram declartion
1412    --    has been seen.
1413
1414    --  Next_Named_Actual (Node4-Sem)
1415    --    Present in parameter association node. Set during semantic analysis to
1416    --    point to the next named parameter, where parameters are ordered by
1417    --    declaration order (as opposed to the actual order in the call, which
1418    --    may be different due to named associations). Not that this field
1419    --    points to the explicit actual parameter itself, not to the
1420    --    N_Parameter_Association node (its parent).
1421
1422    --  Next_Pragma (Node1-Sem)
1423    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1424    --    nodes. Currently used for two purposes:
1425    --
1426    --      Create a list of linked Check_Policy pragmas. The head of this list
1427    --      is stored in Opt.Check_Policy_List (which has further details).
1428    --
1429    --      Used by processing for Pre/Postcondition pragmas to store a list of
1430    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1431    --      details).
1432
1433    --  Next_Rep_Item (Node5-Sem)
1434    --    Present in pragma nodes and attribute definition nodes. Used to link
1435    --    representation items that apply to an entity. See description of
1436    --    First_Rep_Item field in Einfo for full details.
1437
1438    --  Next_Use_Clause (Node3-Sem)
1439    --    While use clauses are active during semantic processing, they are
1440    --    chained from the scope stack entry, using Next_Use_Clause as a link
1441    --    pointer, with Empty marking the end of the list. The head pointer is
1442    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1443    --    processing (i.e. when Gigi sees the tree, the contents of this field
1444    --    is undefined and should not be read).
1445
1446    --  No_Ctrl_Actions (Flag7-Sem)
1447    --    Present in N_Assignment_Statement to indicate that no finalize nor
1448    --    adjust should take place on this assignment even though the rhs is
1449    --    controlled. This is used in init procs and aggregate expansions where
1450    --    the generated assignments are more initialisations than real
1451    --    assignments.
1452
1453    --  No_Elaboration_Check (Flag14-Sem)
1454    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1455    --    that no elaboration check is needed on the call, because it appears in
1456    --    the context of a local Suppress pragma. This is used on calls within
1457    --    task bodies, where the actual elaboration checks are applied after
1458    --    analysis, when the local scope stack is not present.
1459
1460    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1461    --    Present in N_With_Clause nodes. Set if the with clause is on the
1462    --    package or subprogram spec where the main unit is the corresponding
1463    --    body, and no entities of the with'ed unit are referenced by the spec
1464    --    (an entity may still be referenced in the body, so this flag is used
1465    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1466    --    full details)
1467
1468    --  No_Initialization (Flag13-Sem)
1469    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1470    --    object must not be initialized (by Initialize or call to an init
1471    --    proc). This is needed for controlled aggregates. When the Object
1472    --    declaration has an expression, this flag means that this expression
1473    --    should not be taken into account (needed for in place initialization
1474    --    with aggregates).
1475
1476    --  No_Truncation (Flag17-Sem)
1477    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1478    --    only if the RM_Size of the source is greater than the RM_Size of the
1479    --    target for scalar operands. Normally in such a case we truncate some
1480    --    higher order bits of the source, and then sign/zero extend the result
1481    --    to form the output value. But if this flag is set, then we do not do
1482    --    any truncation, so for example, if an 8 bit input is converted to 5
1483    --    bit result which is in fact stored in 8 bits, then the high order
1484    --    three bits of the target result will be copied from the source. This
1485    --    is used for properly setting out of range values for use by pragmas
1486    --    Initialize_Scalars and Normalize_Scalars.
1487
1488    --  Original_Discriminant (Node2-Sem)
1489    --    Present in identifiers. Used in references to discriminants that
1490    --    appear in generic units. Because the names of the discriminants may be
1491    --    different in an instance, we use this field to recover the position of
1492    --    the discriminant in the original type, and replace it with the
1493    --    discriminant at the same position in the instantiated type.
1494
1495    --  Original_Entity (Node2-Sem)
1496    --    Present in numeric literals. Used to denote the named number that has
1497    --    been constant-folded into the given literal. If literal is from
1498    --    source, or the result of some other constant-folding operation, then
1499    --    Original_Entity is empty. This field is needed to handle properly
1500    --    named numbers in generic units, where the Associated_Node field
1501    --    interferes with the Entity field, making it impossible to preserve the
1502    --    original entity at the point of instantiation (ASIS problem).
1503
1504    --  Others_Discrete_Choices (List1-Sem)
1505    --    When a case statement or variant is analyzed, the semantic checks
1506    --    determine the actual list of choices that correspond to an others
1507    --    choice. This list is materialized for later use by the expander and
1508    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1509    --    this materialized list of choices, which is in standard format for a
1510    --    list of discrete choices, except that of course it cannot contain an
1511    --    N_Others_Choice entry.
1512
1513    --  Parameter_List_Truncated (Flag17-Sem)
1514    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1515    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1516    --    a result of a First_Optional_Parameter specification in an
1517    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1518    --    The truncation is done by the expander by removing trailing parameters
1519    --    from the argument list, in accordance with the set of rules allowing
1520    --    such parameter removal. In particular, parameters can be removed
1521    --    working from the end of the parameter list backwards up to and
1522    --    including the entry designated by First_Optional_Parameter in the
1523    --    Import pragma. Parameters can be removed if they are implicit and the
1524    --    default value is a known-at-compile-time value, including the use of
1525    --    the Null_Parameter attribute, or if explicit parameter values are
1526    --    present that match the corresponding defaults.
1527
1528    --  Parent_Spec (Node4-Sem)
1529    --    For a library unit that is a child unit spec (package or subprogram
1530    --    declaration, generic declaration or instantiation, or library level
1531    --    rename, this field points to the compilation unit node for the parent
1532    --    package specification. This field is Empty for library bodies (the
1533    --    parent spec in this case can be found from the corresponding spec).
1534
1535    --  PPC_Enabled (Flag5-Sem)
1536    --    Present in N_Pragma nodes. This flag is relevant only for precondition
1537    --    and postcondition nodes. It is true if the check corresponding to the
1538    --    pragma type is enabled at the point where the pragma appears.
1539
1540    --  Present_Expr (Uint3-Sem)
1541    --    Present in an N_Variant node. This has a meaningful value only after
1542    --    Gigi has back annotated the tree with representation information. At
1543    --    this point, it contains a reference to a gcc expression that depends
1544    --    on the values of one or more discriminants. Give a set of discriminant
1545    --    values, this expression evaluates to False (zero) if variant is not
1546    --    present, and True (non-zero) if it is present. See unit Repinfo for
1547    --    further details on gigi back annotation. This field is used during
1548    --    ASIS processing (data decomposition annex) to determine if a field is
1549    --    present or not.
1550
1551    --  Print_In_Hex (Flag13-Sem)
1552    --    Set on an N_Integer_Literal node to indicate that the value should be
1553    --    printed in hexadecimal in the sprint listing. Has no effect on
1554    --    legality or semantics of program, only on the displayed output. This
1555    --    is used to clarify output from the packed array cases.
1556
1557    --  Procedure_To_Call (Node2-Sem)
1558    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1559    --    and N_Extended_Return_Statement nodes. References the entity for the
1560    --    declaration of the procedure to be called to accomplish the required
1561    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1562    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1563    --    allocating the return value), and for the Deallocate procedure in the
1564    --    case of N_Free_Statement.
1565
1566    --  Raises_Constraint_Error (Flag7-Sem)
1567    --    Set on an expression whose evaluation will definitely fail constraint
1568    --    error check. In the case of static expressions, this flag must be set
1569    --    accurately (and if it is set, the expression is typically illegal
1570    --    unless it appears as a non-elaborated branch of a short-circuit form).
1571    --    For a non-static expression, this flag may be set whenever an
1572    --    expression (e.g. an aggregate) is known to raise constraint error. If
1573    --    set, the expression definitely will raise CE if elaborated at runtime.
1574    --    If not set, the expression may or may not raise CE. In other words, on
1575    --    static expressions, the flag is set accurately, on non-static
1576    --    expressions it is set conservatively.
1577
1578    --  Redundant_Use (Flag13-Sem)
1579    --    Present in nodes that can appear as an operand in a use clause or use
1580    --    type clause (identifiers, expanded names, attribute references). Set
1581    --    to indicate that a use is redundant (and therefore need not be undone
1582    --    on scope exit).
1583
1584    --  Renaming_Exception (Node2-Sem)
1585    --    Present in N_Exception_Declaration node. Used to point back to the
1586    --    exception renaming for an exception declared within a subprogram.
1587    --    What happens is that an exception declared in a subprogram is moved
1588    --    to the library level with a unique name, and the original exception
1589    --    becomes a renaming. This link from the library level exception to the
1590    --    renaming declaration allows registering of the proper exception name.
1591
1592    --  Return_Statement_Entity (Node5-Sem)
1593    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1594    --    Points to an E_Return_Statement representing the return statement.
1595
1596    --  Return_Object_Declarations (List3)
1597    --    Present in N_Extended_Return_Statement.
1598    --    Points to a list initially containing a single
1599    --    N_Object_Declaration representing the return object.
1600    --    We use a list (instead of just a pointer to the object decl)
1601    --    because Analyze wants to insert extra actions on this list.
1602
1603    --  Rounded_Result (Flag18-Sem)
1604    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1605    --    Used in the fixed-point cases to indicate that the result must be
1606    --    rounded as a result of the use of the 'Round attribute. Also used for
1607    --    integer N_Op_Divide nodes to indicate that the result should be
1608    --    rounded to the nearest integer (breaking ties away from zero), rather
1609    --    than truncated towards zero as usual. These rounded integer operations
1610    --    are the result of expansion of rounded fixed-point divide, conversion
1611    --    and multiplication operations.
1612
1613    --  SCIL_Entity (Node4-Sem)
1614    --    Present in SCIL nodes. Used to reference the tagged type associated
1615    --    with the SCIL node.
1616
1617    --  SCIL_Related_Node (Node1-Sem)
1618    --    Present in SCIL nodes. Used to reference a tree node that requires
1619    --    special processing in the CodePeer backend.
1620
1621    --  SCIL_Controlling_Tag (Node5-Sem)
1622    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1623    --    controlling tag of a dispatching call.
1624
1625    --  SCIL_Tag_Value (Node5-Sem)
1626    --    Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1627    --    value that is being tested.
1628
1629    --  SCIL_Target_Prim (Node2-Sem)
1630    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1631    --    type primitive associated with the SCIL node.
1632
1633    --  Scope (Node3-Sem)
1634    --    Present in defining identifiers, defining character literals and
1635    --    defining operator symbols (i.e. in all entities). The entities of a
1636    --    scope all use this field to reference the corresponding scope entity.
1637    --    See Einfo for further details.
1638
1639    --  Shift_Count_OK (Flag4-Sem)
1640    --    A flag present in shift nodes to indicate that the shift count is
1641    --    known to be in range, i.e. is in the range from zero to word length
1642    --    minus one. If this flag is not set, then the shift count may be
1643    --    outside this range, i.e. larger than the word length, and the code
1644    --    must ensure that such shift counts give the appropriate result.
1645
1646    --  Source_Type (Node1-Sem)
1647    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1648    --    source type entity for the unchecked conversion instantiation
1649    --    which gigi must do size validation for.
1650
1651    --  Static_Processing_OK (Flag4-Sem)
1652    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1653    --    flag is set, the full value of the aggregate can be determined at
1654    --    compile time and the aggregate can be passed as is to the back-end.
1655    --    In this event it is irrelevant whether this flag is set or not.
1656    --    However, if the flag Compile_Time_Known_Aggregate is not set but
1657    --    Static_Processing_OK is set, the aggregate can (but need not) be
1658    --    converted into a compile time known aggregate by the expander. See
1659    --    Sem_Aggr for the specific conditions under which an aggregate has its
1660    --    Static_Processing_OK flag set.
1661
1662    --  Storage_Pool (Node1-Sem)
1663    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1664    --    and N_Extended_Return_Statement nodes. References the entity for the
1665    --    storage pool to be used for the allocate or free call or for the
1666    --    allocation of the returned value from function. Empty indicates that
1667    --    the global default pool is to be used. Note that in the case
1668    --    of a return statement, this field is set only if the function returns
1669    --    value of a type whose size is not known at compile time on the
1670    --    secondary stack.
1671
1672    --  Suppress_Loop_Warnings (Flag17-Sem)
1673    --    Used in N_Loop_Statement node to indicate that warnings within the
1674    --    body of the loop should be suppressed. This is set when the range
1675    --    of a FOR loop is known to be null, or is probably null (loop would
1676    --    only execute if invalid values are present).
1677
1678    --  Target_Type (Node2-Sem)
1679    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1680    --    type entity for the unchecked conversion instantiation which gigi must
1681    --    do size validation for.
1682
1683    --  Then_Actions (List3-Sem)
1684    --    This field is present in conditional expression nodes. During code
1685    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1686    --    actions at an appropriate place in the tree to get elaborated at the
1687    --    right time. For conditional expressions, we have to be sure that the
1688    --    actions for the Then branch are only elaborated if the condition is
1689    --    True. The Then_Actions field is used as a temporary parking place for
1690    --    these actions. The final tree is always rewritten to eliminate the
1691    --    need for this field, so in the tree passed to Gigi, this field is
1692    --    always set to No_List.
1693
1694    --  Treat_Fixed_As_Integer (Flag14-Sem)
1695    --    This flag appears in operator nodes for divide, multiply, mod and rem
1696    --    on fixed-point operands. It indicates that the operands are to be
1697    --    treated as integer values, ignoring small values. This flag is only
1698    --    set as a result of expansion of fixed-point operations. Typically a
1699    --    fixed-point multiplication in the source generates subsidiary
1700    --    multiplication and division operations that work with the underlying
1701    --    integer values and have this flag set. Note that this flag is not
1702    --    needed on other arithmetic operations (add, neg, subtract etc.) since
1703    --    in these cases it is always the case that fixed is treated as integer.
1704    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1705    --    leave such nodes alone, and whoever makes them must set the correct
1706    --    Etype value.
1707
1708    --  TSS_Elist (Elist3-Sem)
1709    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1710    --    entries for each TSS (type support subprogram) associated with the
1711    --    frozen type. The elements of the list are the entities for the
1712    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1713    --    if there are no type support subprograms for the type or if the freeze
1714    --    node is not for a type.
1715
1716    --  Unreferenced_In_Spec (Flag7-Sem)
1717    --    Present in N_With_Clause nodes. Set if the with clause is on the
1718    --    package or subprogram spec where the main unit is the corresponding
1719    --    body, and is not referenced by the spec (it may still be referenced by
1720    --    the body, so this flag is used to generate the proper message (see
1721    --    Sem_Util.Check_Unused_Withs for details)
1722
1723    --  Was_Originally_Stub (Flag13-Sem)
1724    --    This flag is set in the node for a proper body that replaces stub.
1725    --    During the analysis procedure, stubs in some situations get rewritten
1726    --    by the corresponding bodies, and we set this flag to remember that
1727    --    this happened. Note that it is not good enough to rely on the use of
1728    --    Original_Node here because of the case of nested instantiations where
1729    --    the substituted node can be copied.
1730
1731    --  Zero_Cost_Handling (Flag5-Sem)
1732    --    This flag is set in all handled sequence of statement and exception
1733    --    handler nodes if exceptions are to be handled using the zero-cost
1734    --    mechanism (see Ada.Exceptions and System.Exceptions in files
1735    --    a-except.ads/adb and s-except.ads for full details). What gigi needs
1736    --    to do for such a handler is simply to put the code in the handler
1737    --    somewhere. The front end has generated all necessary labels.
1738
1739    --------------------------------------------------
1740    -- Note on Use of End_Label and End_Span Fields --
1741    --------------------------------------------------
1742
1743    --  Several constructs have end lines:
1744
1745    --    Loop Statement             end loop [loop_IDENTIFIER];
1746    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1747    --    Task Definition            end [task_IDENTIFIER]
1748    --    Protected Definition       end [protected_IDENTIFIER]
1749    --    Protected Body             end [protected_IDENTIFIER]
1750
1751    --    Block Statement            end [block_IDENTIFIER];
1752    --    Subprogram Body            end [DESIGNATOR];
1753    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1754    --    Task Body                  end [task_IDENTIFIER];
1755    --    Accept Statement           end [entry_IDENTIFIER]];
1756    --    Entry Body                 end [entry_IDENTIFIER];
1757
1758    --    If Statement               end if;
1759    --    Case Statement             end case;
1760
1761    --    Record Definition          end record;
1762    --    Enumeration Definition     );
1763
1764    --  The End_Label and End_Span fields are used to mark the locations of
1765    --  these lines, and also keep track of the label in the case where a label
1766    --  is present.
1767
1768    --  For the first group above, the End_Label field of the corresponding node
1769    --  is used to point to the label identifier. In the case where there is no
1770    --  label in the source, the parser supplies a dummy identifier (with
1771    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1772    --  marks the location of the token following the END token.
1773
1774    --  For the second group, the use of End_Label is similar, but the End_Label
1775    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1776    --  simply because in some cases there is no room in the parent node.
1777
1778    --  For the third group, there is never any label, and instead of using
1779    --  End_Label, we use the End_Span field which gives the location of the
1780    --  token following END, relative to the starting Sloc of the construct,
1781    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1782    --  following the End_Label.
1783
1784    --  The record definition case is handled specially, we treat it as though
1785    --  it required an optional label which is never present, and so the parser
1786    --  always builds a dummy identifier with Comes From Source set False. The
1787    --  reason we do this, rather than using End_Span in this case, is that we
1788    --  want to generate a cross-ref entry for the end of a record, since it
1789    --  represents a scope for name declaration purposes.
1790
1791    --  The enumeration definition case is handled in an exactly similar manner,
1792    --  building a dummy identifier to get a cross-reference.
1793
1794    --  Note: the reason we store the difference as a Uint, instead of storing
1795    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
1796    --  distinguished from other types of values, and we count on all general
1797    --  use fields being self describing. To make things easier for clients,
1798    --  note that we provide function End_Location, and procedure
1799    --  Set_End_Location to allow access to the logical value (which is the
1800    --  Source_Ptr value for the end token).
1801
1802    ---------------------
1803    -- Syntactic Nodes --
1804    ---------------------
1805
1806       ---------------------
1807       -- 2.3  Identifier --
1808       ---------------------
1809
1810       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1811       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1812
1813       --  An IDENTIFIER shall not be a reserved word
1814
1815       --  In the Ada grammar identifiers are the bottom level tokens which have
1816       --  very few semantics. Actual program identifiers are direct names. If
1817       --  we were being 100% honest with the grammar, then we would have a node
1818       --  called N_Direct_Name which would point to an identifier. However,
1819       --  that's too many extra nodes, so we just use the N_Identifier node
1820       --  directly as a direct name, and it contains the expression fields and
1821       --  Entity field that correspond to its use as a direct name. In those
1822       --  few cases where identifiers appear in contexts where they are not
1823       --  direct names (pragmas, pragma argument associations, attribute
1824       --  references and attribute definition clauses), the Chars field of the
1825       --  node contains the Name_Id for the identifier name.
1826
1827       --  Note: in GNAT, a reserved word can be treated as an identifier in two
1828       --  cases. First, an incorrect use of a reserved word as an identifier is
1829       --  diagnosed and then treated as a normal identifier. Second, an
1830       --  attribute designator of the form of a reserved word (access, delta,
1831       --  digits, range) is treated as an identifier.
1832
1833       --  Note: The set of letters that is permitted in an identifier depends
1834       --  on the character set in use. See package Csets for full details.
1835
1836       --  N_Identifier
1837       --  Sloc points to identifier
1838       --  Chars (Name1) contains the Name_Id for the identifier
1839       --  Entity (Node4-Sem)
1840       --  Associated_Node (Node4-Sem)
1841       --  Original_Discriminant (Node2-Sem)
1842       --  Redundant_Use (Flag13-Sem)
1843       --  Has_Private_View (Flag11-Sem) (set in generic units)
1844       --  plus fields for expression
1845
1846       --------------------------
1847       -- 2.4  Numeric Literal --
1848       --------------------------
1849
1850       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1851
1852       ----------------------------
1853       -- 2.4.1  Decimal Literal --
1854       ----------------------------
1855
1856       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1857
1858       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1859
1860       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1861
1862       --  Decimal literals appear in the tree as either integer literal nodes
1863       --  or real literal nodes, depending on whether a period is present.
1864
1865       --  Note: literal nodes appear as a result of direct use of literals
1866       --  in the source program, and also as the result of evaluating
1867       --  expressions at compile time. In the latter case, it is possible
1868       --  to construct real literals that have no syntactic representation
1869       --  using the standard literal format. Such literals are listed by
1870       --  Sprint using the notation [numerator / denominator].
1871
1872       --  Note: the value of an integer literal node created by the front end
1873       --  is never outside the range of values of the base type. However, it
1874       --  can be the case that the value is outside the range of the
1875       --  particular subtype. This happens in the case of integer overflows
1876       --  with checks suppressed.
1877
1878       --  N_Integer_Literal
1879       --  Sloc points to literal
1880       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1881       --  has been constant-folded into its literal value.
1882       --  Intval (Uint3) contains integer value of literal
1883       --  plus fields for expression
1884       --  Print_In_Hex (Flag13-Sem)
1885
1886       --  N_Real_Literal
1887       --  Sloc points to literal
1888       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1889       --  has been constant-folded into its literal value.
1890       --  Realval (Ureal3) contains real value of literal
1891       --  Corresponding_Integer_Value (Uint4-Sem)
1892       --  Is_Machine_Number (Flag11-Sem)
1893       --  plus fields for expression
1894
1895       --------------------------
1896       -- 2.4.2  Based Literal --
1897       --------------------------
1898
1899       --  BASED_LITERAL ::=
1900       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1901
1902       --  BASE ::= NUMERAL
1903
1904       --  BASED_NUMERAL ::=
1905       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1906
1907       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1908
1909       --  Based literals appear in the tree as either integer literal nodes
1910       --  or real literal nodes, depending on whether a period is present.
1911
1912       ----------------------------
1913       -- 2.5  Character Literal --
1914       ----------------------------
1915
1916       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1917
1918       --  N_Character_Literal
1919       --  Sloc points to literal
1920       --  Chars (Name1) contains the Name_Id for the identifier
1921       --  Char_Literal_Value (Uint2) contains the literal value
1922       --  Entity (Node4-Sem)
1923       --  Associated_Node (Node4-Sem)
1924       --  Has_Private_View (Flag11-Sem) set in generic units.
1925       --  plus fields for expression
1926
1927       --  Note: the Entity field will be missing (set to Empty) for character
1928       --  literals whose type is Standard.Wide_Character or Standard.Character
1929       --  or a type derived from one of these two. In this case the character
1930       --  literal stands for its own coding. The reason we take this irregular
1931       --  short cut is to avoid the need to build lots of junk defining
1932       --  character literal nodes.
1933
1934       -------------------------
1935       -- 2.6  String Literal --
1936       -------------------------
1937
1938       --  STRING LITERAL ::= "{STRING_ELEMENT}"
1939
1940       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
1941       --  single GRAPHIC_CHARACTER other than a quotation mark.
1942       --
1943       --  Is_Folded_In_Parser is True if the parser created this literal by
1944       --  folding a sequence of "&" operators. For example, if the source code
1945       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1946       --  is set. This flag is needed because the parser doesn't know about
1947       --  visibility, so the folded result might be wrong, and semantic
1948       --  analysis needs to check for that.
1949
1950       --  N_String_Literal
1951       --  Sloc points to literal
1952       --  Strval (Str3) contains Id of string value
1953       --  Has_Wide_Character (Flag11-Sem)
1954       --  Has_Wide_Wide_Character (Flag13-Sem)
1955       --  Is_Folded_In_Parser (Flag4)
1956       --  plus fields for expression
1957
1958       ------------------
1959       -- 2.7  Comment --
1960       ------------------
1961
1962       --  A COMMENT starts with two adjacent hyphens and extends up to the
1963       --  end of the line. A COMMENT may appear on any line of a program.
1964
1965       --  Comments are skipped by the scanner and do not appear in the tree.
1966       --  It is possible to reconstruct the position of comments with respect
1967       --  to the elements of the tree by using the source position (Sloc)
1968       --  pointers that appear in every tree node.
1969
1970       -----------------
1971       -- 2.8  Pragma --
1972       -----------------
1973
1974       --  PRAGMA ::= pragma IDENTIFIER
1975       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1976
1977       --  Note that a pragma may appear in the tree anywhere a declaration
1978       --  or a statement may appear, as well as in some other situations
1979       --  which are explicitly documented.
1980
1981       --  N_Pragma
1982       --  Sloc points to pragma identifier
1983       --  Next_Pragma (Node1-Sem)
1984       --  Pragma_Argument_Associations (List2) (set to No_List if none)
1985       --  Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1986       --  Pragma_Identifier (Node4)
1987       --  Next_Rep_Item (Node5-Sem)
1988       --  PPC_Enabled (Flag5-Sem)
1989
1990       --  Note: we should have a section on what pragmas are passed on to
1991       --  the back end to be processed. This section should note that pragma
1992       --  Psect_Object is always converted to Common_Object, but there are
1993       --  undoubtedly many other similar notes required ???
1994
1995       --  Note: a utility function Pragma_Name may be applied to pragma nodes
1996       --  to conveniently obtain the Chars field of the Pragma_Identifier.
1997
1998       --------------------------------------
1999       -- 2.8  Pragma Argument Association --
2000       --------------------------------------
2001
2002       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2003       --    [pragma_argument_IDENTIFIER =>] NAME
2004       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
2005
2006       --  N_Pragma_Argument_Association
2007       --  Sloc points to first token in association
2008       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
2009       --  Expression (Node3)
2010
2011       ------------------------
2012       -- 2.9  Reserved Word --
2013       ------------------------
2014
2015       --  Reserved words are parsed by the scanner, and returned as the
2016       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2017
2018       ----------------------------
2019       -- 3.1  Basic Declaration --
2020       ----------------------------
2021
2022       --  BASIC_DECLARATION ::=
2023       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
2024       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
2025       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
2026       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
2027       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
2028       --  | GENERIC_INSTANTIATION
2029
2030       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2031       --  see further description in section on semantic nodes.
2032
2033       --  Also, in the tree that is constructed, a pragma may appear
2034       --  anywhere that a declaration may appear.
2035
2036       ------------------------------
2037       -- 3.1  Defining Identifier --
2038       ------------------------------
2039
2040       --  DEFINING_IDENTIFIER ::= IDENTIFIER
2041
2042       --  A defining identifier is an entity, which has additional fields
2043       --  depending on the setting of the Ekind field. These additional
2044       --  fields are defined (and access subprograms declared) in package
2045       --  Einfo.
2046
2047       --  Note: N_Defining_Identifier is an extended node whose fields are
2048       --  deliberate layed out to match the layout of fields in an ordinary
2049       --  N_Identifier node allowing for easy alteration of an identifier
2050       --  node into a defining identifier node. For details, see procedure
2051       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2052
2053       --  N_Defining_Identifier
2054       --  Sloc points to identifier
2055       --  Chars (Name1) contains the Name_Id for the identifier
2056       --  Next_Entity (Node2-Sem)
2057       --  Scope (Node3-Sem)
2058       --  Etype (Node5-Sem)
2059
2060       -----------------------------
2061       -- 3.2.1  Type Declaration --
2062       -----------------------------
2063
2064       --  TYPE_DECLARATION ::=
2065       --    FULL_TYPE_DECLARATION
2066       --  | INCOMPLETE_TYPE_DECLARATION
2067       --  | PRIVATE_TYPE_DECLARATION
2068       --  | PRIVATE_EXTENSION_DECLARATION
2069
2070       ----------------------------------
2071       -- 3.2.1  Full Type Declaration --
2072       ----------------------------------
2073
2074       --  FULL_TYPE_DECLARATION ::=
2075       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2076       --      is TYPE_DEFINITION;
2077       --  | TASK_TYPE_DECLARATION
2078       --  | PROTECTED_TYPE_DECLARATION
2079
2080       --  The full type declaration node is used only for the first case. The
2081       --  second case (concurrent type declaration), is represented directly
2082       --  by a task type declaration or a protected type declaration.
2083
2084       --  N_Full_Type_Declaration
2085       --  Sloc points to TYPE
2086       --  Defining_Identifier (Node1)
2087       --  Discriminant_Specifications (List4) (set to No_List if none)
2088       --  Type_Definition (Node3)
2089       --  Discr_Check_Funcs_Built (Flag11-Sem)
2090
2091       ----------------------------
2092       -- 3.2.1  Type Definition --
2093       ----------------------------
2094
2095       --  TYPE_DEFINITION ::=
2096       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2097       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2098       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2099       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2100
2101       --------------------------------
2102       -- 3.2.2  Subtype Declaration --
2103       --------------------------------
2104
2105       --  SUBTYPE_DECLARATION ::=
2106       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2107
2108       --  The subtype indication field is set to Empty for subtypes
2109       --  declared in package Standard (Positive, Natural).
2110
2111       --  N_Subtype_Declaration
2112       --  Sloc points to SUBTYPE
2113       --  Defining_Identifier (Node1)
2114       --  Null_Exclusion_Present (Flag11)
2115       --  Subtype_Indication (Node5)
2116       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2117       --  Exception_Junk (Flag8-Sem)
2118
2119       -------------------------------
2120       -- 3.2.2  Subtype Indication --
2121       -------------------------------
2122
2123       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2124
2125       --  Note: if no constraint is present, the subtype indication appears
2126       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2127       --  node is used only if a constraint is present.
2128
2129       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2130       --  with the null-exclusion part (see AI-231), we had to introduce a new
2131       --  attribute in all the parents of subtype_indication nodes to indicate
2132       --  if the null-exclusion is present.
2133
2134       --  Note: the reason that this node has expression fields is that a
2135       --  subtype indication can appear as an operand of a membership test.
2136
2137       --  N_Subtype_Indication
2138       --  Sloc points to first token of subtype mark
2139       --  Subtype_Mark (Node4)
2140       --  Constraint (Node3)
2141       --  Etype (Node5-Sem)
2142       --  Must_Not_Freeze (Flag8-Sem)
2143
2144       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2145       --  reason for this redundancy is so that in a list of array index types,
2146       --  the Etype can be uniformly accessed to determine the subscript type.
2147       --  This means that no Itype is constructed for the actual subtype that
2148       --  is created by the subtype indication. If such an Itype is required,
2149       --  it is constructed in the context in which the indication appears.
2150
2151       -------------------------
2152       -- 3.2.2  Subtype Mark --
2153       -------------------------
2154
2155       --  SUBTYPE_MARK ::= subtype_NAME
2156
2157       -----------------------
2158       -- 3.2.2  Constraint --
2159       -----------------------
2160
2161       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2162
2163       ------------------------------
2164       -- 3.2.2  Scalar Constraint --
2165       ------------------------------
2166
2167       --  SCALAR_CONSTRAINT ::=
2168       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2169
2170       ---------------------------------
2171       -- 3.2.2  Composite Constraint --
2172       ---------------------------------
2173
2174       --  COMPOSITE_CONSTRAINT ::=
2175       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2176
2177       -------------------------------
2178       -- 3.3.1  Object Declaration --
2179       -------------------------------
2180
2181       --  OBJECT_DECLARATION ::=
2182       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2183       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2184       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2185       --      ACCESS_DEFINITION [:= EXPRESSION];
2186       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2187       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2188       --  | SINGLE_TASK_DECLARATION
2189       --  | SINGLE_PROTECTED_DECLARATION
2190
2191       --  Note: aliased is not permitted in Ada 83 mode
2192
2193       --  The N_Object_Declaration node is only for the first two cases.
2194       --  Single task declaration is handled by P_Task (9.1)
2195       --  Single protected declaration is handled by P_protected (9.5)
2196
2197       --  Although the syntax allows multiple identifiers in the list, the
2198       --  semantics is as though successive declarations were given with
2199       --  identical type definition and expression components. To simplify
2200       --  semantic processing, the parser represents a multiple declaration
2201       --  case as a sequence of single declarations, using the More_Ids and
2202       --  Prev_Ids flags to preserve the original source form as described
2203       --  in the section on "Handling of Defining Identifier Lists".
2204
2205       --  The flag Has_Init_Expression is set if an initializing expression
2206       --  is present. Normally it is set if and only if Expression contains
2207       --  a non-empty value, but there is an exception to this. When the
2208       --  initializing expression is an aggregate which requires explicit
2209       --  assignments, the Expression field gets set to Empty, but this flag
2210       --  is still set, so we don't forget we had an initializing expression.
2211
2212       --  Note: if a range check is required for the initialization
2213       --  expression then the Do_Range_Check flag is set in the Expression,
2214       --  with the check being done against the type given by the object
2215       --  definition, which is also the Etype of the defining identifier.
2216
2217       --  Note: the contents of the Expression field must be ignored (i.e.
2218       --  treated as though it were Empty) if No_Initialization is set True.
2219
2220       --  Note: the back end places some restrictions on the form of the
2221       --  Expression field. If the object being declared is Atomic, then
2222       --  the Expression may not have the form of an aggregate (since this
2223       --  might cause the back end to generate separate assignments). In this
2224       --  case the front end must generate an extra temporary and initialize
2225       --  this temporary as required (the temporary itself is not atomic).
2226
2227       --  Note: there is not node kind for object definition. Instead, the
2228       --  corresponding field holds a subtype indication, an array type
2229       --  definition, or (Ada 2005, AI-406) an access definition.
2230
2231       --  N_Object_Declaration
2232       --  Sloc points to first identifier
2233       --  Defining_Identifier (Node1)
2234       --  Aliased_Present (Flag4) set if ALIASED appears
2235       --  Constant_Present (Flag17) set if CONSTANT appears
2236       --  Null_Exclusion_Present (Flag11)
2237       --  Object_Definition (Node4) subtype indic./array type def./access def.
2238       --  Expression (Node3) (set to Empty if not present)
2239       --  Handler_List_Entry (Node2-Sem)
2240       --  Corresponding_Generic_Association (Node5-Sem)
2241       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2242       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2243       --  No_Initialization (Flag13-Sem)
2244       --  Assignment_OK (Flag15-Sem)
2245       --  Exception_Junk (Flag8-Sem)
2246       --  Is_Subprogram_Descriptor (Flag16-Sem)
2247       --  Has_Init_Expression (Flag14)
2248
2249       -------------------------------------
2250       -- 3.3.1  Defining Identifier List --
2251       -------------------------------------
2252
2253       --  DEFINING_IDENTIFIER_LIST ::=
2254       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2255
2256       -------------------------------
2257       -- 3.3.2  Number Declaration --
2258       -------------------------------
2259
2260       --  NUMBER_DECLARATION ::=
2261       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2262
2263       --  Although the syntax allows multiple identifiers in the list, the
2264       --  semantics is as though successive declarations were given with
2265       --  identical expressions. To simplify semantic processing, the parser
2266       --  represents a multiple declaration case as a sequence of single
2267       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2268       --  the original source form as described in the section on "Handling
2269       --  of Defining Identifier Lists".
2270
2271       --  N_Number_Declaration
2272       --  Sloc points to first identifier
2273       --  Defining_Identifier (Node1)
2274       --  Expression (Node3)
2275       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2276       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2277
2278       ----------------------------------
2279       -- 3.4  Derived Type Definition --
2280       ----------------------------------
2281
2282       --  DERIVED_TYPE_DEFINITION ::=
2283       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2284       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2285
2286       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2287       --  in Ada 83 mode
2288
2289       --  Note: a record extension part is required if ABSTRACT is present
2290
2291       --  N_Derived_Type_Definition
2292       --  Sloc points to NEW
2293       --  Abstract_Present (Flag4)
2294       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2295       --  Subtype_Indication (Node5)
2296       --  Record_Extension_Part (Node3) (set to Empty if not present)
2297       --  Limited_Present (Flag17)
2298       --  Task_Present (Flag5) set in task interfaces
2299       --  Protected_Present (Flag6) set in protected interfaces
2300       --  Synchronized_Present (Flag7) set in interfaces
2301       --  Interface_List (List2) (set to No_List if none)
2302       --  Interface_Present (Flag16) set in abstract interfaces
2303
2304       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2305       --        Interface_List, and Interface_Present are used for abstract
2306       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2307
2308       ---------------------------
2309       -- 3.5  Range Constraint --
2310       ---------------------------
2311
2312       --  RANGE_CONSTRAINT ::= range RANGE
2313
2314       --  N_Range_Constraint
2315       --  Sloc points to RANGE
2316       --  Range_Expression (Node4)
2317
2318       ----------------
2319       -- 3.5  Range --
2320       ----------------
2321
2322       --  RANGE ::=
2323       --    RANGE_ATTRIBUTE_REFERENCE
2324       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2325
2326       --  Note: the case of a range given as a range attribute reference
2327       --  appears directly in the tree as an attribute reference.
2328
2329       --  Note: the field name for a reference to a range is Range_Expression
2330       --  rather than Range, because range is a reserved keyword in Ada!
2331
2332       --  Note: the reason that this node has expression fields is that a
2333       --  range can appear as an operand of a membership test. The Etype
2334       --  field is the type of the range (we do NOT construct an implicit
2335       --  subtype to represent the range exactly).
2336
2337       --  N_Range
2338       --  Sloc points to ..
2339       --  Low_Bound (Node1)
2340       --  High_Bound (Node2)
2341       --  Includes_Infinities (Flag11)
2342       --  plus fields for expression
2343
2344       --  Note: if the range appears in a context, such as a subtype
2345       --  declaration, where range checks are required on one or both of
2346       --  the expression fields, then type conversion nodes are inserted
2347       --  to represent the required checks.
2348
2349       ----------------------------------------
2350       -- 3.5.1  Enumeration Type Definition --
2351       ----------------------------------------
2352
2353       --  ENUMERATION_TYPE_DEFINITION ::=
2354       --    (ENUMERATION_LITERAL_SPECIFICATION
2355       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2356
2357       --  Note: the Literals field in the node described below is null for
2358       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2359       --  which special processing handles these types as special cases.
2360
2361       --  N_Enumeration_Type_Definition
2362       --  Sloc points to left parenthesis
2363       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2364       --  End_Label (Node4) (set to Empty if internally generated record)
2365
2366       ----------------------------------------------
2367       -- 3.5.1  Enumeration Literal Specification --
2368       ----------------------------------------------
2369
2370       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2371       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2372
2373       ---------------------------------------
2374       -- 3.5.1  Defining Character Literal --
2375       ---------------------------------------
2376
2377       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2378
2379       --  A defining character literal is an entity, which has additional
2380       --  fields depending on the setting of the Ekind field. These
2381       --  additional fields are defined (and access subprograms declared)
2382       --  in package Einfo.
2383
2384       --  Note: N_Defining_Character_Literal is an extended node whose fields
2385       --  are deliberate layed out to match the layout of fields in an ordinary
2386       --  N_Character_Literal node allowing for easy alteration of a character
2387       --  literal node into a defining character literal node. For details, see
2388       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2389
2390       --  N_Defining_Character_Literal
2391       --  Sloc points to literal
2392       --  Chars (Name1) contains the Name_Id for the identifier
2393       --  Next_Entity (Node2-Sem)
2394       --  Scope (Node3-Sem)
2395       --  Etype (Node5-Sem)
2396
2397       ------------------------------------
2398       -- 3.5.4  Integer Type Definition --
2399       ------------------------------------
2400
2401       --  Note: there is an error in this rule in the latest version of the
2402       --  grammar, so we have retained the old rule pending clarification.
2403
2404       --  INTEGER_TYPE_DEFINITION ::=
2405       --    SIGNED_INTEGER_TYPE_DEFINITION
2406       --  | MODULAR_TYPE_DEFINITION
2407
2408       -------------------------------------------
2409       -- 3.5.4  Signed Integer Type Definition --
2410       -------------------------------------------
2411
2412       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2413       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2414
2415       --  Note: the Low_Bound and High_Bound fields are set to Empty
2416       --  for integer types defined in package Standard.
2417
2418       --  N_Signed_Integer_Type_Definition
2419       --  Sloc points to RANGE
2420       --  Low_Bound (Node1)
2421       --  High_Bound (Node2)
2422
2423       ------------------------------------
2424       -- 3.5.4  Modular Type Definition --
2425       ------------------------------------
2426
2427       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2428
2429       --  N_Modular_Type_Definition
2430       --  Sloc points to MOD
2431       --  Expression (Node3)
2432
2433       ---------------------------------
2434       -- 3.5.6  Real Type Definition --
2435       ---------------------------------
2436
2437       --  REAL_TYPE_DEFINITION ::=
2438       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2439
2440       --------------------------------------
2441       -- 3.5.7  Floating Point Definition --
2442       --------------------------------------
2443
2444       --  FLOATING_POINT_DEFINITION ::=
2445       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2446
2447       --  Note: The Digits_Expression and Real_Range_Specifications fields
2448       --  are set to Empty for floating-point types declared in Standard.
2449
2450       --  N_Floating_Point_Definition
2451       --  Sloc points to DIGITS
2452       --  Digits_Expression (Node2)
2453       --  Real_Range_Specification (Node4) (set to Empty if not present)
2454
2455       -------------------------------------
2456       -- 3.5.7  Real Range Specification --
2457       -------------------------------------
2458
2459       --  REAL_RANGE_SPECIFICATION ::=
2460       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2461
2462       --  N_Real_Range_Specification
2463       --  Sloc points to RANGE
2464       --  Low_Bound (Node1)
2465       --  High_Bound (Node2)
2466
2467       -----------------------------------
2468       -- 3.5.9  Fixed Point Definition --
2469       -----------------------------------
2470
2471       --  FIXED_POINT_DEFINITION ::=
2472       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2473
2474       --------------------------------------------
2475       -- 3.5.9  Ordinary Fixed Point Definition --
2476       --------------------------------------------
2477
2478       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2479       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2480
2481       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2482
2483       --  N_Ordinary_Fixed_Point_Definition
2484       --  Sloc points to DELTA
2485       --  Delta_Expression (Node3)
2486       --  Real_Range_Specification (Node4)
2487
2488       -------------------------------------------
2489       -- 3.5.9  Decimal Fixed Point Definition --
2490       -------------------------------------------
2491
2492       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2493       --    delta static_EXPRESSION
2494       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2495
2496       --  Note: decimal types are not permitted in Ada 83 mode
2497
2498       --  N_Decimal_Fixed_Point_Definition
2499       --  Sloc points to DELTA
2500       --  Delta_Expression (Node3)
2501       --  Digits_Expression (Node2)
2502       --  Real_Range_Specification (Node4) (set to Empty if not present)
2503
2504       ------------------------------
2505       -- 3.5.9  Digits Constraint --
2506       ------------------------------
2507
2508       --  DIGITS_CONSTRAINT ::=
2509       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2510
2511       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2512       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2513
2514       --  N_Digits_Constraint
2515       --  Sloc points to DIGITS
2516       --  Digits_Expression (Node2)
2517       --  Range_Constraint (Node4) (set to Empty if not present)
2518
2519       --------------------------------
2520       -- 3.6  Array Type Definition --
2521       --------------------------------
2522
2523       --  ARRAY_TYPE_DEFINITION ::=
2524       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2525
2526       -----------------------------------------
2527       -- 3.6  Unconstrained Array Definition --
2528       -----------------------------------------
2529
2530       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2531       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2532       --      COMPONENT_DEFINITION
2533
2534       --  Note: dimensionality of array is indicated by number of entries in
2535       --  the Subtype_Marks list, which has one entry for each dimension.
2536
2537       --  N_Unconstrained_Array_Definition
2538       --  Sloc points to ARRAY
2539       --  Subtype_Marks (List2)
2540       --  Component_Definition (Node4)
2541
2542       -----------------------------------
2543       -- 3.6  Index Subtype Definition --
2544       -----------------------------------
2545
2546       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2547
2548       --  There is no explicit node in the tree for an index subtype
2549       --  definition since the N_Unconstrained_Array_Definition node
2550       --  incorporates the type marks which appear in this context.
2551
2552       ---------------------------------------
2553       -- 3.6  Constrained Array Definition --
2554       ---------------------------------------
2555
2556       --  CONSTRAINED_ARRAY_DEFINITION ::=
2557       --    array (DISCRETE_SUBTYPE_DEFINITION
2558       --      {, DISCRETE_SUBTYPE_DEFINITION})
2559       --        of COMPONENT_DEFINITION
2560
2561       --  Note: dimensionality of array is indicated by number of entries
2562       --  in the Discrete_Subtype_Definitions list, which has one entry
2563       --  for each dimension.
2564
2565       --  N_Constrained_Array_Definition
2566       --  Sloc points to ARRAY
2567       --  Discrete_Subtype_Definitions (List2)
2568       --  Component_Definition (Node4)
2569
2570       --------------------------------------
2571       -- 3.6  Discrete Subtype Definition --
2572       --------------------------------------
2573
2574       --  DISCRETE_SUBTYPE_DEFINITION ::=
2575       --    discrete_SUBTYPE_INDICATION | RANGE
2576
2577       -------------------------------
2578       -- 3.6  Component Definition --
2579       -------------------------------
2580
2581       --  COMPONENT_DEFINITION ::=
2582       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2583
2584       --  Note: although the syntax does not permit a component definition to
2585       --  be an anonymous array (and the parser will diagnose such an attempt
2586       --  with an appropriate message), it is possible for anonymous arrays
2587       --  to appear as component definitions. The semantics and back end handle
2588       --  this case properly, and the expander in fact generates such cases.
2589       --  Access_Definition is an optional field that gives support to
2590       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2591       --  Subtype_Indication field or else the Access_Definition field.
2592
2593       --  N_Component_Definition
2594       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2595       --  Aliased_Present (Flag4)
2596       --  Null_Exclusion_Present (Flag11)
2597       --  Subtype_Indication (Node5) (set to Empty if not present)
2598       --  Access_Definition (Node3) (set to Empty if not present)
2599
2600       -----------------------------
2601       -- 3.6.1  Index Constraint --
2602       -----------------------------
2603
2604       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2605
2606       --  It is not in general possible to distinguish between discriminant
2607       --  constraints and index constraints at parse time, since a simple
2608       --  name could be either the subtype mark of a discrete range, or an
2609       --  expression in a discriminant association with no name. Either
2610       --  entry appears simply as the name, and the semantic parse must
2611       --  distinguish between the two cases. Thus we use a common tree
2612       --  node format for both of these constraint types.
2613
2614       --  See Discriminant_Constraint for format of node
2615
2616       ---------------------------
2617       -- 3.6.1  Discrete Range --
2618       ---------------------------
2619
2620       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2621
2622       ----------------------------
2623       -- 3.7  Discriminant Part --
2624       ----------------------------
2625
2626       --  DISCRIMINANT_PART ::=
2627       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2628
2629       ------------------------------------
2630       -- 3.7  Unknown Discriminant Part --
2631       ------------------------------------
2632
2633       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2634
2635       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2636
2637       --  There is no explicit node in the tree for an unknown discriminant
2638       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2639       --  parent node.
2640
2641       ----------------------------------
2642       -- 3.7  Known Discriminant Part --
2643       ----------------------------------
2644
2645       --  KNOWN_DISCRIMINANT_PART ::=
2646       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2647
2648       -------------------------------------
2649       -- 3.7  Discriminant Specification --
2650       -------------------------------------
2651
2652       --  DISCRIMINANT_SPECIFICATION ::=
2653       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2654       --      [:= DEFAULT_EXPRESSION]
2655       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2656       --      [:= DEFAULT_EXPRESSION]
2657
2658       --  Although the syntax allows multiple identifiers in the list, the
2659       --  semantics is as though successive specifications were given with
2660       --  identical type definition and expression components. To simplify
2661       --  semantic processing, the parser represents a multiple declaration
2662       --  case as a sequence of single specifications, using the More_Ids and
2663       --  Prev_Ids flags to preserve the original source form as described
2664       --  in the section on "Handling of Defining Identifier Lists".
2665
2666       --  N_Discriminant_Specification
2667       --  Sloc points to first identifier
2668       --  Defining_Identifier (Node1)
2669       --  Null_Exclusion_Present (Flag11)
2670       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2671       --  Expression (Node3) (set to Empty if no default expression)
2672       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2673       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2674
2675       -----------------------------
2676       -- 3.7  Default Expression --
2677       -----------------------------
2678
2679       --  DEFAULT_EXPRESSION ::= EXPRESSION
2680
2681       ------------------------------------
2682       -- 3.7.1  Discriminant Constraint --
2683       ------------------------------------
2684
2685       --  DISCRIMINANT_CONSTRAINT ::=
2686       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2687
2688       --  It is not in general possible to distinguish between discriminant
2689       --  constraints and index constraints at parse time, since a simple
2690       --  name could be either the subtype mark of a discrete range, or an
2691       --  expression in a discriminant association with no name. Either
2692       --  entry appears simply as the name, and the semantic parse must
2693       --  distinguish between the two cases. Thus we use a common tree
2694       --  node format for both of these constraint types.
2695
2696       --  N_Index_Or_Discriminant_Constraint
2697       --  Sloc points to left paren
2698       --  Constraints (List1) points to list of discrete ranges or
2699       --    discriminant associations
2700
2701       -------------------------------------
2702       -- 3.7.1  Discriminant Association --
2703       -------------------------------------
2704
2705       --  DISCRIMINANT_ASSOCIATION ::=
2706       --    [discriminant_SELECTOR_NAME
2707       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2708
2709       --  Note: a discriminant association that has no selector name list
2710       --  appears directly as an expression in the tree.
2711
2712       --  N_Discriminant_Association
2713       --  Sloc points to first token of discriminant association
2714       --  Selector_Names (List1) (always non-empty, since if no selector
2715       --   names are present, this node is not used, see comment above)
2716       --  Expression (Node3)
2717
2718       ---------------------------------
2719       -- 3.8  Record Type Definition --
2720       ---------------------------------
2721
2722       --  RECORD_TYPE_DEFINITION ::=
2723       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2724
2725       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2726
2727       --  There is no explicit node in the tree for a record type definition.
2728       --  Instead the flags for Tagged_Present and Limited_Present appear in
2729       --  the N_Record_Definition node for a record definition appearing in
2730       --  the context of a record type definition.
2731
2732       ----------------------------
2733       -- 3.8  Record Definition --
2734       ----------------------------
2735
2736       --  RECORD_DEFINITION ::=
2737       --    record
2738       --      COMPONENT_LIST
2739       --    end record
2740       --  | null record
2741
2742       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2743       --  flags appear only for a record definition appearing in a record
2744       --  type definition.
2745
2746       --  Note: the NULL RECORD case is not permitted in Ada 83
2747
2748       --  N_Record_Definition
2749       --  Sloc points to RECORD or NULL
2750       --  End_Label (Node4) (set to Empty if internally generated record)
2751       --  Abstract_Present (Flag4)
2752       --  Tagged_Present (Flag15)
2753       --  Limited_Present (Flag17)
2754       --  Component_List (Node1) empty in null record case
2755       --  Null_Present (Flag13) set in null record case
2756       --  Task_Present (Flag5) set in task interfaces
2757       --  Protected_Present (Flag6) set in protected interfaces
2758       --  Synchronized_Present (Flag7) set in interfaces
2759       --  Interface_Present (Flag16) set in abstract interfaces
2760       --  Interface_List (List2) (set to No_List if none)
2761
2762       --  Note: Task_Present, Protected_Present, Synchronized _Present,
2763       --        Interface_List and Interface_Present are used for abstract
2764       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2765
2766       -------------------------
2767       -- 3.8  Component List --
2768       -------------------------
2769
2770       --  COMPONENT_LIST ::=
2771       --    COMPONENT_ITEM {COMPONENT_ITEM}
2772       --  | {COMPONENT_ITEM} VARIANT_PART
2773       --  | null;
2774
2775       --  N_Component_List
2776       --  Sloc points to first token of component list
2777       --  Component_Items (List3)
2778       --  Variant_Part (Node4) (set to Empty if no variant part)
2779       --  Null_Present (Flag13)
2780
2781       -------------------------
2782       -- 3.8  Component Item --
2783       -------------------------
2784
2785       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2786
2787       --  Note: A component item can also be a pragma, and in the tree
2788       --  that is obtained after semantic processing, a component item
2789       --  can be an N_Null node resulting from a non-recognized pragma.
2790
2791       --------------------------------
2792       -- 3.8  Component Declaration --
2793       --------------------------------
2794
2795       --  COMPONENT_DECLARATION ::=
2796       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2797       --      [:= DEFAULT_EXPRESSION]
2798
2799       --  Note: although the syntax does not permit a component definition to
2800       --  be an anonymous array (and the parser will diagnose such an attempt
2801       --  with an appropriate message), it is possible for anonymous arrays
2802       --  to appear as component definitions. The semantics and back end handle
2803       --  this case properly, and the expander in fact generates such cases.
2804
2805       --  Although the syntax allows multiple identifiers in the list, the
2806       --  semantics is as though successive declarations were given with the
2807       --  same component definition and expression components. To simplify
2808       --  semantic processing, the parser represents a multiple declaration
2809       --  case as a sequence of single declarations, using the More_Ids and
2810       --  Prev_Ids flags to preserve the original source form as described
2811       --  in the section on "Handling of Defining Identifier Lists".
2812
2813       --  N_Component_Declaration
2814       --  Sloc points to first identifier
2815       --  Defining_Identifier (Node1)
2816       --  Component_Definition (Node4)
2817       --  Expression (Node3) (set to Empty if no default expression)
2818       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2819       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2820
2821       -------------------------
2822       -- 3.8.1  Variant Part --
2823       -------------------------
2824
2825       --  VARIANT_PART ::=
2826       --    case discriminant_DIRECT_NAME is
2827       --      VARIANT
2828       --      {VARIANT}
2829       --    end case;
2830
2831       --  Note: the variants list can contain pragmas as well as variants.
2832       --  In a properly formed program there is at least one variant.
2833
2834       --  N_Variant_Part
2835       --  Sloc points to CASE
2836       --  Name (Node2)
2837       --  Variants (List1)
2838
2839       --------------------
2840       -- 3.8.1  Variant --
2841       --------------------
2842
2843       --  VARIANT ::=
2844       --    when DISCRETE_CHOICE_LIST =>
2845       --      COMPONENT_LIST
2846
2847       --  N_Variant
2848       --  Sloc points to WHEN
2849       --  Discrete_Choices (List4)
2850       --  Component_List (Node1)
2851       --  Enclosing_Variant (Node2-Sem)
2852       --  Present_Expr (Uint3-Sem)
2853       --  Dcheck_Function (Node5-Sem)
2854
2855       ---------------------------------
2856       -- 3.8.1  Discrete Choice List --
2857       ---------------------------------
2858
2859       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2860
2861       ----------------------------
2862       -- 3.8.1  Discrete Choice --
2863       ----------------------------
2864
2865       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2866
2867       --  Note: in Ada 83 mode, the expression must be a simple expression
2868
2869       --  The only choice that appears explicitly is the OTHERS choice, as
2870       --  defined here. Other cases of discrete choice (expression and
2871       --  discrete range) appear directly. This production is also used
2872       --  for the OTHERS possibility of an exception choice.
2873
2874       --  Note: in accordance with the syntax, the parser does not check that
2875       --  OTHERS appears at the end on its own in a choice list context. This
2876       --  is a semantic check.
2877
2878       --  N_Others_Choice
2879       --  Sloc points to OTHERS
2880       --  Others_Discrete_Choices (List1-Sem)
2881       --  All_Others (Flag11-Sem)
2882
2883       ----------------------------------
2884       -- 3.9.1  Record Extension Part --
2885       ----------------------------------
2886
2887       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2888
2889       --  Note: record extension parts are not permitted in Ada 83 mode
2890
2891       --------------------------------------
2892       -- 3.9.4  Interface Type Definition --
2893       --------------------------------------
2894
2895       --  INTERFACE_TYPE_DEFINITION ::=
2896       --    [limited | task | protected | synchronized]
2897       --    interface [interface_list]
2898
2899       --  Note: Interfaces are implemented with N_Record_Definition and
2900       --        N_Derived_Type_Definition nodes because most of the support
2901       --        for the analysis of abstract types has been reused to
2902       --        analyze abstract interfaces.
2903
2904       ----------------------------------
2905       -- 3.10  Access Type Definition --
2906       ----------------------------------
2907
2908       --  ACCESS_TYPE_DEFINITION ::=
2909       --    ACCESS_TO_OBJECT_DEFINITION
2910       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2911
2912       --------------------------
2913       -- 3.10  Null Exclusion --
2914       --------------------------
2915
2916       --  NULL_EXCLUSION ::= not null
2917
2918       ---------------------------------------
2919       -- 3.10  Access To Object Definition --
2920       ---------------------------------------
2921
2922       --  ACCESS_TO_OBJECT_DEFINITION ::=
2923       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2924       --    SUBTYPE_INDICATION
2925
2926       --  N_Access_To_Object_Definition
2927       --  Sloc points to ACCESS
2928       --  All_Present (Flag15)
2929       --  Null_Exclusion_Present (Flag11)
2930       --  Subtype_Indication (Node5)
2931       --  Constant_Present (Flag17)
2932
2933       -----------------------------------
2934       -- 3.10  General Access Modifier --
2935       -----------------------------------
2936
2937       --  GENERAL_ACCESS_MODIFIER ::= all | constant
2938
2939       --  Note: general access modifiers are not permitted in Ada 83 mode
2940
2941       --  There is no explicit node in the tree for general access modifier.
2942       --  Instead the All_Present or Constant_Present flags are set in the
2943       --  parent node.
2944
2945       -------------------------------------------
2946       -- 3.10  Access To Subprogram Definition --
2947       -------------------------------------------
2948
2949       --  ACCESS_TO_SUBPROGRAM_DEFINITION
2950       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2951       --  | [NULL_EXCLUSION] access [protected] function
2952       --    PARAMETER_AND_RESULT_PROFILE
2953
2954       --  Note: access to subprograms are not permitted in Ada 83 mode
2955
2956       --  N_Access_Function_Definition
2957       --  Sloc points to ACCESS
2958       --  Null_Exclusion_Present (Flag11)
2959       --  Null_Exclusion_In_Return_Present (Flag14)
2960       --  Protected_Present (Flag6)
2961       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2962       --  Result_Definition (Node4) result subtype (subtype mark or access def)
2963
2964       --  N_Access_Procedure_Definition
2965       --  Sloc points to ACCESS
2966       --  Null_Exclusion_Present (Flag11)
2967       --  Protected_Present (Flag6)
2968       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2969
2970       -----------------------------
2971       -- 3.10  Access Definition --
2972       -----------------------------
2973
2974       --  ACCESS_DEFINITION ::=
2975       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2976       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2977
2978       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
2979
2980       --  N_Access_Definition
2981       --  Sloc points to ACCESS
2982       --  Null_Exclusion_Present (Flag11)
2983       --  All_Present (Flag15)
2984       --  Constant_Present (Flag17)
2985       --  Subtype_Mark (Node4)
2986       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2987
2988       -----------------------------------------
2989       -- 3.10.1  Incomplete Type Declaration --
2990       -----------------------------------------
2991
2992       --  INCOMPLETE_TYPE_DECLARATION ::=
2993       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2994
2995       --  N_Incomplete_Type_Declaration
2996       --  Sloc points to TYPE
2997       --  Defining_Identifier (Node1)
2998       --  Discriminant_Specifications (List4) (set to No_List if no
2999       --   discriminant part, or if the discriminant part is an
3000       --   unknown discriminant part)
3001       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3002       --  Tagged_Present (Flag15)
3003
3004       ----------------------------
3005       -- 3.11  Declarative Part --
3006       ----------------------------
3007
3008       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3009
3010       --  Note: although the parser enforces the syntactic requirement that
3011       --  a declarative part can contain only declarations, the semantic
3012       --  processing may add statements to the list of actions in a
3013       --  declarative part, so the code generator should be prepared
3014       --  to accept a statement in this position.
3015
3016       ----------------------------
3017       -- 3.11  Declarative Item --
3018       ----------------------------
3019
3020       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3021
3022       ----------------------------------
3023       -- 3.11  Basic Declarative Item --
3024       ----------------------------------
3025
3026       --  BASIC_DECLARATIVE_ITEM ::=
3027       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3028
3029       ----------------
3030       -- 3.11  Body --
3031       ----------------
3032
3033       --  BODY ::= PROPER_BODY | BODY_STUB
3034
3035       -----------------------
3036       -- 3.11  Proper Body --
3037       -----------------------
3038
3039       --  PROPER_BODY ::=
3040       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3041
3042       ---------------
3043       -- 4.1  Name --
3044       ---------------
3045
3046       --  NAME ::=
3047       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
3048       --  | INDEXED_COMPONENT  | SLICE
3049       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3050       --  | TYPE_CONVERSION    | FUNCTION_CALL
3051       --  | CHARACTER_LITERAL
3052
3053       ----------------------
3054       -- 4.1  Direct Name --
3055       ----------------------
3056
3057       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3058
3059       -----------------
3060       -- 4.1  Prefix --
3061       -----------------
3062
3063       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3064
3065       -------------------------------
3066       -- 4.1  Explicit Dereference --
3067       -------------------------------
3068
3069       --  EXPLICIT_DEREFERENCE ::= NAME . all
3070
3071       --  N_Explicit_Dereference
3072       --  Sloc points to ALL
3073       --  Prefix (Node3)
3074       --  Actual_Designated_Subtype (Node4-Sem)
3075       --  plus fields for expression
3076
3077       -------------------------------
3078       -- 4.1  Implicit Dereference --
3079       -------------------------------
3080
3081       --  IMPLICIT_DEREFERENCE ::= NAME
3082
3083       ------------------------------
3084       -- 4.1.1  Indexed Component --
3085       ------------------------------
3086
3087       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3088
3089       --  Note: the parser may generate this node in some situations where it
3090       --  should be a function call. The semantic  pass must correct this
3091       --  misidentification (which is inevitable at the parser level).
3092
3093       --  N_Indexed_Component
3094       --  Sloc contains a copy of the Sloc value of the Prefix
3095       --  Prefix (Node3)
3096       --  Expressions (List1)
3097       --  plus fields for expression
3098
3099       --  Note: if any of the subscripts requires a range check, then the
3100       --  Do_Range_Check flag is set on the corresponding expression, with
3101       --  the index type being determined from the type of the Prefix, which
3102       --  references the array being indexed.
3103
3104       --  Note: in a fully analyzed and expanded indexed component node, and
3105       --  hence in any such node that gigi sees, if the prefix is an access
3106       --  type, then an explicit dereference operation has been inserted.
3107
3108       ------------------
3109       -- 4.1.2  Slice --
3110       ------------------
3111
3112       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3113
3114       --  Note: an implicit subtype is created to describe the resulting
3115       --  type, so that the bounds of this type are the bounds of the slice.
3116
3117       --  N_Slice
3118       --  Sloc points to first token of prefix
3119       --  Prefix (Node3)
3120       --  Discrete_Range (Node4)
3121       --  plus fields for expression
3122
3123       -------------------------------
3124       -- 4.1.3  Selected Component --
3125       -------------------------------
3126
3127       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3128
3129       --  Note: selected components that are semantically expanded names get
3130       --  changed during semantic processing into the separate N_Expanded_Name
3131       --  node. See description of this node in the section on semantic nodes.
3132
3133       --  N_Selected_Component
3134       --  Sloc points to period
3135       --  Prefix (Node3)
3136       --  Selector_Name (Node2)
3137       --  Associated_Node (Node4-Sem)
3138       --  Do_Discriminant_Check (Flag13-Sem)
3139       --  Is_In_Discriminant_Check (Flag11-Sem)
3140       --  plus fields for expression
3141
3142       --------------------------
3143       -- 4.1.3  Selector Name --
3144       --------------------------
3145
3146       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3147
3148       --------------------------------
3149       -- 4.1.4  Attribute Reference --
3150       --------------------------------
3151
3152       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3153
3154       --  Note: the syntax is quite ambiguous at this point. Consider:
3155
3156       --    A'Length (X)  X is part of the attribute designator
3157       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3158       --    A'Class (X)   X is the expression of a type conversion
3159
3160       --  It would be possible for the parser to distinguish these cases
3161       --  by looking at the attribute identifier. However, that would mean
3162       --  more work in introducing new implementation defined attributes,
3163       --  and also it would mean that special processing for attributes
3164       --  would be scattered around, instead of being centralized in the
3165       --  semantic routine that handles an N_Attribute_Reference node.
3166       --  Consequently, the parser in all the above cases stores the
3167       --  expression (X in these examples) as a single element list in
3168       --  in the Expressions field of the N_Attribute_Reference node.
3169
3170       --  Similarly, for attributes like Max which take two arguments,
3171       --  we store the two arguments as a two element list in the
3172       --  Expressions field. Of course it is clear at parse time that
3173       --  this case is really a function call with an attribute as the
3174       --  prefix, but it turns out to be convenient to handle the two
3175       --  argument case in a similar manner to the one argument case,
3176       --  and indeed in general the parser will accept any number of
3177       --  expressions in this position and store them as a list in the
3178       --  attribute reference node. This allows for future addition of
3179       --  attributes that take more than two arguments.
3180
3181       --  Note: named associates are not permitted in function calls where
3182       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3183       --  to skip the normal subprogram argument processing.
3184
3185       --  Note: for the attributes whose designators are technically keywords,
3186       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3187       --  the corresponding name, even though no identifier is involved.
3188
3189       --  Note: the generated code may contain stream attributes applied to
3190       --  limited types for which no stream routines exist officially. In such
3191       --  case, the result is to use the stream attribute for the underlying
3192       --  full type, or in the case of a protected type, the components
3193       --  (including any discriminants) are merely streamed in order.
3194
3195       --  See Exp_Attr for a complete description of which attributes are
3196       --  passed onto Gigi, and which are handled entirely by the front end.
3197
3198       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3199       --  a non-standard enumeration type or a nonzero/zero semantics
3200       --  boolean type, so the value is simply the stored representation.
3201
3202       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3203       --  references a subprogram that is a renaming, then the front end must
3204       --  rewrite the attribute to refer directly to the renamed entity.
3205
3206       --  Note: In generated code, the Address and Unrestricted_Access
3207       --  attributes can be applied to any expression, and the meaning is
3208       --  to create an object containing the value (the object is in the
3209       --  current stack frame), and pass the address of this value. If the
3210       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3211       --  is taken must be on a byte (storage unit) boundary, and if it is
3212       --  not (or may not be), then the generated code must create a copy
3213       --  that is byte aligned, and pass the address of this copy.
3214
3215       --  N_Attribute_Reference
3216       --  Sloc points to apostrophe
3217       --  Prefix (Node3)
3218       --  Attribute_Name (Name2) identifier name from attribute designator
3219       --  Expressions (List1) (set to No_List if no associated expressions)
3220       --  Entity (Node4-Sem) used if the attribute yields a type
3221       --  Associated_Node (Node4-Sem)
3222       --  Do_Overflow_Check (Flag17-Sem)
3223       --  Redundant_Use (Flag13-Sem)
3224       --  Must_Be_Byte_Aligned (Flag14)
3225       --  plus fields for expression
3226
3227       ---------------------------------
3228       -- 4.1.4  Attribute Designator --
3229       ---------------------------------
3230
3231       --  ATTRIBUTE_DESIGNATOR ::=
3232       --    IDENTIFIER [(static_EXPRESSION)]
3233       --  | access | delta | digits
3234
3235       --  There is no explicit node in the tree for an attribute designator.
3236       --  Instead the Attribute_Name and Expressions fields of the parent
3237       --  node (N_Attribute_Reference node) hold the information.
3238
3239       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3240       --  designator, then they are treated as identifiers internally
3241       --  rather than the keywords of the same name.
3242
3243       --------------------------------------
3244       -- 4.1.4  Range Attribute Reference --
3245       --------------------------------------
3246
3247       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3248
3249       --  A range attribute reference is represented in the tree using the
3250       --  normal N_Attribute_Reference node.
3251
3252       ---------------------------------------
3253       -- 4.1.4  Range Attribute Designator --
3254       ---------------------------------------
3255
3256       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3257
3258       --  A range attribute designator is represented in the tree using the
3259       --  normal N_Attribute_Reference node.
3260
3261       --------------------
3262       -- 4.3  Aggregate --
3263       --------------------
3264
3265       --  AGGREGATE ::=
3266       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3267
3268       -----------------------------
3269       -- 4.3.1  Record Aggregate --
3270       -----------------------------
3271
3272       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3273
3274       --  N_Aggregate
3275       --  Sloc points to left parenthesis
3276       --  Expressions (List1) (set to No_List if none or null record case)
3277       --  Component_Associations (List2) (set to No_List if none)
3278       --  Null_Record_Present (Flag17)
3279       --  Aggregate_Bounds (Node3-Sem)
3280       --  Associated_Node (Node4-Sem)
3281       --  Static_Processing_OK (Flag4-Sem)
3282       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3283       --  Expansion_Delayed (Flag11-Sem)
3284       --  Has_Self_Reference (Flag13-Sem)
3285       --  plus fields for expression
3286
3287       --  Note: this structure is used for both record and array aggregates
3288       --  since the two cases are not separable by the parser. The parser
3289       --  makes no attempt to enforce consistency here, so it is up to the
3290       --  semantic phase to make sure that the aggregate is consistent (i.e.
3291       --  that it is not a "half-and-half" case that mixes record and array
3292       --  syntax. In particular, for a record aggregate, the expressions
3293       --  field will be set if there are positional associations.
3294
3295       --  Note: N_Aggregate is not used for all aggregates; in particular,
3296       --  there is a separate node kind for extension aggregates.
3297
3298       --  Note: gigi/gcc can handle array aggregates correctly providing that
3299       --  they are entirely positional, and the array subtype involved has a
3300       --  known at compile time length and is not bit packed, or a convention
3301       --  Fortran array with more than one dimension. If these conditions
3302       --  are not met, then the front end must translate the aggregate into
3303       --  an appropriate set of assignments into a temporary.
3304
3305       --  Note: for the record aggregate case, gigi/gcc can handle all cases
3306       --  of record aggregates, including those for packed, and rep-claused
3307       --  records, and also variant records, providing that there are no
3308       --  variable length fields whose size is not known at runtime, and
3309       --  providing that the aggregate is presented in fully named form.
3310
3311       ----------------------------------------------
3312       -- 4.3.1  Record Component Association List --
3313       ----------------------------------------------
3314
3315       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3316       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3317       --   | null record
3318
3319       --  There is no explicit node in the tree for a record component
3320       --  association list. Instead the Null_Record_Present flag is set in
3321       --  the parent node for the NULL RECORD case.
3322
3323       ------------------------------------------------------
3324       -- 4.3.1  Record Component Association (also 4.3.3) --
3325       ------------------------------------------------------
3326
3327       --  RECORD_COMPONENT_ASSOCIATION ::=
3328       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3329
3330       --  N_Component_Association
3331       --  Sloc points to first selector name
3332       --  Choices (List1)
3333       --  Loop_Actions (List2-Sem)
3334       --  Expression (Node3)
3335       --  Box_Present (Flag15)
3336
3337       --  Note: this structure is used for both record component associations
3338       --  and array component associations, since the two cases aren't always
3339       --  separable by the parser. The choices list may represent either a
3340       --  list of selector names in the record aggregate case, or a list of
3341       --  discrete choices in the array aggregate case or an N_Others_Choice
3342       --  node (which appears as a singleton list). Box_Present gives support
3343       --  to Ada 2005 (AI-287).
3344
3345       ----------------------------------
3346       -- 4.3.1  Component Choice List --
3347       ----------------------------------
3348
3349       --  COMPONENT_CHOICE_LIST ::=
3350       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3351       --  | others
3352
3353       --  The entries of a component choice list appear in the Choices list of
3354       --  the associated N_Component_Association, as either selector names, or
3355       --  as an N_Others_Choice node.
3356
3357       --------------------------------
3358       -- 4.3.2  Extension Aggregate --
3359       --------------------------------
3360
3361       --  EXTENSION_AGGREGATE ::=
3362       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3363
3364       --  Note: extension aggregates are not permitted in Ada 83 mode
3365
3366       --  N_Extension_Aggregate
3367       --  Sloc points to left parenthesis
3368       --  Ancestor_Part (Node3)
3369       --  Associated_Node (Node4-Sem)
3370       --  Expressions (List1) (set to No_List if none or null record case)
3371       --  Component_Associations (List2) (set to No_List if none)
3372       --  Null_Record_Present (Flag17)
3373       --  Expansion_Delayed (Flag11-Sem)
3374       --  Has_Self_Reference (Flag13-Sem)
3375       --  plus fields for expression
3376
3377       --------------------------
3378       -- 4.3.2  Ancestor Part --
3379       --------------------------
3380
3381       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3382
3383       ----------------------------
3384       -- 4.3.3  Array Aggregate --
3385       ----------------------------
3386
3387       --  ARRAY_AGGREGATE ::=
3388       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3389
3390       ---------------------------------------
3391       -- 4.3.3  Positional Array Aggregate --
3392       ---------------------------------------
3393
3394       --  POSITIONAL_ARRAY_AGGREGATE ::=
3395       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3396       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3397
3398       --  See Record_Aggregate (4.3.1) for node structure
3399
3400       ----------------------------------
3401       -- 4.3.3  Named Array Aggregate --
3402       ----------------------------------
3403
3404       --  NAMED_ARRAY_AGGREGATE ::=
3405       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3406
3407       --  See Record_Aggregate (4.3.1) for node structure
3408
3409       ----------------------------------------
3410       -- 4.3.3  Array Component Association --
3411       ----------------------------------------
3412
3413       --  ARRAY_COMPONENT_ASSOCIATION ::=
3414       --    DISCRETE_CHOICE_LIST => EXPRESSION
3415
3416       --  See Record_Component_Association (4.3.1) for node structure
3417
3418       --------------------------------------------------
3419       -- 4.4  Expression/Relation/Term/Factor/Primary --
3420       --------------------------------------------------
3421
3422       --  EXPRESSION ::=
3423       --    RELATION {and RELATION} | RELATION {and then RELATION}
3424       --  | RELATION {or RELATION}  | RELATION {or else RELATION}
3425       --  | RELATION {xor RELATION}
3426
3427       --  RELATION ::=
3428       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3429       --  | SIMPLE_EXPRESSION [not] in RANGE
3430       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3431
3432       --  SIMPLE_EXPRESSION ::=
3433       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3434
3435       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3436
3437       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3438
3439       --  No nodes are generated for any of these constructs. Instead, the
3440       --  node for the operator appears directly. When we refer to an
3441       --  expression in this description, we mean any of the possible
3442       --  constituent components of an expression (e.g. identifier is
3443       --  an example of an expression).
3444
3445       ------------------
3446       -- 4.4  Primary --
3447       ------------------
3448
3449       --  PRIMARY ::=
3450       --    NUMERIC_LITERAL  | null
3451       --  | STRING_LITERAL   | AGGREGATE
3452       --  | NAME             | QUALIFIED_EXPRESSION
3453       --  | ALLOCATOR        | (EXPRESSION)
3454
3455       --  Usually there is no explicit node in the tree for primary. Instead
3456       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3457       --  exceptions. First, there is an explicit node for a null primary.
3458
3459       --  N_Null
3460       --  Sloc points to NULL
3461       --  plus fields for expression
3462
3463       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3464       --  that the parser keep track of which subexpressions are enclosed
3465       --  in parentheses, and how many levels of parentheses are used. This
3466       --  information is required for optimization purposes, and also for
3467       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3468       --  conform with ((((1)))) in the body).
3469
3470       --  The parentheses are recorded by keeping a Paren_Count field in every
3471       --  subexpression node (it is actually present in all nodes, but only
3472       --  used in subexpression nodes). This count records the number of
3473       --  levels of parentheses. If the number of levels in the source exceeds
3474       --  the maximum accommodated by this count, then the count is simply left
3475       --  at the maximum value. This means that there are some pathological
3476       --  cases of failure to detect conformance failures (e.g. an expression
3477       --  with 500 levels of parens will conform with one with 501 levels),
3478       --  but we do not need to lose sleep over this.
3479
3480       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3481       --  type N_Parenthesized_Expression used to accurately record unlimited
3482       --  numbers of levels of parentheses. However, it turned out to be a
3483       --  real nuisance to have to take into account the possible presence of
3484       --  this node during semantic analysis, since basically parentheses have
3485       --  zero relevance to semantic analysis.
3486
3487       --  Note: the level of parentheses always present in things like
3488       --  aggregates does not count, only the parentheses in the primary
3489       --  (EXPRESSION) affect the setting of the Paren_Count field.
3490
3491       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3492       --  treated as though it were Empty) if No_Initialization is set True.
3493
3494       --------------------------------------
3495       -- 4.5  Short Circuit Control Forms --
3496       --------------------------------------
3497
3498       --  EXPRESSION ::=
3499       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3500
3501       --  Gigi restriction: For both these control forms, the operand and
3502       --  result types are always Standard.Boolean. The expander inserts the
3503       --  required conversion operations where needed to ensure this is the
3504       --  case.
3505
3506       --  N_And_Then
3507       --  Sloc points to AND of AND THEN
3508       --  Left_Opnd (Node2)
3509       --  Right_Opnd (Node3)
3510       --  Actions (List1-Sem)
3511       --  plus fields for expression
3512
3513       --  N_Or_Else
3514       --  Sloc points to OR of OR ELSE
3515       --  Left_Opnd (Node2)
3516       --  Right_Opnd (Node3)
3517       --  Actions (List1-Sem)
3518       --  plus fields for expression
3519
3520       --  Note: The Actions field is used to hold actions associated with
3521       --  the right hand operand. These have to be treated specially since
3522       --  they are not unconditionally executed. See Insert_Actions for a
3523       --  more detailed description of how these actions are handled.
3524
3525       ---------------------------
3526       -- 4.5  Membership Tests --
3527       ---------------------------
3528
3529       --  RELATION ::=
3530       --    SIMPLE_EXPRESSION [not] in RANGE
3531       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3532
3533       --  Note: although the grammar above allows only a range or a subtype
3534       --  mark, the parser in fact will accept any simple expression in place
3535       --  of a subtype mark. This means that the semantic analyzer must be able
3536       --  to deal with, and diagnose a simple expression other than a name for
3537       --  the right operand. This simplifies error recovery in the parser.
3538
3539       --  If extensions are enabled, the grammar is as follows:
3540
3541       --  RELATION ::=
3542       --    SIMPLE_EXPRESSION [not] in SET_ALTERNATIVE {| SET_ALTERNATIVE}
3543
3544       --  SET_ALTERNATIVE ::= RANGE | SUBTYPE_MARK
3545
3546       --  The Alternatives field below is present only if there is more than
3547       --  one Set_Alternative present, in which case Right_Opnd is set to
3548       --  Empty, and Alternatives contains the list of alternatives. In the
3549       --  tree passed to the back end, Alternatives is always No_List, and
3550       --  Right_Opnd is set (i.e. the expansion circuitry expands out the
3551       --  complex set membership case using simple membership operations).
3552
3553       --  N_In
3554       --  Sloc points to IN
3555       --  Left_Opnd (Node2)
3556       --  Right_Opnd (Node3)
3557       --  Alternatives (List4) (set to No_List if only one set alternative)
3558       --  plus fields for expression
3559
3560       --  N_Not_In
3561       --  Sloc points to NOT of NOT IN
3562       --  Left_Opnd (Node2)
3563       --  Right_Opnd (Node3)
3564       --  Alternatives (List4) (set to No_List if only one set alternative)
3565       --  plus fields for expression
3566
3567       --------------------
3568       -- 4.5  Operators --
3569       --------------------
3570
3571       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3572
3573       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3574
3575       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3576
3577       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3578
3579       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3580
3581       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3582
3583       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3584
3585       --     x #* y
3586       --     x #/ y
3587       --     x #mod y
3588       --     x #rem y
3589
3590       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3591       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3592       --  All handling of smalls for multiplication and division is handled
3593       --  by the front end (mod and rem result only from expansion). Gigi
3594       --  thus never needs to worry about small values (for other operators
3595       --  operating on fixed-point, e.g. addition, the small value does not
3596       --  have any semantic effect anyway, these are always integer operations.
3597
3598       --  Gigi restriction: For all operators taking Boolean operands, the
3599       --  type is always Standard.Boolean. The expander inserts the required
3600       --  conversion operations where needed to ensure this is the case.
3601
3602       --  N_Op_And
3603       --  Sloc points to AND
3604       --  Do_Length_Check (Flag4-Sem)
3605       --  plus fields for binary operator
3606       --  plus fields for expression
3607
3608       --  N_Op_Or
3609       --  Sloc points to OR
3610       --  Do_Length_Check (Flag4-Sem)
3611       --  plus fields for binary operator
3612       --  plus fields for expression
3613
3614       --  N_Op_Xor
3615       --  Sloc points to XOR
3616       --  Do_Length_Check (Flag4-Sem)
3617       --  plus fields for binary operator
3618       --  plus fields for expression
3619
3620       --  N_Op_Eq
3621       --  Sloc points to =
3622       --  plus fields for binary operator
3623       --  plus fields for expression
3624
3625       --  N_Op_Ne
3626       --  Sloc points to /=
3627       --  plus fields for binary operator
3628       --  plus fields for expression
3629
3630       --  N_Op_Lt
3631       --  Sloc points to <
3632       --  plus fields for binary operator
3633       --  plus fields for expression
3634
3635       --  N_Op_Le
3636       --  Sloc points to <=
3637       --  plus fields for binary operator
3638       --  plus fields for expression
3639
3640       --  N_Op_Gt
3641       --  Sloc points to >
3642       --  plus fields for binary operator
3643       --  plus fields for expression
3644
3645       --  N_Op_Ge
3646       --  Sloc points to >=
3647       --  plus fields for binary operator
3648       --  plus fields for expression
3649
3650       --  N_Op_Add
3651       --  Sloc points to + (binary)
3652       --  plus fields for binary operator
3653       --  plus fields for expression
3654
3655       --  N_Op_Subtract
3656       --  Sloc points to - (binary)
3657       --  plus fields for binary operator
3658       --  plus fields for expression
3659
3660       --  N_Op_Concat
3661       --  Sloc points to &
3662       --  Is_Component_Left_Opnd (Flag13-Sem)
3663       --  Is_Component_Right_Opnd (Flag14-Sem)
3664       --  plus fields for binary operator
3665       --  plus fields for expression
3666
3667       --  N_Op_Multiply
3668       --  Sloc points to *
3669       --  Treat_Fixed_As_Integer (Flag14-Sem)
3670       --  Rounded_Result (Flag18-Sem)
3671       --  plus fields for binary operator
3672       --  plus fields for expression
3673
3674       --  N_Op_Divide
3675       --  Sloc points to /
3676       --  Treat_Fixed_As_Integer (Flag14-Sem)
3677       --  Do_Division_Check (Flag13-Sem)
3678       --  Rounded_Result (Flag18-Sem)
3679       --  plus fields for binary operator
3680       --  plus fields for expression
3681
3682       --  N_Op_Mod
3683       --  Sloc points to MOD
3684       --  Treat_Fixed_As_Integer (Flag14-Sem)
3685       --  Do_Division_Check (Flag13-Sem)
3686       --  plus fields for binary operator
3687       --  plus fields for expression
3688
3689       --  N_Op_Rem
3690       --  Sloc points to REM
3691       --  Treat_Fixed_As_Integer (Flag14-Sem)
3692       --  Do_Division_Check (Flag13-Sem)
3693       --  plus fields for binary operator
3694       --  plus fields for expression
3695
3696       --  N_Op_Expon
3697       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3698       --  Sloc points to **
3699       --  plus fields for binary operator
3700       --  plus fields for expression
3701
3702       --  N_Op_Plus
3703       --  Sloc points to + (unary)
3704       --  plus fields for unary operator
3705       --  plus fields for expression
3706
3707       --  N_Op_Minus
3708       --  Sloc points to - (unary)
3709       --  plus fields for unary operator
3710       --  plus fields for expression
3711
3712       --  N_Op_Abs
3713       --  Sloc points to ABS
3714       --  plus fields for unary operator
3715       --  plus fields for expression
3716
3717       --  N_Op_Not
3718       --  Sloc points to NOT
3719       --  plus fields for unary operator
3720       --  plus fields for expression
3721
3722       --  See also shift operators in section B.2
3723
3724       --  Note on fixed-point operations passed to Gigi: For adding operators,
3725       --  the semantics is to treat these simply as integer operations, with
3726       --  the small values being ignored (the bounds are already stored in
3727       --  units of small, so that constraint checking works as usual). For the
3728       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3729       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3730       --  thus treat these nodes in identical manner, ignoring small values.
3731
3732       --------------------------
3733       -- 4.6  Type Conversion --
3734       --------------------------
3735
3736       --  TYPE_CONVERSION ::=
3737       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3738
3739       --  In the (NAME) case, the name is stored as the expression
3740
3741       --  Note: the parser never generates a type conversion node, since it
3742       --  looks like an indexed component which is generated by preference.
3743       --  The semantic pass must correct this misidentification.
3744
3745       --  Gigi handles conversions that involve no change in the root type,
3746       --  and also all conversions from integer to floating-point types.
3747       --  Conversions from floating-point to integer are only handled in
3748       --  the case where Float_Truncate flag set. Other conversions from
3749       --  floating-point to integer (involving rounding) and all conversions
3750       --  involving fixed-point types are handled by the expander.
3751
3752       --  Sprint syntax if Float_Truncate set: X^(Y)
3753       --  Sprint syntax if Conversion_OK set X?(Y)
3754       --  Sprint syntax if both flags set X?^(Y)
3755
3756       --  Note: If either the operand or result type is fixed-point, Gigi will
3757       --  only see a type conversion node with Conversion_OK set. The front end
3758       --  takes care of all handling of small's for fixed-point conversions.
3759
3760       --  N_Type_Conversion
3761       --  Sloc points to first token of subtype mark
3762       --  Subtype_Mark (Node4)
3763       --  Expression (Node3)
3764       --  Do_Tag_Check (Flag13-Sem)
3765       --  Do_Length_Check (Flag4-Sem)
3766       --  Do_Overflow_Check (Flag17-Sem)
3767       --  Float_Truncate (Flag11-Sem)
3768       --  Rounded_Result (Flag18-Sem)
3769       --  Conversion_OK (Flag14-Sem)
3770       --  plus fields for expression
3771
3772       --  Note: if a range check is required, then the Do_Range_Check flag
3773       --  is set in the Expression with the check being done against the
3774       --  target type range (after the base type conversion, if any).
3775
3776       -------------------------------
3777       -- 4.7  Qualified Expression --
3778       -------------------------------
3779
3780       --  QUALIFIED_EXPRESSION ::=
3781       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3782
3783       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3784       --  the expression, so the Expression field of this node always points
3785       --  to a parenthesized expression in this case (i.e. Paren_Count will
3786       --  always be non-zero for the referenced expression if it is not an
3787       --  aggregate).
3788
3789       --  N_Qualified_Expression
3790       --  Sloc points to apostrophe
3791       --  Subtype_Mark (Node4)
3792       --  Expression (Node3) expression or aggregate
3793       --  plus fields for expression
3794
3795       --------------------
3796       -- 4.8  Allocator --
3797       --------------------
3798
3799       --  ALLOCATOR ::=
3800       --    new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3801
3802       --  Sprint syntax (when storage pool present)
3803       --    new xxx (storage_pool = pool)
3804
3805       --  N_Allocator
3806       --  Sloc points to NEW
3807       --  Expression (Node3) subtype indication or qualified expression
3808       --  Storage_Pool (Node1-Sem)
3809       --  Procedure_To_Call (Node2-Sem)
3810       --  Coextensions (Elist4-Sem)
3811       --  Null_Exclusion_Present (Flag11)
3812       --  No_Initialization (Flag13-Sem)
3813       --  Is_Static_Coextension (Flag14-Sem)
3814       --  Do_Storage_Check (Flag17-Sem)
3815       --  Is_Dynamic_Coextension (Flag18-Sem)
3816       --  plus fields for expression
3817
3818       --  Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3819       --  This flag has a special function in conjunction with the restriction
3820       --  No_Implicit_Heap_Allocations, which will be triggered if this flag
3821       --  is not set. This means that if a source allocator is replaced with
3822       --  a constructed allocator, the Comes_From_Source flag should be copied
3823       --  to the newly created allocator.
3824
3825       ---------------------------------
3826       -- 5.1  Sequence Of Statements --
3827       ---------------------------------
3828
3829       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3830
3831       --  Note: Although the parser will not accept a declaration as a
3832       --  statement, the semantic analyzer may insert declarations (e.g.
3833       --  declarations of implicit types needed for execution of other
3834       --  statements) into a sequence of statements, so the code generator
3835       --  should be prepared to accept a declaration where a statement is
3836       --  expected. Note also that pragmas can appear as statements.
3837
3838       --------------------
3839       -- 5.1  Statement --
3840       --------------------
3841
3842       --  STATEMENT ::=
3843       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3844
3845       --  There is no explicit node in the tree for a statement. Instead, the
3846       --  individual statement appears directly. Labels are treated  as a
3847       --  kind of statement, i.e. they are linked into a statement list at
3848       --  the point they appear, so the labeled statement appears following
3849       --  the label or labels in the statement list.
3850
3851       ---------------------------
3852       -- 5.1  Simple Statement --
3853       ---------------------------
3854
3855       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
3856       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
3857       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
3858       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3859       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
3860       --  | ABORT_STATEMENT         | RAISE_STATEMENT
3861       --  | CODE_STATEMENT
3862
3863       -----------------------------
3864       -- 5.1  Compound Statement --
3865       -----------------------------
3866
3867       --  COMPOUND_STATEMENT ::=
3868       --    IF_STATEMENT              | CASE_STATEMENT
3869       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
3870       --  | EXTENDED_RETURN_STATEMENT
3871       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
3872
3873       -------------------------
3874       -- 5.1  Null Statement --
3875       -------------------------
3876
3877       --  NULL_STATEMENT ::= null;
3878
3879       --  N_Null_Statement
3880       --  Sloc points to NULL
3881
3882       ----------------
3883       -- 5.1  Label --
3884       ----------------
3885
3886       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3887
3888       --  Note that the occurrence of a label is not a defining identifier,
3889       --  but rather a referencing occurrence. The defining occurrence is
3890       --  in the implicit label declaration which occurs in the innermost
3891       --  enclosing block.
3892
3893       --  N_Label
3894       --  Sloc points to <<
3895       --  Identifier (Node1) direct name of statement identifier
3896       --  Exception_Junk (Flag8-Sem)
3897
3898       -------------------------------
3899       -- 5.1  Statement Identifier --
3900       -------------------------------
3901
3902       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
3903
3904       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3905       --  (not an OPERATOR_SYMBOL)
3906
3907       -------------------------------
3908       -- 5.2  Assignment Statement --
3909       -------------------------------
3910
3911       --  ASSIGNMENT_STATEMENT ::=
3912       --    variable_NAME := EXPRESSION;
3913
3914       --  N_Assignment_Statement
3915       --  Sloc points to :=
3916       --  Name (Node2)
3917       --  Expression (Node3)
3918       --  Do_Tag_Check (Flag13-Sem)
3919       --  Do_Length_Check (Flag4-Sem)
3920       --  Forwards_OK (Flag5-Sem)
3921       --  Backwards_OK (Flag6-Sem)
3922       --  No_Ctrl_Actions (Flag7-Sem)
3923       --  Componentwise_Assignment (Flag14-Sem)
3924
3925       --  Note: if a range check is required, then the Do_Range_Check flag
3926       --  is set in the Expression (right hand side), with the check being
3927       --  done against the type of the Name (left hand side).
3928
3929       --  Note: the back end places some restrictions on the form of the
3930       --  Expression field. If the object being assigned to is Atomic, then
3931       --  the Expression may not have the form of an aggregate (since this
3932       --  might cause the back end to generate separate assignments). In this
3933       --  case the front end must generate an extra temporary and initialize
3934       --  this temporary as required (the temporary itself is not atomic).
3935
3936       -----------------------
3937       -- 5.3  If Statement --
3938       -----------------------
3939
3940       --  IF_STATEMENT ::=
3941       --    if CONDITION then
3942       --      SEQUENCE_OF_STATEMENTS
3943       --    {elsif CONDITION then
3944       --      SEQUENCE_OF_STATEMENTS}
3945       --    [else
3946       --      SEQUENCE_OF_STATEMENTS]
3947       --    end if;
3948
3949       --  Gigi restriction: This expander ensures that the type of the
3950       --  Condition fields is always Standard.Boolean, even if the type
3951       --  in the source is some non-standard boolean type.
3952
3953       --  N_If_Statement
3954       --  Sloc points to IF
3955       --  Condition (Node1)
3956       --  Then_Statements (List2)
3957       --  Elsif_Parts (List3) (set to No_List if none present)
3958       --  Else_Statements (List4) (set to No_List if no else part present)
3959       --  End_Span (Uint5) (set to No_Uint if expander generated)
3960
3961       --  N_Elsif_Part
3962       --  Sloc points to ELSIF
3963       --  Condition (Node1)
3964       --  Then_Statements (List2)
3965       --  Condition_Actions (List3-Sem)
3966
3967       --------------------
3968       -- 5.3  Condition --
3969       --------------------
3970
3971       --  CONDITION ::= boolean_EXPRESSION
3972
3973       -------------------------
3974       -- 5.4  Case Statement --
3975       -------------------------
3976
3977       --  CASE_STATEMENT ::=
3978       --    case EXPRESSION is
3979       --      CASE_STATEMENT_ALTERNATIVE
3980       --      {CASE_STATEMENT_ALTERNATIVE}
3981       --    end case;
3982
3983       --  Note: the Alternatives can contain pragmas. These only occur at
3984       --  the start of the list, since any pragmas occurring after the first
3985       --  alternative are absorbed into the corresponding statement sequence.
3986
3987       --  N_Case_Statement
3988       --  Sloc points to CASE
3989       --  Expression (Node3)
3990       --  Alternatives (List4)
3991       --  End_Span (Uint5) (set to No_Uint if expander generated)
3992
3993       -------------------------------------
3994       -- 5.4  Case Statement Alternative --
3995       -------------------------------------
3996
3997       --  CASE_STATEMENT_ALTERNATIVE ::=
3998       --    when DISCRETE_CHOICE_LIST =>
3999       --      SEQUENCE_OF_STATEMENTS
4000
4001       --  N_Case_Statement_Alternative
4002       --  Sloc points to WHEN
4003       --  Discrete_Choices (List4)
4004       --  Statements (List3)
4005
4006       -------------------------
4007       -- 5.5  Loop Statement --
4008       -------------------------
4009
4010       --  LOOP_STATEMENT ::=
4011       --    [loop_STATEMENT_IDENTIFIER :]
4012       --      [ITERATION_SCHEME] loop
4013       --        SEQUENCE_OF_STATEMENTS
4014       --      end loop [loop_IDENTIFIER];
4015
4016       --  Note: The occurrence of a loop label is not a defining identifier
4017       --  but rather a referencing occurrence. The defining occurrence is in
4018       --  the implicit label declaration which occurs in the innermost
4019       --  enclosing block.
4020
4021       --  Note: there is always a loop statement identifier present in
4022       --  the tree, even if none was given in the source. In the case where
4023       --  no loop identifier is given in the source, the parser creates
4024       --  a name of the form _Loop_n, where n is a decimal integer (the
4025       --  two underlines ensure that the loop names created in this manner
4026       --  do not conflict with any user defined identifiers), and the flag
4027       --  Has_Created_Identifier is set to True. The only exception to the
4028       --  rule that all loop statement nodes have identifiers occurs for
4029       --  loops constructed by the expander, and the semantic analyzer will
4030       --  create and supply dummy loop identifiers in these cases.
4031
4032       --  N_Loop_Statement
4033       --  Sloc points to LOOP
4034       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
4035       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4036       --  Statements (List3)
4037       --  End_Label (Node4)
4038       --  Has_Created_Identifier (Flag15)
4039       --  Is_Null_Loop (Flag16)
4040       --  Suppress_Loop_Warnings (Flag17)
4041
4042       --------------------------
4043       -- 5.5 Iteration Scheme --
4044       --------------------------
4045
4046       --  ITERATION_SCHEME ::=
4047       --    while CONDITION | for LOOP_PARAMETER_SPECIFICATION
4048
4049       --  Gigi restriction: This expander ensures that the type of the
4050       --  Condition field is always Standard.Boolean, even if the type
4051       --  in the source is some non-standard boolean type.
4052
4053       --  N_Iteration_Scheme
4054       --  Sloc points to WHILE or FOR
4055       --  Condition (Node1) (set to Empty if FOR case)
4056       --  Condition_Actions (List3-Sem)
4057       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4058
4059       ---------------------------------------
4060       -- 5.5  Loop parameter specification --
4061       ---------------------------------------
4062
4063       --  LOOP_PARAMETER_SPECIFICATION ::=
4064       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4065
4066       --  N_Loop_Parameter_Specification
4067       --  Sloc points to first identifier
4068       --  Defining_Identifier (Node1)
4069       --  Reverse_Present (Flag15)
4070       --  Discrete_Subtype_Definition (Node4)
4071
4072       --------------------------
4073       -- 5.6  Block Statement --
4074       --------------------------
4075
4076       --  BLOCK_STATEMENT ::=
4077       --    [block_STATEMENT_IDENTIFIER:]
4078       --      [declare
4079       --        DECLARATIVE_PART]
4080       --      begin
4081       --        HANDLED_SEQUENCE_OF_STATEMENTS
4082       --      end [block_IDENTIFIER];
4083
4084       --  Note that the occurrence of a block identifier is not a defining
4085       --  identifier, but rather a referencing occurrence. The defining
4086       --  occurrence is an E_Block entity declared by the implicit label
4087       --  declaration which occurs in the innermost enclosing block statement
4088       --  or body; the block identifier denotes that E_Block.
4089
4090       --  For block statements that come from source code, there is always a
4091       --  block statement identifier present in the tree, denoting an
4092       --  E_Block. In the case where no block identifier is given in the
4093       --  source, the parser creates a name of the form B_n, where n is a
4094       --  decimal integer, and the flag Has_Created_Identifier is set to
4095       --  True. Blocks constructed by the expander usually have no identifier,
4096       --  and no corresponding entity.
4097
4098       --  Note: the block statement created for an extended return statement
4099       --  has an entity, and this entity is an E_Return_Statement, rather than
4100       --  the usual E_Block.
4101
4102       --  Note: Exception_Junk is set for the wrapping blocks created during
4103       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4104
4105       --  N_Block_Statement
4106       --  Sloc points to DECLARE or BEGIN
4107       --  Identifier (Node1) block direct name (set to Empty if not present)
4108       --  Declarations (List2) (set to No_List if no DECLARE part)
4109       --  Handled_Statement_Sequence (Node4)
4110       --  Is_Task_Master (Flag5-Sem)
4111       --  Activation_Chain_Entity (Node3-Sem)
4112       --  Has_Created_Identifier (Flag15)
4113       --  Is_Task_Allocation_Block (Flag6)
4114       --  Is_Asynchronous_Call_Block (Flag7)
4115       --  Exception_Junk (Flag8-Sem)
4116
4117       -------------------------
4118       -- 5.7  Exit Statement --
4119       -------------------------
4120
4121       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4122
4123       --  Gigi restriction: This expander ensures that the type of the
4124       --  Condition field is always Standard.Boolean, even if the type
4125       --  in the source is some non-standard boolean type.
4126
4127       --  N_Exit_Statement
4128       --  Sloc points to EXIT
4129       --  Name (Node2) (set to Empty if no loop name present)
4130       --  Condition (Node1) (set to Empty if no when part present)
4131
4132       -------------------------
4133       -- 5.9  Goto Statement --
4134       -------------------------
4135
4136       --  GOTO_STATEMENT ::= goto label_NAME;
4137
4138       --  N_Goto_Statement
4139       --  Sloc points to GOTO
4140       --  Name (Node2)
4141       --  Exception_Junk (Flag8-Sem)
4142
4143       ---------------------------------
4144       -- 6.1  Subprogram Declaration --
4145       ---------------------------------
4146
4147       --  SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4148
4149       --  N_Subprogram_Declaration
4150       --  Sloc points to FUNCTION or PROCEDURE
4151       --  Specification (Node1)
4152       --  Body_To_Inline (Node3-Sem)
4153       --  Corresponding_Body (Node5-Sem)
4154       --  Parent_Spec (Node4-Sem)
4155
4156       ------------------------------------------
4157       -- 6.1  Abstract Subprogram Declaration --
4158       ------------------------------------------
4159
4160       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4161       --    SUBPROGRAM_SPECIFICATION is abstract;
4162
4163       --  N_Abstract_Subprogram_Declaration
4164       --  Sloc points to ABSTRACT
4165       --  Specification (Node1)
4166
4167       -----------------------------------
4168       -- 6.1  Subprogram Specification --
4169       -----------------------------------
4170
4171       --  SUBPROGRAM_SPECIFICATION ::=
4172       --    [[not] overriding]
4173       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4174       --  | [[not] overriding]
4175       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4176
4177       --  Note: there are no separate nodes for the profiles, instead the
4178       --  information appears directly in the following nodes.
4179
4180       --  N_Function_Specification
4181       --  Sloc points to FUNCTION
4182       --  Defining_Unit_Name (Node1) (the designator)
4183       --  Elaboration_Boolean (Node2-Sem)
4184       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4185       --  Null_Exclusion_Present (Flag11)
4186       --  Result_Definition (Node4) for result subtype
4187       --  Generic_Parent (Node5-Sem)
4188       --  Must_Override (Flag14) set if overriding indicator present
4189       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4190
4191       --  N_Procedure_Specification
4192       --  Sloc points to PROCEDURE
4193       --  Defining_Unit_Name (Node1)
4194       --  Elaboration_Boolean (Node2-Sem)
4195       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4196       --  Generic_Parent (Node5-Sem)
4197       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4198       --  Must_Override (Flag14) set if overriding indicator present
4199       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4200
4201       --  Note: overriding indicator is an Ada 2005 feature
4202
4203       ---------------------
4204       -- 6.1  Designator --
4205       ---------------------
4206
4207       --  DESIGNATOR ::=
4208       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4209
4210       --  Designators that are simply identifiers or operator symbols appear
4211       --  directly in the tree in this form. The following node is used only
4212       --  in the case where the designator has a parent unit name component.
4213
4214       --  N_Designator
4215       --  Sloc points to period
4216       --  Name (Node2) holds the parent unit name. Note that this is always
4217       --   non-Empty, since this node is only used for the case where a
4218       --   parent library unit package name is present.
4219       --  Identifier (Node1)
4220
4221       --  Note that the identifier can also be an operator symbol here
4222
4223       ------------------------------
4224       -- 6.1  Defining Designator --
4225       ------------------------------
4226
4227       --  DEFINING_DESIGNATOR ::=
4228       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4229
4230       -------------------------------------
4231       -- 6.1  Defining Program Unit Name --
4232       -------------------------------------
4233
4234       --  DEFINING_PROGRAM_UNIT_NAME ::=
4235       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4236
4237       --  The parent unit name is present only in the case of a child unit
4238       --  name (permissible only for Ada 95 for a library level unit, i.e.
4239       --  a unit at scope level one). If no such name is present, the defining
4240       --  program unit name is represented simply as the defining identifier.
4241       --  In the child unit case, the following node is used to represent the
4242       --  child unit name.
4243
4244       --  N_Defining_Program_Unit_Name
4245       --  Sloc points to period
4246       --  Name (Node2) holds the parent unit name. Note that this is always
4247       --   non-Empty, since this node is only used for the case where a
4248       --   parent unit name is present.
4249       --  Defining_Identifier (Node1)
4250
4251       --------------------------
4252       -- 6.1  Operator Symbol --
4253       --------------------------
4254
4255       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4256
4257       --  Note: the fields of the N_Operator_Symbol node are laid out to
4258       --  match the corresponding fields of an N_Character_Literal node. This
4259       --  allows easy conversion of the operator symbol node into a character
4260       --  literal node in the case where a string constant of the form of an
4261       --  operator symbol is scanned out as such, but turns out semantically
4262       --  to be a string literal that is not an operator. For details see
4263       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4264
4265       --  N_Operator_Symbol
4266       --  Sloc points to literal
4267       --  Chars (Name1) contains the Name_Id for the operator symbol
4268       --  Strval (Str3) Id of string value. This is used if the operator
4269       --   symbol turns out to be a normal string after all.
4270       --  Entity (Node4-Sem)
4271       --  Associated_Node (Node4-Sem)
4272       --  Has_Private_View (Flag11-Sem) set in generic units.
4273       --  Etype (Node5-Sem)
4274
4275       --  Note: the Strval field may be set to No_String for generated
4276       --  operator symbols that are known not to be string literals
4277       --  semantically.
4278
4279       -----------------------------------
4280       -- 6.1  Defining Operator Symbol --
4281       -----------------------------------
4282
4283       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4284
4285       --  A defining operator symbol is an entity, which has additional
4286       --  fields depending on the setting of the Ekind field. These
4287       --  additional fields are defined (and access subprograms declared)
4288       --  in package Einfo.
4289
4290       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4291       --  are deliberately layed out to match the layout of fields in an
4292       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4293       --  an operator symbol node into a defining operator symbol node.
4294       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4295       --  for further details.
4296
4297       --  N_Defining_Operator_Symbol
4298       --  Sloc points to literal
4299       --  Chars (Name1) contains the Name_Id for the operator symbol
4300       --  Next_Entity (Node2-Sem)
4301       --  Scope (Node3-Sem)
4302       --  Etype (Node5-Sem)
4303
4304       ----------------------------
4305       -- 6.1  Parameter Profile --
4306       ----------------------------
4307
4308       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4309
4310       ---------------------------------------
4311       -- 6.1  Parameter and Result Profile --
4312       ---------------------------------------
4313
4314       --  PARAMETER_AND_RESULT_PROFILE ::=
4315       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4316       --  | [FORMAL_PART] return ACCESS_DEFINITION
4317
4318       --  There is no explicit node in the tree for a parameter and result
4319       --  profile. Instead the information appears directly in the parent.
4320
4321       ----------------------
4322       -- 6.1  Formal part --
4323       ----------------------
4324
4325       --  FORMAL_PART ::=
4326       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4327
4328       ----------------------------------
4329       -- 6.1  Parameter specification --
4330       ----------------------------------
4331
4332       --  PARAMETER_SPECIFICATION ::=
4333       --    DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4334       --      [:= DEFAULT_EXPRESSION]
4335       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4336       --      [:= DEFAULT_EXPRESSION]
4337
4338       --  Although the syntax allows multiple identifiers in the list, the
4339       --  semantics is as though successive specifications were given with
4340       --  identical type definition and expression components. To simplify
4341       --  semantic processing, the parser represents a multiple declaration
4342       --  case as a sequence of single Specifications, using the More_Ids and
4343       --  Prev_Ids flags to preserve the original source form as described
4344       --  in the section on "Handling of Defining Identifier Lists".
4345
4346       --  N_Parameter_Specification
4347       --  Sloc points to first identifier
4348       --  Defining_Identifier (Node1)
4349       --  In_Present (Flag15)
4350       --  Out_Present (Flag17)
4351       --  Null_Exclusion_Present (Flag11)
4352       --  Parameter_Type (Node2) subtype mark or access definition
4353       --  Expression (Node3) (set to Empty if no default expression present)
4354       --  Do_Accessibility_Check (Flag13-Sem)
4355       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4356       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4357       --  Default_Expression (Node5-Sem)
4358
4359       ---------------
4360       -- 6.1  Mode --
4361       ---------------
4362
4363       --  MODE ::= [in] | in out | out
4364
4365       --  There is no explicit node in the tree for the Mode. Instead the
4366       --  In_Present and Out_Present flags are set in the parent node to
4367       --  record the presence of keywords specifying the mode.
4368
4369       --------------------------
4370       -- 6.3  Subprogram Body --
4371       --------------------------
4372
4373       --  SUBPROGRAM_BODY ::=
4374       --    SUBPROGRAM_SPECIFICATION is
4375       --      DECLARATIVE_PART
4376       --    begin
4377       --      HANDLED_SEQUENCE_OF_STATEMENTS
4378       --    end [DESIGNATOR];
4379
4380       --  N_Subprogram_Body
4381       --  Sloc points to FUNCTION or PROCEDURE
4382       --  Specification (Node1)
4383       --  Declarations (List2)
4384       --  Handled_Statement_Sequence (Node4)
4385       --  Activation_Chain_Entity (Node3-Sem)
4386       --  Corresponding_Spec (Node5-Sem)
4387       --  Acts_As_Spec (Flag4-Sem)
4388       --  Bad_Is_Detected (Flag15) used only by parser
4389       --  Do_Storage_Check (Flag17-Sem)
4390       --  Has_Priority_Pragma (Flag6-Sem)
4391       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4392       --  Is_Entry_Barrier_Function (Flag8-Sem)
4393       --  Is_Task_Master (Flag5-Sem)
4394       --  Was_Originally_Stub (Flag13-Sem)
4395       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4396
4397       -----------------------------------
4398       -- 6.4  Procedure Call Statement --
4399       -----------------------------------
4400
4401       --  PROCEDURE_CALL_STATEMENT ::=
4402       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4403
4404       --  Note: the reason that a procedure call has expression fields is
4405       --  that it semantically resembles an expression, e.g. overloading is
4406       --  allowed and a type is concocted for semantic processing purposes.
4407       --  Certain of these fields, such as Parens are not relevant, but it
4408       --  is easier to just supply all of them together!
4409
4410       --  N_Procedure_Call_Statement
4411       --  Sloc points to first token of name or prefix
4412       --  Name (Node2) stores name or prefix
4413       --  Parameter_Associations (List3) (set to No_List if no
4414       --   actual parameter part)
4415       --  First_Named_Actual (Node4-Sem)
4416       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4417       --  Do_Tag_Check (Flag13-Sem)
4418       --  No_Elaboration_Check (Flag14-Sem)
4419       --  Parameter_List_Truncated (Flag17-Sem)
4420       --  ABE_Is_Certain (Flag18-Sem)
4421       --  plus fields for expression
4422
4423       --  If any IN parameter requires a range check, then the corresponding
4424       --  argument expression has the Do_Range_Check flag set, and the range
4425       --  check is done against the formal type. Note that this argument
4426       --  expression may appear directly in the Parameter_Associations list,
4427       --  or may be a descendent of an N_Parameter_Association node that
4428       --  appears in this list.
4429
4430       ------------------------
4431       -- 6.4  Function Call --
4432       ------------------------
4433
4434       --  FUNCTION_CALL ::=
4435       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4436
4437       --  Note: the parser may generate an indexed component node or simply
4438       --  a name node instead of a function call node. The semantic pass must
4439       --  correct this misidentification.
4440
4441       --  N_Function_Call
4442       --  Sloc points to first token of name or prefix
4443       --  Name (Node2) stores name or prefix
4444       --  Parameter_Associations (List3) (set to No_List if no
4445       --   actual parameter part)
4446       --  First_Named_Actual (Node4-Sem)
4447       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4448       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4449       --  Do_Tag_Check (Flag13-Sem)
4450       --  No_Elaboration_Check (Flag14-Sem)
4451       --  Parameter_List_Truncated (Flag17-Sem)
4452       --  ABE_Is_Certain (Flag18-Sem)
4453       --  plus fields for expression
4454
4455       --------------------------------
4456       -- 6.4  Actual Parameter Part --
4457       --------------------------------
4458
4459       --  ACTUAL_PARAMETER_PART ::=
4460       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4461
4462       --------------------------------
4463       -- 6.4  Parameter Association --
4464       --------------------------------
4465
4466       --  PARAMETER_ASSOCIATION ::=
4467       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4468
4469       --  Note: the N_Parameter_Association node is built only if a formal
4470       --  parameter selector name is present, otherwise the parameter
4471       --  association appears in the tree simply as the node for the
4472       --  explicit actual parameter.
4473
4474       --  N_Parameter_Association
4475       --  Sloc points to formal parameter
4476       --  Selector_Name (Node2) (always non-Empty)
4477       --  Explicit_Actual_Parameter (Node3)
4478       --  Next_Named_Actual (Node4-Sem)
4479       --  Is_Accessibility_Actual (Flag13-Sem)
4480
4481       ---------------------------
4482       -- 6.4  Actual Parameter --
4483       ---------------------------
4484
4485       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4486
4487       ---------------------------
4488       -- 6.5  Return Statement --
4489       ---------------------------
4490
4491       --  RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4492
4493       --  In Ada 2005, we have:
4494
4495       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4496
4497       --  EXTENDED_RETURN_STATEMENT ::=
4498       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4499       --                                           [:= EXPRESSION] [do
4500       --      HANDLED_SEQUENCE_OF_STATEMENTS
4501       --    end return];
4502
4503       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4504
4505       --  So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4506       --  "return statement" is defined in 6.5 to mean a
4507       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4508
4509       --  N_Return_Statement
4510       --  Sloc points to RETURN
4511       --  Return_Statement_Entity (Node5-Sem)
4512       --  Expression (Node3) (set to Empty if no expression present)
4513       --  Storage_Pool (Node1-Sem)
4514       --  Procedure_To_Call (Node2-Sem)
4515       --  Do_Tag_Check (Flag13-Sem)
4516       --  By_Ref (Flag5-Sem)
4517       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4518
4519       --  N_Return_Statement represents a simple_return_statement, and is
4520       --  renamed to be N_Simple_Return_Statement below. Clients should refer
4521       --  to N_Simple_Return_Statement. We retain N_Return_Statement because
4522       --  that's how gigi knows it. See also renaming of Make_Return_Statement
4523       --  as Make_Simple_Return_Statement in Sem_Util.
4524
4525       --  Note: Return_Statement_Entity points to an E_Return_Statement
4526
4527       --  If a range check is required, then Do_Range_Check is set on the
4528       --  Expression. The check is against the return subtype of the function.
4529
4530       --  N_Extended_Return_Statement
4531       --  Sloc points to RETURN
4532       --  Return_Statement_Entity (Node5-Sem)
4533       --  Return_Object_Declarations (List3)
4534       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
4535       --  Storage_Pool (Node1-Sem)
4536       --  Procedure_To_Call (Node2-Sem)
4537       --  Do_Tag_Check (Flag13-Sem)
4538       --  By_Ref (Flag5-Sem)
4539
4540       --  Note: Return_Statement_Entity points to an E_Return_Statement.
4541       --  Note that Return_Object_Declarations is a list containing the
4542       --  N_Object_Declaration -- see comment on this field above.
4543       --  The declared object will have Is_Return_Object = True.
4544       --  There is no such syntactic category as return_object_declaration
4545       --  in the RM. Return_Object_Declarations represents this portion of
4546       --  the syntax for EXTENDED_RETURN_STATEMENT:
4547       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4548       --                                      [:= EXPRESSION]
4549
4550       --  There are two entities associated with an extended_return_statement:
4551       --  the Return_Statement_Entity represents the statement itself, and the
4552       --  Defining_Identifier of the Object_Declaration in
4553       --  Return_Object_Declarations represents the object being
4554       --  returned. N_Simple_Return_Statement has only the former.
4555
4556       ------------------------------
4557       -- 7.1  Package Declaration --
4558       ------------------------------
4559
4560       --  PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4561
4562       --  Note: the activation chain entity for a package spec is used for
4563       --  all tasks declared in the package spec, or in the package body.
4564
4565       --  N_Package_Declaration
4566       --  Sloc points to PACKAGE
4567       --  Specification (Node1)
4568       --  Corresponding_Body (Node5-Sem)
4569       --  Parent_Spec (Node4-Sem)
4570       --  Activation_Chain_Entity (Node3-Sem)
4571
4572       --------------------------------
4573       -- 7.1  Package Specification --
4574       --------------------------------
4575
4576       --  PACKAGE_SPECIFICATION ::=
4577       --    package DEFINING_PROGRAM_UNIT_NAME is
4578       --      {BASIC_DECLARATIVE_ITEM}
4579       --    [private
4580       --      {BASIC_DECLARATIVE_ITEM}]
4581       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4582
4583       --  N_Package_Specification
4584       --  Sloc points to PACKAGE
4585       --  Defining_Unit_Name (Node1)
4586       --  Visible_Declarations (List2)
4587       --  Private_Declarations (List3) (set to No_List if no private
4588       --   part present)
4589       --  End_Label (Node4)
4590       --  Generic_Parent (Node5-Sem)
4591       --  Limited_View_Installed (Flag18-Sem)
4592
4593       -----------------------
4594       -- 7.1  Package Body --
4595       -----------------------
4596
4597       --  PACKAGE_BODY ::=
4598       --    package body DEFINING_PROGRAM_UNIT_NAME is
4599       --      DECLARATIVE_PART
4600       --    [begin
4601       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4602       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4603
4604       --  N_Package_Body
4605       --  Sloc points to PACKAGE
4606       --  Defining_Unit_Name (Node1)
4607       --  Declarations (List2)
4608       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4609       --  Corresponding_Spec (Node5-Sem)
4610       --  Was_Originally_Stub (Flag13-Sem)
4611
4612       --  Note: if a source level package does not contain a handled sequence
4613       --  of statements, then the parser supplies a dummy one with a null
4614       --  sequence of statements. Comes_From_Source will be False in this
4615       --  constructed sequence. The reason we need this is for the End_Label
4616       --  field in the HSS.
4617
4618       -----------------------------------
4619       -- 7.4  Private Type Declaration --
4620       -----------------------------------
4621
4622       --  PRIVATE_TYPE_DECLARATION ::=
4623       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4624       --      is [[abstract] tagged] [limited] private;
4625
4626       --  Note: TAGGED is not permitted in Ada 83 mode
4627
4628       --  N_Private_Type_Declaration
4629       --  Sloc points to TYPE
4630       --  Defining_Identifier (Node1)
4631       --  Discriminant_Specifications (List4) (set to No_List if no
4632       --   discriminant part)
4633       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4634       --  Abstract_Present (Flag4)
4635       --  Tagged_Present (Flag15)
4636       --  Limited_Present (Flag17)
4637
4638       ----------------------------------------
4639       -- 7.4  Private Extension Declaration --
4640       ----------------------------------------
4641
4642       --  PRIVATE_EXTENSION_DECLARATION ::=
4643       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4644       --      [abstract] [limited | synchronized]
4645       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4646       --           with private;
4647
4648       --  Note: LIMITED, and private extension declarations are not allowed
4649       --        in Ada 83 mode.
4650
4651       --  N_Private_Extension_Declaration
4652       --  Sloc points to TYPE
4653       --  Defining_Identifier (Node1)
4654       --  Discriminant_Specifications (List4) (set to No_List if no
4655       --   discriminant part)
4656       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4657       --  Abstract_Present (Flag4)
4658       --  Limited_Present (Flag17)
4659       --  Synchronized_Present (Flag7)
4660       --  Subtype_Indication (Node5)
4661       --  Interface_List (List2) (set to No_List if none)
4662
4663       ---------------------
4664       -- 8.4  Use Clause --
4665       ---------------------
4666
4667       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4668
4669       -----------------------------
4670       -- 8.4  Use Package Clause --
4671       -----------------------------
4672
4673       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4674
4675       --  N_Use_Package_Clause
4676       --  Sloc points to USE
4677       --  Names (List2)
4678       --  Next_Use_Clause (Node3-Sem)
4679       --  Hidden_By_Use_Clause (Elist4-Sem)
4680
4681       --------------------------
4682       -- 8.4  Use Type Clause --
4683       --------------------------
4684
4685       --  USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4686
4687       --  Note: use type clause is not permitted in Ada 83 mode
4688
4689       --  N_Use_Type_Clause
4690       --  Sloc points to USE
4691       --  Subtype_Marks (List2)
4692       --  Next_Use_Clause (Node3-Sem)
4693       --  Hidden_By_Use_Clause (Elist4-Sem)
4694
4695       -------------------------------
4696       -- 8.5  Renaming Declaration --
4697       -------------------------------
4698
4699       --  RENAMING_DECLARATION ::=
4700       --    OBJECT_RENAMING_DECLARATION
4701       --  | EXCEPTION_RENAMING_DECLARATION
4702       --  | PACKAGE_RENAMING_DECLARATION
4703       --  | SUBPROGRAM_RENAMING_DECLARATION
4704       --  | GENERIC_RENAMING_DECLARATION
4705
4706       --------------------------------------
4707       -- 8.5  Object Renaming Declaration --
4708       --------------------------------------
4709
4710       --  OBJECT_RENAMING_DECLARATION ::=
4711       --    DEFINING_IDENTIFIER :
4712       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4713       --  | DEFINING_IDENTIFIER :
4714       --      ACCESS_DEFINITION renames object_NAME;
4715
4716       --  Note: Access_Definition is an optional field that gives support to
4717       --  Ada 2005 (AI-230). The parser generates nodes that have either the
4718       --  Subtype_Indication field or else the Access_Definition field.
4719
4720       --  N_Object_Renaming_Declaration
4721       --  Sloc points to first identifier
4722       --  Defining_Identifier (Node1)
4723       --  Null_Exclusion_Present (Flag11) (set to False if not present)
4724       --  Subtype_Mark (Node4) (set to Empty if not present)
4725       --  Access_Definition (Node3) (set to Empty if not present)
4726       --  Name (Node2)
4727       --  Corresponding_Generic_Association (Node5-Sem)
4728
4729       -----------------------------------------
4730       -- 8.5  Exception Renaming Declaration --
4731       -----------------------------------------
4732
4733       --  EXCEPTION_RENAMING_DECLARATION ::=
4734       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4735
4736       --  N_Exception_Renaming_Declaration
4737       --  Sloc points to first identifier
4738       --  Defining_Identifier (Node1)
4739       --  Name (Node2)
4740
4741       ---------------------------------------
4742       -- 8.5  Package Renaming Declaration --
4743       ---------------------------------------
4744
4745       --  PACKAGE_RENAMING_DECLARATION ::=
4746       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4747
4748       --  N_Package_Renaming_Declaration
4749       --  Sloc points to PACKAGE
4750       --  Defining_Unit_Name (Node1)
4751       --  Name (Node2)
4752       --  Parent_Spec (Node4-Sem)
4753
4754       ------------------------------------------
4755       -- 8.5  Subprogram Renaming Declaration --
4756       ------------------------------------------
4757
4758       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4759       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4760
4761       --  N_Subprogram_Renaming_Declaration
4762       --  Sloc points to RENAMES
4763       --  Specification (Node1)
4764       --  Name (Node2)
4765       --  Parent_Spec (Node4-Sem)
4766       --  Corresponding_Spec (Node5-Sem)
4767       --  Corresponding_Formal_Spec (Node3-Sem)
4768       --  From_Default (Flag6-Sem)
4769
4770       -----------------------------------------
4771       -- 8.5.5  Generic Renaming Declaration --
4772       -----------------------------------------
4773
4774       --  GENERIC_RENAMING_DECLARATION ::=
4775       --    generic package DEFINING_PROGRAM_UNIT_NAME
4776       --      renames generic_package_NAME
4777       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
4778       --      renames generic_procedure_NAME
4779       --  | generic function DEFINING_PROGRAM_UNIT_NAME
4780       --      renames generic_function_NAME
4781
4782       --  N_Generic_Package_Renaming_Declaration
4783       --  Sloc points to GENERIC
4784       --  Defining_Unit_Name (Node1)
4785       --  Name (Node2)
4786       --  Parent_Spec (Node4-Sem)
4787
4788       --  N_Generic_Procedure_Renaming_Declaration
4789       --  Sloc points to GENERIC
4790       --  Defining_Unit_Name (Node1)
4791       --  Name (Node2)
4792       --  Parent_Spec (Node4-Sem)
4793
4794       --  N_Generic_Function_Renaming_Declaration
4795       --  Sloc points to GENERIC
4796       --  Defining_Unit_Name (Node1)
4797       --  Name (Node2)
4798       --  Parent_Spec (Node4-Sem)
4799
4800       --------------------------------
4801       -- 9.1  Task Type Declaration --
4802       --------------------------------
4803
4804       --  TASK_TYPE_DECLARATION ::=
4805       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4806       --      [is [new INTERFACE_LIST with] TASK_DEFINITION];
4807
4808       --  N_Task_Type_Declaration
4809       --  Sloc points to TASK
4810       --  Defining_Identifier (Node1)
4811       --  Discriminant_Specifications (List4) (set to No_List if no
4812       --   discriminant part)
4813       --  Interface_List (List2) (set to No_List if none)
4814       --  Task_Definition (Node3) (set to Empty if not present)
4815       --  Corresponding_Body (Node5-Sem)
4816
4817       ----------------------------------
4818       -- 9.1  Single Task Declaration --
4819       ----------------------------------
4820
4821       --  SINGLE_TASK_DECLARATION ::=
4822       --    task DEFINING_IDENTIFIER
4823       --      [is [new INTERFACE_LIST with] TASK_DEFINITION];
4824
4825       --  N_Single_Task_Declaration
4826       --  Sloc points to TASK
4827       --  Defining_Identifier (Node1)
4828       --  Interface_List (List2) (set to No_List if none)
4829       --  Task_Definition (Node3) (set to Empty if not present)
4830
4831       --------------------------
4832       -- 9.1  Task Definition --
4833       --------------------------
4834
4835       --  TASK_DEFINITION ::=
4836       --      {TASK_ITEM}
4837       --    [private
4838       --      {TASK_ITEM}]
4839       --    end [task_IDENTIFIER]
4840
4841       --  Note: as a result of semantic analysis, the list of task items can
4842       --  include implicit type declarations resulting from entry families.
4843
4844       --  N_Task_Definition
4845       --  Sloc points to first token of task definition
4846       --  Visible_Declarations (List2)
4847       --  Private_Declarations (List3) (set to No_List if no private part)
4848       --  End_Label (Node4)
4849       --  Has_Priority_Pragma (Flag6-Sem)
4850       --  Has_Storage_Size_Pragma (Flag5-Sem)
4851       --  Has_Task_Info_Pragma (Flag7-Sem)
4852       --  Has_Task_Name_Pragma (Flag8-Sem)
4853       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4854
4855       --------------------
4856       -- 9.1  Task Item --
4857       --------------------
4858
4859       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4860
4861       --------------------
4862       -- 9.1  Task Body --
4863       --------------------
4864
4865       --  TASK_BODY ::=
4866       --    task body task_DEFINING_IDENTIFIER is
4867       --      DECLARATIVE_PART
4868       --    begin
4869       --      HANDLED_SEQUENCE_OF_STATEMENTS
4870       --    end [task_IDENTIFIER];
4871
4872       --  Gigi restriction: This node never appears
4873
4874       --  N_Task_Body
4875       --  Sloc points to TASK
4876       --  Defining_Identifier (Node1)
4877       --  Declarations (List2)
4878       --  Handled_Statement_Sequence (Node4)
4879       --  Is_Task_Master (Flag5-Sem)
4880       --  Activation_Chain_Entity (Node3-Sem)
4881       --  Corresponding_Spec (Node5-Sem)
4882       --  Was_Originally_Stub (Flag13-Sem)
4883
4884       -------------------------------------
4885       -- 9.4  Protected Type Declaration --
4886       -------------------------------------
4887
4888       --  PROTECTED_TYPE_DECLARATION ::=
4889       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4890       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4891
4892       --  Note: protected type declarations are not permitted in Ada 83 mode
4893
4894       --  N_Protected_Type_Declaration
4895       --  Sloc points to PROTECTED
4896       --  Defining_Identifier (Node1)
4897       --  Discriminant_Specifications (List4) (set to No_List if no
4898       --   discriminant part)
4899       --  Interface_List (List2) (set to No_List if none)
4900       --  Protected_Definition (Node3)
4901       --  Corresponding_Body (Node5-Sem)
4902
4903       ---------------------------------------
4904       -- 9.4  Single Protected Declaration --
4905       ---------------------------------------
4906
4907       --  SINGLE_PROTECTED_DECLARATION ::=
4908       --    protected DEFINING_IDENTIFIER
4909       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4910
4911       --  Note: single protected declarations are not allowed in Ada 83 mode
4912
4913       --  N_Single_Protected_Declaration
4914       --  Sloc points to PROTECTED
4915       --  Defining_Identifier (Node1)
4916       --  Interface_List (List2) (set to No_List if none)
4917       --  Protected_Definition (Node3)
4918
4919       -------------------------------
4920       -- 9.4  Protected Definition --
4921       -------------------------------
4922
4923       --  PROTECTED_DEFINITION ::=
4924       --      {PROTECTED_OPERATION_DECLARATION}
4925       --    [private
4926       --      {PROTECTED_ELEMENT_DECLARATION}]
4927       --    end [protected_IDENTIFIER]
4928
4929       --  N_Protected_Definition
4930       --  Sloc points to first token of protected definition
4931       --  Visible_Declarations (List2)
4932       --  Private_Declarations (List3) (set to No_List if no private part)
4933       --  End_Label (Node4)
4934       --  Has_Priority_Pragma (Flag6-Sem)
4935
4936       ------------------------------------------
4937       -- 9.4  Protected Operation Declaration --
4938       ------------------------------------------
4939
4940       --  PROTECTED_OPERATION_DECLARATION ::=
4941       --    SUBPROGRAM_DECLARATION
4942       --  | ENTRY_DECLARATION
4943       --  | REPRESENTATION_CLAUSE
4944
4945       ----------------------------------------
4946       -- 9.4  Protected Element Declaration --
4947       ----------------------------------------
4948
4949       --  PROTECTED_ELEMENT_DECLARATION ::=
4950       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4951
4952       -------------------------
4953       -- 9.4  Protected Body --
4954       -------------------------
4955
4956       --  PROTECTED_BODY ::=
4957       --    protected body DEFINING_IDENTIFIER is
4958       --      {PROTECTED_OPERATION_ITEM}
4959       --    end [protected_IDENTIFIER];
4960
4961       --  Note: protected bodies are not allowed in Ada 83 mode
4962
4963       --  Gigi restriction: This node never appears
4964
4965       --  N_Protected_Body
4966       --  Sloc points to PROTECTED
4967       --  Defining_Identifier (Node1)
4968       --  Declarations (List2) protected operation items (and pragmas)
4969       --  End_Label (Node4)
4970       --  Corresponding_Spec (Node5-Sem)
4971       --  Was_Originally_Stub (Flag13-Sem)
4972
4973       -----------------------------------
4974       -- 9.4  Protected Operation Item --
4975       -----------------------------------
4976
4977       --  PROTECTED_OPERATION_ITEM ::=
4978       --    SUBPROGRAM_DECLARATION
4979       --  | SUBPROGRAM_BODY
4980       --  | ENTRY_BODY
4981       --  | REPRESENTATION_CLAUSE
4982
4983       ------------------------------
4984       -- 9.5.2  Entry Declaration --
4985       ------------------------------
4986
4987       --  ENTRY_DECLARATION ::=
4988       --    [[not] overriding]
4989       --    entry DEFINING_IDENTIFIER
4990       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4991
4992       --  N_Entry_Declaration
4993       --  Sloc points to ENTRY
4994       --  Defining_Identifier (Node1)
4995       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4996       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4997       --  Corresponding_Body (Node5-Sem)
4998       --  Must_Override (Flag14) set if overriding indicator present
4999       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5000
5001       --  Note: overriding indicator is an Ada 2005 feature
5002
5003       -----------------------------
5004       -- 9.5.2  Accept statement --
5005       -----------------------------
5006
5007       --  ACCEPT_STATEMENT ::=
5008       --    accept entry_DIRECT_NAME
5009       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5010       --        HANDLED_SEQUENCE_OF_STATEMENTS
5011       --    end [entry_IDENTIFIER]];
5012
5013       --  Gigi restriction: This node never appears
5014
5015       --  Note: there are no explicit declarations allowed in an accept
5016       --  statement. However, the implicit declarations for any statement
5017       --  identifiers (labels and block/loop identifiers) are declarations
5018       --  that belong logically to the accept statement, and that is why
5019       --  there is a Declarations field in this node.
5020
5021       --  N_Accept_Statement
5022       --  Sloc points to ACCEPT
5023       --  Entry_Direct_Name (Node1)
5024       --  Entry_Index (Node5) (set to Empty if not present)
5025       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5026       --  Handled_Statement_Sequence (Node4)
5027       --  Declarations (List2) (set to No_List if no declarations)
5028
5029       ------------------------
5030       -- 9.5.2  Entry Index --
5031       ------------------------
5032
5033       --  ENTRY_INDEX ::= EXPRESSION
5034
5035       -----------------------
5036       -- 9.5.2  Entry Body --
5037       -----------------------
5038
5039       --  ENTRY_BODY ::=
5040       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5041       --      DECLARATIVE_PART
5042       --    begin
5043       --      HANDLED_SEQUENCE_OF_STATEMENTS
5044       --    end [entry_IDENTIFIER];
5045
5046       --  ENTRY_BARRIER ::= when CONDITION
5047
5048       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5049       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5050       --  too full (it would otherwise have too many fields)
5051
5052       --  Gigi restriction: This node never appears
5053
5054       --  N_Entry_Body
5055       --  Sloc points to ENTRY
5056       --  Defining_Identifier (Node1)
5057       --  Entry_Body_Formal_Part (Node5)
5058       --  Declarations (List2)
5059       --  Handled_Statement_Sequence (Node4)
5060       --  Activation_Chain_Entity (Node3-Sem)
5061
5062       -----------------------------------
5063       -- 9.5.2  Entry Body Formal Part --
5064       -----------------------------------
5065
5066       --  ENTRY_BODY_FORMAL_PART ::=
5067       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5068
5069       --  Note that an entry body formal part node is present even if it is
5070       --  empty. This reflects the grammar, in which it is the components of
5071       --  the entry body formal part that are optional, not the entry body
5072       --  formal part itself. Also this means that the barrier condition
5073       --  always has somewhere to be stored.
5074
5075       --  Gigi restriction: This node never appears
5076
5077       --  N_Entry_Body_Formal_Part
5078       --  Sloc points to first token
5079       --  Entry_Index_Specification (Node4) (set to Empty if not present)
5080       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5081       --  Condition (Node1) from entry barrier of entry body
5082
5083       --------------------------
5084       -- 9.5.2  Entry Barrier --
5085       --------------------------
5086
5087       --  ENTRY_BARRIER ::= when CONDITION
5088
5089       --------------------------------------
5090       -- 9.5.2  Entry Index Specification --
5091       --------------------------------------
5092
5093       --  ENTRY_INDEX_SPECIFICATION ::=
5094       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5095
5096       --  Gigi restriction: This node never appears
5097
5098       --  N_Entry_Index_Specification
5099       --  Sloc points to FOR
5100       --  Defining_Identifier (Node1)
5101       --  Discrete_Subtype_Definition (Node4)
5102
5103       ---------------------------------
5104       -- 9.5.3  Entry Call Statement --
5105       ---------------------------------
5106
5107       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5108
5109       --  The parser may generate a procedure call for this construct. The
5110       --  semantic pass must correct this misidentification where needed.
5111
5112       --  Gigi restriction: This node never appears
5113
5114       --  N_Entry_Call_Statement
5115       --  Sloc points to first token of name
5116       --  Name (Node2)
5117       --  Parameter_Associations (List3) (set to No_List if no
5118       --   actual parameter part)
5119       --  First_Named_Actual (Node4-Sem)
5120
5121       ------------------------------
5122       -- 9.5.4  Requeue Statement --
5123       ------------------------------
5124
5125       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5126
5127       --  Note: requeue statements are not permitted in Ada 83 mode
5128
5129       --  Gigi restriction: This node never appears
5130
5131       --  N_Requeue_Statement
5132       --  Sloc points to REQUEUE
5133       --  Name (Node2)
5134       --  Abort_Present (Flag15)
5135
5136       --------------------------
5137       -- 9.6  Delay Statement --
5138       --------------------------
5139
5140       --  DELAY_STATEMENT ::=
5141       --    DELAY_UNTIL_STATEMENT
5142       --  | DELAY_RELATIVE_STATEMENT
5143
5144       --------------------------------
5145       -- 9.6  Delay Until Statement --
5146       --------------------------------
5147
5148       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5149
5150       --  Note: delay until statements are not permitted in Ada 83 mode
5151
5152       --  Gigi restriction: This node never appears
5153
5154       --  N_Delay_Until_Statement
5155       --  Sloc points to DELAY
5156       --  Expression (Node3)
5157
5158       -----------------------------------
5159       -- 9.6  Delay Relative Statement --
5160       -----------------------------------
5161
5162       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5163
5164       --  Gigi restriction: This node never appears
5165
5166       --  N_Delay_Relative_Statement
5167       --  Sloc points to DELAY
5168       --  Expression (Node3)
5169
5170       ---------------------------
5171       -- 9.7  Select Statement --
5172       ---------------------------
5173
5174       --  SELECT_STATEMENT ::=
5175       --    SELECTIVE_ACCEPT
5176       --  | TIMED_ENTRY_CALL
5177       --  | CONDITIONAL_ENTRY_CALL
5178       --  | ASYNCHRONOUS_SELECT
5179
5180       -----------------------------
5181       -- 9.7.1  Selective Accept --
5182       -----------------------------
5183
5184       --  SELECTIVE_ACCEPT ::=
5185       --    select
5186       --      [GUARD]
5187       --        SELECT_ALTERNATIVE
5188       --    {or
5189       --      [GUARD]
5190       --        SELECT_ALTERNATIVE}
5191       --    [else
5192       --      SEQUENCE_OF_STATEMENTS]
5193       --    end select;
5194
5195       --  Gigi restriction: This node never appears
5196
5197       --  Note: the guard expression, if present, appears in the node for
5198       --  the select alternative.
5199
5200       --  N_Selective_Accept
5201       --  Sloc points to SELECT
5202       --  Select_Alternatives (List1)
5203       --  Else_Statements (List4) (set to No_List if no else part)
5204
5205       ------------------
5206       -- 9.7.1  Guard --
5207       ------------------
5208
5209       --  GUARD ::= when CONDITION =>
5210
5211       --  As noted above, the CONDITION that is part of a GUARD is included
5212       --  in the node for the select alternative for convenience.
5213
5214       -------------------------------
5215       -- 9.7.1  Select Alternative --
5216       -------------------------------
5217
5218       --  SELECT_ALTERNATIVE ::=
5219       --    ACCEPT_ALTERNATIVE
5220       --  | DELAY_ALTERNATIVE
5221       --  | TERMINATE_ALTERNATIVE
5222
5223       -------------------------------
5224       -- 9.7.1  Accept Alternative --
5225       -------------------------------
5226
5227       --  ACCEPT_ALTERNATIVE ::=
5228       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5229
5230       --  Gigi restriction: This node never appears
5231
5232       --  N_Accept_Alternative
5233       --  Sloc points to ACCEPT
5234       --  Accept_Statement (Node2)
5235       --  Condition (Node1) from the guard (set to Empty if no guard present)
5236       --  Statements (List3) (set to Empty_List if no statements)
5237       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5238       --  Accept_Handler_Records (List5-Sem)
5239
5240       ------------------------------
5241       -- 9.7.1  Delay Alternative --
5242       ------------------------------
5243
5244       --  DELAY_ALTERNATIVE ::=
5245       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5246
5247       --  Gigi restriction: This node never appears
5248
5249       --  N_Delay_Alternative
5250       --  Sloc points to DELAY
5251       --  Delay_Statement (Node2)
5252       --  Condition (Node1) from the guard (set to Empty if no guard present)
5253       --  Statements (List3) (set to Empty_List if no statements)
5254       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5255
5256       ----------------------------------
5257       -- 9.7.1  Terminate Alternative --
5258       ----------------------------------
5259
5260       --  TERMINATE_ALTERNATIVE ::= terminate;
5261
5262       --  Gigi restriction: This node never appears
5263
5264       --  N_Terminate_Alternative
5265       --  Sloc points to TERMINATE
5266       --  Condition (Node1) from the guard (set to Empty if no guard present)
5267       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5268       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5269
5270       -----------------------------
5271       -- 9.7.2  Timed Entry Call --
5272       -----------------------------
5273
5274       --  TIMED_ENTRY_CALL ::=
5275       --    select
5276       --      ENTRY_CALL_ALTERNATIVE
5277       --    or
5278       --      DELAY_ALTERNATIVE
5279       --    end select;
5280
5281       --  Gigi restriction: This node never appears
5282
5283       --  N_Timed_Entry_Call
5284       --  Sloc points to SELECT
5285       --  Entry_Call_Alternative (Node1)
5286       --  Delay_Alternative (Node4)
5287
5288       -----------------------------------
5289       -- 9.7.2  Entry Call Alternative --
5290       -----------------------------------
5291
5292       --  ENTRY_CALL_ALTERNATIVE ::=
5293       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5294
5295       --  PROCEDURE_OR_ENTRY_CALL ::=
5296       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5297
5298       --  Gigi restriction: This node never appears
5299
5300       --  N_Entry_Call_Alternative
5301       --  Sloc points to first token of entry call statement
5302       --  Entry_Call_Statement (Node1)
5303       --  Statements (List3) (set to Empty_List if no statements)
5304       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5305
5306       -----------------------------------
5307       -- 9.7.3  Conditional Entry Call --
5308       -----------------------------------
5309
5310       --  CONDITIONAL_ENTRY_CALL ::=
5311       --    select
5312       --      ENTRY_CALL_ALTERNATIVE
5313       --    else
5314       --      SEQUENCE_OF_STATEMENTS
5315       --    end select;
5316
5317       --  Gigi restriction: This node never appears
5318
5319       --  N_Conditional_Entry_Call
5320       --  Sloc points to SELECT
5321       --  Entry_Call_Alternative (Node1)
5322       --  Else_Statements (List4)
5323
5324       --------------------------------
5325       -- 9.7.4  Asynchronous Select --
5326       --------------------------------
5327
5328       --  ASYNCHRONOUS_SELECT ::=
5329       --    select
5330       --      TRIGGERING_ALTERNATIVE
5331       --    then abort
5332       --      ABORTABLE_PART
5333       --    end select;
5334
5335       --  Note: asynchronous select is not permitted in Ada 83 mode
5336
5337       --  Gigi restriction: This node never appears
5338
5339       --  N_Asynchronous_Select
5340       --  Sloc points to SELECT
5341       --  Triggering_Alternative (Node1)
5342       --  Abortable_Part (Node2)
5343
5344       -----------------------------------
5345       -- 9.7.4  Triggering Alternative --
5346       -----------------------------------
5347
5348       --  TRIGGERING_ALTERNATIVE ::=
5349       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5350
5351       --  Gigi restriction: This node never appears
5352
5353       --  N_Triggering_Alternative
5354       --  Sloc points to first token of triggering statement
5355       --  Triggering_Statement (Node1)
5356       --  Statements (List3) (set to Empty_List if no statements)
5357       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5358
5359       ---------------------------------
5360       -- 9.7.4  Triggering Statement --
5361       ---------------------------------
5362
5363       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5364
5365       ---------------------------
5366       -- 9.7.4  Abortable Part --
5367       ---------------------------
5368
5369       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5370
5371       --  Gigi restriction: This node never appears
5372
5373       --  N_Abortable_Part
5374       --  Sloc points to ABORT
5375       --  Statements (List3)
5376
5377       --------------------------
5378       -- 9.8  Abort Statement --
5379       --------------------------
5380
5381       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5382
5383       --  Gigi restriction: This node never appears
5384
5385       --  N_Abort_Statement
5386       --  Sloc points to ABORT
5387       --  Names (List2)
5388
5389       -------------------------
5390       -- 10.1.1  Compilation --
5391       -------------------------
5392
5393       --  COMPILATION ::= {COMPILATION_UNIT}
5394
5395       --  There is no explicit node in the tree for a compilation, since in
5396       --  general the compiler is processing only a single compilation unit
5397       --  at a time. It is possible to parse multiple units in syntax check
5398       --  only mode, but the trees are discarded in that case.
5399
5400       ------------------------------
5401       -- 10.1.1  Compilation Unit --
5402       ------------------------------
5403
5404       --  COMPILATION_UNIT ::=
5405       --    CONTEXT_CLAUSE LIBRARY_ITEM
5406       --  | CONTEXT_CLAUSE SUBUNIT
5407
5408       --  The N_Compilation_Unit node itself represents the above syntax.
5409       --  However, there are two additional items not reflected in the above
5410       --  syntax. First we have the global declarations that are added by the
5411       --  code generator. These are outer level declarations (so they cannot
5412       --  be represented as being inside the units). An example is the wrapper
5413       --  subprograms that are created to do ABE checking. As always a list of
5414       --  declarations can contain actions as well (i.e. statements), and such
5415       --  statements are executed as part of the elaboration of the unit. Note
5416       --  that all such declarations are elaborated before the library unit.
5417
5418       --  Similarly, certain actions need to be elaborated at the completion
5419       --  of elaboration of the library unit (notably the statement that sets
5420       --  the Boolean flag indicating that elaboration is complete).
5421
5422       --  The third item not reflected in the syntax is pragmas that appear
5423       --  after the compilation unit. As always pragmas are a problem since
5424       --  they are not part of the formal syntax, but can be stuck into the
5425       --  source following a set of ad hoc rules, and we have to find an ad
5426       --  hoc way of sticking them into the tree. For pragmas that appear
5427       --  before the library unit, we just consider them to be part of the
5428       --  context clause, and pragmas can appear in the Context_Items list
5429       --  of the compilation unit. However, pragmas can also appear after
5430       --  the library item.
5431
5432       --  To deal with all these problems, we create an auxiliary node for
5433       --  a compilation unit, referenced from the N_Compilation_Unit node
5434       --  that contains these three items.
5435
5436       --  N_Compilation_Unit
5437       --  Sloc points to first token of defining unit name
5438       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5439       --  Context_Items (List1) context items and pragmas preceding unit
5440       --  Private_Present (Flag15) set if library unit has private keyword
5441       --  Unit (Node2) library item or subunit
5442       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5443       --  Has_No_Elaboration_Code (Flag17-Sem)
5444       --  Body_Required (Flag13-Sem) set for spec if body is required
5445       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5446       --  Context_Pending (Flag16-Sem)
5447       --  First_Inlined_Subprogram (Node3-Sem)
5448
5449       --  N_Compilation_Unit_Aux
5450       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5451       --  Declarations (List2) (set to No_List if no global declarations)
5452       --  Actions (List1) (set to No_List if no actions)
5453       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5454       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5455
5456       --------------------------
5457       -- 10.1.1  Library Item --
5458       --------------------------
5459
5460       --  LIBRARY_ITEM ::=
5461       --    [private] LIBRARY_UNIT_DECLARATION
5462       --  | LIBRARY_UNIT_BODY
5463       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5464
5465       --  Note: PRIVATE is not allowed in Ada 83 mode
5466
5467       --  There is no explicit node in the tree for library item, instead
5468       --  the declaration or body, and the flag for private if present,
5469       --  appear in the N_Compilation_Unit node.
5470
5471       --------------------------------------
5472       -- 10.1.1  Library Unit Declaration --
5473       --------------------------------------
5474
5475       --  LIBRARY_UNIT_DECLARATION ::=
5476       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5477       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5478
5479       -----------------------------------------------
5480       -- 10.1.1  Library Unit Renaming Declaration --
5481       -----------------------------------------------
5482
5483       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5484       --    PACKAGE_RENAMING_DECLARATION
5485       --  | GENERIC_RENAMING_DECLARATION
5486       --  | SUBPROGRAM_RENAMING_DECLARATION
5487
5488       -------------------------------
5489       -- 10.1.1  Library unit body --
5490       -------------------------------
5491
5492       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5493
5494       ------------------------------
5495       -- 10.1.1  Parent Unit Name --
5496       ------------------------------
5497
5498       --  PARENT_UNIT_NAME ::= NAME
5499
5500       ----------------------------
5501       -- 10.1.2  Context clause --
5502       ----------------------------
5503
5504       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5505
5506       --  The context clause can include pragmas, and any pragmas that appear
5507       --  before the context clause proper (i.e. all configuration pragmas,
5508       --  also appear at the front of this list).
5509
5510       --------------------------
5511       -- 10.1.2  Context_Item --
5512       --------------------------
5513
5514       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5515
5516       -------------------------
5517       -- 10.1.2  With clause --
5518       -------------------------
5519
5520       --  WITH_CLAUSE ::=
5521       --    with library_unit_NAME {,library_unit_NAME};
5522
5523       --  A separate With clause is built for each name, so that we have
5524       --  a Corresponding_Spec field for each with'ed spec. The flags
5525       --  First_Name and Last_Name are used to reconstruct the exact
5526       --  source form. When a list of names appears in one with clause,
5527       --  the first name in the list has First_Name set, and the last
5528       --  has Last_Name set. If the with clause has only one name, then
5529       --  both of the flags First_Name and Last_Name are set in this name.
5530
5531       --  Note: in the case of implicit with's that are installed by the
5532       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5533       --  set to Standard_Location, but it is incorrect to test the Sloc
5534       --  to find out if a with clause is implicit, test the flag instead.
5535
5536       --  N_With_Clause
5537       --  Sloc points to first token of library unit name
5538       --  Name (Node2)
5539       --  Next_Implicit_With (Node3-Sem)
5540       --  Library_Unit (Node4-Sem)
5541       --  Corresponding_Spec (Node5-Sem)
5542       --  First_Name (Flag5) (set to True if first name or only one name)
5543       --  Last_Name (Flag6) (set to True if last name or only one name)
5544       --  Context_Installed (Flag13-Sem)
5545       --  Elaborate_Present (Flag4-Sem)
5546       --  Elaborate_All_Present (Flag14-Sem)
5547       --  Elaborate_All_Desirable (Flag9-Sem)
5548       --  Elaborate_Desirable (Flag11-Sem)
5549       --  Private_Present (Flag15) set if with_clause has private keyword
5550       --  Implicit_With (Flag16-Sem)
5551       --  Limited_Present (Flag17)  set if LIMITED is present
5552       --  Limited_View_Installed (Flag18-Sem)
5553       --  Unreferenced_In_Spec (Flag7-Sem)
5554       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5555
5556       --  Note: Limited_Present and Limited_View_Installed give support to
5557       --        Ada 2005 (AI-50217).
5558       --  Similarly, Private_Present gives support to AI-50262.
5559
5560       ----------------------
5561       -- With_Type clause --
5562       ----------------------
5563
5564       --  This is a GNAT extension, used to implement mutually recursive
5565       --  types declared in different packages.
5566       --  Note: this is now obsolete. The functionality of this construct
5567       --  is now implemented by the Ada 2005 Limited_with_Clause.
5568
5569       ---------------------
5570       -- 10.2  Body stub --
5571       ---------------------
5572
5573       --  BODY_STUB ::=
5574       --    SUBPROGRAM_BODY_STUB
5575       --  | PACKAGE_BODY_STUB
5576       --  | TASK_BODY_STUB
5577       --  | PROTECTED_BODY_STUB
5578
5579       ----------------------------------
5580       -- 10.1.3  Subprogram Body Stub --
5581       ----------------------------------
5582
5583       --  SUBPROGRAM_BODY_STUB ::=
5584       --    SUBPROGRAM_SPECIFICATION is separate;
5585
5586       --  N_Subprogram_Body_Stub
5587       --  Sloc points to FUNCTION or PROCEDURE
5588       --  Specification (Node1)
5589       --  Library_Unit (Node4-Sem) points to the subunit
5590       --  Corresponding_Body (Node5-Sem)
5591
5592       -------------------------------
5593       -- 10.1.3  Package Body Stub --
5594       -------------------------------
5595
5596       --  PACKAGE_BODY_STUB ::=
5597       --    package body DEFINING_IDENTIFIER is separate;
5598
5599       --  N_Package_Body_Stub
5600       --  Sloc points to PACKAGE
5601       --  Defining_Identifier (Node1)
5602       --  Library_Unit (Node4-Sem) points to the subunit
5603       --  Corresponding_Body (Node5-Sem)
5604
5605       ----------------------------
5606       -- 10.1.3  Task Body Stub --
5607       ----------------------------
5608
5609       --  TASK_BODY_STUB ::=
5610       --    task body DEFINING_IDENTIFIER is separate;
5611
5612       --  N_Task_Body_Stub
5613       --  Sloc points to TASK
5614       --  Defining_Identifier (Node1)
5615       --  Library_Unit (Node4-Sem) points to the subunit
5616       --  Corresponding_Body (Node5-Sem)
5617
5618       ---------------------------------
5619       -- 10.1.3  Protected Body Stub --
5620       ---------------------------------
5621
5622       --  PROTECTED_BODY_STUB ::=
5623       --    protected body DEFINING_IDENTIFIER is separate;
5624
5625       --  Note: protected body stubs are not allowed in Ada 83 mode
5626
5627       --  N_Protected_Body_Stub
5628       --  Sloc points to PROTECTED
5629       --  Defining_Identifier (Node1)
5630       --  Library_Unit (Node4-Sem) points to the subunit
5631       --  Corresponding_Body (Node5-Sem)
5632
5633       ---------------------
5634       -- 10.1.3  Subunit --
5635       ---------------------
5636
5637       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5638
5639       --  N_Subunit
5640       --  Sloc points to SEPARATE
5641       --  Name (Node2) is the name of the parent unit
5642       --  Proper_Body (Node1) is the subunit body
5643       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5644
5645       ---------------------------------
5646       -- 11.1  Exception Declaration --
5647       ---------------------------------
5648
5649       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5650
5651       --  For consistency with object declarations etc., the parser converts
5652       --  the case of multiple identifiers being declared to a series of
5653       --  declarations in which the expression is copied, using the More_Ids
5654       --  and Prev_Ids flags to remember the source form as described in the
5655       --  section on "Handling of Defining Identifier Lists".
5656
5657       --  N_Exception_Declaration
5658       --  Sloc points to EXCEPTION
5659       --  Defining_Identifier (Node1)
5660       --  Expression (Node3-Sem)
5661       --  Renaming_Exception (Node2-Sem)
5662       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5663       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5664
5665       ------------------------------------------
5666       -- 11.2  Handled Sequence Of Statements --
5667       ------------------------------------------
5668
5669       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5670       --      SEQUENCE_OF_STATEMENTS
5671       --    [exception
5672       --      EXCEPTION_HANDLER
5673       --      {EXCEPTION_HANDLER}]
5674       --    [at end
5675       --      cleanup_procedure_call (param, param, param, ...);]
5676
5677       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5678       --  used only internally currently, but is considered to be syntactic.
5679       --  At the moment, the only cleanup action allowed is a single call to
5680       --  a parameterless procedure, and the Identifier field of the node is
5681       --  the procedure to be called. Also there is a current restriction
5682       --  that exception handles and a cleanup cannot be present in the same
5683       --  frame, so at least one of Exception_Handlers or the Identifier must
5684       --  be missing.
5685
5686       --  Actually, more accurately, this restriction applies to the original
5687       --  source program. In the expanded tree, if the At_End_Proc field is
5688       --  present, then there will also be an exception handler of the form:
5689
5690       --     when all others =>
5691       --        cleanup;
5692       --        raise;
5693
5694       --  where cleanup is the procedure to be generated. The reason we do
5695       --  this is so that the front end can handle the necessary entries in
5696       --  the exception tables, and other exception handler actions required
5697       --  as part of the normal handling for exception handlers.
5698
5699       --  The AT END cleanup handler protects only the sequence of statements
5700       --  (not the associated declarations of the parent), just like exception
5701       --  handlers. The big difference is that the cleanup procedure is called
5702       --  on either a normal or an abnormal exit from the statement sequence.
5703
5704       --  Note: the list of Exception_Handlers can contain pragmas as well
5705       --  as actual handlers. In practice these pragmas can only occur at
5706       --  the start of the list, since any pragmas occurring later on will
5707       --  be included in the statement list of the corresponding handler.
5708
5709       --  Note: although in the Ada syntax, the sequence of statements in
5710       --  a handled sequence of statements can only contain statements, we
5711       --  allow free mixing of declarations and statements in the resulting
5712       --  expanded tree. This is for example used to deal with the case of
5713       --  a cleanup procedure that must handle declarations as well as the
5714       --  statements of a block.
5715
5716       --  N_Handled_Sequence_Of_Statements
5717       --  Sloc points to first token of first statement
5718       --  Statements (List3)
5719       --  End_Label (Node4) (set to Empty if expander generated)
5720       --  Exception_Handlers (List5) (set to No_List if none present)
5721       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5722       --  First_Real_Statement (Node2-Sem)
5723       --  Zero_Cost_Handling (Flag5-Sem)
5724
5725       --  Note: the parent always contains a Declarations field which contains
5726       --  declarations associated with the handled sequence of statements. This
5727       --  is true even in the case of an accept statement (see description of
5728       --  the N_Accept_Statement node).
5729
5730       --  End_Label refers to the containing construct
5731
5732       -----------------------------
5733       -- 11.2  Exception Handler --
5734       -----------------------------
5735
5736       --  EXCEPTION_HANDLER ::=
5737       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5738       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5739       --        SEQUENCE_OF_STATEMENTS
5740
5741       --  Note: choice parameter specification is not allowed in Ada 83 mode
5742
5743       --  N_Exception_Handler
5744       --  Sloc points to WHEN
5745       --  Choice_Parameter (Node2) (set to Empty if not present)
5746       --  Exception_Choices (List4)
5747       --  Statements (List3)
5748       --  Exception_Label (Node5-Sem) (set to Empty of not present)
5749       --  Zero_Cost_Handling (Flag5-Sem)
5750       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5751       --  Local_Raise_Not_OK (Flag7-Sem)
5752       --  Has_Local_Raise (Flag8-Sem)
5753
5754       ------------------------------------------
5755       -- 11.2  Choice parameter specification --
5756       ------------------------------------------
5757
5758       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5759
5760       ----------------------------
5761       -- 11.2  Exception Choice --
5762       ----------------------------
5763
5764       --  EXCEPTION_CHOICE ::= exception_NAME | others
5765
5766       --  Except in the case of OTHERS, no explicit node appears in the tree
5767       --  for exception choice. Instead the exception name appears directly.
5768       --  An OTHERS choice is represented by a N_Others_Choice node (see
5769       --  section 3.8.1.
5770
5771       --  Note: for the exception choice created for an at end handler, the
5772       --  exception choice is an N_Others_Choice node with All_Others set.
5773
5774       ---------------------------
5775       -- 11.3  Raise Statement --
5776       ---------------------------
5777
5778       --  RAISE_STATEMENT ::= raise [exception_NAME];
5779
5780       --  In Ada 2005, we have
5781
5782       --  RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5783
5784       --  N_Raise_Statement
5785       --  Sloc points to RAISE
5786       --  Name (Node2) (set to Empty if no exception name present)
5787       --  Expression (Node3) (set to Empty if no expression present)
5788       --  From_At_End (Flag4-Sem)
5789
5790       -------------------------------
5791       -- 12.1  Generic Declaration --
5792       -------------------------------
5793
5794       --  GENERIC_DECLARATION ::=
5795       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5796
5797       ------------------------------------------
5798       -- 12.1  Generic Subprogram Declaration --
5799       ------------------------------------------
5800
5801       --  GENERIC_SUBPROGRAM_DECLARATION ::=
5802       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5803
5804       --  Note: Generic_Formal_Declarations can include pragmas
5805
5806       --  N_Generic_Subprogram_Declaration
5807       --  Sloc points to GENERIC
5808       --  Specification (Node1) subprogram specification
5809       --  Corresponding_Body (Node5-Sem)
5810       --  Generic_Formal_Declarations (List2) from generic formal part
5811       --  Parent_Spec (Node4-Sem)
5812
5813       ---------------------------------------
5814       -- 12.1  Generic Package Declaration --
5815       ---------------------------------------
5816
5817       --  GENERIC_PACKAGE_DECLARATION ::=
5818       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5819
5820       --  Note: when we do generics right, the Activation_Chain_Entity entry
5821       --  for this node can be removed (since the expander won't see generic
5822       --  units any more)???.
5823
5824       --  Note: Generic_Formal_Declarations can include pragmas
5825
5826       --  N_Generic_Package_Declaration
5827       --  Sloc points to GENERIC
5828       --  Specification (Node1) package specification
5829       --  Corresponding_Body (Node5-Sem)
5830       --  Generic_Formal_Declarations (List2) from generic formal part
5831       --  Parent_Spec (Node4-Sem)
5832       --  Activation_Chain_Entity (Node3-Sem)
5833
5834       -------------------------------
5835       -- 12.1  Generic Formal Part --
5836       -------------------------------
5837
5838       --  GENERIC_FORMAL_PART ::=
5839       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5840
5841       ------------------------------------------------
5842       -- 12.1  Generic Formal Parameter Declaration --
5843       ------------------------------------------------
5844
5845       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5846       --    FORMAL_OBJECT_DECLARATION
5847       --  | FORMAL_TYPE_DECLARATION
5848       --  | FORMAL_SUBPROGRAM_DECLARATION
5849       --  | FORMAL_PACKAGE_DECLARATION
5850
5851       ---------------------------------
5852       -- 12.3  Generic Instantiation --
5853       ---------------------------------
5854
5855       --  GENERIC_INSTANTIATION ::=
5856       --    package DEFINING_PROGRAM_UNIT_NAME is
5857       --      new generic_package_NAME [GENERIC_ACTUAL_PART];
5858       --  | [[not] overriding]
5859       --    procedure DEFINING_PROGRAM_UNIT_NAME is
5860       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5861       --  | [[not] overriding]
5862       --    function DEFINING_DESIGNATOR is
5863       --      new generic_function_NAME [GENERIC_ACTUAL_PART];
5864
5865       --  N_Package_Instantiation
5866       --  Sloc points to PACKAGE
5867       --  Defining_Unit_Name (Node1)
5868       --  Name (Node2)
5869       --  Generic_Associations (List3) (set to No_List if no
5870       --   generic actual part)
5871       --  Parent_Spec (Node4-Sem)
5872       --  Instance_Spec (Node5-Sem)
5873       --  ABE_Is_Certain (Flag18-Sem)
5874
5875       --  N_Procedure_Instantiation
5876       --  Sloc points to PROCEDURE
5877       --  Defining_Unit_Name (Node1)
5878       --  Name (Node2)
5879       --  Parent_Spec (Node4-Sem)
5880       --  Generic_Associations (List3) (set to No_List if no
5881       --   generic actual part)
5882       --  Instance_Spec (Node5-Sem)
5883       --  Must_Override (Flag14) set if overriding indicator present
5884       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5885       --  ABE_Is_Certain (Flag18-Sem)
5886
5887       --  N_Function_Instantiation
5888       --  Sloc points to FUNCTION
5889       --  Defining_Unit_Name (Node1)
5890       --  Name (Node2)
5891       --  Generic_Associations (List3) (set to No_List if no
5892       --   generic actual part)
5893       --  Parent_Spec (Node4-Sem)
5894       --  Instance_Spec (Node5-Sem)
5895       --  Must_Override (Flag14) set if overriding indicator present
5896       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5897       --  ABE_Is_Certain (Flag18-Sem)
5898
5899       --  Note: overriding indicator is an Ada 2005 feature
5900
5901       -------------------------------
5902       -- 12.3  Generic Actual Part --
5903       -------------------------------
5904
5905       --  GENERIC_ACTUAL_PART ::=
5906       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5907
5908       -------------------------------
5909       -- 12.3  Generic Association --
5910       -------------------------------
5911
5912       --  GENERIC_ASSOCIATION ::=
5913       --    [generic_formal_parameter_SELECTOR_NAME =>]
5914
5915       --  Note: unlike the procedure call case, a generic association node
5916       --  is generated for every association, even if no formal parameter
5917       --  selector name is present. In this case the parser will leave the
5918       --  Selector_Name field set to Empty, to be filled in later by the
5919       --  semantic pass.
5920
5921       --  In Ada 2005, a formal may be associated with a box, if the
5922       --  association is part of the list of actuals for a formal package.
5923       --  If the association is given by  OTHERS => <>, the association is
5924       --  an N_Others_Choice.
5925
5926       --  N_Generic_Association
5927       --  Sloc points to first token of generic association
5928       --  Selector_Name (Node2) (set to Empty if no formal
5929       --   parameter selector name)
5930       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5931       --  Box_Present (Flag15) (for formal_package associations with a box)
5932
5933       ---------------------------------------------
5934       -- 12.3  Explicit Generic Actual Parameter --
5935       ---------------------------------------------
5936
5937       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5938       --    EXPRESSION      | variable_NAME   | subprogram_NAME
5939       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
5940
5941       -------------------------------------
5942       -- 12.4  Formal Object Declaration --
5943       -------------------------------------
5944
5945       --  FORMAL_OBJECT_DECLARATION ::=
5946       --    DEFINING_IDENTIFIER_LIST :
5947       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5948       --  | DEFINING_IDENTIFIER_LIST :
5949       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5950
5951       --  Although the syntax allows multiple identifiers in the list, the
5952       --  semantics is as though successive declarations were given with
5953       --  identical type definition and expression components. To simplify
5954       --  semantic processing, the parser represents a multiple declaration
5955       --  case as a sequence of single declarations, using the More_Ids and
5956       --  Prev_Ids flags to preserve the original source form as described
5957       --  in the section on "Handling of Defining Identifier Lists".
5958
5959       --  N_Formal_Object_Declaration
5960       --  Sloc points to first identifier
5961       --  Defining_Identifier (Node1)
5962       --  In_Present (Flag15)
5963       --  Out_Present (Flag17)
5964       --  Null_Exclusion_Present (Flag11) (set to False if not present)
5965       --  Subtype_Mark (Node4) (set to Empty if not present)
5966       --  Access_Definition (Node3) (set to Empty if not present)
5967       --  Default_Expression (Node5) (set to Empty if no default expression)
5968       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5969       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5970
5971       -----------------------------------
5972       -- 12.5  Formal Type Declaration --
5973       -----------------------------------
5974
5975       --  FORMAL_TYPE_DECLARATION ::=
5976       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5977       --      is FORMAL_TYPE_DEFINITION;
5978
5979       --  N_Formal_Type_Declaration
5980       --  Sloc points to TYPE
5981       --  Defining_Identifier (Node1)
5982       --  Formal_Type_Definition (Node3)
5983       --  Discriminant_Specifications (List4) (set to No_List if no
5984       --   discriminant part)
5985       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5986
5987       ----------------------------------
5988       -- 12.5  Formal type definition --
5989       ----------------------------------
5990
5991       --  FORMAL_TYPE_DEFINITION ::=
5992       --    FORMAL_PRIVATE_TYPE_DEFINITION
5993       --  | FORMAL_DERIVED_TYPE_DEFINITION
5994       --  | FORMAL_DISCRETE_TYPE_DEFINITION
5995       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5996       --  | FORMAL_MODULAR_TYPE_DEFINITION
5997       --  | FORMAL_FLOATING_POINT_DEFINITION
5998       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5999       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6000       --  | FORMAL_ARRAY_TYPE_DEFINITION
6001       --  | FORMAL_ACCESS_TYPE_DEFINITION
6002       --  | FORMAL_INTERFACE_TYPE_DEFINITION
6003
6004       ---------------------------------------------
6005       -- 12.5.1  Formal Private Type Definition --
6006       ---------------------------------------------
6007
6008       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
6009       --    [[abstract] tagged] [limited] private
6010
6011       --  Note: TAGGED is not allowed in Ada 83 mode
6012
6013       --  N_Formal_Private_Type_Definition
6014       --  Sloc points to PRIVATE
6015       --  Abstract_Present (Flag4)
6016       --  Tagged_Present (Flag15)
6017       --  Limited_Present (Flag17)
6018
6019       --------------------------------------------
6020       -- 12.5.1  Formal Derived Type Definition --
6021       --------------------------------------------
6022
6023       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
6024       --    [abstract] [limited | synchronized]
6025       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6026       --  Note: this construct is not allowed in Ada 83 mode
6027
6028       --  N_Formal_Derived_Type_Definition
6029       --  Sloc points to NEW
6030       --  Subtype_Mark (Node4)
6031       --  Private_Present (Flag15)
6032       --  Abstract_Present (Flag4)
6033       --  Limited_Present (Flag17)
6034       --  Synchronized_Present (Flag7)
6035       --  Interface_List (List2) (set to No_List if none)
6036
6037       ---------------------------------------------
6038       -- 12.5.2  Formal Discrete Type Definition --
6039       ---------------------------------------------
6040
6041       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6042
6043       --  N_Formal_Discrete_Type_Definition
6044       --  Sloc points to (
6045
6046       ---------------------------------------------------
6047       -- 12.5.2  Formal Signed Integer Type Definition --
6048       ---------------------------------------------------
6049
6050       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6051
6052       --  N_Formal_Signed_Integer_Type_Definition
6053       --  Sloc points to RANGE
6054
6055       --------------------------------------------
6056       -- 12.5.2  Formal Modular Type Definition --
6057       --------------------------------------------
6058
6059       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6060
6061       --  N_Formal_Modular_Type_Definition
6062       --  Sloc points to MOD
6063
6064       ----------------------------------------------
6065       -- 12.5.2  Formal Floating Point Definition --
6066       ----------------------------------------------
6067
6068       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6069
6070       --  N_Formal_Floating_Point_Definition
6071       --  Sloc points to DIGITS
6072
6073       ----------------------------------------------------
6074       -- 12.5.2  Formal Ordinary Fixed Point Definition --
6075       ----------------------------------------------------
6076
6077       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6078
6079       --  N_Formal_Ordinary_Fixed_Point_Definition
6080       --  Sloc points to DELTA
6081
6082       ---------------------------------------------------
6083       -- 12.5.2  Formal Decimal Fixed Point Definition --
6084       ---------------------------------------------------
6085
6086       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6087
6088       --  Note: formal decimal fixed point definition not allowed in Ada 83
6089
6090       --  N_Formal_Decimal_Fixed_Point_Definition
6091       --  Sloc points to DELTA
6092
6093       ------------------------------------------
6094       -- 12.5.3  Formal Array Type Definition --
6095       ------------------------------------------
6096
6097       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6098
6099       -------------------------------------------
6100       -- 12.5.4  Formal Access Type Definition --
6101       -------------------------------------------
6102
6103       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6104
6105       ----------------------------------------------
6106       -- 12.5.5  Formal Interface Type Definition --
6107       ----------------------------------------------
6108
6109       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6110
6111       -----------------------------------------
6112       -- 12.6  Formal Subprogram Declaration --
6113       -----------------------------------------
6114
6115       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6116       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6117       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6118
6119       --------------------------------------------------
6120       -- 12.6  Formal Concrete Subprogram Declaration --
6121       --------------------------------------------------
6122
6123       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6124       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6125
6126       --  N_Formal_Concrete_Subprogram_Declaration
6127       --  Sloc points to WITH
6128       --  Specification (Node1)
6129       --  Default_Name (Node2) (set to Empty if no subprogram default)
6130       --  Box_Present (Flag15)
6131
6132       --  Note: if no subprogram default is present, then Name is set
6133       --  to Empty, and Box_Present is False.
6134
6135       --------------------------------------------------
6136       -- 12.6  Formal Abstract Subprogram Declaration --
6137       --------------------------------------------------
6138
6139       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6140       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6141
6142       --  N_Formal_Abstract_Subprogram_Declaration
6143       --  Sloc points to WITH
6144       --  Specification (Node1)
6145       --  Default_Name (Node2) (set to Empty if no subprogram default)
6146       --  Box_Present (Flag15)
6147
6148       --  Note: if no subprogram default is present, then Name is set
6149       --  to Empty, and Box_Present is False.
6150
6151       ------------------------------
6152       -- 12.6  Subprogram Default --
6153       ------------------------------
6154
6155       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6156
6157       --  There is no separate node in the tree for a subprogram default.
6158       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6159       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6160       --  default name or box indication, as needed.
6161
6162       ------------------------
6163       -- 12.6  Default Name --
6164       ------------------------
6165
6166       --  DEFAULT_NAME ::= NAME
6167
6168       --------------------------------------
6169       -- 12.7  Formal Package Declaration --
6170       --------------------------------------
6171
6172       --  FORMAL_PACKAGE_DECLARATION ::=
6173       --    with package DEFINING_IDENTIFIER
6174       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6175
6176       --  Note: formal package declarations not allowed in Ada 83 mode
6177
6178       --  N_Formal_Package_Declaration
6179       --  Sloc points to WITH
6180       --  Defining_Identifier (Node1)
6181       --  Name (Node2)
6182       --  Generic_Associations (List3) (set to No_List if (<>) case or
6183       --   empty generic actual part)
6184       --  Box_Present (Flag15)
6185       --  Instance_Spec (Node5-Sem)
6186       --  ABE_Is_Certain (Flag18-Sem)
6187
6188       --------------------------------------
6189       -- 12.7  Formal Package Actual Part --
6190       --------------------------------------
6191
6192       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6193       --    ([OTHERS] => <>)
6194       --    | [GENERIC_ACTUAL_PART]
6195       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6196
6197       --  FORMAL_PACKAGE_ASSOCIATION ::=
6198       --   GENERIC_ASSOCIATION
6199       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6200
6201       --  There is no explicit node in the tree for a formal package actual
6202       --  part. Instead the information appears in the parent node (i.e. the
6203       --  formal package declaration node itself).
6204
6205       --  There is no explicit node for a formal package association. All of
6206       --  them are represented either by a generic association, possibly with
6207       --  Box_Present, or by an N_Others_Choice.
6208
6209       ---------------------------------
6210       -- 13.1  Representation clause --
6211       ---------------------------------
6212
6213       --  REPRESENTATION_CLAUSE ::=
6214       --    ATTRIBUTE_DEFINITION_CLAUSE
6215       --  | ENUMERATION_REPRESENTATION_CLAUSE
6216       --  | RECORD_REPRESENTATION_CLAUSE
6217       --  | AT_CLAUSE
6218
6219       ----------------------
6220       -- 13.1  Local Name --
6221       ----------------------
6222
6223       --  LOCAL_NAME :=
6224       --    DIRECT_NAME
6225       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6226       --  | library_unit_NAME
6227
6228       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6229       --  as an attribute reference, which has essentially the same form.
6230
6231       ---------------------------------------
6232       -- 13.3  Attribute definition clause --
6233       ---------------------------------------
6234
6235       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6236       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6237       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6238
6239       --  In Ada 83, the expression must be a simple expression and the
6240       --  local name must be a direct name.
6241
6242       --  Note: the only attribute definition clause that is processed by
6243       --  gigi is an address clause. For all other cases, the information
6244       --  is extracted by the front end and either results in setting entity
6245       --  information, e.g. Esize for the Size clause, or in appropriate
6246       --  expansion actions (e.g. in the case of Storage_Size).
6247
6248       --  For an address clause, Gigi constructs the appropriate addressing
6249       --  code. It also ensures that no aliasing optimizations are made
6250       --  for the object for which the address clause appears.
6251
6252       --  Note: for an address clause used to achieve an overlay:
6253
6254       --    A : Integer;
6255       --    B : Integer;
6256       --    for B'Address use A'Address;
6257
6258       --  the above rule means that Gigi will ensure that no optimizations
6259       --  will be made for B that would violate the implementation advice
6260       --  of RM 13.3(19). However, this advice applies only to B and not
6261       --  to A, which seems unfortunate. The GNAT front end will mark the
6262       --  object A as volatile to also prevent unwanted optimization
6263       --  assumptions based on no aliasing being made for B.
6264
6265       --  N_Attribute_Definition_Clause
6266       --  Sloc points to FOR
6267       --  Name (Node2) the local name
6268       --  Chars (Name1) the identifier name from the attribute designator
6269       --  Expression (Node3) the expression or name
6270       --  Entity (Node4-Sem)
6271       --  Next_Rep_Item (Node5-Sem)
6272       --  From_At_Mod (Flag4-Sem)
6273       --  Check_Address_Alignment (Flag11-Sem)
6274       --  Address_Warning_Posted (Flag18-Sem)
6275
6276       ---------------------------------------------
6277       -- 13.4  Enumeration representation clause --
6278       ---------------------------------------------
6279
6280       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6281       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6282
6283       --  In Ada 83, the name must be a direct name
6284
6285       --  N_Enumeration_Representation_Clause
6286       --  Sloc points to FOR
6287       --  Identifier (Node1) direct name
6288       --  Array_Aggregate (Node3)
6289       --  Next_Rep_Item (Node5-Sem)
6290
6291       ---------------------------------
6292       -- 13.4  Enumeration aggregate --
6293       ---------------------------------
6294
6295       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6296
6297       ------------------------------------------
6298       -- 13.5.1  Record representation clause --
6299       ------------------------------------------
6300
6301       --  RECORD_REPRESENTATION_CLAUSE ::=
6302       --    for first_subtype_LOCAL_NAME use
6303       --      record [MOD_CLAUSE]
6304       --        {COMPONENT_CLAUSE}
6305       --      end record;
6306
6307       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6308       --  replaced by a corresponding Alignment attribute definition clause).
6309
6310       --  Note: Component_Clauses can include pragmas
6311
6312       --  N_Record_Representation_Clause
6313       --  Sloc points to FOR
6314       --  Identifier (Node1) direct name
6315       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6316       --  Component_Clauses (List3)
6317       --  Next_Rep_Item (Node5-Sem)
6318
6319       ------------------------------
6320       -- 13.5.1  Component clause --
6321       ------------------------------
6322
6323       --  COMPONENT_CLAUSE ::=
6324       --    component_LOCAL_NAME at POSITION
6325       --      range FIRST_BIT .. LAST_BIT;
6326
6327       --  N_Component_Clause
6328       --  Sloc points to AT
6329       --  Component_Name (Node1) points to Name or Attribute_Reference
6330       --  Position (Node2)
6331       --  First_Bit (Node3)
6332       --  Last_Bit (Node4)
6333
6334       ----------------------
6335       -- 13.5.1  Position --
6336       ----------------------
6337
6338       --  POSITION ::= static_EXPRESSION
6339
6340       -----------------------
6341       -- 13.5.1  First_Bit --
6342       -----------------------
6343
6344       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6345
6346       ----------------------
6347       -- 13.5.1  Last_Bit --
6348       ----------------------
6349
6350       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6351
6352       --------------------------
6353       -- 13.8  Code statement --
6354       --------------------------
6355
6356       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6357
6358       --  Note: in GNAT, the qualified expression has the form
6359
6360       --    Asm_Insn'(Asm (...));
6361
6362       --  See package System.Machine_Code in file s-maccod.ads for details on
6363       --  the allowed parameters to Asm. There are two ways this node can
6364       --  arise, as a code statement, in which case the expression is the
6365       --  qualified expression, or as a result of the expansion of an intrinsic
6366       --  call to the Asm or Asm_Input procedure.
6367
6368       --  N_Code_Statement
6369       --  Sloc points to first token of the expression
6370       --  Expression (Node3)
6371
6372       --  Note: package Exp_Code contains an abstract functional interface
6373       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
6374
6375       ------------------------
6376       -- 13.12  Restriction --
6377       ------------------------
6378
6379       --  RESTRICTION ::=
6380       --    restriction_IDENTIFIER
6381       --  | restriction_parameter_IDENTIFIER => EXPRESSION
6382
6383       --  There is no explicit node for restrictions. Instead the restriction
6384       --  appears in normal pragma syntax as a pragma argument association,
6385       --  which has the same syntactic form.
6386
6387       --------------------------
6388       -- B.2  Shift Operators --
6389       --------------------------
6390
6391       --  Calls to the intrinsic shift functions are converted to one of
6392       --  the following shift nodes, which have the form of normal binary
6393       --  operator names. Note that for a given shift operation, one node
6394       --  covers all possible types, as for normal operators.
6395
6396       --  Note: it is perfectly permissible for the expander to generate
6397       --  shift operation nodes directly, in which case they will be analyzed
6398       --  and parsed in the usual manner.
6399
6400       --  Sprint syntax: shift-function-name!(expr, count)
6401
6402       --  Note: the Left_Opnd field holds the first argument (the value to
6403       --  be shifted). The Right_Opnd field holds the second argument (the
6404       --  shift count). The Chars field is the name of the intrinsic function.
6405
6406       --  N_Op_Rotate_Left
6407       --  Sloc points to the function name
6408       --  plus fields for binary operator
6409       --  plus fields for expression
6410       --  Shift_Count_OK (Flag4-Sem)
6411
6412       --  N_Op_Rotate_Right
6413       --  Sloc points to the function name
6414       --  plus fields for binary operator
6415       --  plus fields for expression
6416       --  Shift_Count_OK (Flag4-Sem)
6417
6418       --  N_Op_Shift_Left
6419       --  Sloc points to the function name
6420       --  plus fields for binary operator
6421       --  plus fields for expression
6422       --  Shift_Count_OK (Flag4-Sem)
6423
6424       --  N_Op_Shift_Right_Arithmetic
6425       --  Sloc points to the function name
6426       --  plus fields for binary operator
6427       --  plus fields for expression
6428       --  Shift_Count_OK (Flag4-Sem)
6429
6430       --  N_Op_Shift_Right
6431       --  Sloc points to the function name
6432       --  plus fields for binary operator
6433       --  plus fields for expression
6434       --  Shift_Count_OK (Flag4-Sem)
6435
6436    --------------------------
6437    -- Obsolescent Features --
6438    --------------------------
6439
6440       --  The syntax descriptions and tree nodes for obsolescent features are
6441       --  grouped together, corresponding to their location in appendix I in
6442       --  the RM. However, parsing and semantic analysis for these constructs
6443       --  is located in an appropriate chapter (see individual notes).
6444
6445       ---------------------------
6446       -- J.3  Delta Constraint --
6447       ---------------------------
6448
6449       --  Note: the parse routine for this construct is located in section
6450       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6451       --  where delta constraint logically belongs.
6452
6453       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6454
6455       --  N_Delta_Constraint
6456       --  Sloc points to DELTA
6457       --  Delta_Expression (Node3)
6458       --  Range_Constraint (Node4) (set to Empty if not present)
6459
6460       --------------------
6461       -- J.7  At Clause --
6462       --------------------
6463
6464       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6465
6466       --  Note: the parse routine for this construct is located in Par-Ch13,
6467       --  and the semantic analysis is in Sem_Ch13, where at clause logically
6468       --  belongs if it were not obsolescent.
6469
6470       --  Note: in Ada 83 the expression must be a simple expression
6471
6472       --  Gigi restriction: This node never appears, it is rewritten as an
6473       --  address attribute definition clause.
6474
6475       --  N_At_Clause
6476       --  Sloc points to FOR
6477       --  Identifier (Node1)
6478       --  Expression (Node3)
6479
6480       ---------------------
6481       -- J.8  Mod clause --
6482       ---------------------
6483
6484       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
6485
6486       --  Note: the parse routine for this construct is located in Par-Ch13,
6487       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
6488       --  belongs if it were not obsolescent.
6489
6490       --  Note: in Ada 83, the expression must be a simple expression
6491
6492       --  Gigi restriction: this node never appears. It is replaced
6493       --  by a corresponding Alignment attribute definition clause.
6494
6495       --  Note: pragmas can appear before and after the MOD_CLAUSE since
6496       --  its name has "clause" in it. This is rather strange, but is quite
6497       --  definitely specified. The pragmas before are collected in the
6498       --  Pragmas_Before field of the mod clause node itself, and pragmas
6499       --  after are simply swallowed up in the list of component clauses.
6500
6501       --  N_Mod_Clause
6502       --  Sloc points to AT
6503       --  Expression (Node3)
6504       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6505
6506    --------------------
6507    -- Semantic Nodes --
6508    --------------------
6509
6510    --  These semantic nodes are used to hold additional semantic information.
6511    --  They are inserted into the tree as a result of semantic processing.
6512    --  Although there are no legitimate source syntax constructions that
6513    --  correspond directly to these nodes, we need a source syntax for the
6514    --  reconstructed tree printed by Sprint, and the node descriptions here
6515    --  show this syntax.
6516
6517    --  Note: Conditional_Expression is in this section for historical reasons.
6518    --  We will move it to its appropriate place when it is officially approved
6519    --  as an extension (and then we will know what the exact grammar and place
6520    --  in the Reference Manual is!)
6521
6522       ----------------------------
6523       -- Conditional Expression --
6524       ----------------------------
6525
6526       --  This node is used to represent an expression corresponding to the
6527       --  C construct (condition ? then-expression : else_expression), where
6528       --  Expressions is a three element list, whose first expression is the
6529       --  condition, and whose second and third expressions are the then and
6530       --  else expressions respectively.
6531
6532       --  Note: the Then_Actions and Else_Actions fields are always set to
6533       --  No_List in the tree passed to Gigi. These fields are used only
6534       --  for temporary processing purposes in the expander.
6535
6536       --  The Ada language does not permit conditional expressions, however
6537       --  this is under discussion as a possible extension by the ARG, and we
6538       --  have implemented a form of this capability in GNAT under control of
6539       --  the -gnatX switch. The syntax is:
6540
6541       --  CONDITIONAL_EXPRESSION ::=
6542       --    if EXPRESSION then EXPRESSION
6543       --                  {elsif EXPRESSION then EXPRESSION}
6544       --                  [else EXPRESSION]
6545
6546       --  And we add the additional constructs
6547
6548       --  PRIMARY ::= ( CONDITIONAL_EXPRESION )
6549       --  PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6550
6551       --  Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6552       --  is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6553       --  the Is_Elsif flag is set on the inner conditional expression.
6554
6555       --  N_Conditional_Expression
6556       --  Sloc points to IF or ELSIF keyword
6557       --  Expressions (List1)
6558       --  Then_Actions (List2-Sem)
6559       --  Else_Actions (List3-Sem)
6560       --  Is_Elsif (Flag13) (set if comes from ELSIF)
6561       --  plus fields for expression
6562
6563       -------------------
6564       -- Expanded_Name --
6565       -------------------
6566
6567       --  The N_Expanded_Name node is used to represent a selected component
6568       --  name that has been resolved to an expanded name. The semantic phase
6569       --  replaces N_Selected_Component nodes that represent names by the use
6570       --  of this node, leaving the N_Selected_Component node used only when
6571       --  the prefix is a record or protected type.
6572
6573       --  The fields of the N_Expanded_Name node are layed out identically
6574       --  to those of the N_Selected_Component node, allowing conversion of
6575       --  an expanded name node to a selected component node to be done
6576       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6577
6578       --  There is no special sprint syntax for an expanded name
6579
6580       --  N_Expanded_Name
6581       --  Sloc points to the period
6582       --  Chars (Name1) copy of Chars field of selector name
6583       --  Prefix (Node3)
6584       --  Selector_Name (Node2)
6585       --  Entity (Node4-Sem)
6586       --  Associated_Node (Node4-Sem)
6587       --  Redundant_Use (Flag13-Sem)
6588       --  Has_Private_View (Flag11-Sem) set in generic units.
6589       --  plus fields for expression
6590
6591       --------------------
6592       -- Free Statement --
6593       --------------------
6594
6595       --  The N_Free_Statement node is generated as a result of a call to an
6596       --  instantiation of Unchecked_Deallocation. The instantiation of this
6597       --  generic is handled specially and generates this node directly.
6598
6599       --  Sprint syntax: free expression
6600
6601       --  N_Free_Statement
6602       --  Sloc is copied from the unchecked deallocation call
6603       --  Expression (Node3) argument to unchecked deallocation call
6604       --  Storage_Pool (Node1-Sem)
6605       --  Procedure_To_Call (Node2-Sem)
6606       --  Actual_Designated_Subtype (Node4-Sem)
6607
6608       --  Note: in the case where a debug source file is generated, the Sloc
6609       --  for this node points to the FREE keyword in the Sprint file output.
6610
6611       -------------------
6612       -- Freeze Entity --
6613       -------------------
6614
6615       --  This node marks the point in a declarative part at which an entity
6616       --  declared therein becomes frozen. The expander places initialization
6617       --  procedures for types at those points. Gigi uses the freezing point
6618       --  to elaborate entities that may depend on previous private types.
6619
6620       --  See the section in Einfo "Delayed Freezing and Elaboration" for
6621       --  a full description of the use of this node.
6622
6623       --  The Entity field points back to the entity for the type (whose
6624       --  Freeze_Node field points back to this freeze node).
6625
6626       --  The Actions field contains a list of declarations and statements
6627       --  generated by the expander which are associated with the freeze
6628       --  node, and are elaborated as though the freeze node were replaced
6629       --  by this sequence of actions.
6630
6631       --  Note: the Sloc field in the freeze node references a construct
6632       --  associated with the freezing point. This is used for posting
6633       --  messages in some error/warning situations, e.g. the case where
6634       --  a primitive operation of a tagged type is declared too late.
6635
6636       --  Sprint syntax: freeze entity-name [
6637       --                   freeze actions
6638       --                 ]
6639
6640       --  N_Freeze_Entity
6641       --  Sloc points near freeze point (see above special note)
6642       --  Entity (Node4-Sem)
6643       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6644       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6645       --  Actions (List1) (set to No_List if no freeze actions)
6646       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6647
6648       --  The Actions field holds actions associated with the freeze. These
6649       --  actions are elaborated at the point where the type is frozen.
6650
6651       --  Note: in the case where a debug source file is generated, the Sloc
6652       --  for this node points to the FREEZE keyword in the Sprint file output.
6653
6654       --------------------------------
6655       -- Implicit Label Declaration --
6656       --------------------------------
6657
6658       --  An implicit label declaration is created for every occurrence of a
6659       --  label on a statement or a label on a block or loop. It is chained
6660       --  in the declarations of the innermost enclosing block as specified
6661       --  in RM section 5.1 (3).
6662
6663       --  The Defining_Identifier is the actual identifier for the statement
6664       --  identifier. Note that the occurrence of the label is a reference, NOT
6665       --  the defining occurrence. The defining occurrence occurs at the head
6666       --  of the innermost enclosing block, and is represented by this node.
6667
6668       --  Note: from the grammar, this might better be called an implicit
6669       --  statement identifier declaration, but the term we choose seems
6670       --  friendlier, since at least informally statement identifiers are
6671       --  called labels in both cases (i.e. when used in labels, and when
6672       --  used as the identifiers of blocks and loops).
6673
6674       --  Note: although this is logically a semantic node, since it does not
6675       --  correspond directly to a source syntax construction, these nodes are
6676       --  actually created by the parser in a post pass done just after parsing
6677       --  is complete, before semantic analysis is started (see Par.Labl).
6678
6679       --  Sprint syntax: labelname : label;
6680
6681       --  N_Implicit_Label_Declaration
6682       --  Sloc points to the << of the label
6683       --  Defining_Identifier (Node1)
6684       --  Label_Construct (Node2-Sem)
6685
6686       --  Note: in the case where a debug source file is generated, the Sloc
6687       --  for this node points to the label name in the generated declaration.
6688
6689       ---------------------
6690       -- Itype_Reference --
6691       ---------------------
6692
6693       --  This node is used to create a reference to an Itype. The only purpose
6694       --  is to make sure the Itype is defined if this is the first reference.
6695
6696       --  A typical use of this node is when an Itype is to be referenced in
6697       --  two branches of an IF statement. In this case it is important that
6698       --  the first use of the Itype not be inside the conditional, since then
6699       --  it might not be defined if the other branch of the IF is taken, in
6700       --  the case where the definition generates elaboration code.
6701
6702       --  The Itype field points to the referenced Itype
6703
6704       --  Sprint syntax: reference itype-name
6705
6706       --  N_Itype_Reference
6707       --  Sloc points to the node generating the reference
6708       --  Itype (Node1-Sem)
6709
6710       --  Note: in the case where a debug source file is generated, the Sloc
6711       --  for this node points to the REFERENCE keyword in the file output.
6712
6713       ---------------------
6714       -- Raise_xxx_Error --
6715       ---------------------
6716
6717       --  One of these nodes is created during semantic analysis to replace
6718       --  a node for an expression that is determined to definitely raise
6719       --  the corresponding exception.
6720
6721       --  The N_Raise_xxx_Error node may also stand alone in place
6722       --  of a declaration or statement, in which case it simply causes
6723       --  the exception to be raised (i.e. it is equivalent to a raise
6724       --  statement that raises the corresponding exception). This use
6725       --  is distinguished by the fact that the Etype in this case is
6726       --  Standard_Void_Type, In the subexpression case, the Etype is the
6727       --  same as the type of the subexpression which it replaces.
6728
6729       --  If Condition is empty, then the raise is unconditional. If the
6730       --  Condition field is non-empty, it is a boolean expression which
6731       --  is first evaluated, and the exception is raised only if the
6732       --  value of the expression is True. In the unconditional case, the
6733       --  creation of this node is usually accompanied by a warning message
6734       --  error. The creation of this node will usually be accompanied by a
6735       --  message (unless it appears within the right operand of a short
6736       --  circuit form whose left argument is static and decisively
6737       --  eliminates elaboration of the raise operation. The condition field
6738       --  can ONLY be present when the node is used as a statement form, it
6739       --  may NOT be present in the case where the node appears within an
6740       --  expression.
6741
6742       --  The exception is generated with a message that contains the
6743       --  file name and line number, and then appended text. The Reason
6744       --  code shows the text to be added. The Reason code is an element
6745       --  of the type Types.RT_Exception_Code, and indicates both the
6746       --  message to be added, and the exception to be raised (which must
6747       --  match the node type). The value is stored by storing a Uint which
6748       --  is the Pos value of the enumeration element in this type.
6749
6750       --  Gigi restriction: This expander ensures that the type of the
6751       --  Condition field is always Standard.Boolean, even if the type
6752       --  in the source is some non-standard boolean type.
6753
6754       --  Sprint syntax: [xxx_error "msg"]
6755       --             or: [xxx_error when condition "msg"]
6756
6757       --  N_Raise_Constraint_Error
6758       --  Sloc references related construct
6759       --  Condition (Node1) (set to Empty if no condition)
6760       --  Reason (Uint3)
6761       --  plus fields for expression
6762
6763       --  N_Raise_Program_Error
6764       --  Sloc references related construct
6765       --  Condition (Node1) (set to Empty if no condition)
6766       --  Reason (Uint3)
6767       --  plus fields for expression
6768
6769       --  N_Raise_Storage_Error
6770       --  Sloc references related construct
6771       --  Condition (Node1) (set to Empty if no condition)
6772       --  Reason (Uint3)
6773       --  plus fields for expression
6774
6775       --  Note: Sloc is copied from the expression generating the exception.
6776       --  In the case where a debug source file is generated, the Sloc for
6777       --  this node points to the left bracket in the Sprint file output.
6778
6779       --  Note: the back end may be required to translate these nodes into
6780       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6781
6782       ---------------------------------------------
6783       -- Optimization of Exception Raise to Goto --
6784       ---------------------------------------------
6785
6786       --  In some cases, the front end will determine that any exception raised
6787       --  by the back end for a certain exception should be transformed into a
6788       --  goto statement.
6789
6790       --  There are three kinds of exceptions raised by the back end (note that
6791       --  for this purpose we consider gigi to be part of the back end in the
6792       --  gcc case):
6793
6794       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
6795       --     2. Exceptions from checks triggered by Do_xxx_Check flags
6796       --     3. Other cases not specifically marked by the front end
6797
6798       --  Normally all such exceptions are translated into calls to the proper
6799       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
6800       --  and the exception message.
6801
6802       --  The front end may determine that for a particular sequence of code,
6803       --  exceptions in any of these three categories for a particular builtin
6804       --  exception should result in a goto, rather than a call to Rcheck_xx.
6805       --  The exact sequence to be generated is:
6806
6807       --      Local_Raise (exception'Identity);
6808       --      goto Label
6809
6810       --  The front end marks such a sequence of code by bracketing it with
6811       --  push and pop nodes:
6812
6813       --       N_Push_xxx_Label (referencing the label)
6814       --       ...
6815       --       (code where transformation is expected for exception xxx)
6816       --       ...
6817       --       N_Pop_xxx_Label
6818
6819       --  The use of push/pop reflects the fact that such regions can properly
6820       --  nest, and one special case is a subregion in which no transformation
6821       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6822       --  Exception_Label field is Empty.
6823
6824       --  N_Push_Constraint_Error_Label
6825       --  Sloc references first statement in region covered
6826       --  Exception_Label (Node5-Sem)
6827
6828       --  N_Push_Program_Error_Label
6829       --  Sloc references first statement in region covered
6830       --  Exception_Label (Node5-Sem)
6831
6832       --  N_Push_Storage_Error_Label
6833       --  Sloc references first statement in region covered
6834       --  Exception_Label (Node5-Sem)
6835
6836       --  N_Pop_Constraint_Error_Label
6837       --  Sloc references last statement in region covered
6838
6839       --  N_Pop_Program_Error_Label
6840       --  Sloc references last statement in region covered
6841
6842       --  N_Pop_Storage_Error_Label
6843       --  Sloc references last statement in region covered
6844
6845       ---------------
6846       -- Reference --
6847       ---------------
6848
6849       --  For a number of purposes, we need to construct references to objects.
6850       --  These references are subsequently treated as normal access values.
6851       --  An example is the construction of the parameter block passed to a
6852       --  task entry. The N_Reference node is provided for this purpose. It is
6853       --  similar in effect to the use of the Unrestricted_Access attribute,
6854       --  and like Unrestricted_Access can be applied to objects which would
6855       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
6856       --  objects which are not aliased, and slices). In addition it can be
6857       --  applied to composite type values as well as objects, including string
6858       --  values and aggregates.
6859
6860       --  Note: we use the Prefix field for this expression so that the
6861       --  resulting node can be treated using common code with the attribute
6862       --  nodes for the 'Access and related attributes. Logically it would make
6863       --  more sense to call it an Expression field, but then we would have to
6864       --  special case the treatment of the N_Reference node.
6865
6866       --  Sprint syntax: prefix'reference
6867
6868       --  N_Reference
6869       --  Sloc is copied from the expression
6870       --  Prefix (Node3)
6871       --  plus fields for expression
6872
6873       --  Note: in the case where a debug source file is generated, the Sloc
6874       --  for this node points to the quote in the Sprint file output.
6875
6876       -----------------
6877       --  SCIL Nodes --
6878       -----------------
6879
6880       --  SCIL nodes are special nodes added to the tree when the CodePeer
6881       --  mode is active. They help the CodePeer backend to locate nodes that
6882       --  require special processing.
6883
6884       --  Major documentation on the general design of the SCIL interface, and
6885       --  in particular detailed description of these nodes is missing and is
6886       --  to be supplied in the future, when the design has finalized ???
6887
6888       --  Meanwhile these nodes should be considered in experimental form, and
6889       --  should be ignored by all code generating back ends. ???
6890
6891       --  N_SCIL_Dispatch_Table_Object_Init
6892       --  Sloc references a declaration node containing a dispatch table
6893       --  SCIL_Related_Node (Node1-Sem)
6894       --  SCIL_Entity (Node4-Sem)
6895
6896       --  N_SCIL_Dispatch_Table_Tag_Init
6897       --  Sloc references a node for a tag initialization
6898       --  SCIL_Related_Node (Node1-Sem)
6899       --  SCIL_Entity (Node4-Sem)
6900
6901       --  N_SCIL_Dispatching_Call
6902       --  Sloc references the node of a dispatching call
6903       --  SCIL_Related_Node (Node1-Sem)
6904       --  SCIL_Target_Prim (Node2-Sem)
6905       --  SCIL_Entity (Node4-Sem)
6906       --  SCIL_Controlling_Tag (Node5-Sem)
6907
6908       --  N_SCIL_Membership_Test
6909       --  Sloc references the node of a membership test
6910       --  SCIL_Related_Node (Node1-Sem)
6911       --  SCIL_Tag_Value (Node5-Sem)
6912       --  SCIL_Entity (Node4-Sem)
6913
6914       --  N_SCIL_Tag_Init
6915       --  Sloc references the node of a tag component initialization
6916       --  SCIL_Related_Node (Node1-Sem)
6917       --  SCIL_Entity (Node4-Sem)
6918
6919       ---------------------
6920       -- Subprogram_Info --
6921       ---------------------
6922
6923       --  This node generates the appropriate Subprogram_Info value for a
6924       --  given procedure. See Ada.Exceptions for further details
6925
6926       --  Sprint syntax: subprog'subprogram_info
6927
6928       --  N_Subprogram_Info
6929       --  Sloc points to the entity for the procedure
6930       --  Identifier (Node1) identifier referencing the procedure
6931       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6932
6933       --  Note: in the case where a debug source file is generated, the Sloc
6934       --  for this node points to the quote in the Sprint file output.
6935
6936       --------------------------
6937       -- Unchecked Expression --
6938       --------------------------
6939
6940       --  An unchecked expression is one that must be analyzed and resolved
6941       --  with all checks off, regardless of the current setting of scope
6942       --  suppress flags.
6943
6944       --  Sprint syntax: `(expression)
6945
6946       --  Note: this node is always removed from the tree (and replaced by
6947       --  its constituent expression) on completion of analysis, so it only
6948       --  appears in intermediate trees, and will never be seen by Gigi.
6949
6950       --  N_Unchecked_Expression
6951       --  Sloc is a copy of the Sloc of the expression
6952       --  Expression (Node3)
6953       --  plus fields for expression
6954
6955       --  Note: in the case where a debug source file is generated, the Sloc
6956       --  for this node points to the back quote in the Sprint file output.
6957
6958       -------------------------------
6959       -- Unchecked Type Conversion --
6960       -------------------------------
6961
6962       --  An unchecked type conversion node represents the semantic action
6963       --  corresponding to a call to an instantiation of Unchecked_Conversion.
6964       --  It is generated as a result of actual use of Unchecked_Conversion
6965       --  and also the expander generates unchecked type conversion nodes
6966       --  directly for expansion of complex semantic actions.
6967
6968       --  Note: an unchecked type conversion is a variable as far as the
6969       --  semantics are concerned, which is convenient for the expander.
6970       --  This does not change what Ada source programs are legal, since
6971       --  clearly a function call to an instantiation of Unchecked_Conversion
6972       --  is not a variable in any case.
6973
6974       --  Sprint syntax: subtype-mark!(expression)
6975
6976       --  N_Unchecked_Type_Conversion
6977       --  Sloc points to related node in source
6978       --  Subtype_Mark (Node4)
6979       --  Expression (Node3)
6980       --  Kill_Range_Check (Flag11-Sem)
6981       --  No_Truncation (Flag17-Sem)
6982       --  plus fields for expression
6983
6984       --  Note: in the case where a debug source file is generated, the Sloc
6985       --  for this node points to the exclamation in the Sprint file output.
6986
6987       -----------------------------------
6988       -- Validate_Unchecked_Conversion --
6989       -----------------------------------
6990
6991       --  The front end does most of the validation of unchecked conversion,
6992       --  including checking sizes (this is done after the back end is called
6993       --  to take advantage of back-annotation of calculated sizes).
6994
6995       --  The front end also deals with specific cases that are not allowed
6996       --  e.g. involving unconstrained array types.
6997
6998       --  For the case of the standard gigi backend, this means that all
6999       --  checks are done in the front-end.
7000
7001       --  However, in the case of specialized back-ends, notably the JVM
7002       --  backend for JGNAT, additional requirements and restrictions apply
7003       --  to unchecked conversion, and these are most conveniently performed
7004       --  in the specialized back-end.
7005
7006       --  To accommodate this requirement, for such back ends, the following
7007       --  special node is generated recording an unchecked conversion that
7008       --  needs to be validated. The back end should post an appropriate
7009       --  error message if the unchecked conversion is invalid or warrants
7010       --  a special warning message.
7011
7012       --  Source_Type and Target_Type point to the entities for the two
7013       --  types involved in the unchecked conversion instantiation that
7014       --  is to be validated.
7015
7016       --  Sprint syntax: validate Unchecked_Conversion (source, target);
7017
7018       --  N_Validate_Unchecked_Conversion
7019       --  Sloc points to instantiation (location for warning message)
7020       --  Source_Type (Node1-Sem)
7021       --  Target_Type (Node2-Sem)
7022
7023       --  Note: in the case where a debug source file is generated, the Sloc
7024       --  for this node points to the VALIDATE keyword in the file output.
7025
7026    -----------
7027    -- Empty --
7028    -----------
7029
7030    --  Used as the contents of the Nkind field of the dummy Empty node
7031    --  and in some other situations to indicate an uninitialized value.
7032
7033    --  N_Empty
7034    --  Chars (Name1) is set to No_Name
7035
7036    -----------
7037    -- Error --
7038    -----------
7039
7040    --  Used as the contents of the Nkind field of the dummy Error node.
7041    --  Has an Etype field, which gets set to Any_Type later on, to help
7042    --  error recovery (Error_Posted is also set in the Error node).
7043
7044    --  N_Error
7045    --  Chars (Name1) is set to Error_Name
7046    --  Etype (Node5-Sem)
7047
7048    --------------------------
7049    -- Node Type Definition --
7050    --------------------------
7051
7052    --  The following is the definition of the Node_Kind type. As previously
7053    --  discussed, this is separated off to allow rearrangement of the order
7054    --  to facilitate definition of subtype ranges. The comments show the
7055    --  subtype classes which apply to each set of node kinds. The first
7056    --  entry in the comment characterizes the following list of nodes.
7057
7058    type Node_Kind is (
7059       N_Unused_At_Start,
7060
7061       --  N_Representation_Clause
7062
7063       N_At_Clause,
7064       N_Component_Clause,
7065       N_Enumeration_Representation_Clause,
7066       N_Mod_Clause,
7067       N_Record_Representation_Clause,
7068
7069       --  N_Representation_Clause, N_Has_Chars
7070
7071       N_Attribute_Definition_Clause,
7072
7073       --  N_Has_Chars
7074
7075       N_Empty,
7076       N_Pragma_Argument_Association,
7077
7078       --  N_Has_Etype
7079
7080       N_Error,
7081
7082       --  N_Entity, N_Has_Etype, N_Has_Chars
7083
7084       N_Defining_Character_Literal,
7085       N_Defining_Identifier,
7086       N_Defining_Operator_Symbol,
7087
7088       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7089
7090       N_Expanded_Name,
7091
7092       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7093       --  N_Has_Chars, N_Has_Entity
7094
7095       N_Identifier,
7096       N_Operator_Symbol,
7097
7098       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7099       --  N_Has_Chars, N_Has_Entity
7100
7101       N_Character_Literal,
7102
7103       --  N_Binary_Op, N_Op, N_Subexpr,
7104       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
7105
7106       N_Op_Add,
7107       N_Op_Concat,
7108       N_Op_Expon,
7109       N_Op_Subtract,
7110
7111       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7112       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7113
7114       N_Op_Divide,
7115       N_Op_Mod,
7116       N_Op_Multiply,
7117       N_Op_Rem,
7118
7119       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7120       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7121
7122       N_Op_And,
7123
7124       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7125       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7126
7127       N_Op_Eq,
7128       N_Op_Ge,
7129       N_Op_Gt,
7130       N_Op_Le,
7131       N_Op_Lt,
7132       N_Op_Ne,
7133
7134       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7135       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7136
7137       N_Op_Or,
7138       N_Op_Xor,
7139
7140       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7141       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
7142
7143       N_Op_Rotate_Left,
7144       N_Op_Rotate_Right,
7145       N_Op_Shift_Left,
7146       N_Op_Shift_Right,
7147       N_Op_Shift_Right_Arithmetic,
7148
7149       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7150       --  N_Has_Chars, N_Has_Entity
7151
7152       N_Op_Abs,
7153       N_Op_Minus,
7154       N_Op_Not,
7155       N_Op_Plus,
7156
7157       --  N_Subexpr, N_Has_Etype, N_Has_Entity
7158
7159       N_Attribute_Reference,
7160
7161       --  N_Subexpr, N_Has_Etype, N_Membership_Test
7162
7163       N_In,
7164       N_Not_In,
7165
7166       --  N_Subexpr, N_Has_Etype, N_Short_Circuit
7167
7168       N_And_Then,
7169       N_Or_Else,
7170
7171       --  N_Subexpr, N_Has_Etype
7172
7173       N_Conditional_Expression,
7174       N_Explicit_Dereference,
7175       N_Function_Call,
7176       N_Indexed_Component,
7177       N_Integer_Literal,
7178       N_Null,
7179       N_Procedure_Call_Statement,
7180       N_Qualified_Expression,
7181
7182       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7183
7184       N_Raise_Constraint_Error,
7185       N_Raise_Program_Error,
7186       N_Raise_Storage_Error,
7187
7188       --  N_Subexpr, N_Has_Etype
7189
7190       N_Aggregate,
7191       N_Allocator,
7192       N_Extension_Aggregate,
7193       N_Range,
7194       N_Real_Literal,
7195       N_Reference,
7196       N_Selected_Component,
7197       N_Slice,
7198       N_String_Literal,
7199       N_Subprogram_Info,
7200       N_Type_Conversion,
7201       N_Unchecked_Expression,
7202       N_Unchecked_Type_Conversion,
7203
7204       --  N_Has_Etype
7205
7206       N_Subtype_Indication,
7207
7208       --  N_Declaration
7209
7210       N_Component_Declaration,
7211       N_Entry_Declaration,
7212       N_Formal_Object_Declaration,
7213       N_Formal_Type_Declaration,
7214       N_Full_Type_Declaration,
7215       N_Incomplete_Type_Declaration,
7216       N_Loop_Parameter_Specification,
7217       N_Object_Declaration,
7218       N_Protected_Type_Declaration,
7219       N_Private_Extension_Declaration,
7220       N_Private_Type_Declaration,
7221       N_Subtype_Declaration,
7222
7223       --  N_Subprogram_Specification, N_Declaration
7224
7225       N_Function_Specification,
7226       N_Procedure_Specification,
7227
7228       --  N_Access_To_Subprogram_Definition
7229
7230       N_Access_Function_Definition,
7231       N_Access_Procedure_Definition,
7232
7233       --  N_Later_Decl_Item
7234
7235       N_Task_Type_Declaration,
7236
7237       --  N_Body_Stub, N_Later_Decl_Item
7238
7239       N_Package_Body_Stub,
7240       N_Protected_Body_Stub,
7241       N_Subprogram_Body_Stub,
7242       N_Task_Body_Stub,
7243
7244       --  N_Generic_Instantiation, N_Later_Decl_Item
7245       --  N_Subprogram_Instantiation
7246
7247       N_Function_Instantiation,
7248       N_Procedure_Instantiation,
7249
7250       --  N_Generic_Instantiation, N_Later_Decl_Item
7251
7252       N_Package_Instantiation,
7253
7254       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7255
7256       N_Package_Body,
7257       N_Subprogram_Body,
7258
7259       --  N_Later_Decl_Item, N_Proper_Body
7260
7261       N_Protected_Body,
7262       N_Task_Body,
7263
7264       --  N_Later_Decl_Item
7265
7266       N_Implicit_Label_Declaration,
7267       N_Package_Declaration,
7268       N_Single_Task_Declaration,
7269       N_Subprogram_Declaration,
7270       N_Use_Package_Clause,
7271
7272       --  N_Generic_Declaration, N_Later_Decl_Item
7273
7274       N_Generic_Package_Declaration,
7275       N_Generic_Subprogram_Declaration,
7276
7277       --  N_Array_Type_Definition
7278
7279       N_Constrained_Array_Definition,
7280       N_Unconstrained_Array_Definition,
7281
7282       --  N_Renaming_Declaration
7283
7284       N_Exception_Renaming_Declaration,
7285       N_Object_Renaming_Declaration,
7286       N_Package_Renaming_Declaration,
7287       N_Subprogram_Renaming_Declaration,
7288
7289       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
7290
7291       N_Generic_Function_Renaming_Declaration,
7292       N_Generic_Package_Renaming_Declaration,
7293       N_Generic_Procedure_Renaming_Declaration,
7294
7295       --  N_Statement_Other_Than_Procedure_Call
7296
7297       N_Abort_Statement,
7298       N_Accept_Statement,
7299       N_Assignment_Statement,
7300       N_Asynchronous_Select,
7301       N_Block_Statement,
7302       N_Case_Statement,
7303       N_Code_Statement,
7304       N_Conditional_Entry_Call,
7305
7306       --  N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7307
7308       N_Delay_Relative_Statement,
7309       N_Delay_Until_Statement,
7310
7311       --  N_Statement_Other_Than_Procedure_Call
7312
7313       N_Entry_Call_Statement,
7314       N_Free_Statement,
7315       N_Goto_Statement,
7316       N_Loop_Statement,
7317       N_Null_Statement,
7318       N_Raise_Statement,
7319       N_Requeue_Statement,
7320       N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7321       N_Extended_Return_Statement,
7322       N_Selective_Accept,
7323       N_Timed_Entry_Call,
7324
7325       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7326
7327       N_Exit_Statement,
7328       N_If_Statement,
7329
7330       --  N_Has_Condition
7331
7332       N_Accept_Alternative,
7333       N_Delay_Alternative,
7334       N_Elsif_Part,
7335       N_Entry_Body_Formal_Part,
7336       N_Iteration_Scheme,
7337       N_Terminate_Alternative,
7338
7339       --  N_Formal_Subprogram_Declaration
7340
7341       N_Formal_Abstract_Subprogram_Declaration,
7342       N_Formal_Concrete_Subprogram_Declaration,
7343
7344       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
7345
7346       N_Push_Constraint_Error_Label,
7347       N_Push_Program_Error_Label,
7348       N_Push_Storage_Error_Label,
7349
7350       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7351
7352       N_Pop_Constraint_Error_Label,
7353       N_Pop_Program_Error_Label,
7354       N_Pop_Storage_Error_Label,
7355
7356       --  SCIL nodes
7357
7358       N_SCIL_Dispatch_Table_Object_Init,
7359       N_SCIL_Dispatch_Table_Tag_Init,
7360       N_SCIL_Dispatching_Call,
7361       N_SCIL_Membership_Test,
7362       N_SCIL_Tag_Init,
7363
7364       --  Other nodes (not part of any subtype class)
7365
7366       N_Abortable_Part,
7367       N_Abstract_Subprogram_Declaration,
7368       N_Access_Definition,
7369       N_Access_To_Object_Definition,
7370       N_Case_Statement_Alternative,
7371       N_Compilation_Unit,
7372       N_Compilation_Unit_Aux,
7373       N_Component_Association,
7374       N_Component_Definition,
7375       N_Component_List,
7376       N_Derived_Type_Definition,
7377       N_Decimal_Fixed_Point_Definition,
7378       N_Defining_Program_Unit_Name,
7379       N_Delta_Constraint,
7380       N_Designator,
7381       N_Digits_Constraint,
7382       N_Discriminant_Association,
7383       N_Discriminant_Specification,
7384       N_Enumeration_Type_Definition,
7385       N_Entry_Body,
7386       N_Entry_Call_Alternative,
7387       N_Entry_Index_Specification,
7388       N_Exception_Declaration,
7389       N_Exception_Handler,
7390       N_Floating_Point_Definition,
7391       N_Formal_Decimal_Fixed_Point_Definition,
7392       N_Formal_Derived_Type_Definition,
7393       N_Formal_Discrete_Type_Definition,
7394       N_Formal_Floating_Point_Definition,
7395       N_Formal_Modular_Type_Definition,
7396       N_Formal_Ordinary_Fixed_Point_Definition,
7397       N_Formal_Package_Declaration,
7398       N_Formal_Private_Type_Definition,
7399       N_Formal_Signed_Integer_Type_Definition,
7400       N_Freeze_Entity,
7401       N_Generic_Association,
7402       N_Handled_Sequence_Of_Statements,
7403       N_Index_Or_Discriminant_Constraint,
7404       N_Itype_Reference,
7405       N_Label,
7406       N_Modular_Type_Definition,
7407       N_Number_Declaration,
7408       N_Ordinary_Fixed_Point_Definition,
7409       N_Others_Choice,
7410       N_Package_Specification,
7411       N_Parameter_Association,
7412       N_Parameter_Specification,
7413       N_Pragma,
7414       N_Protected_Definition,
7415       N_Range_Constraint,
7416       N_Real_Range_Specification,
7417       N_Record_Definition,
7418       N_Signed_Integer_Type_Definition,
7419       N_Single_Protected_Declaration,
7420       N_Subunit,
7421       N_Task_Definition,
7422       N_Triggering_Alternative,
7423       N_Use_Type_Clause,
7424       N_Validate_Unchecked_Conversion,
7425       N_Variant,
7426       N_Variant_Part,
7427       N_With_Clause,
7428       N_Unused_At_End);
7429
7430    for Node_Kind'Size use 8;
7431    --  The data structures in Atree assume this!
7432
7433    ----------------------------
7434    -- Node Class Definitions --
7435    ----------------------------
7436
7437    subtype N_Access_To_Subprogram_Definition is Node_Kind range
7438      N_Access_Function_Definition ..
7439      N_Access_Procedure_Definition;
7440
7441    subtype N_Array_Type_Definition is Node_Kind range
7442      N_Constrained_Array_Definition ..
7443      N_Unconstrained_Array_Definition;
7444
7445    subtype N_Binary_Op is Node_Kind range
7446      N_Op_Add ..
7447      N_Op_Shift_Right_Arithmetic;
7448
7449    subtype N_Body_Stub is Node_Kind range
7450      N_Package_Body_Stub ..
7451      N_Task_Body_Stub;
7452
7453    subtype N_Declaration is Node_Kind range
7454      N_Component_Declaration ..
7455      N_Procedure_Specification;
7456    --  Note: this includes all constructs normally thought of as declarations
7457    --  except those which are separately grouped as later declarations.
7458
7459    subtype N_Delay_Statement is Node_Kind range
7460       N_Delay_Relative_Statement ..
7461       N_Delay_Until_Statement;
7462
7463    subtype N_Direct_Name is Node_Kind range
7464      N_Identifier ..
7465      N_Character_Literal;
7466
7467    subtype N_Entity is Node_Kind range
7468      N_Defining_Character_Literal ..
7469      N_Defining_Operator_Symbol;
7470
7471    subtype N_Formal_Subprogram_Declaration is Node_Kind range
7472      N_Formal_Abstract_Subprogram_Declaration ..
7473      N_Formal_Concrete_Subprogram_Declaration;
7474
7475    subtype N_Generic_Declaration is Node_Kind range
7476      N_Generic_Package_Declaration ..
7477      N_Generic_Subprogram_Declaration;
7478
7479    subtype N_Generic_Instantiation is Node_Kind range
7480      N_Function_Instantiation ..
7481      N_Package_Instantiation;
7482
7483    subtype N_Generic_Renaming_Declaration is Node_Kind range
7484      N_Generic_Function_Renaming_Declaration ..
7485      N_Generic_Procedure_Renaming_Declaration;
7486
7487    subtype N_Has_Chars is Node_Kind range
7488      N_Attribute_Definition_Clause ..
7489      N_Op_Plus;
7490
7491    subtype N_Has_Entity is Node_Kind range
7492      N_Expanded_Name ..
7493      N_Attribute_Reference;
7494    --  Nodes that have Entity fields
7495    --  Warning: DOES NOT INCLUDE N_Freeze_Entity!
7496
7497    subtype N_Has_Etype is Node_Kind range
7498      N_Error ..
7499      N_Subtype_Indication;
7500
7501    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7502       N_Op_Divide ..
7503       N_Op_Rem;
7504
7505    subtype N_Multiplying_Operator is Node_Kind range
7506       N_Op_Divide ..
7507       N_Op_Rem;
7508
7509    subtype N_Later_Decl_Item is Node_Kind range
7510      N_Task_Type_Declaration ..
7511      N_Generic_Subprogram_Declaration;
7512    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7513    --  only those items which can appear as later declarative items. This also
7514    --  includes N_Implicit_Label_Declaration which is not specifically in the
7515    --  grammar but may appear as a valid later declarative items. It does NOT
7516    --  include N_Pragma which can also appear among later declarative items.
7517    --  It does however include N_Protected_Body, which is a bit peculiar, but
7518    --  harmless since this cannot appear in Ada 83 mode anyway.
7519
7520    subtype N_Membership_Test is Node_Kind range
7521       N_In ..
7522       N_Not_In;
7523
7524    subtype N_Op is Node_Kind range
7525      N_Op_Add ..
7526      N_Op_Plus;
7527
7528    subtype N_Op_Boolean is Node_Kind range
7529      N_Op_And ..
7530      N_Op_Xor;
7531    --  Binary operators which take operands of a boolean type, and yield
7532    --  a result of a boolean type.
7533
7534    subtype N_Op_Compare is Node_Kind range
7535      N_Op_Eq ..
7536      N_Op_Ne;
7537
7538    subtype N_Op_Shift is Node_Kind range
7539      N_Op_Rotate_Left ..
7540      N_Op_Shift_Right_Arithmetic;
7541
7542    subtype N_Proper_Body is Node_Kind range
7543      N_Package_Body ..
7544      N_Task_Body;
7545
7546    subtype N_Push_xxx_Label is Node_Kind range
7547      N_Push_Constraint_Error_Label ..
7548      N_Push_Storage_Error_Label;
7549
7550    subtype N_Pop_xxx_Label is Node_Kind range
7551      N_Pop_Constraint_Error_Label ..
7552      N_Pop_Storage_Error_Label;
7553
7554    subtype N_Push_Pop_xxx_Label is Node_Kind range
7555      N_Push_Constraint_Error_Label ..
7556      N_Pop_Storage_Error_Label;
7557
7558    subtype N_Raise_xxx_Error is Node_Kind range
7559      N_Raise_Constraint_Error ..
7560      N_Raise_Storage_Error;
7561
7562    subtype N_Renaming_Declaration is Node_Kind range
7563      N_Exception_Renaming_Declaration ..
7564      N_Generic_Procedure_Renaming_Declaration;
7565
7566    subtype N_Representation_Clause is Node_Kind range
7567      N_At_Clause ..
7568      N_Attribute_Definition_Clause;
7569
7570    subtype N_Short_Circuit is Node_Kind range
7571      N_And_Then ..
7572      N_Or_Else;
7573
7574    subtype N_SCIL_Node is Node_Kind range
7575      N_SCIL_Dispatch_Table_Object_Init ..
7576      N_SCIL_Tag_Init;
7577
7578    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7579      N_Abort_Statement ..
7580      N_If_Statement;
7581    --  Note that this includes all statement types except for the cases of the
7582    --  N_Procedure_Call_Statement which is considered to be a subexpression
7583    --  (since overloading is possible, so it needs to go through the normal
7584    --  overloading resolution for expressions).
7585
7586    subtype N_Subprogram_Instantiation is Node_Kind range
7587      N_Function_Instantiation ..
7588      N_Procedure_Instantiation;
7589
7590    subtype N_Has_Condition is Node_Kind range
7591      N_Exit_Statement ..
7592      N_Terminate_Alternative;
7593    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
7594
7595    subtype N_Subexpr is Node_Kind range
7596      N_Expanded_Name ..
7597      N_Unchecked_Type_Conversion;
7598    --  Nodes with expression fields
7599
7600    subtype N_Subprogram_Specification is Node_Kind range
7601      N_Function_Specification ..
7602      N_Procedure_Specification;
7603
7604    subtype N_Unary_Op is Node_Kind range
7605      N_Op_Abs ..
7606      N_Op_Plus;
7607
7608    subtype N_Unit_Body is Node_Kind range
7609      N_Package_Body ..
7610        N_Subprogram_Body;
7611
7612    ---------------------------
7613    -- Node Access Functions --
7614    ---------------------------
7615
7616    --  The following functions return the contents of the indicated field of
7617    --  the node referenced by the argument, which is a Node_Id. They provide
7618    --  logical access to fields in the node which could be accessed using the
7619    --  Atree.Unchecked_Access package, but the idea is always to use these
7620    --  higher level routines which preserve strong typing. In debug mode,
7621    --  these routines check that they are being applied to an appropriate
7622    --  node, as well as checking that the node is in range.
7623
7624    function ABE_Is_Certain
7625      (N : Node_Id) return Boolean;    -- Flag18
7626
7627    function Abort_Present
7628      (N : Node_Id) return Boolean;    -- Flag15
7629
7630    function Abortable_Part
7631      (N : Node_Id) return Node_Id;    -- Node2
7632
7633    function Abstract_Present
7634      (N : Node_Id) return Boolean;    -- Flag4
7635
7636    function Accept_Handler_Records
7637      (N : Node_Id) return List_Id;    -- List5
7638
7639    function Accept_Statement
7640      (N : Node_Id) return Node_Id;    -- Node2
7641
7642    function Access_Definition
7643      (N : Node_Id) return Node_Id;    -- Node3
7644
7645    function Access_To_Subprogram_Definition
7646      (N : Node_Id) return Node_Id;    -- Node3
7647
7648    function Access_Types_To_Process
7649      (N : Node_Id) return Elist_Id;   -- Elist2
7650
7651    function Actions
7652      (N : Node_Id) return List_Id;    -- List1
7653
7654    function Activation_Chain_Entity
7655      (N : Node_Id) return Node_Id;    -- Node3
7656
7657    function Acts_As_Spec
7658      (N : Node_Id) return Boolean;    -- Flag4
7659
7660    function Actual_Designated_Subtype
7661      (N : Node_Id) return Node_Id;    -- Node4
7662
7663    function Address_Warning_Posted
7664      (N : Node_Id) return Boolean;    -- Flag18
7665
7666    function Aggregate_Bounds
7667      (N : Node_Id) return Node_Id;    -- Node3
7668
7669    function Aliased_Present
7670      (N : Node_Id) return Boolean;    -- Flag4
7671
7672    function All_Others
7673      (N : Node_Id) return Boolean;    -- Flag11
7674
7675    function All_Present
7676      (N : Node_Id) return Boolean;    -- Flag15
7677
7678    function Alternatives
7679      (N : Node_Id) return List_Id;    -- List4
7680
7681    function Ancestor_Part
7682      (N : Node_Id) return Node_Id;    -- Node3
7683
7684    function Array_Aggregate
7685      (N : Node_Id) return Node_Id;    -- Node3
7686
7687    function Assignment_OK
7688      (N : Node_Id) return Boolean;    -- Flag15
7689
7690    function Associated_Node
7691      (N : Node_Id) return Node_Id;    -- Node4
7692
7693    function At_End_Proc
7694      (N : Node_Id) return Node_Id;    -- Node1
7695
7696    function Attribute_Name
7697      (N : Node_Id) return Name_Id;    -- Name2
7698
7699    function Aux_Decls_Node
7700      (N : Node_Id) return Node_Id;    -- Node5
7701
7702    function Backwards_OK
7703      (N : Node_Id) return Boolean;    -- Flag6
7704
7705    function Bad_Is_Detected
7706      (N : Node_Id) return Boolean;    -- Flag15
7707
7708    function By_Ref
7709      (N : Node_Id) return Boolean;    -- Flag5
7710
7711    function Body_Required
7712      (N : Node_Id) return Boolean;    -- Flag13
7713
7714    function Body_To_Inline
7715      (N : Node_Id) return Node_Id;    -- Node3
7716
7717    function Box_Present
7718      (N : Node_Id) return Boolean;    -- Flag15
7719
7720    function Char_Literal_Value
7721      (N : Node_Id) return Uint;       -- Uint2
7722
7723    function Chars
7724      (N : Node_Id) return Name_Id;    -- Name1
7725
7726    function Check_Address_Alignment
7727      (N : Node_Id) return Boolean;    -- Flag11
7728
7729    function Choice_Parameter
7730      (N : Node_Id) return Node_Id;    -- Node2
7731
7732    function Choices
7733      (N : Node_Id) return List_Id;    -- List1
7734
7735    function Coextensions
7736       (N : Node_Id) return Elist_Id;  -- Elist4
7737
7738    function Comes_From_Extended_Return_Statement
7739      (N : Node_Id) return Boolean;    -- Flag18
7740
7741    function Compile_Time_Known_Aggregate
7742      (N : Node_Id) return Boolean;    -- Flag18
7743
7744    function Component_Associations
7745      (N : Node_Id) return List_Id;    -- List2
7746
7747    function Component_Clauses
7748      (N : Node_Id) return List_Id;    -- List3
7749
7750    function Component_Definition
7751      (N : Node_Id) return Node_Id;    -- Node4
7752
7753    function Component_Items
7754      (N : Node_Id) return List_Id;    -- List3
7755
7756    function Component_List
7757      (N : Node_Id) return Node_Id;    -- Node1
7758
7759    function Component_Name
7760      (N : Node_Id) return Node_Id;    -- Node1
7761
7762    function Componentwise_Assignment
7763      (N : Node_Id) return Boolean;    -- Flag14
7764
7765    function Condition
7766      (N : Node_Id) return Node_Id;    -- Node1
7767
7768    function Condition_Actions
7769      (N : Node_Id) return List_Id;    -- List3
7770
7771    function Config_Pragmas
7772      (N : Node_Id) return List_Id;    -- List4
7773
7774    function Constant_Present
7775      (N : Node_Id) return Boolean;    -- Flag17
7776
7777    function Constraint
7778      (N : Node_Id) return Node_Id;    -- Node3
7779
7780    function Constraints
7781      (N : Node_Id) return List_Id;    -- List1
7782
7783    function Context_Installed
7784      (N : Node_Id) return Boolean;    -- Flag13
7785
7786    function Context_Pending
7787      (N : Node_Id) return Boolean;    -- Flag16
7788
7789    function Context_Items
7790      (N : Node_Id) return List_Id;    -- List1
7791
7792    function Controlling_Argument
7793      (N : Node_Id) return Node_Id;    -- Node1
7794
7795    function Conversion_OK
7796      (N : Node_Id) return Boolean;    -- Flag14
7797
7798    function Corresponding_Body
7799      (N : Node_Id) return Node_Id;    -- Node5
7800
7801    function Corresponding_Formal_Spec
7802      (N : Node_Id) return Node_Id;    -- Node3
7803
7804    function Corresponding_Generic_Association
7805      (N : Node_Id) return Node_Id;    -- Node5
7806
7807    function Corresponding_Integer_Value
7808      (N : Node_Id) return Uint;       -- Uint4
7809
7810    function Corresponding_Spec
7811      (N : Node_Id) return Node_Id;    -- Node5
7812
7813    function Corresponding_Stub
7814      (N : Node_Id) return Node_Id;    -- Node3
7815
7816    function Dcheck_Function
7817      (N : Node_Id) return Entity_Id;  -- Node5
7818
7819    function Debug_Statement
7820      (N : Node_Id) return Node_Id;    -- Node3
7821
7822    function Declarations
7823      (N : Node_Id) return List_Id;    -- List2
7824
7825    function Default_Expression
7826      (N : Node_Id) return Node_Id;    -- Node5
7827
7828    function Default_Name
7829      (N : Node_Id) return Node_Id;    -- Node2
7830
7831    function Defining_Identifier
7832      (N : Node_Id) return Entity_Id;  -- Node1
7833
7834    function Defining_Unit_Name
7835      (N : Node_Id) return Node_Id;    -- Node1
7836
7837    function Delay_Alternative
7838      (N : Node_Id) return Node_Id;    -- Node4
7839
7840    function Delay_Statement
7841      (N : Node_Id) return Node_Id;    -- Node2
7842
7843    function Delta_Expression
7844      (N : Node_Id) return Node_Id;    -- Node3
7845
7846    function Digits_Expression
7847      (N : Node_Id) return Node_Id;    -- Node2
7848
7849    function Discr_Check_Funcs_Built
7850      (N : Node_Id) return Boolean;    -- Flag11
7851
7852    function Discrete_Choices
7853      (N : Node_Id) return List_Id;    -- List4
7854
7855    function Discrete_Range
7856      (N : Node_Id) return Node_Id;    -- Node4
7857
7858    function Discrete_Subtype_Definition
7859      (N : Node_Id) return Node_Id;    -- Node4
7860
7861    function Discrete_Subtype_Definitions
7862      (N : Node_Id) return List_Id;    -- List2
7863
7864    function Discriminant_Specifications
7865      (N : Node_Id) return List_Id;    -- List4
7866
7867    function Discriminant_Type
7868      (N : Node_Id) return Node_Id;    -- Node5
7869
7870    function Do_Accessibility_Check
7871      (N : Node_Id) return Boolean;    -- Flag13
7872
7873    function Do_Discriminant_Check
7874      (N : Node_Id) return Boolean;    -- Flag13
7875
7876    function Do_Division_Check
7877      (N : Node_Id) return Boolean;    -- Flag13
7878
7879    function Do_Length_Check
7880      (N : Node_Id) return Boolean;    -- Flag4
7881
7882    function Do_Overflow_Check
7883      (N : Node_Id) return Boolean;    -- Flag17
7884
7885    function Do_Range_Check
7886      (N : Node_Id) return Boolean;    -- Flag9
7887
7888    function Do_Storage_Check
7889      (N : Node_Id) return Boolean;    -- Flag17
7890
7891    function Do_Tag_Check
7892      (N : Node_Id) return Boolean;    -- Flag13
7893
7894    function Elaborate_All_Desirable
7895      (N : Node_Id) return Boolean;    -- Flag9
7896
7897    function Elaborate_All_Present
7898      (N : Node_Id) return Boolean;    -- Flag14
7899
7900    function Elaborate_Desirable
7901      (N : Node_Id) return Boolean;    -- Flag11
7902
7903    function Elaborate_Present
7904      (N : Node_Id) return Boolean;    -- Flag4
7905
7906    function Elaboration_Boolean
7907      (N : Node_Id) return Node_Id;    -- Node2
7908
7909    function Else_Actions
7910      (N : Node_Id) return List_Id;    -- List3
7911
7912    function Else_Statements
7913      (N : Node_Id) return List_Id;    -- List4
7914
7915    function Elsif_Parts
7916      (N : Node_Id) return List_Id;    -- List3
7917
7918    function Enclosing_Variant
7919      (N : Node_Id) return Node_Id;    -- Node2
7920
7921    function End_Label
7922      (N : Node_Id) return Node_Id;    -- Node4
7923
7924    function End_Span
7925      (N : Node_Id) return Uint;       -- Uint5
7926
7927    function Entity
7928      (N : Node_Id) return Node_Id;    -- Node4
7929
7930    function Entity_Or_Associated_Node
7931      (N : Node_Id) return Node_Id;    -- Node4
7932
7933    function Entry_Body_Formal_Part
7934      (N : Node_Id) return Node_Id;    -- Node5
7935
7936    function Entry_Call_Alternative
7937      (N : Node_Id) return Node_Id;    -- Node1
7938
7939    function Entry_Call_Statement
7940      (N : Node_Id) return Node_Id;    -- Node1
7941
7942    function Entry_Direct_Name
7943      (N : Node_Id) return Node_Id;    -- Node1
7944
7945    function Entry_Index
7946      (N : Node_Id) return Node_Id;    -- Node5
7947
7948    function Entry_Index_Specification
7949      (N : Node_Id) return Node_Id;    -- Node4
7950
7951    function Etype
7952      (N : Node_Id) return Node_Id;    -- Node5
7953
7954    function Exception_Choices
7955      (N : Node_Id) return List_Id;    -- List4
7956
7957    function Exception_Handlers
7958      (N : Node_Id) return List_Id;    -- List5
7959
7960    function Exception_Junk
7961      (N : Node_Id) return Boolean;    -- Flag8
7962
7963    function Exception_Label
7964      (N : Node_Id) return Node_Id;    -- Node5
7965
7966    function Explicit_Actual_Parameter
7967      (N : Node_Id) return Node_Id;    -- Node3
7968
7969    function Expansion_Delayed
7970      (N : Node_Id) return Boolean;    -- Flag11
7971
7972    function Explicit_Generic_Actual_Parameter
7973      (N : Node_Id) return Node_Id;    -- Node1
7974
7975    function Expression
7976      (N : Node_Id) return Node_Id;    -- Node3
7977
7978    function Expressions
7979      (N : Node_Id) return List_Id;    -- List1
7980
7981    function First_Bit
7982      (N : Node_Id) return Node_Id;    -- Node3
7983
7984    function First_Inlined_Subprogram
7985      (N : Node_Id) return Entity_Id;  -- Node3
7986
7987    function First_Name
7988      (N : Node_Id) return Boolean;    -- Flag5
7989
7990    function First_Named_Actual
7991      (N : Node_Id) return Node_Id;    -- Node4
7992
7993    function First_Real_Statement
7994      (N : Node_Id) return Node_Id;    -- Node2
7995
7996    function First_Subtype_Link
7997      (N : Node_Id) return Entity_Id;  -- Node5
7998
7999    function Float_Truncate
8000      (N : Node_Id) return Boolean;    -- Flag11
8001
8002    function Formal_Type_Definition
8003      (N : Node_Id) return Node_Id;    -- Node3
8004
8005    function Forwards_OK
8006      (N : Node_Id) return Boolean;    -- Flag5
8007
8008    function From_At_End
8009      (N : Node_Id) return Boolean;    -- Flag4
8010
8011    function From_At_Mod
8012      (N : Node_Id) return Boolean;    -- Flag4
8013
8014    function From_Default
8015      (N : Node_Id) return Boolean;    -- Flag6
8016
8017    function Generic_Associations
8018      (N : Node_Id) return List_Id;    -- List3
8019
8020    function Generic_Formal_Declarations
8021      (N : Node_Id) return List_Id;    -- List2
8022
8023    function Generic_Parent
8024      (N : Node_Id) return Node_Id;    -- Node5
8025
8026    function Generic_Parent_Type
8027      (N : Node_Id) return Node_Id;    -- Node4
8028
8029    function Handled_Statement_Sequence
8030      (N : Node_Id) return Node_Id;    -- Node4
8031
8032    function Handler_List_Entry
8033      (N : Node_Id) return Node_Id;    -- Node2
8034
8035    function Has_Created_Identifier
8036      (N : Node_Id) return Boolean;    -- Flag15
8037
8038    function Has_Dynamic_Length_Check
8039      (N : Node_Id) return Boolean;    -- Flag10
8040
8041    function Has_Dynamic_Range_Check
8042      (N : Node_Id) return Boolean;    -- Flag12
8043
8044    function Has_Init_Expression
8045      (N : Node_Id) return Boolean;    -- Flag14
8046
8047    function Has_Local_Raise
8048      (N : Node_Id) return Boolean;    -- Flag8
8049
8050    function Has_No_Elaboration_Code
8051      (N : Node_Id) return Boolean;    -- Flag17
8052
8053    function Has_Priority_Pragma
8054      (N : Node_Id) return Boolean;    -- Flag6
8055
8056    function Has_Private_View
8057      (N : Node_Id) return Boolean;    -- Flag11
8058
8059    function Has_Relative_Deadline_Pragma
8060      (N : Node_Id) return Boolean;    -- Flag9
8061
8062    function Has_Self_Reference
8063      (N : Node_Id) return Boolean;    -- Flag13
8064
8065    function Has_Storage_Size_Pragma
8066      (N : Node_Id) return Boolean;    -- Flag5
8067
8068    function Has_Task_Info_Pragma
8069      (N : Node_Id) return Boolean;    -- Flag7
8070
8071    function Has_Task_Name_Pragma
8072      (N : Node_Id) return Boolean;    -- Flag8
8073
8074    function Has_Wide_Character
8075      (N : Node_Id) return Boolean;    -- Flag11
8076
8077    function Has_Wide_Wide_Character
8078      (N : Node_Id) return Boolean;    -- Flag13
8079
8080    function Hidden_By_Use_Clause
8081      (N : Node_Id) return Elist_Id;   -- Elist4
8082
8083    function High_Bound
8084      (N : Node_Id) return Node_Id;    -- Node2
8085
8086    function Identifier
8087      (N : Node_Id) return Node_Id;    -- Node1
8088
8089    function Interface_List
8090      (N : Node_Id) return List_Id;    -- List2
8091
8092    function Interface_Present
8093      (N : Node_Id) return Boolean;    -- Flag16
8094
8095    function Implicit_With
8096      (N : Node_Id) return Boolean;    -- Flag16
8097
8098    function In_Present
8099      (N : Node_Id) return Boolean;    -- Flag15
8100
8101    function Includes_Infinities
8102      (N : Node_Id) return Boolean;    -- Flag11
8103
8104    function Instance_Spec
8105      (N : Node_Id) return Node_Id;    -- Node5
8106
8107    function Intval
8108      (N : Node_Id) return Uint;       -- Uint3
8109
8110    function Is_Accessibility_Actual
8111      (N : Node_Id) return Boolean;    -- Flag13
8112
8113    function Is_Asynchronous_Call_Block
8114      (N : Node_Id) return Boolean;    -- Flag7
8115
8116    function Is_Component_Left_Opnd
8117      (N : Node_Id) return Boolean;    -- Flag13
8118
8119    function Is_Component_Right_Opnd
8120      (N : Node_Id) return Boolean;    -- Flag14
8121
8122    function Is_Controlling_Actual
8123      (N : Node_Id) return Boolean;    -- Flag16
8124
8125    function Is_Dynamic_Coextension
8126      (N : Node_Id) return Boolean;    -- Flag18
8127
8128    function Is_Elsif
8129      (N : Node_Id) return Boolean;    -- Flag13
8130
8131    function Is_Entry_Barrier_Function
8132      (N : Node_Id) return Boolean;    -- Flag8
8133
8134    function Is_Expanded_Build_In_Place_Call
8135      (N : Node_Id) return Boolean;    -- Flag11
8136
8137    function Is_Folded_In_Parser
8138      (N : Node_Id) return Boolean;    -- Flag4
8139
8140    function Is_In_Discriminant_Check
8141      (N : Node_Id) return Boolean;    -- Flag11
8142
8143    function Is_Machine_Number
8144      (N : Node_Id) return Boolean;    -- Flag11
8145
8146    function Is_Null_Loop
8147      (N : Node_Id) return Boolean;    -- Flag16
8148
8149    function Is_Overloaded
8150      (N : Node_Id) return Boolean;    -- Flag5
8151
8152    function Is_Power_Of_2_For_Shift
8153      (N : Node_Id) return Boolean;    -- Flag13
8154
8155    function Is_Protected_Subprogram_Body
8156      (N : Node_Id) return Boolean;    -- Flag7
8157
8158    function Is_Static_Coextension
8159      (N : Node_Id) return Boolean;    -- Flag14
8160
8161    function Is_Static_Expression
8162      (N : Node_Id) return Boolean;    -- Flag6
8163
8164    function Is_Subprogram_Descriptor
8165      (N : Node_Id) return Boolean;    -- Flag16
8166
8167    function Is_Task_Allocation_Block
8168      (N : Node_Id) return Boolean;    -- Flag6
8169
8170    function Is_Task_Master
8171      (N : Node_Id) return Boolean;    -- Flag5
8172
8173    function Iteration_Scheme
8174      (N : Node_Id) return Node_Id;    -- Node2
8175
8176    function Itype
8177      (N : Node_Id) return Entity_Id;  -- Node1
8178
8179    function Kill_Range_Check
8180      (N : Node_Id) return Boolean;    -- Flag11
8181
8182    function Label_Construct
8183      (N : Node_Id) return Node_Id;    -- Node2
8184
8185    function Left_Opnd
8186      (N : Node_Id) return Node_Id;    -- Node2
8187
8188    function Last_Bit
8189      (N : Node_Id) return Node_Id;    -- Node4
8190
8191    function Last_Name
8192      (N : Node_Id) return Boolean;    -- Flag6
8193
8194    function Library_Unit
8195      (N : Node_Id) return Node_Id;    -- Node4
8196
8197    function Limited_View_Installed
8198      (N : Node_Id) return Boolean;    -- Flag18
8199
8200    function Limited_Present
8201      (N : Node_Id) return Boolean;    -- Flag17
8202
8203    function Literals
8204      (N : Node_Id) return List_Id;    -- List1
8205
8206    function Local_Raise_Not_OK
8207      (N : Node_Id) return Boolean;    -- Flag7
8208
8209    function Local_Raise_Statements
8210      (N : Node_Id) return Elist_Id;   -- Elist1
8211
8212    function Loop_Actions
8213      (N : Node_Id) return List_Id;    -- List2
8214
8215    function Loop_Parameter_Specification
8216      (N : Node_Id) return Node_Id;    -- Node4
8217
8218    function Low_Bound
8219      (N : Node_Id) return Node_Id;    -- Node1
8220
8221    function Mod_Clause
8222      (N : Node_Id) return Node_Id;    -- Node2
8223
8224    function More_Ids
8225      (N : Node_Id) return Boolean;    -- Flag5
8226
8227    function Must_Be_Byte_Aligned
8228      (N : Node_Id) return Boolean;    -- Flag14
8229
8230    function Must_Not_Freeze
8231      (N : Node_Id) return Boolean;    -- Flag8
8232
8233    function Must_Not_Override
8234      (N : Node_Id) return Boolean;    -- Flag15
8235
8236    function Must_Override
8237      (N : Node_Id) return Boolean;    -- Flag14
8238
8239    function Name
8240      (N : Node_Id) return Node_Id;    -- Node2
8241
8242    function Names
8243      (N : Node_Id) return List_Id;    -- List2
8244
8245    function Next_Entity
8246      (N : Node_Id) return Node_Id;    -- Node2
8247
8248    function Next_Implicit_With
8249      (N : Node_Id) return Node_Id;    -- Node3
8250
8251    function Next_Named_Actual
8252      (N : Node_Id) return Node_Id;    -- Node4
8253
8254    function Next_Pragma
8255      (N : Node_Id) return Node_Id;    -- Node1
8256
8257    function Next_Rep_Item
8258      (N : Node_Id) return Node_Id;    -- Node5
8259
8260    function Next_Use_Clause
8261      (N : Node_Id) return Node_Id;    -- Node3
8262
8263    function No_Ctrl_Actions
8264      (N : Node_Id) return Boolean;    -- Flag7
8265
8266    function No_Elaboration_Check
8267      (N : Node_Id) return Boolean;    -- Flag14
8268
8269    function No_Entities_Ref_In_Spec
8270      (N : Node_Id) return Boolean;    -- Flag8
8271
8272    function No_Initialization
8273      (N : Node_Id) return Boolean;    -- Flag13
8274
8275    function No_Truncation
8276      (N : Node_Id) return Boolean;    -- Flag17
8277
8278    function Null_Present
8279      (N : Node_Id) return Boolean;    -- Flag13
8280
8281    function Null_Exclusion_Present
8282      (N : Node_Id) return Boolean;    -- Flag11
8283
8284    function Null_Exclusion_In_Return_Present
8285      (N : Node_Id) return Boolean;    -- Flag14
8286
8287    function Null_Record_Present
8288      (N : Node_Id) return Boolean;    -- Flag17
8289
8290    function Object_Definition
8291      (N : Node_Id) return Node_Id;    -- Node4
8292
8293    function Original_Discriminant
8294      (N : Node_Id) return Node_Id;    -- Node2
8295
8296    function Original_Entity
8297      (N : Node_Id) return Entity_Id;  -- Node2
8298
8299    function Others_Discrete_Choices
8300      (N : Node_Id) return List_Id;    -- List1
8301
8302    function Out_Present
8303      (N : Node_Id) return Boolean;    -- Flag17
8304
8305    function Parameter_Associations
8306      (N : Node_Id) return List_Id;    -- List3
8307
8308    function Parameter_List_Truncated
8309      (N : Node_Id) return Boolean;    -- Flag17
8310
8311    function Parameter_Specifications
8312      (N : Node_Id) return List_Id;    -- List3
8313
8314    function Parameter_Type
8315      (N : Node_Id) return Node_Id;    -- Node2
8316
8317    function Parent_Spec
8318      (N : Node_Id) return Node_Id;    -- Node4
8319
8320    function PPC_Enabled
8321      (N : Node_Id) return Boolean;    -- Flag5
8322
8323    function Position
8324      (N : Node_Id) return Node_Id;    -- Node2
8325
8326    function Pragma_Argument_Associations
8327      (N : Node_Id) return List_Id;    -- List2
8328
8329    function Pragma_Identifier
8330      (N : Node_Id) return Node_Id;    -- Node4
8331
8332    function Pragmas_After
8333      (N : Node_Id) return List_Id;    -- List5
8334
8335    function Pragmas_Before
8336      (N : Node_Id) return List_Id;    -- List4
8337
8338    function Prefix
8339      (N : Node_Id) return Node_Id;    -- Node3
8340
8341    function Present_Expr
8342      (N : Node_Id) return Uint;       -- Uint3
8343
8344    function Prev_Ids
8345      (N : Node_Id) return Boolean;    -- Flag6
8346
8347    function Print_In_Hex
8348      (N : Node_Id) return Boolean;    -- Flag13
8349
8350    function Private_Declarations
8351      (N : Node_Id) return List_Id;    -- List3
8352
8353    function Private_Present
8354      (N : Node_Id) return Boolean;    -- Flag15
8355
8356    function Procedure_To_Call
8357      (N : Node_Id) return Node_Id;    -- Node2
8358
8359    function Proper_Body
8360      (N : Node_Id) return Node_Id;    -- Node1
8361
8362    function Protected_Definition
8363      (N : Node_Id) return Node_Id;    -- Node3
8364
8365    function Protected_Present
8366      (N : Node_Id) return Boolean;    -- Flag6
8367
8368    function Raises_Constraint_Error
8369      (N : Node_Id) return Boolean;    -- Flag7
8370
8371    function Range_Constraint
8372      (N : Node_Id) return Node_Id;    -- Node4
8373
8374    function Range_Expression
8375      (N : Node_Id) return Node_Id;    -- Node4
8376
8377    function Real_Range_Specification
8378      (N : Node_Id) return Node_Id;    -- Node4
8379
8380    function Realval
8381      (N : Node_Id) return Ureal;      -- Ureal3
8382
8383    function Reason
8384      (N : Node_Id) return Uint;       -- Uint3
8385
8386    function Record_Extension_Part
8387      (N : Node_Id) return Node_Id;    -- Node3
8388
8389    function Redundant_Use
8390      (N : Node_Id) return Boolean;    -- Flag13
8391
8392    function Renaming_Exception
8393      (N : Node_Id) return Node_Id;    -- Node2
8394
8395    function Result_Definition
8396      (N : Node_Id) return Node_Id;    -- Node4
8397
8398    function Return_Object_Declarations
8399      (N : Node_Id) return List_Id;    -- List3
8400
8401    function Return_Statement_Entity
8402      (N : Node_Id) return Node_Id;    -- Node5
8403
8404    function Reverse_Present
8405      (N : Node_Id) return Boolean;    -- Flag15
8406
8407    function Right_Opnd
8408      (N : Node_Id) return Node_Id;    -- Node3
8409
8410    function Rounded_Result
8411      (N : Node_Id) return Boolean;    -- Flag18
8412
8413    function SCIL_Controlling_Tag
8414      (N : Node_Id) return Node_Id;    -- Node5
8415
8416    function SCIL_Entity
8417      (N : Node_Id) return Node_Id;    -- Node4
8418
8419    function SCIL_Related_Node
8420      (N : Node_Id) return Node_Id;    -- Node1
8421
8422    function SCIL_Tag_Value
8423      (N : Node_Id) return Node_Id;    -- Node5
8424
8425    function SCIL_Target_Prim
8426      (N : Node_Id) return Node_Id;    -- Node2
8427
8428    function Scope
8429      (N : Node_Id) return Node_Id;    -- Node3
8430
8431    function Select_Alternatives
8432      (N : Node_Id) return List_Id;    -- List1
8433
8434    function Selector_Name
8435      (N : Node_Id) return Node_Id;    -- Node2
8436
8437    function Selector_Names
8438      (N : Node_Id) return List_Id;    -- List1
8439
8440    function Shift_Count_OK
8441      (N : Node_Id) return Boolean;    -- Flag4
8442
8443    function Source_Type
8444      (N : Node_Id) return Entity_Id;  -- Node1
8445
8446    function Specification
8447      (N : Node_Id) return Node_Id;    -- Node1
8448
8449    function Statements
8450      (N : Node_Id) return List_Id;    -- List3
8451
8452    function Static_Processing_OK
8453      (N : Node_Id) return Boolean;    -- Flag4
8454
8455    function Storage_Pool
8456      (N : Node_Id) return Node_Id;    -- Node1
8457
8458    function Strval
8459      (N : Node_Id) return String_Id;  -- Str3
8460
8461    function Subtype_Indication
8462      (N : Node_Id) return Node_Id;    -- Node5
8463
8464    function Subtype_Mark
8465      (N : Node_Id) return Node_Id;    -- Node4
8466
8467    function Subtype_Marks
8468      (N : Node_Id) return List_Id;    -- List2
8469
8470    function Suppress_Loop_Warnings
8471      (N : Node_Id) return Boolean;    -- Flag17
8472
8473    function Synchronized_Present
8474      (N : Node_Id) return Boolean;    -- Flag7
8475
8476    function Tagged_Present
8477      (N : Node_Id) return Boolean;    -- Flag15
8478
8479    function Target_Type
8480      (N : Node_Id) return Entity_Id;  -- Node2
8481
8482    function Task_Definition
8483      (N : Node_Id) return Node_Id;    -- Node3
8484
8485    function Task_Present
8486      (N : Node_Id) return Boolean;    -- Flag5
8487
8488    function Then_Actions
8489      (N : Node_Id) return List_Id;    -- List2
8490
8491    function Then_Statements
8492      (N : Node_Id) return List_Id;    -- List2
8493
8494    function Treat_Fixed_As_Integer
8495      (N : Node_Id) return Boolean;    -- Flag14
8496
8497    function Triggering_Alternative
8498      (N : Node_Id) return Node_Id;    -- Node1
8499
8500    function Triggering_Statement
8501      (N : Node_Id) return Node_Id;    -- Node1
8502
8503    function TSS_Elist
8504      (N : Node_Id) return Elist_Id;   -- Elist3
8505
8506    function Type_Definition
8507      (N : Node_Id) return Node_Id;    -- Node3
8508
8509    function Unit
8510      (N : Node_Id) return Node_Id;    -- Node2
8511
8512    function Unknown_Discriminants_Present
8513      (N : Node_Id) return Boolean;    -- Flag13
8514
8515    function Unreferenced_In_Spec
8516      (N : Node_Id) return Boolean;    -- Flag7
8517
8518    function Variant_Part
8519      (N : Node_Id) return Node_Id;    -- Node4
8520
8521    function Variants
8522      (N : Node_Id) return List_Id;    -- List1
8523
8524    function Visible_Declarations
8525      (N : Node_Id) return List_Id;    -- List2
8526
8527    function Was_Originally_Stub
8528      (N : Node_Id) return Boolean;    -- Flag13
8529
8530    function Zero_Cost_Handling
8531      (N : Node_Id) return Boolean;    -- Flag5
8532
8533    --  End functions (note used by xsinfo utility program to end processing)
8534
8535    ----------------------------
8536    -- Node Update Procedures --
8537    ----------------------------
8538
8539    --  These are the corresponding node update routines, which again provide
8540    --  a high level logical access with type checking. In addition to setting
8541    --  the indicated field of the node N to the given Val, in the case of
8542    --  tree pointers (List1-4), the parent pointer of the Val node is set to
8543    --  point back to node N. This automates the setting of the parent pointer.
8544
8545    procedure Set_ABE_Is_Certain
8546      (N : Node_Id; Val : Boolean := True);    -- Flag18
8547
8548    procedure Set_Abort_Present
8549      (N : Node_Id; Val : Boolean := True);    -- Flag15
8550
8551    procedure Set_Abortable_Part
8552      (N : Node_Id; Val : Node_Id);            -- Node2
8553
8554    procedure Set_Abstract_Present
8555      (N : Node_Id; Val : Boolean := True);    -- Flag4
8556
8557    procedure Set_Accept_Handler_Records
8558      (N : Node_Id; Val : List_Id);            -- List5
8559
8560    procedure Set_Accept_Statement
8561      (N : Node_Id; Val : Node_Id);            -- Node2
8562
8563    procedure Set_Access_Definition
8564      (N : Node_Id; Val : Node_Id);            -- Node3
8565
8566    procedure Set_Access_To_Subprogram_Definition
8567      (N : Node_Id; Val : Node_Id);            -- Node3
8568
8569    procedure Set_Access_Types_To_Process
8570      (N : Node_Id; Val : Elist_Id);           -- Elist2
8571
8572    procedure Set_Actions
8573      (N : Node_Id; Val : List_Id);            -- List1
8574
8575    procedure Set_Activation_Chain_Entity
8576      (N : Node_Id; Val : Node_Id);            -- Node3
8577
8578    procedure Set_Acts_As_Spec
8579      (N : Node_Id; Val : Boolean := True);    -- Flag4
8580
8581    procedure Set_Actual_Designated_Subtype
8582      (N : Node_Id; Val : Node_Id);            -- Node4
8583
8584    procedure Set_Address_Warning_Posted
8585      (N : Node_Id; Val : Boolean := True);    -- Flag18
8586
8587    procedure Set_Aggregate_Bounds
8588      (N : Node_Id; Val : Node_Id);            -- Node3
8589
8590    procedure Set_Aliased_Present
8591      (N : Node_Id; Val : Boolean := True);    -- Flag4
8592
8593    procedure Set_All_Others
8594      (N : Node_Id; Val : Boolean := True);    -- Flag11
8595
8596    procedure Set_All_Present
8597      (N : Node_Id; Val : Boolean := True);    -- Flag15
8598
8599    procedure Set_Alternatives
8600      (N : Node_Id; Val : List_Id);            -- List4
8601
8602    procedure Set_Ancestor_Part
8603      (N : Node_Id; Val : Node_Id);            -- Node3
8604
8605    procedure Set_Array_Aggregate
8606      (N : Node_Id; Val : Node_Id);            -- Node3
8607
8608    procedure Set_Assignment_OK
8609      (N : Node_Id; Val : Boolean := True);    -- Flag15
8610
8611    procedure Set_Associated_Node
8612      (N : Node_Id; Val : Node_Id);            -- Node4
8613
8614    procedure Set_Attribute_Name
8615      (N : Node_Id; Val : Name_Id);            -- Name2
8616
8617    procedure Set_At_End_Proc
8618      (N : Node_Id; Val : Node_Id);            -- Node1
8619
8620    procedure Set_Aux_Decls_Node
8621      (N : Node_Id; Val : Node_Id);            -- Node5
8622
8623    procedure Set_Backwards_OK
8624      (N : Node_Id; Val : Boolean := True);    -- Flag6
8625
8626    procedure Set_Bad_Is_Detected
8627      (N : Node_Id; Val : Boolean := True);    -- Flag15
8628
8629    procedure Set_Body_Required
8630      (N : Node_Id; Val : Boolean := True);    -- Flag13
8631
8632    procedure Set_Body_To_Inline
8633      (N : Node_Id; Val : Node_Id);            -- Node3
8634
8635    procedure Set_Box_Present
8636      (N : Node_Id; Val : Boolean := True);    -- Flag15
8637
8638    procedure Set_By_Ref
8639      (N : Node_Id; Val : Boolean := True);    -- Flag5
8640
8641    procedure Set_Char_Literal_Value
8642      (N : Node_Id; Val : Uint);               -- Uint2
8643
8644    procedure Set_Chars
8645      (N : Node_Id; Val : Name_Id);            -- Name1
8646
8647    procedure Set_Check_Address_Alignment
8648      (N : Node_Id; Val : Boolean := True);    -- Flag11
8649
8650    procedure Set_Choice_Parameter
8651      (N : Node_Id; Val : Node_Id);            -- Node2
8652
8653    procedure Set_Coextensions
8654      (N : Node_Id; Val : Elist_Id);           -- Elist4
8655
8656    procedure Set_Choices
8657      (N : Node_Id; Val : List_Id);            -- List1
8658
8659    procedure Set_Comes_From_Extended_Return_Statement
8660      (N : Node_Id; Val : Boolean := True);    -- Flag18
8661
8662    procedure Set_Compile_Time_Known_Aggregate
8663      (N : Node_Id; Val : Boolean := True);    -- Flag18
8664
8665    procedure Set_Component_Associations
8666      (N : Node_Id; Val : List_Id);            -- List2
8667
8668    procedure Set_Component_Clauses
8669      (N : Node_Id; Val : List_Id);            -- List3
8670
8671    procedure Set_Component_Definition
8672      (N : Node_Id; Val : Node_Id);            -- Node4
8673
8674    procedure Set_Component_Items
8675      (N : Node_Id; Val : List_Id);            -- List3
8676
8677    procedure Set_Component_List
8678      (N : Node_Id; Val : Node_Id);            -- Node1
8679
8680    procedure Set_Component_Name
8681      (N : Node_Id; Val : Node_Id);            -- Node1
8682
8683    procedure Set_Componentwise_Assignment
8684      (N : Node_Id; Val : Boolean := True);    -- Flag14
8685
8686    procedure Set_Condition
8687      (N : Node_Id; Val : Node_Id);            -- Node1
8688
8689    procedure Set_Condition_Actions
8690      (N : Node_Id; Val : List_Id);            -- List3
8691
8692    procedure Set_Config_Pragmas
8693      (N : Node_Id; Val : List_Id);            -- List4
8694
8695    procedure Set_Constant_Present
8696      (N : Node_Id; Val : Boolean := True);    -- Flag17
8697
8698    procedure Set_Constraint
8699      (N : Node_Id; Val : Node_Id);            -- Node3
8700
8701    procedure Set_Constraints
8702      (N : Node_Id; Val : List_Id);            -- List1
8703
8704    procedure Set_Context_Installed
8705      (N : Node_Id; Val : Boolean := True);    -- Flag13
8706
8707    procedure Set_Context_Items
8708      (N : Node_Id; Val : List_Id);            -- List1
8709
8710    procedure Set_Context_Pending
8711      (N : Node_Id; Val : Boolean := True);    -- Flag16
8712
8713    procedure Set_Controlling_Argument
8714      (N : Node_Id; Val : Node_Id);            -- Node1
8715
8716    procedure Set_Conversion_OK
8717      (N : Node_Id; Val : Boolean := True);    -- Flag14
8718
8719    procedure Set_Corresponding_Body
8720      (N : Node_Id; Val : Node_Id);            -- Node5
8721
8722    procedure Set_Corresponding_Formal_Spec
8723      (N : Node_Id; Val : Node_Id);            -- Node3
8724
8725    procedure Set_Corresponding_Generic_Association
8726      (N : Node_Id; Val : Node_Id);            -- Node5
8727
8728    procedure Set_Corresponding_Integer_Value
8729      (N : Node_Id; Val : Uint);               -- Uint4
8730
8731    procedure Set_Corresponding_Spec
8732      (N : Node_Id; Val : Node_Id);            -- Node5
8733
8734    procedure Set_Corresponding_Stub
8735      (N : Node_Id; Val : Node_Id);            -- Node3
8736
8737    procedure Set_Dcheck_Function
8738      (N : Node_Id; Val : Entity_Id);          -- Node5
8739
8740    procedure Set_Debug_Statement
8741      (N : Node_Id; Val : Node_Id);            -- Node3
8742
8743    procedure Set_Declarations
8744      (N : Node_Id; Val : List_Id);            -- List2
8745
8746    procedure Set_Default_Expression
8747      (N : Node_Id; Val : Node_Id);            -- Node5
8748
8749    procedure Set_Default_Name
8750      (N : Node_Id; Val : Node_Id);            -- Node2
8751
8752    procedure Set_Defining_Identifier
8753      (N : Node_Id; Val : Entity_Id);          -- Node1
8754
8755    procedure Set_Defining_Unit_Name
8756      (N : Node_Id; Val : Node_Id);            -- Node1
8757
8758    procedure Set_Delay_Alternative
8759      (N : Node_Id; Val : Node_Id);            -- Node4
8760
8761    procedure Set_Delay_Statement
8762      (N : Node_Id; Val : Node_Id);            -- Node2
8763
8764    procedure Set_Delta_Expression
8765      (N : Node_Id; Val : Node_Id);            -- Node3
8766
8767    procedure Set_Digits_Expression
8768      (N : Node_Id; Val : Node_Id);            -- Node2
8769
8770    procedure Set_Discr_Check_Funcs_Built
8771      (N : Node_Id; Val : Boolean := True);    -- Flag11
8772
8773    procedure Set_Discrete_Choices
8774      (N : Node_Id; Val : List_Id);            -- List4
8775
8776    procedure Set_Discrete_Range
8777      (N : Node_Id; Val : Node_Id);            -- Node4
8778
8779    procedure Set_Discrete_Subtype_Definition
8780      (N : Node_Id; Val : Node_Id);            -- Node4
8781
8782    procedure Set_Discrete_Subtype_Definitions
8783      (N : Node_Id; Val : List_Id);            -- List2
8784
8785    procedure Set_Discriminant_Specifications
8786      (N : Node_Id; Val : List_Id);            -- List4
8787
8788    procedure Set_Discriminant_Type
8789      (N : Node_Id; Val : Node_Id);            -- Node5
8790
8791    procedure Set_Do_Accessibility_Check
8792      (N : Node_Id; Val : Boolean := True);    -- Flag13
8793
8794    procedure Set_Do_Discriminant_Check
8795      (N : Node_Id; Val : Boolean := True);    -- Flag13
8796
8797    procedure Set_Do_Division_Check
8798      (N : Node_Id; Val : Boolean := True);    -- Flag13
8799
8800    procedure Set_Do_Length_Check
8801      (N : Node_Id; Val : Boolean := True);    -- Flag4
8802
8803    procedure Set_Do_Overflow_Check
8804      (N : Node_Id; Val : Boolean := True);    -- Flag17
8805
8806    procedure Set_Do_Range_Check
8807      (N : Node_Id; Val : Boolean := True);    -- Flag9
8808
8809    procedure Set_Do_Storage_Check
8810      (N : Node_Id; Val : Boolean := True);    -- Flag17
8811
8812    procedure Set_Do_Tag_Check
8813      (N : Node_Id; Val : Boolean := True);    -- Flag13
8814
8815    procedure Set_Elaborate_All_Desirable
8816      (N : Node_Id; Val : Boolean := True);    -- Flag9
8817
8818    procedure Set_Elaborate_All_Present
8819      (N : Node_Id; Val : Boolean := True);    -- Flag14
8820
8821    procedure Set_Elaborate_Desirable
8822      (N : Node_Id; Val : Boolean := True);    -- Flag11
8823
8824    procedure Set_Elaborate_Present
8825      (N : Node_Id; Val : Boolean := True);    -- Flag4
8826
8827    procedure Set_Elaboration_Boolean
8828      (N : Node_Id; Val : Node_Id);            -- Node2
8829
8830    procedure Set_Else_Actions
8831      (N : Node_Id; Val : List_Id);            -- List3
8832
8833    procedure Set_Else_Statements
8834      (N : Node_Id; Val : List_Id);            -- List4
8835
8836    procedure Set_Elsif_Parts
8837      (N : Node_Id; Val : List_Id);            -- List3
8838
8839    procedure Set_Enclosing_Variant
8840      (N : Node_Id; Val : Node_Id);            -- Node2
8841
8842    procedure Set_End_Label
8843      (N : Node_Id; Val : Node_Id);            -- Node4
8844
8845    procedure Set_End_Span
8846      (N : Node_Id; Val : Uint);               -- Uint5
8847
8848    procedure Set_Entity
8849      (N : Node_Id; Val : Node_Id);            -- Node4
8850
8851    procedure Set_Entry_Body_Formal_Part
8852      (N : Node_Id; Val : Node_Id);            -- Node5
8853
8854    procedure Set_Entry_Call_Alternative
8855      (N : Node_Id; Val : Node_Id);            -- Node1
8856
8857    procedure Set_Entry_Call_Statement
8858      (N : Node_Id; Val : Node_Id);            -- Node1
8859
8860    procedure Set_Entry_Direct_Name
8861      (N : Node_Id; Val : Node_Id);            -- Node1
8862
8863    procedure Set_Entry_Index
8864      (N : Node_Id; Val : Node_Id);            -- Node5
8865
8866    procedure Set_Entry_Index_Specification
8867      (N : Node_Id; Val : Node_Id);            -- Node4
8868
8869    procedure Set_Etype
8870      (N : Node_Id; Val : Node_Id);            -- Node5
8871
8872    procedure Set_Exception_Choices
8873      (N : Node_Id; Val : List_Id);            -- List4
8874
8875    procedure Set_Exception_Handlers
8876      (N : Node_Id; Val : List_Id);            -- List5
8877
8878    procedure Set_Exception_Junk
8879      (N : Node_Id; Val : Boolean := True);    -- Flag8
8880
8881    procedure Set_Exception_Label
8882      (N : Node_Id; Val : Node_Id);            -- Node5
8883
8884    procedure Set_Expansion_Delayed
8885      (N : Node_Id; Val : Boolean := True);    -- Flag11
8886
8887    procedure Set_Explicit_Actual_Parameter
8888      (N : Node_Id; Val : Node_Id);            -- Node3
8889
8890    procedure Set_Explicit_Generic_Actual_Parameter
8891      (N : Node_Id; Val : Node_Id);            -- Node1
8892
8893    procedure Set_Expression
8894      (N : Node_Id; Val : Node_Id);            -- Node3
8895
8896    procedure Set_Expressions
8897      (N : Node_Id; Val : List_Id);            -- List1
8898
8899    procedure Set_First_Bit
8900      (N : Node_Id; Val : Node_Id);            -- Node3
8901
8902    procedure Set_First_Inlined_Subprogram
8903      (N : Node_Id; Val : Entity_Id);          -- Node3
8904
8905    procedure Set_First_Name
8906      (N : Node_Id; Val : Boolean := True);    -- Flag5
8907
8908    procedure Set_First_Named_Actual
8909      (N : Node_Id; Val : Node_Id);            -- Node4
8910
8911    procedure Set_First_Real_Statement
8912      (N : Node_Id; Val : Node_Id);            -- Node2
8913
8914    procedure Set_First_Subtype_Link
8915      (N : Node_Id; Val : Entity_Id);          -- Node5
8916
8917    procedure Set_Float_Truncate
8918      (N : Node_Id; Val : Boolean := True);    -- Flag11
8919
8920    procedure Set_Formal_Type_Definition
8921      (N : Node_Id; Val : Node_Id);            -- Node3
8922
8923    procedure Set_Forwards_OK
8924      (N : Node_Id; Val : Boolean := True);    -- Flag5
8925
8926    procedure Set_From_At_Mod
8927      (N : Node_Id; Val : Boolean := True);    -- Flag4
8928
8929    procedure Set_From_At_End
8930      (N : Node_Id; Val : Boolean := True);    -- Flag4
8931
8932    procedure Set_From_Default
8933      (N : Node_Id; Val : Boolean := True);    -- Flag6
8934
8935    procedure Set_Generic_Associations
8936      (N : Node_Id; Val : List_Id);            -- List3
8937
8938    procedure Set_Generic_Formal_Declarations
8939      (N : Node_Id; Val : List_Id);            -- List2
8940
8941    procedure Set_Generic_Parent
8942      (N : Node_Id; Val : Node_Id);            -- Node5
8943
8944    procedure Set_Generic_Parent_Type
8945      (N : Node_Id; Val : Node_Id);            -- Node4
8946
8947    procedure Set_Handled_Statement_Sequence
8948      (N : Node_Id; Val : Node_Id);            -- Node4
8949
8950    procedure Set_Handler_List_Entry
8951      (N : Node_Id; Val : Node_Id);            -- Node2
8952
8953    procedure Set_Has_Created_Identifier
8954      (N : Node_Id; Val : Boolean := True);    -- Flag15
8955
8956    procedure Set_Has_Dynamic_Length_Check
8957      (N : Node_Id; Val : Boolean := True);    -- Flag10
8958
8959    procedure Set_Has_Dynamic_Range_Check
8960      (N : Node_Id; Val : Boolean := True);    -- Flag12
8961
8962    procedure Set_Has_Init_Expression
8963      (N : Node_Id; Val : Boolean := True);    -- Flag14
8964
8965    procedure Set_Has_Local_Raise
8966      (N : Node_Id; Val : Boolean := True);    -- Flag8
8967
8968    procedure Set_Has_No_Elaboration_Code
8969      (N : Node_Id; Val : Boolean := True);    -- Flag17
8970
8971    procedure Set_Has_Priority_Pragma
8972      (N : Node_Id; Val : Boolean := True);    -- Flag6
8973
8974    procedure Set_Has_Private_View
8975      (N : Node_Id; Val : Boolean := True);    -- Flag11
8976
8977    procedure Set_Has_Relative_Deadline_Pragma
8978      (N : Node_Id; Val : Boolean := True);    -- Flag9
8979
8980    procedure Set_Has_Self_Reference
8981      (N : Node_Id; Val : Boolean := True);    -- Flag13
8982
8983    procedure Set_Has_Storage_Size_Pragma
8984      (N : Node_Id; Val : Boolean := True);    -- Flag5
8985
8986    procedure Set_Has_Task_Info_Pragma
8987      (N : Node_Id; Val : Boolean := True);    -- Flag7
8988
8989    procedure Set_Has_Task_Name_Pragma
8990      (N : Node_Id; Val : Boolean := True);    -- Flag8
8991
8992    procedure Set_Has_Wide_Character
8993      (N : Node_Id; Val : Boolean := True);    -- Flag11
8994
8995    procedure Set_Has_Wide_Wide_Character
8996      (N : Node_Id; Val : Boolean := True);    -- Flag13
8997
8998    procedure Set_Hidden_By_Use_Clause
8999      (N : Node_Id; Val : Elist_Id);           -- Elist4
9000
9001    procedure Set_High_Bound
9002      (N : Node_Id; Val : Node_Id);            -- Node2
9003
9004    procedure Set_Identifier
9005      (N : Node_Id; Val : Node_Id);            -- Node1
9006
9007    procedure Set_Interface_List
9008      (N : Node_Id; Val : List_Id);            -- List2
9009
9010    procedure Set_Interface_Present
9011      (N : Node_Id; Val : Boolean := True);    -- Flag16
9012
9013    procedure Set_Implicit_With
9014      (N : Node_Id; Val : Boolean := True);    -- Flag16
9015
9016    procedure Set_In_Present
9017      (N : Node_Id; Val : Boolean := True);    -- Flag15
9018
9019    procedure Set_Includes_Infinities
9020      (N : Node_Id; Val : Boolean := True);    -- Flag11
9021
9022    procedure Set_Instance_Spec
9023      (N : Node_Id; Val : Node_Id);            -- Node5
9024
9025    procedure Set_Intval
9026      (N : Node_Id; Val : Uint);               -- Uint3
9027
9028    procedure Set_Is_Accessibility_Actual
9029      (N : Node_Id; Val : Boolean := True);    -- Flag13
9030
9031    procedure Set_Is_Asynchronous_Call_Block
9032      (N : Node_Id; Val : Boolean := True);    -- Flag7
9033
9034    procedure Set_Is_Component_Left_Opnd
9035      (N : Node_Id; Val : Boolean := True);    -- Flag13
9036
9037    procedure Set_Is_Component_Right_Opnd
9038      (N : Node_Id; Val : Boolean := True);    -- Flag14
9039
9040    procedure Set_Is_Controlling_Actual
9041      (N : Node_Id; Val : Boolean := True);    -- Flag16
9042
9043    procedure Set_Is_Dynamic_Coextension
9044      (N : Node_Id; Val : Boolean := True);    -- Flag18
9045
9046    procedure Set_Is_Elsif
9047      (N : Node_Id; Val : Boolean := True);    -- Flag13
9048
9049    procedure Set_Is_Entry_Barrier_Function
9050      (N : Node_Id; Val : Boolean := True);    -- Flag8
9051
9052    procedure Set_Is_Expanded_Build_In_Place_Call
9053      (N : Node_Id; Val : Boolean := True);    -- Flag11
9054
9055    procedure Set_Is_Folded_In_Parser
9056      (N : Node_Id; Val : Boolean := True);    -- Flag4
9057
9058    procedure Set_Is_In_Discriminant_Check
9059      (N : Node_Id; Val : Boolean := True);    -- Flag11
9060
9061    procedure Set_Is_Machine_Number
9062      (N : Node_Id; Val : Boolean := True);    -- Flag11
9063
9064    procedure Set_Is_Null_Loop
9065      (N : Node_Id; Val : Boolean := True);    -- Flag16
9066
9067    procedure Set_Is_Overloaded
9068      (N : Node_Id; Val : Boolean := True);    -- Flag5
9069
9070    procedure Set_Is_Power_Of_2_For_Shift
9071      (N : Node_Id; Val : Boolean := True);    -- Flag13
9072
9073    procedure Set_Is_Protected_Subprogram_Body
9074      (N : Node_Id; Val : Boolean := True);    -- Flag7
9075
9076    procedure Set_Is_Static_Coextension
9077      (N : Node_Id; Val : Boolean := True);    -- Flag14
9078
9079    procedure Set_Is_Static_Expression
9080      (N : Node_Id; Val : Boolean := True);    -- Flag6
9081
9082    procedure Set_Is_Subprogram_Descriptor
9083      (N : Node_Id; Val : Boolean := True);    -- Flag16
9084
9085    procedure Set_Is_Task_Allocation_Block
9086      (N : Node_Id; Val : Boolean := True);    -- Flag6
9087
9088    procedure Set_Is_Task_Master
9089      (N : Node_Id; Val : Boolean := True);    -- Flag5
9090
9091    procedure Set_Iteration_Scheme
9092      (N : Node_Id; Val : Node_Id);            -- Node2
9093
9094    procedure Set_Itype
9095      (N : Node_Id; Val : Entity_Id);          -- Node1
9096
9097    procedure Set_Kill_Range_Check
9098      (N : Node_Id; Val : Boolean := True);    -- Flag11
9099
9100    procedure Set_Last_Bit
9101      (N : Node_Id; Val : Node_Id);            -- Node4
9102
9103    procedure Set_Last_Name
9104      (N : Node_Id; Val : Boolean := True);    -- Flag6
9105
9106    procedure Set_Library_Unit
9107      (N : Node_Id; Val : Node_Id);            -- Node4
9108
9109    procedure Set_Label_Construct
9110      (N : Node_Id; Val : Node_Id);            -- Node2
9111
9112    procedure Set_Left_Opnd
9113      (N : Node_Id; Val : Node_Id);            -- Node2
9114
9115    procedure Set_Limited_View_Installed
9116      (N : Node_Id; Val : Boolean := True);    -- Flag18
9117
9118    procedure Set_Limited_Present
9119      (N : Node_Id; Val : Boolean := True);    -- Flag17
9120
9121    procedure Set_Literals
9122      (N : Node_Id; Val : List_Id);            -- List1
9123
9124    procedure Set_Local_Raise_Not_OK
9125      (N : Node_Id; Val : Boolean := True);    -- Flag7
9126
9127    procedure Set_Local_Raise_Statements
9128      (N : Node_Id; Val : Elist_Id);           -- Elist1
9129
9130    procedure Set_Loop_Actions
9131      (N : Node_Id; Val : List_Id);            -- List2
9132
9133    procedure Set_Loop_Parameter_Specification
9134      (N : Node_Id; Val : Node_Id);            -- Node4
9135
9136    procedure Set_Low_Bound
9137      (N : Node_Id; Val : Node_Id);            -- Node1
9138
9139    procedure Set_Mod_Clause
9140      (N : Node_Id; Val : Node_Id);            -- Node2
9141
9142    procedure Set_More_Ids
9143      (N : Node_Id; Val : Boolean := True);    -- Flag5
9144
9145    procedure Set_Must_Be_Byte_Aligned
9146      (N : Node_Id; Val : Boolean := True);    -- Flag14
9147
9148    procedure Set_Must_Not_Freeze
9149      (N : Node_Id; Val : Boolean := True);    -- Flag8
9150
9151    procedure Set_Must_Not_Override
9152      (N : Node_Id; Val : Boolean := True);    -- Flag15
9153
9154    procedure Set_Must_Override
9155      (N : Node_Id; Val : Boolean := True);    -- Flag14
9156
9157    procedure Set_Name
9158      (N : Node_Id; Val : Node_Id);            -- Node2
9159
9160    procedure Set_Names
9161      (N : Node_Id; Val : List_Id);            -- List2
9162
9163    procedure Set_Next_Entity
9164      (N : Node_Id; Val : Node_Id);            -- Node2
9165
9166    procedure Set_Next_Implicit_With
9167      (N : Node_Id; Val : Node_Id);            -- Node3
9168
9169    procedure Set_Next_Named_Actual
9170      (N : Node_Id; Val : Node_Id);            -- Node4
9171
9172    procedure Set_Next_Pragma
9173      (N : Node_Id; Val : Node_Id);            -- Node1
9174
9175    procedure Set_Next_Rep_Item
9176      (N : Node_Id; Val : Node_Id);            -- Node5
9177
9178    procedure Set_Next_Use_Clause
9179      (N : Node_Id; Val : Node_Id);            -- Node3
9180
9181    procedure Set_No_Ctrl_Actions
9182      (N : Node_Id; Val : Boolean := True);    -- Flag7
9183
9184    procedure Set_No_Elaboration_Check
9185      (N : Node_Id; Val : Boolean := True);    -- Flag14
9186
9187    procedure Set_No_Entities_Ref_In_Spec
9188      (N : Node_Id; Val : Boolean := True);    -- Flag8
9189
9190    procedure Set_No_Initialization
9191      (N : Node_Id; Val : Boolean := True);    -- Flag13
9192
9193    procedure Set_No_Truncation
9194      (N : Node_Id; Val : Boolean := True);    -- Flag17
9195
9196    procedure Set_Null_Present
9197      (N : Node_Id; Val : Boolean := True);    -- Flag13
9198
9199    procedure Set_Null_Exclusion_Present
9200      (N : Node_Id; Val : Boolean := True);    -- Flag11
9201
9202    procedure Set_Null_Exclusion_In_Return_Present
9203      (N : Node_Id; Val : Boolean := True);    -- Flag14
9204
9205    procedure Set_Null_Record_Present
9206      (N : Node_Id; Val : Boolean := True);    -- Flag17
9207
9208    procedure Set_Object_Definition
9209      (N : Node_Id; Val : Node_Id);            -- Node4
9210
9211    procedure Set_Original_Discriminant
9212      (N : Node_Id; Val : Node_Id);            -- Node2
9213
9214    procedure Set_Original_Entity
9215      (N : Node_Id; Val : Entity_Id);          -- Node2
9216
9217    procedure Set_Others_Discrete_Choices
9218      (N : Node_Id; Val : List_Id);            -- List1
9219
9220    procedure Set_Out_Present
9221      (N : Node_Id; Val : Boolean := True);    -- Flag17
9222
9223    procedure Set_Parameter_Associations
9224      (N : Node_Id; Val : List_Id);            -- List3
9225
9226    procedure Set_Parameter_List_Truncated
9227      (N : Node_Id; Val : Boolean := True);    -- Flag17
9228
9229    procedure Set_Parameter_Specifications
9230      (N : Node_Id; Val : List_Id);            -- List3
9231
9232    procedure Set_Parameter_Type
9233      (N : Node_Id; Val : Node_Id);            -- Node2
9234
9235    procedure Set_Parent_Spec
9236      (N : Node_Id; Val : Node_Id);            -- Node4
9237
9238    procedure Set_PPC_Enabled
9239      (N : Node_Id; Val : Boolean := True);    -- Flag5
9240
9241    procedure Set_Position
9242      (N : Node_Id; Val : Node_Id);            -- Node2
9243
9244    procedure Set_Pragma_Argument_Associations
9245      (N : Node_Id; Val : List_Id);            -- List2
9246
9247    procedure Set_Pragma_Identifier
9248      (N : Node_Id; Val : Node_Id);            -- Node4
9249
9250    procedure Set_Pragmas_After
9251      (N : Node_Id; Val : List_Id);            -- List5
9252
9253    procedure Set_Pragmas_Before
9254      (N : Node_Id; Val : List_Id);            -- List4
9255
9256    procedure Set_Prefix
9257      (N : Node_Id; Val : Node_Id);            -- Node3
9258
9259    procedure Set_Present_Expr
9260      (N : Node_Id; Val : Uint);               -- Uint3
9261
9262    procedure Set_Prev_Ids
9263      (N : Node_Id; Val : Boolean := True);    -- Flag6
9264
9265    procedure Set_Print_In_Hex
9266      (N : Node_Id; Val : Boolean := True);    -- Flag13
9267
9268    procedure Set_Private_Declarations
9269      (N : Node_Id; Val : List_Id);            -- List3
9270
9271    procedure Set_Private_Present
9272      (N : Node_Id; Val : Boolean := True);    -- Flag15
9273
9274    procedure Set_Procedure_To_Call
9275      (N : Node_Id; Val : Node_Id);            -- Node2
9276
9277    procedure Set_Proper_Body
9278      (N : Node_Id; Val : Node_Id);            -- Node1
9279
9280    procedure Set_Protected_Definition
9281      (N : Node_Id; Val : Node_Id);            -- Node3
9282
9283    procedure Set_Protected_Present
9284      (N : Node_Id; Val : Boolean := True);    -- Flag6
9285
9286    procedure Set_Raises_Constraint_Error
9287      (N : Node_Id; Val : Boolean := True);    -- Flag7
9288
9289    procedure Set_Range_Constraint
9290      (N : Node_Id; Val : Node_Id);            -- Node4
9291
9292    procedure Set_Range_Expression
9293      (N : Node_Id; Val : Node_Id);            -- Node4
9294
9295    procedure Set_Real_Range_Specification
9296      (N : Node_Id; Val : Node_Id);            -- Node4
9297
9298    procedure Set_Realval
9299      (N : Node_Id; Val : Ureal);              -- Ureal3
9300
9301    procedure Set_Reason
9302      (N : Node_Id; Val : Uint);               -- Uint3
9303
9304    procedure Set_Record_Extension_Part
9305      (N : Node_Id; Val : Node_Id);            -- Node3
9306
9307    procedure Set_Redundant_Use
9308      (N : Node_Id; Val : Boolean := True);    -- Flag13
9309
9310    procedure Set_Renaming_Exception
9311      (N : Node_Id; Val : Node_Id);            -- Node2
9312
9313    procedure Set_Result_Definition
9314      (N : Node_Id; Val : Node_Id);            -- Node4
9315
9316    procedure Set_Return_Object_Declarations
9317      (N : Node_Id; Val : List_Id);            -- List3
9318
9319    procedure Set_Return_Statement_Entity
9320      (N : Node_Id; Val : Node_Id);            -- Node5
9321
9322    procedure Set_Reverse_Present
9323      (N : Node_Id; Val : Boolean := True);    -- Flag15
9324
9325    procedure Set_Right_Opnd
9326      (N : Node_Id; Val : Node_Id);            -- Node3
9327
9328    procedure Set_Rounded_Result
9329      (N : Node_Id; Val : Boolean := True);    -- Flag18
9330
9331    procedure Set_SCIL_Controlling_Tag
9332      (N : Node_Id; Val : Node_Id);            -- Node5
9333
9334    procedure Set_SCIL_Entity
9335      (N : Node_Id; Val : Node_Id);            -- Node4
9336
9337    procedure Set_SCIL_Related_Node
9338      (N : Node_Id; Val : Node_Id);            -- Node1
9339
9340    procedure Set_SCIL_Tag_Value
9341      (N : Node_Id; Val : Node_Id);            -- Node5
9342
9343    procedure Set_SCIL_Target_Prim
9344      (N : Node_Id; Val : Node_Id);            -- Node2
9345
9346    procedure Set_Scope
9347      (N : Node_Id; Val : Node_Id);            -- Node3
9348
9349    procedure Set_Select_Alternatives
9350      (N : Node_Id; Val : List_Id);            -- List1
9351
9352    procedure Set_Selector_Name
9353      (N : Node_Id; Val : Node_Id);            -- Node2
9354
9355    procedure Set_Selector_Names
9356      (N : Node_Id; Val : List_Id);            -- List1
9357
9358    procedure Set_Shift_Count_OK
9359      (N : Node_Id; Val : Boolean := True);    -- Flag4
9360
9361    procedure Set_Source_Type
9362      (N : Node_Id; Val : Entity_Id);          -- Node1
9363
9364    procedure Set_Specification
9365      (N : Node_Id; Val : Node_Id);            -- Node1
9366
9367    procedure Set_Statements
9368      (N : Node_Id; Val : List_Id);            -- List3
9369
9370    procedure Set_Static_Processing_OK
9371      (N : Node_Id; Val : Boolean);            -- Flag4
9372
9373    procedure Set_Storage_Pool
9374      (N : Node_Id; Val : Node_Id);            -- Node1
9375
9376    procedure Set_Strval
9377      (N : Node_Id; Val : String_Id);          -- Str3
9378
9379    procedure Set_Subtype_Indication
9380      (N : Node_Id; Val : Node_Id);            -- Node5
9381
9382    procedure Set_Subtype_Mark
9383      (N : Node_Id; Val : Node_Id);            -- Node4
9384
9385    procedure Set_Subtype_Marks
9386      (N : Node_Id; Val : List_Id);            -- List2
9387
9388    procedure Set_Suppress_Loop_Warnings
9389      (N : Node_Id; Val : Boolean := True);    -- Flag17
9390
9391    procedure Set_Synchronized_Present
9392      (N : Node_Id; Val : Boolean := True);    -- Flag7
9393
9394    procedure Set_Tagged_Present
9395      (N : Node_Id; Val : Boolean := True);    -- Flag15
9396
9397    procedure Set_Target_Type
9398      (N : Node_Id; Val : Entity_Id);          -- Node2
9399
9400    procedure Set_Task_Definition
9401      (N : Node_Id; Val : Node_Id);            -- Node3
9402
9403    procedure Set_Task_Present
9404      (N : Node_Id; Val : Boolean := True);    -- Flag5
9405
9406    procedure Set_Then_Actions
9407      (N : Node_Id; Val : List_Id);            -- List2
9408
9409    procedure Set_Then_Statements
9410      (N : Node_Id; Val : List_Id);            -- List2
9411
9412    procedure Set_Treat_Fixed_As_Integer
9413      (N : Node_Id; Val : Boolean := True);    -- Flag14
9414
9415    procedure Set_Triggering_Alternative
9416      (N : Node_Id; Val : Node_Id);            -- Node1
9417
9418    procedure Set_Triggering_Statement
9419      (N : Node_Id; Val : Node_Id);            -- Node1
9420
9421    procedure Set_TSS_Elist
9422      (N : Node_Id; Val : Elist_Id);           -- Elist3
9423
9424    procedure Set_Type_Definition
9425      (N : Node_Id; Val : Node_Id);            -- Node3
9426
9427    procedure Set_Unit
9428      (N : Node_Id; Val : Node_Id);            -- Node2
9429
9430    procedure Set_Unknown_Discriminants_Present
9431      (N : Node_Id; Val : Boolean := True);    -- Flag13
9432
9433    procedure Set_Unreferenced_In_Spec
9434      (N : Node_Id; Val : Boolean := True);    -- Flag7
9435
9436    procedure Set_Variant_Part
9437      (N : Node_Id; Val : Node_Id);            -- Node4
9438
9439    procedure Set_Variants
9440      (N : Node_Id; Val : List_Id);            -- List1
9441
9442    procedure Set_Visible_Declarations
9443      (N : Node_Id; Val : List_Id);            -- List2
9444
9445    procedure Set_Was_Originally_Stub
9446      (N : Node_Id; Val : Boolean := True);    -- Flag13
9447
9448    procedure Set_Zero_Cost_Handling
9449      (N : Node_Id; Val : Boolean := True);    -- Flag5
9450
9451    -------------------------
9452    -- Iterator Procedures --
9453    -------------------------
9454
9455    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9456
9457    procedure Next_Entity       (N : in out Node_Id);
9458    procedure Next_Named_Actual (N : in out Node_Id);
9459    procedure Next_Rep_Item     (N : in out Node_Id);
9460    procedure Next_Use_Clause   (N : in out Node_Id);
9461
9462    --------------------------------------
9463    -- Logical Access to End_Span Field --
9464    --------------------------------------
9465
9466    function End_Location (N : Node_Id) return Source_Ptr;
9467    --  N is an N_If_Statement or N_Case_Statement node, and this
9468    --  function returns the location of the IF token in the END IF
9469    --  sequence by translating the value of the End_Span field.
9470
9471    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9472    --  N is an N_If_Statement or N_Case_Statement node. This procedure
9473    --  sets the End_Span field to correspond to the given value S. In
9474    --  other words, End_Span is set to the difference between S and
9475    --  Sloc (N), the starting location.
9476
9477    --------------------------------
9478    -- Node_Kind Membership Tests --
9479    --------------------------------
9480
9481    --  The following functions allow a convenient notation for testing whether
9482    --  a Node_Kind value matches any one of a list of possible values. In each
9483    --  case True is returned if the given T argument is equal to any of the V
9484    --  arguments. Note that there is a similar set of functions defined in
9485    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
9486
9487    function Nkind_In
9488      (T  : Node_Kind;
9489       V1 : Node_Kind;
9490       V2 : Node_Kind) return Boolean;
9491
9492    function Nkind_In
9493      (T  : Node_Kind;
9494       V1 : Node_Kind;
9495       V2 : Node_Kind;
9496       V3 : Node_Kind) return Boolean;
9497
9498    function Nkind_In
9499      (T  : Node_Kind;
9500       V1 : Node_Kind;
9501       V2 : Node_Kind;
9502       V3 : Node_Kind;
9503       V4 : Node_Kind) return Boolean;
9504
9505    function Nkind_In
9506      (T  : Node_Kind;
9507       V1 : Node_Kind;
9508       V2 : Node_Kind;
9509       V3 : Node_Kind;
9510       V4 : Node_Kind;
9511       V5 : Node_Kind) return Boolean;
9512
9513    function Nkind_In
9514      (T  : Node_Kind;
9515       V1 : Node_Kind;
9516       V2 : Node_Kind;
9517       V3 : Node_Kind;
9518       V4 : Node_Kind;
9519       V5 : Node_Kind;
9520       V6 : Node_Kind) return Boolean;
9521
9522    function Nkind_In
9523      (T  : Node_Kind;
9524       V1 : Node_Kind;
9525       V2 : Node_Kind;
9526       V3 : Node_Kind;
9527       V4 : Node_Kind;
9528       V5 : Node_Kind;
9529       V6 : Node_Kind;
9530       V7 : Node_Kind) return Boolean;
9531
9532    function Nkind_In
9533      (T  : Node_Kind;
9534       V1 : Node_Kind;
9535       V2 : Node_Kind;
9536       V3 : Node_Kind;
9537       V4 : Node_Kind;
9538       V5 : Node_Kind;
9539       V6 : Node_Kind;
9540       V7 : Node_Kind;
9541       V8 : Node_Kind) return Boolean;
9542
9543    function Nkind_In
9544      (T  : Node_Kind;
9545       V1 : Node_Kind;
9546       V2 : Node_Kind;
9547       V3 : Node_Kind;
9548       V4 : Node_Kind;
9549       V5 : Node_Kind;
9550       V6 : Node_Kind;
9551       V7 : Node_Kind;
9552       V8 : Node_Kind;
9553       V9 : Node_Kind) return Boolean;
9554
9555    pragma Inline (Nkind_In);
9556    --  Inline all above functions
9557
9558    -----------------------
9559    -- Utility Functions --
9560    -----------------------
9561
9562    function Pragma_Name (N : Node_Id) return Name_Id;
9563    pragma Inline (Pragma_Name);
9564    --  Convenient function to obtain Chars field of Pragma_Identifier
9565
9566    -----------------------------
9567    -- Syntactic Parent Tables --
9568    -----------------------------
9569
9570    --  These tables show for each node, and for each of the five fields,
9571    --  whether the corresponding field is syntactic (True) or semantic (False).
9572    --  Unused entries are also set to False.
9573
9574    subtype Field_Num is Natural range 1 .. 5;
9575
9576    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9577
9578    --  Following entries can be built automatically from the sinfo sources
9579    --  using the makeisf utility (currently this program is in spitbol).
9580
9581      N_Identifier =>
9582        (1 => True,    --  Chars (Name1)
9583         2 => False,   --  Original_Discriminant (Node2-Sem)
9584         3 => False,   --  unused
9585         4 => False,   --  Entity (Node4-Sem)
9586         5 => False),  --  Etype (Node5-Sem)
9587
9588      N_Integer_Literal =>
9589        (1 => False,   --  unused
9590         2 => False,   --  Original_Entity (Node2-Sem)
9591         3 => True,    --  Intval (Uint3)
9592         4 => False,   --  unused
9593         5 => False),  --  Etype (Node5-Sem)
9594
9595      N_Real_Literal =>
9596        (1 => False,   --  unused
9597         2 => False,   --  Original_Entity (Node2-Sem)
9598         3 => True,    --  Realval (Ureal3)
9599         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
9600         5 => False),  --  Etype (Node5-Sem)
9601
9602      N_Character_Literal =>
9603        (1 => True,    --  Chars (Name1)
9604         2 => True,    --  Char_Literal_Value (Uint2)
9605         3 => False,   --  unused
9606         4 => False,   --  Entity (Node4-Sem)
9607         5 => False),  --  Etype (Node5-Sem)
9608
9609      N_String_Literal =>
9610        (1 => False,   --  unused
9611         2 => False,   --  unused
9612         3 => True,    --  Strval (Str3)
9613         4 => False,   --  unused
9614         5 => False),  --  Etype (Node5-Sem)
9615
9616      N_Pragma =>
9617        (1 => False,   --  Next_Pragma (Node1-Sem)
9618         2 => True,    --  Pragma_Argument_Associations (List2)
9619         3 => True,    --  Debug_Statement (Node3)
9620         4 => True,    --  Pragma_Identifier (Node4)
9621         5 => False),  --  Next_Rep_Item (Node5-Sem)
9622
9623      N_Pragma_Argument_Association =>
9624        (1 => True,    --  Chars (Name1)
9625         2 => False,   --  unused
9626         3 => True,    --  Expression (Node3)
9627         4 => False,   --  unused
9628         5 => False),  --  unused
9629
9630      N_Defining_Identifier =>
9631        (1 => True,    --  Chars (Name1)
9632         2 => False,   --  Next_Entity (Node2-Sem)
9633         3 => False,   --  Scope (Node3-Sem)
9634         4 => False,   --  unused
9635         5 => False),  --  Etype (Node5-Sem)
9636
9637      N_Full_Type_Declaration =>
9638        (1 => True,    --  Defining_Identifier (Node1)
9639         2 => False,   --  unused
9640         3 => True,    --  Type_Definition (Node3)
9641         4 => True,    --  Discriminant_Specifications (List4)
9642         5 => False),  --  unused
9643
9644      N_Subtype_Declaration =>
9645        (1 => True,    --  Defining_Identifier (Node1)
9646         2 => False,   --  unused
9647         3 => False,   --  unused
9648         4 => False,   --  Generic_Parent_Type (Node4-Sem)
9649         5 => True),   --  Subtype_Indication (Node5)
9650
9651      N_Subtype_Indication =>
9652        (1 => False,   --  unused
9653         2 => False,   --  unused
9654         3 => True,    --  Constraint (Node3)
9655         4 => True,    --  Subtype_Mark (Node4)
9656         5 => False),  --  Etype (Node5-Sem)
9657
9658      N_Object_Declaration =>
9659        (1 => True,    --  Defining_Identifier (Node1)
9660         2 => False,   --  Handler_List_Entry (Node2-Sem)
9661         3 => True,    --  Expression (Node3)
9662         4 => True,    --  Object_Definition (Node4)
9663         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
9664
9665      N_Number_Declaration =>
9666        (1 => True,    --  Defining_Identifier (Node1)
9667         2 => False,   --  unused
9668         3 => True,    --  Expression (Node3)
9669         4 => False,   --  unused
9670         5 => False),  --  unused
9671
9672      N_Derived_Type_Definition =>
9673        (1 => False,   --  unused
9674         2 => True,    --  Interface_List (List2)
9675         3 => True,    --  Record_Extension_Part (Node3)
9676         4 => False,   --  unused
9677         5 => True),   --  Subtype_Indication (Node5)
9678
9679      N_Range_Constraint =>
9680        (1 => False,   --  unused
9681         2 => False,   --  unused
9682         3 => False,   --  unused
9683         4 => True,    --  Range_Expression (Node4)
9684         5 => False),  --  unused
9685
9686      N_Range =>
9687        (1 => True,    --  Low_Bound (Node1)
9688         2 => True,    --  High_Bound (Node2)
9689         3 => False,   --  unused
9690         4 => False,   --  unused
9691         5 => False),  --  Etype (Node5-Sem)
9692
9693      N_Enumeration_Type_Definition =>
9694        (1 => True,    --  Literals (List1)
9695         2 => False,   --  unused
9696         3 => False,   --  unused
9697         4 => True,    --  End_Label (Node4)
9698         5 => False),  --  unused
9699
9700      N_Defining_Character_Literal =>
9701        (1 => True,    --  Chars (Name1)
9702         2 => False,   --  Next_Entity (Node2-Sem)
9703         3 => False,   --  Scope (Node3-Sem)
9704         4 => False,   --  unused
9705         5 => False),  --  Etype (Node5-Sem)
9706
9707      N_Signed_Integer_Type_Definition =>
9708        (1 => True,    --  Low_Bound (Node1)
9709         2 => True,    --  High_Bound (Node2)
9710         3 => False,   --  unused
9711         4 => False,   --  unused
9712         5 => False),  --  unused
9713
9714      N_Modular_Type_Definition =>
9715        (1 => False,   --  unused
9716         2 => False,   --  unused
9717         3 => True,    --  Expression (Node3)
9718         4 => False,   --  unused
9719         5 => False),  --  unused
9720
9721      N_Floating_Point_Definition =>
9722        (1 => False,   --  unused
9723         2 => True,    --  Digits_Expression (Node2)
9724         3 => False,   --  unused
9725         4 => True,    --  Real_Range_Specification (Node4)
9726         5 => False),  --  unused
9727
9728      N_Real_Range_Specification =>
9729        (1 => True,    --  Low_Bound (Node1)
9730         2 => True,    --  High_Bound (Node2)
9731         3 => False,   --  unused
9732         4 => False,   --  unused
9733         5 => False),  --  unused
9734
9735      N_Ordinary_Fixed_Point_Definition =>
9736        (1 => False,   --  unused
9737         2 => False,   --  unused
9738         3 => True,    --  Delta_Expression (Node3)
9739         4 => True,    --  Real_Range_Specification (Node4)
9740         5 => False),  --  unused
9741
9742      N_Decimal_Fixed_Point_Definition =>
9743        (1 => False,   --  unused
9744         2 => True,    --  Digits_Expression (Node2)
9745         3 => True,    --  Delta_Expression (Node3)
9746         4 => True,    --  Real_Range_Specification (Node4)
9747         5 => False),  --  unused
9748
9749      N_Digits_Constraint =>
9750        (1 => False,   --  unused
9751         2 => True,    --  Digits_Expression (Node2)
9752         3 => False,   --  unused
9753         4 => True,    --  Range_Constraint (Node4)
9754         5 => False),  --  unused
9755
9756      N_Unconstrained_Array_Definition =>
9757        (1 => False,   --  unused
9758         2 => True,    --  Subtype_Marks (List2)
9759         3 => False,   --  unused
9760         4 => True,    --  Component_Definition (Node4)
9761         5 => False),  --  unused
9762
9763      N_Constrained_Array_Definition =>
9764        (1 => False,   --  unused
9765         2 => True,    --  Discrete_Subtype_Definitions (List2)
9766         3 => False,   --  unused
9767         4 => True,    --  Component_Definition (Node4)
9768         5 => False),  --  unused
9769
9770      N_Component_Definition =>
9771        (1 => False,   --  unused
9772         2 => False,   --  unused
9773         3 => True,    --  Access_Definition (Node3)
9774         4 => False,   --  unused
9775         5 => True),   --  Subtype_Indication (Node5)
9776
9777      N_Discriminant_Specification =>
9778        (1 => True,    --  Defining_Identifier (Node1)
9779         2 => False,   --  unused
9780         3 => True,    --  Expression (Node3)
9781         4 => False,   --  unused
9782         5 => True),   --  Discriminant_Type (Node5)
9783
9784      N_Index_Or_Discriminant_Constraint =>
9785        (1 => True,    --  Constraints (List1)
9786         2 => False,   --  unused
9787         3 => False,   --  unused
9788         4 => False,   --  unused
9789         5 => False),  --  unused
9790
9791      N_Discriminant_Association =>
9792        (1 => True,    --  Selector_Names (List1)
9793         2 => False,   --  unused
9794         3 => True,    --  Expression (Node3)
9795         4 => False,   --  unused
9796         5 => False),  --  unused
9797
9798      N_Record_Definition =>
9799        (1 => True,    --  Component_List (Node1)
9800         2 => True,    --  Interface_List (List2)
9801         3 => False,   --  unused
9802         4 => True,    --  End_Label (Node4)
9803         5 => False),  --  unused
9804
9805      N_Component_List =>
9806        (1 => False,   --  unused
9807         2 => False,   --  unused
9808         3 => True,    --  Component_Items (List3)
9809         4 => True,    --  Variant_Part (Node4)
9810         5 => False),  --  unused
9811
9812      N_Component_Declaration =>
9813        (1 => True,    --  Defining_Identifier (Node1)
9814         2 => False,   --  unused
9815         3 => True,    --  Expression (Node3)
9816         4 => True,    --  Component_Definition (Node4)
9817         5 => False),  --  unused
9818
9819      N_Variant_Part =>
9820        (1 => True,    --  Variants (List1)
9821         2 => True,    --  Name (Node2)
9822         3 => False,   --  unused
9823         4 => False,   --  unused
9824         5 => False),  --  unused
9825
9826      N_Variant =>
9827        (1 => True,    --  Component_List (Node1)
9828         2 => False,   --  Enclosing_Variant (Node2-Sem)
9829         3 => False,   --  Present_Expr (Uint3-Sem)
9830         4 => True,    --  Discrete_Choices (List4)
9831         5 => False),  --  Dcheck_Function (Node5-Sem)
9832
9833      N_Others_Choice =>
9834        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
9835         2 => False,   --  unused
9836         3 => False,   --  unused
9837         4 => False,   --  unused
9838         5 => False),  --  unused
9839
9840      N_Access_To_Object_Definition =>
9841        (1 => False,   --  unused
9842         2 => False,   --  unused
9843         3 => False,   --  unused
9844         4 => False,   --  unused
9845         5 => True),   --  Subtype_Indication (Node5)
9846
9847      N_Access_Function_Definition =>
9848        (1 => False,   --  unused
9849         2 => False,   --  unused
9850         3 => True,    --  Parameter_Specifications (List3)
9851         4 => True,    --  Result_Definition (Node4)
9852         5 => False),  --  unused
9853
9854      N_Access_Procedure_Definition =>
9855        (1 => False,   --  unused
9856         2 => False,   --  unused
9857         3 => True,    --  Parameter_Specifications (List3)
9858         4 => False,   --  unused
9859         5 => False),  --  unused
9860
9861      N_Access_Definition =>
9862        (1 => False,   --  unused
9863         2 => False,   --  unused
9864         3 => True,    --  Access_To_Subprogram_Definition (Node3)
9865         4 => True,    --  Subtype_Mark (Node4)
9866         5 => False),  --  unused
9867
9868      N_Incomplete_Type_Declaration =>
9869        (1 => True,    --  Defining_Identifier (Node1)
9870         2 => False,   --  unused
9871         3 => False,   --  unused
9872         4 => True,    --  Discriminant_Specifications (List4)
9873         5 => False),  --  unused
9874
9875      N_Explicit_Dereference =>
9876        (1 => False,   --  unused
9877         2 => False,   --  unused
9878         3 => True,    --  Prefix (Node3)
9879         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
9880         5 => False),  --  Etype (Node5-Sem)
9881
9882      N_Indexed_Component =>
9883        (1 => True,    --  Expressions (List1)
9884         2 => False,   --  unused
9885         3 => True,    --  Prefix (Node3)
9886         4 => False,   --  unused
9887         5 => False),  --  Etype (Node5-Sem)
9888
9889      N_Slice =>
9890        (1 => False,   --  unused
9891         2 => False,   --  unused
9892         3 => True,    --  Prefix (Node3)
9893         4 => True,    --  Discrete_Range (Node4)
9894         5 => False),  --  Etype (Node5-Sem)
9895
9896      N_Selected_Component =>
9897        (1 => False,   --  unused
9898         2 => True,    --  Selector_Name (Node2)
9899         3 => True,    --  Prefix (Node3)
9900         4 => False,   --  unused
9901         5 => False),  --  Etype (Node5-Sem)
9902
9903      N_Attribute_Reference =>
9904        (1 => True,    --  Expressions (List1)
9905         2 => True,    --  Attribute_Name (Name2)
9906         3 => True,    --  Prefix (Node3)
9907         4 => False,   --  Entity (Node4-Sem)
9908         5 => False),  --  Etype (Node5-Sem)
9909
9910      N_Aggregate =>
9911        (1 => True,    --  Expressions (List1)
9912         2 => True,    --  Component_Associations (List2)
9913         3 => False,   --  Aggregate_Bounds (Node3-Sem)
9914         4 => False,   --  unused
9915         5 => False),  --  Etype (Node5-Sem)
9916
9917      N_Component_Association =>
9918        (1 => True,    --  Choices (List1)
9919         2 => False,   --  Loop_Actions (List2-Sem)
9920         3 => True,    --  Expression (Node3)
9921         4 => False,   --  unused
9922         5 => False),  --  unused
9923
9924      N_Extension_Aggregate =>
9925        (1 => True,    --  Expressions (List1)
9926         2 => True,    --  Component_Associations (List2)
9927         3 => True,    --  Ancestor_Part (Node3)
9928         4 => False,   --  unused
9929         5 => False),  --  Etype (Node5-Sem)
9930
9931      N_Null =>
9932        (1 => False,   --  unused
9933         2 => False,   --  unused
9934         3 => False,   --  unused
9935         4 => False,   --  unused
9936         5 => False),  --  Etype (Node5-Sem)
9937
9938      N_And_Then =>
9939        (1 => False,   --  Actions (List1-Sem)
9940         2 => True,    --  Left_Opnd (Node2)
9941         3 => True,    --  Right_Opnd (Node3)
9942         4 => False,   --  unused
9943         5 => False),  --  Etype (Node5-Sem)
9944
9945      N_Or_Else =>
9946        (1 => False,   --  Actions (List1-Sem)
9947         2 => True,    --  Left_Opnd (Node2)
9948         3 => True,    --  Right_Opnd (Node3)
9949         4 => False,   --  unused
9950         5 => False),  --  Etype (Node5-Sem)
9951
9952      N_In =>
9953        (1 => False,   --  unused
9954         2 => True,    --  Left_Opnd (Node2)
9955         3 => True,    --  Right_Opnd (Node3)
9956         4 => True,    --  Alternatives (List4)
9957         5 => False),  --  Etype (Node5-Sem)
9958
9959      N_Not_In =>
9960        (1 => False,   --  unused
9961         2 => True,    --  Left_Opnd (Node2)
9962         3 => True,    --  Right_Opnd (Node3)
9963         4 => True,    --  Alternatives (List4)
9964         5 => False),  --  Etype (Node5-Sem)
9965
9966      N_Op_And =>
9967        (1 => True,    --  Chars (Name1)
9968         2 => True,    --  Left_Opnd (Node2)
9969         3 => True,    --  Right_Opnd (Node3)
9970         4 => False,   --  Entity (Node4-Sem)
9971         5 => False),  --  Etype (Node5-Sem)
9972
9973      N_Op_Or =>
9974        (1 => True,    --  Chars (Name1)
9975         2 => True,    --  Left_Opnd (Node2)
9976         3 => True,    --  Right_Opnd (Node3)
9977         4 => False,   --  Entity (Node4-Sem)
9978         5 => False),  --  Etype (Node5-Sem)
9979
9980      N_Op_Xor =>
9981        (1 => True,    --  Chars (Name1)
9982         2 => True,    --  Left_Opnd (Node2)
9983         3 => True,    --  Right_Opnd (Node3)
9984         4 => False,   --  Entity (Node4-Sem)
9985         5 => False),  --  Etype (Node5-Sem)
9986
9987      N_Op_Eq =>
9988        (1 => True,    --  Chars (Name1)
9989         2 => True,    --  Left_Opnd (Node2)
9990         3 => True,    --  Right_Opnd (Node3)
9991         4 => False,   --  Entity (Node4-Sem)
9992         5 => False),  --  Etype (Node5-Sem)
9993
9994      N_Op_Ne =>
9995        (1 => True,    --  Chars (Name1)
9996         2 => True,    --  Left_Opnd (Node2)
9997         3 => True,    --  Right_Opnd (Node3)
9998         4 => False,   --  Entity (Node4-Sem)
9999         5 => False),  --  Etype (Node5-Sem)
10000
10001      N_Op_Lt =>
10002        (1 => True,    --  Chars (Name1)
10003         2 => True,    --  Left_Opnd (Node2)
10004         3 => True,    --  Right_Opnd (Node3)
10005         4 => False,   --  Entity (Node4-Sem)
10006         5 => False),  --  Etype (Node5-Sem)
10007
10008      N_Op_Le =>
10009        (1 => True,    --  Chars (Name1)
10010         2 => True,    --  Left_Opnd (Node2)
10011         3 => True,    --  Right_Opnd (Node3)
10012         4 => False,   --  Entity (Node4-Sem)
10013         5 => False),  --  Etype (Node5-Sem)
10014
10015      N_Op_Gt =>
10016        (1 => True,    --  Chars (Name1)
10017         2 => True,    --  Left_Opnd (Node2)
10018         3 => True,    --  Right_Opnd (Node3)
10019         4 => False,   --  Entity (Node4-Sem)
10020         5 => False),  --  Etype (Node5-Sem)
10021
10022      N_Op_Ge =>
10023        (1 => True,    --  Chars (Name1)
10024         2 => True,    --  Left_Opnd (Node2)
10025         3 => True,    --  Right_Opnd (Node3)
10026         4 => False,   --  Entity (Node4-Sem)
10027         5 => False),  --  Etype (Node5-Sem)
10028
10029      N_Op_Add =>
10030        (1 => True,    --  Chars (Name1)
10031         2 => True,    --  Left_Opnd (Node2)
10032         3 => True,    --  Right_Opnd (Node3)
10033         4 => False,   --  Entity (Node4-Sem)
10034         5 => False),  --  Etype (Node5-Sem)
10035
10036      N_Op_Subtract =>
10037        (1 => True,    --  Chars (Name1)
10038         2 => True,    --  Left_Opnd (Node2)
10039         3 => True,    --  Right_Opnd (Node3)
10040         4 => False,   --  Entity (Node4-Sem)
10041         5 => False),  --  Etype (Node5-Sem)
10042
10043      N_Op_Concat =>
10044        (1 => True,    --  Chars (Name1)
10045         2 => True,    --  Left_Opnd (Node2)
10046         3 => True,    --  Right_Opnd (Node3)
10047         4 => False,   --  Entity (Node4-Sem)
10048         5 => False),  --  Etype (Node5-Sem)
10049
10050      N_Op_Multiply =>
10051        (1 => True,    --  Chars (Name1)
10052         2 => True,    --  Left_Opnd (Node2)
10053         3 => True,    --  Right_Opnd (Node3)
10054         4 => False,   --  Entity (Node4-Sem)
10055         5 => False),  --  Etype (Node5-Sem)
10056
10057      N_Op_Divide =>
10058        (1 => True,    --  Chars (Name1)
10059         2 => True,    --  Left_Opnd (Node2)
10060         3 => True,    --  Right_Opnd (Node3)
10061         4 => False,   --  Entity (Node4-Sem)
10062         5 => False),  --  Etype (Node5-Sem)
10063
10064      N_Op_Mod =>
10065        (1 => True,    --  Chars (Name1)
10066         2 => True,    --  Left_Opnd (Node2)
10067         3 => True,    --  Right_Opnd (Node3)
10068         4 => False,   --  Entity (Node4-Sem)
10069         5 => False),  --  Etype (Node5-Sem)
10070
10071      N_Op_Rem =>
10072        (1 => True,    --  Chars (Name1)
10073         2 => True,    --  Left_Opnd (Node2)
10074         3 => True,    --  Right_Opnd (Node3)
10075         4 => False,   --  Entity (Node4-Sem)
10076         5 => False),  --  Etype (Node5-Sem)
10077
10078      N_Op_Expon =>
10079        (1 => True,    --  Chars (Name1)
10080         2 => True,    --  Left_Opnd (Node2)
10081         3 => True,    --  Right_Opnd (Node3)
10082         4 => False,   --  Entity (Node4-Sem)
10083         5 => False),  --  Etype (Node5-Sem)
10084
10085      N_Op_Plus =>
10086        (1 => True,    --  Chars (Name1)
10087         2 => False,   --  unused
10088         3 => True,    --  Right_Opnd (Node3)
10089         4 => False,   --  Entity (Node4-Sem)
10090         5 => False),  --  Etype (Node5-Sem)
10091
10092      N_Op_Minus =>
10093        (1 => True,    --  Chars (Name1)
10094         2 => False,   --  unused
10095         3 => True,    --  Right_Opnd (Node3)
10096         4 => False,   --  Entity (Node4-Sem)
10097         5 => False),  --  Etype (Node5-Sem)
10098
10099      N_Op_Abs =>
10100        (1 => True,    --  Chars (Name1)
10101         2 => False,   --  unused
10102         3 => True,    --  Right_Opnd (Node3)
10103         4 => False,   --  Entity (Node4-Sem)
10104         5 => False),  --  Etype (Node5-Sem)
10105
10106      N_Op_Not =>
10107        (1 => True,    --  Chars (Name1)
10108         2 => False,   --  unused
10109         3 => True,    --  Right_Opnd (Node3)
10110         4 => False,   --  Entity (Node4-Sem)
10111         5 => False),  --  Etype (Node5-Sem)
10112
10113      N_Type_Conversion =>
10114        (1 => False,   --  unused
10115         2 => False,   --  unused
10116         3 => True,    --  Expression (Node3)
10117         4 => True,    --  Subtype_Mark (Node4)
10118         5 => False),  --  Etype (Node5-Sem)
10119
10120      N_Qualified_Expression =>
10121        (1 => False,   --  unused
10122         2 => False,   --  unused
10123         3 => True,    --  Expression (Node3)
10124         4 => True,    --  Subtype_Mark (Node4)
10125         5 => False),  --  Etype (Node5-Sem)
10126
10127      N_Allocator =>
10128        (1 => False,   --  Storage_Pool (Node1-Sem)
10129         2 => False,   --  Procedure_To_Call (Node2-Sem)
10130         3 => True,    --  Expression (Node3)
10131         4 => False,   --  Coextensions (Elist4-Sem)
10132         5 => False),  --  Etype (Node5-Sem)
10133
10134      N_Null_Statement =>
10135        (1 => False,   --  unused
10136         2 => False,   --  unused
10137         3 => False,   --  unused
10138         4 => False,   --  unused
10139         5 => False),  --  unused
10140
10141      N_Label =>
10142        (1 => True,    --  Identifier (Node1)
10143         2 => False,   --  unused
10144         3 => False,   --  unused
10145         4 => False,   --  unused
10146         5 => False),  --  unused
10147
10148      N_Assignment_Statement =>
10149        (1 => False,   --  unused
10150         2 => True,    --  Name (Node2)
10151         3 => True,    --  Expression (Node3)
10152         4 => False,   --  unused
10153         5 => False),  --  unused
10154
10155      N_If_Statement =>
10156        (1 => True,    --  Condition (Node1)
10157         2 => True,    --  Then_Statements (List2)
10158         3 => True,    --  Elsif_Parts (List3)
10159         4 => True,    --  Else_Statements (List4)
10160         5 => True),   --  End_Span (Uint5)
10161
10162      N_Elsif_Part =>
10163        (1 => True,    --  Condition (Node1)
10164         2 => True,    --  Then_Statements (List2)
10165         3 => False,   --  Condition_Actions (List3-Sem)
10166         4 => False,   --  unused
10167         5 => False),  --  unused
10168
10169      N_Case_Statement =>
10170        (1 => False,   --  unused
10171         2 => False,   --  unused
10172         3 => True,    --  Expression (Node3)
10173         4 => True,    --  Alternatives (List4)
10174         5 => True),   --  End_Span (Uint5)
10175
10176      N_Case_Statement_Alternative =>
10177        (1 => False,   --  unused
10178         2 => False,   --  unused
10179         3 => True,    --  Statements (List3)
10180         4 => True,    --  Discrete_Choices (List4)
10181         5 => False),  --  unused
10182
10183      N_Loop_Statement =>
10184        (1 => True,    --  Identifier (Node1)
10185         2 => True,    --  Iteration_Scheme (Node2)
10186         3 => True,    --  Statements (List3)
10187         4 => True,    --  End_Label (Node4)
10188         5 => False),  --  unused
10189
10190      N_Iteration_Scheme =>
10191        (1 => True,    --  Condition (Node1)
10192         2 => False,   --  unused
10193         3 => False,   --  Condition_Actions (List3-Sem)
10194         4 => True,    --  Loop_Parameter_Specification (Node4)
10195         5 => False),  --  unused
10196
10197      N_Loop_Parameter_Specification =>
10198        (1 => True,    --  Defining_Identifier (Node1)
10199         2 => False,   --  unused
10200         3 => False,   --  unused
10201         4 => True,    --  Discrete_Subtype_Definition (Node4)
10202         5 => False),  --  unused
10203
10204      N_Block_Statement =>
10205        (1 => True,    --  Identifier (Node1)
10206         2 => True,    --  Declarations (List2)
10207         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10208         4 => True,    --  Handled_Statement_Sequence (Node4)
10209         5 => False),  --  unused
10210
10211      N_Exit_Statement =>
10212        (1 => True,    --  Condition (Node1)
10213         2 => True,    --  Name (Node2)
10214         3 => False,   --  unused
10215         4 => False,   --  unused
10216         5 => False),  --  unused
10217
10218      N_Goto_Statement =>
10219        (1 => False,   --  unused
10220         2 => True,    --  Name (Node2)
10221         3 => False,   --  unused
10222         4 => False,   --  unused
10223         5 => False),  --  unused
10224
10225      N_Subprogram_Declaration =>
10226        (1 => True,    --  Specification (Node1)
10227         2 => False,   --  unused
10228         3 => False,   --  Body_To_Inline (Node3-Sem)
10229         4 => False,   --  Parent_Spec (Node4-Sem)
10230         5 => False),  --  Corresponding_Body (Node5-Sem)
10231
10232      N_Abstract_Subprogram_Declaration =>
10233        (1 => True,    --  Specification (Node1)
10234         2 => False,   --  unused
10235         3 => False,   --  unused
10236         4 => False,   --  unused
10237         5 => False),  --  unused
10238
10239      N_Function_Specification =>
10240        (1 => True,    --  Defining_Unit_Name (Node1)
10241         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10242         3 => True,    --  Parameter_Specifications (List3)
10243         4 => True,    --  Result_Definition (Node4)
10244         5 => False),  --  Generic_Parent (Node5-Sem)
10245
10246      N_Procedure_Specification =>
10247        (1 => True,    --  Defining_Unit_Name (Node1)
10248         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10249         3 => True,    --  Parameter_Specifications (List3)
10250         4 => False,   --  unused
10251         5 => False),  --  Generic_Parent (Node5-Sem)
10252
10253      N_Designator =>
10254        (1 => True,    --  Identifier (Node1)
10255         2 => True,    --  Name (Node2)
10256         3 => False,   --  unused
10257         4 => False,   --  unused
10258         5 => False),  --  unused
10259
10260      N_Defining_Program_Unit_Name =>
10261        (1 => True,    --  Defining_Identifier (Node1)
10262         2 => True,    --  Name (Node2)
10263         3 => False,   --  unused
10264         4 => False,   --  unused
10265         5 => False),  --  unused
10266
10267      N_Operator_Symbol =>
10268        (1 => True,    --  Chars (Name1)
10269         2 => False,   --  unused
10270         3 => True,    --  Strval (Str3)
10271         4 => False,   --  Entity (Node4-Sem)
10272         5 => False),  --  Etype (Node5-Sem)
10273
10274      N_Defining_Operator_Symbol =>
10275        (1 => True,    --  Chars (Name1)
10276         2 => False,   --  Next_Entity (Node2-Sem)
10277         3 => False,   --  Scope (Node3-Sem)
10278         4 => False,   --  unused
10279         5 => False),  --  Etype (Node5-Sem)
10280
10281      N_Parameter_Specification =>
10282        (1 => True,    --  Defining_Identifier (Node1)
10283         2 => True,    --  Parameter_Type (Node2)
10284         3 => True,    --  Expression (Node3)
10285         4 => False,   --  unused
10286         5 => False),  --  Default_Expression (Node5-Sem)
10287
10288      N_Subprogram_Body =>
10289        (1 => True,    --  Specification (Node1)
10290         2 => True,    --  Declarations (List2)
10291         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10292         4 => True,    --  Handled_Statement_Sequence (Node4)
10293         5 => False),  --  Corresponding_Spec (Node5-Sem)
10294
10295      N_Procedure_Call_Statement =>
10296        (1 => False,   --  Controlling_Argument (Node1-Sem)
10297         2 => True,    --  Name (Node2)
10298         3 => True,    --  Parameter_Associations (List3)
10299         4 => False,   --  First_Named_Actual (Node4-Sem)
10300         5 => False),  --  Etype (Node5-Sem)
10301
10302      N_Function_Call =>
10303        (1 => False,   --  Controlling_Argument (Node1-Sem)
10304         2 => True,    --  Name (Node2)
10305         3 => True,    --  Parameter_Associations (List3)
10306         4 => False,   --  First_Named_Actual (Node4-Sem)
10307         5 => False),  --  Etype (Node5-Sem)
10308
10309      N_Parameter_Association =>
10310        (1 => False,   --  unused
10311         2 => True,    --  Selector_Name (Node2)
10312         3 => True,    --  Explicit_Actual_Parameter (Node3)
10313         4 => False,   --  Next_Named_Actual (Node4-Sem)
10314         5 => False),  --  unused
10315
10316      N_Return_Statement =>
10317        (1 => False,   --  Storage_Pool (Node1-Sem)
10318         2 => False,   --  Procedure_To_Call (Node2-Sem)
10319         3 => True,    --  Expression (Node3)
10320         4 => False,   --  unused
10321         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10322
10323      N_Extended_Return_Statement =>
10324        (1 => False,   --  Storage_Pool (Node1-Sem)
10325         2 => False,   --  Procedure_To_Call (Node2-Sem)
10326         3 => True,    --  Return_Object_Declarations (List3)
10327         4 => True,    --  Handled_Statement_Sequence (Node4)
10328         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10329
10330      N_Package_Declaration =>
10331        (1 => True,    --  Specification (Node1)
10332         2 => False,   --  unused
10333         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10334         4 => False,   --  Parent_Spec (Node4-Sem)
10335         5 => False),  --  Corresponding_Body (Node5-Sem)
10336
10337      N_Package_Specification =>
10338        (1 => True,    --  Defining_Unit_Name (Node1)
10339         2 => True,    --  Visible_Declarations (List2)
10340         3 => True,    --  Private_Declarations (List3)
10341         4 => True,    --  End_Label (Node4)
10342         5 => False),  --  Generic_Parent (Node5-Sem)
10343
10344      N_Package_Body =>
10345        (1 => True,    --  Defining_Unit_Name (Node1)
10346         2 => True,    --  Declarations (List2)
10347         3 => False,   --  unused
10348         4 => True,    --  Handled_Statement_Sequence (Node4)
10349         5 => False),  --  Corresponding_Spec (Node5-Sem)
10350
10351      N_Private_Type_Declaration =>
10352        (1 => True,    --  Defining_Identifier (Node1)
10353         2 => False,   --  unused
10354         3 => False,   --  unused
10355         4 => True,    --  Discriminant_Specifications (List4)
10356         5 => False),  --  unused
10357
10358      N_Private_Extension_Declaration =>
10359        (1 => True,    --  Defining_Identifier (Node1)
10360         2 => True,    --  Interface_List (List2)
10361         3 => False,   --  unused
10362         4 => True,    --  Discriminant_Specifications (List4)
10363         5 => True),   --  Subtype_Indication (Node5)
10364
10365      N_Use_Package_Clause =>
10366        (1 => False,   --  unused
10367         2 => True,    --  Names (List2)
10368         3 => False,   --  Next_Use_Clause (Node3-Sem)
10369         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10370         5 => False),  --  unused
10371
10372      N_Use_Type_Clause =>
10373        (1 => False,   --  unused
10374         2 => True,    --  Subtype_Marks (List2)
10375         3 => False,   --  Next_Use_Clause (Node3-Sem)
10376         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10377         5 => False),  --  unused
10378
10379      N_Object_Renaming_Declaration =>
10380        (1 => True,    --  Defining_Identifier (Node1)
10381         2 => True,    --  Name (Node2)
10382         3 => True,    --  Access_Definition (Node3)
10383         4 => True,    --  Subtype_Mark (Node4)
10384         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10385
10386      N_Exception_Renaming_Declaration =>
10387        (1 => True,    --  Defining_Identifier (Node1)
10388         2 => True,    --  Name (Node2)
10389         3 => False,   --  unused
10390         4 => False,   --  unused
10391         5 => False),  --  unused
10392
10393      N_Package_Renaming_Declaration =>
10394        (1 => True,    --  Defining_Unit_Name (Node1)
10395         2 => True,    --  Name (Node2)
10396         3 => False,   --  unused
10397         4 => False,   --  Parent_Spec (Node4-Sem)
10398         5 => False),  --  unused
10399
10400      N_Subprogram_Renaming_Declaration =>
10401        (1 => True,    --  Specification (Node1)
10402         2 => True,    --  Name (Node2)
10403         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
10404         4 => False,   --  Parent_Spec (Node4-Sem)
10405         5 => False),  --  Corresponding_Spec (Node5-Sem)
10406
10407      N_Generic_Package_Renaming_Declaration =>
10408        (1 => True,    --  Defining_Unit_Name (Node1)
10409         2 => True,    --  Name (Node2)
10410         3 => False,   --  unused
10411         4 => False,   --  Parent_Spec (Node4-Sem)
10412         5 => False),  --  unused
10413
10414      N_Generic_Procedure_Renaming_Declaration =>
10415        (1 => True,    --  Defining_Unit_Name (Node1)
10416         2 => True,    --  Name (Node2)
10417         3 => False,   --  unused
10418         4 => False,   --  Parent_Spec (Node4-Sem)
10419         5 => False),  --  unused
10420
10421      N_Generic_Function_Renaming_Declaration =>
10422        (1 => True,    --  Defining_Unit_Name (Node1)
10423         2 => True,    --  Name (Node2)
10424         3 => False,   --  unused
10425         4 => False,   --  Parent_Spec (Node4-Sem)
10426         5 => False),  --  unused
10427
10428      N_Task_Type_Declaration =>
10429        (1 => True,    --  Defining_Identifier (Node1)
10430         2 => True,    --  Interface_List (List2)
10431         3 => True,    --  Task_Definition (Node3)
10432         4 => True,    --  Discriminant_Specifications (List4)
10433         5 => False),  --  Corresponding_Body (Node5-Sem)
10434
10435      N_Single_Task_Declaration =>
10436        (1 => True,    --  Defining_Identifier (Node1)
10437         2 => True,    --  Interface_List (List2)
10438         3 => True,    --  Task_Definition (Node3)
10439         4 => False,   --  unused
10440         5 => False),  --  unused
10441
10442      N_Task_Definition =>
10443        (1 => False,   --  unused
10444         2 => True,    --  Visible_Declarations (List2)
10445         3 => True,    --  Private_Declarations (List3)
10446         4 => True,    --  End_Label (Node4)
10447         5 => False),  --  unused
10448
10449      N_Task_Body =>
10450        (1 => True,    --  Defining_Identifier (Node1)
10451         2 => True,    --  Declarations (List2)
10452         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10453         4 => True,    --  Handled_Statement_Sequence (Node4)
10454         5 => False),  --  Corresponding_Spec (Node5-Sem)
10455
10456      N_Protected_Type_Declaration =>
10457        (1 => True,    --  Defining_Identifier (Node1)
10458         2 => True,    --  Interface_List (List2)
10459         3 => True,    --  Protected_Definition (Node3)
10460         4 => True,    --  Discriminant_Specifications (List4)
10461         5 => False),  --  Corresponding_Body (Node5-Sem)
10462
10463      N_Single_Protected_Declaration =>
10464        (1 => True,    --  Defining_Identifier (Node1)
10465         2 => True,    --  Interface_List (List2)
10466         3 => True,    --  Protected_Definition (Node3)
10467         4 => False,   --  unused
10468         5 => False),  --  unused
10469
10470      N_Protected_Definition =>
10471        (1 => False,   --  unused
10472         2 => True,    --  Visible_Declarations (List2)
10473         3 => True,    --  Private_Declarations (List3)
10474         4 => True,    --  End_Label (Node4)
10475         5 => False),  --  unused
10476
10477      N_Protected_Body =>
10478        (1 => True,    --  Defining_Identifier (Node1)
10479         2 => True,    --  Declarations (List2)
10480         3 => False,   --  unused
10481         4 => True,    --  End_Label (Node4)
10482         5 => False),  --  Corresponding_Spec (Node5-Sem)
10483
10484      N_Entry_Declaration =>
10485        (1 => True,    --  Defining_Identifier (Node1)
10486         2 => False,   --  unused
10487         3 => True,    --  Parameter_Specifications (List3)
10488         4 => True,    --  Discrete_Subtype_Definition (Node4)
10489         5 => False),  --  Corresponding_Body (Node5-Sem)
10490
10491      N_Accept_Statement =>
10492        (1 => True,    --  Entry_Direct_Name (Node1)
10493         2 => True,    --  Declarations (List2)
10494         3 => True,    --  Parameter_Specifications (List3)
10495         4 => True,    --  Handled_Statement_Sequence (Node4)
10496         5 => True),   --  Entry_Index (Node5)
10497
10498      N_Entry_Body =>
10499        (1 => True,    --  Defining_Identifier (Node1)
10500         2 => True,    --  Declarations (List2)
10501         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10502         4 => True,    --  Handled_Statement_Sequence (Node4)
10503         5 => True),   --  Entry_Body_Formal_Part (Node5)
10504
10505      N_Entry_Body_Formal_Part =>
10506        (1 => True,    --  Condition (Node1)
10507         2 => False,   --  unused
10508         3 => True,    --  Parameter_Specifications (List3)
10509         4 => True,    --  Entry_Index_Specification (Node4)
10510         5 => False),  --  unused
10511
10512      N_Entry_Index_Specification =>
10513        (1 => True,    --  Defining_Identifier (Node1)
10514         2 => False,   --  unused
10515         3 => False,   --  unused
10516         4 => True,    --  Discrete_Subtype_Definition (Node4)
10517         5 => False),  --  unused
10518
10519      N_Entry_Call_Statement =>
10520        (1 => False,   --  unused
10521         2 => True,    --  Name (Node2)
10522         3 => True,    --  Parameter_Associations (List3)
10523         4 => False,   --  First_Named_Actual (Node4-Sem)
10524         5 => False),  --  unused
10525
10526      N_Requeue_Statement =>
10527        (1 => False,   --  unused
10528         2 => True,    --  Name (Node2)
10529         3 => False,   --  unused
10530         4 => False,   --  unused
10531         5 => False),  --  unused
10532
10533      N_Delay_Until_Statement =>
10534        (1 => False,   --  unused
10535         2 => False,   --  unused
10536         3 => True,    --  Expression (Node3)
10537         4 => False,   --  unused
10538         5 => False),  --  unused
10539
10540      N_Delay_Relative_Statement =>
10541        (1 => False,   --  unused
10542         2 => False,   --  unused
10543         3 => True,    --  Expression (Node3)
10544         4 => False,   --  unused
10545         5 => False),  --  unused
10546
10547      N_Selective_Accept =>
10548        (1 => True,    --  Select_Alternatives (List1)
10549         2 => False,   --  unused
10550         3 => False,   --  unused
10551         4 => True,    --  Else_Statements (List4)
10552         5 => False),  --  unused
10553
10554      N_Accept_Alternative =>
10555        (1 => True,    --  Condition (Node1)
10556         2 => True,    --  Accept_Statement (Node2)
10557         3 => True,    --  Statements (List3)
10558         4 => True,    --  Pragmas_Before (List4)
10559         5 => False),  --  Accept_Handler_Records (List5-Sem)
10560
10561      N_Delay_Alternative =>
10562        (1 => True,    --  Condition (Node1)
10563         2 => True,    --  Delay_Statement (Node2)
10564         3 => True,    --  Statements (List3)
10565         4 => True,    --  Pragmas_Before (List4)
10566         5 => False),  --  unused
10567
10568      N_Terminate_Alternative =>
10569        (1 => True,    --  Condition (Node1)
10570         2 => False,   --  unused
10571         3 => False,   --  unused
10572         4 => True,    --  Pragmas_Before (List4)
10573         5 => True),   --  Pragmas_After (List5)
10574
10575      N_Timed_Entry_Call =>
10576        (1 => True,    --  Entry_Call_Alternative (Node1)
10577         2 => False,   --  unused
10578         3 => False,   --  unused
10579         4 => True,    --  Delay_Alternative (Node4)
10580         5 => False),  --  unused
10581
10582      N_Entry_Call_Alternative =>
10583        (1 => True,    --  Entry_Call_Statement (Node1)
10584         2 => False,   --  unused
10585         3 => True,    --  Statements (List3)
10586         4 => True,    --  Pragmas_Before (List4)
10587         5 => False),  --  unused
10588
10589      N_Conditional_Entry_Call =>
10590        (1 => True,    --  Entry_Call_Alternative (Node1)
10591         2 => False,   --  unused
10592         3 => False,   --  unused
10593         4 => True,    --  Else_Statements (List4)
10594         5 => False),  --  unused
10595
10596      N_Asynchronous_Select =>
10597        (1 => True,    --  Triggering_Alternative (Node1)
10598         2 => True,    --  Abortable_Part (Node2)
10599         3 => False,   --  unused
10600         4 => False,   --  unused
10601         5 => False),  --  unused
10602
10603      N_Triggering_Alternative =>
10604        (1 => True,    --  Triggering_Statement (Node1)
10605         2 => False,   --  unused
10606         3 => True,    --  Statements (List3)
10607         4 => True,    --  Pragmas_Before (List4)
10608         5 => False),  --  unused
10609
10610      N_Abortable_Part =>
10611        (1 => False,   --  unused
10612         2 => False,   --  unused
10613         3 => True,    --  Statements (List3)
10614         4 => False,   --  unused
10615         5 => False),  --  unused
10616
10617      N_Abort_Statement =>
10618        (1 => False,   --  unused
10619         2 => True,    --  Names (List2)
10620         3 => False,   --  unused
10621         4 => False,   --  unused
10622         5 => False),  --  unused
10623
10624      N_Compilation_Unit =>
10625        (1 => True,    --  Context_Items (List1)
10626         2 => True,    --  Unit (Node2)
10627         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
10628         4 => False,   --  Library_Unit (Node4-Sem)
10629         5 => True),   --  Aux_Decls_Node (Node5)
10630
10631      N_Compilation_Unit_Aux =>
10632        (1 => True,    --  Actions (List1)
10633         2 => True,    --  Declarations (List2)
10634         3 => False,   --  unused
10635         4 => True,    --  Config_Pragmas (List4)
10636         5 => True),   --  Pragmas_After (List5)
10637
10638      N_With_Clause =>
10639        (1 => False,   --  unused
10640         2 => True,    --  Name (Node2)
10641         3 => False,   --  unused
10642         4 => False,   --  Library_Unit (Node4-Sem)
10643         5 => False),  --  Corresponding_Spec (Node5-Sem)
10644
10645      N_Subprogram_Body_Stub =>
10646        (1 => True,    --  Specification (Node1)
10647         2 => False,   --  unused
10648         3 => False,   --  unused
10649         4 => False,   --  Library_Unit (Node4-Sem)
10650         5 => False),  --  Corresponding_Body (Node5-Sem)
10651
10652      N_Package_Body_Stub =>
10653        (1 => True,    --  Defining_Identifier (Node1)
10654         2 => False,   --  unused
10655         3 => False,   --  unused
10656         4 => False,   --  Library_Unit (Node4-Sem)
10657         5 => False),  --  Corresponding_Body (Node5-Sem)
10658
10659      N_Task_Body_Stub =>
10660        (1 => True,    --  Defining_Identifier (Node1)
10661         2 => False,   --  unused
10662         3 => False,   --  unused
10663         4 => False,   --  Library_Unit (Node4-Sem)
10664         5 => False),  --  Corresponding_Body (Node5-Sem)
10665
10666      N_Protected_Body_Stub =>
10667        (1 => True,    --  Defining_Identifier (Node1)
10668         2 => False,   --  unused
10669         3 => False,   --  unused
10670         4 => False,   --  Library_Unit (Node4-Sem)
10671         5 => False),  --  Corresponding_Body (Node5-Sem)
10672
10673      N_Subunit =>
10674        (1 => True,    --  Proper_Body (Node1)
10675         2 => True,    --  Name (Node2)
10676         3 => False,   --  Corresponding_Stub (Node3-Sem)
10677         4 => False,   --  unused
10678         5 => False),  --  unused
10679
10680      N_Exception_Declaration =>
10681        (1 => True,    --  Defining_Identifier (Node1)
10682         2 => False,   --  unused
10683         3 => False,   --  Expression (Node3-Sem)
10684         4 => False,   --  unused
10685         5 => False),  --  unused
10686
10687      N_Handled_Sequence_Of_Statements =>
10688        (1 => True,    --  At_End_Proc (Node1)
10689         2 => False,   --  First_Real_Statement (Node2-Sem)
10690         3 => True,    --  Statements (List3)
10691         4 => True,    --  End_Label (Node4)
10692         5 => True),   --  Exception_Handlers (List5)
10693
10694      N_Exception_Handler =>
10695        (1 => False,   --  Local_Raise_Statements (Elist1)
10696         2 => True,    --  Choice_Parameter (Node2)
10697         3 => True,    --  Statements (List3)
10698         4 => True,    --  Exception_Choices (List4)
10699         5 => False),  --  Exception_Label (Node5)
10700
10701      N_Raise_Statement =>
10702        (1 => False,   --  unused
10703         2 => True,    --  Name (Node2)
10704         3 => True,    --  Expression (Node3)
10705         4 => False,   --  unused
10706         5 => False),  --  unused
10707
10708      N_Generic_Subprogram_Declaration =>
10709        (1 => True,    --  Specification (Node1)
10710         2 => True,    --  Generic_Formal_Declarations (List2)
10711         3 => False,   --  unused
10712         4 => False,   --  Parent_Spec (Node4-Sem)
10713         5 => False),  --  Corresponding_Body (Node5-Sem)
10714
10715      N_Generic_Package_Declaration =>
10716        (1 => True,    --  Specification (Node1)
10717         2 => True,    --  Generic_Formal_Declarations (List2)
10718         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10719         4 => False,   --  Parent_Spec (Node4-Sem)
10720         5 => False),  --  Corresponding_Body (Node5-Sem)
10721
10722      N_Package_Instantiation =>
10723        (1 => True,    --  Defining_Unit_Name (Node1)
10724         2 => True,    --  Name (Node2)
10725         3 => True,    --  Generic_Associations (List3)
10726         4 => False,   --  Parent_Spec (Node4-Sem)
10727         5 => False),  --  Instance_Spec (Node5-Sem)
10728
10729      N_Procedure_Instantiation =>
10730        (1 => True,    --  Defining_Unit_Name (Node1)
10731         2 => True,    --  Name (Node2)
10732         3 => True,    --  Generic_Associations (List3)
10733         4 => False,   --  Parent_Spec (Node4-Sem)
10734         5 => False),  --  Instance_Spec (Node5-Sem)
10735
10736      N_Function_Instantiation =>
10737        (1 => True,    --  Defining_Unit_Name (Node1)
10738         2 => True,    --  Name (Node2)
10739         3 => True,    --  Generic_Associations (List3)
10740         4 => False,   --  Parent_Spec (Node4-Sem)
10741         5 => False),  --  Instance_Spec (Node5-Sem)
10742
10743      N_Generic_Association =>
10744        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
10745         2 => True,    --  Selector_Name (Node2)
10746         3 => False,   --  unused
10747         4 => False,   --  unused
10748         5 => False),  --  unused
10749
10750      N_Formal_Object_Declaration =>
10751        (1 => True,    --  Defining_Identifier (Node1)
10752         2 => False,   --  unused
10753         3 => True,    --  Access_Definition (Node3)
10754         4 => True,    --  Subtype_Mark (Node4)
10755         5 => True),   --  Default_Expression (Node5)
10756
10757      N_Formal_Type_Declaration =>
10758        (1 => True,    --  Defining_Identifier (Node1)
10759         2 => False,   --  unused
10760         3 => True,    --  Formal_Type_Definition (Node3)
10761         4 => True,    --  Discriminant_Specifications (List4)
10762         5 => False),  --  unused
10763
10764      N_Formal_Private_Type_Definition =>
10765        (1 => False,   --  unused
10766         2 => False,   --  unused
10767         3 => False,   --  unused
10768         4 => False,   --  unused
10769         5 => False),  --  unused
10770
10771      N_Formal_Derived_Type_Definition =>
10772        (1 => False,   --  unused
10773         2 => True,    --  Interface_List (List2)
10774         3 => False,   --  unused
10775         4 => True,    --  Subtype_Mark (Node4)
10776         5 => False),  --  unused
10777
10778      N_Formal_Discrete_Type_Definition =>
10779        (1 => False,   --  unused
10780         2 => False,   --  unused
10781         3 => False,   --  unused
10782         4 => False,   --  unused
10783         5 => False),  --  unused
10784
10785      N_Formal_Signed_Integer_Type_Definition =>
10786        (1 => False,   --  unused
10787         2 => False,   --  unused
10788         3 => False,   --  unused
10789         4 => False,   --  unused
10790         5 => False),  --  unused
10791
10792      N_Formal_Modular_Type_Definition =>
10793        (1 => False,   --  unused
10794         2 => False,   --  unused
10795         3 => False,   --  unused
10796         4 => False,   --  unused
10797         5 => False),  --  unused
10798
10799      N_Formal_Floating_Point_Definition =>
10800        (1 => False,   --  unused
10801         2 => False,   --  unused
10802         3 => False,   --  unused
10803         4 => False,   --  unused
10804         5 => False),  --  unused
10805
10806      N_Formal_Ordinary_Fixed_Point_Definition =>
10807        (1 => False,   --  unused
10808         2 => False,   --  unused
10809         3 => False,   --  unused
10810         4 => False,   --  unused
10811         5 => False),  --  unused
10812
10813      N_Formal_Decimal_Fixed_Point_Definition =>
10814        (1 => False,   --  unused
10815         2 => False,   --  unused
10816         3 => False,   --  unused
10817         4 => False,   --  unused
10818         5 => False),  --  unused
10819
10820      N_Formal_Concrete_Subprogram_Declaration =>
10821        (1 => True,    --  Specification (Node1)
10822         2 => True,    --  Default_Name (Node2)
10823         3 => False,   --  unused
10824         4 => False,   --  unused
10825         5 => False),  --  unused
10826
10827      N_Formal_Abstract_Subprogram_Declaration =>
10828        (1 => True,    --  Specification (Node1)
10829         2 => True,    --  Default_Name (Node2)
10830         3 => False,   --  unused
10831         4 => False,   --  unused
10832         5 => False),  --  unused
10833
10834      N_Formal_Package_Declaration =>
10835        (1 => True,    --  Defining_Identifier (Node1)
10836         2 => True,    --  Name (Node2)
10837         3 => True,    --  Generic_Associations (List3)
10838         4 => False,   --  unused
10839         5 => False),  --  Instance_Spec (Node5-Sem)
10840
10841      N_Attribute_Definition_Clause =>
10842        (1 => True,    --  Chars (Name1)
10843         2 => True,    --  Name (Node2)
10844         3 => True,    --  Expression (Node3)
10845         4 => False,   --  unused
10846         5 => False),  --  Next_Rep_Item (Node5-Sem)
10847
10848      N_Enumeration_Representation_Clause =>
10849        (1 => True,    --  Identifier (Node1)
10850         2 => False,   --  unused
10851         3 => True,    --  Array_Aggregate (Node3)
10852         4 => False,   --  unused
10853         5 => False),  --  Next_Rep_Item (Node5-Sem)
10854
10855      N_Record_Representation_Clause =>
10856        (1 => True,    --  Identifier (Node1)
10857         2 => True,    --  Mod_Clause (Node2)
10858         3 => True,    --  Component_Clauses (List3)
10859         4 => False,   --  unused
10860         5 => False),  --  Next_Rep_Item (Node5-Sem)
10861
10862      N_Component_Clause =>
10863        (1 => True,    --  Component_Name (Node1)
10864         2 => True,    --  Position (Node2)
10865         3 => True,    --  First_Bit (Node3)
10866         4 => True,    --  Last_Bit (Node4)
10867         5 => False),  --  unused
10868
10869      N_Code_Statement =>
10870        (1 => False,   --  unused
10871         2 => False,   --  unused
10872         3 => True,    --  Expression (Node3)
10873         4 => False,   --  unused
10874         5 => False),  --  unused
10875
10876      N_Op_Rotate_Left =>
10877        (1 => True,    --  Chars (Name1)
10878         2 => True,    --  Left_Opnd (Node2)
10879         3 => True,    --  Right_Opnd (Node3)
10880         4 => False,   --  Entity (Node4-Sem)
10881         5 => False),  --  Etype (Node5-Sem)
10882
10883      N_Op_Rotate_Right =>
10884        (1 => True,    --  Chars (Name1)
10885         2 => True,    --  Left_Opnd (Node2)
10886         3 => True,    --  Right_Opnd (Node3)
10887         4 => False,   --  Entity (Node4-Sem)
10888         5 => False),  --  Etype (Node5-Sem)
10889
10890      N_Op_Shift_Left =>
10891        (1 => True,    --  Chars (Name1)
10892         2 => True,    --  Left_Opnd (Node2)
10893         3 => True,    --  Right_Opnd (Node3)
10894         4 => False,   --  Entity (Node4-Sem)
10895         5 => False),  --  Etype (Node5-Sem)
10896
10897      N_Op_Shift_Right_Arithmetic =>
10898        (1 => True,    --  Chars (Name1)
10899         2 => True,    --  Left_Opnd (Node2)
10900         3 => True,    --  Right_Opnd (Node3)
10901         4 => False,   --  Entity (Node4-Sem)
10902         5 => False),  --  Etype (Node5-Sem)
10903
10904      N_Op_Shift_Right =>
10905        (1 => True,    --  Chars (Name1)
10906         2 => True,    --  Left_Opnd (Node2)
10907         3 => True,    --  Right_Opnd (Node3)
10908         4 => False,   --  Entity (Node4-Sem)
10909         5 => False),  --  Etype (Node5-Sem)
10910
10911      N_Delta_Constraint =>
10912        (1 => False,   --  unused
10913         2 => False,   --  unused
10914         3 => True,    --  Delta_Expression (Node3)
10915         4 => True,    --  Range_Constraint (Node4)
10916         5 => False),  --  unused
10917
10918      N_At_Clause =>
10919        (1 => True,    --  Identifier (Node1)
10920         2 => False,   --  unused
10921         3 => True,    --  Expression (Node3)
10922         4 => False,   --  unused
10923         5 => False),  --  unused
10924
10925      N_Mod_Clause =>
10926        (1 => False,   --  unused
10927         2 => False,   --  unused
10928         3 => True,    --  Expression (Node3)
10929         4 => True,    --  Pragmas_Before (List4)
10930         5 => False),  --  unused
10931
10932      N_Conditional_Expression =>
10933        (1 => True,    --  Expressions (List1)
10934         2 => False,   --  Then_Actions (List2-Sem)
10935         3 => False,   --  Else_Actions (List3-Sem)
10936         4 => False,   --  unused
10937         5 => False),  --  Etype (Node5-Sem)
10938
10939      N_Expanded_Name =>
10940        (1 => True,    --  Chars (Name1)
10941         2 => True,    --  Selector_Name (Node2)
10942         3 => True,    --  Prefix (Node3)
10943         4 => False,   --  Entity (Node4-Sem)
10944         5 => False),  --  Etype (Node5-Sem)
10945
10946      N_Free_Statement =>
10947        (1 => False,   --  Storage_Pool (Node1-Sem)
10948         2 => False,   --  Procedure_To_Call (Node2-Sem)
10949         3 => True,    --  Expression (Node3)
10950         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10951         5 => False),  --  unused
10952
10953      N_Freeze_Entity =>
10954        (1 => True,    --  Actions (List1)
10955         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
10956         3 => False,   --  TSS_Elist (Elist3-Sem)
10957         4 => False,   --  Entity (Node4-Sem)
10958         5 => False),  --  First_Subtype_Link (Node5-Sem)
10959
10960      N_Implicit_Label_Declaration =>
10961        (1 => True,    --  Defining_Identifier (Node1)
10962         2 => False,   --  Label_Construct (Node2-Sem)
10963         3 => False,   --  unused
10964         4 => False,   --  unused
10965         5 => False),  --  unused
10966
10967      N_Itype_Reference =>
10968        (1 => False,   --  Itype (Node1-Sem)
10969         2 => False,   --  unused
10970         3 => False,   --  unused
10971         4 => False,   --  unused
10972         5 => False),  --  unused
10973
10974      N_Raise_Constraint_Error =>
10975        (1 => True,    --  Condition (Node1)
10976         2 => False,   --  unused
10977         3 => True,    --  Reason (Uint3)
10978         4 => False,   --  unused
10979         5 => False),  --  Etype (Node5-Sem)
10980
10981      N_Raise_Program_Error =>
10982        (1 => True,    --  Condition (Node1)
10983         2 => False,   --  unused
10984         3 => True,    --  Reason (Uint3)
10985         4 => False,   --  unused
10986         5 => False),  --  Etype (Node5-Sem)
10987
10988      N_Raise_Storage_Error =>
10989        (1 => True,    --  Condition (Node1)
10990         2 => False,   --  unused
10991         3 => True,    --  Reason (Uint3)
10992         4 => False,   --  unused
10993         5 => False),  --  Etype (Node5-Sem)
10994
10995      N_Push_Constraint_Error_Label =>
10996        (1 => False,   --  unused
10997         2 => False,   --  unused
10998         3 => False,   --  unused
10999         4 => False,   --  unused
11000         5 => False),  --  unused
11001
11002      N_Push_Program_Error_Label =>
11003        (1 => False,   --  Exception_Label
11004         2 => False,   --  unused
11005         3 => False,   --  unused
11006         4 => False,   --  unused
11007         5 => False),  --  Exception_Label
11008
11009      N_Push_Storage_Error_Label =>
11010        (1 => False,   --  Exception_Label
11011         2 => False,   --  unused
11012         3 => False,   --  unused
11013         4 => False,   --  unused
11014         5 => False),  --  Exception_Label
11015
11016      N_Pop_Constraint_Error_Label =>
11017        (1 => False,   --  unused
11018         2 => False,   --  unused
11019         3 => False,   --  unused
11020         4 => False,   --  unused
11021         5 => False),  --  unused
11022
11023      N_Pop_Program_Error_Label =>
11024        (1 => False,   --  unused
11025         2 => False,   --  unused
11026         3 => False,   --  unused
11027         4 => False,   --  unused
11028         5 => False),  --  unused
11029
11030      N_Pop_Storage_Error_Label =>
11031        (1 => False,   --  unused
11032         2 => False,   --  unused
11033         3 => False,   --  unused
11034         4 => False,   --  unused
11035         5 => False),  --  unused
11036
11037      N_Reference =>
11038        (1 => False,   --  unused
11039         2 => False,   --  unused
11040         3 => True,    --  Prefix (Node3)
11041         4 => False,   --  unused
11042         5 => False),  --  Etype (Node5-Sem)
11043
11044      N_Subprogram_Info =>
11045        (1 => True,    --  Identifier (Node1)
11046         2 => False,   --  unused
11047         3 => False,   --  unused
11048         4 => False,   --  unused
11049         5 => False),  --  Etype (Node5-Sem)
11050
11051      N_Unchecked_Expression =>
11052        (1 => False,   --  unused
11053         2 => False,   --  unused
11054         3 => True,    --  Expression (Node3)
11055         4 => False,   --  unused
11056         5 => False),  --  Etype (Node5-Sem)
11057
11058      N_Unchecked_Type_Conversion =>
11059        (1 => False,   --  unused
11060         2 => False,   --  unused
11061         3 => True,    --  Expression (Node3)
11062         4 => True,    --  Subtype_Mark (Node4)
11063         5 => False),  --  Etype (Node5-Sem)
11064
11065      N_Validate_Unchecked_Conversion =>
11066        (1 => False,   --  Source_Type (Node1-Sem)
11067         2 => False,   --  Target_Type (Node2-Sem)
11068         3 => False,   --  unused
11069         4 => False,   --  unused
11070         5 => False),  --  unused
11071
11072    --  End of inserted output from makeisf program
11073
11074    --  Entries for SCIL nodes
11075
11076      N_SCIL_Dispatch_Table_Object_Init =>
11077        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11078         2 => False,   --  unused
11079         3 => False,   --  unused
11080         4 => False,   --  SCIL_Entity (Node4-Sem)
11081         5 => False),  --  unused
11082
11083      N_SCIL_Dispatch_Table_Tag_Init =>
11084        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11085         2 => False,   --  unused
11086         3 => False,   --  unused
11087         4 => False,   --  SCIL_Entity (Node4-Sem)
11088         5 => False),  --  unused
11089
11090      N_SCIL_Dispatching_Call =>
11091        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11092         2 => False,   --  SCIL_Target_Prim (Node2-Sem)
11093         3 => False,   --  unused
11094         4 => False,   --  SCIL_Entity (Node4-Sem)
11095         5 => False),  --  SCIL_Controlling_Tag (Node5-Sem)
11096
11097      N_SCIL_Membership_Test =>
11098        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11099         2 => False,   --  unused
11100         3 => False,   --  unused
11101         4 => False,   --  SCIL_Entity (Node4-Sem)
11102         5 => False),  --  SCIL_Tag_Value (Node5-Sem)
11103
11104      N_SCIL_Tag_Init =>
11105        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11106         2 => False,   --  unused
11107         3 => False,   --  unused
11108         4 => False,   --  SCIL_Entity (Node4-Sem)
11109         5 => False),  --  unused
11110
11111    --  Entries for Empty, Error and Unused. Even thought these have a Chars
11112    --  field for debugging purposes, they are not really syntactic fields, so
11113    --  we mark all fields as unused.
11114
11115      N_Empty =>
11116        (1 => False,   --  unused
11117         2 => False,   --  unused
11118         3 => False,   --  unused
11119         4 => False,   --  unused
11120         5 => False),  --  unused
11121
11122      N_Error =>
11123        (1 => False,   --  unused
11124         2 => False,   --  unused
11125         3 => False,   --  unused
11126         4 => False,   --  unused
11127         5 => False),  --  unused
11128
11129      N_Unused_At_Start =>
11130        (1 => False,   --  unused
11131         2 => False,   --  unused
11132         3 => False,   --  unused
11133         4 => False,   --  unused
11134         5 => False),  --  unused
11135
11136      N_Unused_At_End =>
11137        (1 => False,   --  unused
11138         2 => False,   --  unused
11139         3 => False,   --  unused
11140         4 => False,   --  unused
11141         5 => False)); --  unused
11142
11143    --------------------
11144    -- Inline Pragmas --
11145    --------------------
11146
11147    pragma Inline (ABE_Is_Certain);
11148    pragma Inline (Abort_Present);
11149    pragma Inline (Abortable_Part);
11150    pragma Inline (Abstract_Present);
11151    pragma Inline (Accept_Handler_Records);
11152    pragma Inline (Accept_Statement);
11153    pragma Inline (Access_Definition);
11154    pragma Inline (Access_To_Subprogram_Definition);
11155    pragma Inline (Access_Types_To_Process);
11156    pragma Inline (Actions);
11157    pragma Inline (Activation_Chain_Entity);
11158    pragma Inline (Acts_As_Spec);
11159    pragma Inline (Actual_Designated_Subtype);
11160    pragma Inline (Address_Warning_Posted);
11161    pragma Inline (Aggregate_Bounds);
11162    pragma Inline (Aliased_Present);
11163    pragma Inline (All_Others);
11164    pragma Inline (All_Present);
11165    pragma Inline (Alternatives);
11166    pragma Inline (Ancestor_Part);
11167    pragma Inline (Array_Aggregate);
11168    pragma Inline (Assignment_OK);
11169    pragma Inline (Associated_Node);
11170    pragma Inline (At_End_Proc);
11171    pragma Inline (Attribute_Name);
11172    pragma Inline (Aux_Decls_Node);
11173    pragma Inline (Backwards_OK);
11174    pragma Inline (Bad_Is_Detected);
11175    pragma Inline (Body_To_Inline);
11176    pragma Inline (Body_Required);
11177    pragma Inline (By_Ref);
11178    pragma Inline (Box_Present);
11179    pragma Inline (Char_Literal_Value);
11180    pragma Inline (Chars);
11181    pragma Inline (Check_Address_Alignment);
11182    pragma Inline (Choice_Parameter);
11183    pragma Inline (Choices);
11184    pragma Inline (Coextensions);
11185    pragma Inline (Comes_From_Extended_Return_Statement);
11186    pragma Inline (Compile_Time_Known_Aggregate);
11187    pragma Inline (Component_Associations);
11188    pragma Inline (Component_Clauses);
11189    pragma Inline (Component_Definition);
11190    pragma Inline (Component_Items);
11191    pragma Inline (Component_List);
11192    pragma Inline (Component_Name);
11193    pragma Inline (Componentwise_Assignment);
11194    pragma Inline (Condition);
11195    pragma Inline (Condition_Actions);
11196    pragma Inline (Config_Pragmas);
11197    pragma Inline (Constant_Present);
11198    pragma Inline (Constraint);
11199    pragma Inline (Constraints);
11200    pragma Inline (Context_Installed);
11201    pragma Inline (Context_Items);
11202    pragma Inline (Context_Pending);
11203    pragma Inline (Controlling_Argument);
11204    pragma Inline (Conversion_OK);
11205    pragma Inline (Corresponding_Body);
11206    pragma Inline (Corresponding_Formal_Spec);
11207    pragma Inline (Corresponding_Generic_Association);
11208    pragma Inline (Corresponding_Integer_Value);
11209    pragma Inline (Corresponding_Spec);
11210    pragma Inline (Corresponding_Stub);
11211    pragma Inline (Dcheck_Function);
11212    pragma Inline (Debug_Statement);
11213    pragma Inline (Declarations);
11214    pragma Inline (Default_Expression);
11215    pragma Inline (Default_Name);
11216    pragma Inline (Defining_Identifier);
11217    pragma Inline (Defining_Unit_Name);
11218    pragma Inline (Delay_Alternative);
11219    pragma Inline (Delay_Statement);
11220    pragma Inline (Delta_Expression);
11221    pragma Inline (Digits_Expression);
11222    pragma Inline (Discr_Check_Funcs_Built);
11223    pragma Inline (Discrete_Choices);
11224    pragma Inline (Discrete_Range);
11225    pragma Inline (Discrete_Subtype_Definition);
11226    pragma Inline (Discrete_Subtype_Definitions);
11227    pragma Inline (Discriminant_Specifications);
11228    pragma Inline (Discriminant_Type);
11229    pragma Inline (Do_Accessibility_Check);
11230    pragma Inline (Do_Discriminant_Check);
11231    pragma Inline (Do_Length_Check);
11232    pragma Inline (Do_Division_Check);
11233    pragma Inline (Do_Overflow_Check);
11234    pragma Inline (Do_Range_Check);
11235    pragma Inline (Do_Storage_Check);
11236    pragma Inline (Do_Tag_Check);
11237    pragma Inline (Elaborate_Present);
11238    pragma Inline (Elaborate_All_Desirable);
11239    pragma Inline (Elaborate_All_Present);
11240    pragma Inline (Elaborate_Desirable);
11241    pragma Inline (Elaboration_Boolean);
11242    pragma Inline (Else_Actions);
11243    pragma Inline (Else_Statements);
11244    pragma Inline (Elsif_Parts);
11245    pragma Inline (Enclosing_Variant);
11246    pragma Inline (End_Label);
11247    pragma Inline (End_Span);
11248    pragma Inline (Entity);
11249    pragma Inline (Entity_Or_Associated_Node);
11250    pragma Inline (Entry_Body_Formal_Part);
11251    pragma Inline (Entry_Call_Alternative);
11252    pragma Inline (Entry_Call_Statement);
11253    pragma Inline (Entry_Direct_Name);
11254    pragma Inline (Entry_Index);
11255    pragma Inline (Entry_Index_Specification);
11256    pragma Inline (Etype);
11257    pragma Inline (Exception_Choices);
11258    pragma Inline (Exception_Handlers);
11259    pragma Inline (Exception_Junk);
11260    pragma Inline (Exception_Label);
11261    pragma Inline (Expansion_Delayed);
11262    pragma Inline (Explicit_Actual_Parameter);
11263    pragma Inline (Explicit_Generic_Actual_Parameter);
11264    pragma Inline (Expression);
11265    pragma Inline (Expressions);
11266    pragma Inline (First_Bit);
11267    pragma Inline (First_Inlined_Subprogram);
11268    pragma Inline (First_Name);
11269    pragma Inline (First_Named_Actual);
11270    pragma Inline (First_Real_Statement);
11271    pragma Inline (First_Subtype_Link);
11272    pragma Inline (Float_Truncate);
11273    pragma Inline (Formal_Type_Definition);
11274    pragma Inline (Forwards_OK);
11275    pragma Inline (From_At_End);
11276    pragma Inline (From_At_Mod);
11277    pragma Inline (From_Default);
11278    pragma Inline (Generic_Associations);
11279    pragma Inline (Generic_Formal_Declarations);
11280    pragma Inline (Generic_Parent);
11281    pragma Inline (Generic_Parent_Type);
11282    pragma Inline (Handled_Statement_Sequence);
11283    pragma Inline (Handler_List_Entry);
11284    pragma Inline (Has_Created_Identifier);
11285    pragma Inline (Has_Dynamic_Length_Check);
11286    pragma Inline (Has_Dynamic_Range_Check);
11287    pragma Inline (Has_Init_Expression);
11288    pragma Inline (Has_Local_Raise);
11289    pragma Inline (Has_Self_Reference);
11290    pragma Inline (Has_No_Elaboration_Code);
11291    pragma Inline (Has_Priority_Pragma);
11292    pragma Inline (Has_Private_View);
11293    pragma Inline (Has_Relative_Deadline_Pragma);
11294    pragma Inline (Has_Storage_Size_Pragma);
11295    pragma Inline (Has_Task_Info_Pragma);
11296    pragma Inline (Has_Task_Name_Pragma);
11297    pragma Inline (Has_Wide_Character);
11298    pragma Inline (Has_Wide_Wide_Character);
11299    pragma Inline (Hidden_By_Use_Clause);
11300    pragma Inline (High_Bound);
11301    pragma Inline (Identifier);
11302    pragma Inline (Implicit_With);
11303    pragma Inline (Interface_List);
11304    pragma Inline (Interface_Present);
11305    pragma Inline (Includes_Infinities);
11306    pragma Inline (In_Present);
11307    pragma Inline (Instance_Spec);
11308    pragma Inline (Intval);
11309    pragma Inline (Is_Accessibility_Actual);
11310    pragma Inline (Is_Asynchronous_Call_Block);
11311    pragma Inline (Is_Component_Left_Opnd);
11312    pragma Inline (Is_Component_Right_Opnd);
11313    pragma Inline (Is_Controlling_Actual);
11314    pragma Inline (Is_Dynamic_Coextension);
11315    pragma Inline (Is_Elsif);
11316    pragma Inline (Is_Entry_Barrier_Function);
11317    pragma Inline (Is_Expanded_Build_In_Place_Call);
11318    pragma Inline (Is_Folded_In_Parser);
11319    pragma Inline (Is_In_Discriminant_Check);
11320    pragma Inline (Is_Machine_Number);
11321    pragma Inline (Is_Null_Loop);
11322    pragma Inline (Is_Overloaded);
11323    pragma Inline (Is_Power_Of_2_For_Shift);
11324    pragma Inline (Is_Protected_Subprogram_Body);
11325    pragma Inline (Is_Static_Coextension);
11326    pragma Inline (Is_Static_Expression);
11327    pragma Inline (Is_Subprogram_Descriptor);
11328    pragma Inline (Is_Task_Allocation_Block);
11329    pragma Inline (Is_Task_Master);
11330    pragma Inline (Iteration_Scheme);
11331    pragma Inline (Itype);
11332    pragma Inline (Kill_Range_Check);
11333    pragma Inline (Last_Bit);
11334    pragma Inline (Last_Name);
11335    pragma Inline (Library_Unit);
11336    pragma Inline (Label_Construct);
11337    pragma Inline (Left_Opnd);
11338    pragma Inline (Limited_View_Installed);
11339    pragma Inline (Limited_Present);
11340    pragma Inline (Literals);
11341    pragma Inline (Local_Raise_Not_OK);
11342    pragma Inline (Local_Raise_Statements);
11343    pragma Inline (Loop_Actions);
11344    pragma Inline (Loop_Parameter_Specification);
11345    pragma Inline (Low_Bound);
11346    pragma Inline (Mod_Clause);
11347    pragma Inline (More_Ids);
11348    pragma Inline (Must_Be_Byte_Aligned);
11349    pragma Inline (Must_Not_Freeze);
11350    pragma Inline (Must_Not_Override);
11351    pragma Inline (Must_Override);
11352    pragma Inline (Name);
11353    pragma Inline (Names);
11354    pragma Inline (Next_Entity);
11355    pragma Inline (Next_Implicit_With);
11356    pragma Inline (Next_Named_Actual);
11357    pragma Inline (Next_Pragma);
11358    pragma Inline (Next_Rep_Item);
11359    pragma Inline (Next_Use_Clause);
11360    pragma Inline (No_Ctrl_Actions);
11361    pragma Inline (No_Elaboration_Check);
11362    pragma Inline (No_Entities_Ref_In_Spec);
11363    pragma Inline (No_Initialization);
11364    pragma Inline (No_Truncation);
11365    pragma Inline (Null_Present);
11366    pragma Inline (Null_Exclusion_Present);
11367    pragma Inline (Null_Exclusion_In_Return_Present);
11368    pragma Inline (Null_Record_Present);
11369    pragma Inline (Object_Definition);
11370    pragma Inline (Original_Discriminant);
11371    pragma Inline (Original_Entity);
11372    pragma Inline (Others_Discrete_Choices);
11373    pragma Inline (Out_Present);
11374    pragma Inline (Parameter_Associations);
11375    pragma Inline (Parameter_Specifications);
11376    pragma Inline (Parameter_List_Truncated);
11377    pragma Inline (Parameter_Type);
11378    pragma Inline (Parent_Spec);
11379    pragma Inline (PPC_Enabled);
11380    pragma Inline (Position);
11381    pragma Inline (Pragma_Argument_Associations);
11382    pragma Inline (Pragma_Identifier);
11383    pragma Inline (Pragmas_After);
11384    pragma Inline (Pragmas_Before);
11385    pragma Inline (Prefix);
11386    pragma Inline (Present_Expr);
11387    pragma Inline (Prev_Ids);
11388    pragma Inline (Print_In_Hex);
11389    pragma Inline (Private_Declarations);
11390    pragma Inline (Private_Present);
11391    pragma Inline (Procedure_To_Call);
11392    pragma Inline (Proper_Body);
11393    pragma Inline (Protected_Definition);
11394    pragma Inline (Protected_Present);
11395    pragma Inline (Raises_Constraint_Error);
11396    pragma Inline (Range_Constraint);
11397    pragma Inline (Range_Expression);
11398    pragma Inline (Real_Range_Specification);
11399    pragma Inline (Realval);
11400    pragma Inline (Reason);
11401    pragma Inline (Record_Extension_Part);
11402    pragma Inline (Redundant_Use);
11403    pragma Inline (Renaming_Exception);
11404    pragma Inline (Result_Definition);
11405    pragma Inline (Return_Object_Declarations);
11406    pragma Inline (Return_Statement_Entity);
11407    pragma Inline (Reverse_Present);
11408    pragma Inline (Right_Opnd);
11409    pragma Inline (Rounded_Result);
11410    pragma Inline (SCIL_Controlling_Tag);
11411    pragma Inline (SCIL_Entity);
11412    pragma Inline (SCIL_Related_Node);
11413    pragma Inline (SCIL_Tag_Value);
11414    pragma Inline (SCIL_Target_Prim);
11415    pragma Inline (Scope);
11416    pragma Inline (Select_Alternatives);
11417    pragma Inline (Selector_Name);
11418    pragma Inline (Selector_Names);
11419    pragma Inline (Shift_Count_OK);
11420    pragma Inline (Source_Type);
11421    pragma Inline (Specification);
11422    pragma Inline (Statements);
11423    pragma Inline (Static_Processing_OK);
11424    pragma Inline (Storage_Pool);
11425    pragma Inline (Strval);
11426    pragma Inline (Subtype_Indication);
11427    pragma Inline (Subtype_Mark);
11428    pragma Inline (Subtype_Marks);
11429    pragma Inline (Suppress_Loop_Warnings);
11430    pragma Inline (Synchronized_Present);
11431    pragma Inline (Tagged_Present);
11432    pragma Inline (Target_Type);
11433    pragma Inline (Task_Definition);
11434    pragma Inline (Task_Present);
11435    pragma Inline (Then_Actions);
11436    pragma Inline (Then_Statements);
11437    pragma Inline (Triggering_Alternative);
11438    pragma Inline (Triggering_Statement);
11439    pragma Inline (Treat_Fixed_As_Integer);
11440    pragma Inline (TSS_Elist);
11441    pragma Inline (Type_Definition);
11442    pragma Inline (Unit);
11443    pragma Inline (Unknown_Discriminants_Present);
11444    pragma Inline (Unreferenced_In_Spec);
11445    pragma Inline (Variant_Part);
11446    pragma Inline (Variants);
11447    pragma Inline (Visible_Declarations);
11448    pragma Inline (Was_Originally_Stub);
11449    pragma Inline (Zero_Cost_Handling);
11450
11451    pragma Inline (Set_ABE_Is_Certain);
11452    pragma Inline (Set_Abort_Present);
11453    pragma Inline (Set_Abortable_Part);
11454    pragma Inline (Set_Abstract_Present);
11455    pragma Inline (Set_Accept_Handler_Records);
11456    pragma Inline (Set_Accept_Statement);
11457    pragma Inline (Set_Access_Definition);
11458    pragma Inline (Set_Access_To_Subprogram_Definition);
11459    pragma Inline (Set_Access_Types_To_Process);
11460    pragma Inline (Set_Actions);
11461    pragma Inline (Set_Activation_Chain_Entity);
11462    pragma Inline (Set_Acts_As_Spec);
11463    pragma Inline (Set_Actual_Designated_Subtype);
11464    pragma Inline (Set_Address_Warning_Posted);
11465    pragma Inline (Set_Aggregate_Bounds);
11466    pragma Inline (Set_Aliased_Present);
11467    pragma Inline (Set_All_Others);
11468    pragma Inline (Set_All_Present);
11469    pragma Inline (Set_Alternatives);
11470    pragma Inline (Set_Ancestor_Part);
11471    pragma Inline (Set_Array_Aggregate);
11472    pragma Inline (Set_Assignment_OK);
11473    pragma Inline (Set_Associated_Node);
11474    pragma Inline (Set_At_End_Proc);
11475    pragma Inline (Set_Attribute_Name);
11476    pragma Inline (Set_Aux_Decls_Node);
11477    pragma Inline (Set_Backwards_OK);
11478    pragma Inline (Set_Bad_Is_Detected);
11479    pragma Inline (Set_Body_To_Inline);
11480    pragma Inline (Set_Body_Required);
11481    pragma Inline (Set_By_Ref);
11482    pragma Inline (Set_Box_Present);
11483    pragma Inline (Set_Char_Literal_Value);
11484    pragma Inline (Set_Chars);
11485    pragma Inline (Set_Check_Address_Alignment);
11486    pragma Inline (Set_Choice_Parameter);
11487    pragma Inline (Set_Choices);
11488    pragma Inline (Set_Coextensions);
11489    pragma Inline (Set_Comes_From_Extended_Return_Statement);
11490    pragma Inline (Set_Compile_Time_Known_Aggregate);
11491    pragma Inline (Set_Component_Associations);
11492    pragma Inline (Set_Component_Clauses);
11493    pragma Inline (Set_Component_Definition);
11494    pragma Inline (Set_Component_Items);
11495    pragma Inline (Set_Component_List);
11496    pragma Inline (Set_Component_Name);
11497    pragma Inline (Set_Componentwise_Assignment);
11498    pragma Inline (Set_Condition);
11499    pragma Inline (Set_Condition_Actions);
11500    pragma Inline (Set_Config_Pragmas);
11501    pragma Inline (Set_Constant_Present);
11502    pragma Inline (Set_Constraint);
11503    pragma Inline (Set_Constraints);
11504    pragma Inline (Set_Context_Installed);
11505    pragma Inline (Set_Context_Items);
11506    pragma Inline (Set_Context_Pending);
11507    pragma Inline (Set_Controlling_Argument);
11508    pragma Inline (Set_Conversion_OK);
11509    pragma Inline (Set_Corresponding_Body);
11510    pragma Inline (Set_Corresponding_Formal_Spec);
11511    pragma Inline (Set_Corresponding_Generic_Association);
11512    pragma Inline (Set_Corresponding_Integer_Value);
11513    pragma Inline (Set_Corresponding_Spec);
11514    pragma Inline (Set_Corresponding_Stub);
11515    pragma Inline (Set_Dcheck_Function);
11516    pragma Inline (Set_Debug_Statement);
11517    pragma Inline (Set_Declarations);
11518    pragma Inline (Set_Default_Expression);
11519    pragma Inline (Set_Default_Name);
11520    pragma Inline (Set_Defining_Identifier);
11521    pragma Inline (Set_Defining_Unit_Name);
11522    pragma Inline (Set_Delay_Alternative);
11523    pragma Inline (Set_Delay_Statement);
11524    pragma Inline (Set_Delta_Expression);
11525    pragma Inline (Set_Digits_Expression);
11526    pragma Inline (Set_Discr_Check_Funcs_Built);
11527    pragma Inline (Set_Discrete_Choices);
11528    pragma Inline (Set_Discrete_Range);
11529    pragma Inline (Set_Discrete_Subtype_Definition);
11530    pragma Inline (Set_Discrete_Subtype_Definitions);
11531    pragma Inline (Set_Discriminant_Specifications);
11532    pragma Inline (Set_Discriminant_Type);
11533    pragma Inline (Set_Do_Accessibility_Check);
11534    pragma Inline (Set_Do_Discriminant_Check);
11535    pragma Inline (Set_Do_Length_Check);
11536    pragma Inline (Set_Do_Division_Check);
11537    pragma Inline (Set_Do_Overflow_Check);
11538    pragma Inline (Set_Do_Range_Check);
11539    pragma Inline (Set_Do_Storage_Check);
11540    pragma Inline (Set_Do_Tag_Check);
11541    pragma Inline (Set_Elaborate_Present);
11542    pragma Inline (Set_Elaborate_All_Desirable);
11543    pragma Inline (Set_Elaborate_All_Present);
11544    pragma Inline (Set_Elaborate_Desirable);
11545    pragma Inline (Set_Elaboration_Boolean);
11546    pragma Inline (Set_Else_Actions);
11547    pragma Inline (Set_Else_Statements);
11548    pragma Inline (Set_Elsif_Parts);
11549    pragma Inline (Set_Enclosing_Variant);
11550    pragma Inline (Set_End_Label);
11551    pragma Inline (Set_End_Span);
11552    pragma Inline (Set_Entity);
11553    pragma Inline (Set_Entry_Body_Formal_Part);
11554    pragma Inline (Set_Entry_Call_Alternative);
11555    pragma Inline (Set_Entry_Call_Statement);
11556    pragma Inline (Set_Entry_Direct_Name);
11557    pragma Inline (Set_Entry_Index);
11558    pragma Inline (Set_Entry_Index_Specification);
11559    pragma Inline (Set_Etype);
11560    pragma Inline (Set_Exception_Choices);
11561    pragma Inline (Set_Exception_Handlers);
11562    pragma Inline (Set_Exception_Junk);
11563    pragma Inline (Set_Exception_Label);
11564    pragma Inline (Set_Expansion_Delayed);
11565    pragma Inline (Set_Explicit_Actual_Parameter);
11566    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11567    pragma Inline (Set_Expression);
11568    pragma Inline (Set_Expressions);
11569    pragma Inline (Set_First_Bit);
11570    pragma Inline (Set_First_Inlined_Subprogram);
11571    pragma Inline (Set_First_Name);
11572    pragma Inline (Set_First_Named_Actual);
11573    pragma Inline (Set_First_Real_Statement);
11574    pragma Inline (Set_First_Subtype_Link);
11575    pragma Inline (Set_Float_Truncate);
11576    pragma Inline (Set_Formal_Type_Definition);
11577    pragma Inline (Set_Forwards_OK);
11578    pragma Inline (Set_From_At_End);
11579    pragma Inline (Set_From_At_Mod);
11580    pragma Inline (Set_From_Default);
11581    pragma Inline (Set_Generic_Associations);
11582    pragma Inline (Set_Generic_Formal_Declarations);
11583    pragma Inline (Set_Generic_Parent);
11584    pragma Inline (Set_Generic_Parent_Type);
11585    pragma Inline (Set_Handled_Statement_Sequence);
11586    pragma Inline (Set_Handler_List_Entry);
11587    pragma Inline (Set_Has_Created_Identifier);
11588    pragma Inline (Set_Has_Dynamic_Length_Check);
11589    pragma Inline (Set_Has_Init_Expression);
11590    pragma Inline (Set_Has_Local_Raise);
11591    pragma Inline (Set_Has_Dynamic_Range_Check);
11592    pragma Inline (Set_Has_No_Elaboration_Code);
11593    pragma Inline (Set_Has_Priority_Pragma);
11594    pragma Inline (Set_Has_Private_View);
11595    pragma Inline (Set_Has_Relative_Deadline_Pragma);
11596    pragma Inline (Set_Has_Storage_Size_Pragma);
11597    pragma Inline (Set_Has_Task_Info_Pragma);
11598    pragma Inline (Set_Has_Task_Name_Pragma);
11599    pragma Inline (Set_Has_Wide_Character);
11600    pragma Inline (Set_Has_Wide_Wide_Character);
11601    pragma Inline (Set_Hidden_By_Use_Clause);
11602    pragma Inline (Set_High_Bound);
11603    pragma Inline (Set_Identifier);
11604    pragma Inline (Set_Implicit_With);
11605    pragma Inline (Set_Includes_Infinities);
11606    pragma Inline (Set_Interface_List);
11607    pragma Inline (Set_Interface_Present);
11608    pragma Inline (Set_In_Present);
11609    pragma Inline (Set_Instance_Spec);
11610    pragma Inline (Set_Intval);
11611    pragma Inline (Set_Is_Accessibility_Actual);
11612    pragma Inline (Set_Is_Asynchronous_Call_Block);
11613    pragma Inline (Set_Is_Component_Left_Opnd);
11614    pragma Inline (Set_Is_Component_Right_Opnd);
11615    pragma Inline (Set_Is_Controlling_Actual);
11616    pragma Inline (Set_Is_Dynamic_Coextension);
11617    pragma Inline (Set_Is_Elsif);
11618    pragma Inline (Set_Is_Entry_Barrier_Function);
11619    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11620    pragma Inline (Set_Is_Folded_In_Parser);
11621    pragma Inline (Set_Is_In_Discriminant_Check);
11622    pragma Inline (Set_Is_Machine_Number);
11623    pragma Inline (Set_Is_Null_Loop);
11624    pragma Inline (Set_Is_Overloaded);
11625    pragma Inline (Set_Is_Power_Of_2_For_Shift);
11626    pragma Inline (Set_Is_Protected_Subprogram_Body);
11627    pragma Inline (Set_Has_Self_Reference);
11628    pragma Inline (Set_Is_Static_Coextension);
11629    pragma Inline (Set_Is_Static_Expression);
11630    pragma Inline (Set_Is_Subprogram_Descriptor);
11631    pragma Inline (Set_Is_Task_Allocation_Block);
11632    pragma Inline (Set_Is_Task_Master);
11633    pragma Inline (Set_Iteration_Scheme);
11634    pragma Inline (Set_Itype);
11635    pragma Inline (Set_Kill_Range_Check);
11636    pragma Inline (Set_Last_Bit);
11637    pragma Inline (Set_Last_Name);
11638    pragma Inline (Set_Library_Unit);
11639    pragma Inline (Set_Label_Construct);
11640    pragma Inline (Set_Left_Opnd);
11641    pragma Inline (Set_Limited_View_Installed);
11642    pragma Inline (Set_Limited_Present);
11643    pragma Inline (Set_Literals);
11644    pragma Inline (Set_Local_Raise_Not_OK);
11645    pragma Inline (Set_Local_Raise_Statements);
11646    pragma Inline (Set_Loop_Actions);
11647    pragma Inline (Set_Loop_Parameter_Specification);
11648    pragma Inline (Set_Low_Bound);
11649    pragma Inline (Set_Mod_Clause);
11650    pragma Inline (Set_More_Ids);
11651    pragma Inline (Set_Must_Be_Byte_Aligned);
11652    pragma Inline (Set_Must_Not_Freeze);
11653    pragma Inline (Set_Must_Not_Override);
11654    pragma Inline (Set_Must_Override);
11655    pragma Inline (Set_Name);
11656    pragma Inline (Set_Names);
11657    pragma Inline (Set_Next_Entity);
11658    pragma Inline (Set_Next_Implicit_With);
11659    pragma Inline (Set_Next_Named_Actual);
11660    pragma Inline (Set_Next_Pragma);
11661    pragma Inline (Set_Next_Rep_Item);
11662    pragma Inline (Set_Next_Use_Clause);
11663    pragma Inline (Set_No_Ctrl_Actions);
11664    pragma Inline (Set_No_Elaboration_Check);
11665    pragma Inline (Set_No_Entities_Ref_In_Spec);
11666    pragma Inline (Set_No_Initialization);
11667    pragma Inline (Set_No_Truncation);
11668    pragma Inline (Set_Null_Present);
11669    pragma Inline (Set_Null_Exclusion_Present);
11670    pragma Inline (Set_Null_Exclusion_In_Return_Present);
11671    pragma Inline (Set_Null_Record_Present);
11672    pragma Inline (Set_Object_Definition);
11673    pragma Inline (Set_Original_Discriminant);
11674    pragma Inline (Set_Original_Entity);
11675    pragma Inline (Set_Others_Discrete_Choices);
11676    pragma Inline (Set_Out_Present);
11677    pragma Inline (Set_Parameter_Associations);
11678    pragma Inline (Set_Parameter_Specifications);
11679    pragma Inline (Set_Parameter_List_Truncated);
11680    pragma Inline (Set_Parameter_Type);
11681    pragma Inline (Set_Parent_Spec);
11682    pragma Inline (Set_PPC_Enabled);
11683    pragma Inline (Set_Position);
11684    pragma Inline (Set_Pragma_Argument_Associations);
11685    pragma Inline (Set_Pragma_Identifier);
11686    pragma Inline (Set_Pragmas_After);
11687    pragma Inline (Set_Pragmas_Before);
11688    pragma Inline (Set_Prefix);
11689    pragma Inline (Set_Present_Expr);
11690    pragma Inline (Set_Prev_Ids);
11691    pragma Inline (Set_Print_In_Hex);
11692    pragma Inline (Set_Private_Declarations);
11693    pragma Inline (Set_Private_Present);
11694    pragma Inline (Set_Procedure_To_Call);
11695    pragma Inline (Set_Proper_Body);
11696    pragma Inline (Set_Protected_Definition);
11697    pragma Inline (Set_Protected_Present);
11698    pragma Inline (Set_Raises_Constraint_Error);
11699    pragma Inline (Set_Range_Constraint);
11700    pragma Inline (Set_Range_Expression);
11701    pragma Inline (Set_Real_Range_Specification);
11702    pragma Inline (Set_Realval);
11703    pragma Inline (Set_Reason);
11704    pragma Inline (Set_Record_Extension_Part);
11705    pragma Inline (Set_Redundant_Use);
11706    pragma Inline (Set_Renaming_Exception);
11707    pragma Inline (Set_Result_Definition);
11708    pragma Inline (Set_Return_Object_Declarations);
11709    pragma Inline (Set_Reverse_Present);
11710    pragma Inline (Set_Right_Opnd);
11711    pragma Inline (Set_Rounded_Result);
11712    pragma Inline (Set_SCIL_Controlling_Tag);
11713    pragma Inline (Set_SCIL_Entity);
11714    pragma Inline (Set_SCIL_Related_Node);
11715    pragma Inline (Set_SCIL_Tag_Value);
11716    pragma Inline (Set_SCIL_Target_Prim);
11717    pragma Inline (Set_Scope);
11718    pragma Inline (Set_Select_Alternatives);
11719    pragma Inline (Set_Selector_Name);
11720    pragma Inline (Set_Selector_Names);
11721    pragma Inline (Set_Shift_Count_OK);
11722    pragma Inline (Set_Source_Type);
11723    pragma Inline (Set_Specification);
11724    pragma Inline (Set_Statements);
11725    pragma Inline (Set_Static_Processing_OK);
11726    pragma Inline (Set_Storage_Pool);
11727    pragma Inline (Set_Strval);
11728    pragma Inline (Set_Subtype_Indication);
11729    pragma Inline (Set_Subtype_Mark);
11730    pragma Inline (Set_Subtype_Marks);
11731    pragma Inline (Set_Suppress_Loop_Warnings);
11732    pragma Inline (Set_Synchronized_Present);
11733    pragma Inline (Set_Tagged_Present);
11734    pragma Inline (Set_Target_Type);
11735    pragma Inline (Set_Task_Definition);
11736    pragma Inline (Set_Task_Present);
11737    pragma Inline (Set_Then_Actions);
11738    pragma Inline (Set_Then_Statements);
11739    pragma Inline (Set_Triggering_Alternative);
11740    pragma Inline (Set_Triggering_Statement);
11741    pragma Inline (Set_Treat_Fixed_As_Integer);
11742    pragma Inline (Set_TSS_Elist);
11743    pragma Inline (Set_Type_Definition);
11744    pragma Inline (Set_Unit);
11745    pragma Inline (Set_Unknown_Discriminants_Present);
11746    pragma Inline (Set_Unreferenced_In_Spec);
11747    pragma Inline (Set_Variant_Part);
11748    pragma Inline (Set_Variants);
11749    pragma Inline (Set_Visible_Declarations);
11750    pragma Inline (Set_Was_Originally_Stub);
11751    pragma Inline (Set_Zero_Cost_Handling);
11752
11753    N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11754    --  Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11755    --  should refer to N_Simple_Return_Statement.
11756
11757 end Sinfo;