Add mi_thunk support for vcalls on hppa.
[official-gcc.git] / gcc / ada / sinfo.ads
blobf9b0667f8af6feec49a0142e689ecc6bb13cc4aa
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2020, 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. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
20 -- --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
23 -- --
24 ------------------------------------------------------------------------------
26 -- This package defines the structure of the abstract syntax tree. The Tree
27 -- package provides a basic tree structure. Sinfo describes how this structure
28 -- is used to represent the syntax of an Ada program.
30 -- The grammar in the RM is followed very closely in the tree design, and is
31 -- repeated as part of this source file.
33 -- The tree contains not only the full syntactic representation of the
34 -- program, but also the results of semantic analysis. In particular, the
35 -- nodes for defining identifiers, defining character literals, and defining
36 -- operator symbols, collectively referred to as entities, represent what
37 -- would normally be regarded as the symbol table information. In addition a
38 -- number of the tree nodes contain semantic information.
40 -- WARNING: Several files are automatically generated from this package.
41 -- See below for details.
43 with Namet; use Namet;
44 with Types; use Types;
45 with Uintp; use Uintp;
46 with Urealp; use Urealp;
48 package Sinfo is
50 ---------------------------------
51 -- Making Changes to This File --
52 ---------------------------------
54 -- If changes are made to this file, a number of related steps must be
55 -- carried out to ensure consistency. First, if a field access function is
56 -- added, it appears in these places:
58 -- In sinfo.ads:
59 -- The documentation associated with the field (if semantic)
60 -- The documentation associated with the node
61 -- The spec of the access function
62 -- The spec of the set procedure
63 -- The entries in Is_Syntactic_Field
64 -- The pragma Inline for the access function
65 -- The pragma Inline for the set procedure
66 -- In sinfo.adb:
67 -- The body of the access function
68 -- The body of the set procedure
70 -- The field chosen must be consistent in all places, and, for a node that
71 -- is a subexpression, must not overlap any of the standard expression
72 -- fields.
74 -- In addition, if any of the standard expression fields is changed, then
75 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
76 -- must be updated appropriately, since it special cases expression fields.
78 -- If a new tree node is added, then the following changes are made:
80 -- Add it to the documentation in the appropriate place
81 -- Add its fields to this documentation section
82 -- Define it in the appropriate classification in Node_Kind
83 -- Add an entry in Is_Syntactic_Field
84 -- In the body (sinfo), add entries to the access functions for all
85 -- its fields (except standard expression fields) to include the new
86 -- node in the checks.
87 -- Add an appropriate section to the case statement in sprint.adb
88 -- Add an appropriate section to the case statement in sem.adb
89 -- Add an appropriate section to the case statement in exp_util.adb
90 -- (Insert_Actions procedure)
91 -- For a subexpression, add an appropriate section to the case
92 -- statement in sem_eval.adb
93 -- For a subexpression, add an appropriate section to the case
94 -- statement in sem_res.adb
96 -- All back ends must be made aware of the new node kind.
98 -- Finally, four utility programs must be run:
100 -- (Optional.) Run CSinfo to check that you have made the changes
101 -- consistently. It checks most of the rules given above. This utility
102 -- reads sinfo.ads and sinfo.adb and generates a report to standard
103 -- output. This step is optional because XSinfo runs CSinfo.
105 -- Run XSinfo to create sinfo.h, the corresponding C header. This
106 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
107 -- not need to read sinfo.adb, since the contents of the body are
108 -- algorithmically determinable from the spec.
110 -- Run XTreeprs to create treeprs.ads, an updated version of the module
111 -- that is used to drive the tree print routine. This utility reads (but
112 -- does not modify) treeprs.adt, the template that provides the basic
113 -- structure of the file, and then fills in the data from the comments
114 -- in sinfo.ads.
116 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
117 -- spec of the Nmake package which contains functions for constructing
118 -- nodes.
120 -- The above steps are done automatically by the build scripts when you do
121 -- a full bootstrap.
123 -- Note: sometime we could write a utility that actually generated the body
124 -- of sinfo from the spec instead of simply checking it, since, as noted
125 -- above, the contents of the body can be determined from the spec.
127 --------------------------------
128 -- Implicit Nodes in the Tree --
129 --------------------------------
131 -- Generally the structure of the tree very closely follows the grammar as
132 -- defined in the RM. However, certain nodes are omitted to save space and
133 -- simplify semantic processing. Two general classes of such omitted nodes
134 -- are as follows:
136 -- If the only possibilities for a non-terminal are one or more other
137 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
138 -- corresponding node is omitted from the tree, and the target construct
139 -- appears directly. For example, a real type definition is either
140 -- floating point definition or a fixed point definition. No explicit node
141 -- appears for real type definition. Instead either the floating point
142 -- definition or fixed point definition appears directly.
144 -- If a non-terminal corresponds to a list of some other non-terminal
145 -- (possibly with separating punctuation), then usually it is omitted from
146 -- the tree, and a list of components appears instead. For example,
147 -- sequence of statements does not appear explicitly in the tree. Instead
148 -- a list of statements appears directly.
150 -- Some additional cases of omitted nodes occur and are documented
151 -- individually. In particular, many nodes are omitted in the tree
152 -- generated for an expression.
154 -------------------------------------------
155 -- Handling of Defining Identifier Lists --
156 -------------------------------------------
158 -- In several declarative forms in the syntax, lists of defining
159 -- identifiers appear (object declarations, component declarations, number
160 -- declarations etc.)
162 -- The semantics of such statements are equivalent to a series of identical
163 -- declarations of single defining identifiers (except that conformance
164 -- checks require the same grouping of identifiers in the parameter case).
166 -- To simplify semantic processing, the parser breaks down such multiple
167 -- declaration cases into sequences of single declarations, duplicating
168 -- type and initialization information as required. The flags More_Ids and
169 -- Prev_Ids are used to record the original form of the source in the case
170 -- where the original source used a list of names, More_Ids being set on
171 -- all but the last name and Prev_Ids being set on all but the first name.
172 -- These flags are used to reconstruct the original source (e.g. in the
173 -- Sprint package), and also are included in the conformance checks, but
174 -- otherwise have no semantic significance.
176 -- Note: the reason that we use More_Ids and Prev_Ids rather than
177 -- First_Name and Last_Name flags is so that the flags are off in the
178 -- normal one identifier case, which minimizes tree print output.
180 -----------------------
181 -- Use of Node Lists --
182 -----------------------
184 -- With a few exceptions, if a construction of the form {non-terminal}
185 -- appears in the tree, lists are used in the corresponding tree node (see
186 -- package Nlists for handling of node lists). In this case a field of the
187 -- parent node points to a list of nodes for the non-terminal. The field
188 -- name for such fields has a plural name which always ends in "s". For
189 -- example, a case statement has a field Alternatives pointing to list of
190 -- case statement alternative nodes.
192 -- Only fields pointing to lists have names ending in "s", so generally the
193 -- structure is strongly typed, fields not ending in s point to single
194 -- nodes, and fields ending in s point to lists.
196 -- The following example shows how a traversal of a list is written. We
197 -- suppose here that Stmt points to a N_Case_Statement node which has a
198 -- list field called Alternatives:
200 -- Alt := First (Alternatives (Stmt));
201 -- while Present (Alt) loop
202 -- ..
203 -- -- processing for case statement alternative Alt
204 -- ..
205 -- Alt := Next (Alt);
206 -- end loop;
208 -- The Present function tests for Empty, which in this case signals the end
209 -- of the list. First returns Empty immediately if the list is empty.
210 -- Present is defined in Atree; First and Next are defined in Nlists.
212 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
213 -- contexts, which is handled as described in the previous section, and
214 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
215 -- using the First_Name and Last_Name flags, as further detailed in the
216 -- description of the N_With_Clause node.
218 -------------
219 -- Pragmas --
220 -------------
222 -- Pragmas can appear in many different context, but are not included in
223 -- the grammar. Still they must appear in the tree, so they can be properly
224 -- processed.
226 -- Two approaches are used. In some cases, an extra field is defined in an
227 -- appropriate node that contains a list of pragmas appearing in the
228 -- expected context. For example pragmas can appear before an
229 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
230 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
232 -- The other approach is to simply allow pragmas to appear in syntactic
233 -- lists where the grammar (of course) does not include the possibility.
234 -- For example, the Variants field of an N_Variant_Part node points to a
235 -- list that can contain both N_Pragma and N_Variant nodes.
237 -- To make processing easier in the latter case, the Nlists package
238 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
239 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
240 -- ignoring all pragmas.
242 -- In the case of the variants list, we can either write:
244 -- Variant := First (Variants (N));
245 -- while Present (Variant) loop
246 -- ...
247 -- Variant := Next (Variant);
248 -- end loop;
250 -- or
252 -- Variant := First_Non_Pragma (Variants (N));
253 -- while Present (Variant) loop
254 -- ...
255 -- Variant := Next_Non_Pragma (Variant);
256 -- end loop;
258 -- In the first form of the loop, Variant can either be an N_Pragma or an
259 -- N_Variant node. In the second form, Variant can only be N_Variant since
260 -- all pragmas are skipped.
262 ---------------------
263 -- Optional Fields --
264 ---------------------
266 -- Fields which correspond to a section of the syntax enclosed in square
267 -- brackets are generally omitted (and the corresponding field set to Empty
268 -- for a node, or No_List for a list). The documentation of such fields
269 -- notes these cases. One exception to this rule occurs in the case of
270 -- possibly empty statement sequences (such as the sequence of statements
271 -- in an entry call alternative). Such cases appear in the syntax rules as
272 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
273 -- statement sequences always contain an empty list (not No_List) if no
274 -- statements are present.
276 -- Note: the utility program that constructs the body and spec of the Nmake
277 -- package relies on the format of the comments to determine if a field
278 -- should have a default value in the corresponding make routine. The rule
279 -- is that if the first line of the description of the field contains the
280 -- string "(set to xxx if", then a default value of xxx is provided for
281 -- this field in the corresponding Make_yyy routine.
283 -----------------------------------
284 -- Note on Body/Spec Terminology --
285 -----------------------------------
287 -- In informal discussions about Ada, it is customary to refer to package
288 -- and subprogram specs and bodies. However, this is not technically
289 -- correct, what is normally referred to as a spec or specification is in
290 -- fact a package declaration or subprogram declaration. We are careful in
291 -- GNAT to use the correct terminology and in particular, the full word
292 -- specification is never used as an incorrect substitute for declaration.
293 -- The structure and terminology used in the tree also reflects the grammar
294 -- and thus uses declaration and specification in the technically correct
295 -- manner.
297 -- However, there are contexts in which the informal terminology is useful.
298 -- We have the word "body" to refer to the Interp_Etype declared by the
299 -- declaration of a unit body, and in some contexts we need similar term to
300 -- refer to the entity declared by the package or subprogram declaration,
301 -- and simply using declaration can be confusing since the body also has a
302 -- declaration.
304 -- An example of such a context is the link between the package body and
305 -- its declaration. With_Declaration is confusing, since the package body
306 -- itself is a declaration.
308 -- To deal with this problem, we reserve the informal term Spec, i.e. the
309 -- popular abbreviation used in this context, to refer to the entity
310 -- declared by the package or subprogram declaration. So in the above
311 -- example case, the field in the body is called With_Spec.
313 -- Another important context for the use of the word Spec is in error
314 -- messages, where a hyper-correct use of declaration would be confusing to
315 -- a typical Ada programmer, and even for an expert programmer can cause
316 -- confusion since the body has a declaration as well.
318 -- So, to summarize:
320 -- Declaration always refers to the syntactic entity that is called
321 -- a declaration. In particular, subprogram declaration
322 -- and package declaration are used to describe the
323 -- syntactic entity that includes the semicolon.
325 -- Specification always refers to the syntactic entity that is called
326 -- a specification. In particular, the terms procedure
327 -- specification, function specification, package
328 -- specification, subprogram specification always refer
329 -- to the syntactic entity that has no semicolon.
331 -- Spec is an informal term, used to refer to the entity
332 -- that is declared by a task declaration, protected
333 -- declaration, generic declaration, subprogram
334 -- declaration or package declaration.
336 -- This convention is followed throughout the GNAT documentation
337 -- both internal and external, and in all error message text.
339 ------------------------
340 -- Internal Use Nodes --
341 ------------------------
343 -- These are Node_Kind settings used in the internal implementation which
344 -- are not logically part of the specification.
346 -- N_Unused_At_Start
347 -- Completely unused entry at the start of the enumeration type. This
348 -- is inserted so that no legitimate value is zero, which helps to get
349 -- better debugging behavior, since zero is a likely uninitialized value).
351 -- N_Unused_At_End
352 -- Completely unused entry at the end of the enumeration type. This is
353 -- handy so that arrays with Node_Kind as the index type have an extra
354 -- entry at the end (see for example the use of the Pchar_Pos_Array in
355 -- Treepr, where the extra entry provides the limit value when dealing with
356 -- the last used entry in the array).
358 -----------------------------------------
359 -- Note on the settings of Sloc fields --
360 -----------------------------------------
362 -- The Sloc field of nodes that come from the source is set by the parser.
363 -- For internal nodes, and nodes generated during expansion the Sloc is
364 -- usually set in the call to the constructor for the node. In general the
365 -- Sloc value chosen for an internal node is the Sloc of the source node
366 -- whose processing is responsible for the expansion. For example, the Sloc
367 -- of an inherited primitive operation is the Sloc of the corresponding
368 -- derived type declaration.
370 -- For the nodes of a generic instantiation, the Sloc value is encoded to
371 -- represent both the original Sloc in the generic unit, and the Sloc of
372 -- the instantiation itself. See Sinput.ads for details.
374 -- Subprogram instances create two callable entities: one is the visible
375 -- subprogram instance, and the other is an anonymous subprogram nested
376 -- within a wrapper package that contains the renamings for the actuals.
377 -- Both of these entities have the Sloc of the defining entity in the
378 -- instantiation node. This simplified for instance in the past some ASIS
379 -- queries.
381 -----------------------
382 -- Field Definitions --
383 -----------------------
385 -- In the following node definitions, all fields, both syntactic and
386 -- semantic, are documented. The one exception is in the case of entities
387 -- (defining identifiers, character literals, and operator symbols), where
388 -- the usage of the fields depends on the entity kind. Entity fields are
389 -- fully documented in the separate package Einfo.
391 -- In the node definitions, three common sets of fields are abbreviated to
392 -- save both space in the documentation, and also space in the string
393 -- (defined in Tree_Print_Strings) used to print trees. The following
394 -- abbreviations are used:
396 -- "plus fields for binary operator"
397 -- Chars (Name1) Name_Id for the operator
398 -- Left_Opnd (Node2) left operand expression
399 -- Right_Opnd (Node3) right operand expression
400 -- Entity (Node4-Sem) defining entity for operator
401 -- Associated_Node (Node4-Sem) for generic processing
402 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
403 -- Has_Private_View (Flag11-Sem) set in generic units.
405 -- "plus fields for unary operator"
406 -- Chars (Name1) Name_Id for the operator
407 -- Right_Opnd (Node3) right operand expression
408 -- Entity (Node4-Sem) defining entity for operator
409 -- Associated_Node (Node4-Sem) for generic processing
410 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
411 -- Has_Private_View (Flag11-Sem) set in generic units.
413 -- "plus fields for expression"
414 -- Paren_Count number of parentheses levels
415 -- Etype (Node5-Sem) type of the expression
416 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
417 -- Is_Static_Expression (Flag6-Sem) set for static expression
418 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
419 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
420 -- Do_Range_Check (Flag9-Sem) set if a range check needed
421 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
422 -- Assignment_OK (Flag15-Sem) set if modification is OK
423 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
425 -- Note: the utility program that creates the Treeprs spec (in the file
426 -- xtreeprs.adb) knows about the special fields here, so it must be
427 -- modified if any change is made to these fields.
429 -- Note: see under (EXPRESSION) for further details on the use of
430 -- the Paren_Count field to record the number of parentheses levels.
432 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
433 -- The actual definition of this type is given later (the reason for this
434 -- is that we want the descriptions ordered by logical chapter in the RM,
435 -- but the type definition is reordered to facilitate the definition of
436 -- some subtype ranges. The individual descriptions of the nodes show how
437 -- the various fields are used in each node kind, as well as providing
438 -- logical names for the fields. Functions and procedures are provided for
439 -- accessing and setting these fields using these logical names.
441 -----------------------
442 -- Gigi Restrictions --
443 -----------------------
445 -- The tree passed to Gigi is more restricted than the general tree form.
446 -- For example, as a result of expansion, most of the tasking nodes can
447 -- never appear. For each node to which either a complete or partial
448 -- restriction applies, a note entitled "Gigi restriction" appears which
449 -- documents the restriction.
451 -- Note that most of these restrictions apply only to trees generated when
452 -- code is being generated, since they involved expander actions that
453 -- destroy the tree.
455 ----------------
456 -- Ghost Mode --
457 ----------------
459 -- The SPARK RM 6.9 defines two classes of constructs - Ghost entities and
460 -- Ghost statements. The intent of the feature is to treat Ghost constructs
461 -- as non-existent when Ghost assertion policy Ignore is in effect.
463 -- The corresponding nodes which map to Ghost constructs are:
465 -- Ghost entities
466 -- Declaration nodes
467 -- N_Package_Body
468 -- N_Subprogram_Body
470 -- Ghost statements
471 -- N_Assignment_Statement
472 -- N_Procedure_Call_Statement
473 -- N_Pragma
475 -- In addition, the compiler treats instantiations as Ghost entities
477 -- To achieve the removal of ignored Ghost constructs, the compiler relies
478 -- on global variables Ghost_Mode and Ignored_Ghost_Region, which comprise
479 -- a mechanism called "Ghost regions".
481 -- The values of Ghost_Mode are as follows:
483 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
484 -- effect. The Ghost region has mode Check.
486 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
487 -- files, object files, and the final executable. The Ghost region
488 -- has mode Ignore.
490 -- 3. None - No Ghost region is in effect
492 -- The value of Ignored_Ghost_Region captures the node which initiates an
493 -- ignored Ghost region.
495 -- A Ghost region is a compiler operating mode, similar to Check_Syntax,
496 -- however a region is much more finely grained and depends on the policy
497 -- in effect. The region starts prior to the analysis of a Ghost construct
498 -- and ends immediately after its expansion. The region is established as
499 -- follows:
501 -- 1. Declarations - Prior to analysis, if the declaration is subject to
502 -- pragma Ghost.
504 -- 2. Renaming declarations - Same as 1) or when the renamed entity is
505 -- Ghost.
507 -- 3. Completing declarations - Same as 1) or when the declaration is
508 -- partially analyzed and the declaration completes a Ghost entity.
510 -- 4. N_Package_Body, N_Subprogram_Body - Same as 1) or when the body is
511 -- partially analyzed and completes a Ghost entity.
513 -- 5. N_Assignment_Statement - After the left hand side is analyzed and
514 -- references a Ghost entity.
516 -- 6. N_Procedure_Call_Statement - After the name is analyzed and denotes
517 -- a Ghost procedure.
519 -- 7. N_Pragma - During analysis, when the related entity is Ghost or the
520 -- pragma encloses a Ghost entity.
522 -- 8. Instantiations - Save as 1) or when the instantiation is partially
523 -- analyzed and the generic template is Ghost.
525 -- The following routines install a new Ghost region:
527 -- Install_Ghost_Region
528 -- Mark_And_Set_Ghost_xxx
529 -- Set_Ghost_Mode
531 -- The following routine ends a Ghost region:
533 -- Restore_Ghost_Region
535 -- A region may be reinstalled similarly to scopes for decoupled expansion
536 -- such as the generation of dispatch tables or the creation of a predicate
537 -- function.
539 -- If the mode of a Ghost region is Ignore, any newly created nodes as well
540 -- as source entities are marked as ignored Ghost. In additon, the marking
541 -- process signals all enclosing scopes that an ignored Ghost node resides
542 -- within. The compilation unit where the node resides is also added to an
543 -- auxiliary table for post processing.
545 -- After the analysis and expansion of all compilation units takes place
546 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
547 -- driver initiates a separate pass which removes all ignored Ghost nodes
548 -- from all units stored in the auxiliary table.
550 --------------------
551 -- GNATprove Mode --
552 --------------------
554 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
555 -- expansion is performed and the analysis must generate a tree in a
556 -- form that meets additional requirements.
558 -- This light expansion does two transformations of the tree that cannot
559 -- be postponed till after semantic analysis:
561 -- 1. Replace object renamings by renamed object. This requires the
562 -- introduction of temporaries at the point of the renaming, which
563 -- must be properly analyzed.
565 -- 2. Fully qualify entity names. This is needed to generate suitable
566 -- local effects and call-graphs in ALI files, with the completely
567 -- qualified names (in particular the suffix to distinguish homonyms).
569 -- The tree after this light expansion should be fully analyzed
570 -- semantically, which sometimes requires the insertion of semantic
571 -- preanalysis, for example for subprogram contracts and pragma
572 -- check/assert. In particular, all expression must have their proper type,
573 -- and semantic links should be set between tree nodes (partial to full
574 -- view, etc.) Some kinds of nodes should be either absent, or can be
575 -- ignored by the formal verification backend:
577 -- N_Object_Renaming_Declaration: can be ignored safely
578 -- N_Expression_Function: absent (rewritten)
579 -- N_Expression_With_Actions: absent (not generated)
581 -- SPARK cross-references are generated from the regular cross-references
582 -- (used for browsing and code understanding) and additional references
583 -- collected during semantic analysis, in particular on all dereferences.
584 -- These SPARK cross-references are output in a separate section of ALI
585 -- files, as described in spark_xrefs.adb. They are the basis for the
586 -- computation of data dependences in GNATprove. This implies that all
587 -- cross-references should be generated in this mode, even those that would
588 -- not make sense from a user point-of-view, and that cross-references that
589 -- do not lead to data dependences for subprograms can be safely ignored.
591 -- GNATprove relies on the following front end behaviors:
593 -- 1. The first declarations in the list of visible declarations of
594 -- a package declaration for a generic instance, up to the first
595 -- declaration which comes from source, should correspond to
596 -- the "mappings nodes" between formal and actual generic parameters.
598 -- 2. In addition pragma Debug statements are removed from the tree
599 -- (rewritten to NULL stmt), since they should be ignored in formal
600 -- verification.
602 -- 3. An error is also issued for missing subunits, similar to the
603 -- warning issued when generating code, to avoid formal verification
604 -- of a partial unit.
606 -- 4. Unconstrained types are not replaced by constrained types whose
607 -- bounds are generated from an expression: Expand_Subtype_From_Expr
608 -- should be a no-op.
610 -- 5. Errors (instead of warnings) are issued on compile-time-known
611 -- constraint errors even though such cases do not correspond to
612 -- illegalities in the Ada RM (this is simply another case where
613 -- GNATprove implements a subset of the full language).
615 -- However, there are a few exceptions to this rule for cases where
616 -- we want to allow the GNATprove analysis to proceed (e.g. range
617 -- checks on empty ranges, which typically appear in deactivated
618 -- code in a particular configuration).
620 -- 6. Subtypes should match in the AST, even after a generic is
621 -- instantiated. In particular, GNATprove relies on the fact that,
622 -- on a selected component, the type of the selected component is
623 -- the type of the corresponding component in the prefix of the
624 -- selected component.
626 -- Note that, in some cases, we know that this rule is broken by the
627 -- frontend. In particular, if the selected component is a packed
628 -- array depending on a discriminant of a unconstrained formal object
629 -- parameter of a generic.
631 ----------------
632 -- SPARK Mode --
633 ----------------
635 -- The SPARK RM 1.6.5 defines a mode of operation called "SPARK mode" which
636 -- starts a scope where the SPARK language semantics are either On, Off, or
637 -- Auto, where Auto leaves the choice to the tools. A SPARK mode may be
638 -- specified by means of an aspect or a pragma.
640 -- The following entities may be subject to a SPARK mode. Entities marked
641 -- with * may possess two differente SPARK modes.
643 -- E_Entry
644 -- E_Entry_Family
645 -- E_Function
646 -- E_Generic_Function
647 -- E_Generic_Package *
648 -- E_Generic_Procedure
649 -- E_Operator
650 -- E_Package *
651 -- E_Package_Body *
652 -- E_Procedure
653 -- E_Protected_Body
654 -- E_Protected_Subtype
655 -- E_Protected_Type *
656 -- E_Subprogram_Body
657 -- E_Task_Body
658 -- E_Task_Subtype
659 -- E_Task_Type *
660 -- E_Variable
662 -- In order to manage SPARK scopes, the compiler relies on global variables
663 -- SPARK_Mode and SPARK_Mode_Pragma and a mechanism called "SPARK regions."
664 -- Routines Install_SPARK_Mode and Set_SPARK_Mode create a new SPARK region
665 -- and routine Restore_SPARK_Mode ends a SPARK region. A region may be
666 -- reinstalled similarly to scopes.
668 -----------------------
669 -- Check Flag Fields --
670 -----------------------
672 -- The following flag fields appear in expression nodes:
674 -- Do_Division_Check
675 -- Do_Overflow_Check
676 -- Do_Range_Check
678 -- These three flags are always set by the front end during semantic
679 -- analysis, on expression nodes that may trigger the corresponding
680 -- check. The front end then inserts or not the check during expansion. In
681 -- particular, these flags should also be correctly set in GNATprove mode.
682 -- As a special case, the front end does not insert a Do_Division_Check
683 -- flag on float exponentiation expressions, for the case where the value
684 -- is 0.0 and the exponent is negative, although this case does lead to a
685 -- division check failure. As another special case, the front end does not
686 -- insert a Do_Range_Check on an allocator where the designated type is
687 -- scalar, and the designated type is more constrained than the type of the
688 -- initialized allocator value or the type of the default value for an
689 -- uninitialized allocator.
691 -- Note that the expander always takes care of the Do_Range_Check case, so
692 -- this flag will never be set in the expanded tree passed to the back end.
693 -- For the other two flags, the check can be generated either by the back
694 -- end or by the front end, depending on the setting of a target parameter.
696 -- Note that this accounts for all nodes that trigger the corresponding
697 -- checks, except for range checks on subtype_indications, which may be
698 -- required to check that a range_constraint is compatible with the given
699 -- subtype (RM 3.2.2(11)).
701 -- The following flag fields appear in various nodes:
703 -- Do_Accessibility_Check
704 -- Do_Discriminant_Check
705 -- Do_Length_Check
706 -- Do_Storage_Check
707 -- Do_Tag_Check
709 -- These flags are used in some specific cases by the front end, either
710 -- during semantic analysis or during expansion, and cannot be expected
711 -- to be set on all nodes that trigger the corresponding check.
713 ------------------------
714 -- Common Flag Fields --
715 ------------------------
717 -- The following flag fields appear in all nodes:
719 -- Analyzed
720 -- This flag is used to indicate that a node (and all its children) have
721 -- been analyzed. It is used to avoid reanalysis of a node that has
722 -- already been analyzed, both for efficiency and functional correctness
723 -- reasons.
725 -- Comes_From_Source
726 -- This flag is set if the node comes directly from an explicit construct
727 -- in the source. It is normally on for any nodes built by the scanner or
728 -- parser from the source program, with the exception that in a few cases
729 -- the parser adds nodes to normalize the representation (in particular
730 -- a null statement is added to a package body if there is no begin/end
731 -- initialization section.
733 -- Most nodes inserted by the analyzer or expander are not considered
734 -- as coming from source, so the flag is off for such nodes. In a few
735 -- cases, the expander constructs nodes closely equivalent to nodes
736 -- from the source program (e.g. the allocator built for build-in-place
737 -- case), and the Comes_From_Source flag is deliberately set.
739 -- Error_Posted
740 -- This flag is used to avoid multiple error messages being posted on or
741 -- referring to the same node. This flag is set if an error message
742 -- refers to a node or is posted on its source location, and has the
743 -- effect of inhibiting further messages involving this same node.
745 -----------------------
746 -- Modify_Tree_For_C --
747 -----------------------
749 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
750 -- in ways that help match the semantics better with C, easing the task of
751 -- interfacing to C code generators (other than GCC, where the work is done
752 -- in gigi, and there is no point in changing that), and also making life
753 -- easier for Cprint in generating C source code.
755 -- The current modifications implemented are as follows:
757 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
758 -- are eliminated from the tree (since these operations do not exist in
759 -- C), and the operations are rewritten in terms of logical shifts and
760 -- other logical operations that do exist in C. See Exp_Ch4 expansion
761 -- routines for these operators for details of the transformations made.
763 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
764 -- less than the word size (since other values are not well-defined in
765 -- C). This is done using an explicit test if necessary.
767 -- Min and Max attributes are expanded into equivalent if expressions,
768 -- dealing properly with side effect issues.
770 -- Mod for signed integer types is expanded into equivalent expressions
771 -- using Rem (which is % in C) and other C-available operators.
773 -- Functions returning bounded arrays are transformed into procedures
774 -- with an extra out parameter, and the calls updated accordingly.
776 -- Aggregates are only kept unexpanded for object declarations, otherwise
777 -- they are systematically expanded into loops (for arrays) and
778 -- individual assignments (for records).
780 -- Unconstrained array types are handled by means of fat pointers.
782 -- Postconditions are inlined by the frontend since their body may have
783 -- references to itypes defined in the enclosing subprogram.
785 ------------------------------------
786 -- Description of Semantic Fields --
787 ------------------------------------
789 -- The meaning of the syntactic fields is generally clear from their names
790 -- without any further description, since the names are chosen to
791 -- correspond very closely to the syntax in the reference manual. This
792 -- section describes the usage of the semantic fields, which are used to
793 -- contain additional information determined during semantic analysis.
795 -- Accept_Handler_Records (List5-Sem)
796 -- This field is present only in an N_Accept_Alternative node. It is used
797 -- to temporarily hold the exception handler records from an accept
798 -- statement in a selective accept. These exception handlers will
799 -- eventually be placed in the Handler_Records list of the procedure
800 -- built for this accept (see Expand_N_Selective_Accept procedure in
801 -- Exp_Ch9 for further details).
803 -- Access_Types_To_Process (Elist2-Sem)
804 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
805 -- Contains the list of access types which may require specific treatment
806 -- when the nature of the type completion is completely known. An example
807 -- of such treatment is the generation of the associated_final_chain.
809 -- Actions (List1-Sem)
810 -- This field contains a sequence of actions that are associated with the
811 -- node holding the field. See the individual node types for details of
812 -- how this field is used, as well as the description of the specific use
813 -- for a particular node type.
815 -- Activation_Chain_Entity (Node3-Sem)
816 -- This is used in tree nodes representing task activators (blocks,
817 -- subprogram bodies, package declarations, and task bodies). It is
818 -- initially Empty, and then gets set to point to the entity for the
819 -- declared Activation_Chain variable when the first task is declared.
820 -- When tasks are declared in the corresponding declarative region this
821 -- entity is located by name (its name is always _Chain) and the declared
822 -- tasks are added to the chain. Note that N_Extended_Return_Statement
823 -- does not have this attribute, although it does have an activation
824 -- chain. This chain is used to store the tasks temporarily, and is not
825 -- used for activating them. On successful completion of the return
826 -- statement, the tasks are moved to the caller's chain, and the caller
827 -- activates them.
829 -- Acts_As_Spec (Flag4-Sem)
830 -- A flag set in the N_Subprogram_Body node for a subprogram body which
831 -- is acting as its own spec. In the case of a library-level subprogram
832 -- the flag is set as well on the parent compilation unit node.
834 -- Actual_Designated_Subtype (Node4-Sem)
835 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
836 -- needs to known the dynamic constrained subtype of the designated
837 -- object, this attribute is set to that type. This is done for
838 -- N_Free_Statements for access-to-classwide types and access to
839 -- unconstrained packed array types, and for N_Explicit_Dereference when
840 -- the designated type is an unconstrained packed array and the
841 -- dereference is the prefix of a 'Size attribute reference.
843 -- Address_Warning_Posted (Flag18-Sem)
844 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
845 -- posted a warning for the address clause regarding size or alignment
846 -- issues. Used to inhibit multiple redundant messages.
848 -- Aggregate_Bounds (Node3-Sem)
849 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
850 -- known at compile time, this field points to an N_Range node with those
851 -- bounds. Otherwise Empty.
853 -- Alloc_For_BIP_Return (Flag1-Sem)
854 -- Present in N_Allocator nodes. True if the allocator is one of those
855 -- generated for a build-in-place return statement.
857 -- All_Others (Flag11-Sem)
858 -- Present in an N_Others_Choice node. This flag is set for an others
859 -- exception where all exceptions are to be caught, even those that are
860 -- not normally handled (in particular the tasking abort signal). This
861 -- is used for translation of the at end handler into a normal exception
862 -- handler.
864 -- Aspect_On_Partial_View (Flag18)
865 -- Present on an N_Aspect_Specification node. For an aspect that applies
866 -- to a type entity, indicates whether the specification appears on the
867 -- partial view of a private type or extension. Undefined for aspects
868 -- that apply to other entities.
870 -- Aspect_Rep_Item (Node2-Sem)
871 -- Present in N_Aspect_Specification nodes. Points to the corresponding
872 -- pragma/attribute definition node used to process the aspect.
874 -- Assignment_OK (Flag15-Sem)
875 -- This flag is set in a subexpression node for an object, indicating
876 -- that the associated object can be modified, even if this would not
877 -- normally be permissible (either by direct assignment, or by being
878 -- passed as an out or in-out parameter). This is used by the expander
879 -- for a number of purposes, including initialization of constants and
880 -- limited type objects (such as tasks), setting discriminant fields,
881 -- setting tag values, etc. N_Object_Declaration nodes also have this
882 -- flag defined. Here it is used to indicate that an initialization
883 -- expression is valid, even where it would normally not be allowed
884 -- (e.g. where the type involved is limited). It is also used to stop
885 -- a Force_Evaluation call for an unchecked conversion, but this usage
886 -- is unclear and not documented ???
888 -- Associated_Node (Node4-Sem)
889 -- Present in nodes that can denote an entity: identifiers, character
890 -- literals, operator symbols, expanded names, operator nodes, and
891 -- attribute reference nodes (all these nodes have an Entity field).
892 -- This field is also present in N_Aggregate, N_Selected_Component, and
893 -- N_Extension_Aggregate nodes. This field is used in generic processing
894 -- to create links between the generic template and the generic copy.
895 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
896 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
897 -- the normal function of Entity is not required at the point where the
898 -- Associated_Node is set. Note also, that in generic templates, this
899 -- means that the Entity field does not necessarily point to an Entity.
900 -- Since the back end is expected to ignore generic templates, this is
901 -- harmless.
903 -- Atomic_Sync_Required (Flag14-Sem)
904 -- This flag is set on a node for which atomic synchronization is
905 -- required for the corresponding reference or modification.
907 -- At_End_Proc (Node1)
908 -- This field is present in an N_Handled_Sequence_Of_Statements node.
909 -- It contains an identifier reference for the cleanup procedure to be
910 -- called. See description of this node for further details.
912 -- Backwards_OK (Flag6-Sem)
913 -- A flag present in the N_Assignment_Statement node. It is used only
914 -- if the type being assigned is an array type, and is set if analysis
915 -- determines that it is definitely safe to do the copy backwards, i.e.
916 -- starting at the highest addressed element. This is the case if either
917 -- the operands do not overlap, or they may overlap, but if they do,
918 -- then the left operand is at a higher address than the right operand.
920 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
921 -- means that the front end could not determine that either direction is
922 -- definitely safe, and a runtime check may be required if the backend
923 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
924 -- set, it means that the front end can assure no overlap of operands.
926 -- Body_To_Inline (Node3-Sem)
927 -- Present in subprogram declarations. Denotes analyzed but unexpanded
928 -- body of subprogram, to be used when inlining calls. Present when the
929 -- subprogram has an Inline pragma and inlining is enabled. If the
930 -- declaration is completed by a renaming_as_body, and the renamed entity
931 -- is a subprogram, the Body_To_Inline is the name of that entity, which
932 -- is used directly in later calls to the original subprogram.
934 -- Body_Required (Flag13-Sem)
935 -- A flag that appears in the N_Compilation_Unit node indicating that
936 -- the corresponding unit requires a body. For the package case, this
937 -- indicates that a completion is required. In Ada 95, if the flag is not
938 -- set for the package case, then a body may not be present. In Ada 83,
939 -- if the flag is not set for the package case, then body is optional.
940 -- For a subprogram declaration, the flag is set except in the case where
941 -- a pragma Import or Interface applies, in which case no body is
942 -- permitted (in Ada 83 or Ada 95).
944 -- By_Ref (Flag5-Sem)
945 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
946 -- this flag is set when the returned expression is already allocated on
947 -- the secondary stack and thus the result is passed by reference rather
948 -- than copied another time.
950 -- Cleanup_Actions (List5-Sem)
951 -- Present in block statements created for transient blocks, contains
952 -- additional cleanup actions carried over from the transient scope.
954 -- Check_Address_Alignment (Flag11-Sem)
955 -- A flag present in N_Attribute_Definition clause for a 'Address
956 -- attribute definition. This flag is set if a dynamic check should be
957 -- generated at the freeze point for the entity to which this address
958 -- clause applies. The reason that we need this flag is that we want to
959 -- check for range checks being suppressed at the point where the
960 -- attribute definition clause is given, rather than testing this at the
961 -- freeze point.
963 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
964 -- Present in N_Simple_Return_Statement nodes. True if this node was
965 -- constructed as part of the N_Extended_Return_Statement expansion.
967 -- Compile_Time_Known_Aggregate (Flag18-Sem)
968 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
969 -- evaluated at compile time without raising constraint error. Such
970 -- aggregates can be passed as is to the back end without any expansion.
971 -- See Exp_Aggr for specific conditions under which this flag gets set.
973 -- Componentwise_Assignment (Flag14-Sem)
974 -- Present in N_Assignment_Statement nodes. Set for a record assignment
975 -- where all that needs doing is to expand it into component-by-component
976 -- assignments. This is used internally for the case of tagged types with
977 -- rep clauses, where we need to avoid recursion (we don't want to try to
978 -- generate a call to the primitive operation, because this is the case
979 -- where we are compiling the primitive operation). Note that when we are
980 -- expanding component assignments in this case, we never assign the _tag
981 -- field, but we recursively assign components of the parent type.
983 -- Condition_Actions (List3-Sem)
984 -- This field appears in else-if nodes and in the iteration scheme node
985 -- for while loops. This field is only used during semantic processing to
986 -- temporarily hold actions inserted into the tree. In the tree passed
987 -- to gigi, the condition actions field is always set to No_List. For
988 -- details on how this field is used, see the routine Insert_Actions in
989 -- package Exp_Util, and also the expansion routines for the relevant
990 -- nodes.
992 -- Context_Pending (Flag16-Sem)
993 -- This field appears in Compilation_Unit nodes, to indicate that the
994 -- context of the unit is being compiled. Used to detect circularities
995 -- that are not otherwise detected by the loading mechanism. Such
996 -- circularities can occur in the presence of limited and non-limited
997 -- with_clauses that mention the same units.
999 -- Controlling_Argument (Node1-Sem)
1000 -- This field is set in procedure and function call nodes if the call
1001 -- is a dispatching call (it is Empty for a non-dispatching call). It
1002 -- indicates the source of the call's controlling tag. For procedure
1003 -- calls, the Controlling_Argument is one of the actuals. For function
1004 -- that has a dispatching result, it is an entity in the context of the
1005 -- call that can provide a tag, or else it is the tag of the root type
1006 -- of the class. It can also specify a tag directly rather than being a
1007 -- tagged object. The latter is needed by the implementations of AI-239
1008 -- and AI-260.
1010 -- Conversion_OK (Flag14-Sem)
1011 -- A flag set on type conversion nodes to indicate that the conversion
1012 -- is to be considered as being valid, even though it is the case that
1013 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1014 -- Pos, Val, Fixed_Value and Integer_Value, for internal conversions done
1015 -- for fixed-point operations, and for certain conversions for calls to
1016 -- initialization procedures. If Conversion_OK is set, then Etype must be
1017 -- set (the analyzer assumes that Etype has been set). For the case of
1018 -- fixed-point operands, it also indicates that the conversion is to be
1019 -- direct conversion of the underlying integer result, with no regard to
1020 -- the small operand.
1022 -- Convert_To_Return_False (Flag13-Sem)
1023 -- Present in N_Raise_Expression nodes that appear in the body of the
1024 -- special predicateM function used to test a predicate in the context
1025 -- of a membership test, where raise expression results in returning a
1026 -- value of False rather than raising an exception.???obsolete flag
1028 -- Corresponding_Aspect (Node3-Sem)
1029 -- Present in N_Pragma node. Used to point back to the source aspect from
1030 -- the corresponding pragma. This field is Empty for source pragmas.
1032 -- Corresponding_Body (Node5-Sem)
1033 -- This field is set in subprogram declarations, package declarations,
1034 -- entry declarations of protected types, and in generic units. It points
1035 -- to the defining entity for the corresponding body (NOT the node for
1036 -- the body itself).
1038 -- Corresponding_Formal_Spec (Node3-Sem)
1039 -- This field is set in subprogram renaming declarations, where it points
1040 -- to the defining entity for a formal subprogram in the case where the
1041 -- renaming corresponds to a generic formal subprogram association in an
1042 -- instantiation. The field is Empty if the renaming does not correspond
1043 -- to such a formal association.
1045 -- Corresponding_Generic_Association (Node5-Sem)
1046 -- This field is defined for object declarations and object renaming
1047 -- declarations. It is set for the declarations within an instance that
1048 -- map generic formals to their actuals. If set, the field points either
1049 -- to a copy of a default expression for an actual of mode IN or to a
1050 -- generic_association which is the original parent of the expression or
1051 -- name appearing in the declaration. This simplifies GNATprove queries.
1053 -- Corresponding_Integer_Value (Uint4-Sem)
1054 -- This field is set in real literals of fixed-point types (it is not
1055 -- used for floating-point types). It contains the integer value used
1056 -- to represent the fixed-point value. It is also set on the universal
1057 -- real literals used to represent bounds of fixed-point base types
1058 -- and their first named subtypes.
1060 -- Corresponding_Spec (Node5-Sem)
1061 -- This field is set in subprogram, package, task, and protected body
1062 -- nodes, where it points to the defining entity in the corresponding
1063 -- spec. The attribute is also set in N_With_Clause nodes where it points
1064 -- to the defining entity for the with'ed spec, and in a subprogram
1065 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1066 -- if there is no corresponding spec, as in the case of a subprogram body
1067 -- that serves as its own spec.
1069 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1070 -- complete a subprogram declaration.
1072 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1073 -- This field is present in subprogram, package, task, and protected body
1074 -- stubs where it points to the corresponding spec of the stub. Due to
1075 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1077 -- Corresponding_Stub (Node3-Sem)
1078 -- This field is present in an N_Subunit node. It holds the node in
1079 -- the parent unit that is the stub declaration for the subunit. It is
1080 -- set when analysis of the stub forces loading of the proper body. If
1081 -- expansion of the proper body creates new declarative nodes, they are
1082 -- inserted at the point of the corresponding_stub.
1084 -- Dcheck_Function (Node5-Sem)
1085 -- This field is present in an N_Variant node, It references the entity
1086 -- for the discriminant checking function for the variant.
1088 -- Default_Expression (Node5-Sem)
1089 -- This field is Empty if there is no default expression. If there is a
1090 -- simple default expression (one with no side effects), then this field
1091 -- simply contains a copy of the Expression field (both point to the tree
1092 -- for the default expression). Default_Expression is used for
1093 -- conformance checking.
1095 -- Default_Storage_Pool (Node3-Sem)
1096 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1097 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1098 -- package Opt for details. This is used for inheriting the
1099 -- Default_Storage_Pool in child units.
1101 -- Discr_Check_Funcs_Built (Flag11-Sem)
1102 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1103 -- discriminant checking functions are constructed. The purpose is to
1104 -- avoid attempting to set these functions more than once.
1106 -- Do_Accessibility_Check (Flag13-Sem)
1107 -- This flag is set on N_Parameter_Specification nodes to indicate
1108 -- that an accessibility check is required for the parameter. It is
1109 -- not yet decided who takes care of this check (TBD ???).
1111 -- Do_Discriminant_Check (Flag3-Sem)
1112 -- This flag is set on N_Selected_Component nodes to indicate that a
1113 -- discriminant check is required using the discriminant check routine
1114 -- associated with the selector. The actual check is generated by the
1115 -- expander when processing selected components. In the case of
1116 -- Unchecked_Union, the flag is also set, but no discriminant check
1117 -- routine is associated with the selector, and the expander does not
1118 -- generate a check. This flag is also present in assignment statements
1119 -- (and set if the assignment requires a discriminant check), and in type
1120 -- conversion nodes (and set if the conversion requires a check).
1122 -- Do_Division_Check (Flag13-Sem)
1123 -- This flag is set on a division operator (/ mod rem) to indicate that
1124 -- a zero divide check is required. The actual check is either dealt with
1125 -- by the back end if Backend_Divide_Checks is set to true, or by the
1126 -- front end itself if it is set to false.
1128 -- Do_Length_Check (Flag4-Sem)
1129 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1130 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1131 -- is required. It is not determined who deals with this flag (???).
1133 -- Do_Overflow_Check (Flag17-Sem)
1134 -- This flag is set on an operator where an overflow check is required on
1135 -- the operation. The actual check is either dealt with by the back end
1136 -- if Backend_Overflow_Checks is set to true, or by the front end itself
1137 -- if it is set to false. The other cases where this flag is used is on a
1138 -- Type_Conversion node as well on if and case expression nodes.
1139 -- For a type conversion, it means that the conversion is from one base
1140 -- type to another, and the value may not fit in the target base type.
1141 -- See also the description of Do_Range_Check for this case. This flag is
1142 -- also set on if and case expression nodes if we are operating in either
1143 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1144 -- properly process overflow checking for dependent expressions).
1146 -- Do_Range_Check (Flag9-Sem)
1147 -- This flag is set on an expression which appears in a context where a
1148 -- range check is required. The target type is clear from the context.
1149 -- The contexts in which this flag can appear are the following:
1151 -- Right side of an assignment. In this case the target type is taken
1152 -- from the left side of the assignment, which is referenced by the
1153 -- Name of the N_Assignment_Statement node.
1155 -- Subscript expressions in an indexed component. In this case the
1156 -- target type is determined from the type of the array, which is
1157 -- referenced by the Prefix of the N_Indexed_Component node.
1159 -- Argument expression for a parameter, appearing either directly in
1160 -- the Parameter_Associations list of a call or as the Expression of an
1161 -- N_Parameter_Association node that appears in this list. In either
1162 -- case, the check is against the type of the formal. Note that the
1163 -- flag is relevant only in IN and IN OUT parameters, and will be
1164 -- ignored for OUT parameters, where no check is required in the call,
1165 -- and if a check is required on the return, it is generated explicitly
1166 -- with a type conversion.
1168 -- Initialization expression for the initial value in an object
1169 -- declaration. In this case the Do_Range_Check flag is set on
1170 -- the initialization expression, and the check is against the
1171 -- range of the type of the object being declared. This includes the
1172 -- cases of expressions providing default discriminant values, and
1173 -- expressions used to initialize record components.
1175 -- The expression of a type conversion. In this case the range check is
1176 -- against the target type of the conversion. See also the use of
1177 -- Do_Overflow_Check on a type conversion. The distinction is that the
1178 -- overflow check protects against a value that is outside the range of
1179 -- the target base type, whereas a range check checks that the
1180 -- resulting value (which is a value of the base type of the target
1181 -- type), satisfies the range constraint of the target type.
1183 -- Note: when a range check is required in contexts other than those
1184 -- listed above (e.g. in a return statement), an additional type
1185 -- conversion node is introduced to represent the required check.
1187 -- Do_Storage_Check (Flag17-Sem)
1188 -- This flag is set in an N_Allocator node to indicate that a storage
1189 -- check is required for the allocation, or in an N_Subprogram_Body node
1190 -- to indicate that a stack check is required in the subprogram prologue.
1191 -- The N_Allocator case is handled by the routine that expands the call
1192 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1193 -- backend, and all the semantics does is set the flag.
1195 -- Do_Tag_Check (Flag13-Sem)
1196 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1197 -- N_Procedure_Call_Statement, N_Type_Conversion,
1198 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1199 -- node to indicate that the tag check can be suppressed. It is not
1200 -- yet decided how this flag is used (TBD ???).
1202 -- Elaborate_Present (Flag4-Sem)
1203 -- This flag is set in the N_With_Clause node to indicate that pragma
1204 -- Elaborate pragma appears for the with'ed units.
1206 -- Elaborate_All_Desirable (Flag9-Sem)
1207 -- This flag is set in the N_With_Clause mode to indicate that the static
1208 -- elaboration processing has determined that an Elaborate_All pragma is
1209 -- desirable for correct elaboration for this unit.
1211 -- Elaborate_All_Present (Flag14-Sem)
1212 -- This flag is set in the N_With_Clause node to indicate that a
1213 -- pragma Elaborate_All pragma appears for the with'ed units.
1215 -- Elaborate_Desirable (Flag11-Sem)
1216 -- This flag is set in the N_With_Clause mode to indicate that the static
1217 -- elaboration processing has determined that an Elaborate pragma is
1218 -- desirable for correct elaboration for this unit.
1220 -- Else_Actions (List3-Sem)
1221 -- This field is present in if expression nodes. During code
1222 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1223 -- actions at an appropriate place in the tree to get elaborated at the
1224 -- right time. For if expressions, we have to be sure that the actions
1225 -- for the Else branch are only elaborated if the condition is False.
1226 -- The Else_Actions field is used as a temporary parking place for
1227 -- these actions. The final tree is always rewritten to eliminate the
1228 -- need for this field, so in the tree passed to Gigi, this field is
1229 -- always set to No_List.
1231 -- Enclosing_Variant (Node2-Sem)
1232 -- This field is present in the N_Variant node and identifies the Node_Id
1233 -- corresponding to the immediately enclosing variant when the variant is
1234 -- nested, and N_Empty otherwise. Set during semantic processing of the
1235 -- variant part of a record type.
1237 -- Entity (Node4-Sem)
1238 -- Appears in all direct names (identifiers, character literals, and
1239 -- operator symbols), as well as expanded names, and attributes that
1240 -- denote entities, such as 'Class. Points to entity for corresponding
1241 -- defining occurrence. Set after name resolution. For identifiers in a
1242 -- WITH list, the corresponding defining occurrence is in a separately
1243 -- compiled file, and Entity must be set by the library Load procedure.
1245 -- Note: During name resolution, the value in Entity may be temporarily
1246 -- incorrect (e.g. during overload resolution, Entity is initially set to
1247 -- the first possible correct interpretation, and then later modified if
1248 -- necessary to contain the correct value after resolution).
1250 -- Note: This field overlaps Associated_Node, which is used during
1251 -- generic processing (see Sem_Ch12 for details). Note also that in
1252 -- generic templates, this means that the Entity field does not always
1253 -- point to an Entity. Since the back end is expected to ignore generic
1254 -- templates, this is harmless.
1256 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1257 -- It is used only for stream attributes definition clauses. In this
1258 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1259 -- conceptually at the point of the clause. Thus the visibility of the
1260 -- attribute definition clause (in the sense of 8.3(23) as amended by
1261 -- AI-195) can be checked by testing the visibility of that subprogram.
1263 -- Note: Normally the Entity field of an identifier points to the entity
1264 -- for the corresponding defining identifier, and hence the Chars field
1265 -- of an identifier will match the Chars field of the entity. However,
1266 -- there is no requirement that these match, and there are obscure cases
1267 -- of generated code where they do not match.
1269 -- Note: Ada 2012 aspect specifications require additional links between
1270 -- identifiers and various attributes. These attributes can be of
1271 -- arbitrary types, and the entity field of identifiers that denote
1272 -- aspects must be used to store arbitrary expressions for later semantic
1273 -- checks. See section on aspect specifications for details.
1275 -- Entity_Or_Associated_Node (Node4-Sem)
1276 -- A synonym for both Entity and Associated_Node. Used by convention in
1277 -- the code when referencing this field in cases where it is not known
1278 -- whether the field contains an Entity or an Associated_Node.
1280 -- Etype (Node5-Sem)
1281 -- Appears in all expression nodes, all direct names, and all entities.
1282 -- Points to the entity for the related type. Set after type resolution.
1283 -- Normally this is the actual subtype of the expression. However, in
1284 -- certain contexts such as the right side of an assignment, subscripts,
1285 -- arguments to calls, returned value in a function, initial value etc.
1286 -- it is the desired target type. In the event that this is different
1287 -- from the actual type, the Do_Range_Check flag will be set if a range
1288 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1289 -- points to an essentially arbitrary choice from the possible set of
1290 -- types.
1292 -- Exception_Junk (Flag8-Sem)
1293 -- This flag is set in a various nodes appearing in a statement sequence
1294 -- to indicate that the corresponding node is an artifact of the
1295 -- generated code for exception handling, and should be ignored when
1296 -- analyzing the control flow of the relevant sequence of statements
1297 -- (e.g. to check that it does not end with a bad return statement).
1299 -- Exception_Label (Node5-Sem)
1300 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1301 -- to be used for transforming the corresponding exception into a goto,
1302 -- or contains Empty, if this exception is not to be transformed. Also
1303 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1304 -- that there may be a local raise for the handler, so that expansion
1305 -- to allow a goto is required (and this field contains the label for
1306 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1308 -- Expansion_Delayed (Flag11-Sem)
1309 -- Set on aggregates and extension aggregates that need a top-down rather
1310 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1311 -- up. For nested aggregates the expansion is delayed until the enclosing
1312 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1313 -- delay it we set this flag. This is done to avoid creating a temporary
1314 -- for each level of a nested aggregate, and also to prevent the
1315 -- premature generation of constraint checks. This is also a requirement
1316 -- if we want to generate the proper attachment to the internal????
1317 -- finalization lists (for record with controlled components). Top down
1318 -- expansion of aggregates is also used for in-place array aggregate
1319 -- assignment or initialization. When the full context is known, the
1320 -- target of the assignment or initialization is used to generate the
1321 -- left-hand side of individual assignment to each sub-component.
1323 -- Expression_Copy (Node2-Sem)
1324 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1325 -- original expression. This field is best used to store pragma-dependent
1326 -- modifications performed on the original expression such as replacement
1327 -- of the current type instance or substitutions of primitives.
1329 -- First_Inlined_Subprogram (Node3-Sem)
1330 -- Present in the N_Compilation_Unit node for the main program. Points
1331 -- to a chain of entities for subprograms that are to be inlined. The
1332 -- Next_Inlined_Subprogram field of these entities is used as a link
1333 -- pointer with Empty marking the end of the list. This field is Empty
1334 -- if there are no inlined subprograms or inlining is not active.
1336 -- First_Named_Actual (Node4-Sem)
1337 -- Present in procedure call statement and function call nodes, and also
1338 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1339 -- named parameter where parameters are ordered by declaration order (as
1340 -- opposed to the actual order in the call which may be different due to
1341 -- named associations). Note: this field points to the explicit actual
1342 -- parameter itself, not the N_Parameter_Association node (its parent).
1344 -- First_Real_Statement (Node2-Sem)
1345 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1346 -- Empty. Used only when declarations are moved into the statement part
1347 -- of a construct as a result of wrapping an AT END handler that is
1348 -- required to cover the declarations. In this case, this field is used
1349 -- to remember the location in the statements list of the first real
1350 -- statement, i.e. the statement that used to be first in the statement
1351 -- list before the declarations were prepended.
1353 -- First_Subtype_Link (Node5-Sem)
1354 -- Present in N_Freeze_Entity node for an anonymous base type that is
1355 -- implicitly created by the declaration of a first subtype. It points
1356 -- to the entity for the first subtype.
1358 -- Float_Truncate (Flag11-Sem)
1359 -- A flag present in type conversion nodes. This is used for float to
1360 -- integer conversions where truncation is required rather than rounding.
1362 -- Forwards_OK (Flag5-Sem)
1363 -- A flag present in the N_Assignment_Statement node. It is used only
1364 -- if the type being assigned is an array type, and is set if analysis
1365 -- determines that it is definitely safe to do the copy forwards, i.e.
1366 -- starting at the lowest addressed element. This is the case if either
1367 -- the operands do not overlap, or they may overlap, but if they do,
1368 -- then the left operand is at a lower address than the right operand.
1370 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1371 -- means that the front end could not determine that either direction is
1372 -- definitely safe, and a runtime check may be required if the backend
1373 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1374 -- set, it means that the front end can assure no overlap of operands.
1376 -- From_Aspect_Specification (Flag13-Sem)
1377 -- Processing of aspect specifications typically results in insertion in
1378 -- the tree of corresponding pragma or attribute definition clause nodes.
1379 -- These generated nodes have the From_Aspect_Specification flag set to
1380 -- indicate that they came from aspect specifications originally.
1382 -- From_At_End (Flag4-Sem)
1383 -- This flag is set on an N_Raise_Statement node if it corresponds to
1384 -- the reraise statement generated as the last statement of an AT END
1385 -- handler when SJLJ exception handling is active. It is used to stop
1386 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1387 -- because if the restriction is set, the reraise is not generated.
1389 -- From_At_Mod (Flag4-Sem)
1390 -- This flag is set on the attribute definition clause node that is
1391 -- generated by a transformation of an at mod phrase in a record
1392 -- representation clause. This is used to give slightly different (Ada 83
1393 -- compatible) semantics to such a clause, namely it is used to specify a
1394 -- minimum acceptable alignment for the base type and all subtypes. In
1395 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1396 -- must be a multiple of the given value, and the representation clause
1397 -- is considered to be type specific instead of subtype specific.
1399 -- From_Conditional_Expression (Flag1-Sem)
1400 -- This flag is set on if and case statements generated by the expansion
1401 -- of if and case expressions respectively. The flag is used to suppress
1402 -- any finalization of controlled objects found within these statements.
1404 -- From_Default (Flag6-Sem)
1405 -- This flag is set on the subprogram renaming declaration created in an
1406 -- instance for a formal subprogram, when the formal is declared with a
1407 -- box, and there is no explicit actual. If the flag is present, the
1408 -- declaration is treated as an implicit reference to the formal in the
1409 -- ali file.
1411 -- Generalized_Indexing (Node4-Sem)
1412 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1413 -- that are Ada 2012 container indexing operations. The value of the
1414 -- attribute is a function call (possibly dereferenced) that corresponds
1415 -- to the proper expansion of the source indexing operation. Before
1416 -- expansion, the source node is rewritten as the resolved generalized
1417 -- indexing.
1419 -- Generic_Parent (Node5-Sem)
1420 -- Generic_Parent is defined on declaration nodes that are instances. The
1421 -- value of Generic_Parent is the generic entity from which the instance
1422 -- is obtained.
1424 -- Generic_Parent_Type (Node4-Sem)
1425 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1426 -- actuals of formal private and derived types. Within the instance, the
1427 -- operations on the actual are those inherited from the parent. For a
1428 -- formal private type, the parent type is the generic type itself. The
1429 -- Generic_Parent_Type is also used in an instance to determine whether a
1430 -- private operation overrides an inherited one.
1432 -- Handler_List_Entry (Node2-Sem)
1433 -- This field is present in N_Object_Declaration nodes. It is set only
1434 -- for the Handler_Record entry generated for an exception in zero cost
1435 -- exception handling mode. It references the corresponding item in the
1436 -- handler list, and is used to delete this entry if the corresponding
1437 -- handler is deleted during optimization. For further details on why
1438 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1440 -- Has_Dereference_Action (Flag13-Sem)
1441 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1442 -- indicate that the expansion has aready produced a call to primitive
1443 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1444 -- Such dereference actions are produced for debugging purposes.
1446 -- Has_Dynamic_Length_Check (Flag10-Sem)
1447 -- This flag is present in all expression nodes. It is set to indicate
1448 -- that one of the routines in unit Checks has generated a length check
1449 -- action which has been inserted at the flagged node. This is used to
1450 -- avoid the generation of duplicate checks.
1452 -- Has_Local_Raise (Flag8-Sem)
1453 -- Present in exception handler nodes. Set if the handler can be entered
1454 -- via a local raise that gets transformed to a goto statement. This will
1455 -- always be set if Local_Raise_Statements is non-empty, but can also be
1456 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1457 -- nodes requiring generation of back end checks.
1459 -- Has_No_Elaboration_Code (Flag17-Sem)
1460 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1461 -- or not elaboration code is present for this unit. It is initially set
1462 -- true for subprogram specs and bodies and for all generic units and
1463 -- false for non-generic package specs and bodies. Gigi may set the flag
1464 -- in the non-generic package case if it determines that no elaboration
1465 -- code is generated. Note that this flag is not related to the
1466 -- Is_Preelaborated status, there can be preelaborated packages that
1467 -- generate elaboration code, and non-preelaborated packages which do
1468 -- not generate elaboration code.
1470 -- Has_Pragma_Suppress_All (Flag14-Sem)
1471 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1472 -- pragma appears anywhere in the unit. This accommodates the rather
1473 -- strange placement rules of other compilers (DEC permits it at the
1474 -- end of a unit, and Rational allows it as a program unit pragma). We
1475 -- allow it anywhere at all, and consider it equivalent to a pragma
1476 -- Suppress (All_Checks) appearing at the start of the configuration
1477 -- pragmas for the unit.
1479 -- Has_Private_View (Flag11-Sem)
1480 -- A flag present in generic nodes that have an entity, to indicate that
1481 -- the node has a private type. Used to exchange private and full
1482 -- declarations if the visibility at instantiation is different from the
1483 -- visibility at generic definition.
1485 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1486 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1487 -- flag the presence of a pragma Relative_Deadline.
1489 -- Has_Self_Reference (Flag13-Sem)
1490 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1491 -- of the expressions contains an access attribute reference to the
1492 -- enclosing type. Such a self-reference can only appear in default-
1493 -- initialized aggregate for a record type.
1495 -- Has_SP_Choice (Flag15-Sem)
1496 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1497 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1498 -- True if the Discrete_Choices list has at least one occurrence of a
1499 -- statically predicated subtype.
1501 -- Has_Storage_Size_Pragma (Flag5-Sem)
1502 -- A flag present in an N_Task_Definition node to flag the presence of a
1503 -- Storage_Size pragma.
1505 -- Has_Target_Names (Flag8-Sem)
1506 -- Present in assignment statements. Indicates that the RHS contains
1507 -- target names (see AI12-0125-3) and must be expanded accordingly.
1509 -- Has_Wide_Character (Flag11-Sem)
1510 -- Present in string literals, set if any wide character (i.e. character
1511 -- code outside the Character range but within Wide_Character range)
1512 -- appears in the string. Used to implement pragma preference rules.
1514 -- Has_Wide_Wide_Character (Flag13-Sem)
1515 -- Present in string literals, set if any wide character (i.e. character
1516 -- code outside the Wide_Character range) appears in the string. Used to
1517 -- implement pragma preference rules.
1519 -- Header_Size_Added (Flag11-Sem)
1520 -- Present in N_Attribute_Reference nodes, set only for attribute
1521 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1522 -- hidden list header used by the runtime finalization support has been
1523 -- added to the size of the prefix. The flag also prevents the infinite
1524 -- expansion of the same attribute in the said context.
1526 -- Hidden_By_Use_Clause (Elist5-Sem)
1527 -- An entity list present in use clauses that appear within
1528 -- instantiations. For the resolution of local entities, entities
1529 -- introduced by these use clauses have priority over global ones,
1530 -- and outer entities must be explicitly hidden/restored on exit.
1532 -- Implicit_With (Flag16-Sem)
1533 -- Present in N_With_Clause nodes. The flag indicates that the clause
1534 -- does not comes from source and introduces an implicit dependency on
1535 -- a particular unit. Such implicit with clauses are generated by:
1537 -- * ABE mechanism - The static elaboration model of both the default
1538 -- and the legacy ABE mechanism use with clauses to encode implicit
1539 -- Elaborate[_All] pragmas.
1541 -- * Analysis - A with clause for child unit A.B.C is equivalent to
1542 -- a series of clauses that with A, A.B, and A.B.C. Manipulation of
1543 -- contexts utilizes implicit with clauses to emulate the visibility
1544 -- of a particular unit.
1546 -- * RTSfind - The compiler generates code which references entities
1547 -- from the runtime.
1549 -- Import_Interface_Present (Flag16-Sem)
1550 -- This flag is set in an Interface or Import pragma if a matching
1551 -- pragma of the other kind is also present. This is used to avoid
1552 -- generating some unwanted error messages.
1554 -- Includes_Infinities (Flag11-Sem)
1555 -- This flag is present in N_Range nodes. It is set for the range of
1556 -- unconstrained float types defined in Standard, which include not only
1557 -- the given range of values, but also legitimately can include infinite
1558 -- values. This flag is false for any float type for which an explicit
1559 -- range is given by the programmer, even if that range is identical to
1560 -- the range for Float.
1562 -- Incomplete_View (Node2-Sem)
1563 -- Present in full type declarations that are completions of incomplete
1564 -- type declarations. Denotes the corresponding incomplete type
1565 -- declaration. Used to simplify the retrieval of primitive operations
1566 -- that may be declared between the partial and the full view of an
1567 -- untagged type.
1569 -- Inherited_Discriminant (Flag13-Sem)
1570 -- This flag is present in N_Component_Association nodes. It indicates
1571 -- that a given component association in an extension aggregate is the
1572 -- value obtained from a constraint on an ancestor. Used to prevent
1573 -- double expansion when the aggregate has expansion delayed.
1575 -- Instance_Spec (Node5-Sem)
1576 -- This field is present in generic instantiation nodes, and also in
1577 -- formal package declaration nodes (formal package declarations are
1578 -- treated in a manner very similar to package instantiations). It points
1579 -- to the node for the spec of the instance, inserted as part of the
1580 -- semantic processing for instantiations in Sem_Ch12.
1582 -- Is_Abort_Block (Flag4-Sem)
1583 -- Present in N_Block_Statement nodes. True if the block protects a list
1584 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1586 -- Is_Accessibility_Actual (Flag13-Sem)
1587 -- Present in N_Parameter_Association nodes. True if the parameter is
1588 -- an extra actual that carries the accessibility level of the actual
1589 -- for an access parameter, in a function that dispatches on result and
1590 -- is called in a dispatching context. Used to prevent a formal/actual
1591 -- mismatch when the call is rewritten as a dispatching call.
1593 -- Is_Analyzed_Pragma (Flag5-Sem)
1594 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1595 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1596 -- and verifies the overall legality of the pragma. The second step takes
1597 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1598 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1600 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1601 -- A flag set in a Block_Statement node to indicate that it is the
1602 -- expansion of an asynchronous entry call. Such a block needs cleanup
1603 -- handler to assure that the call is cancelled.
1605 -- Is_Boolean_Aspect (Flag16-Sem)
1606 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1607 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1609 -- Is_Checked (Flag11-Sem)
1610 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1611 -- assertion aspect or pragma, or check pragma for an assertion, that
1612 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1613 -- is set (they cannot both be set), then this means that the status of
1614 -- the pragma has been checked at the appropriate point and should not
1615 -- be further modified (in some cases these flags are copied when a
1616 -- pragma is rewritten).
1618 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1619 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1620 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1621 -- This flag has no relation to Is_Checked.
1623 -- Is_Component_Left_Opnd (Flag13-Sem)
1624 -- Is_Component_Right_Opnd (Flag14-Sem)
1625 -- Present in concatenation nodes, to indicate that the corresponding
1626 -- operand is of the component type of the result. Used in resolving
1627 -- concatenation nodes in instances.
1629 -- Is_Controlling_Actual (Flag16-Sem)
1630 -- This flag is set on an expression that is a controlling argument in
1631 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1632 -- details of its use.
1634 -- Is_Declaration_Level_Node (Flag5-Sem)
1635 -- Present in call marker and instantiation nodes. Set when the constuct
1636 -- appears within the declarations of a block statement, an entry body,
1637 -- a subprogram body, or a task body. The flag aids the ABE Processing
1638 -- phase to catch certain forms of guaranteed ABEs.
1640 -- Is_Delayed_Aspect (Flag14-Sem)
1641 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1642 -- come from aspect specifications, where the evaluation of the aspect
1643 -- must be delayed to the freeze point. This flag is also set True in
1644 -- the corresponding N_Aspect_Specification node.
1646 -- Is_Disabled (Flag15-Sem)
1647 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1648 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1649 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1650 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1651 -- If this flag is set, the aspect or policy is not analyzed for semantic
1652 -- correctness, so any expressions etc will not be marked as analyzed.
1654 -- Is_Dispatching_Call (Flag6-Sem)
1655 -- Present in call marker nodes. Set when the related call which prompted
1656 -- the creation of the marker is dispatching.
1658 -- Is_Dynamic_Coextension (Flag18-Sem)
1659 -- Present in allocator nodes, to indicate that this is an allocator
1660 -- for an access discriminant of a dynamically allocated object. The
1661 -- coextension must be deallocated and finalized at the same time as
1662 -- the enclosing object. The partner flag Is_Static_Coextension must
1663 -- be cleared before setting this flag to True.
1665 -- Is_Effective_Use_Clause (Flag1-Sem)
1666 -- Present in both N_Use_Type_Clause and N_Use_Package_Clause to indicate
1667 -- a use clause is "used" in the current source.
1669 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
1670 -- Present in the following nodes:
1672 -- assignment statement
1673 -- attribute reference
1674 -- call marker
1675 -- entry call statement
1676 -- expanded name
1677 -- function call
1678 -- function instantiation
1679 -- identifier
1680 -- package instantiation
1681 -- procedure call statement
1682 -- procedure instantiation
1683 -- requeue statement
1684 -- variable reference marker
1686 -- Set when the node appears within a context which allows the generation
1687 -- of run-time ABE checks. This flag detemines whether the ABE Processing
1688 -- phase generates conditional ABE checks and guaranteed ABE failures.
1690 -- Is_Elaboration_Code (Flag9-Sem)
1691 -- Present in assignment statements. Set for an assignment which updates
1692 -- the elaboration flag of a package or subprogram when the corresponding
1693 -- body is successfully elaborated.
1695 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
1696 -- Present in the following nodes:
1698 -- attribute reference
1699 -- call marker
1700 -- entry call statement
1701 -- expanded name
1702 -- function call
1703 -- function instantiation
1704 -- identifier
1705 -- package instantiation
1706 -- procedure call statement
1707 -- procedure instantiation
1708 -- requeue statement
1709 -- variable reference marker
1711 -- Set when the node appears within a context where elaboration warnings
1712 -- are enabled. This flag determines whether the ABE processing phase
1713 -- generates diagnostics on various elaboration issues.
1715 -- Is_Entry_Barrier_Function (Flag8-Sem)
1716 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1717 -- nodes which emulate the barrier function of a protected entry body.
1718 -- The flag is used when checking for incorrect use of Current_Task.
1720 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1721 -- This flag is set in an N_Function_Call node to indicate that the extra
1722 -- actuals to support a build-in-place style of call have been added to
1723 -- the call.
1725 -- Is_Expanded_Contract (Flag1-Sem)
1726 -- Present in N_Contract nodes. Set if the contract has already undergone
1727 -- expansion activities.
1729 -- Is_Finalization_Wrapper (Flag9-Sem)
1730 -- This flag is present in N_Block_Statement nodes. It is set when the
1731 -- block acts as a wrapper of a handled construct which has controlled
1732 -- objects. The wrapper prevents interference between exception handlers
1733 -- and At_End handlers.
1735 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1736 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1737 -- a source construct, applies to a generic unit or its body, and denotes
1738 -- one of the following contract-related annotations:
1739 -- Abstract_State
1740 -- Contract_Cases
1741 -- Depends
1742 -- Extensions_Visible
1743 -- Global
1744 -- Initial_Condition
1745 -- Initializes
1746 -- Post
1747 -- Post_Class
1748 -- Postcondition
1749 -- Pre
1750 -- Pre_Class
1751 -- Precondition
1752 -- Refined_Depends
1753 -- Refined_Global
1754 -- Refined_Post
1755 -- Refined_State
1756 -- Test_Case
1758 -- Is_Homogeneous_Aggregate (Flag14)
1759 -- A flag set on an Ada 2020 aggregate that uses square brackets as
1760 -- delimiters, and thus denotes an array or container aggregate, or
1761 -- the prefix of a reduction attribute.
1763 -- Is_Ignored (Flag9-Sem)
1764 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1765 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1766 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1767 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1768 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1769 -- gives a policy for the aspect or pragma, then there are two cases. For
1770 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1771 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1772 -- ignored because of the absence of a -gnata switch. For any other
1773 -- aspects or pragmas, the flag is off. If this flag is set, the
1774 -- aspect/pragma is fully analyzed and checked for other syntactic
1775 -- and semantic errors, but it does not have any semantic effect.
1777 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1778 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1779 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1780 -- This flag has no relation to Is_Ignored.
1782 -- Is_In_Discriminant_Check (Flag11-Sem)
1783 -- This flag is present in a selected component, and is used to indicate
1784 -- that the reference occurs within a discriminant check. The
1785 -- significance is that optimizations based on assuming that the
1786 -- discriminant check has a correct value cannot be performed in this
1787 -- case (or the discriminant check may be optimized away).
1789 -- Is_Inherited_Pragma (Flag4-Sem)
1790 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1791 -- to indicate that the pragma has been inherited from a parent context.
1793 -- Is_Initialization_Block (Flag1-Sem)
1794 -- Defined in block nodes. Set when the block statement was created by
1795 -- the finalization machinery to wrap initialization statements. This
1796 -- flag aids the ABE Processing phase to suppress the diagnostics of
1797 -- finalization actions in initialization contexts.
1799 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
1800 -- NOTE: this flag is shared between the legacy ABE mechanism and the
1801 -- default ABE mechanism.
1803 -- Present in the following nodes:
1805 -- call marker
1806 -- formal package declaration
1807 -- function call
1808 -- function instantiation
1809 -- package instantiation
1810 -- procedure call statement
1811 -- procedure instantiation
1813 -- Set when the elaboration or evaluation of the scenario results in
1814 -- a guaranteed ABE. The flag is used to suppress the instantiation of
1815 -- generic bodies because gigi cannot handle certain forms of premature
1816 -- instantiation, as well as to prevent the reexamination of the node by
1817 -- the ABE Processing phase.
1819 -- Is_Machine_Number (Flag11-Sem)
1820 -- This flag is set in an N_Real_Literal node to indicate that the value
1821 -- is a machine number. This avoids some unnecessary cases of converting
1822 -- real literals to machine numbers.
1824 -- Is_Null_Loop (Flag16-Sem)
1825 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1826 -- can be determined to be null at compile time. This is used to remove
1827 -- the loop entirely at expansion time.
1829 -- Is_Overloaded (Flag5-Sem)
1830 -- A flag present in all expression nodes. Used temporarily during
1831 -- overloading determination. The setting of this flag is not relevant
1832 -- once overloading analysis is complete.
1834 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1835 -- A flag present only in N_Op_Expon nodes. It is set when the
1836 -- exponentiation is of the form 2 ** N, where the type of N is an
1837 -- unsigned integral subtype whose size does not exceed the size of
1838 -- Standard_Integer (i.e. a type that can be safely converted to
1839 -- Natural), and the exponentiation appears as the right operand of an
1840 -- integer multiplication or an integer division where the dividend is
1841 -- unsigned. It is also required that overflow checking is off for both
1842 -- the exponentiation and the multiply/divide node. If this set of
1843 -- conditions holds, and the flag is set, then the division or
1844 -- multiplication can be (and is) converted to a shift.
1846 -- Is_Preelaborable_Call (Flag7-Sem)
1847 -- Present in call marker nodes. Set when the related call is non-static
1848 -- but preelaborable.
1850 -- Is_Prefixed_Call (Flag17-Sem)
1851 -- This flag is set in a selected component within a generic unit, if
1852 -- it resolves to a prefixed call to a primitive operation. The flag
1853 -- is used to prevent accidental overloadings in an instance, when a
1854 -- primitive operation and a private record component may be homographs.
1856 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1857 -- A flag set in a Subprogram_Body block to indicate that it is the
1858 -- implementation of a protected subprogram. Such a body needs cleanup
1859 -- handler to make sure that the associated protected object is unlocked
1860 -- when the subprogram completes.
1862 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1863 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1864 -- converting a universal literal to a specific type. Such qualifiers aid
1865 -- the resolution of accidental overloading of binary or unary operators
1866 -- which may occur in instances.
1868 -- Is_Read (Flag4-Sem)
1869 -- Present in variable reference markers. Set when the original variable
1870 -- reference constitues a read of the variable.
1872 -- Is_Source_Call (Flag4-Sem)
1873 -- Present in call marker nodes. Set when the related call came from
1874 -- source.
1876 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
1877 -- Present in the following nodes:
1879 -- assignment statement
1880 -- attribute reference
1881 -- call marker
1882 -- entry call statement
1883 -- expanded name
1884 -- function call
1885 -- function instantiation
1886 -- identifier
1887 -- package instantiation
1888 -- procedure call statement
1889 -- procedure instantiation
1890 -- requeue statement
1891 -- variable reference marker
1893 -- Set when the node appears within a context subject to SPARK_Mode On.
1894 -- This flag determines when the SPARK model of elaboration be activated
1895 -- by the ABE Processing phase.
1897 -- Is_Static_Coextension (Flag14-Sem)
1898 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1899 -- of an object allocated on the stack rather than the heap. The partner
1900 -- flag Is_Dynamic_Coextension must be cleared before setting this flag
1901 -- to True.
1903 -- Is_Static_Expression (Flag6-Sem)
1904 -- Indicates that an expression is a static expression according to the
1905 -- rules in RM-4.9. See Sem_Eval for details.
1907 -- Is_Subprogram_Descriptor (Flag16-Sem)
1908 -- Present in N_Object_Declaration, and set only for the object
1909 -- declaration generated for a subprogram descriptor in fast exception
1910 -- mode. See Exp_Ch11 for details of use.
1912 -- Is_Task_Allocation_Block (Flag6-Sem)
1913 -- A flag set in a Block_Statement node to indicate that it is the
1914 -- expansion of a task allocator, or the allocator of an object
1915 -- containing tasks. Such a block requires a cleanup handler to call
1916 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1917 -- allocated but not activated when the allocator completes abnormally.
1919 -- Is_Task_Body_Procedure (Flag1-Sem)
1920 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1921 -- nodes which emulate the body of a task unit.
1923 -- Is_Task_Master (Flag5-Sem)
1924 -- A flag set in a Subprogram_Body, Block_Statement, or Task_Body node to
1925 -- indicate that the construct is a task master (i.e. has declared tasks
1926 -- or declares an access to a task type).
1928 -- Is_Write (Flag5-Sem)
1929 -- Present in variable reference markers. Set when the original variable
1930 -- reference constitues a write of the variable.
1932 -- Itype (Node1-Sem)
1933 -- Used in N_Itype_Reference node to reference an itype for which it is
1934 -- important to ensure that it is defined. See description of this node
1935 -- for further details.
1937 -- Kill_Range_Check (Flag11-Sem)
1938 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1939 -- result should not be subjected to range checks. This is used for the
1940 -- implementation of Normalize_Scalars.
1942 -- Label_Construct (Node2-Sem)
1943 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1944 -- N_Block_Statement or N_Loop_Statement node to which the label
1945 -- declaration applies. The field is left empty for the special labels
1946 -- generated as part of expanding raise statements with a local exception
1947 -- handler.
1949 -- Library_Unit (Node4-Sem)
1950 -- In a stub node, Library_Unit points to the compilation unit node of
1951 -- the corresponding subunit.
1953 -- In a with clause node, Library_Unit points to the spec of the with'ed
1954 -- unit.
1956 -- In a compilation unit node, the usage depends on the unit type:
1958 -- For a library unit body, Library_Unit points to the compilation unit
1959 -- node of the corresponding spec, unless it's a subprogram body with
1960 -- Acts_As_Spec set, in which case it points to itself.
1962 -- For a spec, Library_Unit points to the compilation unit node of the
1963 -- corresponding body, if present. The body will be present if the spec
1964 -- is or contains generics that we needed to instantiate. Similarly, the
1965 -- body will be present if we needed it for inlining purposes. Thus, if
1966 -- we have a spec/body pair, both of which are present, they point to
1967 -- each other via Library_Unit.
1969 -- For a subunit, Library_Unit points to the compilation unit node of
1970 -- the parent body.
1971 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1972 -- to the corresponding spec for the parent body.
1974 -- Note that this field is not used to hold the parent pointer for child
1975 -- unit (which might in any case need to use it for some other purpose as
1976 -- described above). Instead for a child unit, implicit with's are
1977 -- generated for all parents.
1979 -- Local_Raise_Statements (Elist1)
1980 -- This field is present in exception handler nodes. It is set to
1981 -- No_Elist in the normal case. If there is at least one raise statement
1982 -- which can potentially be handled as a local raise, then this field
1983 -- points to a list of raise nodes, which are calls to a routine to raise
1984 -- an exception. These are raise nodes which can be optimized into gotos
1985 -- if the handler turns out to meet the conditions which permit this
1986 -- transformation. Note that this does NOT include instances of the
1987 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1988 -- handled by the back end (using the N_Push/N_Pop mechanism).
1990 -- Loop_Actions (List5-Sem)
1991 -- A list present in Component_Association nodes in array aggregates.
1992 -- Used to collect actions that must be executed within the loop because
1993 -- they may need to be evaluated anew each time through.
1995 -- Limited_View_Installed (Flag18-Sem)
1996 -- Present in With_Clauses and in package specifications. If set on
1997 -- with_clause, it indicates that this clause has created the current
1998 -- limited view of the designated package. On a package specification, it
1999 -- indicates that the limited view has already been created because the
2000 -- package is mentioned in a limited_with_clause in the closure of the
2001 -- unit being compiled.
2003 -- Local_Raise_Not_OK (Flag7-Sem)
2004 -- Present in N_Exception_Handler nodes. Set if the handler contains
2005 -- a construct (reraise statement, or call to subprogram in package
2006 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
2007 -- for a local raise (one that could otherwise be converted to a goto).
2009 -- Must_Be_Byte_Aligned (Flag14-Sem)
2010 -- This flag is present in N_Attribute_Reference nodes. It can be set
2011 -- only for the Address and Unrestricted_Access attributes. If set it
2012 -- means that the object for which the address/access is given must be on
2013 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
2014 -- of the object is to be made before taking the address (this copy is in
2015 -- the current scope on the stack frame). This is used for certain cases
2016 -- of code generated by the expander that passes parameters by address.
2018 -- The reason the copy is not made by the front end is that the back end
2019 -- has more information about type layout and may be able to (but is not
2020 -- guaranteed to) prevent making unnecessary copies.
2022 -- Must_Not_Freeze (Flag8-Sem)
2023 -- A flag present in all expression nodes. Normally expressions cause
2024 -- freezing as described in the RM. If this flag is set, then this is
2025 -- inhibited. This is used by the analyzer and expander to label nodes
2026 -- that are created by semantic analysis or expansion and which must not
2027 -- cause freezing even though they normally would. This flag is also
2028 -- present in an N_Subtype_Indication node, since we also use these in
2029 -- calls to Freeze_Expression.
2031 -- Next_Entity (Node2-Sem)
2032 -- Present in defining identifiers, defining character literals, and
2033 -- defining operator symbols (i.e. in all entities). The entities of a
2034 -- scope are chained, and this field is used as the forward pointer for
2035 -- this list. See Einfo for further details.
2037 -- Next_Exit_Statement (Node3-Sem)
2038 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
2039 -- chained (in reverse order of appearance) from the First_Exit_Statement
2040 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
2041 -- the next entry on this chain (Empty = end of list).
2043 -- Next_Implicit_With (Node3-Sem)
2044 -- Present in N_With_Clause. Part of a chain of with_clauses generated
2045 -- in rtsfind to indicate implicit dependencies on predefined units. Used
2046 -- to prevent multiple with_clauses for the same unit in a given context.
2047 -- A postorder traversal of the tree whose nodes are units and whose
2048 -- links are with_clauses defines the order in which CodePeer must
2049 -- examine a compiled unit and its full context. This ordering ensures
2050 -- that any subprogram call is examined after the subprogram declaration
2051 -- has been seen.
2053 -- Next_Named_Actual (Node4-Sem)
2054 -- Present in parameter association nodes. Set during semantic analysis
2055 -- to point to the next named parameter, where parameters are ordered by
2056 -- declaration order (as opposed to the actual order in the call, which
2057 -- may be different due to named associations). Not that this field
2058 -- points to the explicit actual parameter itself, not to the
2059 -- N_Parameter_Association node (its parent).
2061 -- Next_Pragma (Node1-Sem)
2062 -- Present in N_Pragma nodes. Used to create a linked list of pragma
2063 -- nodes. Currently used for two purposes:
2065 -- Create a list of linked Check_Policy pragmas. The head of this list
2066 -- is stored in Opt.Check_Policy_List (which has further details).
2068 -- Used by processing for Pre/Postcondition pragmas to store a list of
2069 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
2070 -- details).
2072 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
2073 -- the apply to the same construct. These are visible/private mode for
2074 -- a package spec and declarative/statement mode for package body.
2076 -- Next_Rep_Item (Node5-Sem)
2077 -- Present in pragma nodes, attribute definition nodes, enumeration rep
2078 -- clauses, record rep clauses, aspect specification and null statement
2079 -- nodes. Used to link representation items that apply to an entity. See
2080 -- full description of First_Rep_Item field in Einfo for further details.
2082 -- Next_Use_Clause (Node3-Sem)
2083 -- While use clauses are active during semantic processing, they are
2084 -- chained from the scope stack entry, using Next_Use_Clause as a link
2085 -- pointer, with Empty marking the end of the list. The head pointer is
2086 -- in the scope stack entry (First_Use_Clause). At the end of semantic
2087 -- processing (i.e. when Gigi sees the tree, the contents of this field
2088 -- is undefined and should not be read).
2090 -- No_Ctrl_Actions (Flag7-Sem)
2091 -- Present in N_Assignment_Statement to indicate that no Finalize nor
2092 -- Adjust should take place on this assignment even though the RHS is
2093 -- controlled. Also indicates that the primitive _assign should not be
2094 -- used for a tagged assignment. This is used in init procs and aggregate
2095 -- expansions where the generated assignments are initializations, not
2096 -- real assignments.
2098 -- No_Elaboration_Check (Flag4-Sem)
2099 -- NOTE: this flag is relevant only for the legacy ABE mechanism and
2100 -- should not be used outside of that context.
2102 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
2103 -- that no elaboration check is needed on the call, because it appears in
2104 -- the context of a local Suppress pragma. This is used on calls within
2105 -- task bodies, where the actual elaboration checks are applied after
2106 -- analysis, when the local scope stack is not present
2108 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2109 -- Present in N_With_Clause nodes. Set if the with clause is on the
2110 -- package or subprogram spec where the main unit is the corresponding
2111 -- body, and no entities of the with'ed unit are referenced by the spec
2112 -- (an entity may still be referenced in the body, so this flag is used
2113 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2114 -- full details).
2116 -- No_Initialization (Flag13-Sem)
2117 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2118 -- object must not be initialized (by Initialize or call to an init
2119 -- proc). This is needed for controlled aggregates. When the Object
2120 -- declaration has an expression, this flag means that this expression
2121 -- should not be taken into account (needed for in place initialization
2122 -- with aggregates, and for object with an address clause, which are
2123 -- initialized with an assignment at freeze time).
2125 -- No_Minimize_Eliminate (Flag17-Sem)
2126 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2127 -- It is used to indicate that processing for extended overflow checking
2128 -- modes is not required (this is used to prevent infinite recursion).
2130 -- No_Side_Effect_Removal (Flag17-Sem)
2131 -- Present in N_Function_Call nodes. Set when a function call does not
2132 -- require side effect removal. This attribute suppresses the generation
2133 -- of a temporary to capture the result of the function which eventually
2134 -- replaces the function call.
2136 -- No_Truncation (Flag17-Sem)
2137 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2138 -- only if the RM_Size of the source is greater than the RM_Size of the
2139 -- target for scalar operands. Normally in such a case we truncate some
2140 -- higher order bits of the source, and then sign/zero extend the result
2141 -- to form the output value. But if this flag is set, then we do not do
2142 -- any truncation, so for example, if an 8 bit input is converted to 5
2143 -- bit result which is in fact stored in 8 bits, then the high order
2144 -- three bits of the target result will be copied from the source. This
2145 -- is used for properly setting out of range values for use by pragmas
2146 -- Initialize_Scalars and Normalize_Scalars.
2148 -- Null_Excluding_Subtype (Flag16)
2149 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2150 -- indication carries a null-exclusion indicator, which is distinct from
2151 -- the null-exclusion indicator that may precede the access keyword.
2153 -- Original_Discriminant (Node2-Sem)
2154 -- Present in identifiers. Used in references to discriminants that
2155 -- appear in generic units. Because the names of the discriminants may be
2156 -- different in an instance, we use this field to recover the position of
2157 -- the discriminant in the original type, and replace it with the
2158 -- discriminant at the same position in the instantiated type.
2160 -- Original_Entity (Node2-Sem)
2161 -- Present in numeric literals. Used to denote the named number that has
2162 -- been constant-folded into the given literal. If literal is from
2163 -- source, or the result of some other constant-folding operation, then
2164 -- Original_Entity is empty. This field is needed to handle properly
2165 -- named numbers in generic units, where the Associated_Node field
2166 -- interferes with the Entity field, making it impossible to preserve the
2167 -- original entity at the point of instantiation.
2169 -- Others_Discrete_Choices (List1-Sem)
2170 -- When a case statement or variant is analyzed, the semantic checks
2171 -- determine the actual list of choices that correspond to an others
2172 -- choice. This list is materialized for later use by the expander and
2173 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2174 -- this materialized list of choices, which is in standard format for a
2175 -- list of discrete choices, except that of course it cannot contain an
2176 -- N_Others_Choice entry.
2178 -- Parent_Spec (Node4-Sem)
2179 -- For a library unit that is a child unit spec (package or subprogram
2180 -- declaration, generic declaration or instantiation, or library level
2181 -- rename) this field points to the compilation unit node for the parent
2182 -- package specification. This field is Empty for library bodies (the
2183 -- parent spec in this case can be found from the corresponding spec).
2185 -- Parent_With (Flag1-Sem)
2186 -- Present in N_With_Clause nodes. The flag indicates that the clause
2187 -- was generated for an ancestor unit to provide proper visibility. A
2188 -- with clause for child unit A.B.C produces two implicit parent with
2189 -- clauses for A and A.B.
2191 -- Premature_Use (Node5-Sem)
2192 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2193 -- error diagnostics: if there is a premature usage of an incomplete
2194 -- type, a subsequently generated error message indicates the position
2195 -- of its full declaration.
2197 -- Present_Expr (Uint3-Sem)
2198 -- Present in an N_Variant node. This has a meaningful value only after
2199 -- Gigi has back annotated the tree with representation information. At
2200 -- this point, it contains a reference to a gcc expression that depends
2201 -- on the values of one or more discriminants. Give a set of discriminant
2202 -- values, this expression evaluates to False (zero) if variant is not
2203 -- present, and True (non-zero) if it is present. See unit Repinfo for
2204 -- further details on gigi back annotation. This field is used during
2205 -- back-annotation processing (for -gnatR -gnatc) to determine if a field
2206 -- is present or not.
2208 -- Prev_Use_Clause (Node1-Sem)
2209 -- Present in both N_Use_Package_Clause and N_Use_Type_Clause. Used in
2210 -- detection of ineffective use clauses by allowing a chain of related
2211 -- clauses together to avoid traversing the current scope stack.
2213 -- Print_In_Hex (Flag13-Sem)
2214 -- Set on an N_Integer_Literal node to indicate that the value should be
2215 -- printed in hexadecimal in the sprint listing. Has no effect on
2216 -- legality or semantics of program, only on the displayed output. This
2217 -- is used to clarify output from the packed array cases.
2219 -- Procedure_To_Call (Node2-Sem)
2220 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2221 -- and N_Extended_Return_Statement nodes. References the entity for the
2222 -- declaration of the procedure to be called to accomplish the required
2223 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2224 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2225 -- allocating the return value), and for the Deallocate procedure in the
2226 -- case of N_Free_Statement.
2228 -- Raises_Constraint_Error (Flag7-Sem)
2229 -- Set on an expression whose evaluation will definitely fail constraint
2230 -- error check. See Sem_Eval for details.
2232 -- Redundant_Use (Flag13-Sem)
2233 -- Present in nodes that can appear as an operand in a use clause or use
2234 -- type clause (identifiers, expanded names, attribute references). Set
2235 -- to indicate that a use is redundant (and therefore need not be undone
2236 -- on scope exit).
2238 -- Renaming_Exception (Node2-Sem)
2239 -- Present in N_Exception_Declaration node. Used to point back to the
2240 -- exception renaming for an exception declared within a subprogram.
2241 -- What happens is that an exception declared in a subprogram is moved
2242 -- to the library level with a unique name, and the original exception
2243 -- becomes a renaming. This link from the library level exception to the
2244 -- renaming declaration allows registering of the proper exception name.
2246 -- Return_Statement_Entity (Node5-Sem)
2247 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2248 -- Points to an E_Return_Statement representing the return statement.
2250 -- Return_Object_Declarations (List3)
2251 -- Present in N_Extended_Return_Statement. Points to a list initially
2252 -- containing a single N_Object_Declaration representing the return
2253 -- object. We use a list (instead of just a pointer to the object decl)
2254 -- because Analyze wants to insert extra actions on this list, before the
2255 -- N_Object_Declaration, which always remains last on the list.
2257 -- Rounded_Result (Flag18-Sem)
2258 -- Present in N_Type_Conversion, N_Op_Divide, and N_Op_Multiply nodes.
2259 -- Used in the fixed-point cases to indicate that the result must be
2260 -- rounded as a result of the use of the 'Round attribute. Also used for
2261 -- integer N_Op_Divide nodes to indicate that the result should be
2262 -- rounded to the nearest integer (breaking ties away from zero), rather
2263 -- than truncated towards zero as usual. These rounded integer operations
2264 -- are the result of expansion of rounded fixed-point divide, conversion
2265 -- and multiplication operations.
2267 -- Save_Invocation_Graph_Of_Body (Flag1-Sem)
2268 -- Present in compilation unit nodes. Set when the elaboration mechanism
2269 -- must record all invocation constructs and invocation relations within
2270 -- the body of the compilation unit.
2272 -- SCIL_Entity (Node4-Sem)
2273 -- Present in SCIL nodes. References the specific tagged type associated
2274 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2275 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2276 -- generated as part of testing membership in T'Class, this is T; for an
2277 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2279 -- SCIL_Controlling_Tag (Node5-Sem)
2280 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2281 -- tag of a dispatching call. This is usually an N_Selected_Component
2282 -- node (for a _tag component), but may be an N_Object_Declaration or
2283 -- N_Parameter_Specification node in some cases (e.g., for a call to
2284 -- a classwide streaming operation or a call to an instance of
2285 -- Ada.Tags.Generic_Dispatching_Constructor).
2287 -- SCIL_Tag_Value (Node5-Sem)
2288 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2289 -- of the value that is being tested.
2291 -- SCIL_Target_Prim (Node2-Sem)
2292 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2293 -- operation named (statically) in a dispatching call.
2295 -- Scope (Node3-Sem)
2296 -- Present in defining identifiers, defining character literals, and
2297 -- defining operator symbols (i.e. in all entities). The entities of a
2298 -- scope all use this field to reference the corresponding scope entity.
2299 -- See Einfo for further details.
2301 -- Shift_Count_OK (Flag4-Sem)
2302 -- A flag present in shift nodes to indicate that the shift count is
2303 -- known to be in range, i.e. is in the range from zero to word length
2304 -- minus one. If this flag is not set, then the shift count may be
2305 -- outside this range, i.e. larger than the word length, and the code
2306 -- must ensure that such shift counts give the appropriate result.
2308 -- Source_Type (Node1-Sem)
2309 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2310 -- source type entity for the unchecked conversion instantiation
2311 -- which gigi must do size validation for.
2313 -- Split_PPC (Flag17)
2314 -- When a Pre or Post aspect specification is processed, it is broken
2315 -- into AND THEN sections. The leftmost section has Split_PPC set to
2316 -- False, indicating that it is the original specification (e.g. for
2317 -- posting errors). For other sections, Split_PPC is set to True.
2318 -- This flag is set in both the N_Aspect_Specification node itself,
2319 -- and in the pragma which is generated from this node.
2321 -- Storage_Pool (Node1-Sem)
2322 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2323 -- and N_Extended_Return_Statement nodes. References the entity for the
2324 -- storage pool to be used for the allocate or free call or for the
2325 -- allocation of the returned value from function. Empty indicates that
2326 -- the global default pool is to be used. Note that in the case
2327 -- of a return statement, this field is set only if the function returns
2328 -- value of a type whose size is not known at compile time on the
2329 -- secondary stack.
2331 -- Suppress_Assignment_Checks (Flag18-Sem)
2332 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2333 -- and range checks in cases where the generated code knows that the
2334 -- value being assigned is in range and satisfies any predicate. Also
2335 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2336 -- checks on the initializing value. In assignment statements it also
2337 -- suppresses access checks in the generated code for out- and in-out
2338 -- parameters in entry calls.
2340 -- Suppress_Loop_Warnings (Flag17-Sem)
2341 -- Used in N_Loop_Statement node to indicate that warnings within the
2342 -- body of the loop should be suppressed. This is set when the range
2343 -- of a FOR loop is known to be null, or is probably null (loop would
2344 -- only execute if invalid values are present).
2346 -- Target (Node1-Sem)
2347 -- Present in call and variable reference marker nodes. References the
2348 -- entity of the original entity, operator, or subprogram being invoked,
2349 -- or the original variable being read or written.
2351 -- Target_Type (Node2-Sem)
2352 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2353 -- type entity for the unchecked conversion instantiation which gigi must
2354 -- do size validation for.
2356 -- Then_Actions (List3-Sem)
2357 -- This field is present in if expression nodes. During code expansion
2358 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2359 -- at an appropriate place in the tree to get elaborated at the right
2360 -- time. For if expressions, we have to be sure that the actions for
2361 -- for the Then branch are only elaborated if the condition is True.
2362 -- The Then_Actions field is used as a temporary parking place for
2363 -- these actions. The final tree is always rewritten to eliminate the
2364 -- need for this field, so in the tree passed to Gigi, this field is
2365 -- always set to No_List.
2367 -- TSS_Elist (Elist3-Sem)
2368 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2369 -- entries for each TSS (type support subprogram) associated with the
2370 -- frozen type. The elements of the list are the entities for the
2371 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2372 -- if there are no type support subprograms for the type or if the freeze
2373 -- node is not for a type.
2375 -- Uneval_Old_Accept (Flag7-Sem)
2376 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2377 -- (accept) at the point where the pragma is encountered (including the
2378 -- case of a pragma generated from an aspect specification). It is this
2379 -- setting that is relevant, rather than the setting at the point where
2380 -- a contract is finally analyzed after the delay till the freeze point.
2382 -- Uneval_Old_Warn (Flag18-Sem)
2383 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2384 -- (warn) at the point where the pragma is encountered (including the
2385 -- case of a pragma generated from an aspect specification). It is this
2386 -- setting that is relevant, rather than the setting at the point where
2387 -- a contract is finally analyzed after the delay till the freeze point.
2389 -- Unreferenced_In_Spec (Flag7-Sem)
2390 -- Present in N_With_Clause nodes. Set if the with clause is on the
2391 -- package or subprogram spec where the main unit is the corresponding
2392 -- body, and is not referenced by the spec (it may still be referenced by
2393 -- the body, so this flag is used to generate the proper message (see
2394 -- Sem_Util.Check_Unused_Withs for details)
2396 -- Uninitialized_Variable (Node3-Sem)
2397 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2398 -- Extension_Declarations. Indicates that a variable in a generic unit
2399 -- whose type is a formal private or derived type is read without being
2400 -- initialized. Used to warn if the corresponding actual type is not
2401 -- a fully initialized type.
2403 -- Used_Operations (Elist2-Sem)
2404 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2405 -- are made potentially use-visible by the clause. Simplifies processing
2406 -- on exit from the scope of the use_type_clause, in particular in the
2407 -- case of Use_All_Type, when those operations several scopes.
2409 -- Was_Attribute_Reference (Flag2-Sem)
2410 -- Present in N_Subprogram_Body. Set to True if the original source is an
2411 -- attribute reference which is an actual in a generic instantiation. The
2412 -- instantiation prologue renames these attributes, and expansion later
2413 -- converts them into subprogram bodies.
2415 -- Was_Default_Init_Box_Association (Flag14-Sem)
2416 -- Present in N_Component_Association. Set to True if the original source
2417 -- is an aggregate component association with a box (<>) for a component
2418 -- that is initialized by default.
2420 -- Was_Expression_Function (Flag18-Sem)
2421 -- Present in N_Subprogram_Body. True if the original source had an
2422 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2423 -- by Analyze_Expression_Function.
2425 -- Was_Originally_Stub (Flag13-Sem)
2426 -- This flag is set in the node for a proper body that replaces stub.
2427 -- During the analysis procedure, stubs in some situations get rewritten
2428 -- by the corresponding bodies, and we set this flag to remember that
2429 -- this happened. Note that it is not good enough to rely on the use of
2430 -- Original_Node here because of the case of nested instantiations where
2431 -- the substituted node can be copied.
2433 --------------------------------------------------
2434 -- Note on Use of End_Label and End_Span Fields --
2435 --------------------------------------------------
2437 -- Several constructs have end lines:
2439 -- Loop Statement end loop [loop_IDENTIFIER];
2440 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2441 -- Task Definition end [task_IDENTIFIER]
2442 -- Protected Definition end [protected_IDENTIFIER]
2443 -- Protected Body end [protected_IDENTIFIER]
2445 -- Block Statement end [block_IDENTIFIER];
2446 -- Subprogram Body end [DESIGNATOR];
2447 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2448 -- Task Body end [task_IDENTIFIER];
2449 -- Accept Statement end [entry_IDENTIFIER]];
2450 -- Entry Body end [entry_IDENTIFIER];
2452 -- If Statement end if;
2453 -- Case Statement end case;
2455 -- Record Definition end record;
2456 -- Enumeration Definition );
2458 -- The End_Label and End_Span fields are used to mark the locations of
2459 -- these lines, and also keep track of the label in the case where a label
2460 -- is present.
2462 -- For the first group above, the End_Label field of the corresponding node
2463 -- is used to point to the label identifier. In the case where there is no
2464 -- label in the source, the parser supplies a dummy identifier (with
2465 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2466 -- marks the location of the token following the END token.
2468 -- For the second group, the use of End_Label is similar, but the End_Label
2469 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2470 -- simply because in some cases there is no room in the parent node.
2472 -- For the third group, there is never any label, and instead of using
2473 -- End_Label, we use the End_Span field which gives the location of the
2474 -- token following END, relative to the starting Sloc of the construct,
2475 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2476 -- following the End_Label.
2478 -- The record definition case is handled specially, we treat it as though
2479 -- it required an optional label which is never present, and so the parser
2480 -- always builds a dummy identifier with Comes From Source set False. The
2481 -- reason we do this, rather than using End_Span in this case, is that we
2482 -- want to generate a cross-ref entry for the end of a record, since it
2483 -- represents a scope for name declaration purposes.
2485 -- The enumeration definition case is handled in an exactly similar manner,
2486 -- building a dummy identifier to get a cross-reference.
2488 -- Note: the reason we store the difference as a Uint, instead of storing
2489 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2490 -- distinguished from other types of values, and we count on all general
2491 -- use fields being self describing. To make things easier for clients,
2492 -- note that we provide function End_Location, and procedure
2493 -- Set_End_Location to allow access to the logical value (which is the
2494 -- Source_Ptr value for the end token).
2496 ---------------------
2497 -- Syntactic Nodes --
2498 ---------------------
2500 ---------------------
2501 -- 2.3 Identifier --
2502 ---------------------
2504 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2505 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2507 -- An IDENTIFIER shall not be a reserved word
2509 -- In the Ada grammar identifiers are the bottom level tokens which have
2510 -- very few semantics. Actual program identifiers are direct names. If
2511 -- we were being 100% honest with the grammar, then we would have a node
2512 -- called N_Direct_Name which would point to an identifier. However,
2513 -- that's too many extra nodes, so we just use the N_Identifier node
2514 -- directly as a direct name, and it contains the expression fields and
2515 -- Entity field that correspond to its use as a direct name. In those
2516 -- few cases where identifiers appear in contexts where they are not
2517 -- direct names (pragmas, pragma argument associations, attribute
2518 -- references and attribute definition clauses), the Chars field of the
2519 -- node contains the Name_Id for the identifier name.
2521 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2522 -- cases. First, an incorrect use of a reserved word as an identifier is
2523 -- diagnosed and then treated as a normal identifier. Second, an
2524 -- attribute designator of the form of a reserved word (access, delta,
2525 -- digits, range) is treated as an identifier.
2527 -- Note: The set of letters that is permitted in an identifier depends
2528 -- on the character set in use. See package Csets for full details.
2530 -- N_Identifier
2531 -- Sloc points to identifier
2532 -- Chars (Name1) contains the Name_Id for the identifier
2533 -- Entity (Node4-Sem)
2534 -- Associated_Node (Node4-Sem)
2535 -- Original_Discriminant (Node2-Sem)
2536 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
2537 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
2538 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
2539 -- Has_Private_View (Flag11-Sem) (set in generic units)
2540 -- Redundant_Use (Flag13-Sem)
2541 -- Atomic_Sync_Required (Flag14-Sem)
2542 -- plus fields for expression
2544 --------------------------
2545 -- 2.4 Numeric Literal --
2546 --------------------------
2548 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2550 ----------------------------
2551 -- 2.4.1 Decimal Literal --
2552 ----------------------------
2554 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2556 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2558 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2560 -- Decimal literals appear in the tree as either integer literal nodes
2561 -- or real literal nodes, depending on whether a period is present.
2563 -- Note: literal nodes appear as a result of direct use of literals
2564 -- in the source program, and also as the result of evaluating
2565 -- expressions at compile time. In the latter case, it is possible
2566 -- to construct real literals that have no syntactic representation
2567 -- using the standard literal format. Such literals are listed by
2568 -- Sprint using the notation [numerator / denominator].
2570 -- Note: the value of an integer literal node created by the front end
2571 -- is never outside the range of values of the base type. However, it
2572 -- can be the case that the created value is outside the range of the
2573 -- particular subtype. This happens in the case of integer overflows
2574 -- with checks suppressed.
2576 -- N_Integer_Literal
2577 -- Sloc points to literal
2578 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2579 -- has been constant-folded into its literal value.
2580 -- Intval (Uint3) contains integer value of literal
2581 -- Print_In_Hex (Flag13-Sem)
2582 -- plus fields for expression
2584 -- N_Real_Literal
2585 -- Sloc points to literal
2586 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2587 -- has been constant-folded into its literal value.
2588 -- Realval (Ureal3) contains real value of literal
2589 -- Corresponding_Integer_Value (Uint4-Sem)
2590 -- Is_Machine_Number (Flag11-Sem)
2591 -- plus fields for expression
2593 --------------------------
2594 -- 2.4.2 Based Literal --
2595 --------------------------
2597 -- BASED_LITERAL ::=
2598 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2600 -- BASE ::= NUMERAL
2602 -- BASED_NUMERAL ::=
2603 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2605 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2607 -- Based literals appear in the tree as either integer literal nodes
2608 -- or real literal nodes, depending on whether a period is present.
2610 ----------------------------
2611 -- 2.5 Character Literal --
2612 ----------------------------
2614 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2616 -- N_Character_Literal
2617 -- Sloc points to literal
2618 -- Chars (Name1) contains the Name_Id for the identifier
2619 -- Char_Literal_Value (Uint2) contains the literal value
2620 -- Entity (Node4-Sem)
2621 -- Associated_Node (Node4-Sem)
2622 -- Has_Private_View (Flag11-Sem) set in generic units.
2623 -- plus fields for expression
2625 -- Note: the Entity field will be missing (set to Empty) for character
2626 -- literals whose type is Standard.Wide_Character or Standard.Character
2627 -- or a type derived from one of these two. In this case the character
2628 -- literal stands for its own coding. The reason we take this irregular
2629 -- short cut is to avoid the need to build lots of junk defining
2630 -- character literal nodes.
2632 -------------------------
2633 -- 2.6 String Literal --
2634 -------------------------
2636 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2638 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2639 -- single GRAPHIC_CHARACTER other than a quotation mark.
2641 -- Is_Folded_In_Parser is True if the parser created this literal by
2642 -- folding a sequence of "&" operators. For example, if the source code
2643 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2644 -- is set. This flag is needed because the parser doesn't know about
2645 -- visibility, so the folded result might be wrong, and semantic
2646 -- analysis needs to check for that.
2648 -- N_String_Literal
2649 -- Sloc points to literal
2650 -- Strval (Str3) contains Id of string value
2651 -- Has_Wide_Character (Flag11-Sem)
2652 -- Has_Wide_Wide_Character (Flag13-Sem)
2653 -- Is_Folded_In_Parser (Flag4)
2654 -- plus fields for expression
2656 ------------------
2657 -- 2.7 Comment --
2658 ------------------
2660 -- A COMMENT starts with two adjacent hyphens and extends up to the
2661 -- end of the line. A COMMENT may appear on any line of a program.
2663 -- Comments are skipped by the scanner and do not appear in the tree.
2664 -- It is possible to reconstruct the position of comments with respect
2665 -- to the elements of the tree by using the source position (Sloc)
2666 -- pointers that appear in every tree node.
2668 -----------------
2669 -- 2.8 Pragma --
2670 -----------------
2672 -- PRAGMA ::= pragma IDENTIFIER
2673 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2675 -- Note that a pragma may appear in the tree anywhere a declaration
2676 -- or a statement may appear, as well as in some other situations
2677 -- which are explicitly documented.
2679 -- N_Pragma
2680 -- Sloc points to PRAGMA
2681 -- Next_Pragma (Node1-Sem)
2682 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2683 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2684 -- Pragma_Identifier (Node4)
2685 -- Next_Rep_Item (Node5-Sem)
2686 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2687 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2688 -- Is_Inherited_Pragma (Flag4-Sem)
2689 -- Is_Analyzed_Pragma (Flag5-Sem)
2690 -- Class_Present (Flag6) set if from Aspect with 'Class
2691 -- Uneval_Old_Accept (Flag7-Sem)
2692 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2693 -- Is_Ignored (Flag9-Sem)
2694 -- Is_Checked (Flag11-Sem)
2695 -- From_Aspect_Specification (Flag13-Sem)
2696 -- Is_Delayed_Aspect (Flag14-Sem)
2697 -- Is_Disabled (Flag15-Sem)
2698 -- Import_Interface_Present (Flag16-Sem)
2699 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2700 -- Uneval_Old_Warn (Flag18-Sem)
2702 -- Note: we should have a section on what pragmas are passed on to
2703 -- the back end to be processed. This section should note that pragma
2704 -- Psect_Object is always converted to Common_Object, but there are
2705 -- undoubtedly many other similar notes required ???
2707 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2708 -- applied to pragma nodes to obtain the Chars or its mapped version.
2710 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2711 -- aspect name, as does the Pragma_Identifier. In this case if the
2712 -- pragma has a local name argument (such as pragma Inline), it is
2713 -- resolved to point to the specific entity affected by the pragma.
2715 --------------------------------------
2716 -- 2.8 Pragma Argument Association --
2717 --------------------------------------
2719 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2720 -- [pragma_argument_IDENTIFIER =>] NAME
2721 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2723 -- In Ada 2012, there are two more possibilities:
2725 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2726 -- [pragma_argument_ASPECT_MARK =>] NAME
2727 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2729 -- where the interesting allowed cases (which do not fit the syntax of
2730 -- the first alternative above) are
2732 -- ASPECT_MARK => Pre'Class |
2733 -- Post'Class |
2734 -- Type_Invariant'Class |
2735 -- Invariant'Class
2737 -- We allow this special usage in all Ada modes, but it would be a
2738 -- pain to allow these aspects to pervade the pragma syntax, and the
2739 -- representation of pragma nodes internally. So what we do is to
2740 -- replace these ASPECT_MARK forms with identifiers whose name is one
2741 -- of the special internal names _Pre, _Post, or _Type_Invariant.
2743 -- We do a similar replacement of these Aspect_Mark forms in the
2744 -- Expression of a pragma argument association for the cases of
2745 -- the first arguments of any Check pragmas and Check_Policy pragmas
2747 -- N_Pragma_Argument_Association
2748 -- Sloc points to first token in association
2749 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2750 -- Expression_Copy (Node2-Sem)
2751 -- Expression (Node3)
2753 ------------------------
2754 -- 2.9 Reserved Word --
2755 ------------------------
2757 -- Reserved words are parsed by the scanner, and returned as the
2758 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2760 ----------------------------
2761 -- 3.1 Basic Declaration --
2762 ----------------------------
2764 -- BASIC_DECLARATION ::=
2765 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2766 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2767 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2768 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2769 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2770 -- | GENERIC_INSTANTIATION
2772 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2773 -- see further description in section on semantic nodes.
2775 -- Also, in the tree that is constructed, a pragma may appear
2776 -- anywhere that a declaration may appear.
2778 ------------------------------
2779 -- 3.1 Defining Identifier --
2780 ------------------------------
2782 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2784 -- A defining identifier is an entity, which has additional fields
2785 -- depending on the setting of the Ekind field. These additional
2786 -- fields are defined (and access subprograms declared) in package
2787 -- Einfo.
2789 -- Note: N_Defining_Identifier is an extended node whose fields are
2790 -- deliberately laid out to match the layout of fields in an ordinary
2791 -- N_Identifier node allowing for easy alteration of an identifier
2792 -- node into a defining identifier node. For details, see procedure
2793 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2795 -- N_Defining_Identifier
2796 -- Sloc points to identifier
2797 -- Chars (Name1) contains the Name_Id for the identifier
2798 -- Next_Entity (Node2-Sem)
2799 -- Scope (Node3-Sem)
2800 -- Etype (Node5-Sem)
2802 -----------------------------
2803 -- 3.2.1 Type Declaration --
2804 -----------------------------
2806 -- TYPE_DECLARATION ::=
2807 -- FULL_TYPE_DECLARATION
2808 -- | INCOMPLETE_TYPE_DECLARATION
2809 -- | PRIVATE_TYPE_DECLARATION
2810 -- | PRIVATE_EXTENSION_DECLARATION
2812 ----------------------------------
2813 -- 3.2.1 Full Type Declaration --
2814 ----------------------------------
2816 -- FULL_TYPE_DECLARATION ::=
2817 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2818 -- is TYPE_DEFINITION
2819 -- [ASPECT_SPECIFICATIONS];
2820 -- | TASK_TYPE_DECLARATION
2821 -- | PROTECTED_TYPE_DECLARATION
2823 -- The full type declaration node is used only for the first case. The
2824 -- second case (concurrent type declaration), is represented directly
2825 -- by a task type declaration or a protected type declaration.
2827 -- N_Full_Type_Declaration
2828 -- Sloc points to TYPE
2829 -- Defining_Identifier (Node1)
2830 -- Incomplete_View (Node2-Sem)
2831 -- Discriminant_Specifications (List4) (set to No_List if none)
2832 -- Type_Definition (Node3)
2833 -- Discr_Check_Funcs_Built (Flag11-Sem)
2835 ----------------------------
2836 -- 3.2.1 Type Definition --
2837 ----------------------------
2839 -- TYPE_DEFINITION ::=
2840 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2841 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2842 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2843 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2845 --------------------------------
2846 -- 3.2.2 Subtype Declaration --
2847 --------------------------------
2849 -- SUBTYPE_DECLARATION ::=
2850 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2851 -- [ASPECT_SPECIFICATIONS];
2853 -- The subtype indication field is set to Empty for subtypes
2854 -- declared in package Standard (Positive, Natural).
2856 -- N_Subtype_Declaration
2857 -- Sloc points to SUBTYPE
2858 -- Defining_Identifier (Node1)
2859 -- Null_Exclusion_Present (Flag11)
2860 -- Subtype_Indication (Node5)
2861 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2862 -- Exception_Junk (Flag8-Sem)
2864 -------------------------------
2865 -- 3.2.2 Subtype Indication --
2866 -------------------------------
2868 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2870 -- Note: if no constraint is present, the subtype indication appears
2871 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2872 -- node is used only if a constraint is present.
2874 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2875 -- with the null-exclusion part (see AI-231), we had to introduce a new
2876 -- attribute in all the parents of subtype_indication nodes to indicate
2877 -- if the null-exclusion is present.
2879 -- Note: the reason that this node has expression fields is that a
2880 -- subtype indication can appear as an operand of a membership test.
2882 -- N_Subtype_Indication
2883 -- Sloc points to first token of subtype mark
2884 -- Subtype_Mark (Node4)
2885 -- Constraint (Node3)
2886 -- Etype (Node5-Sem)
2887 -- Must_Not_Freeze (Flag8-Sem)
2889 -- Note: Depending on context, the Etype is either the entity of the
2890 -- Subtype_Mark field, or it is an itype constructed to reify the
2891 -- subtype indication. In particular, such itypes are created for a
2892 -- subtype indication that appears in an array type declaration. This
2893 -- simplifies constraint checking in indexed components.
2895 -- For subtype indications that appear in scalar type and subtype
2896 -- declarations, the Etype is the entity of the subtype mark.
2898 -------------------------
2899 -- 3.2.2 Subtype Mark --
2900 -------------------------
2902 -- SUBTYPE_MARK ::= subtype_NAME
2904 -----------------------
2905 -- 3.2.2 Constraint --
2906 -----------------------
2908 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2910 ------------------------------
2911 -- 3.2.2 Scalar Constraint --
2912 ------------------------------
2914 -- SCALAR_CONSTRAINT ::=
2915 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2917 ---------------------------------
2918 -- 3.2.2 Composite Constraint --
2919 ---------------------------------
2921 -- COMPOSITE_CONSTRAINT ::=
2922 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2924 -------------------------------
2925 -- 3.3.1 Object Declaration --
2926 -------------------------------
2928 -- OBJECT_DECLARATION ::=
2929 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2930 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2931 -- [ASPECT_SPECIFICATIONS];
2932 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2933 -- ACCESS_DEFINITION [:= EXPRESSION]
2934 -- [ASPECT_SPECIFICATIONS];
2935 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2936 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2937 -- [ASPECT_SPECIFICATIONS];
2938 -- | SINGLE_TASK_DECLARATION
2939 -- | SINGLE_PROTECTED_DECLARATION
2941 -- Note: aliased is not permitted in Ada 83 mode
2943 -- The N_Object_Declaration node is only for the first three cases.
2944 -- Single task declaration is handled by P_Task (9.1)
2945 -- Single protected declaration is handled by P_protected (9.5)
2947 -- Although the syntax allows multiple identifiers in the list, the
2948 -- semantics is as though successive declarations were given with
2949 -- identical type definition and expression components. To simplify
2950 -- semantic processing, the parser represents a multiple declaration
2951 -- case as a sequence of single declarations, using the More_Ids and
2952 -- Prev_Ids flags to preserve the original source form as described
2953 -- in the section on "Handling of Defining Identifier Lists".
2955 -- The flag Has_Init_Expression is set if an initializing expression
2956 -- is present. Normally it is set if and only if Expression contains
2957 -- a non-empty value, but there is an exception to this. When the
2958 -- initializing expression is an aggregate which requires explicit
2959 -- assignments, the Expression field gets set to Empty, but this flag
2960 -- is still set, so we don't forget we had an initializing expression.
2962 -- Note: if a range check is required for the initialization
2963 -- expression then the Do_Range_Check flag is set in the Expression,
2964 -- with the check being done against the type given by the object
2965 -- definition, which is also the Etype of the defining identifier.
2967 -- Note: the contents of the Expression field must be ignored (i.e.
2968 -- treated as though it were Empty) if No_Initialization is set True.
2970 -- Note: the back end places some restrictions on the form of the
2971 -- Expression field. If the object being declared is Atomic, then
2972 -- the Expression may not have the form of an aggregate (since this
2973 -- might cause the back end to generate separate assignments). In this
2974 -- case the front end must generate an extra temporary and initialize
2975 -- this temporary as required (the temporary itself is not atomic).
2977 -- Note: there is no node kind for object definition. Instead, the
2978 -- corresponding field holds a subtype indication, an array type
2979 -- definition, or (Ada 2005, AI-406) an access definition.
2981 -- N_Object_Declaration
2982 -- Sloc points to first identifier
2983 -- Defining_Identifier (Node1)
2984 -- Aliased_Present (Flag4)
2985 -- Constant_Present (Flag17) set if CONSTANT appears
2986 -- Null_Exclusion_Present (Flag11)
2987 -- Object_Definition (Node4) subtype indic./array type def./access def.
2988 -- Expression (Node3) (set to Empty if not present)
2989 -- Handler_List_Entry (Node2-Sem)
2990 -- Corresponding_Generic_Association (Node5-Sem)
2991 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2992 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2993 -- No_Initialization (Flag13-Sem)
2994 -- Assignment_OK (Flag15-Sem)
2995 -- Exception_Junk (Flag8-Sem)
2996 -- Is_Subprogram_Descriptor (Flag16-Sem)
2997 -- Has_Init_Expression (Flag14)
2998 -- Suppress_Assignment_Checks (Flag18-Sem)
3000 -------------------------------------
3001 -- 3.3.1 Defining Identifier List --
3002 -------------------------------------
3004 -- DEFINING_IDENTIFIER_LIST ::=
3005 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
3007 -------------------------------
3008 -- 3.3.2 Number Declaration --
3009 -------------------------------
3011 -- NUMBER_DECLARATION ::=
3012 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
3014 -- Although the syntax allows multiple identifiers in the list, the
3015 -- semantics is as though successive declarations were given with
3016 -- identical expressions. To simplify semantic processing, the parser
3017 -- represents a multiple declaration case as a sequence of single
3018 -- declarations, using the More_Ids and Prev_Ids flags to preserve
3019 -- the original source form as described in the section on "Handling
3020 -- of Defining Identifier Lists".
3022 -- N_Number_Declaration
3023 -- Sloc points to first identifier
3024 -- Defining_Identifier (Node1)
3025 -- Expression (Node3)
3026 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3027 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3029 ----------------------------------
3030 -- 3.4 Derived Type Definition --
3031 ----------------------------------
3033 -- DERIVED_TYPE_DEFINITION ::=
3034 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
3035 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
3037 -- Note: ABSTRACT, LIMITED, and record extension part are not permitted
3038 -- in Ada 83 mode.
3040 -- Note: a record extension part is required if ABSTRACT is present
3042 -- N_Derived_Type_Definition
3043 -- Sloc points to NEW
3044 -- Abstract_Present (Flag4)
3045 -- Null_Exclusion_Present (Flag11) (set to False if not present)
3046 -- Subtype_Indication (Node5)
3047 -- Record_Extension_Part (Node3) (set to Empty if not present)
3048 -- Limited_Present (Flag17)
3049 -- Task_Present (Flag5) set in task interfaces
3050 -- Protected_Present (Flag6) set in protected interfaces
3051 -- Synchronized_Present (Flag7) set in interfaces
3052 -- Interface_List (List2) (set to No_List if none)
3053 -- Interface_Present (Flag16) set in abstract interfaces
3055 -- Note: Task_Present, Protected_Present, Synchronized_Present,
3056 -- Interface_List, and Interface_Present are used for abstract
3057 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3059 ---------------------------
3060 -- 3.5 Range Constraint --
3061 ---------------------------
3063 -- RANGE_CONSTRAINT ::= range RANGE
3065 -- N_Range_Constraint
3066 -- Sloc points to RANGE
3067 -- Range_Expression (Node4)
3069 ----------------
3070 -- 3.5 Range --
3071 ----------------
3073 -- RANGE ::=
3074 -- RANGE_ATTRIBUTE_REFERENCE
3075 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
3077 -- Note: the case of a range given as a range attribute reference
3078 -- appears directly in the tree as an attribute reference.
3080 -- Note: the field name for a reference to a range is Range_Expression
3081 -- rather than Range, because range is a reserved keyword in Ada.
3083 -- Note: the reason that this node has expression fields is that a
3084 -- range can appear as an operand of a membership test. The Etype
3085 -- field is the type of the range (we do NOT construct an implicit
3086 -- subtype to represent the range exactly).
3088 -- N_Range
3089 -- Sloc points to ..
3090 -- Low_Bound (Node1)
3091 -- High_Bound (Node2)
3092 -- Includes_Infinities (Flag11)
3093 -- plus fields for expression
3095 -- Note: if the range appears in a context, such as a subtype
3096 -- declaration, where range checks are required on one or both of
3097 -- the expression fields, then type conversion nodes are inserted
3098 -- to represent the required checks.
3100 ----------------------------------------
3101 -- 3.5.1 Enumeration Type Definition --
3102 ----------------------------------------
3104 -- ENUMERATION_TYPE_DEFINITION ::=
3105 -- (ENUMERATION_LITERAL_SPECIFICATION
3106 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3108 -- Note: the Literals field in the node described below is null for
3109 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3110 -- which special processing handles these types as special cases.
3112 -- N_Enumeration_Type_Definition
3113 -- Sloc points to left parenthesis
3114 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3115 -- End_Label (Node4) (set to Empty if internally generated record)
3117 ----------------------------------------------
3118 -- 3.5.1 Enumeration Literal Specification --
3119 ----------------------------------------------
3121 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3122 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3124 ---------------------------------------
3125 -- 3.5.1 Defining Character Literal --
3126 ---------------------------------------
3128 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3130 -- A defining character literal is an entity, which has additional
3131 -- fields depending on the setting of the Ekind field. These
3132 -- additional fields are defined (and access subprograms declared)
3133 -- in package Einfo.
3135 -- Note: N_Defining_Character_Literal is an extended node whose fields
3136 -- are deliberately laid out to match layout of fields in an ordinary
3137 -- N_Character_Literal node, allowing for easy alteration of a character
3138 -- literal node into a defining character literal node. For details, see
3139 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3141 -- N_Defining_Character_Literal
3142 -- Sloc points to literal
3143 -- Chars (Name1) contains the Name_Id for the identifier
3144 -- Next_Entity (Node2-Sem)
3145 -- Scope (Node3-Sem)
3146 -- Etype (Node5-Sem)
3148 ------------------------------------
3149 -- 3.5.4 Integer Type Definition --
3150 ------------------------------------
3152 -- Note: there is an error in this rule in the latest version of the
3153 -- grammar, so we have retained the old rule pending clarification.
3155 -- INTEGER_TYPE_DEFINITION ::=
3156 -- SIGNED_INTEGER_TYPE_DEFINITION
3157 -- | MODULAR_TYPE_DEFINITION
3159 -------------------------------------------
3160 -- 3.5.4 Signed Integer Type Definition --
3161 -------------------------------------------
3163 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3164 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3166 -- Note: the Low_Bound and High_Bound fields are set to Empty
3167 -- for integer types defined in package Standard.
3169 -- N_Signed_Integer_Type_Definition
3170 -- Sloc points to RANGE
3171 -- Low_Bound (Node1)
3172 -- High_Bound (Node2)
3174 ------------------------------------
3175 -- 3.5.4 Modular Type Definition --
3176 ------------------------------------
3178 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3180 -- N_Modular_Type_Definition
3181 -- Sloc points to MOD
3182 -- Expression (Node3)
3184 ---------------------------------
3185 -- 3.5.6 Real Type Definition --
3186 ---------------------------------
3188 -- REAL_TYPE_DEFINITION ::=
3189 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3191 --------------------------------------
3192 -- 3.5.7 Floating Point Definition --
3193 --------------------------------------
3195 -- FLOATING_POINT_DEFINITION ::=
3196 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3198 -- Note: The Digits_Expression and Real_Range_Specifications fields
3199 -- are set to Empty for floating-point types declared in Standard.
3201 -- N_Floating_Point_Definition
3202 -- Sloc points to DIGITS
3203 -- Digits_Expression (Node2)
3204 -- Real_Range_Specification (Node4) (set to Empty if not present)
3206 -------------------------------------
3207 -- 3.5.7 Real Range Specification --
3208 -------------------------------------
3210 -- REAL_RANGE_SPECIFICATION ::=
3211 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3213 -- N_Real_Range_Specification
3214 -- Sloc points to RANGE
3215 -- Low_Bound (Node1)
3216 -- High_Bound (Node2)
3218 -----------------------------------
3219 -- 3.5.9 Fixed Point Definition --
3220 -----------------------------------
3222 -- FIXED_POINT_DEFINITION ::=
3223 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3225 --------------------------------------------
3226 -- 3.5.9 Ordinary Fixed Point Definition --
3227 --------------------------------------------
3229 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3230 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3232 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3234 -- N_Ordinary_Fixed_Point_Definition
3235 -- Sloc points to DELTA
3236 -- Delta_Expression (Node3)
3237 -- Real_Range_Specification (Node4)
3239 -------------------------------------------
3240 -- 3.5.9 Decimal Fixed Point Definition --
3241 -------------------------------------------
3243 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3244 -- delta static_EXPRESSION
3245 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3247 -- Note: decimal types are not permitted in Ada 83 mode
3249 -- N_Decimal_Fixed_Point_Definition
3250 -- Sloc points to DELTA
3251 -- Delta_Expression (Node3)
3252 -- Digits_Expression (Node2)
3253 -- Real_Range_Specification (Node4) (set to Empty if not present)
3255 ------------------------------
3256 -- 3.5.9 Digits Constraint --
3257 ------------------------------
3259 -- DIGITS_CONSTRAINT ::=
3260 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3262 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3263 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3265 -- N_Digits_Constraint
3266 -- Sloc points to DIGITS
3267 -- Digits_Expression (Node2)
3268 -- Range_Constraint (Node4) (set to Empty if not present)
3270 --------------------------------
3271 -- 3.6 Array Type Definition --
3272 --------------------------------
3274 -- ARRAY_TYPE_DEFINITION ::=
3275 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3277 -----------------------------------------
3278 -- 3.6 Unconstrained Array Definition --
3279 -----------------------------------------
3281 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3282 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3283 -- COMPONENT_DEFINITION
3285 -- Note: dimensionality of array is indicated by number of entries in
3286 -- the Subtype_Marks list, which has one entry for each dimension.
3288 -- N_Unconstrained_Array_Definition
3289 -- Sloc points to ARRAY
3290 -- Subtype_Marks (List2)
3291 -- Component_Definition (Node4)
3293 -----------------------------------
3294 -- 3.6 Index Subtype Definition --
3295 -----------------------------------
3297 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3299 -- There is no explicit node in the tree for an index subtype
3300 -- definition since the N_Unconstrained_Array_Definition node
3301 -- incorporates the type marks which appear in this context.
3303 ---------------------------------------
3304 -- 3.6 Constrained Array Definition --
3305 ---------------------------------------
3307 -- CONSTRAINED_ARRAY_DEFINITION ::=
3308 -- array (DISCRETE_SUBTYPE_DEFINITION
3309 -- {, DISCRETE_SUBTYPE_DEFINITION})
3310 -- of COMPONENT_DEFINITION
3312 -- Note: dimensionality of array is indicated by number of entries
3313 -- in the Discrete_Subtype_Definitions list, which has one entry
3314 -- for each dimension.
3316 -- N_Constrained_Array_Definition
3317 -- Sloc points to ARRAY
3318 -- Discrete_Subtype_Definitions (List2)
3319 -- Component_Definition (Node4)
3321 -- Note: although the language allows the full syntax for discrete
3322 -- subtype definitions (i.e. a discrete subtype indication or a range),
3323 -- in the generated tree, we always rewrite these as N_Range nodes.
3325 --------------------------------------
3326 -- 3.6 Discrete Subtype Definition --
3327 --------------------------------------
3329 -- DISCRETE_SUBTYPE_DEFINITION ::=
3330 -- discrete_SUBTYPE_INDICATION | RANGE
3332 -------------------------------
3333 -- 3.6 Component Definition --
3334 -------------------------------
3336 -- COMPONENT_DEFINITION ::=
3337 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3339 -- Note: although the syntax does not permit a component definition to
3340 -- be an anonymous array (and the parser will diagnose such an attempt
3341 -- with an appropriate message), it is possible for anonymous arrays
3342 -- to appear as component definitions. The semantics and back end handle
3343 -- this case properly, and the expander in fact generates such cases.
3344 -- Access_Definition is an optional field that gives support to
3345 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3346 -- Subtype_Indication field or else the Access_Definition field.
3348 -- N_Component_Definition
3349 -- Sloc points to ALIASED, ACCESS, or to first token of subtype mark
3350 -- Aliased_Present (Flag4)
3351 -- Null_Exclusion_Present (Flag11)
3352 -- Subtype_Indication (Node5) (set to Empty if not present)
3353 -- Access_Definition (Node3) (set to Empty if not present)
3355 -----------------------------
3356 -- 3.6.1 Index Constraint --
3357 -----------------------------
3359 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3361 -- It is not in general possible to distinguish between discriminant
3362 -- constraints and index constraints at parse time, since a simple
3363 -- name could be either the subtype mark of a discrete range, or an
3364 -- expression in a discriminant association with no name. Either
3365 -- entry appears simply as the name, and the semantic parse must
3366 -- distinguish between the two cases. Thus we use a common tree
3367 -- node format for both of these constraint types.
3369 -- See Discriminant_Constraint for format of node
3371 ---------------------------
3372 -- 3.6.1 Discrete Range --
3373 ---------------------------
3375 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3377 ----------------------------
3378 -- 3.7 Discriminant Part --
3379 ----------------------------
3381 -- DISCRIMINANT_PART ::=
3382 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3384 ------------------------------------
3385 -- 3.7 Unknown Discriminant Part --
3386 ------------------------------------
3388 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3390 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3392 -- There is no explicit node in the tree for an unknown discriminant
3393 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3394 -- parent node.
3396 ----------------------------------
3397 -- 3.7 Known Discriminant Part --
3398 ----------------------------------
3400 -- KNOWN_DISCRIMINANT_PART ::=
3401 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3403 -------------------------------------
3404 -- 3.7 Discriminant Specification --
3405 -------------------------------------
3407 -- DISCRIMINANT_SPECIFICATION ::=
3408 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3409 -- [:= DEFAULT_EXPRESSION]
3410 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3411 -- [:= DEFAULT_EXPRESSION]
3413 -- Although the syntax allows multiple identifiers in the list, the
3414 -- semantics is as though successive specifications were given with
3415 -- identical type definition and expression components. To simplify
3416 -- semantic processing, the parser represents a multiple declaration
3417 -- case as a sequence of single specifications, using the More_Ids and
3418 -- Prev_Ids flags to preserve the original source form as described
3419 -- in the section on "Handling of Defining Identifier Lists".
3421 -- N_Discriminant_Specification
3422 -- Sloc points to first identifier
3423 -- Defining_Identifier (Node1)
3424 -- Null_Exclusion_Present (Flag11)
3425 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3426 -- Expression (Node3) (set to Empty if no default expression)
3427 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3428 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3430 -----------------------------
3431 -- 3.7 Default Expression --
3432 -----------------------------
3434 -- DEFAULT_EXPRESSION ::= EXPRESSION
3436 ------------------------------------
3437 -- 3.7.1 Discriminant Constraint --
3438 ------------------------------------
3440 -- DISCRIMINANT_CONSTRAINT ::=
3441 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3443 -- It is not in general possible to distinguish between discriminant
3444 -- constraints and index constraints at parse time, since a simple
3445 -- name could be either the subtype mark of a discrete range, or an
3446 -- expression in a discriminant association with no name. Either
3447 -- entry appears simply as the name, and the semantic parse must
3448 -- distinguish between the two cases. Thus we use a common tree
3449 -- node format for both of these constraint types.
3451 -- N_Index_Or_Discriminant_Constraint
3452 -- Sloc points to left paren
3453 -- Constraints (List1) points to list of discrete ranges or
3454 -- discriminant associations
3456 -------------------------------------
3457 -- 3.7.1 Discriminant Association --
3458 -------------------------------------
3460 -- DISCRIMINANT_ASSOCIATION ::=
3461 -- [discriminant_SELECTOR_NAME
3462 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3464 -- Note: a discriminant association that has no selector name list
3465 -- appears directly as an expression in the tree.
3467 -- N_Discriminant_Association
3468 -- Sloc points to first token of discriminant association
3469 -- Selector_Names (List1) (always non-empty, since if no selector
3470 -- names are present, this node is not used, see comment above)
3471 -- Expression (Node3)
3473 ---------------------------------
3474 -- 3.8 Record Type Definition --
3475 ---------------------------------
3477 -- RECORD_TYPE_DEFINITION ::=
3478 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3480 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3482 -- There is no explicit node in the tree for a record type definition.
3483 -- Instead the flags for Tagged_Present and Limited_Present appear in
3484 -- the N_Record_Definition node for a record definition appearing in
3485 -- the context of a record type definition.
3487 ----------------------------
3488 -- 3.8 Record Definition --
3489 ----------------------------
3491 -- RECORD_DEFINITION ::=
3492 -- record
3493 -- COMPONENT_LIST
3494 -- end record
3495 -- | null record
3497 -- Note: the Abstract_Present, Tagged_Present, and Limited_Present
3498 -- flags appear only for a record definition appearing in a record
3499 -- type definition.
3501 -- Note: the NULL RECORD case is not permitted in Ada 83
3503 -- N_Record_Definition
3504 -- Sloc points to RECORD or NULL
3505 -- End_Label (Node4) (set to Empty if internally generated record)
3506 -- Abstract_Present (Flag4)
3507 -- Tagged_Present (Flag15)
3508 -- Limited_Present (Flag17)
3509 -- Component_List (Node1) empty in null record case
3510 -- Null_Present (Flag13) set in null record case
3511 -- Task_Present (Flag5) set in task interfaces
3512 -- Protected_Present (Flag6) set in protected interfaces
3513 -- Synchronized_Present (Flag7) set in interfaces
3514 -- Interface_Present (Flag16) set in abstract interfaces
3515 -- Interface_List (List2) (set to No_List if none)
3517 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3518 -- Interface_List and Interface_Present are used for abstract
3519 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3521 -------------------------
3522 -- 3.8 Component List --
3523 -------------------------
3525 -- COMPONENT_LIST ::=
3526 -- COMPONENT_ITEM {COMPONENT_ITEM}
3527 -- | {COMPONENT_ITEM} VARIANT_PART
3528 -- | null;
3530 -- N_Component_List
3531 -- Sloc points to first token of component list
3532 -- Component_Items (List3)
3533 -- Variant_Part (Node4) (set to Empty if no variant part)
3534 -- Null_Present (Flag13)
3536 -------------------------
3537 -- 3.8 Component Item --
3538 -------------------------
3540 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3542 -- Note: A component item can also be a pragma, and in the tree
3543 -- that is obtained after semantic processing, a component item
3544 -- can be an N_Null node resulting from a non-recognized pragma.
3546 --------------------------------
3547 -- 3.8 Component Declaration --
3548 --------------------------------
3550 -- COMPONENT_DECLARATION ::=
3551 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3552 -- [:= DEFAULT_EXPRESSION]
3553 -- [ASPECT_SPECIFICATIONS];
3555 -- Note: although the syntax does not permit a component definition to
3556 -- be an anonymous array (and the parser will diagnose such an attempt
3557 -- with an appropriate message), it is possible for anonymous arrays
3558 -- to appear as component definitions. The semantics and back end handle
3559 -- this case properly, and the expander in fact generates such cases.
3561 -- Although the syntax allows multiple identifiers in the list, the
3562 -- semantics is as though successive declarations were given with the
3563 -- same component definition and expression components. To simplify
3564 -- semantic processing, the parser represents a multiple declaration
3565 -- case as a sequence of single declarations, using the More_Ids and
3566 -- Prev_Ids flags to preserve the original source form as described
3567 -- in the section on "Handling of Defining Identifier Lists".
3569 -- N_Component_Declaration
3570 -- Sloc points to first identifier
3571 -- Defining_Identifier (Node1)
3572 -- Component_Definition (Node4)
3573 -- Expression (Node3) (set to Empty if no default expression)
3574 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3575 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3577 -------------------------
3578 -- 3.8.1 Variant Part --
3579 -------------------------
3581 -- VARIANT_PART ::=
3582 -- case discriminant_DIRECT_NAME is
3583 -- VARIANT {VARIANT}
3584 -- end case;
3586 -- Note: the variants list can contain pragmas as well as variants.
3587 -- In a properly formed program there is at least one variant.
3589 -- N_Variant_Part
3590 -- Sloc points to CASE
3591 -- Name (Node2)
3592 -- Variants (List1)
3594 --------------------
3595 -- 3.8.1 Variant --
3596 --------------------
3598 -- VARIANT ::=
3599 -- when DISCRETE_CHOICE_LIST =>
3600 -- COMPONENT_LIST
3602 -- N_Variant
3603 -- Sloc points to WHEN
3604 -- Discrete_Choices (List4)
3605 -- Component_List (Node1)
3606 -- Enclosing_Variant (Node2-Sem)
3607 -- Present_Expr (Uint3-Sem)
3608 -- Dcheck_Function (Node5-Sem)
3609 -- Has_SP_Choice (Flag15-Sem)
3611 -- Note: in the list of Discrete_Choices, the tree passed to the back
3612 -- end does not have choice entries corresponding to names of statically
3613 -- predicated subtypes. Such entries are always expanded out to the list
3614 -- of equivalent values or ranges.
3616 ---------------------------------
3617 -- 3.8.1 Discrete Choice List --
3618 ---------------------------------
3620 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3622 ----------------------------
3623 -- 3.8.1 Discrete Choice --
3624 ----------------------------
3626 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3628 -- Note: in Ada 83 mode, the expression must be a simple expression
3630 -- The only choice that appears explicitly is the OTHERS choice, as
3631 -- defined here. Other cases of discrete choice (expression and
3632 -- discrete range) appear directly. This production is also used
3633 -- for the OTHERS possibility of an exception choice.
3635 -- Note: in accordance with the syntax, the parser does not check that
3636 -- OTHERS appears at the end on its own in a choice list context. This
3637 -- is a semantic check.
3639 -- N_Others_Choice
3640 -- Sloc points to OTHERS
3641 -- Others_Discrete_Choices (List1-Sem)
3642 -- All_Others (Flag11-Sem)
3644 ----------------------------------
3645 -- 3.9.1 Record Extension Part --
3646 ----------------------------------
3648 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3650 -- Note: record extension parts are not permitted in Ada 83 mode
3652 --------------------------------------
3653 -- 3.9.4 Interface Type Definition --
3654 --------------------------------------
3656 -- INTERFACE_TYPE_DEFINITION ::=
3657 -- [limited | task | protected | synchronized]
3658 -- interface [interface_list]
3660 -- Note: Interfaces are implemented with N_Record_Definition and
3661 -- N_Derived_Type_Definition nodes because most of the support
3662 -- for the analysis of abstract types has been reused to
3663 -- analyze abstract interfaces.
3665 ----------------------------------
3666 -- 3.10 Access Type Definition --
3667 ----------------------------------
3669 -- ACCESS_TYPE_DEFINITION ::=
3670 -- ACCESS_TO_OBJECT_DEFINITION
3671 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3673 --------------------------
3674 -- 3.10 Null Exclusion --
3675 --------------------------
3677 -- NULL_EXCLUSION ::= not null
3679 ---------------------------------------
3680 -- 3.10 Access To Object Definition --
3681 ---------------------------------------
3683 -- ACCESS_TO_OBJECT_DEFINITION ::=
3684 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3685 -- SUBTYPE_INDICATION
3687 -- N_Access_To_Object_Definition
3688 -- Sloc points to ACCESS
3689 -- All_Present (Flag15)
3690 -- Null_Exclusion_Present (Flag11)
3691 -- Null_Excluding_Subtype (Flag16)
3692 -- Subtype_Indication (Node5)
3693 -- Constant_Present (Flag17)
3695 -----------------------------------
3696 -- 3.10 General Access Modifier --
3697 -----------------------------------
3699 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3701 -- Note: general access modifiers are not permitted in Ada 83 mode
3703 -- There is no explicit node in the tree for general access modifier.
3704 -- Instead the All_Present or Constant_Present flags are set in the
3705 -- parent node.
3707 -------------------------------------------
3708 -- 3.10 Access To Subprogram Definition --
3709 -------------------------------------------
3711 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3712 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3713 -- | [NULL_EXCLUSION] access [protected] function
3714 -- PARAMETER_AND_RESULT_PROFILE
3716 -- Note: access to subprograms are not permitted in Ada 83 mode
3718 -- N_Access_Function_Definition
3719 -- Sloc points to ACCESS
3720 -- Null_Exclusion_Present (Flag11)
3721 -- Null_Exclusion_In_Return_Present (Flag14)
3722 -- Protected_Present (Flag6)
3723 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3724 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3726 -- N_Access_Procedure_Definition
3727 -- Sloc points to ACCESS
3728 -- Null_Exclusion_Present (Flag11)
3729 -- Protected_Present (Flag6)
3730 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3732 -----------------------------
3733 -- 3.10 Access Definition --
3734 -----------------------------
3736 -- ACCESS_DEFINITION ::=
3737 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3738 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3740 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3742 -- N_Access_Definition
3743 -- Sloc points to ACCESS
3744 -- Null_Exclusion_Present (Flag11)
3745 -- All_Present (Flag15)
3746 -- Constant_Present (Flag17)
3747 -- Subtype_Mark (Node4)
3748 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3750 -----------------------------------------
3751 -- 3.10.1 Incomplete Type Declaration --
3752 -----------------------------------------
3754 -- INCOMPLETE_TYPE_DECLARATION ::=
3755 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3757 -- N_Incomplete_Type_Declaration
3758 -- Sloc points to TYPE
3759 -- Defining_Identifier (Node1)
3760 -- Discriminant_Specifications (List4) (set to No_List if no
3761 -- discriminant part, or if the discriminant part is an
3762 -- unknown discriminant part)
3763 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3764 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3765 -- Tagged_Present (Flag15)
3767 ----------------------------
3768 -- 3.11 Declarative Part --
3769 ----------------------------
3771 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3773 -- Note: although the parser enforces the syntactic requirement that
3774 -- a declarative part can contain only declarations, the semantic
3775 -- processing may add statements to the list of actions in a
3776 -- declarative part, so the code generator should be prepared
3777 -- to accept a statement in this position.
3779 ----------------------------
3780 -- 3.11 Declarative Item --
3781 ----------------------------
3783 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3785 ----------------------------------
3786 -- 3.11 Basic Declarative Item --
3787 ----------------------------------
3789 -- BASIC_DECLARATIVE_ITEM ::=
3790 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3792 ----------------
3793 -- 3.11 Body --
3794 ----------------
3796 -- BODY ::= PROPER_BODY | BODY_STUB
3798 -----------------------
3799 -- 3.11 Proper Body --
3800 -----------------------
3802 -- PROPER_BODY ::=
3803 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3805 ---------------
3806 -- 4.1 Name --
3807 ---------------
3809 -- NAME ::=
3810 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3811 -- | INDEXED_COMPONENT | SLICE
3812 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3813 -- | TYPE_CONVERSION | FUNCTION_CALL
3814 -- | CHARACTER_LITERAL
3816 ----------------------
3817 -- 4.1 Direct Name --
3818 ----------------------
3820 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3822 -----------------
3823 -- 4.1 Prefix --
3824 -----------------
3826 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3828 -------------------------------
3829 -- 4.1 Explicit Dereference --
3830 -------------------------------
3832 -- EXPLICIT_DEREFERENCE ::= NAME . all
3834 -- N_Explicit_Dereference
3835 -- Sloc points to ALL
3836 -- Prefix (Node3)
3837 -- Actual_Designated_Subtype (Node4-Sem)
3838 -- Has_Dereference_Action (Flag13-Sem)
3839 -- Atomic_Sync_Required (Flag14-Sem)
3840 -- plus fields for expression
3842 -------------------------------
3843 -- 4.1 Implicit Dereference --
3844 -------------------------------
3846 -- IMPLICIT_DEREFERENCE ::= NAME
3848 ------------------------------
3849 -- 4.1.1 Indexed Component --
3850 ------------------------------
3852 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3854 -- Note: the parser may generate this node in some situations where it
3855 -- should be a function call. The semantic pass must correct this
3856 -- misidentification (which is inevitable at the parser level).
3858 -- N_Indexed_Component
3859 -- Sloc contains a copy of the Sloc value of the Prefix
3860 -- Prefix (Node3)
3861 -- Expressions (List1)
3862 -- Generalized_Indexing (Node4-Sem)
3863 -- Atomic_Sync_Required (Flag14-Sem)
3864 -- plus fields for expression
3866 -- Note: if any of the subscripts requires a range check, then the
3867 -- Do_Range_Check flag is set on the corresponding expression, with
3868 -- the index type being determined from the type of the Prefix, which
3869 -- references the array being indexed.
3871 -- Note: in a fully analyzed and expanded indexed component node, and
3872 -- hence in any such node that gigi sees, if the prefix is an access
3873 -- type, then an explicit dereference operation has been inserted.
3875 ------------------
3876 -- 4.1.2 Slice --
3877 ------------------
3879 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3881 -- Note: an implicit subtype is created to describe the resulting
3882 -- type, so that the bounds of this type are the bounds of the slice.
3884 -- N_Slice
3885 -- Sloc points to first token of prefix
3886 -- Prefix (Node3)
3887 -- Discrete_Range (Node4)
3888 -- plus fields for expression
3890 -------------------------------
3891 -- 4.1.3 Selected Component --
3892 -------------------------------
3894 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3896 -- Note: selected components that are semantically expanded names get
3897 -- changed during semantic processing into the separate N_Expanded_Name
3898 -- node. See description of this node in the section on semantic nodes.
3900 -- N_Selected_Component
3901 -- Sloc points to the period
3902 -- Prefix (Node3)
3903 -- Selector_Name (Node2)
3904 -- Associated_Node (Node4-Sem)
3905 -- Do_Discriminant_Check (Flag3-Sem)
3906 -- Is_In_Discriminant_Check (Flag11-Sem)
3907 -- Atomic_Sync_Required (Flag14-Sem)
3908 -- Is_Prefixed_Call (Flag17-Sem)
3909 -- plus fields for expression
3911 --------------------------
3912 -- 4.1.3 Selector Name --
3913 --------------------------
3915 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3917 --------------------------------
3918 -- 4.1.4 Attribute Reference --
3919 --------------------------------
3921 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3923 -- Note: the syntax is quite ambiguous at this point. Consider:
3925 -- A'Length (X) X is part of the attribute designator
3926 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3927 -- A'Class (X) X is the expression of a type conversion
3929 -- It would be possible for the parser to distinguish these cases
3930 -- by looking at the attribute identifier. However, that would mean
3931 -- more work in introducing new implementation defined attributes,
3932 -- and also it would mean that special processing for attributes
3933 -- would be scattered around, instead of being centralized in the
3934 -- semantic routine that handles an N_Attribute_Reference node.
3935 -- Consequently, the parser in all the above cases stores the
3936 -- expression (X in these examples) as a single element list in
3937 -- in the Expressions field of the N_Attribute_Reference node.
3939 -- Similarly, for attributes like Max which take two arguments,
3940 -- we store the two arguments as a two element list in the
3941 -- Expressions field. Of course it is clear at parse time that
3942 -- this case is really a function call with an attribute as the
3943 -- prefix, but it turns out to be convenient to handle the two
3944 -- argument case in a similar manner to the one argument case,
3945 -- and indeed in general the parser will accept any number of
3946 -- expressions in this position and store them as a list in the
3947 -- attribute reference node. This allows for future addition of
3948 -- attributes that take more than two arguments.
3950 -- Note: named associates are not permitted in function calls where
3951 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3952 -- to skip the normal subprogram argument processing.
3954 -- Note: for the attributes whose designators are technically keywords,
3955 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3956 -- the corresponding name, even though no identifier is involved.
3958 -- Note: the generated code may contain stream attributes applied to
3959 -- limited types for which no stream routines exist officially. In such
3960 -- case, the result is to use the stream attribute for the underlying
3961 -- full type, or in the case of a protected type, the components
3962 -- (including any discriminants) are merely streamed in order.
3964 -- See Exp_Attr for a complete description of which attributes are
3965 -- passed onto Gigi, and which are handled entirely by the front end.
3967 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3968 -- a non-standard enumeration type or a nonzero/zero semantics
3969 -- boolean type, so the value is simply the stored representation.
3971 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3972 -- references a subprogram that is a renaming, then the front end must
3973 -- rewrite the attribute to refer directly to the renamed entity.
3975 -- Note: syntactically the prefix of an attribute reference must be a
3976 -- name, and this (somewhat artificial) requirement is enforced by the
3977 -- parser. However, for many attributes, such as 'Valid, it is quite
3978 -- reasonable to apply the attribute to any value, and hence to any
3979 -- expression. Internally in the tree, the prefix is an expression which
3980 -- does not have to be a name, and this is handled fine by the semantic
3981 -- analysis and expansion, and back ends. This arises for the case of
3982 -- attribute references built by the expander (e.g. 'Valid for the case
3983 -- of an implicit validity check).
3985 -- Note: In generated code, the Address and Unrestricted_Access
3986 -- attributes can be applied to any expression, and the meaning is
3987 -- to create an object containing the value (the object is in the
3988 -- current stack frame), and pass the address of this value. If the
3989 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3990 -- is taken must be on a byte (storage unit) boundary, and if it is
3991 -- not (or may not be), then the generated code must create a copy
3992 -- that is byte aligned, and pass the address of this copy.
3994 -- N_Attribute_Reference
3995 -- Sloc points to apostrophe
3996 -- Prefix (Node3) (general expression, see note above)
3997 -- Attribute_Name (Name2) identifier name from attribute designator
3998 -- Expressions (List1) (set to No_List if no associated expressions)
3999 -- Entity (Node4-Sem) used if the attribute yields a type
4000 -- Associated_Node (Node4-Sem)
4001 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4002 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4003 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
4004 -- Header_Size_Added (Flag11-Sem)
4005 -- Redundant_Use (Flag13-Sem)
4006 -- Must_Be_Byte_Aligned (Flag14-Sem)
4007 -- plus fields for expression
4009 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
4010 -- into equivalent if expressions, properly taking care of side effects.
4012 ---------------------------------
4013 -- 4.1.4 Attribute Designator --
4014 ---------------------------------
4016 -- ATTRIBUTE_DESIGNATOR ::=
4017 -- IDENTIFIER [(static_EXPRESSION)]
4018 -- | access | delta | digits
4020 -- There is no explicit node in the tree for an attribute designator.
4021 -- Instead the Attribute_Name and Expressions fields of the parent
4022 -- node (N_Attribute_Reference node) hold the information.
4024 -- Note: if ACCESS, DELTA, or DIGITS appears in an attribute
4025 -- designator, then they are treated as identifiers internally
4026 -- rather than the keywords of the same name.
4028 --------------------------------------
4029 -- 4.1.4 Range Attribute Reference --
4030 --------------------------------------
4032 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
4034 -- A range attribute reference is represented in the tree using the
4035 -- normal N_Attribute_Reference node.
4037 ---------------------------------------
4038 -- 4.1.4 Range Attribute Designator --
4039 ---------------------------------------
4041 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
4043 -- A range attribute designator is represented in the tree using the
4044 -- normal N_Attribute_Reference node.
4046 --------------------
4047 -- 4.3 Aggregate --
4048 --------------------
4050 -- AGGREGATE ::=
4051 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
4053 -----------------------------
4054 -- 4.3.1 Record Aggregate --
4055 -----------------------------
4057 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
4059 -- N_Aggregate
4060 -- Sloc points to left parenthesis
4061 -- Expressions (List1) (set to No_List if none or null record case)
4062 -- Component_Associations (List2) (set to No_List if none)
4063 -- Null_Record_Present (Flag17)
4064 -- Aggregate_Bounds (Node3-Sem)
4065 -- Associated_Node (Node4-Sem)
4066 -- Compile_Time_Known_Aggregate (Flag18-Sem)
4067 -- Expansion_Delayed (Flag11-Sem)
4068 -- Has_Self_Reference (Flag13-Sem)
4069 -- Is_Homogeneous_Aggregate (Flag14)
4070 -- plus fields for expression
4072 -- Note: this structure is used for both record and array aggregates
4073 -- since the two cases are not separable by the parser. The parser
4074 -- makes no attempt to enforce consistency here, so it is up to the
4075 -- semantic phase to make sure that the aggregate is consistent (i.e.
4076 -- that it is not a "half-and-half" case that mixes record and array
4077 -- syntax). In particular, for a record aggregate, the expressions
4078 -- field will be set if there are positional associations.
4080 -- Note: N_Aggregate is not used for all aggregates; in particular,
4081 -- there is a separate node kind for extension aggregates.
4083 -- Note: gigi/gcc can handle array aggregates correctly providing that
4084 -- they are entirely positional, and the array subtype involved has a
4085 -- known at compile time length and is not bit packed, or a convention
4086 -- Fortran array with more than one dimension. If these conditions
4087 -- are not met, then the front end must translate the aggregate into
4088 -- an appropriate set of assignments into a temporary.
4090 -- Note: for the record aggregate case, gigi/gcc can handle most cases
4091 -- of record aggregates, including those for packed, and rep-claused
4092 -- records, and also variant records, providing that there are no
4093 -- variable length fields whose size is not known at compile time,
4094 -- and providing that the aggregate is presented in fully named form.
4096 -- The other situation in which array aggregates and record aggregates
4097 -- cannot be passed to the back end is if assignment to one or more
4098 -- components itself needs expansion, e.g. in the case of an assignment
4099 -- of an object of a controlled type. In such cases, the front end
4100 -- must expand the aggregate to a series of assignments, and apply
4101 -- the required expansion to the individual assignment statements.
4103 ----------------------------------------------
4104 -- 4.3.1 Record Component Association List --
4105 ----------------------------------------------
4107 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4108 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4109 -- | null record
4111 -- There is no explicit node in the tree for a record component
4112 -- association list. Instead the Null_Record_Present flag is set in
4113 -- the parent node for the NULL RECORD case.
4115 ------------------------------------------------------
4116 -- 4.3.1 Record Component Association (also 4.3.3) --
4117 ------------------------------------------------------
4119 -- RECORD_COMPONENT_ASSOCIATION ::=
4120 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4122 -- N_Component_Association
4123 -- Sloc points to first selector name
4124 -- Choices (List1)
4125 -- Expression (Node3) (empty if Box_Present)
4126 -- Loop_Actions (List5-Sem)
4127 -- Box_Present (Flag15)
4128 -- Was_Default_Init_Box_Association (Flag14)
4129 -- Inherited_Discriminant (Flag13)
4131 -- Note: this structure is used for both record component associations
4132 -- and array component associations, since the two cases aren't always
4133 -- separable by the parser. The choices list may represent either a
4134 -- list of selector names in the record aggregate case, or a list of
4135 -- discrete choices in the array aggregate case or an N_Others_Choice
4136 -- node (which appears as a singleton list). Box_Present gives support
4137 -- to Ada 2005 (AI-287). Was_Default_Init_Box_Association is used for
4138 -- determining the need for Default_Initial_Condition check on component
4139 -- associations with a box.
4141 ----------------------------------
4142 -- 4.3.1 Component Choice List --
4143 ----------------------------------
4145 -- COMPONENT_CHOICE_LIST ::=
4146 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4147 -- | others
4149 -- The entries of a component choice list appear in the Choices list of
4150 -- the associated N_Component_Association, as either selector names, or
4151 -- as an N_Others_Choice node.
4153 --------------------------------
4154 -- 4.3.2 Extension Aggregate --
4155 --------------------------------
4157 -- EXTENSION_AGGREGATE ::=
4158 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4160 -- Note: extension aggregates are not permitted in Ada 83 mode
4162 -- N_Extension_Aggregate
4163 -- Sloc points to left parenthesis
4164 -- Ancestor_Part (Node3)
4165 -- Associated_Node (Node4-Sem)
4166 -- Expressions (List1) (set to No_List if none or null record case)
4167 -- Component_Associations (List2) (set to No_List if none)
4168 -- Null_Record_Present (Flag17)
4169 -- Expansion_Delayed (Flag11-Sem)
4170 -- Has_Self_Reference (Flag13-Sem)
4171 -- plus fields for expression
4173 --------------------------
4174 -- 4.3.2 Ancestor Part --
4175 --------------------------
4177 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4179 ----------------------------
4180 -- 4.3.3 Array Aggregate --
4181 ----------------------------
4183 -- ARRAY_AGGREGATE ::=
4184 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4186 ---------------------------------------
4187 -- 4.3.3 Positional Array Aggregate --
4188 ---------------------------------------
4190 -- POSITIONAL_ARRAY_AGGREGATE ::=
4191 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4192 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4194 -- See Record_Aggregate (4.3.1) for node structure
4196 ----------------------------------
4197 -- 4.3.3 Named Array Aggregate --
4198 ----------------------------------
4200 -- NAMED_ARRAY_AGGREGATE ::=
4201 -- (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4203 -- See Record_Aggregate (4.3.1) for node structure
4205 ----------------------------------------
4206 -- 4.3.3 Array Component Association --
4207 ----------------------------------------
4209 -- ARRAY_COMPONENT_ASSOCIATION ::=
4210 -- DISCRETE_CHOICE_LIST => EXPRESSION
4211 -- | ITERATED_COMPONENT_ASSOCIATION
4213 -- See Record_Component_Association (4.3.1) for node structure
4214 -- The iterated_component_association is introduced into the
4215 -- Corrigendum of Ada_2012 by AI12-061.
4217 ------------------------------------------
4218 -- 4.3.3 Iterated component Association --
4219 ------------------------------------------
4221 -- ITERATED_COMPONENT_ASSOCIATION ::=
4222 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4224 -- N_Iterated_Component_Association
4225 -- Sloc points to FOR
4226 -- Defining_Identifier (Node1)
4227 -- Iterator_Specification (Node2) (set to Empty if no Iterator_Spec)
4228 -- Expression (Node3)
4229 -- Discrete_Choices (List4)
4230 -- Loop_Actions (List5-Sem)
4231 -- Box_Present (Flag15)
4233 -- Note that Box_Present is always False, but it is intentionally added
4234 -- for completeness.
4236 ----------------------------
4237 -- 4.3.4 Delta Aggregate --
4238 ----------------------------
4240 -- N_Delta_Aggregate
4241 -- Sloc points to left parenthesis
4242 -- Expression (Node3)
4243 -- Component_Associations (List2)
4244 -- Etype (Node5-Sem)
4246 ---------------------------------
4247 -- 3.4.5 Comtainer_Aggregates --
4248 ---------------------------------
4250 -- N_Iterated_Element_Association
4251 -- Key_Expression (Node1)
4252 -- Iterator_Specification (Node2)
4253 -- Expression (Node3)
4254 -- Loop_Parameter_Specification (Node4)
4255 -- Loop_Actions (List5-Sem)
4256 -- Box_Present (Flag15)
4258 -- Exactly one of Iterator_Specification or Loop_Parameter_
4259 -- specification is present. If the Key_Expression is absent,
4260 -- the construct is parsed as an Iterated_Component_Association,
4261 -- and legality checks are performed during semantic analysis.
4263 -- Both iterated associations are Ada2020 features that are
4264 -- expanded during aggregate construction, and do not appear in
4265 -- expanded code.
4267 --------------------------------------------------
4268 -- 4.4 Expression/Relation/Term/Factor/Primary --
4269 --------------------------------------------------
4271 -- EXPRESSION ::=
4272 -- RELATION {LOGICAL_OPERATOR RELATION}
4274 -- CHOICE_EXPRESSION ::=
4275 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4277 -- CHOICE_RELATION ::=
4278 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4280 -- RELATION ::=
4281 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4282 -- | RAISE_EXPRESSION
4284 -- MEMBERSHIP_CHOICE_LIST ::=
4285 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4287 -- MEMBERSHIP_CHOICE ::=
4288 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4290 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4292 -- SIMPLE_EXPRESSION ::=
4293 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4295 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4297 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4299 -- No nodes are generated for any of these constructs. Instead, the
4300 -- node for the operator appears directly. When we refer to an
4301 -- expression in this description, we mean any of the possible
4302 -- constituent components of an expression (e.g. identifier is
4303 -- an example of an expression).
4305 -- Note: the above syntax is that Ada 2012 syntax which restricts
4306 -- choice relations to simple expressions to avoid ambiguities in
4307 -- some contexts with set membership notation. It has been decided
4308 -- that in retrospect, the Ada 95 change allowing general expressions
4309 -- in this context was a mistake, so we have reverted to the above
4310 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4311 -- expressions was there in Ada 83 from the start).
4313 ------------------
4314 -- 4.4 Primary --
4315 ------------------
4317 -- PRIMARY ::=
4318 -- NUMERIC_LITERAL | null
4319 -- | STRING_LITERAL | AGGREGATE
4320 -- | NAME | QUALIFIED_EXPRESSION
4321 -- | ALLOCATOR | (EXPRESSION)
4323 -- Usually there is no explicit node in the tree for primary. Instead
4324 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4325 -- exceptions. First, there is an explicit node for a null primary.
4327 -- N_Null
4328 -- Sloc points to NULL
4329 -- plus fields for expression
4331 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4332 -- that the parser keep track of which subexpressions are enclosed
4333 -- in parentheses, and how many levels of parentheses are used. This
4334 -- information is required for optimization purposes, and also for
4335 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4336 -- conform with ((((1)))) in the body).
4338 -- The parentheses are recorded by keeping a Paren_Count field in every
4339 -- subexpression node (it is actually present in all nodes, but only
4340 -- used in subexpression nodes). This count records the number of
4341 -- levels of parentheses. If the number of levels in the source exceeds
4342 -- the maximum accommodated by this count, then the count is simply left
4343 -- at the maximum value. This means that there are some pathological
4344 -- cases of failure to detect conformance failures (e.g. an expression
4345 -- with 500 levels of parens will conform with one with 501 levels),
4346 -- but we do not need to lose sleep over this.
4348 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4349 -- type N_Parenthesized_Expression used to accurately record unlimited
4350 -- numbers of levels of parentheses. However, it turned out to be a
4351 -- real nuisance to have to take into account the possible presence of
4352 -- this node during semantic analysis, since basically parentheses have
4353 -- zero relevance to semantic analysis.
4355 -- Note: the level of parentheses always present in things like
4356 -- aggregates does not count, only the parentheses in the primary
4357 -- (EXPRESSION) affect the setting of the Paren_Count field.
4359 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4360 -- treated as though it were Empty) if No_Initialization is set True.
4362 --------------------------------------
4363 -- 4.5 Short-Circuit Control Forms --
4364 --------------------------------------
4366 -- EXPRESSION ::=
4367 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4369 -- Gigi restriction: For both these control forms, the operand and
4370 -- result types are always Standard.Boolean. The expander inserts the
4371 -- required conversion operations where needed to ensure this is the
4372 -- case.
4374 -- N_And_Then
4375 -- Sloc points to AND of AND THEN
4376 -- Left_Opnd (Node2)
4377 -- Right_Opnd (Node3)
4378 -- Actions (List1-Sem)
4379 -- plus fields for expression
4381 -- N_Or_Else
4382 -- Sloc points to OR of OR ELSE
4383 -- Left_Opnd (Node2)
4384 -- Right_Opnd (Node3)
4385 -- Actions (List1-Sem)
4386 -- plus fields for expression
4388 -- Note: The Actions field is used to hold actions associated with
4389 -- the right hand operand. These have to be treated specially since
4390 -- they are not unconditionally executed. See Insert_Actions for a
4391 -- more detailed description of how these actions are handled.
4393 ---------------------------
4394 -- 4.5 Membership Tests --
4395 ---------------------------
4397 -- RELATION ::=
4398 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4400 -- MEMBERSHIP_CHOICE_LIST ::=
4401 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4403 -- MEMBERSHIP_CHOICE ::=
4404 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4406 -- Note: although the grammar above allows only a range or a subtype
4407 -- mark, the parser in fact will accept any simple expression in place
4408 -- of a subtype mark. This means that the semantic analyzer must be able
4409 -- to deal with, and diagnose a simple expression other than a name for
4410 -- the right operand. This simplifies error recovery in the parser.
4412 -- The Alternatives field below is present only if there is more than
4413 -- one Membership_Choice present (which is legitimate only in Ada 2012
4414 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4415 -- the list of choices. In the tree passed to the back end, Alternatives
4416 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4417 -- expands out the complex set membership case using simple membership
4418 -- and equality operations).
4420 -- Should we rename Alternatives here to Membership_Choices ???
4422 -- N_In
4423 -- Sloc points to IN
4424 -- Left_Opnd (Node2)
4425 -- Right_Opnd (Node3)
4426 -- Alternatives (List4) (set to No_List if only one set alternative)
4427 -- No_Minimize_Eliminate (Flag17)
4428 -- plus fields for expression
4430 -- N_Not_In
4431 -- Sloc points to NOT of NOT IN
4432 -- Left_Opnd (Node2)
4433 -- Right_Opnd (Node3)
4434 -- Alternatives (List4) (set to No_List if only one set alternative)
4435 -- No_Minimize_Eliminate (Flag17)
4436 -- plus fields for expression
4438 --------------------
4439 -- 4.5 Operators --
4440 --------------------
4442 -- LOGICAL_OPERATOR ::= and | or | xor
4444 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4446 -- BINARY_ADDING_OPERATOR ::= + | - | &
4448 -- UNARY_ADDING_OPERATOR ::= + | -
4450 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4452 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4454 -- Gigi restriction: Gigi will never be given * / mod rem nodes with
4455 -- fixed-point operands. All handling of smalls for multiplication and
4456 -- division is handled by the front end (mod and rem result only from
4457 -- expansion). Gigi thus never needs to worry about small values (for
4458 -- other operators operating on fixed-point, e.g. addition, the small
4459 -- value does not have any semantic effect anyway, these are always
4460 -- integer operations).
4462 -- Gigi restriction: For all operators taking Boolean operands, the
4463 -- type is always Standard.Boolean. The expander inserts the required
4464 -- conversion operations where needed to ensure this is the case.
4466 -- N_Op_And
4467 -- Sloc points to AND
4468 -- Do_Length_Check (Flag4-Sem)
4469 -- plus fields for binary operator
4470 -- plus fields for expression
4472 -- N_Op_Or
4473 -- Sloc points to OR
4474 -- Do_Length_Check (Flag4-Sem)
4475 -- plus fields for binary operator
4476 -- plus fields for expression
4478 -- N_Op_Xor
4479 -- Sloc points to XOR
4480 -- Do_Length_Check (Flag4-Sem)
4481 -- plus fields for binary operator
4482 -- plus fields for expression
4484 -- N_Op_Eq
4485 -- Sloc points to =
4486 -- plus fields for binary operator
4487 -- plus fields for expression
4489 -- N_Op_Ne
4490 -- Sloc points to /=
4491 -- plus fields for binary operator
4492 -- plus fields for expression
4494 -- N_Op_Lt
4495 -- Sloc points to <
4496 -- plus fields for binary operator
4497 -- plus fields for expression
4499 -- N_Op_Le
4500 -- Sloc points to <=
4501 -- plus fields for binary operator
4502 -- plus fields for expression
4504 -- N_Op_Gt
4505 -- Sloc points to >
4506 -- plus fields for binary operator
4507 -- plus fields for expression
4509 -- N_Op_Ge
4510 -- Sloc points to >=
4511 -- plus fields for binary operator
4512 -- plus fields for expression
4514 -- N_Op_Add
4515 -- Sloc points to + (binary)
4516 -- plus fields for binary operator
4517 -- plus fields for expression
4519 -- N_Op_Subtract
4520 -- Sloc points to - (binary)
4521 -- plus fields for binary operator
4522 -- plus fields for expression
4524 -- N_Op_Concat
4525 -- Sloc points to &
4526 -- Is_Component_Left_Opnd (Flag13-Sem)
4527 -- Is_Component_Right_Opnd (Flag14-Sem)
4528 -- plus fields for binary operator
4529 -- plus fields for expression
4531 -- N_Op_Multiply
4532 -- Sloc points to *
4533 -- Rounded_Result (Flag18-Sem)
4534 -- plus fields for binary operator
4535 -- plus fields for expression
4537 -- N_Op_Divide
4538 -- Sloc points to /
4539 -- Do_Division_Check (Flag13-Sem)
4540 -- Rounded_Result (Flag18-Sem)
4541 -- plus fields for binary operator
4542 -- plus fields for expression
4544 -- N_Op_Mod
4545 -- Sloc points to MOD
4546 -- Do_Division_Check (Flag13-Sem)
4547 -- plus fields for binary operator
4548 -- plus fields for expression
4550 -- N_Op_Rem
4551 -- Sloc points to REM
4552 -- Do_Division_Check (Flag13-Sem)
4553 -- plus fields for binary operator
4554 -- plus fields for expression
4556 -- N_Op_Expon
4557 -- Sloc points to **
4558 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4559 -- plus fields for binary operator
4560 -- plus fields for expression
4562 -- N_Op_Plus
4563 -- Sloc points to + (unary)
4564 -- plus fields for unary operator
4565 -- plus fields for expression
4567 -- N_Op_Minus
4568 -- Sloc points to - (unary)
4569 -- plus fields for unary operator
4570 -- plus fields for expression
4572 -- N_Op_Abs
4573 -- Sloc points to ABS
4574 -- plus fields for unary operator
4575 -- plus fields for expression
4577 -- N_Op_Not
4578 -- Sloc points to NOT
4579 -- plus fields for unary operator
4580 -- plus fields for expression
4582 -- See also shift operators in section B.2
4584 -- Note on fixed-point operations passed to Gigi: For adding operators,
4585 -- the semantics is to treat these simply as integer operations, with
4586 -- the small values being ignored (the bounds are already stored in
4587 -- units of small, so that constraint checking works as usual). For the
4588 -- case of multiply/divide/rem/mod operations, Gigi will never see them.
4590 -- Note on equality/inequality tests for records. In the expanded tree,
4591 -- record comparisons are always expanded to be a series of component
4592 -- comparisons, so the back end will never see an equality or inequality
4593 -- operation with operands of a record type.
4595 -- Note on overflow handling: When the overflow checking mode is set to
4596 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4597 -- be modified to use a larger type for the operands and result. In
4598 -- the case where the computed range exceeds that of Long_Long_Integer,
4599 -- and we are running in ELIMINATED mode, the operator node will be
4600 -- changed to be a call to the appropriate routine in System.Bignums.
4602 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4603 -- for signed integer types (since there is no equivalent operator in
4604 -- C). Instead we rewrite such an operation in terms of REM (which is
4605 -- % in C) and other C-available operators.
4607 ------------------------------------
4608 -- 4.5.7 Conditional Expressions --
4609 ------------------------------------
4611 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4613 --------------------------
4614 -- 4.5.7 If Expression --
4615 --------------------------
4617 -- IF_EXPRESSION ::=
4618 -- if CONDITION then DEPENDENT_EXPRESSION
4619 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4620 -- [else DEPENDENT_EXPRESSION]
4622 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4624 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4625 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4626 -- the Is_Elsif flag is set on the inner if expression.
4628 -- N_If_Expression
4629 -- Sloc points to IF or ELSIF keyword
4630 -- Expressions (List1)
4631 -- Then_Actions (List2-Sem)
4632 -- Else_Actions (List3-Sem)
4633 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4634 -- Do_Overflow_Check (Flag17-Sem)
4635 -- plus fields for expression
4637 -- Expressions here is a three-element list, whose first element is the
4638 -- condition, the second element is the dependent expression after THEN
4639 -- and the third element is the dependent expression after the ELSE
4640 -- (explicitly set to True if missing).
4642 -- Note: the Then_Actions and Else_Actions fields are always set to
4643 -- No_List in the tree passed to the back end. These are used only
4644 -- for temporary processing purposes in the expander. Even though they
4645 -- are semantic fields, their parent pointers are set because analysis
4646 -- of actions nodes in those lists may generate additional actions that
4647 -- need to know their insertion point (for example for the creation of
4648 -- transient scopes).
4650 -- Note: in the tree passed to the back end, if the result type is
4651 -- an unconstrained array, the if expression can only appears in the
4652 -- initializing expression of an object declaration (this avoids the
4653 -- back end having to create a variable length temporary on the fly).
4655 ----------------------------
4656 -- 4.5.7 Case Expression --
4657 ----------------------------
4659 -- CASE_EXPRESSION ::=
4660 -- case SELECTING_EXPRESSION is
4661 -- CASE_EXPRESSION_ALTERNATIVE
4662 -- {,CASE_EXPRESSION_ALTERNATIVE}
4664 -- Note that the Alternatives cannot include pragmas (this contrasts
4665 -- with the situation of case statements where pragmas are allowed).
4667 -- N_Case_Expression
4668 -- Sloc points to CASE
4669 -- Expression (Node3) (the selecting expression)
4670 -- Alternatives (List4) (the case expression alternatives)
4671 -- Etype (Node5-Sem)
4672 -- Do_Overflow_Check (Flag17-Sem)
4674 ----------------------------------------
4675 -- 4.5.7 Case Expression Alternative --
4676 ----------------------------------------
4678 -- CASE_EXPRESSION_ALTERNATIVE ::=
4679 -- when DISCRETE_CHOICE_LIST =>
4680 -- DEPENDENT_EXPRESSION
4682 -- N_Case_Expression_Alternative
4683 -- Sloc points to WHEN
4684 -- Actions (List1)
4685 -- Discrete_Choices (List4)
4686 -- Expression (Node3)
4687 -- Has_SP_Choice (Flag15-Sem)
4689 -- Note: The Actions field temporarily holds any actions associated with
4690 -- evaluation of the Expression. During expansion of the case expression
4691 -- these actions are wrapped into an N_Expressions_With_Actions node
4692 -- replacing the original expression.
4694 -- Note: this node never appears in the tree passed to the back end,
4695 -- since the expander converts case expressions into case statements.
4697 ---------------------------------
4698 -- 4.5.8 Quantified Expression --
4699 ---------------------------------
4701 -- QUANTIFIED_EXPRESSION ::=
4702 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4703 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4705 -- QUANTIFIER ::= all | some
4707 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4708 -- is present at a time, in which case the other one is empty.
4710 -- N_Quantified_Expression
4711 -- Sloc points to FOR
4712 -- Iterator_Specification (Node2)
4713 -- Loop_Parameter_Specification (Node4)
4714 -- Condition (Node1)
4715 -- All_Present (Flag15)
4717 --------------------------
4718 -- 4.6 Type Conversion --
4719 --------------------------
4721 -- TYPE_CONVERSION ::=
4722 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4724 -- In the (NAME) case, the name is stored as the expression
4726 -- Note: the parser never generates a type conversion node, since it
4727 -- looks like an indexed component which is generated by preference.
4728 -- The semantic pass must correct this misidentification.
4730 -- Gigi handles conversions that involve no change in the root type,
4731 -- and also all conversions from integer to floating-point types.
4732 -- Conversions from floating-point to integer are only handled in
4733 -- the case where Float_Truncate flag set. Other conversions from
4734 -- floating-point to integer (involving rounding) and all conversions
4735 -- involving fixed-point types are handled by the expander.
4737 -- Sprint syntax if Float_Truncate set: X^(Y)
4738 -- Sprint syntax if Conversion_OK set X?(Y)
4739 -- Sprint syntax if both flags set X?^(Y)
4741 -- Note: If either the operand or result type is fixed-point, Gigi will
4742 -- only see a type conversion node with Conversion_OK set. The front end
4743 -- takes care of all handling of small's for fixed-point conversions.
4745 -- N_Type_Conversion
4746 -- Sloc points to first token of subtype mark
4747 -- Subtype_Mark (Node4)
4748 -- Expression (Node3)
4749 -- Do_Discriminant_Check (Flag3-Sem)
4750 -- Do_Length_Check (Flag4-Sem)
4751 -- Float_Truncate (Flag11-Sem)
4752 -- Do_Tag_Check (Flag13-Sem)
4753 -- Conversion_OK (Flag14-Sem)
4754 -- Do_Overflow_Check (Flag17-Sem)
4755 -- Rounded_Result (Flag18-Sem)
4756 -- plus fields for expression
4758 -- Note: if a range check is required, then the Do_Range_Check flag
4759 -- is set in the Expression with the check being done against the
4760 -- target type range (after the base type conversion, if any).
4762 -------------------------------
4763 -- 4.7 Qualified Expression --
4764 -------------------------------
4766 -- QUALIFIED_EXPRESSION ::=
4767 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4769 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4770 -- the expression, so the Expression field of this node always points
4771 -- to a parenthesized expression in this case (i.e. Paren_Count will
4772 -- always be non-zero for the referenced expression if it is not an
4773 -- aggregate).
4775 -- N_Qualified_Expression
4776 -- Sloc points to apostrophe
4777 -- Subtype_Mark (Node4)
4778 -- Expression (Node3) expression or aggregate
4779 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4780 -- plus fields for expression
4782 --------------------
4783 -- 4.8 Allocator --
4784 --------------------
4786 -- ALLOCATOR ::=
4787 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4788 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4790 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4792 -- Sprint syntax (when storage pool present)
4793 -- new xxx (storage_pool = pool)
4794 -- or
4795 -- new (subpool) xxx (storage_pool = pool)
4797 -- N_Allocator
4798 -- Sloc points to NEW
4799 -- Expression (Node3) subtype indication or qualified expression
4800 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4801 -- Storage_Pool (Node1-Sem)
4802 -- Procedure_To_Call (Node2-Sem)
4803 -- Alloc_For_BIP_Return (Flag1-Sem)
4804 -- Null_Exclusion_Present (Flag11)
4805 -- No_Initialization (Flag13-Sem)
4806 -- Is_Static_Coextension (Flag14-Sem)
4807 -- Do_Storage_Check (Flag17-Sem)
4808 -- Is_Dynamic_Coextension (Flag18-Sem)
4809 -- plus fields for expression
4811 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4812 -- This flag has a special function in conjunction with the restriction
4813 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4814 -- is not set. This means that if a source allocator is replaced with
4815 -- a constructed allocator, the Comes_From_Source flag should be copied
4816 -- to the newly created allocator.
4818 ---------------------------------
4819 -- 5.1 Sequence Of Statements --
4820 ---------------------------------
4822 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4824 -- Note: Although the parser will not accept a declaration as a
4825 -- statement, the semantic analyzer may insert declarations (e.g.
4826 -- declarations of implicit types needed for execution of other
4827 -- statements) into a sequence of statements, so the code generator
4828 -- should be prepared to accept a declaration where a statement is
4829 -- expected. Note also that pragmas can appear as statements.
4831 --------------------
4832 -- 5.1 Statement --
4833 --------------------
4835 -- STATEMENT ::=
4836 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4838 -- There is no explicit node in the tree for a statement. Instead, the
4839 -- individual statement appears directly. Labels are treated as a
4840 -- kind of statement, i.e. they are linked into a statement list at
4841 -- the point they appear, so the labeled statement appears following
4842 -- the label or labels in the statement list.
4844 ---------------------------
4845 -- 5.1 Simple Statement --
4846 ---------------------------
4848 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4849 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4850 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4851 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4852 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4853 -- | ABORT_STATEMENT | RAISE_STATEMENT
4854 -- | CODE_STATEMENT
4856 -----------------------------
4857 -- 5.1 Compound Statement --
4858 -----------------------------
4860 -- COMPOUND_STATEMENT ::=
4861 -- IF_STATEMENT | CASE_STATEMENT
4862 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4863 -- | EXTENDED_RETURN_STATEMENT
4864 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4866 -------------------------
4867 -- 5.1 Null Statement --
4868 -------------------------
4870 -- NULL_STATEMENT ::= null;
4872 -- N_Null_Statement
4873 -- Sloc points to NULL
4874 -- Next_Rep_Item (Node5-Sem)
4876 ----------------
4877 -- 5.1 Label --
4878 ----------------
4880 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4882 -- Note that the occurrence of a label is not a defining identifier,
4883 -- but rather a referencing occurrence. The defining occurrence is
4884 -- in the implicit label declaration which occurs in the innermost
4885 -- enclosing block.
4887 -- N_Label
4888 -- Sloc points to <<
4889 -- Identifier (Node1) direct name of statement identifier
4890 -- Exception_Junk (Flag8-Sem)
4892 -- Note: Before Ada 2012, a label is always followed by a statement,
4893 -- and this is true in the tree even in Ada 2012 mode (the parser
4894 -- inserts a null statement marked with Comes_From_Source False).
4896 -------------------------------
4897 -- 5.1 Statement Identifier --
4898 -------------------------------
4900 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4902 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4903 -- (not an OPERATOR_SYMBOL)
4905 -------------------------------
4906 -- 5.2 Assignment Statement --
4907 -------------------------------
4909 -- ASSIGNMENT_STATEMENT ::=
4910 -- variable_NAME := EXPRESSION;
4912 -- N_Assignment_Statement
4913 -- Sloc points to :=
4914 -- Name (Node2)
4915 -- Expression (Node3)
4916 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4917 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4918 -- Do_Discriminant_Check (Flag3-Sem)
4919 -- Do_Length_Check (Flag4-Sem)
4920 -- Forwards_OK (Flag5-Sem)
4921 -- Backwards_OK (Flag6-Sem)
4922 -- No_Ctrl_Actions (Flag7-Sem)
4923 -- Has_Target_Names (Flag8-Sem)
4924 -- Is_Elaboration_Code (Flag9-Sem)
4925 -- Do_Tag_Check (Flag13-Sem)
4926 -- Componentwise_Assignment (Flag14-Sem)
4927 -- Suppress_Assignment_Checks (Flag18-Sem)
4929 -- Note: if a range check is required, then the Do_Range_Check flag
4930 -- is set in the Expression (right hand side), with the check being
4931 -- done against the type of the Name (left hand side).
4933 -- Note: the back end places some restrictions on the form of the
4934 -- Expression field. If the object being assigned to is Atomic, then
4935 -- the Expression may not have the form of an aggregate (since this
4936 -- might cause the back end to generate separate assignments). In this
4937 -- case the front end must generate an extra temporary and initialize
4938 -- this temporary as required (the temporary itself is not atomic).
4940 ------------------
4941 -- Target_Name --
4942 ------------------
4944 -- N_Target_Name
4945 -- Sloc points to @
4946 -- Etype (Node5-Sem)
4948 -- Note (Ada 2020): node is used during analysis as a placeholder for
4949 -- the value of the LHS of the enclosing assignment statement. Node is
4950 -- eventually rewritten together with enclosing assignment, and backends
4951 -- are not aware of it.
4953 -----------------------
4954 -- 5.3 If Statement --
4955 -----------------------
4957 -- IF_STATEMENT ::=
4958 -- if CONDITION then
4959 -- SEQUENCE_OF_STATEMENTS
4960 -- {elsif CONDITION then
4961 -- SEQUENCE_OF_STATEMENTS}
4962 -- [else
4963 -- SEQUENCE_OF_STATEMENTS]
4964 -- end if;
4966 -- Gigi restriction: This expander ensures that the type of the
4967 -- Condition fields is always Standard.Boolean, even if the type
4968 -- in the source is some non-standard boolean type.
4970 -- N_If_Statement
4971 -- Sloc points to IF
4972 -- Condition (Node1)
4973 -- Then_Statements (List2)
4974 -- Elsif_Parts (List3) (set to No_List if none present)
4975 -- Else_Statements (List4) (set to No_List if no else part present)
4976 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4977 -- From_Conditional_Expression (Flag1-Sem)
4979 -- N_Elsif_Part
4980 -- Sloc points to ELSIF
4981 -- Condition (Node1)
4982 -- Then_Statements (List2)
4983 -- Condition_Actions (List3-Sem)
4985 --------------------
4986 -- 5.3 Condition --
4987 --------------------
4989 -- CONDITION ::= boolean_EXPRESSION
4991 -------------------------
4992 -- 5.4 Case Statement --
4993 -------------------------
4995 -- CASE_STATEMENT ::=
4996 -- case EXPRESSION is
4997 -- CASE_STATEMENT_ALTERNATIVE
4998 -- {CASE_STATEMENT_ALTERNATIVE}
4999 -- end case;
5001 -- Note: the Alternatives can contain pragmas. These only occur at
5002 -- the start of the list, since any pragmas occurring after the first
5003 -- alternative are absorbed into the corresponding statement sequence.
5005 -- N_Case_Statement
5006 -- Sloc points to CASE
5007 -- Expression (Node3)
5008 -- Alternatives (List4)
5009 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5010 -- From_Conditional_Expression (Flag1-Sem)
5012 -- Note: Before Ada 2012, a pragma in a statement sequence is always
5013 -- followed by a statement, and this is true in the tree even in Ada
5014 -- 2012 mode (the parser inserts a null statement marked with the flag
5015 -- Comes_From_Source False).
5017 -------------------------------------
5018 -- 5.4 Case Statement Alternative --
5019 -------------------------------------
5021 -- CASE_STATEMENT_ALTERNATIVE ::=
5022 -- when DISCRETE_CHOICE_LIST =>
5023 -- SEQUENCE_OF_STATEMENTS
5025 -- N_Case_Statement_Alternative
5026 -- Sloc points to WHEN
5027 -- Discrete_Choices (List4)
5028 -- Statements (List3)
5029 -- Has_SP_Choice (Flag15-Sem)
5031 -- Note: in the list of Discrete_Choices, the tree passed to the back
5032 -- end does not have choice entries corresponding to names of statically
5033 -- predicated subtypes. Such entries are always expanded out to the list
5034 -- of equivalent values or ranges.
5036 -------------------------
5037 -- 5.5 Loop Statement --
5038 -------------------------
5040 -- LOOP_STATEMENT ::=
5041 -- [loop_STATEMENT_IDENTIFIER :]
5042 -- [ITERATION_SCHEME] loop
5043 -- SEQUENCE_OF_STATEMENTS
5044 -- end loop [loop_IDENTIFIER];
5046 -- Note: The occurrence of a loop label is not a defining identifier
5047 -- but rather a referencing occurrence. The defining occurrence is in
5048 -- the implicit label declaration which occurs in the innermost
5049 -- enclosing block.
5051 -- Note: there is always a loop statement identifier present in the
5052 -- tree, even if none was given in the source. In the case where no loop
5053 -- identifier is given in the source, the parser creates a name of the
5054 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
5055 -- that the loop names created in this manner do not conflict with any
5056 -- user defined identifiers), and the flag Has_Created_Identifier is set
5057 -- to True. The only exception to the rule that all loop statement nodes
5058 -- have identifiers occurs for loops constructed by the expander, and
5059 -- the semantic analyzer will create and supply dummy loop identifiers
5060 -- in these cases.
5062 -- N_Loop_Statement
5063 -- Sloc points to LOOP
5064 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
5065 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
5066 -- Statements (List3)
5067 -- End_Label (Node4)
5068 -- Has_Created_Identifier (Flag15)
5069 -- Is_Null_Loop (Flag16)
5070 -- Suppress_Loop_Warnings (Flag17)
5072 -- Note: the parser fills in the Identifier field if there is an
5073 -- explicit loop identifier. Otherwise the parser leaves this field
5074 -- set to Empty, and then the semantic processing for a loop statement
5075 -- creates an identifier, setting the Has_Created_Identifier flag to
5076 -- True. So after semantic analysis, the Identifier is always set,
5077 -- referencing an identifier whose entity has an Ekind of E_Loop.
5079 ---------------------------
5080 -- 5.5 Iteration Scheme --
5081 ---------------------------
5083 -- ITERATION_SCHEME ::=
5084 -- while CONDITION
5085 -- | for LOOP_PARAMETER_SPECIFICATION
5086 -- | for ITERATOR_SPECIFICATION
5088 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
5089 -- is present at a time, in which case the other one is empty. Both are
5090 -- empty in the case of a WHILE loop.
5092 -- Gigi restriction: The expander ensures that the type of the Condition
5093 -- field is always Standard.Boolean, even if the type in the source is
5094 -- some non-standard boolean type.
5096 -- N_Iteration_Scheme
5097 -- Sloc points to WHILE or FOR
5098 -- Condition (Node1) (set to Empty if FOR case)
5099 -- Condition_Actions (List3-Sem)
5100 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
5101 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
5103 ---------------------------------------
5104 -- 5.5 Loop Parameter Specification --
5105 ---------------------------------------
5107 -- LOOP_PARAMETER_SPECIFICATION ::=
5108 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
5109 -- [Iterator_Filter]
5111 -- Note; the optional Iterator_Filter is an Ada_2020 construct.
5113 -- N_Loop_Parameter_Specification
5114 -- Sloc points to first identifier
5115 -- Defining_Identifier (Node1)
5116 -- Reverse_Present (Flag15)
5117 -- Iterator_Filter (Node3) (set to Empty if not present)
5118 -- Discrete_Subtype_Definition (Node4)
5120 -----------------------------------
5121 -- 5.5.1 Iterator Specification --
5122 -----------------------------------
5124 -- ITERATOR_SPECIFICATION ::=
5125 -- DEFINING_IDENTIFIER in [reverse] NAME
5126 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5128 -- N_Iterator_Specification
5129 -- Sloc points to defining identifier
5130 -- Defining_Identifier (Node1)
5131 -- Name (Node2)
5132 -- Reverse_Present (Flag15)
5133 -- Of_Present (Flag16)
5134 -- Iterator_Filter (Node3) (set to Empty if not present)
5135 -- Subtype_Indication (Node5)
5137 -- Note: The Of_Present flag distinguishes the two forms
5139 --------------------------
5140 -- 5.6 Block Statement --
5141 --------------------------
5143 -- BLOCK_STATEMENT ::=
5144 -- [block_STATEMENT_IDENTIFIER:]
5145 -- [declare
5146 -- DECLARATIVE_PART]
5147 -- begin
5148 -- HANDLED_SEQUENCE_OF_STATEMENTS
5149 -- end [block_IDENTIFIER];
5151 -- Note that the occurrence of a block identifier is not a defining
5152 -- identifier, but rather a referencing occurrence. The defining
5153 -- occurrence is an E_Block entity declared by the implicit label
5154 -- declaration which occurs in the innermost enclosing block statement
5155 -- or body; the block identifier denotes that E_Block.
5157 -- For block statements that come from source code, there is always a
5158 -- block statement identifier present in the tree, denoting an E_Block.
5159 -- In the case where no block identifier is given in the source,
5160 -- the parser creates a name of the form B_n, where n is a decimal
5161 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5162 -- constructed by the expander usually have no identifier, and no
5163 -- corresponding entity.
5165 -- Note: the block statement created for an extended return statement
5166 -- has an entity, and this entity is an E_Return_Statement, rather than
5167 -- the usual E_Block.
5169 -- Note: Exception_Junk is set for the wrapping blocks created during
5170 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5172 -- Note: from a control flow viewpoint, a block statement defines an
5173 -- extended basic block, i.e. the entry of the block dominates every
5174 -- statement in the sequence. When generating new statements with
5175 -- exception handlers in the expander at the end of a sequence that
5176 -- comes from source code, it can be necessary to wrap them all in a
5177 -- block statement in order to expose the implicit control flow to
5178 -- gigi and thus prevent it from issuing bogus control flow warnings.
5180 -- N_Block_Statement
5181 -- Sloc points to DECLARE or BEGIN
5182 -- Identifier (Node1) block direct name (set to Empty if not present)
5183 -- Declarations (List2) (set to No_List if no DECLARE part)
5184 -- Handled_Statement_Sequence (Node4)
5185 -- Activation_Chain_Entity (Node3-Sem)
5186 -- Cleanup_Actions (List5-Sem)
5187 -- Has_Created_Identifier (Flag15)
5188 -- Is_Asynchronous_Call_Block (Flag7)
5189 -- Is_Task_Allocation_Block (Flag6)
5190 -- Exception_Junk (Flag8-Sem)
5191 -- Is_Abort_Block (Flag4-Sem)
5192 -- Is_Finalization_Wrapper (Flag9-Sem)
5193 -- Is_Initialization_Block (Flag1-Sem)
5194 -- Is_Task_Master (Flag5-Sem)
5196 -------------------------
5197 -- 5.7 Exit Statement --
5198 -------------------------
5200 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5202 -- Gigi restriction: The expander ensures that the type of the Condition
5203 -- field is always Standard.Boolean, even if the type in the source is
5204 -- some non-standard boolean type.
5206 -- N_Exit_Statement
5207 -- Sloc points to EXIT
5208 -- Name (Node2) (set to Empty if no loop name present)
5209 -- Condition (Node1) (set to Empty if no WHEN part present)
5210 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5212 -------------------------
5213 -- 5.9 Goto Statement --
5214 -------------------------
5216 -- GOTO_STATEMENT ::= goto label_NAME;
5218 -- N_Goto_Statement
5219 -- Sloc points to GOTO
5220 -- Name (Node2)
5221 -- Exception_Junk (Flag8-Sem)
5223 ---------------------------------
5224 -- 6.1 Subprogram Declaration --
5225 ---------------------------------
5227 -- SUBPROGRAM_DECLARATION ::=
5228 -- SUBPROGRAM_SPECIFICATION
5229 -- [ASPECT_SPECIFICATIONS];
5231 -- N_Subprogram_Declaration
5232 -- Sloc points to FUNCTION or PROCEDURE
5233 -- Specification (Node1)
5234 -- Body_To_Inline (Node3-Sem)
5235 -- Corresponding_Body (Node5-Sem)
5236 -- Parent_Spec (Node4-Sem)
5237 -- Is_Entry_Barrier_Function (Flag8-Sem)
5238 -- Is_Task_Body_Procedure (Flag1-Sem)
5240 ------------------------------------------
5241 -- 6.1 Abstract Subprogram Declaration --
5242 ------------------------------------------
5244 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5245 -- SUBPROGRAM_SPECIFICATION is abstract
5246 -- [ASPECT_SPECIFICATIONS];
5248 -- N_Abstract_Subprogram_Declaration
5249 -- Sloc points to ABSTRACT
5250 -- Specification (Node1)
5252 -----------------------------------
5253 -- 6.1 Subprogram Specification --
5254 -----------------------------------
5256 -- SUBPROGRAM_SPECIFICATION ::=
5257 -- [[not] overriding]
5258 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5259 -- | [[not] overriding]
5260 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5262 -- Note: there are no separate nodes for the profiles, instead the
5263 -- information appears directly in the following nodes.
5265 -- N_Function_Specification
5266 -- Sloc points to FUNCTION
5267 -- Defining_Unit_Name (Node1) (the designator)
5268 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5269 -- Null_Exclusion_Present (Flag11)
5270 -- Result_Definition (Node4) for result subtype
5271 -- Generic_Parent (Node5-Sem)
5272 -- Must_Override (Flag14) set if overriding indicator present
5273 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5275 -- N_Procedure_Specification
5276 -- Sloc points to PROCEDURE
5277 -- Defining_Unit_Name (Node1)
5278 -- Null_Statement (Node2-Sem) NULL statement for body, if Null_Present
5279 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5280 -- Generic_Parent (Node5-Sem)
5281 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5282 -- Must_Override (Flag14) set if overriding indicator present
5283 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5285 -- Note: overriding indicator is an Ada 2005 feature
5287 ---------------------
5288 -- 6.1 Designator --
5289 ---------------------
5291 -- DESIGNATOR ::=
5292 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5294 -- Designators that are simply identifiers or operator symbols appear
5295 -- directly in the tree in this form. The following node is used only
5296 -- in the case where the designator has a parent unit name component.
5298 -- N_Designator
5299 -- Sloc points to period
5300 -- Name (Node2) holds the parent unit name
5301 -- Identifier (Node1)
5303 -- Note: Name is always non-Empty, since this node is only used for the
5304 -- case where a parent library unit package name is present.
5306 -- Note that the identifier can also be an operator symbol here
5308 ------------------------------
5309 -- 6.1 Defining Designator --
5310 ------------------------------
5312 -- DEFINING_DESIGNATOR ::=
5313 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5315 -------------------------------------
5316 -- 6.1 Defining Program Unit Name --
5317 -------------------------------------
5319 -- DEFINING_PROGRAM_UNIT_NAME ::=
5320 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5322 -- The parent unit name is present only in the case of a child unit name
5323 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5324 -- at scope level one). If no such name is present, the defining program
5325 -- unit name is represented simply as the defining identifier. In the
5326 -- child unit case, the following node is used to represent the child
5327 -- unit name.
5329 -- N_Defining_Program_Unit_Name
5330 -- Sloc points to period
5331 -- Name (Node2) holds the parent unit name
5332 -- Defining_Identifier (Node1)
5334 -- Note: Name is always non-Empty, since this node is only used for the
5335 -- case where a parent unit name is present.
5337 --------------------------
5338 -- 6.1 Operator Symbol --
5339 --------------------------
5341 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5343 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5344 -- the corresponding fields of an N_Character_Literal node. This allows
5345 -- easy conversion of the operator symbol node into a character literal
5346 -- node in the case where a string constant of the form of an operator
5347 -- symbol is scanned out as such, but turns out semantically to be a
5348 -- string literal that is not an operator. For details see Sinfo.CN.
5349 -- Change_Operator_Symbol_To_String_Literal.
5351 -- N_Operator_Symbol
5352 -- Sloc points to literal
5353 -- Chars (Name1) contains the Name_Id for the operator symbol
5354 -- Strval (Str3) Id of string value. This is used if the operator
5355 -- symbol turns out to be a normal string after all.
5356 -- Entity (Node4-Sem)
5357 -- Associated_Node (Node4-Sem)
5358 -- Etype (Node5-Sem)
5359 -- Has_Private_View (Flag11-Sem) set in generic units
5361 -- Note: the Strval field may be set to No_String for generated
5362 -- operator symbols that are known not to be string literals
5363 -- semantically.
5365 -----------------------------------
5366 -- 6.1 Defining Operator Symbol --
5367 -----------------------------------
5369 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5371 -- A defining operator symbol is an entity, which has additional
5372 -- fields depending on the setting of the Ekind field. These
5373 -- additional fields are defined (and access subprograms declared)
5374 -- in package Einfo.
5376 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5377 -- are deliberately laid out to match the layout of fields in an
5378 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5379 -- an operator symbol node into a defining operator symbol node.
5380 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5381 -- for further details.
5383 -- N_Defining_Operator_Symbol
5384 -- Sloc points to literal
5385 -- Chars (Name1) contains the Name_Id for the operator symbol
5386 -- Next_Entity (Node2-Sem)
5387 -- Scope (Node3-Sem)
5388 -- Etype (Node5-Sem)
5390 ----------------------------
5391 -- 6.1 Parameter Profile --
5392 ----------------------------
5394 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5396 ---------------------------------------
5397 -- 6.1 Parameter and Result Profile --
5398 ---------------------------------------
5400 -- PARAMETER_AND_RESULT_PROFILE ::=
5401 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5402 -- | [FORMAL_PART] return ACCESS_DEFINITION
5404 -- There is no explicit node in the tree for a parameter and result
5405 -- profile. Instead the information appears directly in the parent.
5407 ----------------------
5408 -- 6.1 Formal Part --
5409 ----------------------
5411 -- FORMAL_PART ::=
5412 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5414 ----------------------------------
5415 -- 6.1 Parameter Specification --
5416 ----------------------------------
5418 -- PARAMETER_SPECIFICATION ::=
5419 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5420 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION] [ASPECT_SPECIFICATIONS]
5421 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5422 -- [:= DEFAULT_EXPRESSION] [ASPECT_SPECIFICATIONS]
5424 -- Although the syntax allows multiple identifiers in the list, the
5425 -- semantics is as though successive specifications were given with
5426 -- identical type definition and expression components. To simplify
5427 -- semantic processing, the parser represents a multiple declaration
5428 -- case as a sequence of single Specifications, using the More_Ids and
5429 -- Prev_Ids flags to preserve the original source form as described
5430 -- in the section on "Handling of Defining Identifier Lists".
5432 -- ALIASED can only be present in Ada 2012 mode
5434 -- N_Parameter_Specification
5435 -- Sloc points to first identifier
5436 -- Defining_Identifier (Node1)
5437 -- Aliased_Present (Flag4)
5438 -- In_Present (Flag15)
5439 -- Out_Present (Flag17)
5440 -- Null_Exclusion_Present (Flag11)
5441 -- Parameter_Type (Node2) subtype mark or access definition
5442 -- Expression (Node3) (set to Empty if no default expression present)
5443 -- Do_Accessibility_Check (Flag13-Sem)
5444 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5445 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5446 -- Default_Expression (Node5-Sem)
5448 ---------------
5449 -- 6.1 Mode --
5450 ---------------
5452 -- MODE ::= [in] | in out | out
5454 -- There is no explicit node in the tree for the Mode. Instead the
5455 -- In_Present and Out_Present flags are set in the parent node to
5456 -- record the presence of keywords specifying the mode.
5458 --------------------------
5459 -- 6.3 Subprogram Body --
5460 --------------------------
5462 -- SUBPROGRAM_BODY ::=
5463 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5464 -- DECLARATIVE_PART
5465 -- begin
5466 -- HANDLED_SEQUENCE_OF_STATEMENTS
5467 -- end [DESIGNATOR];
5469 -- N_Subprogram_Body
5470 -- Sloc points to FUNCTION or PROCEDURE
5471 -- Specification (Node1)
5472 -- Declarations (List2)
5473 -- Handled_Statement_Sequence (Node4)
5474 -- Activation_Chain_Entity (Node3-Sem)
5475 -- Corresponding_Spec (Node5-Sem)
5476 -- Acts_As_Spec (Flag4-Sem)
5477 -- Bad_Is_Detected (Flag15) used only by parser
5478 -- Do_Storage_Check (Flag17-Sem)
5479 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5480 -- Is_Entry_Barrier_Function (Flag8-Sem)
5481 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5482 -- Is_Task_Body_Procedure (Flag1-Sem)
5483 -- Is_Task_Master (Flag5-Sem)
5484 -- Was_Attribute_Reference (Flag2-Sem)
5485 -- Was_Expression_Function (Flag18-Sem)
5486 -- Was_Originally_Stub (Flag13-Sem)
5488 -----------------------------------
5489 -- 6.4 Procedure Call Statement --
5490 -----------------------------------
5492 -- PROCEDURE_CALL_STATEMENT ::=
5493 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5495 -- Note: the reason that a procedure call has expression fields is that
5496 -- it semantically resembles an expression, e.g. overloading is allowed
5497 -- and a type is concocted for semantic processing purposes. Certain of
5498 -- these fields, such as Parens are not relevant, but it is easier to
5499 -- just supply all of them together.
5501 -- N_Procedure_Call_Statement
5502 -- Sloc points to first token of name or prefix
5503 -- Name (Node2) stores name or prefix
5504 -- Parameter_Associations (List3) (set to No_List if no
5505 -- actual parameter part)
5506 -- First_Named_Actual (Node4-Sem)
5507 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5508 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5509 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5510 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5511 -- No_Elaboration_Check (Flag4-Sem)
5512 -- Do_Tag_Check (Flag13-Sem)
5513 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5514 -- plus fields for expression
5516 -- If any IN parameter requires a range check, then the corresponding
5517 -- argument expression has the Do_Range_Check flag set, and the range
5518 -- check is done against the formal type. Note that this argument
5519 -- expression may appear directly in the Parameter_Associations list,
5520 -- or may be a descendant of an N_Parameter_Association node that
5521 -- appears in this list.
5523 ------------------------
5524 -- 6.4 Function Call --
5525 ------------------------
5527 -- FUNCTION_CALL ::=
5528 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5530 -- Note: the parser may generate an indexed component node or simply
5531 -- a name node instead of a function call node. The semantic pass must
5532 -- correct this misidentification.
5534 -- N_Function_Call
5535 -- Sloc points to first token of name or prefix
5536 -- Name (Node2) stores name or prefix
5537 -- Parameter_Associations (List3) (set to No_List if no
5538 -- actual parameter part)
5539 -- First_Named_Actual (Node4-Sem)
5540 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5541 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5542 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5543 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5544 -- No_Elaboration_Check (Flag4-Sem)
5545 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5546 -- Do_Tag_Check (Flag13-Sem)
5547 -- No_Side_Effect_Removal (Flag17-Sem)
5548 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5549 -- plus fields for expression
5551 --------------------------------
5552 -- 6.4 Actual Parameter Part --
5553 --------------------------------
5555 -- ACTUAL_PARAMETER_PART ::=
5556 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5558 --------------------------------
5559 -- 6.4 Parameter Association --
5560 --------------------------------
5562 -- PARAMETER_ASSOCIATION ::=
5563 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5565 -- Note: the N_Parameter_Association node is built only if a formal
5566 -- parameter selector name is present, otherwise the parameter
5567 -- association appears in the tree simply as the node for the
5568 -- explicit actual parameter.
5570 -- N_Parameter_Association
5571 -- Sloc points to formal parameter
5572 -- Selector_Name (Node2) (always non-Empty)
5573 -- Explicit_Actual_Parameter (Node3)
5574 -- Next_Named_Actual (Node4-Sem)
5575 -- Is_Accessibility_Actual (Flag13-Sem)
5577 ---------------------------
5578 -- 6.4 Actual Parameter --
5579 ---------------------------
5581 -- EXPLICIT_ACTUAL_PARAMETER ::=
5582 -- EXPRESSION | variable_NAME | REDUCTION_EXPRESSION_PARAMETER
5584 ---------------------------
5585 -- 6.5 Return Statement --
5586 ---------------------------
5588 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5590 -- EXTENDED_RETURN_STATEMENT ::=
5591 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5592 -- [:= EXPRESSION] [do
5593 -- HANDLED_SEQUENCE_OF_STATEMENTS
5594 -- end return];
5596 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5598 -- The term "return statement" is defined in 6.5 to mean either a
5599 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5600 -- the use of this term, since it used to mean someting else in earlier
5601 -- versions of Ada.
5603 -- N_Simple_Return_Statement
5604 -- Sloc points to RETURN
5605 -- Return_Statement_Entity (Node5-Sem)
5606 -- Expression (Node3) (set to Empty if no expression present)
5607 -- Storage_Pool (Node1-Sem)
5608 -- Procedure_To_Call (Node2-Sem)
5609 -- Do_Tag_Check (Flag13-Sem)
5610 -- By_Ref (Flag5-Sem)
5611 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5613 -- Note: Return_Statement_Entity points to an E_Return_Statement
5615 -- If a range check is required, then Do_Range_Check is set on the
5616 -- Expression. The check is against the return subtype of the function.
5618 -- N_Extended_Return_Statement
5619 -- Sloc points to RETURN
5620 -- Return_Statement_Entity (Node5-Sem)
5621 -- Return_Object_Declarations (List3)
5622 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5623 -- Storage_Pool (Node1-Sem)
5624 -- Procedure_To_Call (Node2-Sem)
5625 -- Do_Tag_Check (Flag13-Sem)
5626 -- By_Ref (Flag5-Sem)
5628 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5630 -- Note that Return_Object_Declarations is a list containing the
5631 -- N_Object_Declaration -- see comment on this field above.
5633 -- The declared object will have Is_Return_Object = True.
5635 -- There is no such syntactic category as return_object_declaration
5636 -- in the RM. Return_Object_Declarations represents this portion of
5637 -- the syntax for EXTENDED_RETURN_STATEMENT:
5638 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5639 -- [:= EXPRESSION]
5641 -- There are two entities associated with an extended_return_statement:
5642 -- the Return_Statement_Entity represents the statement itself,
5643 -- and the Defining_Identifier of the Object_Declaration in
5644 -- Return_Object_Declarations represents the object being
5645 -- returned. N_Simple_Return_Statement has only the former.
5647 ------------------------------
5648 -- 6.8 Expression Function --
5649 ------------------------------
5651 -- EXPRESSION_FUNCTION ::=
5652 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5653 -- [ASPECT_SPECIFICATIONS];
5655 -- N_Expression_Function
5656 -- Sloc points to FUNCTION
5657 -- Specification (Node1)
5658 -- Expression (Node3)
5659 -- Corresponding_Spec (Node5-Sem)
5661 ------------------------------
5662 -- 7.1 Package Declaration --
5663 ------------------------------
5665 -- PACKAGE_DECLARATION ::=
5666 -- PACKAGE_SPECIFICATION;
5668 -- Note: the activation chain entity for a package spec is used for
5669 -- all tasks declared in the package spec, or in the package body.
5671 -- N_Package_Declaration
5672 -- Sloc points to PACKAGE
5673 -- Specification (Node1)
5674 -- Corresponding_Body (Node5-Sem)
5675 -- Parent_Spec (Node4-Sem)
5676 -- Activation_Chain_Entity (Node3-Sem)
5678 --------------------------------
5679 -- 7.1 Package Specification --
5680 --------------------------------
5682 -- PACKAGE_SPECIFICATION ::=
5683 -- package DEFINING_PROGRAM_UNIT_NAME
5684 -- [ASPECT_SPECIFICATIONS]
5685 -- is
5686 -- {BASIC_DECLARATIVE_ITEM}
5687 -- [private
5688 -- {BASIC_DECLARATIVE_ITEM}]
5689 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5691 -- N_Package_Specification
5692 -- Sloc points to PACKAGE
5693 -- Defining_Unit_Name (Node1)
5694 -- Visible_Declarations (List2)
5695 -- Private_Declarations (List3) (set to No_List if no private
5696 -- part present)
5697 -- End_Label (Node4)
5698 -- Generic_Parent (Node5-Sem)
5699 -- Limited_View_Installed (Flag18-Sem)
5701 -----------------------
5702 -- 7.1 Package Body --
5703 -----------------------
5705 -- PACKAGE_BODY ::=
5706 -- package body DEFINING_PROGRAM_UNIT_NAME
5707 -- [ASPECT_SPECIFICATIONS]
5708 -- is
5709 -- DECLARATIVE_PART
5710 -- [begin
5711 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5712 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5714 -- N_Package_Body
5715 -- Sloc points to PACKAGE
5716 -- Defining_Unit_Name (Node1)
5717 -- Declarations (List2)
5718 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5719 -- Corresponding_Spec (Node5-Sem)
5720 -- Was_Originally_Stub (Flag13-Sem)
5722 -- Note: if a source level package does not contain a handled sequence
5723 -- of statements, then the parser supplies a dummy one with a null
5724 -- sequence of statements. Comes_From_Source will be False in this
5725 -- constructed sequence. The reason we need this is for the End_Label
5726 -- field in the HSS.
5728 -----------------------------------
5729 -- 7.4 Private Type Declaration --
5730 -----------------------------------
5732 -- PRIVATE_TYPE_DECLARATION ::=
5733 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5734 -- is [[abstract] tagged] [limited] private
5735 -- [ASPECT_SPECIFICATIONS];
5737 -- Note: TAGGED is not permitted in Ada 83 mode
5739 -- N_Private_Type_Declaration
5740 -- Sloc points to TYPE
5741 -- Defining_Identifier (Node1)
5742 -- Discriminant_Specifications (List4) (set to No_List if no
5743 -- discriminant part)
5744 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5745 -- Abstract_Present (Flag4)
5746 -- Tagged_Present (Flag15)
5747 -- Limited_Present (Flag17)
5749 ----------------------------------------
5750 -- 7.4 Private Extension Declaration --
5751 ----------------------------------------
5753 -- PRIVATE_EXTENSION_DECLARATION ::=
5754 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5755 -- [abstract] [limited | synchronized]
5756 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5757 -- with private [ASPECT_SPECIFICATIONS];
5759 -- Note: LIMITED, and private extension declarations are not allowed
5760 -- in Ada 83 mode.
5762 -- N_Private_Extension_Declaration
5763 -- Sloc points to TYPE
5764 -- Defining_Identifier (Node1)
5765 -- Uninitialized_Variable (Node3-Sem)
5766 -- Discriminant_Specifications (List4) (set to No_List if no
5767 -- discriminant part)
5768 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5769 -- Abstract_Present (Flag4)
5770 -- Limited_Present (Flag17)
5771 -- Synchronized_Present (Flag7)
5772 -- Subtype_Indication (Node5)
5773 -- Interface_List (List2) (set to No_List if none)
5775 ---------------------
5776 -- 8.4 Use Clause --
5777 ---------------------
5779 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5781 -----------------------------
5782 -- 8.4 Use Package Clause --
5783 -----------------------------
5785 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5787 -- N_Use_Package_Clause
5788 -- Sloc points to USE
5789 -- Prev_Use_Clause (Node1-Sem)
5790 -- Name (Node2)
5791 -- Next_Use_Clause (Node3-Sem)
5792 -- Associated_Node (Node4-Sem)
5793 -- Hidden_By_Use_Clause (Elist5-Sem)
5794 -- Is_Effective_Use_Clause (Flag1)
5795 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5796 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5798 --------------------------
5799 -- 8.4 Use Type Clause --
5800 --------------------------
5802 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5804 -- Note: use type clause is not permitted in Ada 83 mode
5806 -- Note: the ALL keyword can appear only in Ada 2012 mode
5808 -- N_Use_Type_Clause
5809 -- Sloc points to USE
5810 -- Prev_Use_Clause (Node1-Sem)
5811 -- Used_Operations (Elist2-Sem)
5812 -- Next_Use_Clause (Node3-Sem)
5813 -- Subtype_Mark (Node4)
5814 -- Hidden_By_Use_Clause (Elist5-Sem)
5815 -- Is_Effective_Use_Clause (Flag1)
5816 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5817 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5818 -- All_Present (Flag15)
5820 -------------------------------
5821 -- 8.5 Renaming Declaration --
5822 -------------------------------
5824 -- RENAMING_DECLARATION ::=
5825 -- OBJECT_RENAMING_DECLARATION
5826 -- | EXCEPTION_RENAMING_DECLARATION
5827 -- | PACKAGE_RENAMING_DECLARATION
5828 -- | SUBPROGRAM_RENAMING_DECLARATION
5829 -- | GENERIC_RENAMING_DECLARATION
5831 --------------------------------------
5832 -- 8.5 Object Renaming Declaration --
5833 --------------------------------------
5835 -- OBJECT_RENAMING_DECLARATION ::=
5836 -- DEFINING_IDENTIFIER :
5837 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5838 -- [ASPECT_SPECIFICATIONS];
5839 -- | DEFINING_IDENTIFIER :
5840 -- ACCESS_DEFINITION renames object_NAME
5841 -- [ASPECT_SPECIFICATIONS];
5843 -- Note: Access_Definition is an optional field that gives support to
5844 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5845 -- Subtype_Indication field or else the Access_Definition field.
5847 -- N_Object_Renaming_Declaration
5848 -- Sloc points to first identifier
5849 -- Defining_Identifier (Node1)
5850 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5851 -- Subtype_Mark (Node4) (set to Empty if not present)
5852 -- Access_Definition (Node3) (set to Empty if not present)
5853 -- Name (Node2)
5854 -- Corresponding_Generic_Association (Node5-Sem)
5856 -----------------------------------------
5857 -- 8.5 Exception Renaming Declaration --
5858 -----------------------------------------
5860 -- EXCEPTION_RENAMING_DECLARATION ::=
5861 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5862 -- [ASPECT_SPECIFICATIONS];
5864 -- N_Exception_Renaming_Declaration
5865 -- Sloc points to first identifier
5866 -- Defining_Identifier (Node1)
5867 -- Name (Node2)
5869 ---------------------------------------
5870 -- 8.5 Package Renaming Declaration --
5871 ---------------------------------------
5873 -- PACKAGE_RENAMING_DECLARATION ::=
5874 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5875 -- [ASPECT_SPECIFICATIONS];
5877 -- N_Package_Renaming_Declaration
5878 -- Sloc points to PACKAGE
5879 -- Defining_Unit_Name (Node1)
5880 -- Name (Node2)
5881 -- Parent_Spec (Node4-Sem)
5883 ------------------------------------------
5884 -- 8.5 Subprogram Renaming Declaration --
5885 ------------------------------------------
5887 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5888 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5889 -- [ASPECT_SPECIFICATIONS];
5891 -- N_Subprogram_Renaming_Declaration
5892 -- Sloc points to RENAMES
5893 -- Specification (Node1)
5894 -- Name (Node2)
5895 -- Parent_Spec (Node4-Sem)
5896 -- Corresponding_Spec (Node5-Sem)
5897 -- Corresponding_Formal_Spec (Node3-Sem)
5898 -- From_Default (Flag6-Sem)
5900 -----------------------------------------
5901 -- 8.5.5 Generic Renaming Declaration --
5902 -----------------------------------------
5904 -- GENERIC_RENAMING_DECLARATION ::=
5905 -- generic package DEFINING_PROGRAM_UNIT_NAME
5906 -- renames generic_package_NAME
5907 -- [ASPECT_SPECIFICATIONS];
5908 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5909 -- renames generic_procedure_NAME
5910 -- [ASPECT_SPECIFICATIONS];
5911 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5912 -- renames generic_function_NAME
5913 -- [ASPECT_SPECIFICATIONS];
5915 -- N_Generic_Package_Renaming_Declaration
5916 -- Sloc points to GENERIC
5917 -- Defining_Unit_Name (Node1)
5918 -- Name (Node2)
5919 -- Parent_Spec (Node4-Sem)
5921 -- N_Generic_Procedure_Renaming_Declaration
5922 -- Sloc points to GENERIC
5923 -- Defining_Unit_Name (Node1)
5924 -- Name (Node2)
5925 -- Parent_Spec (Node4-Sem)
5927 -- N_Generic_Function_Renaming_Declaration
5928 -- Sloc points to GENERIC
5929 -- Defining_Unit_Name (Node1)
5930 -- Name (Node2)
5931 -- Parent_Spec (Node4-Sem)
5933 --------------------------------
5934 -- 9.1 Task Type Declaration --
5935 --------------------------------
5937 -- TASK_TYPE_DECLARATION ::=
5938 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5939 -- [ASPECT_SPECIFICATIONS]
5940 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5942 -- N_Task_Type_Declaration
5943 -- Sloc points to TASK
5944 -- Defining_Identifier (Node1)
5945 -- Discriminant_Specifications (List4) (set to No_List if no
5946 -- discriminant part)
5947 -- Interface_List (List2) (set to No_List if none)
5948 -- Task_Definition (Node3) (set to Empty if not present)
5949 -- Corresponding_Body (Node5-Sem)
5951 ----------------------------------
5952 -- 9.1 Single Task Declaration --
5953 ----------------------------------
5955 -- SINGLE_TASK_DECLARATION ::=
5956 -- task DEFINING_IDENTIFIER
5957 -- [ASPECT_SPECIFICATIONS]
5958 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5960 -- N_Single_Task_Declaration
5961 -- Sloc points to TASK
5962 -- Defining_Identifier (Node1)
5963 -- Interface_List (List2) (set to No_List if none)
5964 -- Task_Definition (Node3) (set to Empty if not present)
5966 --------------------------
5967 -- 9.1 Task Definition --
5968 --------------------------
5970 -- TASK_DEFINITION ::=
5971 -- {TASK_ITEM}
5972 -- [private
5973 -- {TASK_ITEM}]
5974 -- end [task_IDENTIFIER]
5976 -- Note: as a result of semantic analysis, the list of task items can
5977 -- include implicit type declarations resulting from entry families.
5979 -- N_Task_Definition
5980 -- Sloc points to first token of task definition
5981 -- Visible_Declarations (List2)
5982 -- Private_Declarations (List3) (set to No_List if no private part)
5983 -- End_Label (Node4)
5984 -- Has_Storage_Size_Pragma (Flag5-Sem)
5985 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5987 --------------------
5988 -- 9.1 Task Item --
5989 --------------------
5991 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5993 --------------------
5994 -- 9.1 Task Body --
5995 --------------------
5997 -- TASK_BODY ::=
5998 -- task body task_DEFINING_IDENTIFIER
5999 -- [ASPECT_SPECIFICATIONS]
6000 -- is
6001 -- DECLARATIVE_PART
6002 -- begin
6003 -- HANDLED_SEQUENCE_OF_STATEMENTS
6004 -- end [task_IDENTIFIER];
6006 -- Gigi restriction: This node never appears
6008 -- N_Task_Body
6009 -- Sloc points to TASK
6010 -- Defining_Identifier (Node1)
6011 -- Declarations (List2)
6012 -- Handled_Statement_Sequence (Node4)
6013 -- Is_Task_Master (Flag5-Sem)
6014 -- Activation_Chain_Entity (Node3-Sem)
6015 -- Corresponding_Spec (Node5-Sem)
6016 -- Was_Originally_Stub (Flag13-Sem)
6018 -------------------------------------
6019 -- 9.4 Protected Type Declaration --
6020 -------------------------------------
6022 -- PROTECTED_TYPE_DECLARATION ::=
6023 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
6024 -- [ASPECT_SPECIFICATIONS]
6025 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6027 -- Note: protected type declarations are not permitted in Ada 83 mode
6029 -- N_Protected_Type_Declaration
6030 -- Sloc points to PROTECTED
6031 -- Defining_Identifier (Node1)
6032 -- Discriminant_Specifications (List4) (set to No_List if no
6033 -- discriminant part)
6034 -- Interface_List (List2) (set to No_List if none)
6035 -- Protected_Definition (Node3)
6036 -- Corresponding_Body (Node5-Sem)
6038 ---------------------------------------
6039 -- 9.4 Single Protected Declaration --
6040 ---------------------------------------
6042 -- SINGLE_PROTECTED_DECLARATION ::=
6043 -- protected DEFINING_IDENTIFIER
6044 -- [ASPECT_SPECIFICATIONS]
6045 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6047 -- Note: single protected declarations are not allowed in Ada 83 mode
6049 -- N_Single_Protected_Declaration
6050 -- Sloc points to PROTECTED
6051 -- Defining_Identifier (Node1)
6052 -- Interface_List (List2) (set to No_List if none)
6053 -- Protected_Definition (Node3)
6055 -------------------------------
6056 -- 9.4 Protected Definition --
6057 -------------------------------
6059 -- PROTECTED_DEFINITION ::=
6060 -- {PROTECTED_OPERATION_DECLARATION}
6061 -- [private
6062 -- {PROTECTED_ELEMENT_DECLARATION}]
6063 -- end [protected_IDENTIFIER]
6065 -- N_Protected_Definition
6066 -- Sloc points to first token of protected definition
6067 -- Visible_Declarations (List2)
6068 -- Private_Declarations (List3) (set to No_List if no private part)
6069 -- End_Label (Node4)
6071 ------------------------------------------
6072 -- 9.4 Protected Operation Declaration --
6073 ------------------------------------------
6075 -- PROTECTED_OPERATION_DECLARATION ::=
6076 -- SUBPROGRAM_DECLARATION
6077 -- | ENTRY_DECLARATION
6078 -- | REPRESENTATION_CLAUSE
6080 ----------------------------------------
6081 -- 9.4 Protected Element Declaration --
6082 ----------------------------------------
6084 -- PROTECTED_ELEMENT_DECLARATION ::=
6085 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
6087 -------------------------
6088 -- 9.4 Protected Body --
6089 -------------------------
6091 -- PROTECTED_BODY ::=
6092 -- protected body DEFINING_IDENTIFIER
6093 -- [ASPECT_SPECIFICATIONS];
6094 -- is
6095 -- {PROTECTED_OPERATION_ITEM}
6096 -- end [protected_IDENTIFIER];
6098 -- Note: protected bodies are not allowed in Ada 83 mode
6100 -- Gigi restriction: This node never appears
6102 -- N_Protected_Body
6103 -- Sloc points to PROTECTED
6104 -- Defining_Identifier (Node1)
6105 -- Declarations (List2) protected operation items (and pragmas)
6106 -- End_Label (Node4)
6107 -- Corresponding_Spec (Node5-Sem)
6108 -- Was_Originally_Stub (Flag13-Sem)
6110 -----------------------------------
6111 -- 9.4 Protected Operation Item --
6112 -----------------------------------
6114 -- PROTECTED_OPERATION_ITEM ::=
6115 -- SUBPROGRAM_DECLARATION
6116 -- | SUBPROGRAM_BODY
6117 -- | ENTRY_BODY
6118 -- | REPRESENTATION_CLAUSE
6120 ------------------------------
6121 -- 9.5.2 Entry Declaration --
6122 ------------------------------
6124 -- ENTRY_DECLARATION ::=
6125 -- [[not] overriding]
6126 -- entry DEFINING_IDENTIFIER
6127 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
6128 -- [ASPECT_SPECIFICATIONS];
6130 -- N_Entry_Declaration
6131 -- Sloc points to ENTRY
6132 -- Defining_Identifier (Node1)
6133 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
6134 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6135 -- Corresponding_Body (Node5-Sem)
6136 -- Must_Override (Flag14) set if overriding indicator present
6137 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6139 -- Note: overriding indicator is an Ada 2005 feature
6141 -----------------------------
6142 -- 9.5.2 Accept statement --
6143 -----------------------------
6145 -- ACCEPT_STATEMENT ::=
6146 -- accept entry_DIRECT_NAME
6147 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6148 -- HANDLED_SEQUENCE_OF_STATEMENTS
6149 -- end [entry_IDENTIFIER]];
6151 -- Gigi restriction: This node never appears
6153 -- Note: there are no explicit declarations allowed in an accept
6154 -- statement. However, the implicit declarations for any statement
6155 -- identifiers (labels and block/loop identifiers) are declarations
6156 -- that belong logically to the accept statement, and that is why
6157 -- there is a Declarations field in this node.
6159 -- N_Accept_Statement
6160 -- Sloc points to ACCEPT
6161 -- Entry_Direct_Name (Node1)
6162 -- Entry_Index (Node5) (set to Empty if not present)
6163 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6164 -- Handled_Statement_Sequence (Node4)
6165 -- Declarations (List2) (set to No_List if no declarations)
6167 ------------------------
6168 -- 9.5.2 Entry Index --
6169 ------------------------
6171 -- ENTRY_INDEX ::= EXPRESSION
6173 -----------------------
6174 -- 9.5.2 Entry Body --
6175 -----------------------
6177 -- ENTRY_BODY ::=
6178 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6179 -- DECLARATIVE_PART
6180 -- begin
6181 -- HANDLED_SEQUENCE_OF_STATEMENTS
6182 -- end [entry_IDENTIFIER];
6184 -- ENTRY_BARRIER ::= when CONDITION
6186 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6187 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6188 -- too full (it would otherwise have too many fields)
6190 -- Gigi restriction: This node never appears
6192 -- N_Entry_Body
6193 -- Sloc points to ENTRY
6194 -- Defining_Identifier (Node1)
6195 -- Entry_Body_Formal_Part (Node5)
6196 -- Declarations (List2)
6197 -- Handled_Statement_Sequence (Node4)
6198 -- Activation_Chain_Entity (Node3-Sem)
6200 -----------------------------------
6201 -- 9.5.2 Entry Body Formal Part --
6202 -----------------------------------
6204 -- ENTRY_BODY_FORMAL_PART ::=
6205 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6207 -- Note that an entry body formal part node is present even if it is
6208 -- empty. This reflects the grammar, in which it is the components of
6209 -- the entry body formal part that are optional, not the entry body
6210 -- formal part itself. Also this means that the barrier condition
6211 -- always has somewhere to be stored.
6213 -- Gigi restriction: This node never appears
6215 -- N_Entry_Body_Formal_Part
6216 -- Sloc points to first token
6217 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6218 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6219 -- Condition (Node1) from entry barrier of entry body
6221 --------------------------
6222 -- 9.5.2 Entry Barrier --
6223 --------------------------
6225 -- ENTRY_BARRIER ::= when CONDITION
6227 --------------------------------------
6228 -- 9.5.2 Entry Index Specification --
6229 --------------------------------------
6231 -- ENTRY_INDEX_SPECIFICATION ::=
6232 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6234 -- Gigi restriction: This node never appears
6236 -- N_Entry_Index_Specification
6237 -- Sloc points to FOR
6238 -- Defining_Identifier (Node1)
6239 -- Discrete_Subtype_Definition (Node4)
6241 ---------------------------------
6242 -- 9.5.3 Entry Call Statement --
6243 ---------------------------------
6245 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6247 -- The parser may generate a procedure call for this construct. The
6248 -- semantic pass must correct this misidentification where needed.
6250 -- Gigi restriction: This node never appears
6252 -- N_Entry_Call_Statement
6253 -- Sloc points to first token of name
6254 -- Name (Node2)
6255 -- Parameter_Associations (List3) (set to No_List if no
6256 -- actual parameter part)
6257 -- First_Named_Actual (Node4-Sem)
6258 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6259 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6260 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6262 ------------------------------
6263 -- 9.5.4 Requeue Statement --
6264 ------------------------------
6266 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6268 -- Note: requeue statements are not permitted in Ada 83 mode
6270 -- Gigi restriction: This node never appears
6272 -- N_Requeue_Statement
6273 -- Sloc points to REQUEUE
6274 -- Name (Node2)
6275 -- Abort_Present (Flag15)
6276 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6277 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6278 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6280 --------------------------
6281 -- 9.6 Delay Statement --
6282 --------------------------
6284 -- DELAY_STATEMENT ::=
6285 -- DELAY_UNTIL_STATEMENT
6286 -- | DELAY_RELATIVE_STATEMENT
6288 --------------------------------
6289 -- 9.6 Delay Until Statement --
6290 --------------------------------
6292 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6294 -- Note: delay until statements are not permitted in Ada 83 mode
6296 -- Gigi restriction: This node never appears
6298 -- N_Delay_Until_Statement
6299 -- Sloc points to DELAY
6300 -- Expression (Node3)
6302 -----------------------------------
6303 -- 9.6 Delay Relative Statement --
6304 -----------------------------------
6306 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6308 -- Gigi restriction: This node never appears
6310 -- N_Delay_Relative_Statement
6311 -- Sloc points to DELAY
6312 -- Expression (Node3)
6314 ---------------------------
6315 -- 9.7 Select Statement --
6316 ---------------------------
6318 -- SELECT_STATEMENT ::=
6319 -- SELECTIVE_ACCEPT
6320 -- | TIMED_ENTRY_CALL
6321 -- | CONDITIONAL_ENTRY_CALL
6322 -- | ASYNCHRONOUS_SELECT
6324 -----------------------------
6325 -- 9.7.1 Selective Accept --
6326 -----------------------------
6328 -- SELECTIVE_ACCEPT ::=
6329 -- select
6330 -- [GUARD]
6331 -- SELECT_ALTERNATIVE
6332 -- {or
6333 -- [GUARD]
6334 -- SELECT_ALTERNATIVE}
6335 -- [else
6336 -- SEQUENCE_OF_STATEMENTS]
6337 -- end select;
6339 -- Gigi restriction: This node never appears
6341 -- Note: the guard expression, if present, appears in the node for
6342 -- the select alternative.
6344 -- N_Selective_Accept
6345 -- Sloc points to SELECT
6346 -- Select_Alternatives (List1)
6347 -- Else_Statements (List4) (set to No_List if no else part)
6349 ------------------
6350 -- 9.7.1 Guard --
6351 ------------------
6353 -- GUARD ::= when CONDITION =>
6355 -- As noted above, the CONDITION that is part of a GUARD is included
6356 -- in the node for the select alternative for convenience.
6358 -------------------------------
6359 -- 9.7.1 Select Alternative --
6360 -------------------------------
6362 -- SELECT_ALTERNATIVE ::=
6363 -- ACCEPT_ALTERNATIVE
6364 -- | DELAY_ALTERNATIVE
6365 -- | TERMINATE_ALTERNATIVE
6367 -------------------------------
6368 -- 9.7.1 Accept Alternative --
6369 -------------------------------
6371 -- ACCEPT_ALTERNATIVE ::=
6372 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6374 -- Gigi restriction: This node never appears
6376 -- N_Accept_Alternative
6377 -- Sloc points to ACCEPT
6378 -- Accept_Statement (Node2)
6379 -- Condition (Node1) from the guard (set to Empty if no guard present)
6380 -- Statements (List3) (set to Empty_List if no statements)
6381 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6382 -- Accept_Handler_Records (List5-Sem)
6384 ------------------------------
6385 -- 9.7.1 Delay Alternative --
6386 ------------------------------
6388 -- DELAY_ALTERNATIVE ::=
6389 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6391 -- Gigi restriction: This node never appears
6393 -- N_Delay_Alternative
6394 -- Sloc points to DELAY
6395 -- Delay_Statement (Node2)
6396 -- Condition (Node1) from the guard (set to Empty if no guard present)
6397 -- Statements (List3) (set to Empty_List if no statements)
6398 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6400 ----------------------------------
6401 -- 9.7.1 Terminate Alternative --
6402 ----------------------------------
6404 -- TERMINATE_ALTERNATIVE ::= terminate;
6406 -- Gigi restriction: This node never appears
6408 -- N_Terminate_Alternative
6409 -- Sloc points to TERMINATE
6410 -- Condition (Node1) from the guard (set to Empty if no guard present)
6411 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6412 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6414 -----------------------------
6415 -- 9.7.2 Timed Entry Call --
6416 -----------------------------
6418 -- TIMED_ENTRY_CALL ::=
6419 -- select
6420 -- ENTRY_CALL_ALTERNATIVE
6421 -- or
6422 -- DELAY_ALTERNATIVE
6423 -- end select;
6425 -- Gigi restriction: This node never appears
6427 -- N_Timed_Entry_Call
6428 -- Sloc points to SELECT
6429 -- Entry_Call_Alternative (Node1)
6430 -- Delay_Alternative (Node4)
6432 -----------------------------------
6433 -- 9.7.2 Entry Call Alternative --
6434 -----------------------------------
6436 -- ENTRY_CALL_ALTERNATIVE ::=
6437 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6439 -- PROCEDURE_OR_ENTRY_CALL ::=
6440 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6442 -- Gigi restriction: This node never appears
6444 -- N_Entry_Call_Alternative
6445 -- Sloc points to first token of entry call statement
6446 -- Entry_Call_Statement (Node1)
6447 -- Statements (List3) (set to Empty_List if no statements)
6448 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6450 -----------------------------------
6451 -- 9.7.3 Conditional Entry Call --
6452 -----------------------------------
6454 -- CONDITIONAL_ENTRY_CALL ::=
6455 -- select
6456 -- ENTRY_CALL_ALTERNATIVE
6457 -- else
6458 -- SEQUENCE_OF_STATEMENTS
6459 -- end select;
6461 -- Gigi restriction: This node never appears
6463 -- N_Conditional_Entry_Call
6464 -- Sloc points to SELECT
6465 -- Entry_Call_Alternative (Node1)
6466 -- Else_Statements (List4)
6468 --------------------------------
6469 -- 9.7.4 Asynchronous Select --
6470 --------------------------------
6472 -- ASYNCHRONOUS_SELECT ::=
6473 -- select
6474 -- TRIGGERING_ALTERNATIVE
6475 -- then abort
6476 -- ABORTABLE_PART
6477 -- end select;
6479 -- Note: asynchronous select is not permitted in Ada 83 mode
6481 -- Gigi restriction: This node never appears
6483 -- N_Asynchronous_Select
6484 -- Sloc points to SELECT
6485 -- Triggering_Alternative (Node1)
6486 -- Abortable_Part (Node2)
6488 -----------------------------------
6489 -- 9.7.4 Triggering Alternative --
6490 -----------------------------------
6492 -- TRIGGERING_ALTERNATIVE ::=
6493 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6495 -- Gigi restriction: This node never appears
6497 -- N_Triggering_Alternative
6498 -- Sloc points to first token of triggering statement
6499 -- Triggering_Statement (Node1)
6500 -- Statements (List3) (set to Empty_List if no statements)
6501 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6503 ---------------------------------
6504 -- 9.7.4 Triggering Statement --
6505 ---------------------------------
6507 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6509 ---------------------------
6510 -- 9.7.4 Abortable Part --
6511 ---------------------------
6513 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6515 -- Gigi restriction: This node never appears
6517 -- N_Abortable_Part
6518 -- Sloc points to ABORT
6519 -- Statements (List3)
6521 --------------------------
6522 -- 9.8 Abort Statement --
6523 --------------------------
6525 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6527 -- Gigi restriction: This node never appears
6529 -- N_Abort_Statement
6530 -- Sloc points to ABORT
6531 -- Names (List2)
6533 -------------------------
6534 -- 10.1.1 Compilation --
6535 -------------------------
6537 -- COMPILATION ::= {COMPILATION_UNIT}
6539 -- There is no explicit node in the tree for a compilation, since in
6540 -- general the compiler is processing only a single compilation unit
6541 -- at a time. It is possible to parse multiple units in syntax check
6542 -- only mode, but the trees are discarded in that case.
6544 ------------------------------
6545 -- 10.1.1 Compilation Unit --
6546 ------------------------------
6548 -- COMPILATION_UNIT ::=
6549 -- CONTEXT_CLAUSE LIBRARY_ITEM
6550 -- | CONTEXT_CLAUSE SUBUNIT
6552 -- The N_Compilation_Unit node itself represents the above syntax.
6553 -- However, there are two additional items not reflected in the above
6554 -- syntax. First we have the global declarations that are added by the
6555 -- code generator. These are outer level declarations (so they cannot
6556 -- be represented as being inside the units). An example is the wrapper
6557 -- subprograms that are created to do ABE checking. As always a list of
6558 -- declarations can contain actions as well (i.e. statements), and such
6559 -- statements are executed as part of the elaboration of the unit. Note
6560 -- that all such declarations are elaborated before the library unit.
6562 -- Similarly, certain actions need to be elaborated at the completion
6563 -- of elaboration of the library unit (notably the statement that sets
6564 -- the Boolean flag indicating that elaboration is complete).
6566 -- The third item not reflected in the syntax is pragmas that appear
6567 -- after the compilation unit. As always pragmas are a problem since
6568 -- they are not part of the formal syntax, but can be stuck into the
6569 -- source following a set of ad hoc rules, and we have to find an ad
6570 -- hoc way of sticking them into the tree. For pragmas that appear
6571 -- before the library unit, we just consider them to be part of the
6572 -- context clause, and pragmas can appear in the Context_Items list
6573 -- of the compilation unit. However, pragmas can also appear after
6574 -- the library item.
6576 -- To deal with all these problems, we create an auxiliary node for
6577 -- a compilation unit, referenced from the N_Compilation_Unit node,
6578 -- that contains these items.
6580 -- N_Compilation_Unit
6581 -- Sloc points to first token of defining unit name
6582 -- Context_Items (List1) context items and pragmas preceding unit
6583 -- Private_Present (Flag15) set if library unit has private keyword
6584 -- Unit (Node2) library item or subunit
6585 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6586 -- First_Inlined_Subprogram (Node3-Sem)
6587 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6588 -- Save_Invocation_Graph_Of_Body (Flag1-Sem)
6589 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6590 -- Body_Required (Flag13-Sem) set for spec if body is required
6591 -- Has_Pragma_Suppress_All (Flag14-Sem)
6592 -- Context_Pending (Flag16-Sem)
6593 -- Has_No_Elaboration_Code (Flag17-Sem)
6595 -- N_Compilation_Unit_Aux
6596 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6597 -- Declarations (List2) (set to No_List if no global declarations)
6598 -- Actions (List1) (set to No_List if no actions)
6599 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6600 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6601 -- Default_Storage_Pool (Node3-Sem)
6603 --------------------------
6604 -- 10.1.1 Library Item --
6605 --------------------------
6607 -- LIBRARY_ITEM ::=
6608 -- [private] LIBRARY_UNIT_DECLARATION
6609 -- | LIBRARY_UNIT_BODY
6610 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6612 -- Note: PRIVATE is not allowed in Ada 83 mode
6614 -- There is no explicit node in the tree for library item, instead
6615 -- the declaration or body, and the flag for private if present,
6616 -- appear in the N_Compilation_Unit node.
6618 --------------------------------------
6619 -- 10.1.1 Library Unit Declaration --
6620 --------------------------------------
6622 -- LIBRARY_UNIT_DECLARATION ::=
6623 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6624 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6626 -----------------------------------------------
6627 -- 10.1.1 Library Unit Renaming Declaration --
6628 -----------------------------------------------
6630 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6631 -- PACKAGE_RENAMING_DECLARATION
6632 -- | GENERIC_RENAMING_DECLARATION
6633 -- | SUBPROGRAM_RENAMING_DECLARATION
6635 -------------------------------
6636 -- 10.1.1 Library unit body --
6637 -------------------------------
6639 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6641 ------------------------------
6642 -- 10.1.1 Parent Unit Name --
6643 ------------------------------
6645 -- PARENT_UNIT_NAME ::= NAME
6647 ----------------------------
6648 -- 10.1.2 Context clause --
6649 ----------------------------
6651 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6653 -- The context clause can include pragmas, and any pragmas that appear
6654 -- before the context clause proper (i.e. all configuration pragmas,
6655 -- also appear at the front of this list).
6657 --------------------------
6658 -- 10.1.2 Context_Item --
6659 --------------------------
6661 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6663 -------------------------
6664 -- 10.1.2 With clause --
6665 -------------------------
6667 -- WITH_CLAUSE ::=
6668 -- with library_unit_NAME {,library_unit_NAME};
6670 -- A separate With clause is built for each name, so that we have
6671 -- a Corresponding_Spec field for each with'ed spec. The flags
6672 -- First_Name and Last_Name are used to reconstruct the exact
6673 -- source form. When a list of names appears in one with clause,
6674 -- the first name in the list has First_Name set, and the last
6675 -- has Last_Name set. If the with clause has only one name, then
6676 -- both of the flags First_Name and Last_Name are set in this name.
6678 -- Note: in the case of implicit with's that are installed by the
6679 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6680 -- set to Standard_Location, but it is incorrect to test the Sloc
6681 -- to find out if a with clause is implicit, test the flag instead.
6683 -- N_With_Clause
6684 -- Sloc points to first token of library unit name
6685 -- Name (Node2)
6686 -- Private_Present (Flag15) set if with_clause has private keyword
6687 -- Limited_Present (Flag17) set if LIMITED is present
6688 -- Next_Implicit_With (Node3-Sem)
6689 -- Library_Unit (Node4-Sem)
6690 -- Corresponding_Spec (Node5-Sem)
6691 -- First_Name (Flag5) (set to True if first name or only one name)
6692 -- Last_Name (Flag6) (set to True if last name or only one name)
6693 -- Context_Installed (Flag13-Sem)
6694 -- Elaborate_Present (Flag4-Sem)
6695 -- Elaborate_All_Present (Flag14-Sem)
6696 -- Elaborate_All_Desirable (Flag9-Sem)
6697 -- Elaborate_Desirable (Flag11-Sem)
6698 -- Implicit_With (Flag16-Sem)
6699 -- Limited_View_Installed (Flag18-Sem)
6700 -- Parent_With (Flag1-Sem)
6701 -- Unreferenced_In_Spec (Flag7-Sem)
6702 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6704 -- Note: Limited_Present and Limited_View_Installed are used to support
6705 -- the implementation of Ada 2005 (AI-50217).
6707 -- Similarly, Private_Present is used to support the implementation of
6708 -- Ada 2005 (AI-50262).
6710 -- Note: if the WITH clause refers to a standard library unit, then a
6711 -- limited with clause is changed into a normal with clause, because we
6712 -- are not prepared to deal with limited with in the context of Rtsfind.
6713 -- So in this case, the Limited_Present flag will be False in the final
6714 -- tree.
6716 ----------------------
6717 -- With_Type clause --
6718 ----------------------
6720 -- This is a GNAT extension, used to implement mutually recursive
6721 -- types declared in different packages.
6723 -- Note: this is now obsolete. The functionality of this construct
6724 -- is now implemented by the Ada 2005 limited_with_clause.
6726 ---------------------
6727 -- 10.2 Body stub --
6728 ---------------------
6730 -- BODY_STUB ::=
6731 -- SUBPROGRAM_BODY_STUB
6732 -- | PACKAGE_BODY_STUB
6733 -- | TASK_BODY_STUB
6734 -- | PROTECTED_BODY_STUB
6736 ----------------------------------
6737 -- 10.1.3 Subprogram Body Stub --
6738 ----------------------------------
6740 -- SUBPROGRAM_BODY_STUB ::=
6741 -- SUBPROGRAM_SPECIFICATION is separate
6742 -- [ASPECT_SPECIFICATION];
6744 -- N_Subprogram_Body_Stub
6745 -- Sloc points to FUNCTION or PROCEDURE
6746 -- Specification (Node1)
6747 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6748 -- Library_Unit (Node4-Sem) points to the subunit
6749 -- Corresponding_Body (Node5-Sem)
6751 -------------------------------
6752 -- 10.1.3 Package Body Stub --
6753 -------------------------------
6755 -- PACKAGE_BODY_STUB ::=
6756 -- package body DEFINING_IDENTIFIER is separate
6757 -- [ASPECT_SPECIFICATION];
6759 -- N_Package_Body_Stub
6760 -- Sloc points to PACKAGE
6761 -- Defining_Identifier (Node1)
6762 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6763 -- Library_Unit (Node4-Sem) points to the subunit
6764 -- Corresponding_Body (Node5-Sem)
6766 ----------------------------
6767 -- 10.1.3 Task Body Stub --
6768 ----------------------------
6770 -- TASK_BODY_STUB ::=
6771 -- task body DEFINING_IDENTIFIER is separate
6772 -- [ASPECT_SPECIFICATION];
6774 -- N_Task_Body_Stub
6775 -- Sloc points to TASK
6776 -- Defining_Identifier (Node1)
6777 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6778 -- Library_Unit (Node4-Sem) points to the subunit
6779 -- Corresponding_Body (Node5-Sem)
6781 ---------------------------------
6782 -- 10.1.3 Protected Body Stub --
6783 ---------------------------------
6785 -- PROTECTED_BODY_STUB ::=
6786 -- protected body DEFINING_IDENTIFIER is separate
6787 -- [ASPECT_SPECIFICATION];
6789 -- Note: protected body stubs are not allowed in Ada 83 mode
6791 -- N_Protected_Body_Stub
6792 -- Sloc points to PROTECTED
6793 -- Defining_Identifier (Node1)
6794 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6795 -- Library_Unit (Node4-Sem) points to the subunit
6796 -- Corresponding_Body (Node5-Sem)
6798 ---------------------
6799 -- 10.1.3 Subunit --
6800 ---------------------
6802 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6804 -- N_Subunit
6805 -- Sloc points to SEPARATE
6806 -- Name (Node2) is the name of the parent unit
6807 -- Proper_Body (Node1) is the subunit body
6808 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6810 ---------------------------------
6811 -- 11.1 Exception Declaration --
6812 ---------------------------------
6814 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6815 -- [ASPECT_SPECIFICATIONS];
6817 -- For consistency with object declarations etc., the parser converts
6818 -- the case of multiple identifiers being declared to a series of
6819 -- declarations in which the expression is copied, using the More_Ids
6820 -- and Prev_Ids flags to remember the source form as described in the
6821 -- section on "Handling of Defining Identifier Lists".
6823 -- N_Exception_Declaration
6824 -- Sloc points to EXCEPTION
6825 -- Defining_Identifier (Node1)
6826 -- Expression (Node3-Sem)
6827 -- Renaming_Exception (Node2-Sem)
6828 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6829 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6831 ------------------------------------------
6832 -- 11.2 Handled Sequence Of Statements --
6833 ------------------------------------------
6835 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6836 -- SEQUENCE_OF_STATEMENTS
6837 -- [exception
6838 -- EXCEPTION_HANDLER
6839 -- {EXCEPTION_HANDLER}]
6840 -- [at end
6841 -- cleanup_procedure_call (param, param, param, ...);]
6843 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6844 -- used only internally currently, but is considered to be syntactic.
6845 -- At the moment, the only cleanup action allowed is a single call to
6846 -- a parameterless procedure, and the Identifier field of the node is
6847 -- the procedure to be called. The cleanup action occurs whenever the
6848 -- sequence of statements is left for any reason. The possible reasons
6849 -- are:
6850 -- 1. reaching the end of the sequence
6851 -- 2. exit, return, or goto
6852 -- 3. exception or abort
6853 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6854 -- entirely in the back end. In this case, a handled sequence of
6855 -- statements with an "at end" cannot also have exception handlers.
6856 -- For other back ends, such as gcc with front-end SJLJ, the
6857 -- implementation is split between the front end and back end; the front
6858 -- end implements 3, and the back end implements 1 and 2. In this case,
6859 -- if there is an "at end", the front end inserts the appropriate
6860 -- exception handler, and this handler takes precedence over "at end"
6861 -- in case of exception.
6863 -- The inserted exception handler is of the form:
6865 -- when all others =>
6866 -- cleanup;
6867 -- raise;
6869 -- where cleanup is the procedure to be called. The reason we do this is
6870 -- so that the front end can handle the necessary entries in the
6871 -- exception tables, and other exception handler actions required as
6872 -- part of the normal handling for exception handlers.
6874 -- The AT END cleanup handler protects only the sequence of statements
6875 -- (not the associated declarations of the parent), just like exception
6876 -- handlers. The big difference is that the cleanup procedure is called
6877 -- on either a normal or an abnormal exit from the statement sequence.
6879 -- Note: the list of Exception_Handlers can contain pragmas as well
6880 -- as actual handlers. In practice these pragmas can only occur at
6881 -- the start of the list, since any pragmas occurring later on will
6882 -- be included in the statement list of the corresponding handler.
6884 -- Note: although in the Ada syntax, the sequence of statements in
6885 -- a handled sequence of statements can only contain statements, we
6886 -- allow free mixing of declarations and statements in the resulting
6887 -- expanded tree. This is for example used to deal with the case of
6888 -- a cleanup procedure that must handle declarations as well as the
6889 -- statements of a block.
6891 -- Note: the cleanup_procedure_call does not go through the common
6892 -- processing for calls, which in particular means that it will not be
6893 -- automatically inlined in all cases, even though the procedure to be
6894 -- called is marked inline. More specifically, if the procedure comes
6895 -- from another unit than the main source unit, for example a run-time
6896 -- unit, then it needs to be manually added to the list of bodies to be
6897 -- inlined by invoking Add_Inlined_Body on it.
6899 -- N_Handled_Sequence_Of_Statements
6900 -- Sloc points to first token of first statement
6901 -- Statements (List3)
6902 -- End_Label (Node4) (set to Empty if expander generated)
6903 -- Exception_Handlers (List5) (set to No_List if none present)
6904 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6905 -- First_Real_Statement (Node2-Sem)
6907 -- Note: the parent always contains a Declarations field which contains
6908 -- declarations associated with the handled sequence of statements. This
6909 -- is true even in the case of an accept statement (see description of
6910 -- the N_Accept_Statement node).
6912 -- End_Label refers to the containing construct
6914 -----------------------------
6915 -- 11.2 Exception Handler --
6916 -----------------------------
6918 -- EXCEPTION_HANDLER ::=
6919 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6920 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6921 -- SEQUENCE_OF_STATEMENTS
6923 -- Note: choice parameter specification is not allowed in Ada 83 mode
6925 -- N_Exception_Handler
6926 -- Sloc points to WHEN
6927 -- Choice_Parameter (Node2) (set to Empty if not present)
6928 -- Exception_Choices (List4)
6929 -- Statements (List3)
6930 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6931 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6932 -- Local_Raise_Not_OK (Flag7-Sem)
6933 -- Has_Local_Raise (Flag8-Sem)
6935 ------------------------------------------
6936 -- 11.2 Choice parameter specification --
6937 ------------------------------------------
6939 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6941 ----------------------------
6942 -- 11.2 Exception Choice --
6943 ----------------------------
6945 -- EXCEPTION_CHOICE ::= exception_NAME | others
6947 -- Except in the case of OTHERS, no explicit node appears in the tree
6948 -- for exception choice. Instead the exception name appears directly.
6949 -- An OTHERS choice is represented by a N_Others_Choice node (see
6950 -- section 3.8.1.
6952 -- Note: for the exception choice created for an at end handler, the
6953 -- exception choice is an N_Others_Choice node with All_Others set.
6955 ---------------------------
6956 -- 11.3 Raise Statement --
6957 ---------------------------
6959 -- RAISE_STATEMENT ::= raise [exception_NAME];
6961 -- In Ada 2005, we have
6963 -- RAISE_STATEMENT ::=
6964 -- raise; | raise exception_NAME [with string_EXPRESSION];
6966 -- N_Raise_Statement
6967 -- Sloc points to RAISE
6968 -- Name (Node2) (set to Empty if no exception name present)
6969 -- Expression (Node3) (set to Empty if no expression present)
6970 -- From_At_End (Flag4-Sem)
6972 ----------------------------
6973 -- 11.3 Raise Expression --
6974 ----------------------------
6976 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6978 -- N_Raise_Expression
6979 -- Sloc points to RAISE
6980 -- Name (Node2) (always present)
6981 -- Expression (Node3) (set to Empty if no expression present)
6982 -- Convert_To_Return_False (Flag13-Sem)
6983 -- plus fields for expression
6985 -------------------------------
6986 -- 12.1 Generic Declaration --
6987 -------------------------------
6989 -- GENERIC_DECLARATION ::=
6990 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6992 ------------------------------------------
6993 -- 12.1 Generic Subprogram Declaration --
6994 ------------------------------------------
6996 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6997 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6998 -- [ASPECT_SPECIFICATIONS];
7000 -- Note: Generic_Formal_Declarations can include pragmas
7002 -- N_Generic_Subprogram_Declaration
7003 -- Sloc points to GENERIC
7004 -- Specification (Node1) subprogram specification
7005 -- Corresponding_Body (Node5-Sem)
7006 -- Generic_Formal_Declarations (List2) from generic formal part
7007 -- Parent_Spec (Node4-Sem)
7009 ---------------------------------------
7010 -- 12.1 Generic Package Declaration --
7011 ---------------------------------------
7013 -- GENERIC_PACKAGE_DECLARATION ::=
7014 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
7015 -- [ASPECT_SPECIFICATIONS];
7017 -- Note: when we do generics right, the Activation_Chain_Entity entry
7018 -- for this node can be removed (since the expander won't see generic
7019 -- units any more)???.
7021 -- Note: Generic_Formal_Declarations can include pragmas
7023 -- N_Generic_Package_Declaration
7024 -- Sloc points to GENERIC
7025 -- Specification (Node1) package specification
7026 -- Corresponding_Body (Node5-Sem)
7027 -- Generic_Formal_Declarations (List2) from generic formal part
7028 -- Parent_Spec (Node4-Sem)
7029 -- Activation_Chain_Entity (Node3-Sem)
7031 -------------------------------
7032 -- 12.1 Generic Formal Part --
7033 -------------------------------
7035 -- GENERIC_FORMAL_PART ::=
7036 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
7038 ------------------------------------------------
7039 -- 12.1 Generic Formal Parameter Declaration --
7040 ------------------------------------------------
7042 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
7043 -- FORMAL_OBJECT_DECLARATION
7044 -- | FORMAL_TYPE_DECLARATION
7045 -- | FORMAL_SUBPROGRAM_DECLARATION
7046 -- | FORMAL_PACKAGE_DECLARATION
7048 ---------------------------------
7049 -- 12.3 Generic Instantiation --
7050 ---------------------------------
7052 -- GENERIC_INSTANTIATION ::=
7053 -- package DEFINING_PROGRAM_UNIT_NAME is
7054 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
7055 -- [ASPECT_SPECIFICATIONS];
7056 -- | [[not] overriding]
7057 -- procedure DEFINING_PROGRAM_UNIT_NAME is
7058 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
7059 -- [ASPECT_SPECIFICATIONS];
7060 -- | [[not] overriding]
7061 -- function DEFINING_DESIGNATOR is
7062 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
7063 -- [ASPECT_SPECIFICATIONS];
7065 -- N_Package_Instantiation
7066 -- Sloc points to PACKAGE
7067 -- Defining_Unit_Name (Node1)
7068 -- Name (Node2)
7069 -- Generic_Associations (List3) (set to No_List if no
7070 -- generic actual part)
7071 -- Parent_Spec (Node4-Sem)
7072 -- Instance_Spec (Node5-Sem)
7073 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7074 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7075 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7076 -- Is_Declaration_Level_Node (Flag5-Sem)
7077 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7079 -- N_Procedure_Instantiation
7080 -- Sloc points to PROCEDURE
7081 -- Defining_Unit_Name (Node1)
7082 -- Name (Node2)
7083 -- Parent_Spec (Node4-Sem)
7084 -- Generic_Associations (List3) (set to No_List if no
7085 -- generic actual part)
7086 -- Instance_Spec (Node5-Sem)
7087 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7088 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7089 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7090 -- Is_Declaration_Level_Node (Flag5-Sem)
7091 -- Must_Override (Flag14) set if overriding indicator present
7092 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7093 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7095 -- N_Function_Instantiation
7096 -- Sloc points to FUNCTION
7097 -- Defining_Unit_Name (Node1)
7098 -- Name (Node2)
7099 -- Generic_Associations (List3) (set to No_List if no
7100 -- generic actual part)
7101 -- Parent_Spec (Node4-Sem)
7102 -- Instance_Spec (Node5-Sem)
7103 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7104 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7105 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7106 -- Is_Declaration_Level_Node (Flag5-Sem)
7107 -- Must_Override (Flag14) set if overriding indicator present
7108 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7109 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7111 -- Note: overriding indicator is an Ada 2005 feature
7113 -------------------------------
7114 -- 12.3 Generic Actual Part --
7115 -------------------------------
7117 -- GENERIC_ACTUAL_PART ::=
7118 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
7120 -------------------------------
7121 -- 12.3 Generic Association --
7122 -------------------------------
7124 -- GENERIC_ASSOCIATION ::=
7125 -- [generic_formal_parameter_SELECTOR_NAME =>]
7127 -- Note: unlike the procedure call case, a generic association node
7128 -- is generated for every association, even if no formal parameter
7129 -- selector name is present. In this case the parser will leave the
7130 -- Selector_Name field set to Empty, to be filled in later by the
7131 -- semantic pass.
7133 -- In Ada 2005, a formal may be associated with a box, if the
7134 -- association is part of the list of actuals for a formal package.
7135 -- If the association is given by OTHERS => <>, the association is
7136 -- an N_Others_Choice.
7138 -- N_Generic_Association
7139 -- Sloc points to first token of generic association
7140 -- Selector_Name (Node2) (set to Empty if no formal
7141 -- parameter selector name)
7142 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
7143 -- Box_Present (Flag15) (for formal_package associations with a box)
7145 ---------------------------------------------
7146 -- 12.3 Explicit Generic Actual Parameter --
7147 ---------------------------------------------
7149 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
7150 -- EXPRESSION | variable_NAME | subprogram_NAME
7151 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7153 -------------------------------------
7154 -- 12.4 Formal Object Declaration --
7155 -------------------------------------
7157 -- FORMAL_OBJECT_DECLARATION ::=
7158 -- DEFINING_IDENTIFIER_LIST :
7159 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7160 -- [ASPECT_SPECIFICATIONS];
7161 -- | DEFINING_IDENTIFIER_LIST :
7162 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7163 -- [ASPECT_SPECIFICATIONS];
7165 -- Although the syntax allows multiple identifiers in the list, the
7166 -- semantics is as though successive declarations were given with
7167 -- identical type definition and expression components. To simplify
7168 -- semantic processing, the parser represents a multiple declaration
7169 -- case as a sequence of single declarations, using the More_Ids and
7170 -- Prev_Ids flags to preserve the original source form as described
7171 -- in the section on "Handling of Defining Identifier Lists".
7173 -- N_Formal_Object_Declaration
7174 -- Sloc points to first identifier
7175 -- Defining_Identifier (Node1)
7176 -- In_Present (Flag15)
7177 -- Out_Present (Flag17)
7178 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7179 -- Subtype_Mark (Node4) (set to Empty if not present)
7180 -- Access_Definition (Node3) (set to Empty if not present)
7181 -- Default_Expression (Node5) (set to Empty if no default expression)
7182 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7183 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7185 -----------------------------------
7186 -- 12.5 Formal Type Declaration --
7187 -----------------------------------
7189 -- FORMAL_TYPE_DECLARATION ::=
7190 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7191 -- is FORMAL_TYPE_DEFINITION
7192 -- [ASPECT_SPECIFICATIONS];
7193 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7195 -- N_Formal_Type_Declaration
7196 -- Sloc points to TYPE
7197 -- Defining_Identifier (Node1)
7198 -- Formal_Type_Definition (Node3)
7199 -- Discriminant_Specifications (List4) (set to No_List if no
7200 -- discriminant part)
7201 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7203 ----------------------------------
7204 -- 12.5 Formal type definition --
7205 ----------------------------------
7207 -- FORMAL_TYPE_DEFINITION ::=
7208 -- FORMAL_PRIVATE_TYPE_DEFINITION
7209 -- | FORMAL_DERIVED_TYPE_DEFINITION
7210 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7211 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7212 -- | FORMAL_MODULAR_TYPE_DEFINITION
7213 -- | FORMAL_FLOATING_POINT_DEFINITION
7214 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7215 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7216 -- | FORMAL_ARRAY_TYPE_DEFINITION
7217 -- | FORMAL_ACCESS_TYPE_DEFINITION
7218 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7219 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7221 -- The Ada 2012 syntax introduces two new non-terminals:
7222 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7223 -- the latter category. Here we introduce an incomplete type definition
7224 -- in order to preserve as much as possible the existing structure.
7226 ---------------------------------------------
7227 -- 12.5.1 Formal Private Type Definition --
7228 ---------------------------------------------
7230 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7231 -- [[abstract] tagged] [limited] private
7233 -- Note: TAGGED is not allowed in Ada 83 mode
7235 -- N_Formal_Private_Type_Definition
7236 -- Sloc points to PRIVATE
7237 -- Uninitialized_Variable (Node3-Sem)
7238 -- Abstract_Present (Flag4)
7239 -- Tagged_Present (Flag15)
7240 -- Limited_Present (Flag17)
7242 --------------------------------------------
7243 -- 12.5.1 Formal Derived Type Definition --
7244 --------------------------------------------
7246 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7247 -- [abstract] [limited | synchronized]
7248 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7249 -- Note: this construct is not allowed in Ada 83 mode
7251 -- N_Formal_Derived_Type_Definition
7252 -- Sloc points to NEW
7253 -- Subtype_Mark (Node4)
7254 -- Private_Present (Flag15)
7255 -- Abstract_Present (Flag4)
7256 -- Limited_Present (Flag17)
7257 -- Synchronized_Present (Flag7)
7258 -- Interface_List (List2) (set to No_List if none)
7260 -----------------------------------------------
7261 -- 12.5.1 Formal Incomplete Type Definition --
7262 -----------------------------------------------
7264 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7266 -- N_Formal_Incomplete_Type_Definition
7267 -- Sloc points to identifier of parent
7268 -- Tagged_Present (Flag15)
7270 ---------------------------------------------
7271 -- 12.5.2 Formal Discrete Type Definition --
7272 ---------------------------------------------
7274 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7276 -- N_Formal_Discrete_Type_Definition
7277 -- Sloc points to (
7279 ---------------------------------------------------
7280 -- 12.5.2 Formal Signed Integer Type Definition --
7281 ---------------------------------------------------
7283 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7285 -- N_Formal_Signed_Integer_Type_Definition
7286 -- Sloc points to RANGE
7288 --------------------------------------------
7289 -- 12.5.2 Formal Modular Type Definition --
7290 --------------------------------------------
7292 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7294 -- N_Formal_Modular_Type_Definition
7295 -- Sloc points to MOD
7297 ----------------------------------------------
7298 -- 12.5.2 Formal Floating Point Definition --
7299 ----------------------------------------------
7301 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7303 -- N_Formal_Floating_Point_Definition
7304 -- Sloc points to DIGITS
7306 ----------------------------------------------------
7307 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7308 ----------------------------------------------------
7310 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7312 -- N_Formal_Ordinary_Fixed_Point_Definition
7313 -- Sloc points to DELTA
7315 ---------------------------------------------------
7316 -- 12.5.2 Formal Decimal Fixed Point Definition --
7317 ---------------------------------------------------
7319 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7321 -- Note: formal decimal fixed point definition not allowed in Ada 83
7323 -- N_Formal_Decimal_Fixed_Point_Definition
7324 -- Sloc points to DELTA
7326 ------------------------------------------
7327 -- 12.5.3 Formal Array Type Definition --
7328 ------------------------------------------
7330 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7332 -------------------------------------------
7333 -- 12.5.4 Formal Access Type Definition --
7334 -------------------------------------------
7336 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7338 ----------------------------------------------
7339 -- 12.5.5 Formal Interface Type Definition --
7340 ----------------------------------------------
7342 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7344 -----------------------------------------
7345 -- 12.6 Formal Subprogram Declaration --
7346 -----------------------------------------
7348 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7349 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7350 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7352 --------------------------------------------------
7353 -- 12.6 Formal Concrete Subprogram Declaration --
7354 --------------------------------------------------
7356 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7357 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7358 -- [ASPECT_SPECIFICATIONS];
7360 -- N_Formal_Concrete_Subprogram_Declaration
7361 -- Sloc points to WITH
7362 -- Specification (Node1)
7363 -- Default_Name (Node2) (set to Empty if no subprogram default)
7364 -- Box_Present (Flag15)
7366 -- Note: if no subprogram default is present, then Name is set
7367 -- to Empty, and Box_Present is False.
7369 --------------------------------------------------
7370 -- 12.6 Formal Abstract Subprogram Declaration --
7371 --------------------------------------------------
7373 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7374 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7375 -- [ASPECT_SPECIFICATIONS];
7377 -- N_Formal_Abstract_Subprogram_Declaration
7378 -- Sloc points to WITH
7379 -- Specification (Node1)
7380 -- Default_Name (Node2) (set to Empty if no subprogram default)
7381 -- Box_Present (Flag15)
7383 -- Note: if no subprogram default is present, then Name is set
7384 -- to Empty, and Box_Present is False.
7386 ------------------------------
7387 -- 12.6 Subprogram Default --
7388 ------------------------------
7390 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7392 -- There is no separate node in the tree for a subprogram default.
7393 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7394 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7395 -- default name or box indication, as needed.
7397 ------------------------
7398 -- 12.6 Default Name --
7399 ------------------------
7401 -- DEFAULT_NAME ::= NAME
7403 --------------------------------------
7404 -- 12.7 Formal Package Declaration --
7405 --------------------------------------
7407 -- FORMAL_PACKAGE_DECLARATION ::=
7408 -- with package DEFINING_IDENTIFIER
7409 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7410 -- [ASPECT_SPECIFICATIONS];
7412 -- Note: formal package declarations not allowed in Ada 83 mode
7414 -- N_Formal_Package_Declaration
7415 -- Sloc points to WITH
7416 -- Defining_Identifier (Node1)
7417 -- Name (Node2)
7418 -- Generic_Associations (List3) (set to No_List if (<>) case or
7419 -- empty generic actual part)
7420 -- Box_Present (Flag15)
7421 -- Instance_Spec (Node5-Sem)
7422 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7424 --------------------------------------
7425 -- 12.7 Formal Package Actual Part --
7426 --------------------------------------
7428 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7429 -- ([OTHERS] => <>)
7430 -- | [GENERIC_ACTUAL_PART]
7431 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7433 -- FORMAL_PACKAGE_ASSOCIATION ::=
7434 -- GENERIC_ASSOCIATION
7435 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7437 -- There is no explicit node in the tree for a formal package actual
7438 -- part. Instead the information appears in the parent node (i.e. the
7439 -- formal package declaration node itself).
7441 -- There is no explicit node for a formal package association. All of
7442 -- them are represented either by a generic association, possibly with
7443 -- Box_Present, or by an N_Others_Choice.
7445 ---------------------------------
7446 -- 13.1 Representation clause --
7447 ---------------------------------
7449 -- REPRESENTATION_CLAUSE ::=
7450 -- ATTRIBUTE_DEFINITION_CLAUSE
7451 -- | ENUMERATION_REPRESENTATION_CLAUSE
7452 -- | RECORD_REPRESENTATION_CLAUSE
7453 -- | AT_CLAUSE
7455 ----------------------
7456 -- 13.1 Local Name --
7457 ----------------------
7459 -- LOCAL_NAME :=
7460 -- DIRECT_NAME
7461 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7462 -- | library_unit_NAME
7464 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7465 -- as an attribute reference, which has essentially the same form.
7467 ---------------------------------------
7468 -- 13.3 Attribute definition clause --
7469 ---------------------------------------
7471 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7472 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7473 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7475 -- In Ada 83, the expression must be a simple expression and the
7476 -- local name must be a direct name.
7478 -- Note: the only attribute definition clause that is processed by
7479 -- gigi is an address clause. For all other cases, the information
7480 -- is extracted by the front end and either results in setting entity
7481 -- information, e.g. Esize for the Size clause, or in appropriate
7482 -- expansion actions (e.g. in the case of Storage_Size).
7484 -- For an address clause, Gigi constructs the appropriate addressing
7485 -- code. It also ensures that no aliasing optimizations are made
7486 -- for the object for which the address clause appears.
7488 -- Note: for an address clause used to achieve an overlay:
7490 -- A : Integer;
7491 -- B : Integer;
7492 -- for B'Address use A'Address;
7494 -- the above rule means that Gigi will ensure that no optimizations
7495 -- will be made for B that would violate the implementation advice
7496 -- of RM 13.3(19). However, this advice applies only to B and not
7497 -- to A, which seems unfortunate. The GNAT front end will mark the
7498 -- object A as volatile to also prevent unwanted optimization
7499 -- assumptions based on no aliasing being made for B.
7501 -- N_Attribute_Definition_Clause
7502 -- Sloc points to FOR
7503 -- Name (Node2) the local name
7504 -- Chars (Name1) the identifier name from the attribute designator
7505 -- Expression (Node3) the expression or name
7506 -- Entity (Node4-Sem)
7507 -- Next_Rep_Item (Node5-Sem)
7508 -- From_At_Mod (Flag4-Sem)
7509 -- Check_Address_Alignment (Flag11-Sem)
7510 -- From_Aspect_Specification (Flag13-Sem)
7511 -- Is_Delayed_Aspect (Flag14-Sem)
7512 -- Address_Warning_Posted (Flag18-Sem)
7514 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7515 -- aspect name, and Entity is resolved already to reference the entity
7516 -- to which the aspect applies.
7518 -----------------------------------
7519 -- 13.3.1 Aspect Specifications --
7520 -----------------------------------
7522 -- We modify the RM grammar here, the RM grammar is:
7524 -- ASPECT_SPECIFICATION ::=
7525 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7526 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7528 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7530 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7532 -- That's inconvenient, since there is no non-terminal name for a single
7533 -- entry in the list of aspects. So we use this grammar instead:
7535 -- ASPECT_SPECIFICATIONS ::=
7536 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7538 -- ASPECT_SPECIFICATION =>
7539 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7541 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7543 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7545 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7546 -- aggregate with the elements of the aggregate corresponding to the
7547 -- successive arguments of the corresponding pragma.
7549 -- See separate package Aspects for details on the incorporation of
7550 -- these nodes into the tree, and how aspect specifications for a given
7551 -- declaration node are associated with that node.
7553 -- N_Aspect_Specification
7554 -- Sloc points to aspect identifier
7555 -- Identifier (Node1) aspect identifier
7556 -- Aspect_Rep_Item (Node2-Sem)
7557 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7558 -- Entity (Node4-Sem) entity to which the aspect applies
7559 -- Next_Rep_Item (Node5-Sem)
7560 -- Class_Present (Flag6) Set if 'Class present
7561 -- Is_Ignored (Flag9-Sem)
7562 -- Is_Checked (Flag11-Sem)
7563 -- Is_Delayed_Aspect (Flag14-Sem)
7564 -- Is_Disabled (Flag15-Sem)
7565 -- Is_Boolean_Aspect (Flag16-Sem)
7566 -- Split_PPC (Flag17) Set if split pre/post attribute
7567 -- Aspect_On_Partial_View (Flag18-Sem)
7569 -- Note: Aspect_Specification is an Ada 2012 feature
7571 -- Note: The Identifier serves to identify the aspect involved (it
7572 -- is the aspect whose name corresponds to the Chars field). This
7573 -- means that the other fields of this identifier are unused, and
7574 -- in particular we use the Entity field of this identifier to save
7575 -- a copy of the expression for visibility analysis, see spec of
7576 -- Sem_Ch13 for full details of this usage.
7578 -- In the case of aspects of the form xxx'Class, the aspect identifier
7579 -- is for xxx, and Class_Present is set to True.
7581 -- Note: When a Pre or Post aspect specification is processed, it is
7582 -- broken into AND THEN sections. The left most section has Split_PPC
7583 -- set to False, indicating that it is the original specification (e.g.
7584 -- for posting errors). For the other sections, Split_PPC is set True.
7586 ---------------------------------------------
7587 -- 13.4 Enumeration representation clause --
7588 ---------------------------------------------
7590 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7591 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7593 -- In Ada 83, the name must be a direct name
7595 -- N_Enumeration_Representation_Clause
7596 -- Sloc points to FOR
7597 -- Identifier (Node1) direct name
7598 -- Array_Aggregate (Node3)
7599 -- Next_Rep_Item (Node5-Sem)
7601 ---------------------------------
7602 -- 13.4 Enumeration aggregate --
7603 ---------------------------------
7605 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7607 ------------------------------------------
7608 -- 13.5.1 Record representation clause --
7609 ------------------------------------------
7611 -- RECORD_REPRESENTATION_CLAUSE ::=
7612 -- for first_subtype_LOCAL_NAME use
7613 -- record [MOD_CLAUSE]
7614 -- {COMPONENT_CLAUSE}
7615 -- end record;
7617 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7618 -- replaced by a corresponding Alignment attribute definition clause).
7620 -- Note: Component_Clauses can include pragmas
7622 -- N_Record_Representation_Clause
7623 -- Sloc points to FOR
7624 -- Identifier (Node1) direct name
7625 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7626 -- Component_Clauses (List3)
7627 -- Next_Rep_Item (Node5-Sem)
7629 ------------------------------
7630 -- 13.5.1 Component clause --
7631 ------------------------------
7633 -- COMPONENT_CLAUSE ::=
7634 -- component_LOCAL_NAME at POSITION
7635 -- range FIRST_BIT .. LAST_BIT;
7637 -- N_Component_Clause
7638 -- Sloc points to AT
7639 -- Component_Name (Node1) points to Name or Attribute_Reference
7640 -- Position (Node2)
7641 -- First_Bit (Node3)
7642 -- Last_Bit (Node4)
7644 ----------------------
7645 -- 13.5.1 Position --
7646 ----------------------
7648 -- POSITION ::= static_EXPRESSION
7650 -----------------------
7651 -- 13.5.1 First_Bit --
7652 -----------------------
7654 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7656 ----------------------
7657 -- 13.5.1 Last_Bit --
7658 ----------------------
7660 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7662 --------------------------
7663 -- 13.8 Code statement --
7664 --------------------------
7666 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7668 -- Note: in GNAT, the qualified expression has the form
7670 -- Asm_Insn'(Asm (...));
7672 -- See package System.Machine_Code in file s-maccod.ads for details on
7673 -- the allowed parameters to Asm. There are two ways this node can
7674 -- arise, as a code statement, in which case the expression is the
7675 -- qualified expression, or as a result of the expansion of an intrinsic
7676 -- call to the Asm or Asm_Input procedure.
7678 -- N_Code_Statement
7679 -- Sloc points to first token of the expression
7680 -- Expression (Node3)
7682 -- Note: package Exp_Code contains an abstract functional interface
7683 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7685 ------------------------
7686 -- 13.12 Restriction --
7687 ------------------------
7689 -- RESTRICTION ::=
7690 -- restriction_IDENTIFIER
7691 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7693 -- There is no explicit node for restrictions. Instead the restriction
7694 -- appears in normal pragma syntax as a pragma argument association,
7695 -- which has the same syntactic form.
7697 --------------------------
7698 -- B.2 Shift Operators --
7699 --------------------------
7701 -- Calls to the intrinsic shift functions are converted to one of
7702 -- the following shift nodes, which have the form of normal binary
7703 -- operator names. Note that for a given shift operation, one node
7704 -- covers all possible types, as for normal operators.
7706 -- Note: it is perfectly permissible for the expander to generate
7707 -- shift operation nodes directly, in which case they will be analyzed
7708 -- and parsed in the usual manner.
7710 -- Sprint syntax: shift-function-name!(expr, count)
7712 -- Note: the Left_Opnd field holds the first argument (the value to
7713 -- be shifted). The Right_Opnd field holds the second argument (the
7714 -- shift count). The Chars field is the name of the intrinsic function.
7716 -- N_Op_Rotate_Left
7717 -- Sloc points to the function name
7718 -- plus fields for binary operator
7719 -- plus fields for expression
7720 -- Shift_Count_OK (Flag4-Sem)
7722 -- N_Op_Rotate_Right
7723 -- Sloc points to the function name
7724 -- plus fields for binary operator
7725 -- plus fields for expression
7726 -- Shift_Count_OK (Flag4-Sem)
7728 -- N_Op_Shift_Left
7729 -- Sloc points to the function name
7730 -- plus fields for binary operator
7731 -- plus fields for expression
7732 -- Shift_Count_OK (Flag4-Sem)
7734 -- N_Op_Shift_Right_Arithmetic
7735 -- Sloc points to the function name
7736 -- plus fields for binary operator
7737 -- plus fields for expression
7738 -- Shift_Count_OK (Flag4-Sem)
7740 -- N_Op_Shift_Right
7741 -- Sloc points to the function name
7742 -- plus fields for binary operator
7743 -- plus fields for expression
7744 -- Shift_Count_OK (Flag4-Sem)
7746 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7747 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7749 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7750 -- always less than the word size if Modify_Tree_For_C mode is set.
7752 --------------------------
7753 -- Obsolescent Features --
7754 --------------------------
7756 -- The syntax descriptions and tree nodes for obsolescent features are
7757 -- grouped together, corresponding to their location in appendix I in
7758 -- the RM. However, parsing and semantic analysis for these constructs
7759 -- is located in an appropriate chapter (see individual notes).
7761 ---------------------------
7762 -- J.3 Delta Constraint --
7763 ---------------------------
7765 -- Note: the parse routine for this construct is located in section
7766 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7767 -- where delta constraint logically belongs.
7769 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7771 -- N_Delta_Constraint
7772 -- Sloc points to DELTA
7773 -- Delta_Expression (Node3)
7774 -- Range_Constraint (Node4) (set to Empty if not present)
7776 --------------------
7777 -- J.7 At Clause --
7778 --------------------
7780 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7782 -- Note: the parse routine for this construct is located in Par-Ch13,
7783 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7784 -- belongs if it were not obsolescent.
7786 -- Note: in Ada 83 the expression must be a simple expression
7788 -- Gigi restriction: This node never appears, it is rewritten as an
7789 -- address attribute definition clause.
7791 -- N_At_Clause
7792 -- Sloc points to FOR
7793 -- Identifier (Node1)
7794 -- Expression (Node3)
7796 ---------------------
7797 -- J.8 Mod clause --
7798 ---------------------
7800 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7802 -- Note: the parse routine for this construct is located in Par-Ch13,
7803 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7804 -- belongs if it were not obsolescent.
7806 -- Note: in Ada 83, the expression must be a simple expression
7808 -- Gigi restriction: this node never appears. It is replaced
7809 -- by a corresponding Alignment attribute definition clause.
7811 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7812 -- its name has "clause" in it. This is rather strange, but is quite
7813 -- definitely specified. The pragmas before are collected in the
7814 -- Pragmas_Before field of the mod clause node itself, and pragmas
7815 -- after are simply swallowed up in the list of component clauses.
7817 -- N_Mod_Clause
7818 -- Sloc points to AT
7819 -- Expression (Node3)
7820 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7822 --------------------
7823 -- Semantic Nodes --
7824 --------------------
7826 -- These semantic nodes are used to hold additional semantic information.
7827 -- They are inserted into the tree as a result of semantic processing.
7828 -- Although there are no legitimate source syntax constructions that
7829 -- correspond directly to these nodes, we need a source syntax for the
7830 -- reconstructed tree printed by Sprint, and the node descriptions here
7831 -- show this syntax.
7833 -----------------
7834 -- Call_Marker --
7835 -----------------
7837 -- This node is created during the analysis/resolution of entry calls,
7838 -- requeues, and subprogram calls. It performs several functions:
7840 -- * Call markers provide a uniform model for handling calls by the
7841 -- ABE mechanism, regardless of whether expansion took place.
7843 -- * The call marker captures the target of the related call along
7844 -- with other attributes which are either unavailabe or expensive
7845 -- to recompute once analysis, resolution, and expansion are over.
7847 -- * The call marker aids the ABE Processing phase by signaling the
7848 -- presence of a call in case the original call was transformed by
7849 -- expansion.
7851 -- * The call marker acts as a reference point for the insertion of
7852 -- run-time conditional ABE checks or guaranteed ABE failures.
7854 -- Sprint syntax: #target#
7856 -- The Sprint syntax shown above is not enabled by default
7858 -- N_Call_Marker
7859 -- Sloc points to Sloc of original call
7860 -- Target (Node1-Sem)
7861 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7862 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7863 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7864 -- Is_Source_Call (Flag4-Sem)
7865 -- Is_Declaration_Level_Node (Flag5-Sem)
7866 -- Is_Dispatching_Call (Flag6-Sem)
7867 -- Is_Preelaborable_Call (Flag7-Sem)
7868 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7870 ------------------------
7871 -- Compound Statement --
7872 ------------------------
7874 -- This node is created by the analyzer/expander to handle some
7875 -- expansion cases where a sequence of actions needs to be captured
7876 -- within a single node (which acts as a container and allows the
7877 -- entire list of actions to be moved around as a whole) appearing
7878 -- in a sequence of statements.
7880 -- This is the statement counterpart to the expression node
7881 -- N_Expression_With_Actions.
7883 -- The required semantics is that the set of actions is executed in
7884 -- the order in which it appears, as though they appeared by themselves
7885 -- in the enclosing list of declarations or statements. Unlike what
7886 -- happens when using an N_Block_Statement, no new scope is introduced.
7888 -- Note: for the time being, this is used only as a transient
7889 -- representation during expansion, and all compound statement nodes
7890 -- must be exploded back to their constituent statements before handing
7891 -- the tree to the back end.
7893 -- Sprint syntax: do
7894 -- action;
7895 -- action;
7896 -- ...
7897 -- action;
7898 -- end;
7900 -- N_Compound_Statement
7901 -- Actions (List1)
7903 --------------
7904 -- Contract --
7905 --------------
7907 -- This node is used to hold the various parts of an entry, subprogram
7908 -- [body] or package [body] contract, in particular:
7909 -- Abstract states declared by a package declaration
7910 -- Contract cases that apply to a subprogram
7911 -- Dependency relations of inputs and output of a subprogram
7912 -- Global annotations classifying data as input or output
7913 -- Initialization sequences for a package declaration
7914 -- Pre- and postconditions that apply to a subprogram
7916 -- The node appears in an entry and [generic] subprogram [body] entity.
7918 -- Sprint syntax: <none> as the node should not appear in the tree, but
7919 -- only attached to an entry or [generic] subprogram
7920 -- entity.
7922 -- N_Contract
7923 -- Sloc points to the subprogram's name
7924 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7925 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7926 -- Classifications (Node3-Sem) (set to Empty if none)
7927 -- Is_Expanded_Contract (Flag1-Sem)
7929 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7930 -- to pre- and postconditions associated with an entry or a subprogram
7931 -- [body or stub]. The pragmas can either come from source or be the
7932 -- byproduct of aspect expansion. Currently the following pragmas appear
7933 -- in this list:
7934 -- Post
7935 -- Postcondition
7936 -- Pre
7937 -- Precondition
7938 -- Refined_Post
7939 -- The ordering in the list is in LIFO fashion.
7941 -- Note that there might be multiple preconditions or postconditions
7942 -- in this list, either because they come from separate pragmas in the
7943 -- source, or because a Pre (resp. Post) aspect specification has been
7944 -- broken into AND THEN sections. See Split_PPC for details.
7946 -- In GNATprove mode, the inherited classwide pre- and postconditions
7947 -- (suitably specialized for the specific type of the overriding
7948 -- operation) are also in this list.
7950 -- Contract_Test_Cases contains a collection of pragmas that correspond
7951 -- to aspects/pragmas Contract_Cases, Test_Case and Subprogram_Variant.
7952 -- The ordering in the list is in LIFO fashion.
7954 -- Classifications contains pragmas that either declare, categorize, or
7955 -- establish dependencies between subprogram or package inputs and
7956 -- outputs. Currently the following pragmas appear in this list:
7957 -- Abstract_States
7958 -- Async_Readers
7959 -- Async_Writers
7960 -- Constant_After_Elaboration
7961 -- Depends
7962 -- Effective_Reads
7963 -- Effective_Writes
7964 -- Extensions_Visible
7965 -- Global
7966 -- Initial_Condition
7967 -- Initializes
7968 -- Part_Of
7969 -- Refined_Depends
7970 -- Refined_Global
7971 -- Refined_States
7972 -- Volatile_Function
7973 -- The ordering is in LIFO fashion.
7975 -------------------
7976 -- Expanded Name --
7977 -------------------
7979 -- The N_Expanded_Name node is used to represent a selected component
7980 -- name that has been resolved to an expanded name. The semantic phase
7981 -- replaces N_Selected_Component nodes that represent names by the use
7982 -- of this node, leaving the N_Selected_Component node used only when
7983 -- the prefix is a record or protected type.
7985 -- The fields of the N_Expanded_Name node are laid out identically
7986 -- to those of the N_Selected_Component node, allowing conversion of
7987 -- an expanded name node to a selected component node to be done
7988 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7990 -- There is no special sprint syntax for an expanded name
7992 -- N_Expanded_Name
7993 -- Sloc points to the period
7994 -- Chars (Name1) copy of Chars field of selector name
7995 -- Prefix (Node3)
7996 -- Selector_Name (Node2)
7997 -- Entity (Node4-Sem)
7998 -- Associated_Node (Node4-Sem)
7999 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
8000 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
8001 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
8002 -- Has_Private_View (Flag11-Sem) set in generic units
8003 -- Redundant_Use (Flag13-Sem)
8004 -- Atomic_Sync_Required (Flag14-Sem)
8005 -- plus fields for expression
8007 -----------------------------
8008 -- Expression With Actions --
8009 -----------------------------
8011 -- This node is created by the analyzer/expander to handle some
8012 -- expansion cases, notably short-circuit forms where there are
8013 -- actions associated with the right-hand side operand.
8015 -- The N_Expression_With_Actions node represents an expression with
8016 -- an associated set of actions (which are executable statements and
8017 -- declarations, as might occur in a handled statement sequence).
8019 -- The required semantics is that the set of actions is executed in
8020 -- the order in which it appears just before the expression is
8021 -- evaluated (and these actions must only be executed if the value
8022 -- of the expression is evaluated). The node is considered to be
8023 -- a subexpression, whose value is the value of the Expression after
8024 -- executing all the actions.
8026 -- If the actions contain declarations, then these declarations may
8027 -- be referenced within the expression.
8029 -- (AI12-0236-1): In Ada 2020, for a declare_expression, the parser
8030 -- generates an N_Expression_With_Actions. Declare_expressions have
8031 -- various restrictions, which we do not enforce on
8032 -- N_Expression_With_Actions nodes that are generated by the
8033 -- expander. The two cases can be distinguished by looking at
8034 -- Comes_From_Source.
8036 -- ???Perhaps we should change the name of this node to
8037 -- N_Declare_Expression, and perhaps we should change the Sprint syntax
8038 -- to match the RM syntax for declare_expression.
8040 -- Sprint syntax: do
8041 -- action;
8042 -- action;
8043 -- ...
8044 -- action;
8045 -- in expression end
8047 -- N_Expression_With_Actions
8048 -- Actions (List1)
8049 -- Expression (Node3)
8050 -- plus fields for expression
8052 -- Note: In the final generated tree presented to the code generator,
8053 -- the actions list is always non-null, since there is no point in this
8054 -- node if the actions are Empty. During semantic analysis there are
8055 -- cases where it is convenient to temporarily generate an empty actions
8056 -- list. This arises in cases where we create such an empty actions
8057 -- list, and it may or may not end up being a place where additional
8058 -- actions are inserted. The expander removes such empty cases after
8059 -- the expression of the node is fully analyzed and expanded, at which
8060 -- point it is safe to remove it, since no more actions can be inserted.
8062 -- Note: In Modify_Tree_For_C, we never generate any declarations in
8063 -- the action list, which can contain only non-declarative statements.
8065 --------------------
8066 -- Free Statement --
8067 --------------------
8069 -- The N_Free_Statement node is generated as a result of a call to an
8070 -- instantiation of Unchecked_Deallocation. The instantiation of this
8071 -- generic is handled specially and generates this node directly.
8073 -- Sprint syntax: free expression
8075 -- N_Free_Statement
8076 -- Sloc is copied from the unchecked deallocation call
8077 -- Expression (Node3) argument to unchecked deallocation call
8078 -- Storage_Pool (Node1-Sem)
8079 -- Procedure_To_Call (Node2-Sem)
8080 -- Actual_Designated_Subtype (Node4-Sem)
8082 -- Note: in the case where a debug source file is generated, the Sloc
8083 -- for this node points to the FREE keyword in the Sprint file output.
8085 -------------------
8086 -- Freeze Entity --
8087 -------------------
8089 -- This node marks the point in a declarative part at which an entity
8090 -- declared therein becomes frozen. The expander places initialization
8091 -- procedures for types at those points. Gigi uses the freezing point
8092 -- to elaborate entities that may depend on previous private types.
8094 -- See the section in Einfo "Delayed Freezing and Elaboration" for
8095 -- a full description of the use of this node.
8097 -- The Entity field points back to the entity for the type (whose
8098 -- Freeze_Node field points back to this freeze node).
8100 -- The Actions field contains a list of declarations and statements
8101 -- generated by the expander which are associated with the freeze
8102 -- node, and are elaborated as though the freeze node were replaced
8103 -- by this sequence of actions.
8105 -- Note: the Sloc field in the freeze node references a construct
8106 -- associated with the freezing point. This is used for posting
8107 -- messages in some error/warning situations, e.g. the case where
8108 -- a primitive operation of a tagged type is declared too late.
8110 -- Sprint syntax: freeze entity-name [
8111 -- freeze actions
8112 -- ]
8114 -- N_Freeze_Entity
8115 -- Sloc points near freeze point (see above special note)
8116 -- Entity (Node4-Sem)
8117 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
8118 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
8119 -- Actions (List1) (set to No_List if no freeze actions)
8120 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
8122 -- The Actions field holds actions associated with the freeze. These
8123 -- actions are elaborated at the point where the type is frozen.
8125 -- Note: in the case where a debug source file is generated, the Sloc
8126 -- for this node points to the FREEZE keyword in the Sprint file output.
8128 ---------------------------
8129 -- Freeze Generic Entity --
8130 ---------------------------
8132 -- The freeze point of an entity indicates the point at which the
8133 -- information needed to generate code for the entity is complete.
8134 -- The freeze node for an entity triggers expander activities, such as
8135 -- build initialization procedures, and backend activities, such as
8136 -- completing the elaboration of packages.
8138 -- For entities declared within a generic unit, for which no code is
8139 -- generated, the freeze point is not equally meaningful. However, in
8140 -- Ada 2012 several semantic checks on declarations must be delayed to
8141 -- the freeze point, and we need to include such a mark in the tree to
8142 -- trigger these checks. The Freeze_Generic_Entity node plays no other
8143 -- role, and is ignored by the expander and the back-end.
8145 -- Sprint syntax: freeze_generic entity-name
8147 -- N_Freeze_Generic_Entity
8148 -- Sloc points near freeze point
8149 -- Entity (Node4-Sem)
8151 --------------------------------
8152 -- Implicit Label Declaration --
8153 --------------------------------
8155 -- An implicit label declaration is created for every occurrence of a
8156 -- label on a statement or a label on a block or loop. It is chained
8157 -- in the declarations of the innermost enclosing block as specified
8158 -- in RM section 5.1 (3).
8160 -- The Defining_Identifier is the actual identifier for the statement
8161 -- identifier. Note that the occurrence of the label is a reference, NOT
8162 -- the defining occurrence. The defining occurrence occurs at the head
8163 -- of the innermost enclosing block, and is represented by this node.
8165 -- Note: from the grammar, this might better be called an implicit
8166 -- statement identifier declaration, but the term we choose seems
8167 -- friendlier, since at least informally statement identifiers are
8168 -- called labels in both cases (i.e. when used in labels, and when
8169 -- used as the identifiers of blocks and loops).
8171 -- Note: although this is logically a semantic node, since it does not
8172 -- correspond directly to a source syntax construction, these nodes are
8173 -- actually created by the parser in a post pass done just after parsing
8174 -- is complete, before semantic analysis is started (see Par.Labl).
8176 -- Sprint syntax: labelname : label;
8178 -- N_Implicit_Label_Declaration
8179 -- Sloc points to the << token for a statement identifier, or to the
8180 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
8181 -- Defining_Identifier (Node1)
8182 -- Label_Construct (Node2-Sem)
8184 -- Note: in the case where a debug source file is generated, the Sloc
8185 -- for this node points to the label name in the generated declaration.
8187 ---------------------
8188 -- Itype Reference --
8189 ---------------------
8191 -- This node is used to create a reference to an Itype. The only purpose
8192 -- is to make sure the Itype is defined if this is the first reference.
8194 -- A typical use of this node is when an Itype is to be referenced in
8195 -- two branches of an IF statement. In this case it is important that
8196 -- the first use of the Itype not be inside the conditional, since then
8197 -- it might not be defined if the other branch of the IF is taken, in
8198 -- the case where the definition generates elaboration code.
8200 -- The Itype field points to the referenced Itype
8202 -- Sprint syntax: reference itype-name
8204 -- N_Itype_Reference
8205 -- Sloc points to the node generating the reference
8206 -- Itype (Node1-Sem)
8208 -- Note: in the case where a debug source file is generated, the Sloc
8209 -- for this node points to the REFERENCE keyword in the file output.
8211 ---------------------
8212 -- Raise xxx Error --
8213 ---------------------
8215 -- One of these nodes is created during semantic analysis to replace
8216 -- a node for an expression that is determined to definitely raise
8217 -- the corresponding exception.
8219 -- The N_Raise_xxx_Error node may also stand alone in place
8220 -- of a declaration or statement, in which case it simply causes
8221 -- the exception to be raised (i.e. it is equivalent to a raise
8222 -- statement that raises the corresponding exception). This use
8223 -- is distinguished by the fact that the Etype in this case is
8224 -- Standard_Void_Type; in the subexpression case, the Etype is the
8225 -- same as the type of the subexpression which it replaces.
8227 -- If Condition is empty, then the raise is unconditional. If the
8228 -- Condition field is non-empty, it is a boolean expression which is
8229 -- first evaluated, and the exception is raised only if the value of the
8230 -- expression is True. In the unconditional case, the creation of this
8231 -- node is usually accompanied by a warning message (unless it appears
8232 -- within the right operand of a short-circuit form whose left argument
8233 -- is static and decisively eliminates elaboration of the raise
8234 -- operation). The condition field can ONLY be present when the node is
8235 -- used as a statement form; it must NOT be present in the case where
8236 -- the node appears within an expression.
8238 -- The exception is generated with a message that contains the
8239 -- file name and line number, and then appended text. The Reason
8240 -- code shows the text to be added. The Reason code is an element
8241 -- of the type Types.RT_Exception_Code, and indicates both the
8242 -- message to be added, and the exception to be raised (which must
8243 -- match the node type). The value is stored by storing a Uint which
8244 -- is the Pos value of the enumeration element in this type.
8246 -- Gigi restriction: This expander ensures that the type of the
8247 -- Condition field is always Standard.Boolean, even if the type
8248 -- in the source is some non-standard boolean type.
8250 -- Sprint syntax: [xxx_error "msg"]
8251 -- or: [xxx_error when condition "msg"]
8253 -- N_Raise_Constraint_Error
8254 -- Sloc references related construct
8255 -- Condition (Node1) (set to Empty if no condition)
8256 -- Reason (Uint3)
8257 -- plus fields for expression
8259 -- N_Raise_Program_Error
8260 -- Sloc references related construct
8261 -- Condition (Node1) (set to Empty if no condition)
8262 -- Reason (Uint3)
8263 -- plus fields for expression
8265 -- N_Raise_Storage_Error
8266 -- Sloc references related construct
8267 -- Condition (Node1) (set to Empty if no condition)
8268 -- Reason (Uint3)
8269 -- plus fields for expression
8271 -- Note: Sloc is copied from the expression generating the exception.
8272 -- In the case where a debug source file is generated, the Sloc for
8273 -- this node points to the left bracket in the Sprint file output.
8275 -- Note: the back end may be required to translate these nodes into
8276 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8278 ---------------------------------------------
8279 -- Optimization of Exception Raise to Goto --
8280 ---------------------------------------------
8282 -- In some cases, the front end will determine that any exception raised
8283 -- by the back end for a certain exception should be transformed into a
8284 -- goto statement.
8286 -- There are three kinds of exceptions raised by the back end (note that
8287 -- for this purpose we consider gigi to be part of the back end in the
8288 -- gcc case):
8290 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8291 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8292 -- 3. Other cases not specifically marked by the front end
8294 -- Normally all such exceptions are translated into calls to the proper
8295 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8296 -- and the exception message.
8298 -- The front end may determine that for a particular sequence of code,
8299 -- exceptions in any of these three categories for a particular builtin
8300 -- exception should result in a goto, rather than a call to Rcheck_xx.
8301 -- The exact sequence to be generated is:
8303 -- Local_Raise (exception'Identity);
8304 -- goto Label
8306 -- The front end marks such a sequence of code by bracketing it with
8307 -- push and pop nodes:
8309 -- N_Push_xxx_Label (referencing the label)
8310 -- ...
8311 -- (code where transformation is expected for exception xxx)
8312 -- ...
8313 -- N_Pop_xxx_Label
8315 -- The use of push/pop reflects the fact that such regions can properly
8316 -- nest, and one special case is a subregion in which no transformation
8317 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8318 -- Exception_Label field is Empty.
8320 -- N_Push_Constraint_Error_Label
8321 -- Sloc references first statement in region covered
8322 -- Exception_Label (Node5-Sem)
8324 -- N_Push_Program_Error_Label
8325 -- Sloc references first statement in region covered
8326 -- Exception_Label (Node5-Sem)
8328 -- N_Push_Storage_Error_Label
8329 -- Sloc references first statement in region covered
8330 -- Exception_Label (Node5-Sem)
8332 -- N_Pop_Constraint_Error_Label
8333 -- Sloc references last statement in region covered
8335 -- N_Pop_Program_Error_Label
8336 -- Sloc references last statement in region covered
8338 -- N_Pop_Storage_Error_Label
8339 -- Sloc references last statement in region covered
8341 ---------------
8342 -- Reference --
8343 ---------------
8345 -- For a number of purposes, we need to construct references to objects.
8346 -- These references are subsequently treated as normal access values.
8347 -- An example is the construction of the parameter block passed to a
8348 -- task entry. The N_Reference node is provided for this purpose. It is
8349 -- similar in effect to the use of the Unrestricted_Access attribute,
8350 -- and like Unrestricted_Access can be applied to objects which would
8351 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8352 -- objects which are not aliased, and slices). In addition it can be
8353 -- applied to composite type values as well as objects, including string
8354 -- values and aggregates.
8356 -- Note: we use the Prefix field for this expression so that the
8357 -- resulting node can be treated using common code with the attribute
8358 -- nodes for the 'Access and related attributes. Logically it would make
8359 -- more sense to call it an Expression field, but then we would have to
8360 -- special case the treatment of the N_Reference node.
8362 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8363 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8364 -- a temporary initialized to a N_Reference node in order to eliminate
8365 -- superfluous access checks.
8367 -- Sprint syntax: prefix'reference
8369 -- N_Reference
8370 -- Sloc is copied from the expression
8371 -- Prefix (Node3)
8372 -- plus fields for expression
8374 -- Note: in the case where a debug source file is generated, the Sloc
8375 -- for this node points to the quote in the Sprint file output.
8377 ----------------
8378 -- SCIL Nodes --
8379 ----------------
8381 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8382 -- is active. They are only generated if SCIL generation is enabled.
8383 -- A standard tree-walk will not encounter these nodes even if they
8384 -- are present; these nodes are only accessible via the function
8385 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8386 -- semantics.
8388 -- Sprint syntax: [ <node kind> ]
8389 -- No semantic field values are displayed.
8391 -- N_SCIL_Dispatch_Table_Tag_Init
8392 -- Sloc references a node for a tag initialization
8393 -- SCIL_Entity (Node4-Sem)
8395 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8396 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8397 -- the declaration of the dispatch table for a tagged type.
8399 -- N_SCIL_Dispatching_Call
8400 -- Sloc references the node of a dispatching call
8401 -- SCIL_Target_Prim (Node2-Sem)
8402 -- SCIL_Entity (Node4-Sem)
8403 -- SCIL_Controlling_Tag (Node5-Sem)
8405 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8406 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8407 -- rewriting thereof) corresponding to a dispatching call.
8409 -- N_SCIL_Membership_Test
8410 -- Sloc references the node of a membership test
8411 -- SCIL_Tag_Value (Node5-Sem)
8412 -- SCIL_Entity (Node4-Sem)
8414 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8415 -- with the N_In node (or a rewriting thereof) corresponding to a
8416 -- classwide membership test.
8418 --------------------------
8419 -- Unchecked Expression --
8420 --------------------------
8422 -- An unchecked expression is one that must be analyzed and resolved
8423 -- with all checks off, regardless of the current setting of scope
8424 -- suppress flags.
8426 -- Sprint syntax: `(expression)
8428 -- Note: this node is always removed from the tree (and replaced by
8429 -- its constituent expression) on completion of analysis, so it only
8430 -- appears in intermediate trees, and will never be seen by Gigi.
8432 -- N_Unchecked_Expression
8433 -- Sloc is a copy of the Sloc of the expression
8434 -- Expression (Node3)
8435 -- plus fields for expression
8437 -- Note: in the case where a debug source file is generated, the Sloc
8438 -- for this node points to the back quote in the Sprint file output.
8440 -------------------------------
8441 -- Unchecked Type Conversion --
8442 -------------------------------
8444 -- An unchecked type conversion node represents the semantic action
8445 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8446 -- It is generated as a result of actual use of Unchecked_Conversion
8447 -- and also the expander generates unchecked type conversion nodes
8448 -- directly for expansion of complex semantic actions.
8450 -- Note: an unchecked type conversion is a variable as far as the
8451 -- semantics are concerned, which is convenient for the expander.
8452 -- This does not change what Ada source programs are legal, since
8453 -- clearly a function call to an instantiation of Unchecked_Conversion
8454 -- is not a variable in any case.
8456 -- Sprint syntax: subtype-mark!(expression)
8458 -- N_Unchecked_Type_Conversion
8459 -- Sloc points to related node in source
8460 -- Subtype_Mark (Node4)
8461 -- Expression (Node3)
8462 -- Kill_Range_Check (Flag11-Sem)
8463 -- No_Truncation (Flag17-Sem)
8464 -- plus fields for expression
8466 -- Note: in the case where a debug source file is generated, the Sloc
8467 -- for this node points to the exclamation in the Sprint file output.
8469 -----------------------------------
8470 -- Validate_Unchecked_Conversion --
8471 -----------------------------------
8473 -- The front end does most of the validation of unchecked conversion,
8474 -- including checking sizes (this is done after the back end is called
8475 -- to take advantage of back-annotation of calculated sizes).
8477 -- The front end also deals with specific cases that are not allowed
8478 -- e.g. involving unconstrained array types.
8480 -- For the case of the standard gigi backend, this means that all
8481 -- checks are done in the front end.
8483 -- However, in the case of specialized back-ends, in particular the JVM
8484 -- backend in the past, additional requirements and restrictions may
8485 -- apply to unchecked conversion, and these are most conveniently
8486 -- performed in the specialized back-end.
8488 -- To accommodate this requirement, for such back ends, the following
8489 -- special node is generated recording an unchecked conversion that
8490 -- needs to be validated. The back end should post an appropriate
8491 -- error message if the unchecked conversion is invalid or warrants
8492 -- a special warning message.
8494 -- Source_Type and Target_Type point to the entities for the two
8495 -- types involved in the unchecked conversion instantiation that
8496 -- is to be validated.
8498 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8500 -- N_Validate_Unchecked_Conversion
8501 -- Sloc points to instantiation (location for warning message)
8502 -- Source_Type (Node1-Sem)
8503 -- Target_Type (Node2-Sem)
8505 -- Note: in the case where a debug source file is generated, the Sloc
8506 -- for this node points to the VALIDATE keyword in the file output.
8508 -------------------------------
8509 -- Variable_Reference_Marker --
8510 -------------------------------
8512 -- This node is created during the analysis of direct or expanded names,
8513 -- and the resolution of entry and subprogram calls. It performs several
8514 -- functions:
8516 -- * Variable reference markers provide a uniform model for handling
8517 -- variable references by the ABE mechanism, regardless of whether
8518 -- expansion took place.
8520 -- * The variable reference marker captures the entity of the variable
8521 -- being read or written.
8523 -- * The variable reference markers aid the ABE Processing phase by
8524 -- signaling the presence of a call in case the original variable
8525 -- reference was transformed by expansion.
8527 -- Sprint syntax: r#target# -- for a read
8528 -- rw#target# -- for a read/write
8529 -- w#target# -- for a write
8531 -- The Sprint syntax shown above is not enabled by default
8533 -- N_Variable_Reference_Marker
8534 -- Sloc points to Sloc of original variable reference
8535 -- Target (Node1-Sem)
8536 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
8537 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
8538 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
8539 -- Is_Read (Flag4-Sem)
8540 -- Is_Write (Flag5-Sem)
8542 -----------
8543 -- Empty --
8544 -----------
8546 -- Used as the contents of the Nkind field of the dummy Empty node and in
8547 -- some other situations to indicate an uninitialized value.
8549 -- N_Empty
8550 -- Chars (Name1) is set to No_Name
8552 -----------
8553 -- Error --
8554 -----------
8556 -- Used as the contents of the Nkind field of the dummy Error node.
8557 -- Has an Etype field, which gets set to Any_Type later on, to help
8558 -- error recovery (Error_Posted is also set in the Error node).
8560 -- N_Error
8561 -- Chars (Name1) is set to Error_Name
8562 -- Etype (Node5-Sem)
8564 --------------------------
8565 -- Node Type Definition --
8566 --------------------------
8568 -- The following is the definition of the Node_Kind type. As previously
8569 -- discussed, this is separated off to allow rearrangement of the order to
8570 -- facilitate definition of subtype ranges. The comments show the subtype
8571 -- classes which apply to each set of node kinds. The first entry in the
8572 -- comment characterizes the following list of nodes.
8574 type Node_Kind is (
8575 N_Unused_At_Start,
8577 -- N_Representation_Clause
8579 N_At_Clause,
8580 N_Component_Clause,
8581 N_Enumeration_Representation_Clause,
8582 N_Mod_Clause,
8583 N_Record_Representation_Clause,
8585 -- N_Representation_Clause, N_Has_Chars
8587 N_Attribute_Definition_Clause,
8589 -- N_Has_Chars
8591 N_Empty,
8592 N_Pragma_Argument_Association,
8594 -- N_Has_Etype, N_Has_Chars
8596 -- Note: of course N_Error does not really have Etype or Chars fields,
8597 -- and any attempt to access these fields in N_Error will cause an
8598 -- error, but historically this always has been positioned so that an
8599 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8600 -- Most likely this makes coding easier somewhere but still seems
8601 -- undesirable. To be investigated some time ???
8603 N_Error,
8605 -- N_Entity, N_Has_Etype, N_Has_Chars
8607 N_Defining_Character_Literal,
8608 N_Defining_Identifier,
8609 N_Defining_Operator_Symbol,
8611 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8613 N_Expanded_Name,
8615 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8616 -- N_Has_Chars, N_Has_Entity
8618 N_Identifier,
8619 N_Operator_Symbol,
8621 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8622 -- N_Has_Chars, N_Has_Entity
8624 N_Character_Literal,
8626 -- N_Binary_Op, N_Op, N_Subexpr,
8627 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8629 N_Op_Add,
8630 N_Op_Concat,
8631 N_Op_Expon,
8632 N_Op_Subtract,
8634 -- N_Binary_Op, N_Op, N_Subexpr,
8635 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8637 N_Op_Divide,
8638 N_Op_Mod,
8639 N_Op_Multiply,
8640 N_Op_Rem,
8642 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8643 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8645 N_Op_And,
8647 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8648 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8650 N_Op_Eq,
8651 N_Op_Ge,
8652 N_Op_Gt,
8653 N_Op_Le,
8654 N_Op_Lt,
8655 N_Op_Ne,
8657 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8658 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8660 N_Op_Or,
8661 N_Op_Xor,
8663 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8664 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8666 N_Op_Rotate_Left,
8667 N_Op_Rotate_Right,
8668 N_Op_Shift_Left,
8669 N_Op_Shift_Right,
8670 N_Op_Shift_Right_Arithmetic,
8672 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8673 -- N_Has_Chars, N_Has_Entity
8675 N_Op_Abs,
8676 N_Op_Minus,
8677 N_Op_Not,
8678 N_Op_Plus,
8680 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8682 N_Attribute_Reference,
8684 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8686 N_In,
8687 N_Not_In,
8689 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8691 N_And_Then,
8692 N_Or_Else,
8694 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8696 N_Function_Call,
8697 N_Procedure_Call_Statement,
8699 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8701 N_Raise_Constraint_Error,
8702 N_Raise_Program_Error,
8703 N_Raise_Storage_Error,
8705 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8707 N_Integer_Literal,
8708 N_Real_Literal,
8709 N_String_Literal,
8711 -- N_Subexpr, N_Has_Etype
8713 N_Explicit_Dereference,
8714 N_Expression_With_Actions,
8715 N_If_Expression,
8716 N_Indexed_Component,
8717 N_Null,
8718 N_Qualified_Expression,
8719 N_Quantified_Expression,
8720 N_Aggregate,
8721 N_Allocator,
8722 N_Case_Expression,
8723 N_Delta_Aggregate,
8724 N_Extension_Aggregate,
8725 N_Raise_Expression,
8726 N_Range,
8727 N_Reference,
8728 N_Selected_Component,
8729 N_Slice,
8730 N_Target_Name,
8731 N_Type_Conversion,
8732 N_Unchecked_Expression,
8733 N_Unchecked_Type_Conversion,
8735 -- N_Has_Etype
8737 N_Subtype_Indication,
8739 -- N_Declaration
8741 N_Component_Declaration,
8742 N_Entry_Declaration,
8743 N_Expression_Function,
8744 N_Formal_Object_Declaration,
8745 N_Formal_Type_Declaration,
8746 N_Full_Type_Declaration,
8747 N_Incomplete_Type_Declaration,
8748 N_Iterator_Specification,
8749 N_Loop_Parameter_Specification,
8750 N_Object_Declaration,
8751 N_Protected_Type_Declaration,
8752 N_Private_Extension_Declaration,
8753 N_Private_Type_Declaration,
8754 N_Subtype_Declaration,
8756 -- N_Subprogram_Specification, N_Declaration
8758 N_Function_Specification,
8759 N_Procedure_Specification,
8761 -- N_Access_To_Subprogram_Definition
8763 N_Access_Function_Definition,
8764 N_Access_Procedure_Definition,
8766 -- N_Later_Decl_Item
8768 N_Task_Type_Declaration,
8770 -- N_Body_Stub, N_Later_Decl_Item
8772 N_Package_Body_Stub,
8773 N_Protected_Body_Stub,
8774 N_Subprogram_Body_Stub,
8775 N_Task_Body_Stub,
8777 -- N_Generic_Instantiation, N_Later_Decl_Item
8778 -- N_Subprogram_Instantiation
8780 N_Function_Instantiation,
8781 N_Procedure_Instantiation,
8783 -- N_Generic_Instantiation, N_Later_Decl_Item
8785 N_Package_Instantiation,
8787 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8789 N_Package_Body,
8790 N_Subprogram_Body,
8792 -- N_Later_Decl_Item, N_Proper_Body
8794 N_Protected_Body,
8795 N_Task_Body,
8797 -- N_Later_Decl_Item
8799 N_Implicit_Label_Declaration,
8800 N_Package_Declaration,
8801 N_Single_Task_Declaration,
8802 N_Subprogram_Declaration,
8803 N_Use_Package_Clause,
8805 -- N_Generic_Declaration, N_Later_Decl_Item
8807 N_Generic_Package_Declaration,
8808 N_Generic_Subprogram_Declaration,
8810 -- N_Array_Type_Definition
8812 N_Constrained_Array_Definition,
8813 N_Unconstrained_Array_Definition,
8815 -- N_Renaming_Declaration
8817 N_Exception_Renaming_Declaration,
8818 N_Object_Renaming_Declaration,
8819 N_Package_Renaming_Declaration,
8820 N_Subprogram_Renaming_Declaration,
8822 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8824 N_Generic_Function_Renaming_Declaration,
8825 N_Generic_Package_Renaming_Declaration,
8826 N_Generic_Procedure_Renaming_Declaration,
8828 -- N_Statement_Other_Than_Procedure_Call
8830 N_Abort_Statement,
8831 N_Accept_Statement,
8832 N_Assignment_Statement,
8833 N_Asynchronous_Select,
8834 N_Block_Statement,
8835 N_Case_Statement,
8836 N_Code_Statement,
8837 N_Compound_Statement,
8838 N_Conditional_Entry_Call,
8840 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8842 N_Delay_Relative_Statement,
8843 N_Delay_Until_Statement,
8845 -- N_Statement_Other_Than_Procedure_Call
8847 N_Entry_Call_Statement,
8848 N_Free_Statement,
8849 N_Goto_Statement,
8850 N_Loop_Statement,
8851 N_Null_Statement,
8852 N_Raise_Statement,
8853 N_Requeue_Statement,
8854 N_Simple_Return_Statement,
8855 N_Extended_Return_Statement,
8856 N_Selective_Accept,
8857 N_Timed_Entry_Call,
8859 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8861 N_Exit_Statement,
8862 N_If_Statement,
8864 -- N_Has_Condition
8866 N_Accept_Alternative,
8867 N_Delay_Alternative,
8868 N_Elsif_Part,
8869 N_Entry_Body_Formal_Part,
8870 N_Iteration_Scheme,
8871 N_Terminate_Alternative,
8873 -- N_Formal_Subprogram_Declaration
8875 N_Formal_Abstract_Subprogram_Declaration,
8876 N_Formal_Concrete_Subprogram_Declaration,
8878 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8880 N_Push_Constraint_Error_Label,
8881 N_Push_Program_Error_Label,
8882 N_Push_Storage_Error_Label,
8884 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8886 N_Pop_Constraint_Error_Label,
8887 N_Pop_Program_Error_Label,
8888 N_Pop_Storage_Error_Label,
8890 -- SCIL nodes
8892 N_SCIL_Dispatch_Table_Tag_Init,
8893 N_SCIL_Dispatching_Call,
8894 N_SCIL_Membership_Test,
8896 -- Other nodes (not part of any subtype class)
8898 N_Abortable_Part,
8899 N_Abstract_Subprogram_Declaration,
8900 N_Access_Definition,
8901 N_Access_To_Object_Definition,
8902 N_Aspect_Specification,
8903 N_Call_Marker,
8904 N_Case_Expression_Alternative,
8905 N_Case_Statement_Alternative,
8906 N_Compilation_Unit,
8907 N_Compilation_Unit_Aux,
8908 N_Component_Association,
8909 N_Component_Definition,
8910 N_Component_List,
8911 N_Contract,
8912 N_Derived_Type_Definition,
8913 N_Decimal_Fixed_Point_Definition,
8914 N_Defining_Program_Unit_Name,
8915 N_Delta_Constraint,
8916 N_Designator,
8917 N_Digits_Constraint,
8918 N_Discriminant_Association,
8919 N_Discriminant_Specification,
8920 N_Enumeration_Type_Definition,
8921 N_Entry_Body,
8922 N_Entry_Call_Alternative,
8923 N_Entry_Index_Specification,
8924 N_Exception_Declaration,
8925 N_Exception_Handler,
8926 N_Floating_Point_Definition,
8927 N_Formal_Decimal_Fixed_Point_Definition,
8928 N_Formal_Derived_Type_Definition,
8929 N_Formal_Discrete_Type_Definition,
8930 N_Formal_Floating_Point_Definition,
8931 N_Formal_Modular_Type_Definition,
8932 N_Formal_Ordinary_Fixed_Point_Definition,
8933 N_Formal_Package_Declaration,
8934 N_Formal_Private_Type_Definition,
8935 N_Formal_Incomplete_Type_Definition,
8936 N_Formal_Signed_Integer_Type_Definition,
8937 N_Freeze_Entity,
8938 N_Freeze_Generic_Entity,
8939 N_Generic_Association,
8940 N_Handled_Sequence_Of_Statements,
8941 N_Index_Or_Discriminant_Constraint,
8942 N_Iterated_Component_Association,
8943 N_Iterated_Element_Association,
8944 N_Itype_Reference,
8945 N_Label,
8946 N_Modular_Type_Definition,
8947 N_Number_Declaration,
8948 N_Ordinary_Fixed_Point_Definition,
8949 N_Others_Choice,
8950 N_Package_Specification,
8951 N_Parameter_Association,
8952 N_Parameter_Specification,
8953 N_Pragma,
8954 N_Protected_Definition,
8955 N_Range_Constraint,
8956 N_Real_Range_Specification,
8957 N_Record_Definition,
8958 N_Signed_Integer_Type_Definition,
8959 N_Single_Protected_Declaration,
8960 N_Subunit,
8961 N_Task_Definition,
8962 N_Triggering_Alternative,
8963 N_Use_Type_Clause,
8964 N_Validate_Unchecked_Conversion,
8965 N_Variable_Reference_Marker,
8966 N_Variant,
8967 N_Variant_Part,
8968 N_With_Clause,
8969 N_Unused_At_End);
8971 for Node_Kind'Size use 8;
8972 -- The data structures in Atree assume this
8974 ----------------------------
8975 -- Node Class Definitions --
8976 ----------------------------
8978 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8979 N_Access_Function_Definition ..
8980 N_Access_Procedure_Definition;
8982 subtype N_Array_Type_Definition is Node_Kind range
8983 N_Constrained_Array_Definition ..
8984 N_Unconstrained_Array_Definition;
8986 subtype N_Binary_Op is Node_Kind range
8987 N_Op_Add ..
8988 N_Op_Shift_Right_Arithmetic;
8990 subtype N_Body_Stub is Node_Kind range
8991 N_Package_Body_Stub ..
8992 N_Task_Body_Stub;
8994 subtype N_Declaration is Node_Kind range
8995 N_Component_Declaration ..
8996 N_Procedure_Specification;
8997 -- Note: this includes all constructs normally thought of as declarations
8998 -- except those which are separately grouped as later declarations.
9000 subtype N_Delay_Statement is Node_Kind range
9001 N_Delay_Relative_Statement ..
9002 N_Delay_Until_Statement;
9004 subtype N_Direct_Name is Node_Kind range
9005 N_Identifier ..
9006 N_Character_Literal;
9008 subtype N_Entity is Node_Kind range
9009 N_Defining_Character_Literal ..
9010 N_Defining_Operator_Symbol;
9012 subtype N_Formal_Subprogram_Declaration is Node_Kind range
9013 N_Formal_Abstract_Subprogram_Declaration ..
9014 N_Formal_Concrete_Subprogram_Declaration;
9016 subtype N_Generic_Declaration is Node_Kind range
9017 N_Generic_Package_Declaration ..
9018 N_Generic_Subprogram_Declaration;
9020 subtype N_Generic_Instantiation is Node_Kind range
9021 N_Function_Instantiation ..
9022 N_Package_Instantiation;
9024 subtype N_Generic_Renaming_Declaration is Node_Kind range
9025 N_Generic_Function_Renaming_Declaration ..
9026 N_Generic_Procedure_Renaming_Declaration;
9028 subtype N_Has_Chars is Node_Kind range
9029 N_Attribute_Definition_Clause ..
9030 N_Op_Plus;
9032 subtype N_Has_Entity is Node_Kind range
9033 N_Expanded_Name ..
9034 N_Attribute_Reference;
9035 -- Nodes that have Entity fields
9036 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
9037 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
9039 subtype N_Has_Etype is Node_Kind range
9040 N_Error ..
9041 N_Subtype_Indication;
9043 subtype N_Multiplying_Operator is Node_Kind range
9044 N_Op_Divide ..
9045 N_Op_Rem;
9047 subtype N_Later_Decl_Item is Node_Kind range
9048 N_Task_Type_Declaration ..
9049 N_Generic_Subprogram_Declaration;
9050 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
9051 -- only those items which can appear as later declarative items. This also
9052 -- includes N_Implicit_Label_Declaration which is not specifically in the
9053 -- grammar but may appear as a valid later declarative items. It does NOT
9054 -- include N_Pragma which can also appear among later declarative items.
9055 -- It does however include N_Protected_Body, which is a bit peculiar, but
9056 -- harmless since this cannot appear in Ada 83 mode anyway.
9058 subtype N_Membership_Test is Node_Kind range
9059 N_In ..
9060 N_Not_In;
9062 subtype N_Numeric_Or_String_Literal is Node_Kind range
9063 N_Integer_Literal ..
9064 N_String_Literal;
9066 subtype N_Op is Node_Kind range
9067 N_Op_Add ..
9068 N_Op_Plus;
9070 subtype N_Op_Boolean is Node_Kind range
9071 N_Op_And ..
9072 N_Op_Xor;
9073 -- Binary operators which take operands of a boolean type, and yield
9074 -- a result of a boolean type.
9076 subtype N_Op_Compare is Node_Kind range
9077 N_Op_Eq ..
9078 N_Op_Ne;
9080 subtype N_Op_Shift is Node_Kind range
9081 N_Op_Rotate_Left ..
9082 N_Op_Shift_Right_Arithmetic;
9084 subtype N_Proper_Body is Node_Kind range
9085 N_Package_Body ..
9086 N_Task_Body;
9088 subtype N_Push_xxx_Label is Node_Kind range
9089 N_Push_Constraint_Error_Label ..
9090 N_Push_Storage_Error_Label;
9092 subtype N_Pop_xxx_Label is Node_Kind range
9093 N_Pop_Constraint_Error_Label ..
9094 N_Pop_Storage_Error_Label;
9096 subtype N_Push_Pop_xxx_Label is Node_Kind range
9097 N_Push_Constraint_Error_Label ..
9098 N_Pop_Storage_Error_Label;
9100 subtype N_Raise_xxx_Error is Node_Kind range
9101 N_Raise_Constraint_Error ..
9102 N_Raise_Storage_Error;
9104 subtype N_Renaming_Declaration is Node_Kind range
9105 N_Exception_Renaming_Declaration ..
9106 N_Generic_Procedure_Renaming_Declaration;
9108 subtype N_Representation_Clause is Node_Kind range
9109 N_At_Clause ..
9110 N_Attribute_Definition_Clause;
9112 subtype N_Short_Circuit is Node_Kind range
9113 N_And_Then ..
9114 N_Or_Else;
9116 subtype N_SCIL_Node is Node_Kind range
9117 N_SCIL_Dispatch_Table_Tag_Init ..
9118 N_SCIL_Membership_Test;
9120 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
9121 N_Abort_Statement ..
9122 N_If_Statement;
9123 -- Note that this includes all statement types except for the cases of the
9124 -- N_Procedure_Call_Statement which is considered to be a subexpression
9125 -- (since overloading is possible, so it needs to go through the normal
9126 -- overloading resolution for expressions).
9128 subtype N_Subprogram_Call is Node_Kind range
9129 N_Function_Call ..
9130 N_Procedure_Call_Statement;
9132 subtype N_Subprogram_Instantiation is Node_Kind range
9133 N_Function_Instantiation ..
9134 N_Procedure_Instantiation;
9136 subtype N_Has_Condition is Node_Kind range
9137 N_Exit_Statement ..
9138 N_Terminate_Alternative;
9139 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
9141 subtype N_Subexpr is Node_Kind range
9142 N_Expanded_Name ..
9143 N_Unchecked_Type_Conversion;
9144 -- Nodes with expression fields
9146 subtype N_Subprogram_Specification is Node_Kind range
9147 N_Function_Specification ..
9148 N_Procedure_Specification;
9150 subtype N_Unary_Op is Node_Kind range
9151 N_Op_Abs ..
9152 N_Op_Plus;
9154 subtype N_Unit_Body is Node_Kind range
9155 N_Package_Body ..
9156 N_Subprogram_Body;
9158 ---------------------------
9159 -- Node Access Functions --
9160 ---------------------------
9162 -- The following functions return the contents of the indicated field of
9163 -- the node referenced by the argument, which is a Node_Id. They provide
9164 -- logical access to fields in the node which could be accessed using the
9165 -- Atree.Unchecked_Access package, but the idea is always to use these
9166 -- higher level routines which preserve strong typing. In debug mode,
9167 -- these routines check that they are being applied to an appropriate
9168 -- node, as well as checking that the node is in range.
9170 function Abort_Present
9171 (N : Node_Id) return Boolean; -- Flag15
9173 function Abortable_Part
9174 (N : Node_Id) return Node_Id; -- Node2
9176 function Abstract_Present
9177 (N : Node_Id) return Boolean; -- Flag4
9179 function Accept_Handler_Records
9180 (N : Node_Id) return List_Id; -- List5
9182 function Accept_Statement
9183 (N : Node_Id) return Node_Id; -- Node2
9185 function Access_Definition
9186 (N : Node_Id) return Node_Id; -- Node3
9188 function Access_To_Subprogram_Definition
9189 (N : Node_Id) return Node_Id; -- Node3
9191 function Access_Types_To_Process
9192 (N : Node_Id) return Elist_Id; -- Elist2
9194 function Actions
9195 (N : Node_Id) return List_Id; -- List1
9197 function Activation_Chain_Entity
9198 (N : Node_Id) return Node_Id; -- Node3
9200 function Acts_As_Spec
9201 (N : Node_Id) return Boolean; -- Flag4
9203 function Actual_Designated_Subtype
9204 (N : Node_Id) return Node_Id; -- Node4
9206 function Address_Warning_Posted
9207 (N : Node_Id) return Boolean; -- Flag18
9209 function Aggregate_Bounds
9210 (N : Node_Id) return Node_Id; -- Node3
9212 function Aliased_Present
9213 (N : Node_Id) return Boolean; -- Flag4
9215 function Alloc_For_BIP_Return
9216 (N : Node_Id) return Boolean; -- Flag1
9218 function All_Others
9219 (N : Node_Id) return Boolean; -- Flag11
9221 function All_Present
9222 (N : Node_Id) return Boolean; -- Flag15
9224 function Alternatives
9225 (N : Node_Id) return List_Id; -- List4
9227 function Ancestor_Part
9228 (N : Node_Id) return Node_Id; -- Node3
9230 function Atomic_Sync_Required
9231 (N : Node_Id) return Boolean; -- Flag14
9233 function Array_Aggregate
9234 (N : Node_Id) return Node_Id; -- Node3
9236 function Aspect_On_Partial_View
9237 (N : Node_Id) return Boolean; -- Flag18
9239 function Aspect_Rep_Item
9240 (N : Node_Id) return Node_Id; -- Node2
9242 function Assignment_OK
9243 (N : Node_Id) return Boolean; -- Flag15
9245 function Associated_Node
9246 (N : Node_Id) return Node_Id; -- Node4
9248 function At_End_Proc
9249 (N : Node_Id) return Node_Id; -- Node1
9251 function Attribute_Name
9252 (N : Node_Id) return Name_Id; -- Name2
9254 function Aux_Decls_Node
9255 (N : Node_Id) return Node_Id; -- Node5
9257 function Backwards_OK
9258 (N : Node_Id) return Boolean; -- Flag6
9260 function Bad_Is_Detected
9261 (N : Node_Id) return Boolean; -- Flag15
9263 function By_Ref
9264 (N : Node_Id) return Boolean; -- Flag5
9266 function Body_Required
9267 (N : Node_Id) return Boolean; -- Flag13
9269 function Body_To_Inline
9270 (N : Node_Id) return Node_Id; -- Node3
9272 function Box_Present
9273 (N : Node_Id) return Boolean; -- Flag15
9275 function Char_Literal_Value
9276 (N : Node_Id) return Uint; -- Uint2
9278 function Chars
9279 (N : Node_Id) return Name_Id; -- Name1
9281 function Check_Address_Alignment
9282 (N : Node_Id) return Boolean; -- Flag11
9284 function Choice_Parameter
9285 (N : Node_Id) return Node_Id; -- Node2
9287 function Choices
9288 (N : Node_Id) return List_Id; -- List1
9290 function Class_Present
9291 (N : Node_Id) return Boolean; -- Flag6
9293 function Classifications
9294 (N : Node_Id) return Node_Id; -- Node3
9296 function Cleanup_Actions
9297 (N : Node_Id) return List_Id; -- List5
9299 function Comes_From_Extended_Return_Statement
9300 (N : Node_Id) return Boolean; -- Flag18
9302 function Compile_Time_Known_Aggregate
9303 (N : Node_Id) return Boolean; -- Flag18
9305 function Component_Associations
9306 (N : Node_Id) return List_Id; -- List2
9308 function Component_Clauses
9309 (N : Node_Id) return List_Id; -- List3
9311 function Component_Definition
9312 (N : Node_Id) return Node_Id; -- Node4
9314 function Component_Items
9315 (N : Node_Id) return List_Id; -- List3
9317 function Component_List
9318 (N : Node_Id) return Node_Id; -- Node1
9320 function Component_Name
9321 (N : Node_Id) return Node_Id; -- Node1
9323 function Componentwise_Assignment
9324 (N : Node_Id) return Boolean; -- Flag14
9326 function Condition
9327 (N : Node_Id) return Node_Id; -- Node1
9329 function Condition_Actions
9330 (N : Node_Id) return List_Id; -- List3
9332 function Config_Pragmas
9333 (N : Node_Id) return List_Id; -- List4
9335 function Constant_Present
9336 (N : Node_Id) return Boolean; -- Flag17
9338 function Constraint
9339 (N : Node_Id) return Node_Id; -- Node3
9341 function Constraints
9342 (N : Node_Id) return List_Id; -- List1
9344 function Context_Installed
9345 (N : Node_Id) return Boolean; -- Flag13
9347 function Context_Pending
9348 (N : Node_Id) return Boolean; -- Flag16
9350 function Context_Items
9351 (N : Node_Id) return List_Id; -- List1
9353 function Contract_Test_Cases
9354 (N : Node_Id) return Node_Id; -- Node2
9356 function Controlling_Argument
9357 (N : Node_Id) return Node_Id; -- Node1
9359 function Conversion_OK
9360 (N : Node_Id) return Boolean; -- Flag14
9362 function Convert_To_Return_False
9363 (N : Node_Id) return Boolean; -- Flag13
9365 function Corresponding_Aspect
9366 (N : Node_Id) return Node_Id; -- Node3
9368 function Corresponding_Body
9369 (N : Node_Id) return Node_Id; -- Node5
9371 function Corresponding_Formal_Spec
9372 (N : Node_Id) return Node_Id; -- Node3
9374 function Corresponding_Generic_Association
9375 (N : Node_Id) return Node_Id; -- Node5
9377 function Corresponding_Integer_Value
9378 (N : Node_Id) return Uint; -- Uint4
9380 function Corresponding_Spec
9381 (N : Node_Id) return Entity_Id; -- Node5
9383 function Corresponding_Spec_Of_Stub
9384 (N : Node_Id) return Node_Id; -- Node2
9386 function Corresponding_Stub
9387 (N : Node_Id) return Node_Id; -- Node3
9389 function Dcheck_Function
9390 (N : Node_Id) return Entity_Id; -- Node5
9392 function Declarations
9393 (N : Node_Id) return List_Id; -- List2
9395 function Default_Expression
9396 (N : Node_Id) return Node_Id; -- Node5
9398 function Default_Storage_Pool
9399 (N : Node_Id) return Node_Id; -- Node3
9401 function Default_Name
9402 (N : Node_Id) return Node_Id; -- Node2
9404 function Defining_Identifier
9405 (N : Node_Id) return Entity_Id; -- Node1
9407 function Defining_Unit_Name
9408 (N : Node_Id) return Node_Id; -- Node1
9410 function Delay_Alternative
9411 (N : Node_Id) return Node_Id; -- Node4
9413 function Delay_Statement
9414 (N : Node_Id) return Node_Id; -- Node2
9416 function Delta_Expression
9417 (N : Node_Id) return Node_Id; -- Node3
9419 function Digits_Expression
9420 (N : Node_Id) return Node_Id; -- Node2
9422 function Discr_Check_Funcs_Built
9423 (N : Node_Id) return Boolean; -- Flag11
9425 function Discrete_Choices
9426 (N : Node_Id) return List_Id; -- List4
9428 function Discrete_Range
9429 (N : Node_Id) return Node_Id; -- Node4
9431 function Discrete_Subtype_Definition
9432 (N : Node_Id) return Node_Id; -- Node4
9434 function Discrete_Subtype_Definitions
9435 (N : Node_Id) return List_Id; -- List2
9437 function Discriminant_Specifications
9438 (N : Node_Id) return List_Id; -- List4
9440 function Discriminant_Type
9441 (N : Node_Id) return Node_Id; -- Node5
9443 function Do_Accessibility_Check
9444 (N : Node_Id) return Boolean; -- Flag13
9446 function Do_Discriminant_Check
9447 (N : Node_Id) return Boolean; -- Flag3
9449 function Do_Division_Check
9450 (N : Node_Id) return Boolean; -- Flag13
9452 function Do_Length_Check
9453 (N : Node_Id) return Boolean; -- Flag4
9455 function Do_Overflow_Check
9456 (N : Node_Id) return Boolean; -- Flag17
9458 function Do_Range_Check
9459 (N : Node_Id) return Boolean; -- Flag9
9461 function Do_Storage_Check
9462 (N : Node_Id) return Boolean; -- Flag17
9464 function Do_Tag_Check
9465 (N : Node_Id) return Boolean; -- Flag13
9467 function Elaborate_All_Desirable
9468 (N : Node_Id) return Boolean; -- Flag9
9470 function Elaborate_All_Present
9471 (N : Node_Id) return Boolean; -- Flag14
9473 function Elaborate_Desirable
9474 (N : Node_Id) return Boolean; -- Flag11
9476 function Elaborate_Present
9477 (N : Node_Id) return Boolean; -- Flag4
9479 function Else_Actions
9480 (N : Node_Id) return List_Id; -- List3
9482 function Else_Statements
9483 (N : Node_Id) return List_Id; -- List4
9485 function Elsif_Parts
9486 (N : Node_Id) return List_Id; -- List3
9488 function Enclosing_Variant
9489 (N : Node_Id) return Node_Id; -- Node2
9491 function End_Label
9492 (N : Node_Id) return Node_Id; -- Node4
9494 function End_Span
9495 (N : Node_Id) return Uint; -- Uint5
9497 function Entity
9498 (N : Node_Id) return Node_Id; -- Node4
9500 function Entity_Or_Associated_Node
9501 (N : Node_Id) return Node_Id; -- Node4
9503 function Entry_Body_Formal_Part
9504 (N : Node_Id) return Node_Id; -- Node5
9506 function Entry_Call_Alternative
9507 (N : Node_Id) return Node_Id; -- Node1
9509 function Entry_Call_Statement
9510 (N : Node_Id) return Node_Id; -- Node1
9512 function Entry_Direct_Name
9513 (N : Node_Id) return Node_Id; -- Node1
9515 function Entry_Index
9516 (N : Node_Id) return Node_Id; -- Node5
9518 function Entry_Index_Specification
9519 (N : Node_Id) return Node_Id; -- Node4
9521 function Etype
9522 (N : Node_Id) return Node_Id; -- Node5
9524 function Exception_Choices
9525 (N : Node_Id) return List_Id; -- List4
9527 function Exception_Handlers
9528 (N : Node_Id) return List_Id; -- List5
9530 function Exception_Junk
9531 (N : Node_Id) return Boolean; -- Flag8
9533 function Exception_Label
9534 (N : Node_Id) return Node_Id; -- Node5
9536 function Explicit_Actual_Parameter
9537 (N : Node_Id) return Node_Id; -- Node3
9539 function Expansion_Delayed
9540 (N : Node_Id) return Boolean; -- Flag11
9542 function Explicit_Generic_Actual_Parameter
9543 (N : Node_Id) return Node_Id; -- Node1
9545 function Expression
9546 (N : Node_Id) return Node_Id; -- Node3
9548 function Expression_Copy
9549 (N : Node_Id) return Node_Id; -- Node2
9551 function Expressions
9552 (N : Node_Id) return List_Id; -- List1
9554 function First_Bit
9555 (N : Node_Id) return Node_Id; -- Node3
9557 function First_Inlined_Subprogram
9558 (N : Node_Id) return Entity_Id; -- Node3
9560 function First_Name
9561 (N : Node_Id) return Boolean; -- Flag5
9563 function First_Named_Actual
9564 (N : Node_Id) return Node_Id; -- Node4
9566 function First_Real_Statement
9567 (N : Node_Id) return Node_Id; -- Node2
9569 function First_Subtype_Link
9570 (N : Node_Id) return Entity_Id; -- Node5
9572 function Float_Truncate
9573 (N : Node_Id) return Boolean; -- Flag11
9575 function Formal_Type_Definition
9576 (N : Node_Id) return Node_Id; -- Node3
9578 function Forwards_OK
9579 (N : Node_Id) return Boolean; -- Flag5
9581 function From_Aspect_Specification
9582 (N : Node_Id) return Boolean; -- Flag13
9584 function From_At_End
9585 (N : Node_Id) return Boolean; -- Flag4
9587 function From_At_Mod
9588 (N : Node_Id) return Boolean; -- Flag4
9590 function From_Conditional_Expression
9591 (N : Node_Id) return Boolean; -- Flag1
9593 function From_Default
9594 (N : Node_Id) return Boolean; -- Flag6
9596 function Generalized_Indexing
9597 (N : Node_Id) return Node_Id; -- Node4
9599 function Generic_Associations
9600 (N : Node_Id) return List_Id; -- List3
9602 function Generic_Formal_Declarations
9603 (N : Node_Id) return List_Id; -- List2
9605 function Generic_Parent
9606 (N : Node_Id) return Node_Id; -- Node5
9608 function Generic_Parent_Type
9609 (N : Node_Id) return Node_Id; -- Node4
9611 function Handled_Statement_Sequence
9612 (N : Node_Id) return Node_Id; -- Node4
9614 function Handler_List_Entry
9615 (N : Node_Id) return Node_Id; -- Node2
9617 function Has_Created_Identifier
9618 (N : Node_Id) return Boolean; -- Flag15
9620 function Has_Dereference_Action
9621 (N : Node_Id) return Boolean; -- Flag13
9623 function Has_Dynamic_Length_Check
9624 (N : Node_Id) return Boolean; -- Flag10
9626 function Has_Init_Expression
9627 (N : Node_Id) return Boolean; -- Flag14
9629 function Has_Local_Raise
9630 (N : Node_Id) return Boolean; -- Flag8
9632 function Has_No_Elaboration_Code
9633 (N : Node_Id) return Boolean; -- Flag17
9635 function Has_Pragma_Suppress_All
9636 (N : Node_Id) return Boolean; -- Flag14
9638 function Has_Private_View
9639 (N : Node_Id) return Boolean; -- Flag11
9641 function Has_Relative_Deadline_Pragma
9642 (N : Node_Id) return Boolean; -- Flag9
9644 function Has_Self_Reference
9645 (N : Node_Id) return Boolean; -- Flag13
9647 function Has_SP_Choice
9648 (N : Node_Id) return Boolean; -- Flag15
9650 function Has_Storage_Size_Pragma
9651 (N : Node_Id) return Boolean; -- Flag5
9653 function Has_Target_Names
9654 (N : Node_Id) return Boolean; -- Flag8
9656 function Has_Wide_Character
9657 (N : Node_Id) return Boolean; -- Flag11
9659 function Has_Wide_Wide_Character
9660 (N : Node_Id) return Boolean; -- Flag13
9662 function Header_Size_Added
9663 (N : Node_Id) return Boolean; -- Flag11
9665 function Hidden_By_Use_Clause
9666 (N : Node_Id) return Elist_Id; -- Elist5
9668 function High_Bound
9669 (N : Node_Id) return Node_Id; -- Node2
9671 function Identifier
9672 (N : Node_Id) return Node_Id; -- Node1
9674 function Interface_List
9675 (N : Node_Id) return List_Id; -- List2
9677 function Interface_Present
9678 (N : Node_Id) return Boolean; -- Flag16
9680 function Implicit_With
9681 (N : Node_Id) return Boolean; -- Flag16
9683 function Import_Interface_Present
9684 (N : Node_Id) return Boolean; -- Flag16
9686 function In_Present
9687 (N : Node_Id) return Boolean; -- Flag15
9689 function Includes_Infinities
9690 (N : Node_Id) return Boolean; -- Flag11
9692 function Incomplete_View
9693 (N : Node_Id) return Node_Id; -- Node2
9695 function Inherited_Discriminant
9696 (N : Node_Id) return Boolean; -- Flag13
9698 function Instance_Spec
9699 (N : Node_Id) return Node_Id; -- Node5
9701 function Intval
9702 (N : Node_Id) return Uint; -- Uint3
9704 function Is_Abort_Block
9705 (N : Node_Id) return Boolean; -- Flag4
9707 function Is_Accessibility_Actual
9708 (N : Node_Id) return Boolean; -- Flag13
9710 function Is_Analyzed_Pragma
9711 (N : Node_Id) return Boolean; -- Flag5
9713 function Is_Asynchronous_Call_Block
9714 (N : Node_Id) return Boolean; -- Flag7
9716 function Is_Boolean_Aspect
9717 (N : Node_Id) return Boolean; -- Flag16
9719 function Is_Checked
9720 (N : Node_Id) return Boolean; -- Flag11
9722 function Is_Checked_Ghost_Pragma
9723 (N : Node_Id) return Boolean; -- Flag3
9725 function Is_Component_Left_Opnd
9726 (N : Node_Id) return Boolean; -- Flag13
9728 function Is_Component_Right_Opnd
9729 (N : Node_Id) return Boolean; -- Flag14
9731 function Is_Controlling_Actual
9732 (N : Node_Id) return Boolean; -- Flag16
9734 function Is_Declaration_Level_Node
9735 (N : Node_Id) return Boolean; -- Flag5
9737 function Is_Delayed_Aspect
9738 (N : Node_Id) return Boolean; -- Flag14
9740 function Is_Disabled
9741 (N : Node_Id) return Boolean; -- Flag15
9743 function Is_Dispatching_Call
9744 (N : Node_Id) return Boolean; -- Flag6
9746 function Is_Dynamic_Coextension
9747 (N : Node_Id) return Boolean; -- Flag18
9749 function Is_Effective_Use_Clause
9750 (N : Node_Id) return Boolean; -- Flag1
9752 function Is_Elaboration_Checks_OK_Node
9753 (N : Node_Id) return Boolean; -- Flag1
9755 function Is_Elaboration_Code
9756 (N : Node_Id) return Boolean; -- Flag9
9758 function Is_Elaboration_Warnings_OK_Node
9759 (N : Node_Id) return Boolean; -- Flag3
9761 function Is_Elsif
9762 (N : Node_Id) return Boolean; -- Flag13
9764 function Is_Entry_Barrier_Function
9765 (N : Node_Id) return Boolean; -- Flag8
9767 function Is_Expanded_Build_In_Place_Call
9768 (N : Node_Id) return Boolean; -- Flag11
9770 function Is_Expanded_Contract
9771 (N : Node_Id) return Boolean; -- Flag1
9773 function Is_Finalization_Wrapper
9774 (N : Node_Id) return Boolean; -- Flag9
9776 function Is_Folded_In_Parser
9777 (N : Node_Id) return Boolean; -- Flag4
9779 function Is_Generic_Contract_Pragma
9780 (N : Node_Id) return Boolean; -- Flag2
9782 function Is_Homogeneous_Aggregate
9783 (N : Node_Id) return Boolean; -- Flag14
9785 function Is_Ignored
9786 (N : Node_Id) return Boolean; -- Flag9
9788 function Is_Ignored_Ghost_Pragma
9789 (N : Node_Id) return Boolean; -- Flag8
9791 function Is_In_Discriminant_Check
9792 (N : Node_Id) return Boolean; -- Flag11
9794 function Is_Inherited_Pragma
9795 (N : Node_Id) return Boolean; -- Flag4
9797 function Is_Initialization_Block
9798 (N : Node_Id) return Boolean; -- Flag1
9800 function Is_Known_Guaranteed_ABE
9801 (N : Node_Id) return Boolean; -- Flag18
9803 function Is_Machine_Number
9804 (N : Node_Id) return Boolean; -- Flag11
9806 function Is_Null_Loop
9807 (N : Node_Id) return Boolean; -- Flag16
9809 function Is_Overloaded
9810 (N : Node_Id) return Boolean; -- Flag5
9812 function Is_Power_Of_2_For_Shift
9813 (N : Node_Id) return Boolean; -- Flag13
9815 function Is_Preelaborable_Call
9816 (N : Node_Id) return Boolean; -- Flag7
9818 function Is_Prefixed_Call
9819 (N : Node_Id) return Boolean; -- Flag17
9821 function Is_Protected_Subprogram_Body
9822 (N : Node_Id) return Boolean; -- Flag7
9824 function Is_Qualified_Universal_Literal
9825 (N : Node_Id) return Boolean; -- Flag4
9827 function Is_Read
9828 (N : Node_Id) return Boolean; -- Flag4
9830 function Is_Source_Call
9831 (N : Node_Id) return Boolean; -- Flag4
9833 function Is_SPARK_Mode_On_Node
9834 (N : Node_Id) return Boolean; -- Flag2
9836 function Is_Static_Coextension
9837 (N : Node_Id) return Boolean; -- Flag14
9839 function Is_Static_Expression
9840 (N : Node_Id) return Boolean; -- Flag6
9842 function Is_Subprogram_Descriptor
9843 (N : Node_Id) return Boolean; -- Flag16
9845 function Is_Task_Allocation_Block
9846 (N : Node_Id) return Boolean; -- Flag6
9848 function Is_Task_Body_Procedure
9849 (N : Node_Id) return Boolean; -- Flag1
9851 function Is_Task_Master
9852 (N : Node_Id) return Boolean; -- Flag5
9854 function Is_Write
9855 (N : Node_Id) return Boolean; -- Flag5
9857 function Iteration_Scheme
9858 (N : Node_Id) return Node_Id; -- Node2
9860 function Iterator_Filter
9861 (N : Node_Id) return Node_Id; -- Node3
9863 function Iterator_Specification
9864 (N : Node_Id) return Node_Id; -- Node2
9866 function Itype
9867 (N : Node_Id) return Entity_Id; -- Node1
9869 function Key_Expression
9870 (N : Node_Id) return Node_Id; -- Node1
9872 function Kill_Range_Check
9873 (N : Node_Id) return Boolean; -- Flag11
9875 function Label_Construct
9876 (N : Node_Id) return Node_Id; -- Node2
9878 function Left_Opnd
9879 (N : Node_Id) return Node_Id; -- Node2
9881 function Last_Bit
9882 (N : Node_Id) return Node_Id; -- Node4
9884 function Last_Name
9885 (N : Node_Id) return Boolean; -- Flag6
9887 function Library_Unit
9888 (N : Node_Id) return Node_Id; -- Node4
9890 function Limited_View_Installed
9891 (N : Node_Id) return Boolean; -- Flag18
9893 function Limited_Present
9894 (N : Node_Id) return Boolean; -- Flag17
9896 function Literals
9897 (N : Node_Id) return List_Id; -- List1
9899 function Local_Raise_Not_OK
9900 (N : Node_Id) return Boolean; -- Flag7
9902 function Local_Raise_Statements
9903 (N : Node_Id) return Elist_Id; -- Elist1
9905 function Loop_Actions
9906 (N : Node_Id) return List_Id; -- List5
9908 function Loop_Parameter_Specification
9909 (N : Node_Id) return Node_Id; -- Node4
9911 function Low_Bound
9912 (N : Node_Id) return Node_Id; -- Node1
9914 function Mod_Clause
9915 (N : Node_Id) return Node_Id; -- Node2
9917 function More_Ids
9918 (N : Node_Id) return Boolean; -- Flag5
9920 function Must_Be_Byte_Aligned
9921 (N : Node_Id) return Boolean; -- Flag14
9923 function Must_Not_Freeze
9924 (N : Node_Id) return Boolean; -- Flag8
9926 function Must_Not_Override
9927 (N : Node_Id) return Boolean; -- Flag15
9929 function Must_Override
9930 (N : Node_Id) return Boolean; -- Flag14
9932 function Name
9933 (N : Node_Id) return Node_Id; -- Node2
9935 function Names
9936 (N : Node_Id) return List_Id; -- List2
9938 function Next_Entity
9939 (N : Node_Id) return Node_Id; -- Node2
9941 function Next_Exit_Statement
9942 (N : Node_Id) return Node_Id; -- Node3
9944 function Next_Implicit_With
9945 (N : Node_Id) return Node_Id; -- Node3
9947 function Next_Named_Actual
9948 (N : Node_Id) return Node_Id; -- Node4
9950 function Next_Pragma
9951 (N : Node_Id) return Node_Id; -- Node1
9953 function Next_Rep_Item
9954 (N : Node_Id) return Node_Id; -- Node5
9956 function Next_Use_Clause
9957 (N : Node_Id) return Node_Id; -- Node3
9959 function No_Ctrl_Actions
9960 (N : Node_Id) return Boolean; -- Flag7
9962 function No_Elaboration_Check
9963 (N : Node_Id) return Boolean; -- Flag4
9965 function No_Entities_Ref_In_Spec
9966 (N : Node_Id) return Boolean; -- Flag8
9968 function No_Initialization
9969 (N : Node_Id) return Boolean; -- Flag13
9971 function No_Minimize_Eliminate
9972 (N : Node_Id) return Boolean; -- Flag17
9974 function No_Side_Effect_Removal
9975 (N : Node_Id) return Boolean; -- Flag17
9977 function No_Truncation
9978 (N : Node_Id) return Boolean; -- Flag17
9980 function Null_Excluding_Subtype
9981 (N : Node_Id) return Boolean; -- Flag16
9983 function Null_Exclusion_Present
9984 (N : Node_Id) return Boolean; -- Flag11
9986 function Null_Exclusion_In_Return_Present
9987 (N : Node_Id) return Boolean; -- Flag14
9989 function Null_Present
9990 (N : Node_Id) return Boolean; -- Flag13
9992 function Null_Record_Present
9993 (N : Node_Id) return Boolean; -- Flag17
9995 function Null_Statement
9996 (N : Node_Id) return Node_Id; -- Node2
9998 function Object_Definition
9999 (N : Node_Id) return Node_Id; -- Node4
10001 function Of_Present
10002 (N : Node_Id) return Boolean; -- Flag16
10004 function Original_Discriminant
10005 (N : Node_Id) return Node_Id; -- Node2
10007 function Original_Entity
10008 (N : Node_Id) return Entity_Id; -- Node2
10010 function Others_Discrete_Choices
10011 (N : Node_Id) return List_Id; -- List1
10013 function Out_Present
10014 (N : Node_Id) return Boolean; -- Flag17
10016 function Parameter_Associations
10017 (N : Node_Id) return List_Id; -- List3
10019 function Parameter_Specifications
10020 (N : Node_Id) return List_Id; -- List3
10022 function Parameter_Type
10023 (N : Node_Id) return Node_Id; -- Node2
10025 function Parent_Spec
10026 (N : Node_Id) return Node_Id; -- Node4
10028 function Parent_With
10029 (N : Node_Id) return Boolean; -- Flag1
10031 function Position
10032 (N : Node_Id) return Node_Id; -- Node2
10034 function Pragma_Argument_Associations
10035 (N : Node_Id) return List_Id; -- List2
10037 function Pragma_Identifier
10038 (N : Node_Id) return Node_Id; -- Node4
10040 function Pragmas_After
10041 (N : Node_Id) return List_Id; -- List5
10043 function Pragmas_Before
10044 (N : Node_Id) return List_Id; -- List4
10046 function Pre_Post_Conditions
10047 (N : Node_Id) return Node_Id; -- Node1
10049 function Prefix
10050 (N : Node_Id) return Node_Id; -- Node3
10052 function Premature_Use
10053 (N : Node_Id) return Node_Id; -- Node5
10055 function Present_Expr
10056 (N : Node_Id) return Uint; -- Uint3
10058 function Prev_Ids
10059 (N : Node_Id) return Boolean; -- Flag6
10061 function Prev_Use_Clause
10062 (N : Node_Id) return Node_Id; -- Node1
10064 function Print_In_Hex
10065 (N : Node_Id) return Boolean; -- Flag13
10067 function Private_Declarations
10068 (N : Node_Id) return List_Id; -- List3
10070 function Private_Present
10071 (N : Node_Id) return Boolean; -- Flag15
10073 function Procedure_To_Call
10074 (N : Node_Id) return Node_Id; -- Node2
10076 function Proper_Body
10077 (N : Node_Id) return Node_Id; -- Node1
10079 function Protected_Definition
10080 (N : Node_Id) return Node_Id; -- Node3
10082 function Protected_Present
10083 (N : Node_Id) return Boolean; -- Flag6
10085 function Raises_Constraint_Error
10086 (N : Node_Id) return Boolean; -- Flag7
10088 function Range_Constraint
10089 (N : Node_Id) return Node_Id; -- Node4
10091 function Range_Expression
10092 (N : Node_Id) return Node_Id; -- Node4
10094 function Real_Range_Specification
10095 (N : Node_Id) return Node_Id; -- Node4
10097 function Realval
10098 (N : Node_Id) return Ureal; -- Ureal3
10100 function Reason
10101 (N : Node_Id) return Uint; -- Uint3
10103 function Record_Extension_Part
10104 (N : Node_Id) return Node_Id; -- Node3
10106 function Redundant_Use
10107 (N : Node_Id) return Boolean; -- Flag13
10109 function Renaming_Exception
10110 (N : Node_Id) return Node_Id; -- Node2
10112 function Result_Definition
10113 (N : Node_Id) return Node_Id; -- Node4
10115 function Return_Object_Declarations
10116 (N : Node_Id) return List_Id; -- List3
10118 function Return_Statement_Entity
10119 (N : Node_Id) return Node_Id; -- Node5
10121 function Reverse_Present
10122 (N : Node_Id) return Boolean; -- Flag15
10124 function Right_Opnd
10125 (N : Node_Id) return Node_Id; -- Node3
10127 function Rounded_Result
10128 (N : Node_Id) return Boolean; -- Flag18
10130 function Save_Invocation_Graph_Of_Body
10131 (N : Node_Id) return Boolean; -- Flag1
10133 function SCIL_Controlling_Tag
10134 (N : Node_Id) return Node_Id; -- Node5
10136 function SCIL_Entity
10137 (N : Node_Id) return Node_Id; -- Node4
10139 function SCIL_Tag_Value
10140 (N : Node_Id) return Node_Id; -- Node5
10142 function SCIL_Target_Prim
10143 (N : Node_Id) return Node_Id; -- Node2
10145 function Scope
10146 (N : Node_Id) return Node_Id; -- Node3
10148 function Select_Alternatives
10149 (N : Node_Id) return List_Id; -- List1
10151 function Selector_Name
10152 (N : Node_Id) return Node_Id; -- Node2
10154 function Selector_Names
10155 (N : Node_Id) return List_Id; -- List1
10157 function Shift_Count_OK
10158 (N : Node_Id) return Boolean; -- Flag4
10160 function Source_Type
10161 (N : Node_Id) return Entity_Id; -- Node1
10163 function Specification
10164 (N : Node_Id) return Node_Id; -- Node1
10166 function Split_PPC
10167 (N : Node_Id) return Boolean; -- Flag17
10169 function Statements
10170 (N : Node_Id) return List_Id; -- List3
10172 function Storage_Pool
10173 (N : Node_Id) return Node_Id; -- Node1
10175 function Subpool_Handle_Name
10176 (N : Node_Id) return Node_Id; -- Node4
10178 function Strval
10179 (N : Node_Id) return String_Id; -- Str3
10181 function Subtype_Indication
10182 (N : Node_Id) return Node_Id; -- Node5
10184 function Subtype_Mark
10185 (N : Node_Id) return Node_Id; -- Node4
10187 function Subtype_Marks
10188 (N : Node_Id) return List_Id; -- List2
10190 function Suppress_Assignment_Checks
10191 (N : Node_Id) return Boolean; -- Flag18
10193 function Suppress_Loop_Warnings
10194 (N : Node_Id) return Boolean; -- Flag17
10196 function Synchronized_Present
10197 (N : Node_Id) return Boolean; -- Flag7
10199 function Tagged_Present
10200 (N : Node_Id) return Boolean; -- Flag15
10202 function Target
10203 (N : Node_Id) return Entity_Id; -- Node1
10205 function Target_Type
10206 (N : Node_Id) return Entity_Id; -- Node2
10208 function Task_Definition
10209 (N : Node_Id) return Node_Id; -- Node3
10211 function Task_Present
10212 (N : Node_Id) return Boolean; -- Flag5
10214 function Then_Actions
10215 (N : Node_Id) return List_Id; -- List2
10217 function Then_Statements
10218 (N : Node_Id) return List_Id; -- List2
10220 function Triggering_Alternative
10221 (N : Node_Id) return Node_Id; -- Node1
10223 function Triggering_Statement
10224 (N : Node_Id) return Node_Id; -- Node1
10226 function TSS_Elist
10227 (N : Node_Id) return Elist_Id; -- Elist3
10229 function Type_Definition
10230 (N : Node_Id) return Node_Id; -- Node3
10232 function Uneval_Old_Accept
10233 (N : Node_Id) return Boolean; -- Flag7
10235 function Uneval_Old_Warn
10236 (N : Node_Id) return Boolean; -- Flag18
10238 function Unit
10239 (N : Node_Id) return Node_Id; -- Node2
10241 function Unknown_Discriminants_Present
10242 (N : Node_Id) return Boolean; -- Flag13
10244 function Unreferenced_In_Spec
10245 (N : Node_Id) return Boolean; -- Flag7
10247 function Variant_Part
10248 (N : Node_Id) return Node_Id; -- Node4
10250 function Variants
10251 (N : Node_Id) return List_Id; -- List1
10253 function Visible_Declarations
10254 (N : Node_Id) return List_Id; -- List2
10256 function Uninitialized_Variable
10257 (N : Node_Id) return Node_Id; -- Node3
10259 function Used_Operations
10260 (N : Node_Id) return Elist_Id; -- Elist2
10262 function Was_Attribute_Reference
10263 (N : Node_Id) return Boolean; -- Flag2
10265 function Was_Default_Init_Box_Association
10266 (N : Node_Id) return Boolean; -- Flag14
10268 function Was_Expression_Function
10269 (N : Node_Id) return Boolean; -- Flag18
10271 function Was_Originally_Stub
10272 (N : Node_Id) return Boolean; -- Flag13
10274 -- End functions (note used by xsinfo utility program to end processing)
10276 ----------------------------
10277 -- Node Update Procedures --
10278 ----------------------------
10280 -- These are the corresponding node update routines, which again provide
10281 -- a high level logical access with type checking. In addition to setting
10282 -- the indicated field of the node N to the given Val, in the case of
10283 -- tree pointers (List1-4), the parent pointer of the Val node is set to
10284 -- point back to node N. This automates the setting of the parent pointer.
10286 -- WARNING: There is a matching C declaration of a few subprograms in fe.h
10288 procedure Set_Abort_Present
10289 (N : Node_Id; Val : Boolean := True); -- Flag15
10291 procedure Set_Abortable_Part
10292 (N : Node_Id; Val : Node_Id); -- Node2
10294 procedure Set_Abstract_Present
10295 (N : Node_Id; Val : Boolean := True); -- Flag4
10297 procedure Set_Accept_Handler_Records
10298 (N : Node_Id; Val : List_Id); -- List5
10300 procedure Set_Accept_Statement
10301 (N : Node_Id; Val : Node_Id); -- Node2
10303 procedure Set_Access_Definition
10304 (N : Node_Id; Val : Node_Id); -- Node3
10306 procedure Set_Access_To_Subprogram_Definition
10307 (N : Node_Id; Val : Node_Id); -- Node3
10309 procedure Set_Access_Types_To_Process
10310 (N : Node_Id; Val : Elist_Id); -- Elist2
10312 procedure Set_Actions
10313 (N : Node_Id; Val : List_Id); -- List1
10315 procedure Set_Activation_Chain_Entity
10316 (N : Node_Id; Val : Node_Id); -- Node3
10318 procedure Set_Acts_As_Spec
10319 (N : Node_Id; Val : Boolean := True); -- Flag4
10321 procedure Set_Actual_Designated_Subtype
10322 (N : Node_Id; Val : Node_Id); -- Node4
10324 procedure Set_Address_Warning_Posted
10325 (N : Node_Id; Val : Boolean := True); -- Flag18
10327 procedure Set_Aggregate_Bounds
10328 (N : Node_Id; Val : Node_Id); -- Node3
10330 procedure Set_Aliased_Present
10331 (N : Node_Id; Val : Boolean := True); -- Flag4
10333 procedure Set_Alloc_For_BIP_Return
10334 (N : Node_Id; Val : Boolean := True); -- Flag1
10336 procedure Set_All_Others
10337 (N : Node_Id; Val : Boolean := True); -- Flag11
10339 procedure Set_All_Present
10340 (N : Node_Id; Val : Boolean := True); -- Flag15
10342 procedure Set_Alternatives
10343 (N : Node_Id; Val : List_Id); -- List4
10345 procedure Set_Ancestor_Part
10346 (N : Node_Id; Val : Node_Id); -- Node3
10348 procedure Set_Atomic_Sync_Required
10349 (N : Node_Id; Val : Boolean := True); -- Flag14
10351 procedure Set_Array_Aggregate
10352 (N : Node_Id; Val : Node_Id); -- Node3
10354 procedure Set_Aspect_On_Partial_View
10355 (N : Node_Id; Val : Boolean := True); -- Flag18
10357 procedure Set_Aspect_Rep_Item
10358 (N : Node_Id; Val : Node_Id); -- Node2
10360 procedure Set_Assignment_OK
10361 (N : Node_Id; Val : Boolean := True); -- Flag15
10363 procedure Set_Associated_Node
10364 (N : Node_Id; Val : Node_Id); -- Node4
10366 procedure Set_Attribute_Name
10367 (N : Node_Id; Val : Name_Id); -- Name2
10369 procedure Set_At_End_Proc
10370 (N : Node_Id; Val : Node_Id); -- Node1
10372 procedure Set_Aux_Decls_Node
10373 (N : Node_Id; Val : Node_Id); -- Node5
10375 procedure Set_Backwards_OK
10376 (N : Node_Id; Val : Boolean := True); -- Flag6
10378 procedure Set_Bad_Is_Detected
10379 (N : Node_Id; Val : Boolean := True); -- Flag15
10381 procedure Set_Body_Required
10382 (N : Node_Id; Val : Boolean := True); -- Flag13
10384 procedure Set_Body_To_Inline
10385 (N : Node_Id; Val : Node_Id); -- Node3
10387 procedure Set_Box_Present
10388 (N : Node_Id; Val : Boolean := True); -- Flag15
10390 procedure Set_By_Ref
10391 (N : Node_Id; Val : Boolean := True); -- Flag5
10393 procedure Set_Char_Literal_Value
10394 (N : Node_Id; Val : Uint); -- Uint2
10396 procedure Set_Chars
10397 (N : Node_Id; Val : Name_Id); -- Name1
10399 procedure Set_Check_Address_Alignment
10400 (N : Node_Id; Val : Boolean := True); -- Flag11
10402 procedure Set_Choice_Parameter
10403 (N : Node_Id; Val : Node_Id); -- Node2
10405 procedure Set_Choices
10406 (N : Node_Id; Val : List_Id); -- List1
10408 procedure Set_Class_Present
10409 (N : Node_Id; Val : Boolean := True); -- Flag6
10411 procedure Set_Classifications
10412 (N : Node_Id; Val : Node_Id); -- Node3
10414 procedure Set_Cleanup_Actions
10415 (N : Node_Id; Val : List_Id); -- List5
10417 procedure Set_Comes_From_Extended_Return_Statement
10418 (N : Node_Id; Val : Boolean := True); -- Flag18
10420 procedure Set_Compile_Time_Known_Aggregate
10421 (N : Node_Id; Val : Boolean := True); -- Flag18
10423 procedure Set_Component_Associations
10424 (N : Node_Id; Val : List_Id); -- List2
10426 procedure Set_Component_Clauses
10427 (N : Node_Id; Val : List_Id); -- List3
10429 procedure Set_Component_Definition
10430 (N : Node_Id; Val : Node_Id); -- Node4
10432 procedure Set_Component_Items
10433 (N : Node_Id; Val : List_Id); -- List3
10435 procedure Set_Component_List
10436 (N : Node_Id; Val : Node_Id); -- Node1
10438 procedure Set_Component_Name
10439 (N : Node_Id; Val : Node_Id); -- Node1
10441 procedure Set_Componentwise_Assignment
10442 (N : Node_Id; Val : Boolean := True); -- Flag14
10444 procedure Set_Condition
10445 (N : Node_Id; Val : Node_Id); -- Node1
10447 procedure Set_Condition_Actions
10448 (N : Node_Id; Val : List_Id); -- List3
10450 procedure Set_Config_Pragmas
10451 (N : Node_Id; Val : List_Id); -- List4
10453 procedure Set_Constant_Present
10454 (N : Node_Id; Val : Boolean := True); -- Flag17
10456 procedure Set_Constraint
10457 (N : Node_Id; Val : Node_Id); -- Node3
10459 procedure Set_Constraints
10460 (N : Node_Id; Val : List_Id); -- List1
10462 procedure Set_Context_Installed
10463 (N : Node_Id; Val : Boolean := True); -- Flag13
10465 procedure Set_Context_Items
10466 (N : Node_Id; Val : List_Id); -- List1
10468 procedure Set_Context_Pending
10469 (N : Node_Id; Val : Boolean := True); -- Flag16
10471 procedure Set_Contract_Test_Cases
10472 (N : Node_Id; Val : Node_Id); -- Node2
10474 procedure Set_Controlling_Argument
10475 (N : Node_Id; Val : Node_Id); -- Node1
10477 procedure Set_Conversion_OK
10478 (N : Node_Id; Val : Boolean := True); -- Flag14
10480 procedure Set_Convert_To_Return_False
10481 (N : Node_Id; Val : Boolean := True); -- Flag13
10483 procedure Set_Corresponding_Aspect
10484 (N : Node_Id; Val : Node_Id); -- Node3
10486 procedure Set_Corresponding_Body
10487 (N : Node_Id; Val : Node_Id); -- Node5
10489 procedure Set_Corresponding_Formal_Spec
10490 (N : Node_Id; Val : Node_Id); -- Node3
10492 procedure Set_Corresponding_Generic_Association
10493 (N : Node_Id; Val : Node_Id); -- Node5
10495 procedure Set_Corresponding_Integer_Value
10496 (N : Node_Id; Val : Uint); -- Uint4
10498 procedure Set_Corresponding_Spec
10499 (N : Node_Id; Val : Entity_Id); -- Node5
10501 procedure Set_Corresponding_Spec_Of_Stub
10502 (N : Node_Id; Val : Node_Id); -- Node2
10504 procedure Set_Corresponding_Stub
10505 (N : Node_Id; Val : Node_Id); -- Node3
10507 procedure Set_Dcheck_Function
10508 (N : Node_Id; Val : Entity_Id); -- Node5
10510 procedure Set_Declarations
10511 (N : Node_Id; Val : List_Id); -- List2
10513 procedure Set_Default_Expression
10514 (N : Node_Id; Val : Node_Id); -- Node5
10516 procedure Set_Default_Storage_Pool
10517 (N : Node_Id; Val : Node_Id); -- Node3
10519 procedure Set_Default_Name
10520 (N : Node_Id; Val : Node_Id); -- Node2
10522 procedure Set_Defining_Identifier
10523 (N : Node_Id; Val : Entity_Id); -- Node1
10525 procedure Set_Defining_Unit_Name
10526 (N : Node_Id; Val : Node_Id); -- Node1
10528 procedure Set_Delay_Alternative
10529 (N : Node_Id; Val : Node_Id); -- Node4
10531 procedure Set_Delay_Statement
10532 (N : Node_Id; Val : Node_Id); -- Node2
10534 procedure Set_Delta_Expression
10535 (N : Node_Id; Val : Node_Id); -- Node3
10537 procedure Set_Digits_Expression
10538 (N : Node_Id; Val : Node_Id); -- Node2
10540 procedure Set_Discr_Check_Funcs_Built
10541 (N : Node_Id; Val : Boolean := True); -- Flag11
10543 procedure Set_Discrete_Choices
10544 (N : Node_Id; Val : List_Id); -- List4
10546 procedure Set_Discrete_Range
10547 (N : Node_Id; Val : Node_Id); -- Node4
10549 procedure Set_Discrete_Subtype_Definition
10550 (N : Node_Id; Val : Node_Id); -- Node4
10552 procedure Set_Discrete_Subtype_Definitions
10553 (N : Node_Id; Val : List_Id); -- List2
10555 procedure Set_Discriminant_Specifications
10556 (N : Node_Id; Val : List_Id); -- List4
10558 procedure Set_Discriminant_Type
10559 (N : Node_Id; Val : Node_Id); -- Node5
10561 procedure Set_Do_Accessibility_Check
10562 (N : Node_Id; Val : Boolean := True); -- Flag13
10564 procedure Set_Do_Discriminant_Check
10565 (N : Node_Id; Val : Boolean := True); -- Flag3
10567 procedure Set_Do_Division_Check
10568 (N : Node_Id; Val : Boolean := True); -- Flag13
10570 procedure Set_Do_Length_Check
10571 (N : Node_Id; Val : Boolean := True); -- Flag4
10573 procedure Set_Do_Overflow_Check
10574 (N : Node_Id; Val : Boolean := True); -- Flag17
10576 procedure Set_Do_Range_Check
10577 (N : Node_Id; Val : Boolean := True); -- Flag9
10579 procedure Set_Do_Storage_Check
10580 (N : Node_Id; Val : Boolean := True); -- Flag17
10582 procedure Set_Do_Tag_Check
10583 (N : Node_Id; Val : Boolean := True); -- Flag13
10585 procedure Set_Elaborate_All_Desirable
10586 (N : Node_Id; Val : Boolean := True); -- Flag9
10588 procedure Set_Elaborate_All_Present
10589 (N : Node_Id; Val : Boolean := True); -- Flag14
10591 procedure Set_Elaborate_Desirable
10592 (N : Node_Id; Val : Boolean := True); -- Flag11
10594 procedure Set_Elaborate_Present
10595 (N : Node_Id; Val : Boolean := True); -- Flag4
10597 procedure Set_Else_Actions
10598 (N : Node_Id; Val : List_Id); -- List3
10600 procedure Set_Else_Statements
10601 (N : Node_Id; Val : List_Id); -- List4
10603 procedure Set_Elsif_Parts
10604 (N : Node_Id; Val : List_Id); -- List3
10606 procedure Set_Enclosing_Variant
10607 (N : Node_Id; Val : Node_Id); -- Node2
10609 procedure Set_End_Label
10610 (N : Node_Id; Val : Node_Id); -- Node4
10612 procedure Set_End_Span
10613 (N : Node_Id; Val : Uint); -- Uint5
10615 procedure Set_Entity
10616 (N : Node_Id; Val : Node_Id); -- Node4
10618 procedure Set_Entry_Body_Formal_Part
10619 (N : Node_Id; Val : Node_Id); -- Node5
10621 procedure Set_Entry_Call_Alternative
10622 (N : Node_Id; Val : Node_Id); -- Node1
10624 procedure Set_Entry_Call_Statement
10625 (N : Node_Id; Val : Node_Id); -- Node1
10627 procedure Set_Entry_Direct_Name
10628 (N : Node_Id; Val : Node_Id); -- Node1
10630 procedure Set_Entry_Index
10631 (N : Node_Id; Val : Node_Id); -- Node5
10633 procedure Set_Entry_Index_Specification
10634 (N : Node_Id; Val : Node_Id); -- Node4
10636 procedure Set_Etype
10637 (N : Node_Id; Val : Node_Id); -- Node5
10639 procedure Set_Exception_Choices
10640 (N : Node_Id; Val : List_Id); -- List4
10642 procedure Set_Exception_Handlers
10643 (N : Node_Id; Val : List_Id); -- List5
10645 procedure Set_Exception_Junk
10646 (N : Node_Id; Val : Boolean := True); -- Flag8
10648 procedure Set_Exception_Label
10649 (N : Node_Id; Val : Node_Id); -- Node5
10651 procedure Set_Expansion_Delayed
10652 (N : Node_Id; Val : Boolean := True); -- Flag11
10654 procedure Set_Explicit_Actual_Parameter
10655 (N : Node_Id; Val : Node_Id); -- Node3
10657 procedure Set_Explicit_Generic_Actual_Parameter
10658 (N : Node_Id; Val : Node_Id); -- Node1
10660 procedure Set_Expression
10661 (N : Node_Id; Val : Node_Id); -- Node3
10663 procedure Set_Expression_Copy
10664 (N : Node_Id; Val : Node_Id); -- Node2
10666 procedure Set_Expressions
10667 (N : Node_Id; Val : List_Id); -- List1
10669 procedure Set_First_Bit
10670 (N : Node_Id; Val : Node_Id); -- Node3
10672 procedure Set_First_Inlined_Subprogram
10673 (N : Node_Id; Val : Entity_Id); -- Node3
10675 procedure Set_First_Name
10676 (N : Node_Id; Val : Boolean := True); -- Flag5
10678 procedure Set_First_Named_Actual
10679 (N : Node_Id; Val : Node_Id); -- Node4
10681 procedure Set_First_Real_Statement
10682 (N : Node_Id; Val : Node_Id); -- Node2
10684 procedure Set_First_Subtype_Link
10685 (N : Node_Id; Val : Entity_Id); -- Node5
10687 procedure Set_Float_Truncate
10688 (N : Node_Id; Val : Boolean := True); -- Flag11
10690 procedure Set_Formal_Type_Definition
10691 (N : Node_Id; Val : Node_Id); -- Node3
10693 procedure Set_Forwards_OK
10694 (N : Node_Id; Val : Boolean := True); -- Flag5
10696 procedure Set_From_Aspect_Specification
10697 (N : Node_Id; Val : Boolean := True); -- Flag13
10699 procedure Set_From_At_End
10700 (N : Node_Id; Val : Boolean := True); -- Flag4
10702 procedure Set_From_At_Mod
10703 (N : Node_Id; Val : Boolean := True); -- Flag4
10705 procedure Set_From_Conditional_Expression
10706 (N : Node_Id; Val : Boolean := True); -- Flag1
10708 procedure Set_From_Default
10709 (N : Node_Id; Val : Boolean := True); -- Flag6
10711 procedure Set_Generalized_Indexing
10712 (N : Node_Id; Val : Node_Id); -- Node4
10714 procedure Set_Generic_Associations
10715 (N : Node_Id; Val : List_Id); -- List3
10717 procedure Set_Generic_Formal_Declarations
10718 (N : Node_Id; Val : List_Id); -- List2
10720 procedure Set_Generic_Parent
10721 (N : Node_Id; Val : Node_Id); -- Node5
10723 procedure Set_Generic_Parent_Type
10724 (N : Node_Id; Val : Node_Id); -- Node4
10726 procedure Set_Handled_Statement_Sequence
10727 (N : Node_Id; Val : Node_Id); -- Node4
10729 procedure Set_Handler_List_Entry
10730 (N : Node_Id; Val : Node_Id); -- Node2
10732 procedure Set_Has_Created_Identifier
10733 (N : Node_Id; Val : Boolean := True); -- Flag15
10735 procedure Set_Has_Dereference_Action
10736 (N : Node_Id; Val : Boolean := True); -- Flag13
10738 procedure Set_Has_Dynamic_Length_Check
10739 (N : Node_Id; Val : Boolean := True); -- Flag10
10741 procedure Set_Has_Init_Expression
10742 (N : Node_Id; Val : Boolean := True); -- Flag14
10744 procedure Set_Has_Local_Raise
10745 (N : Node_Id; Val : Boolean := True); -- Flag8
10747 procedure Set_Has_No_Elaboration_Code
10748 (N : Node_Id; Val : Boolean := True); -- Flag17
10750 procedure Set_Has_Pragma_Suppress_All
10751 (N : Node_Id; Val : Boolean := True); -- Flag14
10753 procedure Set_Has_Private_View
10754 (N : Node_Id; Val : Boolean := True); -- Flag11
10756 procedure Set_Has_Relative_Deadline_Pragma
10757 (N : Node_Id; Val : Boolean := True); -- Flag9
10759 procedure Set_Has_Self_Reference
10760 (N : Node_Id; Val : Boolean := True); -- Flag13
10762 procedure Set_Has_SP_Choice
10763 (N : Node_Id; Val : Boolean := True); -- Flag15
10765 procedure Set_Has_Storage_Size_Pragma
10766 (N : Node_Id; Val : Boolean := True); -- Flag5
10768 procedure Set_Has_Target_Names
10769 (N : Node_Id; Val : Boolean := True); -- Flag8
10771 procedure Set_Has_Wide_Character
10772 (N : Node_Id; Val : Boolean := True); -- Flag11
10774 procedure Set_Has_Wide_Wide_Character
10775 (N : Node_Id; Val : Boolean := True); -- Flag13
10777 procedure Set_Header_Size_Added
10778 (N : Node_Id; Val : Boolean := True); -- Flag11
10780 procedure Set_Hidden_By_Use_Clause
10781 (N : Node_Id; Val : Elist_Id); -- Elist5
10783 procedure Set_High_Bound
10784 (N : Node_Id; Val : Node_Id); -- Node2
10786 procedure Set_Identifier
10787 (N : Node_Id; Val : Node_Id); -- Node1
10789 procedure Set_Interface_List
10790 (N : Node_Id; Val : List_Id); -- List2
10792 procedure Set_Interface_Present
10793 (N : Node_Id; Val : Boolean := True); -- Flag16
10795 procedure Set_Implicit_With
10796 (N : Node_Id; Val : Boolean := True); -- Flag16
10798 procedure Set_Import_Interface_Present
10799 (N : Node_Id; Val : Boolean := True); -- Flag16
10801 procedure Set_In_Present
10802 (N : Node_Id; Val : Boolean := True); -- Flag15
10804 procedure Set_Includes_Infinities
10805 (N : Node_Id; Val : Boolean := True); -- Flag11
10807 procedure Set_Incomplete_View
10808 (N : Node_Id; Val : Node_Id); -- Node2
10810 procedure Set_Inherited_Discriminant
10811 (N : Node_Id; Val : Boolean := True); -- Flag13
10813 procedure Set_Instance_Spec
10814 (N : Node_Id; Val : Node_Id); -- Node5
10816 procedure Set_Intval
10817 (N : Node_Id; Val : Uint); -- Uint3
10819 procedure Set_Is_Abort_Block
10820 (N : Node_Id; Val : Boolean := True); -- Flag4
10822 procedure Set_Is_Accessibility_Actual
10823 (N : Node_Id; Val : Boolean := True); -- Flag13
10825 procedure Set_Is_Analyzed_Pragma
10826 (N : Node_Id; Val : Boolean := True); -- Flag5
10828 procedure Set_Is_Asynchronous_Call_Block
10829 (N : Node_Id; Val : Boolean := True); -- Flag7
10831 procedure Set_Is_Boolean_Aspect
10832 (N : Node_Id; Val : Boolean := True); -- Flag16
10834 procedure Set_Is_Checked
10835 (N : Node_Id; Val : Boolean := True); -- Flag11
10837 procedure Set_Is_Checked_Ghost_Pragma
10838 (N : Node_Id; Val : Boolean := True); -- Flag3
10840 procedure Set_Is_Component_Left_Opnd
10841 (N : Node_Id; Val : Boolean := True); -- Flag13
10843 procedure Set_Is_Component_Right_Opnd
10844 (N : Node_Id; Val : Boolean := True); -- Flag14
10846 procedure Set_Is_Controlling_Actual
10847 (N : Node_Id; Val : Boolean := True); -- Flag16
10849 procedure Set_Is_Declaration_Level_Node
10850 (N : Node_Id; Val : Boolean := True); -- Flag5
10852 procedure Set_Is_Delayed_Aspect
10853 (N : Node_Id; Val : Boolean := True); -- Flag14
10855 procedure Set_Is_Disabled
10856 (N : Node_Id; Val : Boolean := True); -- Flag15
10858 procedure Set_Is_Dispatching_Call
10859 (N : Node_Id; Val : Boolean := True); -- Flag6
10861 procedure Set_Is_Dynamic_Coextension
10862 (N : Node_Id; Val : Boolean := True); -- Flag18
10864 procedure Set_Is_Effective_Use_Clause
10865 (N : Node_Id; Val : Boolean := True); -- Flag1
10867 procedure Set_Is_Elaboration_Checks_OK_Node
10868 (N : Node_Id; Val : Boolean := True); -- Flag1
10870 procedure Set_Is_Elaboration_Code
10871 (N : Node_Id; Val : Boolean := True); -- Flag9
10873 procedure Set_Is_Elaboration_Warnings_OK_Node
10874 (N : Node_Id; Val : Boolean := True); -- Flag3
10876 procedure Set_Is_Elsif
10877 (N : Node_Id; Val : Boolean := True); -- Flag13
10879 procedure Set_Is_Entry_Barrier_Function
10880 (N : Node_Id; Val : Boolean := True); -- Flag8
10882 procedure Set_Is_Expanded_Build_In_Place_Call
10883 (N : Node_Id; Val : Boolean := True); -- Flag11
10885 procedure Set_Is_Expanded_Contract
10886 (N : Node_Id; Val : Boolean := True); -- Flag1
10888 procedure Set_Is_Finalization_Wrapper
10889 (N : Node_Id; Val : Boolean := True); -- Flag9
10891 procedure Set_Is_Folded_In_Parser
10892 (N : Node_Id; Val : Boolean := True); -- Flag4
10894 procedure Set_Is_Generic_Contract_Pragma
10895 (N : Node_Id; Val : Boolean := True); -- Flag2
10897 procedure Set_Is_Homogeneous_Aggregate
10898 (N : Node_Id; Val : Boolean := True); -- Flag14
10900 procedure Set_Is_Ignored
10901 (N : Node_Id; Val : Boolean := True); -- Flag9
10903 procedure Set_Is_Ignored_Ghost_Pragma
10904 (N : Node_Id; Val : Boolean := True); -- Flag8
10906 procedure Set_Is_In_Discriminant_Check
10907 (N : Node_Id; Val : Boolean := True); -- Flag11
10909 procedure Set_Is_Inherited_Pragma
10910 (N : Node_Id; Val : Boolean := True); -- Flag4
10912 procedure Set_Is_Initialization_Block
10913 (N : Node_Id; Val : Boolean := True); -- Flag1
10915 procedure Set_Is_Known_Guaranteed_ABE
10916 (N : Node_Id; Val : Boolean := True); -- Flag18
10918 procedure Set_Is_Machine_Number
10919 (N : Node_Id; Val : Boolean := True); -- Flag11
10921 procedure Set_Is_Null_Loop
10922 (N : Node_Id; Val : Boolean := True); -- Flag16
10924 procedure Set_Is_Overloaded
10925 (N : Node_Id; Val : Boolean := True); -- Flag5
10927 procedure Set_Is_Power_Of_2_For_Shift
10928 (N : Node_Id; Val : Boolean := True); -- Flag13
10930 procedure Set_Is_Preelaborable_Call
10931 (N : Node_Id; Val : Boolean := True); -- Flag7
10933 procedure Set_Is_Prefixed_Call
10934 (N : Node_Id; Val : Boolean := True); -- Flag17
10936 procedure Set_Is_Protected_Subprogram_Body
10937 (N : Node_Id; Val : Boolean := True); -- Flag7
10939 procedure Set_Is_Qualified_Universal_Literal
10940 (N : Node_Id; Val : Boolean := True); -- Flag4
10942 procedure Set_Is_Read
10943 (N : Node_Id; Val : Boolean := True); -- Flag4
10945 procedure Set_Is_Source_Call
10946 (N : Node_Id; Val : Boolean := True); -- Flag4
10948 procedure Set_Is_SPARK_Mode_On_Node
10949 (N : Node_Id; Val : Boolean := True); -- Flag2
10951 procedure Set_Is_Static_Coextension
10952 (N : Node_Id; Val : Boolean := True); -- Flag14
10954 procedure Set_Is_Static_Expression
10955 (N : Node_Id; Val : Boolean := True); -- Flag6
10957 procedure Set_Is_Subprogram_Descriptor
10958 (N : Node_Id; Val : Boolean := True); -- Flag16
10960 procedure Set_Is_Task_Allocation_Block
10961 (N : Node_Id; Val : Boolean := True); -- Flag6
10963 procedure Set_Is_Task_Body_Procedure
10964 (N : Node_Id; Val : Boolean := True); -- Flag1
10966 procedure Set_Is_Task_Master
10967 (N : Node_Id; Val : Boolean := True); -- Flag5
10969 procedure Set_Is_Write
10970 (N : Node_Id; Val : Boolean := True); -- Flag5
10972 procedure Set_Iterator_Filter
10973 (N : Node_Id; Val : Node_Id); -- Node3
10975 procedure Set_Iteration_Scheme
10976 (N : Node_Id; Val : Node_Id); -- Node2
10978 procedure Set_Iterator_Specification
10979 (N : Node_Id; Val : Node_Id); -- Node2
10981 procedure Set_Itype
10982 (N : Node_Id; Val : Entity_Id); -- Node1
10984 procedure Set_Key_Expression
10985 (N : Node_Id; Val : Node_Id); -- Node1
10987 procedure Set_Kill_Range_Check
10988 (N : Node_Id; Val : Boolean := True); -- Flag11
10990 procedure Set_Last_Bit
10991 (N : Node_Id; Val : Node_Id); -- Node4
10993 procedure Set_Last_Name
10994 (N : Node_Id; Val : Boolean := True); -- Flag6
10996 procedure Set_Library_Unit
10997 (N : Node_Id; Val : Node_Id); -- Node4
10999 procedure Set_Label_Construct
11000 (N : Node_Id; Val : Node_Id); -- Node2
11002 procedure Set_Left_Opnd
11003 (N : Node_Id; Val : Node_Id); -- Node2
11005 procedure Set_Limited_View_Installed
11006 (N : Node_Id; Val : Boolean := True); -- Flag18
11008 procedure Set_Limited_Present
11009 (N : Node_Id; Val : Boolean := True); -- Flag17
11011 procedure Set_Literals
11012 (N : Node_Id; Val : List_Id); -- List1
11014 procedure Set_Local_Raise_Not_OK
11015 (N : Node_Id; Val : Boolean := True); -- Flag7
11017 procedure Set_Local_Raise_Statements
11018 (N : Node_Id; Val : Elist_Id); -- Elist1
11020 procedure Set_Loop_Actions
11021 (N : Node_Id; Val : List_Id); -- List5
11023 procedure Set_Loop_Parameter_Specification
11024 (N : Node_Id; Val : Node_Id); -- Node4
11026 procedure Set_Low_Bound
11027 (N : Node_Id; Val : Node_Id); -- Node1
11029 procedure Set_Mod_Clause
11030 (N : Node_Id; Val : Node_Id); -- Node2
11032 procedure Set_More_Ids
11033 (N : Node_Id; Val : Boolean := True); -- Flag5
11035 procedure Set_Must_Be_Byte_Aligned
11036 (N : Node_Id; Val : Boolean := True); -- Flag14
11038 procedure Set_Must_Not_Freeze
11039 (N : Node_Id; Val : Boolean := True); -- Flag8
11041 procedure Set_Must_Not_Override
11042 (N : Node_Id; Val : Boolean := True); -- Flag15
11044 procedure Set_Must_Override
11045 (N : Node_Id; Val : Boolean := True); -- Flag14
11047 procedure Set_Name
11048 (N : Node_Id; Val : Node_Id); -- Node2
11050 procedure Set_Names
11051 (N : Node_Id; Val : List_Id); -- List2
11053 procedure Set_Next_Entity
11054 (N : Node_Id; Val : Node_Id); -- Node2
11056 procedure Set_Next_Exit_Statement
11057 (N : Node_Id; Val : Node_Id); -- Node3
11059 procedure Set_Next_Implicit_With
11060 (N : Node_Id; Val : Node_Id); -- Node3
11062 procedure Set_Next_Named_Actual
11063 (N : Node_Id; Val : Node_Id); -- Node4
11065 procedure Set_Next_Pragma
11066 (N : Node_Id; Val : Node_Id); -- Node1
11068 procedure Set_Next_Rep_Item
11069 (N : Node_Id; Val : Node_Id); -- Node5
11071 procedure Set_Next_Use_Clause
11072 (N : Node_Id; Val : Node_Id); -- Node3
11074 procedure Set_No_Ctrl_Actions
11075 (N : Node_Id; Val : Boolean := True); -- Flag7
11077 procedure Set_No_Elaboration_Check
11078 (N : Node_Id; Val : Boolean := True); -- Flag4
11080 procedure Set_No_Entities_Ref_In_Spec
11081 (N : Node_Id; Val : Boolean := True); -- Flag8
11083 procedure Set_No_Initialization
11084 (N : Node_Id; Val : Boolean := True); -- Flag13
11086 procedure Set_No_Minimize_Eliminate
11087 (N : Node_Id; Val : Boolean := True); -- Flag17
11089 procedure Set_No_Side_Effect_Removal
11090 (N : Node_Id; Val : Boolean := True); -- Flag17
11092 procedure Set_No_Truncation
11093 (N : Node_Id; Val : Boolean := True); -- Flag17
11095 procedure Set_Null_Excluding_Subtype
11096 (N : Node_Id; Val : Boolean := True); -- Flag16
11098 procedure Set_Null_Exclusion_Present
11099 (N : Node_Id; Val : Boolean := True); -- Flag11
11101 procedure Set_Null_Exclusion_In_Return_Present
11102 (N : Node_Id; Val : Boolean := True); -- Flag14
11104 procedure Set_Null_Present
11105 (N : Node_Id; Val : Boolean := True); -- Flag13
11107 procedure Set_Null_Record_Present
11108 (N : Node_Id; Val : Boolean := True); -- Flag17
11110 procedure Set_Null_Statement
11111 (N : Node_Id; Val : Node_Id); -- Node2
11113 procedure Set_Object_Definition
11114 (N : Node_Id; Val : Node_Id); -- Node4
11116 procedure Set_Of_Present
11117 (N : Node_Id; Val : Boolean := True); -- Flag16
11119 procedure Set_Original_Discriminant
11120 (N : Node_Id; Val : Node_Id); -- Node2
11122 procedure Set_Original_Entity
11123 (N : Node_Id; Val : Entity_Id); -- Node2
11125 procedure Set_Others_Discrete_Choices
11126 (N : Node_Id; Val : List_Id); -- List1
11128 procedure Set_Out_Present
11129 (N : Node_Id; Val : Boolean := True); -- Flag17
11131 procedure Set_Parameter_Associations
11132 (N : Node_Id; Val : List_Id); -- List3
11134 procedure Set_Parameter_Specifications
11135 (N : Node_Id; Val : List_Id); -- List3
11137 procedure Set_Parameter_Type
11138 (N : Node_Id; Val : Node_Id); -- Node2
11140 procedure Set_Parent_Spec
11141 (N : Node_Id; Val : Node_Id); -- Node4
11143 procedure Set_Parent_With
11144 (N : Node_Id; Val : Boolean := True); -- Flag1
11146 procedure Set_Position
11147 (N : Node_Id; Val : Node_Id); -- Node2
11149 procedure Set_Pragma_Argument_Associations
11150 (N : Node_Id; Val : List_Id); -- List2
11152 procedure Set_Pragma_Identifier
11153 (N : Node_Id; Val : Node_Id); -- Node4
11155 procedure Set_Pragmas_After
11156 (N : Node_Id; Val : List_Id); -- List5
11158 procedure Set_Pragmas_Before
11159 (N : Node_Id; Val : List_Id); -- List4
11161 procedure Set_Pre_Post_Conditions
11162 (N : Node_Id; Val : Node_Id); -- Node1
11164 procedure Set_Prefix
11165 (N : Node_Id; Val : Node_Id); -- Node3
11167 procedure Set_Premature_Use
11168 (N : Node_Id; Val : Node_Id); -- Node5
11170 procedure Set_Present_Expr
11171 (N : Node_Id; Val : Uint); -- Uint3
11173 procedure Set_Prev_Ids
11174 (N : Node_Id; Val : Boolean := True); -- Flag6
11176 procedure Set_Prev_Use_Clause
11177 (N : Node_Id; Val : Node_Id); -- Node1
11179 procedure Set_Print_In_Hex
11180 (N : Node_Id; Val : Boolean := True); -- Flag13
11182 procedure Set_Private_Declarations
11183 (N : Node_Id; Val : List_Id); -- List3
11185 procedure Set_Private_Present
11186 (N : Node_Id; Val : Boolean := True); -- Flag15
11188 procedure Set_Procedure_To_Call
11189 (N : Node_Id; Val : Node_Id); -- Node2
11191 procedure Set_Proper_Body
11192 (N : Node_Id; Val : Node_Id); -- Node1
11194 procedure Set_Protected_Definition
11195 (N : Node_Id; Val : Node_Id); -- Node3
11197 procedure Set_Protected_Present
11198 (N : Node_Id; Val : Boolean := True); -- Flag6
11200 procedure Set_Raises_Constraint_Error
11201 (N : Node_Id; Val : Boolean := True); -- Flag7
11203 procedure Set_Range_Constraint
11204 (N : Node_Id; Val : Node_Id); -- Node4
11206 procedure Set_Range_Expression
11207 (N : Node_Id; Val : Node_Id); -- Node4
11209 procedure Set_Real_Range_Specification
11210 (N : Node_Id; Val : Node_Id); -- Node4
11212 procedure Set_Realval
11213 (N : Node_Id; Val : Ureal); -- Ureal3
11215 procedure Set_Reason
11216 (N : Node_Id; Val : Uint); -- Uint3
11218 procedure Set_Record_Extension_Part
11219 (N : Node_Id; Val : Node_Id); -- Node3
11221 procedure Set_Redundant_Use
11222 (N : Node_Id; Val : Boolean := True); -- Flag13
11224 procedure Set_Renaming_Exception
11225 (N : Node_Id; Val : Node_Id); -- Node2
11227 procedure Set_Result_Definition
11228 (N : Node_Id; Val : Node_Id); -- Node4
11230 procedure Set_Return_Object_Declarations
11231 (N : Node_Id; Val : List_Id); -- List3
11233 procedure Set_Return_Statement_Entity
11234 (N : Node_Id; Val : Node_Id); -- Node5
11236 procedure Set_Reverse_Present
11237 (N : Node_Id; Val : Boolean := True); -- Flag15
11239 procedure Set_Right_Opnd
11240 (N : Node_Id; Val : Node_Id); -- Node3
11242 procedure Set_Rounded_Result
11243 (N : Node_Id; Val : Boolean := True); -- Flag18
11245 procedure Set_Save_Invocation_Graph_Of_Body
11246 (N : Node_Id; Val : Boolean := True); -- Flag1
11248 procedure Set_SCIL_Controlling_Tag
11249 (N : Node_Id; Val : Node_Id); -- Node5
11251 procedure Set_SCIL_Entity
11252 (N : Node_Id; Val : Node_Id); -- Node4
11254 procedure Set_SCIL_Tag_Value
11255 (N : Node_Id; Val : Node_Id); -- Node5
11257 procedure Set_SCIL_Target_Prim
11258 (N : Node_Id; Val : Node_Id); -- Node2
11260 procedure Set_Scope
11261 (N : Node_Id; Val : Node_Id); -- Node3
11263 procedure Set_Select_Alternatives
11264 (N : Node_Id; Val : List_Id); -- List1
11266 procedure Set_Selector_Name
11267 (N : Node_Id; Val : Node_Id); -- Node2
11269 procedure Set_Selector_Names
11270 (N : Node_Id; Val : List_Id); -- List1
11272 procedure Set_Shift_Count_OK
11273 (N : Node_Id; Val : Boolean := True); -- Flag4
11275 procedure Set_Source_Type
11276 (N : Node_Id; Val : Entity_Id); -- Node1
11278 procedure Set_Specification
11279 (N : Node_Id; Val : Node_Id); -- Node1
11281 procedure Set_Split_PPC
11282 (N : Node_Id; Val : Boolean); -- Flag17
11284 procedure Set_Statements
11285 (N : Node_Id; Val : List_Id); -- List3
11287 procedure Set_Storage_Pool
11288 (N : Node_Id; Val : Node_Id); -- Node1
11290 procedure Set_Subpool_Handle_Name
11291 (N : Node_Id; Val : Node_Id); -- Node4
11293 procedure Set_Strval
11294 (N : Node_Id; Val : String_Id); -- Str3
11296 procedure Set_Subtype_Indication
11297 (N : Node_Id; Val : Node_Id); -- Node5
11299 procedure Set_Subtype_Mark
11300 (N : Node_Id; Val : Node_Id); -- Node4
11302 procedure Set_Subtype_Marks
11303 (N : Node_Id; Val : List_Id); -- List2
11305 procedure Set_Suppress_Assignment_Checks
11306 (N : Node_Id; Val : Boolean := True); -- Flag18
11308 procedure Set_Suppress_Loop_Warnings
11309 (N : Node_Id; Val : Boolean := True); -- Flag17
11311 procedure Set_Synchronized_Present
11312 (N : Node_Id; Val : Boolean := True); -- Flag7
11314 procedure Set_Tagged_Present
11315 (N : Node_Id; Val : Boolean := True); -- Flag15
11317 procedure Set_Target
11318 (N : Node_Id; Val : Entity_Id); -- Node1
11320 procedure Set_Target_Type
11321 (N : Node_Id; Val : Entity_Id); -- Node2
11323 procedure Set_Task_Definition
11324 (N : Node_Id; Val : Node_Id); -- Node3
11326 procedure Set_Task_Present
11327 (N : Node_Id; Val : Boolean := True); -- Flag5
11329 procedure Set_Then_Actions
11330 (N : Node_Id; Val : List_Id); -- List2
11332 procedure Set_Then_Statements
11333 (N : Node_Id; Val : List_Id); -- List2
11335 procedure Set_Triggering_Alternative
11336 (N : Node_Id; Val : Node_Id); -- Node1
11338 procedure Set_Triggering_Statement
11339 (N : Node_Id; Val : Node_Id); -- Node1
11341 procedure Set_TSS_Elist
11342 (N : Node_Id; Val : Elist_Id); -- Elist3
11344 procedure Set_Type_Definition
11345 (N : Node_Id; Val : Node_Id); -- Node3
11347 procedure Set_Uneval_Old_Accept
11348 (N : Node_Id; Val : Boolean := True); -- Flag7
11350 procedure Set_Uneval_Old_Warn
11351 (N : Node_Id; Val : Boolean := True); -- Flag18
11353 procedure Set_Unit
11354 (N : Node_Id; Val : Node_Id); -- Node2
11356 procedure Set_Unknown_Discriminants_Present
11357 (N : Node_Id; Val : Boolean := True); -- Flag13
11359 procedure Set_Unreferenced_In_Spec
11360 (N : Node_Id; Val : Boolean := True); -- Flag7
11362 procedure Set_Variant_Part
11363 (N : Node_Id; Val : Node_Id); -- Node4
11365 procedure Set_Variants
11366 (N : Node_Id; Val : List_Id); -- List1
11368 procedure Set_Visible_Declarations
11369 (N : Node_Id; Val : List_Id); -- List2
11371 procedure Set_Uninitialized_Variable
11372 (N : Node_Id; Val : Node_Id); -- Node3
11374 procedure Set_Used_Operations
11375 (N : Node_Id; Val : Elist_Id); -- Elist2
11377 procedure Set_Was_Attribute_Reference
11378 (N : Node_Id; Val : Boolean := True); -- Flag2
11380 procedure Set_Was_Default_Init_Box_Association
11381 (N : Node_Id; Val : Boolean := True); -- Flag14
11383 procedure Set_Was_Expression_Function
11384 (N : Node_Id; Val : Boolean := True); -- Flag18
11386 procedure Set_Was_Originally_Stub
11387 (N : Node_Id; Val : Boolean := True); -- Flag13
11389 -------------------------
11390 -- Iterator Procedures --
11391 -------------------------
11393 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11395 procedure Next_Entity (N : in out Node_Id);
11396 procedure Next_Named_Actual (N : in out Node_Id);
11397 procedure Next_Rep_Item (N : in out Node_Id);
11398 procedure Next_Use_Clause (N : in out Node_Id);
11400 -------------------------------------------
11401 -- Miscellaneous Tree Access Subprograms --
11402 -------------------------------------------
11404 function End_Location (N : Node_Id) return Source_Ptr;
11405 -- N is an N_If_Statement or N_Case_Statement node, and this function
11406 -- returns the location of the IF token in the END IF sequence by
11407 -- translating the value of the End_Span field.
11409 -- WARNING: There is a matching C declaration of this subprogram in fe.h
11411 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11412 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11413 -- the End_Span field to correspond to the given value S. In other words,
11414 -- End_Span is set to the difference between S and Sloc (N), the starting
11415 -- location.
11417 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11418 -- Given an argument to a pragma Arg, this function returns the expression
11419 -- for the argument. This is Arg itself, or, in the case where Arg is a
11420 -- pragma argument association node, the expression from this node.
11422 -----------------------
11423 -- Utility Functions --
11424 -----------------------
11426 procedure Map_Pragma_Name (From, To : Name_Id);
11427 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11428 -- From to pragma name To, so From can be used as a synonym for To.
11430 Too_Many_Pragma_Mappings : exception;
11431 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11432 -- programs will use it at all, and those that do will use it approximately
11433 -- once or twice.
11435 function Pragma_Name (N : Node_Id) return Name_Id;
11436 -- Obtain the name of pragma N from the Chars field of its identifier. If
11437 -- the pragma has been renamed using Rename_Pragma, this routine returns
11438 -- the name of the renaming.
11440 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11441 -- Obtain the name of pragma N from the Chars field of its identifier. This
11442 -- form of name extraction does not take into account renamings performed
11443 -- by Rename_Pragma.
11445 -----------------------------
11446 -- Syntactic Parent Tables --
11447 -----------------------------
11449 -- These tables show for each node, and for each of the five fields,
11450 -- whether the corresponding field is syntactic (True) or semantic (False).
11451 -- Unused entries are also set to False.
11453 subtype Field_Num is Natural range 1 .. 5;
11455 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11457 -- Following entries can be built automatically from the sinfo sources
11458 -- using the makeisf utility (currently this program is in spitbol).
11460 N_Identifier =>
11461 (1 => True, -- Chars (Name1)
11462 2 => False, -- Original_Discriminant (Node2-Sem)
11463 3 => False, -- unused
11464 4 => False, -- Entity (Node4-Sem)
11465 5 => False), -- Etype (Node5-Sem)
11467 N_Integer_Literal =>
11468 (1 => False, -- unused
11469 2 => False, -- Original_Entity (Node2-Sem)
11470 3 => True, -- Intval (Uint3)
11471 4 => False, -- unused
11472 5 => False), -- Etype (Node5-Sem)
11474 N_Real_Literal =>
11475 (1 => False, -- unused
11476 2 => False, -- Original_Entity (Node2-Sem)
11477 3 => True, -- Realval (Ureal3)
11478 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11479 5 => False), -- Etype (Node5-Sem)
11481 N_Character_Literal =>
11482 (1 => True, -- Chars (Name1)
11483 2 => True, -- Char_Literal_Value (Uint2)
11484 3 => False, -- unused
11485 4 => False, -- Entity (Node4-Sem)
11486 5 => False), -- Etype (Node5-Sem)
11488 N_String_Literal =>
11489 (1 => False, -- unused
11490 2 => False, -- unused
11491 3 => True, -- Strval (Str3)
11492 4 => False, -- unused
11493 5 => False), -- Etype (Node5-Sem)
11495 N_Pragma =>
11496 (1 => False, -- Next_Pragma (Node1-Sem)
11497 2 => True, -- Pragma_Argument_Associations (List2)
11498 3 => False, -- Corresponding_Aspect (Node3-Sem)
11499 4 => True, -- Pragma_Identifier (Node4)
11500 5 => False), -- Next_Rep_Item (Node5-Sem)
11502 N_Pragma_Argument_Association =>
11503 (1 => True, -- Chars (Name1)
11504 2 => False, -- Expression_Copy (Node2-Sem)
11505 3 => True, -- Expression (Node3)
11506 4 => False, -- unused
11507 5 => False), -- unused
11509 N_Defining_Identifier =>
11510 (1 => True, -- Chars (Name1)
11511 2 => False, -- Next_Entity (Node2-Sem)
11512 3 => False, -- Scope (Node3-Sem)
11513 4 => False, -- unused
11514 5 => False), -- Etype (Node5-Sem)
11516 N_Full_Type_Declaration =>
11517 (1 => True, -- Defining_Identifier (Node1)
11518 2 => False, -- Incomplete_View (Node2-Sem)
11519 3 => True, -- Type_Definition (Node3)
11520 4 => True, -- Discriminant_Specifications (List4)
11521 5 => False), -- unused
11523 N_Subtype_Declaration =>
11524 (1 => True, -- Defining_Identifier (Node1)
11525 2 => False, -- unused
11526 3 => False, -- unused
11527 4 => False, -- Generic_Parent_Type (Node4-Sem)
11528 5 => True), -- Subtype_Indication (Node5)
11530 N_Subtype_Indication =>
11531 (1 => False, -- unused
11532 2 => False, -- unused
11533 3 => True, -- Constraint (Node3)
11534 4 => True, -- Subtype_Mark (Node4)
11535 5 => False), -- Etype (Node5-Sem)
11537 N_Object_Declaration =>
11538 (1 => True, -- Defining_Identifier (Node1)
11539 2 => False, -- Handler_List_Entry (Node2-Sem)
11540 3 => True, -- Expression (Node3)
11541 4 => True, -- Object_Definition (Node4)
11542 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11544 N_Number_Declaration =>
11545 (1 => True, -- Defining_Identifier (Node1)
11546 2 => False, -- unused
11547 3 => True, -- Expression (Node3)
11548 4 => False, -- unused
11549 5 => False), -- unused
11551 N_Derived_Type_Definition =>
11552 (1 => False, -- unused
11553 2 => True, -- Interface_List (List2)
11554 3 => True, -- Record_Extension_Part (Node3)
11555 4 => False, -- unused
11556 5 => True), -- Subtype_Indication (Node5)
11558 N_Range_Constraint =>
11559 (1 => False, -- unused
11560 2 => False, -- unused
11561 3 => False, -- unused
11562 4 => True, -- Range_Expression (Node4)
11563 5 => False), -- unused
11565 N_Range =>
11566 (1 => True, -- Low_Bound (Node1)
11567 2 => True, -- High_Bound (Node2)
11568 3 => False, -- unused
11569 4 => False, -- unused
11570 5 => False), -- Etype (Node5-Sem)
11572 N_Enumeration_Type_Definition =>
11573 (1 => True, -- Literals (List1)
11574 2 => False, -- unused
11575 3 => False, -- unused
11576 4 => True, -- End_Label (Node4)
11577 5 => False), -- unused
11579 N_Defining_Character_Literal =>
11580 (1 => True, -- Chars (Name1)
11581 2 => False, -- Next_Entity (Node2-Sem)
11582 3 => False, -- Scope (Node3-Sem)
11583 4 => False, -- unused
11584 5 => False), -- Etype (Node5-Sem)
11586 N_Signed_Integer_Type_Definition =>
11587 (1 => True, -- Low_Bound (Node1)
11588 2 => True, -- High_Bound (Node2)
11589 3 => False, -- unused
11590 4 => False, -- unused
11591 5 => False), -- unused
11593 N_Modular_Type_Definition =>
11594 (1 => False, -- unused
11595 2 => False, -- unused
11596 3 => True, -- Expression (Node3)
11597 4 => False, -- unused
11598 5 => False), -- unused
11600 N_Floating_Point_Definition =>
11601 (1 => False, -- unused
11602 2 => True, -- Digits_Expression (Node2)
11603 3 => False, -- unused
11604 4 => True, -- Real_Range_Specification (Node4)
11605 5 => False), -- unused
11607 N_Real_Range_Specification =>
11608 (1 => True, -- Low_Bound (Node1)
11609 2 => True, -- High_Bound (Node2)
11610 3 => False, -- unused
11611 4 => False, -- unused
11612 5 => False), -- unused
11614 N_Ordinary_Fixed_Point_Definition =>
11615 (1 => False, -- unused
11616 2 => False, -- unused
11617 3 => True, -- Delta_Expression (Node3)
11618 4 => True, -- Real_Range_Specification (Node4)
11619 5 => False), -- unused
11621 N_Decimal_Fixed_Point_Definition =>
11622 (1 => False, -- unused
11623 2 => True, -- Digits_Expression (Node2)
11624 3 => True, -- Delta_Expression (Node3)
11625 4 => True, -- Real_Range_Specification (Node4)
11626 5 => False), -- unused
11628 N_Digits_Constraint =>
11629 (1 => False, -- unused
11630 2 => True, -- Digits_Expression (Node2)
11631 3 => False, -- unused
11632 4 => True, -- Range_Constraint (Node4)
11633 5 => False), -- unused
11635 N_Unconstrained_Array_Definition =>
11636 (1 => False, -- unused
11637 2 => True, -- Subtype_Marks (List2)
11638 3 => False, -- unused
11639 4 => True, -- Component_Definition (Node4)
11640 5 => False), -- unused
11642 N_Constrained_Array_Definition =>
11643 (1 => False, -- unused
11644 2 => True, -- Discrete_Subtype_Definitions (List2)
11645 3 => False, -- unused
11646 4 => True, -- Component_Definition (Node4)
11647 5 => False), -- unused
11649 N_Component_Definition =>
11650 (1 => False, -- unused
11651 2 => False, -- unused
11652 3 => True, -- Access_Definition (Node3)
11653 4 => False, -- unused
11654 5 => True), -- Subtype_Indication (Node5)
11656 N_Discriminant_Specification =>
11657 (1 => True, -- Defining_Identifier (Node1)
11658 2 => False, -- unused
11659 3 => True, -- Expression (Node3)
11660 4 => False, -- unused
11661 5 => True), -- Discriminant_Type (Node5)
11663 N_Index_Or_Discriminant_Constraint =>
11664 (1 => True, -- Constraints (List1)
11665 2 => False, -- unused
11666 3 => False, -- unused
11667 4 => False, -- unused
11668 5 => False), -- unused
11670 N_Discriminant_Association =>
11671 (1 => True, -- Selector_Names (List1)
11672 2 => False, -- unused
11673 3 => True, -- Expression (Node3)
11674 4 => False, -- unused
11675 5 => False), -- unused
11677 N_Record_Definition =>
11678 (1 => True, -- Component_List (Node1)
11679 2 => True, -- Interface_List (List2)
11680 3 => False, -- unused
11681 4 => True, -- End_Label (Node4)
11682 5 => False), -- unused
11684 N_Component_List =>
11685 (1 => False, -- unused
11686 2 => False, -- unused
11687 3 => True, -- Component_Items (List3)
11688 4 => True, -- Variant_Part (Node4)
11689 5 => False), -- unused
11691 N_Component_Declaration =>
11692 (1 => True, -- Defining_Identifier (Node1)
11693 2 => False, -- unused
11694 3 => True, -- Expression (Node3)
11695 4 => True, -- Component_Definition (Node4)
11696 5 => False), -- unused
11698 N_Variant_Part =>
11699 (1 => True, -- Variants (List1)
11700 2 => True, -- Name (Node2)
11701 3 => False, -- unused
11702 4 => False, -- unused
11703 5 => False), -- unused
11705 N_Variant =>
11706 (1 => True, -- Component_List (Node1)
11707 2 => False, -- Enclosing_Variant (Node2-Sem)
11708 3 => False, -- Present_Expr (Uint3-Sem)
11709 4 => True, -- Discrete_Choices (List4)
11710 5 => False), -- Dcheck_Function (Node5-Sem)
11712 N_Others_Choice =>
11713 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11714 2 => False, -- unused
11715 3 => False, -- unused
11716 4 => False, -- unused
11717 5 => False), -- unused
11719 N_Access_To_Object_Definition =>
11720 (1 => False, -- unused
11721 2 => False, -- unused
11722 3 => False, -- unused
11723 4 => False, -- unused
11724 5 => True), -- Subtype_Indication (Node5)
11726 N_Access_Function_Definition =>
11727 (1 => False, -- unused
11728 2 => False, -- unused
11729 3 => True, -- Parameter_Specifications (List3)
11730 4 => True, -- Result_Definition (Node4)
11731 5 => False), -- unused
11733 N_Access_Procedure_Definition =>
11734 (1 => False, -- unused
11735 2 => False, -- unused
11736 3 => True, -- Parameter_Specifications (List3)
11737 4 => False, -- unused
11738 5 => False), -- unused
11740 N_Access_Definition =>
11741 (1 => False, -- unused
11742 2 => False, -- unused
11743 3 => True, -- Access_To_Subprogram_Definition (Node3)
11744 4 => True, -- Subtype_Mark (Node4)
11745 5 => False), -- unused
11747 N_Incomplete_Type_Declaration =>
11748 (1 => True, -- Defining_Identifier (Node1)
11749 2 => False, -- unused
11750 3 => False, -- unused
11751 4 => True, -- Discriminant_Specifications (List4)
11752 5 => False), -- Premature_Use
11754 N_Explicit_Dereference =>
11755 (1 => False, -- unused
11756 2 => False, -- unused
11757 3 => True, -- Prefix (Node3)
11758 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11759 5 => False), -- Etype (Node5-Sem)
11761 N_Indexed_Component =>
11762 (1 => True, -- Expressions (List1)
11763 2 => False, -- unused
11764 3 => True, -- Prefix (Node3)
11765 4 => False, -- Generalized_Indexing (Node4-Sem)
11766 5 => False), -- Etype (Node5-Sem)
11768 N_Slice =>
11769 (1 => False, -- unused
11770 2 => False, -- unused
11771 3 => True, -- Prefix (Node3)
11772 4 => True, -- Discrete_Range (Node4)
11773 5 => False), -- Etype (Node5-Sem)
11775 N_Selected_Component =>
11776 (1 => False, -- unused
11777 2 => True, -- Selector_Name (Node2)
11778 3 => True, -- Prefix (Node3)
11779 4 => False, -- unused
11780 5 => False), -- Etype (Node5-Sem)
11782 N_Attribute_Reference =>
11783 (1 => True, -- Expressions (List1)
11784 2 => True, -- Attribute_Name (Name2)
11785 3 => True, -- Prefix (Node3)
11786 4 => False, -- Entity (Node4-Sem)
11787 5 => False), -- Etype (Node5-Sem)
11789 N_Aggregate =>
11790 (1 => True, -- Expressions (List1)
11791 2 => True, -- Component_Associations (List2)
11792 3 => False, -- Aggregate_Bounds (Node3-Sem)
11793 4 => False, -- unused
11794 5 => False), -- Etype (Node5-Sem)
11796 N_Component_Association =>
11797 (1 => True, -- Choices (List1)
11798 2 => False, -- unused
11799 3 => True, -- Expression (Node3)
11800 4 => False, -- unused
11801 5 => True), -- Loop_Actions (List5-Sem);
11803 N_Iterated_Component_Association =>
11804 (1 => True, -- Defining_Identifier (Node1)
11805 2 => True, -- Iterator_Specification
11806 3 => True, -- Expression (Node3)
11807 4 => True, -- Discrete_Choices (List4)
11808 5 => True), -- Loop_Actions (List5-Sem);
11810 N_Iterated_Element_Association =>
11811 (1 => True, -- Key_expression
11812 2 => True, -- Iterator_Specification
11813 3 => True, -- Expression (Node3)
11814 4 => True, -- Loop_Parameter_Specification
11815 5 => True), -- Loop_Actions (List5-Sem);
11817 N_Delta_Aggregate =>
11818 (1 => False, -- Unused
11819 2 => True, -- Component_Associations (List2)
11820 3 => True, -- Expression (Node3)
11821 4 => False, -- Unused
11822 5 => False), -- Etype (Node5-Sem)
11824 N_Extension_Aggregate =>
11825 (1 => True, -- Expressions (List1)
11826 2 => True, -- Component_Associations (List2)
11827 3 => True, -- Ancestor_Part (Node3)
11828 4 => False, -- unused
11829 5 => False), -- Etype (Node5-Sem)
11831 N_Null =>
11832 (1 => False, -- unused
11833 2 => False, -- unused
11834 3 => False, -- unused
11835 4 => False, -- unused
11836 5 => False), -- Etype (Node5-Sem)
11838 N_And_Then =>
11839 (1 => False, -- Actions (List1-Sem)
11840 2 => True, -- Left_Opnd (Node2)
11841 3 => True, -- Right_Opnd (Node3)
11842 4 => False, -- unused
11843 5 => False), -- Etype (Node5-Sem)
11845 N_Or_Else =>
11846 (1 => False, -- Actions (List1-Sem)
11847 2 => True, -- Left_Opnd (Node2)
11848 3 => True, -- Right_Opnd (Node3)
11849 4 => False, -- unused
11850 5 => False), -- Etype (Node5-Sem)
11852 N_In =>
11853 (1 => False, -- unused
11854 2 => True, -- Left_Opnd (Node2)
11855 3 => True, -- Right_Opnd (Node3)
11856 4 => True, -- Alternatives (List4)
11857 5 => False), -- Etype (Node5-Sem)
11859 N_Not_In =>
11860 (1 => False, -- unused
11861 2 => True, -- Left_Opnd (Node2)
11862 3 => True, -- Right_Opnd (Node3)
11863 4 => True, -- Alternatives (List4)
11864 5 => False), -- Etype (Node5-Sem)
11866 N_Op_And =>
11867 (1 => True, -- Chars (Name1)
11868 2 => True, -- Left_Opnd (Node2)
11869 3 => True, -- Right_Opnd (Node3)
11870 4 => False, -- Entity (Node4-Sem)
11871 5 => False), -- Etype (Node5-Sem)
11873 N_Op_Or =>
11874 (1 => True, -- Chars (Name1)
11875 2 => True, -- Left_Opnd (Node2)
11876 3 => True, -- Right_Opnd (Node3)
11877 4 => False, -- Entity (Node4-Sem)
11878 5 => False), -- Etype (Node5-Sem)
11880 N_Op_Xor =>
11881 (1 => True, -- Chars (Name1)
11882 2 => True, -- Left_Opnd (Node2)
11883 3 => True, -- Right_Opnd (Node3)
11884 4 => False, -- Entity (Node4-Sem)
11885 5 => False), -- Etype (Node5-Sem)
11887 N_Op_Eq =>
11888 (1 => True, -- Chars (Name1)
11889 2 => True, -- Left_Opnd (Node2)
11890 3 => True, -- Right_Opnd (Node3)
11891 4 => False, -- Entity (Node4-Sem)
11892 5 => False), -- Etype (Node5-Sem)
11894 N_Op_Ne =>
11895 (1 => True, -- Chars (Name1)
11896 2 => True, -- Left_Opnd (Node2)
11897 3 => True, -- Right_Opnd (Node3)
11898 4 => False, -- Entity (Node4-Sem)
11899 5 => False), -- Etype (Node5-Sem)
11901 N_Op_Lt =>
11902 (1 => True, -- Chars (Name1)
11903 2 => True, -- Left_Opnd (Node2)
11904 3 => True, -- Right_Opnd (Node3)
11905 4 => False, -- Entity (Node4-Sem)
11906 5 => False), -- Etype (Node5-Sem)
11908 N_Op_Le =>
11909 (1 => True, -- Chars (Name1)
11910 2 => True, -- Left_Opnd (Node2)
11911 3 => True, -- Right_Opnd (Node3)
11912 4 => False, -- Entity (Node4-Sem)
11913 5 => False), -- Etype (Node5-Sem)
11915 N_Op_Gt =>
11916 (1 => True, -- Chars (Name1)
11917 2 => True, -- Left_Opnd (Node2)
11918 3 => True, -- Right_Opnd (Node3)
11919 4 => False, -- Entity (Node4-Sem)
11920 5 => False), -- Etype (Node5-Sem)
11922 N_Op_Ge =>
11923 (1 => True, -- Chars (Name1)
11924 2 => True, -- Left_Opnd (Node2)
11925 3 => True, -- Right_Opnd (Node3)
11926 4 => False, -- Entity (Node4-Sem)
11927 5 => False), -- Etype (Node5-Sem)
11929 N_Op_Add =>
11930 (1 => True, -- Chars (Name1)
11931 2 => True, -- Left_Opnd (Node2)
11932 3 => True, -- Right_Opnd (Node3)
11933 4 => False, -- Entity (Node4-Sem)
11934 5 => False), -- Etype (Node5-Sem)
11936 N_Op_Subtract =>
11937 (1 => True, -- Chars (Name1)
11938 2 => True, -- Left_Opnd (Node2)
11939 3 => True, -- Right_Opnd (Node3)
11940 4 => False, -- Entity (Node4-Sem)
11941 5 => False), -- Etype (Node5-Sem)
11943 N_Op_Concat =>
11944 (1 => True, -- Chars (Name1)
11945 2 => True, -- Left_Opnd (Node2)
11946 3 => True, -- Right_Opnd (Node3)
11947 4 => False, -- Entity (Node4-Sem)
11948 5 => False), -- Etype (Node5-Sem)
11950 N_Op_Multiply =>
11951 (1 => True, -- Chars (Name1)
11952 2 => True, -- Left_Opnd (Node2)
11953 3 => True, -- Right_Opnd (Node3)
11954 4 => False, -- Entity (Node4-Sem)
11955 5 => False), -- Etype (Node5-Sem)
11957 N_Op_Divide =>
11958 (1 => True, -- Chars (Name1)
11959 2 => True, -- Left_Opnd (Node2)
11960 3 => True, -- Right_Opnd (Node3)
11961 4 => False, -- Entity (Node4-Sem)
11962 5 => False), -- Etype (Node5-Sem)
11964 N_Op_Mod =>
11965 (1 => True, -- Chars (Name1)
11966 2 => True, -- Left_Opnd (Node2)
11967 3 => True, -- Right_Opnd (Node3)
11968 4 => False, -- Entity (Node4-Sem)
11969 5 => False), -- Etype (Node5-Sem)
11971 N_Op_Rem =>
11972 (1 => True, -- Chars (Name1)
11973 2 => True, -- Left_Opnd (Node2)
11974 3 => True, -- Right_Opnd (Node3)
11975 4 => False, -- Entity (Node4-Sem)
11976 5 => False), -- Etype (Node5-Sem)
11978 N_Op_Expon =>
11979 (1 => True, -- Chars (Name1)
11980 2 => True, -- Left_Opnd (Node2)
11981 3 => True, -- Right_Opnd (Node3)
11982 4 => False, -- Entity (Node4-Sem)
11983 5 => False), -- Etype (Node5-Sem)
11985 N_Op_Plus =>
11986 (1 => True, -- Chars (Name1)
11987 2 => False, -- unused
11988 3 => True, -- Right_Opnd (Node3)
11989 4 => False, -- Entity (Node4-Sem)
11990 5 => False), -- Etype (Node5-Sem)
11992 N_Op_Minus =>
11993 (1 => True, -- Chars (Name1)
11994 2 => False, -- unused
11995 3 => True, -- Right_Opnd (Node3)
11996 4 => False, -- Entity (Node4-Sem)
11997 5 => False), -- Etype (Node5-Sem)
11999 N_Op_Abs =>
12000 (1 => True, -- Chars (Name1)
12001 2 => False, -- unused
12002 3 => True, -- Right_Opnd (Node3)
12003 4 => False, -- Entity (Node4-Sem)
12004 5 => False), -- Etype (Node5-Sem)
12006 N_Op_Not =>
12007 (1 => True, -- Chars (Name1)
12008 2 => False, -- unused
12009 3 => True, -- Right_Opnd (Node3)
12010 4 => False, -- Entity (Node4-Sem)
12011 5 => False), -- Etype (Node5-Sem)
12013 N_Type_Conversion =>
12014 (1 => False, -- unused
12015 2 => False, -- unused
12016 3 => True, -- Expression (Node3)
12017 4 => True, -- Subtype_Mark (Node4)
12018 5 => False), -- Etype (Node5-Sem)
12020 N_Qualified_Expression =>
12021 (1 => False, -- unused
12022 2 => False, -- unused
12023 3 => True, -- Expression (Node3)
12024 4 => True, -- Subtype_Mark (Node4)
12025 5 => False), -- Etype (Node5-Sem)
12027 N_Quantified_Expression =>
12028 (1 => True, -- Condition (Node1)
12029 2 => True, -- Iterator_Specification (Node2)
12030 3 => False, -- unused
12031 4 => True, -- Loop_Parameter_Specification (Node4)
12032 5 => False), -- unused
12034 N_Allocator =>
12035 (1 => False, -- Storage_Pool (Node1-Sem)
12036 2 => False, -- Procedure_To_Call (Node2-Sem)
12037 3 => True, -- Expression (Node3)
12038 4 => True, -- Subpool_Handle_Name (Node4)
12039 5 => False), -- Etype (Node5-Sem)
12041 N_Null_Statement =>
12042 (1 => False, -- unused
12043 2 => False, -- unused
12044 3 => False, -- unused
12045 4 => False, -- unused
12046 5 => False), -- unused
12048 N_Label =>
12049 (1 => True, -- Identifier (Node1)
12050 2 => False, -- unused
12051 3 => False, -- unused
12052 4 => False, -- unused
12053 5 => False), -- unused
12055 N_Assignment_Statement =>
12056 (1 => False, -- unused
12057 2 => True, -- Name (Node2)
12058 3 => True, -- Expression (Node3)
12059 4 => False, -- unused
12060 5 => False), -- unused
12062 N_Target_Name =>
12063 (1 => False, -- unused
12064 2 => False, -- unused
12065 3 => False, -- unused
12066 4 => False, -- unused
12067 5 => False), -- Etype (Node5-Sem)
12069 N_If_Statement =>
12070 (1 => True, -- Condition (Node1)
12071 2 => True, -- Then_Statements (List2)
12072 3 => True, -- Elsif_Parts (List3)
12073 4 => True, -- Else_Statements (List4)
12074 5 => True), -- End_Span (Uint5)
12076 N_Elsif_Part =>
12077 (1 => True, -- Condition (Node1)
12078 2 => True, -- Then_Statements (List2)
12079 3 => False, -- Condition_Actions (List3-Sem)
12080 4 => False, -- unused
12081 5 => False), -- unused
12083 N_Case_Expression =>
12084 (1 => False, -- unused
12085 2 => False, -- unused
12086 3 => True, -- Expression (Node3)
12087 4 => True, -- Alternatives (List4)
12088 5 => False), -- Etype (Node5-Sem)
12090 N_Case_Expression_Alternative =>
12091 (1 => False, -- Actions (List1-Sem)
12092 2 => False, -- unused
12093 3 => True, -- Expression (Node3)
12094 4 => True, -- Discrete_Choices (List4)
12095 5 => False), -- unused
12097 N_Case_Statement =>
12098 (1 => False, -- unused
12099 2 => False, -- unused
12100 3 => True, -- Expression (Node3)
12101 4 => True, -- Alternatives (List4)
12102 5 => True), -- End_Span (Uint5)
12104 N_Case_Statement_Alternative =>
12105 (1 => False, -- unused
12106 2 => False, -- unused
12107 3 => True, -- Statements (List3)
12108 4 => True, -- Discrete_Choices (List4)
12109 5 => False), -- unused
12111 N_Loop_Statement =>
12112 (1 => True, -- Identifier (Node1)
12113 2 => True, -- Iteration_Scheme (Node2)
12114 3 => True, -- Statements (List3)
12115 4 => True, -- End_Label (Node4)
12116 5 => False), -- unused
12118 N_Iteration_Scheme =>
12119 (1 => True, -- Condition (Node1)
12120 2 => True, -- Iterator_Specification (Node2)
12121 3 => False, -- Condition_Actions (List3-Sem)
12122 4 => True, -- Loop_Parameter_Specification (Node4)
12123 5 => False), -- unused
12125 N_Loop_Parameter_Specification =>
12126 (1 => True, -- Defining_Identifier (Node1)
12127 2 => False, -- unused
12128 3 => False, -- unused
12129 4 => True, -- Discrete_Subtype_Definition (Node4)
12130 5 => True), -- Iterator_Filter (Node5)
12132 N_Iterator_Specification =>
12133 (1 => True, -- Defining_Identifier (Node1)
12134 2 => True, -- Name (Node2)
12135 3 => False, -- Unused
12136 4 => False, -- Unused
12137 5 => True), -- Subtype_Indication (Node5)
12139 N_Block_Statement =>
12140 (1 => True, -- Identifier (Node1)
12141 2 => True, -- Declarations (List2)
12142 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12143 4 => True, -- Handled_Statement_Sequence (Node4)
12144 5 => False), -- unused
12146 N_Exit_Statement =>
12147 (1 => True, -- Condition (Node1)
12148 2 => True, -- Name (Node2)
12149 3 => False, -- unused
12150 4 => False, -- unused
12151 5 => False), -- unused
12153 N_Goto_Statement =>
12154 (1 => False, -- unused
12155 2 => True, -- Name (Node2)
12156 3 => False, -- unused
12157 4 => False, -- unused
12158 5 => False), -- unused
12160 N_Subprogram_Declaration =>
12161 (1 => True, -- Specification (Node1)
12162 2 => False, -- unused
12163 3 => False, -- Body_To_Inline (Node3-Sem)
12164 4 => False, -- Parent_Spec (Node4-Sem)
12165 5 => False), -- Corresponding_Body (Node5-Sem)
12167 N_Abstract_Subprogram_Declaration =>
12168 (1 => True, -- Specification (Node1)
12169 2 => False, -- unused
12170 3 => False, -- unused
12171 4 => False, -- unused
12172 5 => False), -- unused
12174 N_Function_Specification =>
12175 (1 => True, -- Defining_Unit_Name (Node1)
12176 2 => False, -- unused
12177 3 => True, -- Parameter_Specifications (List3)
12178 4 => True, -- Result_Definition (Node4)
12179 5 => False), -- Generic_Parent (Node5-Sem)
12181 N_Procedure_Specification =>
12182 (1 => True, -- Defining_Unit_Name (Node1)
12183 2 => False, -- Null_Statement (Node2-Sem)
12184 3 => True, -- Parameter_Specifications (List3)
12185 4 => False, -- unused
12186 5 => False), -- Generic_Parent (Node5-Sem)
12188 N_Designator =>
12189 (1 => True, -- Identifier (Node1)
12190 2 => True, -- Name (Node2)
12191 3 => False, -- unused
12192 4 => False, -- unused
12193 5 => False), -- unused
12195 N_Defining_Program_Unit_Name =>
12196 (1 => True, -- Defining_Identifier (Node1)
12197 2 => True, -- Name (Node2)
12198 3 => False, -- unused
12199 4 => False, -- unused
12200 5 => False), -- unused
12202 N_Operator_Symbol =>
12203 (1 => True, -- Chars (Name1)
12204 2 => False, -- unused
12205 3 => True, -- Strval (Str3)
12206 4 => False, -- Entity (Node4-Sem)
12207 5 => False), -- Etype (Node5-Sem)
12209 N_Defining_Operator_Symbol =>
12210 (1 => True, -- Chars (Name1)
12211 2 => False, -- Next_Entity (Node2-Sem)
12212 3 => False, -- Scope (Node3-Sem)
12213 4 => False, -- unused
12214 5 => False), -- Etype (Node5-Sem)
12216 N_Parameter_Specification =>
12217 (1 => True, -- Defining_Identifier (Node1)
12218 2 => True, -- Parameter_Type (Node2)
12219 3 => True, -- Expression (Node3)
12220 4 => False, -- unused
12221 5 => False), -- Default_Expression (Node5-Sem)
12223 N_Subprogram_Body =>
12224 (1 => True, -- Specification (Node1)
12225 2 => True, -- Declarations (List2)
12226 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12227 4 => True, -- Handled_Statement_Sequence (Node4)
12228 5 => False), -- Corresponding_Spec (Node5-Sem)
12230 N_Expression_Function =>
12231 (1 => True, -- Specification (Node1)
12232 2 => False, -- unused
12233 3 => True, -- Expression (Node3)
12234 4 => False, -- unused
12235 5 => False), -- unused
12237 N_Procedure_Call_Statement =>
12238 (1 => False, -- Controlling_Argument (Node1-Sem)
12239 2 => True, -- Name (Node2)
12240 3 => True, -- Parameter_Associations (List3)
12241 4 => False, -- First_Named_Actual (Node4-Sem)
12242 5 => False), -- Etype (Node5-Sem)
12244 N_Function_Call =>
12245 (1 => False, -- Controlling_Argument (Node1-Sem)
12246 2 => True, -- Name (Node2)
12247 3 => True, -- Parameter_Associations (List3)
12248 4 => False, -- First_Named_Actual (Node4-Sem)
12249 5 => False), -- Etype (Node5-Sem)
12251 N_Parameter_Association =>
12252 (1 => False, -- unused
12253 2 => True, -- Selector_Name (Node2)
12254 3 => True, -- Explicit_Actual_Parameter (Node3)
12255 4 => False, -- Next_Named_Actual (Node4-Sem)
12256 5 => False), -- unused
12258 N_Simple_Return_Statement =>
12259 (1 => False, -- Storage_Pool (Node1-Sem)
12260 2 => False, -- Procedure_To_Call (Node2-Sem)
12261 3 => True, -- Expression (Node3)
12262 4 => False, -- unused
12263 5 => False), -- Return_Statement_Entity (Node5-Sem)
12265 N_Extended_Return_Statement =>
12266 (1 => False, -- Storage_Pool (Node1-Sem)
12267 2 => False, -- Procedure_To_Call (Node2-Sem)
12268 3 => True, -- Return_Object_Declarations (List3)
12269 4 => True, -- Handled_Statement_Sequence (Node4)
12270 5 => False), -- Return_Statement_Entity (Node5-Sem)
12272 N_Package_Declaration =>
12273 (1 => True, -- Specification (Node1)
12274 2 => False, -- unused
12275 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12276 4 => False, -- Parent_Spec (Node4-Sem)
12277 5 => False), -- Corresponding_Body (Node5-Sem)
12279 N_Package_Specification =>
12280 (1 => True, -- Defining_Unit_Name (Node1)
12281 2 => True, -- Visible_Declarations (List2)
12282 3 => True, -- Private_Declarations (List3)
12283 4 => True, -- End_Label (Node4)
12284 5 => False), -- Generic_Parent (Node5-Sem)
12286 N_Package_Body =>
12287 (1 => True, -- Defining_Unit_Name (Node1)
12288 2 => True, -- Declarations (List2)
12289 3 => False, -- unused
12290 4 => True, -- Handled_Statement_Sequence (Node4)
12291 5 => False), -- Corresponding_Spec (Node5-Sem)
12293 N_Private_Type_Declaration =>
12294 (1 => True, -- Defining_Identifier (Node1)
12295 2 => False, -- unused
12296 3 => False, -- unused
12297 4 => True, -- Discriminant_Specifications (List4)
12298 5 => False), -- unused
12300 N_Private_Extension_Declaration =>
12301 (1 => True, -- Defining_Identifier (Node1)
12302 2 => True, -- Interface_List (List2)
12303 3 => False, -- unused
12304 4 => True, -- Discriminant_Specifications (List4)
12305 5 => True), -- Subtype_Indication (Node5)
12307 N_Use_Package_Clause =>
12308 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12309 2 => True, -- Name (Node2)
12310 3 => False, -- Next_Use_Clause (Node3-Sem)
12311 4 => False, -- Associated_Node (Node4-Sem)
12312 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12314 N_Use_Type_Clause =>
12315 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12316 2 => False, -- Used_Operations (Elist2-Sem)
12317 3 => False, -- Next_Use_Clause (Node3-Sem)
12318 4 => True, -- Subtype_Mark (Node4)
12319 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12321 N_Object_Renaming_Declaration =>
12322 (1 => True, -- Defining_Identifier (Node1)
12323 2 => True, -- Name (Node2)
12324 3 => True, -- Access_Definition (Node3)
12325 4 => True, -- Subtype_Mark (Node4)
12326 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12328 N_Exception_Renaming_Declaration =>
12329 (1 => True, -- Defining_Identifier (Node1)
12330 2 => True, -- Name (Node2)
12331 3 => False, -- unused
12332 4 => False, -- unused
12333 5 => False), -- unused
12335 N_Package_Renaming_Declaration =>
12336 (1 => True, -- Defining_Unit_Name (Node1)
12337 2 => True, -- Name (Node2)
12338 3 => False, -- unused
12339 4 => False, -- Parent_Spec (Node4-Sem)
12340 5 => False), -- unused
12342 N_Subprogram_Renaming_Declaration =>
12343 (1 => True, -- Specification (Node1)
12344 2 => True, -- Name (Node2)
12345 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12346 4 => False, -- Parent_Spec (Node4-Sem)
12347 5 => False), -- Corresponding_Spec (Node5-Sem)
12349 N_Generic_Package_Renaming_Declaration =>
12350 (1 => True, -- Defining_Unit_Name (Node1)
12351 2 => True, -- Name (Node2)
12352 3 => False, -- unused
12353 4 => False, -- Parent_Spec (Node4-Sem)
12354 5 => False), -- unused
12356 N_Generic_Procedure_Renaming_Declaration =>
12357 (1 => True, -- Defining_Unit_Name (Node1)
12358 2 => True, -- Name (Node2)
12359 3 => False, -- unused
12360 4 => False, -- Parent_Spec (Node4-Sem)
12361 5 => False), -- unused
12363 N_Generic_Function_Renaming_Declaration =>
12364 (1 => True, -- Defining_Unit_Name (Node1)
12365 2 => True, -- Name (Node2)
12366 3 => False, -- unused
12367 4 => False, -- Parent_Spec (Node4-Sem)
12368 5 => False), -- unused
12370 N_Task_Type_Declaration =>
12371 (1 => True, -- Defining_Identifier (Node1)
12372 2 => True, -- Interface_List (List2)
12373 3 => True, -- Task_Definition (Node3)
12374 4 => True, -- Discriminant_Specifications (List4)
12375 5 => False), -- Corresponding_Body (Node5-Sem)
12377 N_Single_Task_Declaration =>
12378 (1 => True, -- Defining_Identifier (Node1)
12379 2 => True, -- Interface_List (List2)
12380 3 => True, -- Task_Definition (Node3)
12381 4 => False, -- unused
12382 5 => False), -- unused
12384 N_Task_Definition =>
12385 (1 => False, -- unused
12386 2 => True, -- Visible_Declarations (List2)
12387 3 => True, -- Private_Declarations (List3)
12388 4 => True, -- End_Label (Node4)
12389 5 => False), -- unused
12391 N_Task_Body =>
12392 (1 => True, -- Defining_Identifier (Node1)
12393 2 => True, -- Declarations (List2)
12394 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12395 4 => True, -- Handled_Statement_Sequence (Node4)
12396 5 => False), -- Corresponding_Spec (Node5-Sem)
12398 N_Protected_Type_Declaration =>
12399 (1 => True, -- Defining_Identifier (Node1)
12400 2 => True, -- Interface_List (List2)
12401 3 => True, -- Protected_Definition (Node3)
12402 4 => True, -- Discriminant_Specifications (List4)
12403 5 => False), -- Corresponding_Body (Node5-Sem)
12405 N_Single_Protected_Declaration =>
12406 (1 => True, -- Defining_Identifier (Node1)
12407 2 => True, -- Interface_List (List2)
12408 3 => True, -- Protected_Definition (Node3)
12409 4 => False, -- unused
12410 5 => False), -- unused
12412 N_Protected_Definition =>
12413 (1 => False, -- unused
12414 2 => True, -- Visible_Declarations (List2)
12415 3 => True, -- Private_Declarations (List3)
12416 4 => True, -- End_Label (Node4)
12417 5 => False), -- unused
12419 N_Protected_Body =>
12420 (1 => True, -- Defining_Identifier (Node1)
12421 2 => True, -- Declarations (List2)
12422 3 => False, -- unused
12423 4 => True, -- End_Label (Node4)
12424 5 => False), -- Corresponding_Spec (Node5-Sem)
12426 N_Entry_Declaration =>
12427 (1 => True, -- Defining_Identifier (Node1)
12428 2 => False, -- unused
12429 3 => True, -- Parameter_Specifications (List3)
12430 4 => True, -- Discrete_Subtype_Definition (Node4)
12431 5 => False), -- Corresponding_Body (Node5-Sem)
12433 N_Accept_Statement =>
12434 (1 => True, -- Entry_Direct_Name (Node1)
12435 2 => True, -- Declarations (List2)
12436 3 => True, -- Parameter_Specifications (List3)
12437 4 => True, -- Handled_Statement_Sequence (Node4)
12438 5 => True), -- Entry_Index (Node5)
12440 N_Entry_Body =>
12441 (1 => True, -- Defining_Identifier (Node1)
12442 2 => True, -- Declarations (List2)
12443 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12444 4 => True, -- Handled_Statement_Sequence (Node4)
12445 5 => True), -- Entry_Body_Formal_Part (Node5)
12447 N_Entry_Body_Formal_Part =>
12448 (1 => True, -- Condition (Node1)
12449 2 => False, -- unused
12450 3 => True, -- Parameter_Specifications (List3)
12451 4 => True, -- Entry_Index_Specification (Node4)
12452 5 => False), -- unused
12454 N_Entry_Index_Specification =>
12455 (1 => True, -- Defining_Identifier (Node1)
12456 2 => False, -- unused
12457 3 => False, -- unused
12458 4 => True, -- Discrete_Subtype_Definition (Node4)
12459 5 => False), -- unused
12461 N_Entry_Call_Statement =>
12462 (1 => False, -- unused
12463 2 => True, -- Name (Node2)
12464 3 => True, -- Parameter_Associations (List3)
12465 4 => False, -- First_Named_Actual (Node4-Sem)
12466 5 => False), -- unused
12468 N_Requeue_Statement =>
12469 (1 => False, -- unused
12470 2 => True, -- Name (Node2)
12471 3 => False, -- unused
12472 4 => False, -- unused
12473 5 => False), -- unused
12475 N_Delay_Until_Statement =>
12476 (1 => False, -- unused
12477 2 => False, -- unused
12478 3 => True, -- Expression (Node3)
12479 4 => False, -- unused
12480 5 => False), -- unused
12482 N_Delay_Relative_Statement =>
12483 (1 => False, -- unused
12484 2 => False, -- unused
12485 3 => True, -- Expression (Node3)
12486 4 => False, -- unused
12487 5 => False), -- unused
12489 N_Selective_Accept =>
12490 (1 => True, -- Select_Alternatives (List1)
12491 2 => False, -- unused
12492 3 => False, -- unused
12493 4 => True, -- Else_Statements (List4)
12494 5 => False), -- unused
12496 N_Accept_Alternative =>
12497 (1 => True, -- Condition (Node1)
12498 2 => True, -- Accept_Statement (Node2)
12499 3 => True, -- Statements (List3)
12500 4 => True, -- Pragmas_Before (List4)
12501 5 => False), -- Accept_Handler_Records (List5-Sem)
12503 N_Delay_Alternative =>
12504 (1 => True, -- Condition (Node1)
12505 2 => True, -- Delay_Statement (Node2)
12506 3 => True, -- Statements (List3)
12507 4 => True, -- Pragmas_Before (List4)
12508 5 => False), -- unused
12510 N_Terminate_Alternative =>
12511 (1 => True, -- Condition (Node1)
12512 2 => False, -- unused
12513 3 => False, -- unused
12514 4 => True, -- Pragmas_Before (List4)
12515 5 => True), -- Pragmas_After (List5)
12517 N_Timed_Entry_Call =>
12518 (1 => True, -- Entry_Call_Alternative (Node1)
12519 2 => False, -- unused
12520 3 => False, -- unused
12521 4 => True, -- Delay_Alternative (Node4)
12522 5 => False), -- unused
12524 N_Entry_Call_Alternative =>
12525 (1 => True, -- Entry_Call_Statement (Node1)
12526 2 => False, -- unused
12527 3 => True, -- Statements (List3)
12528 4 => True, -- Pragmas_Before (List4)
12529 5 => False), -- unused
12531 N_Conditional_Entry_Call =>
12532 (1 => True, -- Entry_Call_Alternative (Node1)
12533 2 => False, -- unused
12534 3 => False, -- unused
12535 4 => True, -- Else_Statements (List4)
12536 5 => False), -- unused
12538 N_Asynchronous_Select =>
12539 (1 => True, -- Triggering_Alternative (Node1)
12540 2 => True, -- Abortable_Part (Node2)
12541 3 => False, -- unused
12542 4 => False, -- unused
12543 5 => False), -- unused
12545 N_Triggering_Alternative =>
12546 (1 => True, -- Triggering_Statement (Node1)
12547 2 => False, -- unused
12548 3 => True, -- Statements (List3)
12549 4 => True, -- Pragmas_Before (List4)
12550 5 => False), -- unused
12552 N_Abortable_Part =>
12553 (1 => False, -- unused
12554 2 => False, -- unused
12555 3 => True, -- Statements (List3)
12556 4 => False, -- unused
12557 5 => False), -- unused
12559 N_Abort_Statement =>
12560 (1 => False, -- unused
12561 2 => True, -- Names (List2)
12562 3 => False, -- unused
12563 4 => False, -- unused
12564 5 => False), -- unused
12566 N_Compilation_Unit =>
12567 (1 => True, -- Context_Items (List1)
12568 2 => True, -- Unit (Node2)
12569 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12570 4 => False, -- Library_Unit (Node4-Sem)
12571 5 => True), -- Aux_Decls_Node (Node5)
12573 N_Compilation_Unit_Aux =>
12574 (1 => True, -- Actions (List1)
12575 2 => True, -- Declarations (List2)
12576 3 => False, -- Default_Storage_Pool (Node3)
12577 4 => True, -- Config_Pragmas (List4)
12578 5 => True), -- Pragmas_After (List5)
12580 N_With_Clause =>
12581 (1 => False, -- unused
12582 2 => True, -- Name (Node2)
12583 3 => False, -- unused
12584 4 => False, -- Library_Unit (Node4-Sem)
12585 5 => False), -- Corresponding_Spec (Node5-Sem)
12587 N_Subprogram_Body_Stub =>
12588 (1 => True, -- Specification (Node1)
12589 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12590 3 => False, -- unused
12591 4 => False, -- Library_Unit (Node4-Sem)
12592 5 => False), -- Corresponding_Body (Node5-Sem)
12594 N_Package_Body_Stub =>
12595 (1 => True, -- Defining_Identifier (Node1)
12596 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12597 3 => False, -- unused
12598 4 => False, -- Library_Unit (Node4-Sem)
12599 5 => False), -- Corresponding_Body (Node5-Sem)
12601 N_Task_Body_Stub =>
12602 (1 => True, -- Defining_Identifier (Node1)
12603 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12604 3 => False, -- unused
12605 4 => False, -- Library_Unit (Node4-Sem)
12606 5 => False), -- Corresponding_Body (Node5-Sem)
12608 N_Protected_Body_Stub =>
12609 (1 => True, -- Defining_Identifier (Node1)
12610 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12611 3 => False, -- unused
12612 4 => False, -- Library_Unit (Node4-Sem)
12613 5 => False), -- Corresponding_Body (Node5-Sem)
12615 N_Subunit =>
12616 (1 => True, -- Proper_Body (Node1)
12617 2 => True, -- Name (Node2)
12618 3 => False, -- Corresponding_Stub (Node3-Sem)
12619 4 => False, -- unused
12620 5 => False), -- unused
12622 N_Exception_Declaration =>
12623 (1 => True, -- Defining_Identifier (Node1)
12624 2 => False, -- unused
12625 3 => False, -- Expression (Node3-Sem)
12626 4 => False, -- unused
12627 5 => False), -- unused
12629 N_Handled_Sequence_Of_Statements =>
12630 (1 => True, -- At_End_Proc (Node1)
12631 2 => False, -- First_Real_Statement (Node2-Sem)
12632 3 => True, -- Statements (List3)
12633 4 => True, -- End_Label (Node4)
12634 5 => True), -- Exception_Handlers (List5)
12636 N_Exception_Handler =>
12637 (1 => False, -- Local_Raise_Statements (Elist1)
12638 2 => True, -- Choice_Parameter (Node2)
12639 3 => True, -- Statements (List3)
12640 4 => True, -- Exception_Choices (List4)
12641 5 => False), -- Exception_Label (Node5)
12643 N_Raise_Statement =>
12644 (1 => False, -- unused
12645 2 => True, -- Name (Node2)
12646 3 => True, -- Expression (Node3)
12647 4 => False, -- unused
12648 5 => False), -- unused
12650 N_Raise_Expression =>
12651 (1 => False, -- unused
12652 2 => True, -- Name (Node2)
12653 3 => True, -- Expression (Node3)
12654 4 => False, -- unused
12655 5 => False), -- Etype (Node5-Sem)
12657 N_Generic_Subprogram_Declaration =>
12658 (1 => True, -- Specification (Node1)
12659 2 => True, -- Generic_Formal_Declarations (List2)
12660 3 => False, -- unused
12661 4 => False, -- Parent_Spec (Node4-Sem)
12662 5 => False), -- Corresponding_Body (Node5-Sem)
12664 N_Generic_Package_Declaration =>
12665 (1 => True, -- Specification (Node1)
12666 2 => True, -- Generic_Formal_Declarations (List2)
12667 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12668 4 => False, -- Parent_Spec (Node4-Sem)
12669 5 => False), -- Corresponding_Body (Node5-Sem)
12671 N_Package_Instantiation =>
12672 (1 => True, -- Defining_Unit_Name (Node1)
12673 2 => True, -- Name (Node2)
12674 3 => True, -- Generic_Associations (List3)
12675 4 => False, -- Parent_Spec (Node4-Sem)
12676 5 => False), -- Instance_Spec (Node5-Sem)
12678 N_Procedure_Instantiation =>
12679 (1 => True, -- Defining_Unit_Name (Node1)
12680 2 => True, -- Name (Node2)
12681 3 => True, -- Generic_Associations (List3)
12682 4 => False, -- Parent_Spec (Node4-Sem)
12683 5 => False), -- Instance_Spec (Node5-Sem)
12685 N_Function_Instantiation =>
12686 (1 => True, -- Defining_Unit_Name (Node1)
12687 2 => True, -- Name (Node2)
12688 3 => True, -- Generic_Associations (List3)
12689 4 => False, -- Parent_Spec (Node4-Sem)
12690 5 => False), -- Instance_Spec (Node5-Sem)
12692 N_Generic_Association =>
12693 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12694 2 => True, -- Selector_Name (Node2)
12695 3 => False, -- unused
12696 4 => False, -- unused
12697 5 => False), -- unused
12699 N_Formal_Object_Declaration =>
12700 (1 => True, -- Defining_Identifier (Node1)
12701 2 => False, -- unused
12702 3 => True, -- Access_Definition (Node3)
12703 4 => True, -- Subtype_Mark (Node4)
12704 5 => True), -- Default_Expression (Node5)
12706 N_Formal_Type_Declaration =>
12707 (1 => True, -- Defining_Identifier (Node1)
12708 2 => False, -- unused
12709 3 => True, -- Formal_Type_Definition (Node3)
12710 4 => True, -- Discriminant_Specifications (List4)
12711 5 => False), -- unused
12713 N_Formal_Private_Type_Definition =>
12714 (1 => False, -- unused
12715 2 => False, -- unused
12716 3 => False, -- unused
12717 4 => False, -- unused
12718 5 => False), -- unused
12720 N_Formal_Incomplete_Type_Definition =>
12721 (1 => False, -- unused
12722 2 => False, -- unused
12723 3 => False, -- unused
12724 4 => False, -- unused
12725 5 => False), -- unused
12727 N_Formal_Derived_Type_Definition =>
12728 (1 => False, -- unused
12729 2 => True, -- Interface_List (List2)
12730 3 => False, -- unused
12731 4 => True, -- Subtype_Mark (Node4)
12732 5 => False), -- unused
12734 N_Formal_Discrete_Type_Definition =>
12735 (1 => False, -- unused
12736 2 => False, -- unused
12737 3 => False, -- unused
12738 4 => False, -- unused
12739 5 => False), -- unused
12741 N_Formal_Signed_Integer_Type_Definition =>
12742 (1 => False, -- unused
12743 2 => False, -- unused
12744 3 => False, -- unused
12745 4 => False, -- unused
12746 5 => False), -- unused
12748 N_Formal_Modular_Type_Definition =>
12749 (1 => False, -- unused
12750 2 => False, -- unused
12751 3 => False, -- unused
12752 4 => False, -- unused
12753 5 => False), -- unused
12755 N_Formal_Floating_Point_Definition =>
12756 (1 => False, -- unused
12757 2 => False, -- unused
12758 3 => False, -- unused
12759 4 => False, -- unused
12760 5 => False), -- unused
12762 N_Formal_Ordinary_Fixed_Point_Definition =>
12763 (1 => False, -- unused
12764 2 => False, -- unused
12765 3 => False, -- unused
12766 4 => False, -- unused
12767 5 => False), -- unused
12769 N_Formal_Decimal_Fixed_Point_Definition =>
12770 (1 => False, -- unused
12771 2 => False, -- unused
12772 3 => False, -- unused
12773 4 => False, -- unused
12774 5 => False), -- unused
12776 N_Formal_Concrete_Subprogram_Declaration =>
12777 (1 => True, -- Specification (Node1)
12778 2 => True, -- Default_Name (Node2)
12779 3 => False, -- unused
12780 4 => False, -- unused
12781 5 => False), -- unused
12783 N_Formal_Abstract_Subprogram_Declaration =>
12784 (1 => True, -- Specification (Node1)
12785 2 => True, -- Default_Name (Node2)
12786 3 => False, -- unused
12787 4 => False, -- unused
12788 5 => False), -- unused
12790 N_Formal_Package_Declaration =>
12791 (1 => True, -- Defining_Identifier (Node1)
12792 2 => True, -- Name (Node2)
12793 3 => True, -- Generic_Associations (List3)
12794 4 => False, -- unused
12795 5 => False), -- Instance_Spec (Node5-Sem)
12797 N_Attribute_Definition_Clause =>
12798 (1 => True, -- Chars (Name1)
12799 2 => True, -- Name (Node2)
12800 3 => True, -- Expression (Node3)
12801 4 => False, -- unused
12802 5 => False), -- Next_Rep_Item (Node5-Sem)
12804 N_Aspect_Specification =>
12805 (1 => True, -- Identifier (Node1)
12806 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12807 3 => True, -- Expression (Node3)
12808 4 => False, -- Entity (Node4-Sem)
12809 5 => False), -- Next_Rep_Item (Node5-Sem)
12811 N_Enumeration_Representation_Clause =>
12812 (1 => True, -- Identifier (Node1)
12813 2 => False, -- unused
12814 3 => True, -- Array_Aggregate (Node3)
12815 4 => False, -- unused
12816 5 => False), -- Next_Rep_Item (Node5-Sem)
12818 N_Record_Representation_Clause =>
12819 (1 => True, -- Identifier (Node1)
12820 2 => True, -- Mod_Clause (Node2)
12821 3 => True, -- Component_Clauses (List3)
12822 4 => False, -- unused
12823 5 => False), -- Next_Rep_Item (Node5-Sem)
12825 N_Component_Clause =>
12826 (1 => True, -- Component_Name (Node1)
12827 2 => True, -- Position (Node2)
12828 3 => True, -- First_Bit (Node3)
12829 4 => True, -- Last_Bit (Node4)
12830 5 => False), -- unused
12832 N_Code_Statement =>
12833 (1 => False, -- unused
12834 2 => False, -- unused
12835 3 => True, -- Expression (Node3)
12836 4 => False, -- unused
12837 5 => False), -- unused
12839 N_Op_Rotate_Left =>
12840 (1 => True, -- Chars (Name1)
12841 2 => True, -- Left_Opnd (Node2)
12842 3 => True, -- Right_Opnd (Node3)
12843 4 => False, -- Entity (Node4-Sem)
12844 5 => False), -- Etype (Node5-Sem)
12846 N_Op_Rotate_Right =>
12847 (1 => True, -- Chars (Name1)
12848 2 => True, -- Left_Opnd (Node2)
12849 3 => True, -- Right_Opnd (Node3)
12850 4 => False, -- Entity (Node4-Sem)
12851 5 => False), -- Etype (Node5-Sem)
12853 N_Op_Shift_Left =>
12854 (1 => True, -- Chars (Name1)
12855 2 => True, -- Left_Opnd (Node2)
12856 3 => True, -- Right_Opnd (Node3)
12857 4 => False, -- Entity (Node4-Sem)
12858 5 => False), -- Etype (Node5-Sem)
12860 N_Op_Shift_Right_Arithmetic =>
12861 (1 => True, -- Chars (Name1)
12862 2 => True, -- Left_Opnd (Node2)
12863 3 => True, -- Right_Opnd (Node3)
12864 4 => False, -- Entity (Node4-Sem)
12865 5 => False), -- Etype (Node5-Sem)
12867 N_Op_Shift_Right =>
12868 (1 => True, -- Chars (Name1)
12869 2 => True, -- Left_Opnd (Node2)
12870 3 => True, -- Right_Opnd (Node3)
12871 4 => False, -- Entity (Node4-Sem)
12872 5 => False), -- Etype (Node5-Sem)
12874 N_Delta_Constraint =>
12875 (1 => False, -- unused
12876 2 => False, -- unused
12877 3 => True, -- Delta_Expression (Node3)
12878 4 => True, -- Range_Constraint (Node4)
12879 5 => False), -- unused
12881 N_At_Clause =>
12882 (1 => True, -- Identifier (Node1)
12883 2 => False, -- unused
12884 3 => True, -- Expression (Node3)
12885 4 => False, -- unused
12886 5 => False), -- unused
12888 N_Mod_Clause =>
12889 (1 => False, -- unused
12890 2 => False, -- unused
12891 3 => True, -- Expression (Node3)
12892 4 => True, -- Pragmas_Before (List4)
12893 5 => False), -- unused
12895 N_If_Expression =>
12896 (1 => True, -- Expressions (List1)
12897 2 => False, -- Then_Actions (List2-Sem)
12898 3 => False, -- Else_Actions (List3-Sem)
12899 4 => False, -- unused
12900 5 => False), -- Etype (Node5-Sem)
12902 N_Compound_Statement =>
12903 (1 => True, -- Actions (List1)
12904 2 => False, -- unused
12905 3 => False, -- unused
12906 4 => False, -- unused
12907 5 => False), -- unused
12909 N_Contract =>
12910 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
12911 2 => False, -- Contract_Test_Cases (Node2-Sem)
12912 3 => False, -- Classifications (Node3-Sem)
12913 4 => False, -- unused
12914 5 => False), -- unused
12916 N_Expanded_Name =>
12917 (1 => True, -- Chars (Name1)
12918 2 => True, -- Selector_Name (Node2)
12919 3 => True, -- Prefix (Node3)
12920 4 => False, -- Entity (Node4-Sem)
12921 5 => False), -- Etype (Node5-Sem)
12923 N_Expression_With_Actions =>
12924 (1 => True, -- Actions (List1)
12925 2 => False, -- unused
12926 3 => True, -- Expression (Node3)
12927 4 => False, -- unused
12928 5 => False), -- unused
12930 N_Free_Statement =>
12931 (1 => False, -- Storage_Pool (Node1-Sem)
12932 2 => False, -- Procedure_To_Call (Node2-Sem)
12933 3 => True, -- Expression (Node3)
12934 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12935 5 => False), -- unused
12937 N_Freeze_Entity =>
12938 (1 => True, -- Actions (List1)
12939 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12940 3 => False, -- TSS_Elist (Elist3-Sem)
12941 4 => False, -- Entity (Node4-Sem)
12942 5 => False), -- First_Subtype_Link (Node5-Sem)
12944 N_Freeze_Generic_Entity =>
12945 (1 => False, -- unused
12946 2 => False, -- unused
12947 3 => False, -- unused
12948 4 => False, -- Entity (Node4-Sem)
12949 5 => False), -- unused
12951 N_Implicit_Label_Declaration =>
12952 (1 => True, -- Defining_Identifier (Node1)
12953 2 => False, -- Label_Construct (Node2-Sem)
12954 3 => False, -- unused
12955 4 => False, -- unused
12956 5 => False), -- unused
12958 N_Itype_Reference =>
12959 (1 => False, -- Itype (Node1-Sem)
12960 2 => False, -- unused
12961 3 => False, -- unused
12962 4 => False, -- unused
12963 5 => False), -- unused
12965 N_Raise_Constraint_Error =>
12966 (1 => True, -- Condition (Node1)
12967 2 => False, -- unused
12968 3 => True, -- Reason (Uint3)
12969 4 => False, -- unused
12970 5 => False), -- Etype (Node5-Sem)
12972 N_Raise_Program_Error =>
12973 (1 => True, -- Condition (Node1)
12974 2 => False, -- unused
12975 3 => True, -- Reason (Uint3)
12976 4 => False, -- unused
12977 5 => False), -- Etype (Node5-Sem)
12979 N_Raise_Storage_Error =>
12980 (1 => True, -- Condition (Node1)
12981 2 => False, -- unused
12982 3 => True, -- Reason (Uint3)
12983 4 => False, -- unused
12984 5 => False), -- Etype (Node5-Sem)
12986 N_Push_Constraint_Error_Label =>
12987 (1 => False, -- unused
12988 2 => False, -- unused
12989 3 => False, -- unused
12990 4 => False, -- unused
12991 5 => False), -- unused
12993 N_Push_Program_Error_Label =>
12994 (1 => False, -- unused
12995 2 => False, -- unused
12996 3 => False, -- unused
12997 4 => False, -- unused
12998 5 => False), -- Exception_Label
13000 N_Push_Storage_Error_Label =>
13001 (1 => False, -- unused
13002 2 => False, -- unused
13003 3 => False, -- unused
13004 4 => False, -- unused
13005 5 => False), -- Exception_Label
13007 N_Pop_Constraint_Error_Label =>
13008 (1 => False, -- unused
13009 2 => False, -- unused
13010 3 => False, -- unused
13011 4 => False, -- unused
13012 5 => False), -- unused
13014 N_Pop_Program_Error_Label =>
13015 (1 => False, -- unused
13016 2 => False, -- unused
13017 3 => False, -- unused
13018 4 => False, -- unused
13019 5 => False), -- unused
13021 N_Pop_Storage_Error_Label =>
13022 (1 => False, -- unused
13023 2 => False, -- unused
13024 3 => False, -- unused
13025 4 => False, -- unused
13026 5 => False), -- unused
13028 N_Reference =>
13029 (1 => False, -- unused
13030 2 => False, -- unused
13031 3 => True, -- Prefix (Node3)
13032 4 => False, -- unused
13033 5 => False), -- Etype (Node5-Sem)
13035 N_Unchecked_Expression =>
13036 (1 => False, -- unused
13037 2 => False, -- unused
13038 3 => True, -- Expression (Node3)
13039 4 => False, -- unused
13040 5 => False), -- Etype (Node5-Sem)
13042 N_Unchecked_Type_Conversion =>
13043 (1 => False, -- unused
13044 2 => False, -- unused
13045 3 => True, -- Expression (Node3)
13046 4 => True, -- Subtype_Mark (Node4)
13047 5 => False), -- Etype (Node5-Sem)
13049 N_Validate_Unchecked_Conversion =>
13050 (1 => False, -- Source_Type (Node1-Sem)
13051 2 => False, -- Target_Type (Node2-Sem)
13052 3 => False, -- unused
13053 4 => False, -- unused
13054 5 => False), -- unused
13056 -- Entries for SCIL nodes
13058 N_SCIL_Dispatch_Table_Tag_Init =>
13059 (1 => False, -- unused
13060 2 => False, -- unused
13061 3 => False, -- unused
13062 4 => False, -- SCIL_Entity (Node4-Sem)
13063 5 => False), -- unused
13065 N_SCIL_Dispatching_Call =>
13066 (1 => False, -- unused
13067 2 => False, -- SCIL_Target_Prim (Node2-Sem)
13068 3 => False, -- unused
13069 4 => False, -- SCIL_Entity (Node4-Sem)
13070 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
13072 N_SCIL_Membership_Test =>
13073 (1 => False, -- unused
13074 2 => False, -- unused
13075 3 => False, -- unused
13076 4 => False, -- SCIL_Entity (Node4-Sem)
13077 5 => False), -- SCIL_Tag_Value (Node5-Sem)
13079 N_Call_Marker =>
13080 (1 => False, -- Target (Node1-Sem)
13081 2 => False, -- unused
13082 3 => False, -- unused
13083 4 => False, -- unused
13084 5 => False), -- unused
13086 N_Variable_Reference_Marker =>
13087 (1 => False, -- Target (Node1-Sem)
13088 2 => False, -- unused
13089 3 => False, -- unused
13090 4 => False, -- unused
13091 5 => False), -- unused
13093 -- Entries for Empty, Error, and Unused. Even though these have a Chars
13094 -- field for debugging purposes, they are not really syntactic fields, so
13095 -- we mark all fields as unused.
13097 N_Empty =>
13098 (1 => False, -- unused
13099 2 => False, -- unused
13100 3 => False, -- unused
13101 4 => False, -- unused
13102 5 => False), -- unused
13104 N_Error =>
13105 (1 => False, -- unused
13106 2 => False, -- unused
13107 3 => False, -- unused
13108 4 => False, -- unused
13109 5 => False), -- unused
13111 N_Unused_At_Start =>
13112 (1 => False, -- unused
13113 2 => False, -- unused
13114 3 => False, -- unused
13115 4 => False, -- unused
13116 5 => False), -- unused
13118 N_Unused_At_End =>
13119 (1 => False, -- unused
13120 2 => False, -- unused
13121 3 => False, -- unused
13122 4 => False, -- unused
13123 5 => False)); -- unused
13125 --------------------
13126 -- Inline Pragmas --
13127 --------------------
13129 pragma Inline (Abort_Present);
13130 pragma Inline (Abortable_Part);
13131 pragma Inline (Abstract_Present);
13132 pragma Inline (Accept_Handler_Records);
13133 pragma Inline (Accept_Statement);
13134 pragma Inline (Access_Definition);
13135 pragma Inline (Access_To_Subprogram_Definition);
13136 pragma Inline (Access_Types_To_Process);
13137 pragma Inline (Actions);
13138 pragma Inline (Activation_Chain_Entity);
13139 pragma Inline (Acts_As_Spec);
13140 pragma Inline (Actual_Designated_Subtype);
13141 pragma Inline (Address_Warning_Posted);
13142 pragma Inline (Aggregate_Bounds);
13143 pragma Inline (Aliased_Present);
13144 pragma Inline (Alloc_For_BIP_Return);
13145 pragma Inline (All_Others);
13146 pragma Inline (All_Present);
13147 pragma Inline (Alternatives);
13148 pragma Inline (Ancestor_Part);
13149 pragma Inline (Atomic_Sync_Required);
13150 pragma Inline (Array_Aggregate);
13151 pragma Inline (Aspect_On_Partial_View);
13152 pragma Inline (Aspect_Rep_Item);
13153 pragma Inline (Assignment_OK);
13154 pragma Inline (Associated_Node);
13155 pragma Inline (At_End_Proc);
13156 pragma Inline (Attribute_Name);
13157 pragma Inline (Aux_Decls_Node);
13158 pragma Inline (Backwards_OK);
13159 pragma Inline (Bad_Is_Detected);
13160 pragma Inline (Body_To_Inline);
13161 pragma Inline (Body_Required);
13162 pragma Inline (By_Ref);
13163 pragma Inline (Box_Present);
13164 pragma Inline (Char_Literal_Value);
13165 pragma Inline (Chars);
13166 pragma Inline (Check_Address_Alignment);
13167 pragma Inline (Choice_Parameter);
13168 pragma Inline (Choices);
13169 pragma Inline (Class_Present);
13170 pragma Inline (Classifications);
13171 pragma Inline (Cleanup_Actions);
13172 pragma Inline (Comes_From_Extended_Return_Statement);
13173 pragma Inline (Compile_Time_Known_Aggregate);
13174 pragma Inline (Component_Associations);
13175 pragma Inline (Component_Clauses);
13176 pragma Inline (Component_Definition);
13177 pragma Inline (Component_Items);
13178 pragma Inline (Component_List);
13179 pragma Inline (Component_Name);
13180 pragma Inline (Componentwise_Assignment);
13181 pragma Inline (Condition);
13182 pragma Inline (Condition_Actions);
13183 pragma Inline (Config_Pragmas);
13184 pragma Inline (Constant_Present);
13185 pragma Inline (Constraint);
13186 pragma Inline (Constraints);
13187 pragma Inline (Context_Installed);
13188 pragma Inline (Context_Items);
13189 pragma Inline (Context_Pending);
13190 pragma Inline (Contract_Test_Cases);
13191 pragma Inline (Controlling_Argument);
13192 pragma Inline (Convert_To_Return_False);
13193 pragma Inline (Conversion_OK);
13194 pragma Inline (Corresponding_Aspect);
13195 pragma Inline (Corresponding_Body);
13196 pragma Inline (Corresponding_Formal_Spec);
13197 pragma Inline (Corresponding_Generic_Association);
13198 pragma Inline (Corresponding_Integer_Value);
13199 pragma Inline (Corresponding_Spec);
13200 pragma Inline (Corresponding_Spec_Of_Stub);
13201 pragma Inline (Corresponding_Stub);
13202 pragma Inline (Dcheck_Function);
13203 pragma Inline (Declarations);
13204 pragma Inline (Default_Expression);
13205 pragma Inline (Default_Storage_Pool);
13206 pragma Inline (Default_Name);
13207 pragma Inline (Defining_Identifier);
13208 pragma Inline (Defining_Unit_Name);
13209 pragma Inline (Delay_Alternative);
13210 pragma Inline (Delay_Statement);
13211 pragma Inline (Delta_Expression);
13212 pragma Inline (Digits_Expression);
13213 pragma Inline (Discr_Check_Funcs_Built);
13214 pragma Inline (Discrete_Choices);
13215 pragma Inline (Discrete_Range);
13216 pragma Inline (Discrete_Subtype_Definition);
13217 pragma Inline (Discrete_Subtype_Definitions);
13218 pragma Inline (Discriminant_Specifications);
13219 pragma Inline (Discriminant_Type);
13220 pragma Inline (Do_Accessibility_Check);
13221 pragma Inline (Do_Discriminant_Check);
13222 pragma Inline (Do_Length_Check);
13223 pragma Inline (Do_Division_Check);
13224 pragma Inline (Do_Overflow_Check);
13225 pragma Inline (Do_Range_Check);
13226 pragma Inline (Do_Storage_Check);
13227 pragma Inline (Do_Tag_Check);
13228 pragma Inline (Elaborate_All_Desirable);
13229 pragma Inline (Elaborate_All_Present);
13230 pragma Inline (Elaborate_Desirable);
13231 pragma Inline (Elaborate_Present);
13232 pragma Inline (Else_Actions);
13233 pragma Inline (Else_Statements);
13234 pragma Inline (Elsif_Parts);
13235 pragma Inline (Enclosing_Variant);
13236 pragma Inline (End_Label);
13237 pragma Inline (End_Span);
13238 pragma Inline (Entity);
13239 pragma Inline (Entity_Or_Associated_Node);
13240 pragma Inline (Entry_Body_Formal_Part);
13241 pragma Inline (Entry_Call_Alternative);
13242 pragma Inline (Entry_Call_Statement);
13243 pragma Inline (Entry_Direct_Name);
13244 pragma Inline (Entry_Index);
13245 pragma Inline (Entry_Index_Specification);
13246 pragma Inline (Etype);
13247 pragma Inline (Exception_Choices);
13248 pragma Inline (Exception_Handlers);
13249 pragma Inline (Exception_Junk);
13250 pragma Inline (Exception_Label);
13251 pragma Inline (Expansion_Delayed);
13252 pragma Inline (Explicit_Actual_Parameter);
13253 pragma Inline (Explicit_Generic_Actual_Parameter);
13254 pragma Inline (Expression);
13255 pragma Inline (Expression_Copy);
13256 pragma Inline (Expressions);
13257 pragma Inline (First_Bit);
13258 pragma Inline (First_Inlined_Subprogram);
13259 pragma Inline (First_Name);
13260 pragma Inline (First_Named_Actual);
13261 pragma Inline (First_Real_Statement);
13262 pragma Inline (First_Subtype_Link);
13263 pragma Inline (Float_Truncate);
13264 pragma Inline (Formal_Type_Definition);
13265 pragma Inline (Forwards_OK);
13266 pragma Inline (From_Aspect_Specification);
13267 pragma Inline (From_At_End);
13268 pragma Inline (From_At_Mod);
13269 pragma Inline (From_Conditional_Expression);
13270 pragma Inline (From_Default);
13271 pragma Inline (Generalized_Indexing);
13272 pragma Inline (Generic_Associations);
13273 pragma Inline (Generic_Formal_Declarations);
13274 pragma Inline (Generic_Parent);
13275 pragma Inline (Generic_Parent_Type);
13276 pragma Inline (Handled_Statement_Sequence);
13277 pragma Inline (Handler_List_Entry);
13278 pragma Inline (Has_Created_Identifier);
13279 pragma Inline (Has_Dereference_Action);
13280 pragma Inline (Has_Dynamic_Length_Check);
13281 pragma Inline (Has_Init_Expression);
13282 pragma Inline (Has_Local_Raise);
13283 pragma Inline (Has_Self_Reference);
13284 pragma Inline (Has_SP_Choice);
13285 pragma Inline (Has_No_Elaboration_Code);
13286 pragma Inline (Has_Pragma_Suppress_All);
13287 pragma Inline (Has_Private_View);
13288 pragma Inline (Has_Relative_Deadline_Pragma);
13289 pragma Inline (Has_Storage_Size_Pragma);
13290 pragma Inline (Has_Target_Names);
13291 pragma Inline (Has_Wide_Character);
13292 pragma Inline (Has_Wide_Wide_Character);
13293 pragma Inline (Header_Size_Added);
13294 pragma Inline (Hidden_By_Use_Clause);
13295 pragma Inline (High_Bound);
13296 pragma Inline (Identifier);
13297 pragma Inline (Implicit_With);
13298 pragma Inline (Interface_List);
13299 pragma Inline (Interface_Present);
13300 pragma Inline (Includes_Infinities);
13301 pragma Inline (Import_Interface_Present);
13302 pragma Inline (In_Present);
13303 pragma Inline (Incomplete_View);
13304 pragma Inline (Inherited_Discriminant);
13305 pragma Inline (Instance_Spec);
13306 pragma Inline (Intval);
13307 pragma Inline (Iterator_Specification);
13308 pragma Inline (Is_Abort_Block);
13309 pragma Inline (Is_Accessibility_Actual);
13310 pragma Inline (Is_Analyzed_Pragma);
13311 pragma Inline (Is_Asynchronous_Call_Block);
13312 pragma Inline (Is_Boolean_Aspect);
13313 pragma Inline (Is_Checked);
13314 pragma Inline (Is_Checked_Ghost_Pragma);
13315 pragma Inline (Is_Component_Left_Opnd);
13316 pragma Inline (Is_Component_Right_Opnd);
13317 pragma Inline (Is_Controlling_Actual);
13318 pragma Inline (Is_Declaration_Level_Node);
13319 pragma Inline (Is_Delayed_Aspect);
13320 pragma Inline (Is_Disabled);
13321 pragma Inline (Is_Dispatching_Call);
13322 pragma Inline (Is_Dynamic_Coextension);
13323 pragma Inline (Is_Effective_Use_Clause);
13324 pragma Inline (Is_Elaboration_Checks_OK_Node);
13325 pragma Inline (Is_Elaboration_Code);
13326 pragma Inline (Is_Elaboration_Warnings_OK_Node);
13327 pragma Inline (Is_Elsif);
13328 pragma Inline (Is_Entry_Barrier_Function);
13329 pragma Inline (Is_Expanded_Build_In_Place_Call);
13330 pragma Inline (Is_Expanded_Contract);
13331 pragma Inline (Is_Finalization_Wrapper);
13332 pragma Inline (Is_Folded_In_Parser);
13333 pragma Inline (Is_Generic_Contract_Pragma);
13334 pragma Inline (Is_Homogeneous_Aggregate);
13335 pragma Inline (Is_Ignored);
13336 pragma Inline (Is_Ignored_Ghost_Pragma);
13337 pragma Inline (Is_In_Discriminant_Check);
13338 pragma Inline (Is_Inherited_Pragma);
13339 pragma Inline (Is_Initialization_Block);
13340 pragma Inline (Is_Known_Guaranteed_ABE);
13341 pragma Inline (Is_Machine_Number);
13342 pragma Inline (Is_Null_Loop);
13343 pragma Inline (Is_Overloaded);
13344 pragma Inline (Is_Power_Of_2_For_Shift);
13345 pragma Inline (Is_Preelaborable_Call);
13346 pragma Inline (Is_Prefixed_Call);
13347 pragma Inline (Is_Protected_Subprogram_Body);
13348 pragma Inline (Is_Qualified_Universal_Literal);
13349 pragma Inline (Is_Read);
13350 pragma Inline (Is_Source_Call);
13351 pragma Inline (Is_SPARK_Mode_On_Node);
13352 pragma Inline (Is_Static_Coextension);
13353 pragma Inline (Is_Static_Expression);
13354 pragma Inline (Is_Subprogram_Descriptor);
13355 pragma Inline (Is_Task_Allocation_Block);
13356 pragma Inline (Is_Task_Body_Procedure);
13357 pragma Inline (Is_Task_Master);
13358 pragma Inline (Is_Write);
13359 pragma Inline (Iterator_Filter);
13360 pragma Inline (Iteration_Scheme);
13361 pragma Inline (Itype);
13362 pragma Inline (Key_Expression);
13363 pragma Inline (Kill_Range_Check);
13364 pragma Inline (Last_Bit);
13365 pragma Inline (Last_Name);
13366 pragma Inline (Library_Unit);
13367 pragma Inline (Label_Construct);
13368 pragma Inline (Left_Opnd);
13369 pragma Inline (Limited_View_Installed);
13370 pragma Inline (Limited_Present);
13371 pragma Inline (Literals);
13372 pragma Inline (Local_Raise_Not_OK);
13373 pragma Inline (Local_Raise_Statements);
13374 pragma Inline (Loop_Actions);
13375 pragma Inline (Loop_Parameter_Specification);
13376 pragma Inline (Low_Bound);
13377 pragma Inline (Mod_Clause);
13378 pragma Inline (More_Ids);
13379 pragma Inline (Must_Be_Byte_Aligned);
13380 pragma Inline (Must_Not_Freeze);
13381 pragma Inline (Must_Not_Override);
13382 pragma Inline (Must_Override);
13383 pragma Inline (Name);
13384 pragma Inline (Names);
13385 pragma Inline (Next_Entity);
13386 pragma Inline (Next_Exit_Statement);
13387 pragma Inline (Next_Implicit_With);
13388 pragma Inline (Next_Named_Actual);
13389 pragma Inline (Next_Pragma);
13390 pragma Inline (Next_Rep_Item);
13391 pragma Inline (Next_Use_Clause);
13392 pragma Inline (No_Ctrl_Actions);
13393 pragma Inline (No_Elaboration_Check);
13394 pragma Inline (No_Entities_Ref_In_Spec);
13395 pragma Inline (No_Initialization);
13396 pragma Inline (No_Minimize_Eliminate);
13397 pragma Inline (No_Side_Effect_Removal);
13398 pragma Inline (No_Truncation);
13399 pragma Inline (Null_Excluding_Subtype);
13400 pragma Inline (Null_Exclusion_Present);
13401 pragma Inline (Null_Exclusion_In_Return_Present);
13402 pragma Inline (Null_Present);
13403 pragma Inline (Null_Record_Present);
13404 pragma Inline (Null_Statement);
13405 pragma Inline (Object_Definition);
13406 pragma Inline (Of_Present);
13407 pragma Inline (Original_Discriminant);
13408 pragma Inline (Original_Entity);
13409 pragma Inline (Others_Discrete_Choices);
13410 pragma Inline (Out_Present);
13411 pragma Inline (Parameter_Associations);
13412 pragma Inline (Parameter_Specifications);
13413 pragma Inline (Parameter_Type);
13414 pragma Inline (Parent_Spec);
13415 pragma Inline (Parent_With);
13416 pragma Inline (Position);
13417 pragma Inline (Pragma_Argument_Associations);
13418 pragma Inline (Pragma_Identifier);
13419 pragma Inline (Pragmas_After);
13420 pragma Inline (Pragmas_Before);
13421 pragma Inline (Pre_Post_Conditions);
13422 pragma Inline (Prefix);
13423 pragma Inline (Premature_Use);
13424 pragma Inline (Present_Expr);
13425 pragma Inline (Prev_Ids);
13426 pragma Inline (Prev_Use_Clause);
13427 pragma Inline (Print_In_Hex);
13428 pragma Inline (Private_Declarations);
13429 pragma Inline (Private_Present);
13430 pragma Inline (Procedure_To_Call);
13431 pragma Inline (Proper_Body);
13432 pragma Inline (Protected_Definition);
13433 pragma Inline (Protected_Present);
13434 pragma Inline (Raises_Constraint_Error);
13435 pragma Inline (Range_Constraint);
13436 pragma Inline (Range_Expression);
13437 pragma Inline (Real_Range_Specification);
13438 pragma Inline (Realval);
13439 pragma Inline (Reason);
13440 pragma Inline (Record_Extension_Part);
13441 pragma Inline (Redundant_Use);
13442 pragma Inline (Renaming_Exception);
13443 pragma Inline (Result_Definition);
13444 pragma Inline (Return_Object_Declarations);
13445 pragma Inline (Return_Statement_Entity);
13446 pragma Inline (Reverse_Present);
13447 pragma Inline (Right_Opnd);
13448 pragma Inline (Rounded_Result);
13449 pragma Inline (Save_Invocation_Graph_Of_Body);
13450 pragma Inline (SCIL_Controlling_Tag);
13451 pragma Inline (SCIL_Entity);
13452 pragma Inline (SCIL_Tag_Value);
13453 pragma Inline (SCIL_Target_Prim);
13454 pragma Inline (Scope);
13455 pragma Inline (Select_Alternatives);
13456 pragma Inline (Selector_Name);
13457 pragma Inline (Selector_Names);
13458 pragma Inline (Shift_Count_OK);
13459 pragma Inline (Source_Type);
13460 pragma Inline (Specification);
13461 pragma Inline (Split_PPC);
13462 pragma Inline (Statements);
13463 pragma Inline (Storage_Pool);
13464 pragma Inline (Subpool_Handle_Name);
13465 pragma Inline (Strval);
13466 pragma Inline (Subtype_Indication);
13467 pragma Inline (Subtype_Mark);
13468 pragma Inline (Subtype_Marks);
13469 pragma Inline (Suppress_Assignment_Checks);
13470 pragma Inline (Suppress_Loop_Warnings);
13471 pragma Inline (Synchronized_Present);
13472 pragma Inline (Tagged_Present);
13473 pragma Inline (Target);
13474 pragma Inline (Target_Type);
13475 pragma Inline (Task_Definition);
13476 pragma Inline (Task_Present);
13477 pragma Inline (Then_Actions);
13478 pragma Inline (Then_Statements);
13479 pragma Inline (Triggering_Alternative);
13480 pragma Inline (Triggering_Statement);
13481 pragma Inline (TSS_Elist);
13482 pragma Inline (Type_Definition);
13483 pragma Inline (Uneval_Old_Accept);
13484 pragma Inline (Uneval_Old_Warn);
13485 pragma Inline (Unit);
13486 pragma Inline (Uninitialized_Variable);
13487 pragma Inline (Unknown_Discriminants_Present);
13488 pragma Inline (Unreferenced_In_Spec);
13489 pragma Inline (Variant_Part);
13490 pragma Inline (Variants);
13491 pragma Inline (Visible_Declarations);
13492 pragma Inline (Used_Operations);
13493 pragma Inline (Was_Attribute_Reference);
13494 pragma Inline (Was_Default_Init_Box_Association);
13495 pragma Inline (Was_Expression_Function);
13496 pragma Inline (Was_Originally_Stub);
13498 pragma Inline (Set_Abort_Present);
13499 pragma Inline (Set_Abortable_Part);
13500 pragma Inline (Set_Abstract_Present);
13501 pragma Inline (Set_Accept_Handler_Records);
13502 pragma Inline (Set_Accept_Statement);
13503 pragma Inline (Set_Access_Definition);
13504 pragma Inline (Set_Access_To_Subprogram_Definition);
13505 pragma Inline (Set_Access_Types_To_Process);
13506 pragma Inline (Set_Actions);
13507 pragma Inline (Set_Activation_Chain_Entity);
13508 pragma Inline (Set_Acts_As_Spec);
13509 pragma Inline (Set_Actual_Designated_Subtype);
13510 pragma Inline (Set_Address_Warning_Posted);
13511 pragma Inline (Set_Aggregate_Bounds);
13512 pragma Inline (Set_Aliased_Present);
13513 pragma Inline (Set_Alloc_For_BIP_Return);
13514 pragma Inline (Set_All_Others);
13515 pragma Inline (Set_All_Present);
13516 pragma Inline (Set_Alternatives);
13517 pragma Inline (Set_Ancestor_Part);
13518 pragma Inline (Set_Array_Aggregate);
13519 pragma Inline (Set_Aspect_On_Partial_View);
13520 pragma Inline (Set_Aspect_Rep_Item);
13521 pragma Inline (Set_Assignment_OK);
13522 pragma Inline (Set_Associated_Node);
13523 pragma Inline (Set_At_End_Proc);
13524 pragma Inline (Set_Atomic_Sync_Required);
13525 pragma Inline (Set_Attribute_Name);
13526 pragma Inline (Set_Aux_Decls_Node);
13527 pragma Inline (Set_Backwards_OK);
13528 pragma Inline (Set_Bad_Is_Detected);
13529 pragma Inline (Set_Body_Required);
13530 pragma Inline (Set_Body_To_Inline);
13531 pragma Inline (Set_Box_Present);
13532 pragma Inline (Set_By_Ref);
13533 pragma Inline (Set_Char_Literal_Value);
13534 pragma Inline (Set_Chars);
13535 pragma Inline (Set_Check_Address_Alignment);
13536 pragma Inline (Set_Choice_Parameter);
13537 pragma Inline (Set_Choices);
13538 pragma Inline (Set_Class_Present);
13539 pragma Inline (Set_Classifications);
13540 pragma Inline (Set_Cleanup_Actions);
13541 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13542 pragma Inline (Set_Compile_Time_Known_Aggregate);
13543 pragma Inline (Set_Component_Associations);
13544 pragma Inline (Set_Component_Clauses);
13545 pragma Inline (Set_Component_Definition);
13546 pragma Inline (Set_Component_Items);
13547 pragma Inline (Set_Component_List);
13548 pragma Inline (Set_Component_Name);
13549 pragma Inline (Set_Componentwise_Assignment);
13550 pragma Inline (Set_Condition);
13551 pragma Inline (Set_Condition_Actions);
13552 pragma Inline (Set_Config_Pragmas);
13553 pragma Inline (Set_Constant_Present);
13554 pragma Inline (Set_Constraint);
13555 pragma Inline (Set_Constraints);
13556 pragma Inline (Set_Context_Installed);
13557 pragma Inline (Set_Context_Items);
13558 pragma Inline (Set_Context_Pending);
13559 pragma Inline (Set_Contract_Test_Cases);
13560 pragma Inline (Set_Controlling_Argument);
13561 pragma Inline (Set_Conversion_OK);
13562 pragma Inline (Set_Convert_To_Return_False);
13563 pragma Inline (Set_Corresponding_Aspect);
13564 pragma Inline (Set_Corresponding_Body);
13565 pragma Inline (Set_Corresponding_Formal_Spec);
13566 pragma Inline (Set_Corresponding_Generic_Association);
13567 pragma Inline (Set_Corresponding_Integer_Value);
13568 pragma Inline (Set_Corresponding_Spec);
13569 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13570 pragma Inline (Set_Corresponding_Stub);
13571 pragma Inline (Set_Dcheck_Function);
13572 pragma Inline (Set_Declarations);
13573 pragma Inline (Set_Default_Expression);
13574 pragma Inline (Set_Default_Name);
13575 pragma Inline (Set_Default_Storage_Pool);
13576 pragma Inline (Set_Defining_Identifier);
13577 pragma Inline (Set_Defining_Unit_Name);
13578 pragma Inline (Set_Delay_Alternative);
13579 pragma Inline (Set_Delay_Statement);
13580 pragma Inline (Set_Delta_Expression);
13581 pragma Inline (Set_Digits_Expression);
13582 pragma Inline (Set_Discr_Check_Funcs_Built);
13583 pragma Inline (Set_Discrete_Choices);
13584 pragma Inline (Set_Discrete_Range);
13585 pragma Inline (Set_Discrete_Subtype_Definition);
13586 pragma Inline (Set_Discrete_Subtype_Definitions);
13587 pragma Inline (Set_Discriminant_Specifications);
13588 pragma Inline (Set_Discriminant_Type);
13589 pragma Inline (Set_Do_Accessibility_Check);
13590 pragma Inline (Set_Do_Discriminant_Check);
13591 pragma Inline (Set_Do_Division_Check);
13592 pragma Inline (Set_Do_Length_Check);
13593 pragma Inline (Set_Do_Overflow_Check);
13594 pragma Inline (Set_Do_Range_Check);
13595 pragma Inline (Set_Do_Storage_Check);
13596 pragma Inline (Set_Do_Tag_Check);
13597 pragma Inline (Set_Elaborate_All_Desirable);
13598 pragma Inline (Set_Elaborate_All_Present);
13599 pragma Inline (Set_Elaborate_Desirable);
13600 pragma Inline (Set_Elaborate_Present);
13601 pragma Inline (Set_Else_Actions);
13602 pragma Inline (Set_Else_Statements);
13603 pragma Inline (Set_Elsif_Parts);
13604 pragma Inline (Set_Enclosing_Variant);
13605 pragma Inline (Set_End_Label);
13606 pragma Inline (Set_End_Span);
13607 pragma Inline (Set_Entity);
13608 pragma Inline (Set_Entry_Body_Formal_Part);
13609 pragma Inline (Set_Entry_Call_Alternative);
13610 pragma Inline (Set_Entry_Call_Statement);
13611 pragma Inline (Set_Entry_Direct_Name);
13612 pragma Inline (Set_Entry_Index);
13613 pragma Inline (Set_Entry_Index_Specification);
13614 pragma Inline (Set_Etype);
13615 pragma Inline (Set_Exception_Choices);
13616 pragma Inline (Set_Exception_Handlers);
13617 pragma Inline (Set_Exception_Junk);
13618 pragma Inline (Set_Exception_Label);
13619 pragma Inline (Set_Expansion_Delayed);
13620 pragma Inline (Set_Explicit_Actual_Parameter);
13621 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13622 pragma Inline (Set_Expression);
13623 pragma Inline (Set_Expression_Copy);
13624 pragma Inline (Set_Expressions);
13625 pragma Inline (Set_First_Bit);
13626 pragma Inline (Set_First_Inlined_Subprogram);
13627 pragma Inline (Set_First_Name);
13628 pragma Inline (Set_First_Named_Actual);
13629 pragma Inline (Set_First_Real_Statement);
13630 pragma Inline (Set_First_Subtype_Link);
13631 pragma Inline (Set_Float_Truncate);
13632 pragma Inline (Set_Formal_Type_Definition);
13633 pragma Inline (Set_Forwards_OK);
13634 pragma Inline (Set_From_Aspect_Specification);
13635 pragma Inline (Set_From_At_End);
13636 pragma Inline (Set_From_At_Mod);
13637 pragma Inline (Set_From_Conditional_Expression);
13638 pragma Inline (Set_From_Default);
13639 pragma Inline (Set_Generalized_Indexing);
13640 pragma Inline (Set_Generic_Associations);
13641 pragma Inline (Set_Generic_Formal_Declarations);
13642 pragma Inline (Set_Generic_Parent);
13643 pragma Inline (Set_Generic_Parent_Type);
13644 pragma Inline (Set_Handled_Statement_Sequence);
13645 pragma Inline (Set_Handler_List_Entry);
13646 pragma Inline (Set_Has_Created_Identifier);
13647 pragma Inline (Set_Has_Dereference_Action);
13648 pragma Inline (Set_Has_Dynamic_Length_Check);
13649 pragma Inline (Set_Has_Init_Expression);
13650 pragma Inline (Set_Has_Local_Raise);
13651 pragma Inline (Set_Has_No_Elaboration_Code);
13652 pragma Inline (Set_Has_Pragma_Suppress_All);
13653 pragma Inline (Set_Has_Private_View);
13654 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13655 pragma Inline (Set_Has_Self_Reference);
13656 pragma Inline (Set_Has_SP_Choice);
13657 pragma Inline (Set_Has_Storage_Size_Pragma);
13658 pragma Inline (Set_Has_Target_Names);
13659 pragma Inline (Set_Has_Wide_Character);
13660 pragma Inline (Set_Has_Wide_Wide_Character);
13661 pragma Inline (Set_Header_Size_Added);
13662 pragma Inline (Set_Hidden_By_Use_Clause);
13663 pragma Inline (Set_High_Bound);
13664 pragma Inline (Set_Identifier);
13665 pragma Inline (Set_Implicit_With);
13666 pragma Inline (Set_Import_Interface_Present);
13667 pragma Inline (Set_In_Present);
13668 pragma Inline (Set_Includes_Infinities);
13669 pragma Inline (Set_Incomplete_View);
13670 pragma Inline (Set_Inherited_Discriminant);
13671 pragma Inline (Set_Instance_Spec);
13672 pragma Inline (Set_Interface_List);
13673 pragma Inline (Set_Interface_Present);
13674 pragma Inline (Set_Intval);
13675 pragma Inline (Set_Is_Abort_Block);
13676 pragma Inline (Set_Is_Accessibility_Actual);
13677 pragma Inline (Set_Is_Analyzed_Pragma);
13678 pragma Inline (Set_Is_Asynchronous_Call_Block);
13679 pragma Inline (Set_Is_Boolean_Aspect);
13680 pragma Inline (Set_Is_Checked);
13681 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13682 pragma Inline (Set_Is_Component_Left_Opnd);
13683 pragma Inline (Set_Is_Component_Right_Opnd);
13684 pragma Inline (Set_Is_Controlling_Actual);
13685 pragma Inline (Set_Is_Declaration_Level_Node);
13686 pragma Inline (Set_Is_Delayed_Aspect);
13687 pragma Inline (Set_Is_Disabled);
13688 pragma Inline (Set_Is_Dispatching_Call);
13689 pragma Inline (Set_Is_Dynamic_Coextension);
13690 pragma Inline (Set_Is_Effective_Use_Clause);
13691 pragma Inline (Set_Is_Elaboration_Checks_OK_Node);
13692 pragma Inline (Set_Is_Elaboration_Code);
13693 pragma Inline (Set_Is_Elaboration_Warnings_OK_Node);
13694 pragma Inline (Set_Is_Elsif);
13695 pragma Inline (Set_Is_Entry_Barrier_Function);
13696 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13697 pragma Inline (Set_Is_Expanded_Contract);
13698 pragma Inline (Set_Is_Finalization_Wrapper);
13699 pragma Inline (Set_Is_Folded_In_Parser);
13700 pragma Inline (Set_Is_Generic_Contract_Pragma);
13701 pragma Inline (Set_Is_Homogeneous_Aggregate);
13702 pragma Inline (Set_Is_Ignored);
13703 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13704 pragma Inline (Set_Is_In_Discriminant_Check);
13705 pragma Inline (Set_Is_Inherited_Pragma);
13706 pragma Inline (Set_Is_Initialization_Block);
13707 pragma Inline (Set_Is_Known_Guaranteed_ABE);
13708 pragma Inline (Set_Is_Machine_Number);
13709 pragma Inline (Set_Is_Null_Loop);
13710 pragma Inline (Set_Is_Overloaded);
13711 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13712 pragma Inline (Set_Is_Preelaborable_Call);
13713 pragma Inline (Set_Is_Prefixed_Call);
13714 pragma Inline (Set_Is_Protected_Subprogram_Body);
13715 pragma Inline (Set_Is_Qualified_Universal_Literal);
13716 pragma Inline (Set_Is_Read);
13717 pragma Inline (Set_Is_Source_Call);
13718 pragma Inline (Set_Is_SPARK_Mode_On_Node);
13719 pragma Inline (Set_Is_Static_Coextension);
13720 pragma Inline (Set_Is_Static_Expression);
13721 pragma Inline (Set_Is_Subprogram_Descriptor);
13722 pragma Inline (Set_Is_Task_Allocation_Block);
13723 pragma Inline (Set_Is_Task_Body_Procedure);
13724 pragma Inline (Set_Is_Task_Master);
13725 pragma Inline (Set_Is_Write);
13726 pragma Inline (Set_Iterator_Filter);
13727 pragma Inline (Set_Iteration_Scheme);
13728 pragma Inline (Set_Iterator_Specification);
13729 pragma Inline (Set_Itype);
13730 pragma Inline (Set_Key_Expression);
13731 pragma Inline (Set_Kill_Range_Check);
13732 pragma Inline (Set_Label_Construct);
13733 pragma Inline (Set_Last_Bit);
13734 pragma Inline (Set_Last_Name);
13735 pragma Inline (Set_Left_Opnd);
13736 pragma Inline (Set_Library_Unit);
13737 pragma Inline (Set_Limited_Present);
13738 pragma Inline (Set_Limited_View_Installed);
13739 pragma Inline (Set_Literals);
13740 pragma Inline (Set_Local_Raise_Not_OK);
13741 pragma Inline (Set_Local_Raise_Statements);
13742 pragma Inline (Set_Loop_Actions);
13743 pragma Inline (Set_Loop_Parameter_Specification);
13744 pragma Inline (Set_Low_Bound);
13745 pragma Inline (Set_Mod_Clause);
13746 pragma Inline (Set_More_Ids);
13747 pragma Inline (Set_Must_Be_Byte_Aligned);
13748 pragma Inline (Set_Must_Not_Freeze);
13749 pragma Inline (Set_Must_Not_Override);
13750 pragma Inline (Set_Must_Override);
13751 pragma Inline (Set_Name);
13752 pragma Inline (Set_Names);
13753 pragma Inline (Set_Next_Entity);
13754 pragma Inline (Set_Next_Exit_Statement);
13755 pragma Inline (Set_Next_Implicit_With);
13756 pragma Inline (Set_Next_Named_Actual);
13757 pragma Inline (Set_Next_Pragma);
13758 pragma Inline (Set_Next_Rep_Item);
13759 pragma Inline (Set_Next_Use_Clause);
13760 pragma Inline (Set_No_Ctrl_Actions);
13761 pragma Inline (Set_No_Elaboration_Check);
13762 pragma Inline (Set_No_Entities_Ref_In_Spec);
13763 pragma Inline (Set_No_Initialization);
13764 pragma Inline (Set_No_Minimize_Eliminate);
13765 pragma Inline (Set_No_Side_Effect_Removal);
13766 pragma Inline (Set_No_Truncation);
13767 pragma Inline (Set_Null_Excluding_Subtype);
13768 pragma Inline (Set_Null_Exclusion_Present);
13769 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13770 pragma Inline (Set_Null_Present);
13771 pragma Inline (Set_Null_Record_Present);
13772 pragma Inline (Set_Null_Statement);
13773 pragma Inline (Set_Object_Definition);
13774 pragma Inline (Set_Of_Present);
13775 pragma Inline (Set_Original_Discriminant);
13776 pragma Inline (Set_Original_Entity);
13777 pragma Inline (Set_Others_Discrete_Choices);
13778 pragma Inline (Set_Out_Present);
13779 pragma Inline (Set_Parameter_Associations);
13780 pragma Inline (Set_Parameter_Specifications);
13781 pragma Inline (Set_Parameter_Type);
13782 pragma Inline (Set_Parent_Spec);
13783 pragma Inline (Set_Parent_With);
13784 pragma Inline (Set_Position);
13785 pragma Inline (Set_Pragma_Argument_Associations);
13786 pragma Inline (Set_Pragma_Identifier);
13787 pragma Inline (Set_Pragmas_After);
13788 pragma Inline (Set_Pragmas_Before);
13789 pragma Inline (Set_Pre_Post_Conditions);
13790 pragma Inline (Set_Prefix);
13791 pragma Inline (Set_Premature_Use);
13792 pragma Inline (Set_Present_Expr);
13793 pragma Inline (Set_Prev_Ids);
13794 pragma Inline (Set_Prev_Use_Clause);
13795 pragma Inline (Set_Print_In_Hex);
13796 pragma Inline (Set_Private_Declarations);
13797 pragma Inline (Set_Private_Present);
13798 pragma Inline (Set_Procedure_To_Call);
13799 pragma Inline (Set_Proper_Body);
13800 pragma Inline (Set_Protected_Definition);
13801 pragma Inline (Set_Protected_Present);
13802 pragma Inline (Set_Raises_Constraint_Error);
13803 pragma Inline (Set_Range_Constraint);
13804 pragma Inline (Set_Range_Expression);
13805 pragma Inline (Set_Real_Range_Specification);
13806 pragma Inline (Set_Realval);
13807 pragma Inline (Set_Reason);
13808 pragma Inline (Set_Record_Extension_Part);
13809 pragma Inline (Set_Redundant_Use);
13810 pragma Inline (Set_Renaming_Exception);
13811 pragma Inline (Set_Result_Definition);
13812 pragma Inline (Set_Return_Object_Declarations);
13813 pragma Inline (Set_Reverse_Present);
13814 pragma Inline (Set_Right_Opnd);
13815 pragma Inline (Set_Rounded_Result);
13816 pragma Inline (Set_Save_Invocation_Graph_Of_Body);
13817 pragma Inline (Set_SCIL_Controlling_Tag);
13818 pragma Inline (Set_SCIL_Entity);
13819 pragma Inline (Set_SCIL_Tag_Value);
13820 pragma Inline (Set_SCIL_Target_Prim);
13821 pragma Inline (Set_Scope);
13822 pragma Inline (Set_Select_Alternatives);
13823 pragma Inline (Set_Selector_Name);
13824 pragma Inline (Set_Selector_Names);
13825 pragma Inline (Set_Shift_Count_OK);
13826 pragma Inline (Set_Source_Type);
13827 pragma Inline (Set_Split_PPC);
13828 pragma Inline (Set_Statements);
13829 pragma Inline (Set_Storage_Pool);
13830 pragma Inline (Set_Strval);
13831 pragma Inline (Set_Subpool_Handle_Name);
13832 pragma Inline (Set_Subtype_Indication);
13833 pragma Inline (Set_Subtype_Mark);
13834 pragma Inline (Set_Subtype_Marks);
13835 pragma Inline (Set_Suppress_Assignment_Checks);
13836 pragma Inline (Set_Suppress_Loop_Warnings);
13837 pragma Inline (Set_Synchronized_Present);
13838 pragma Inline (Set_TSS_Elist);
13839 pragma Inline (Set_Tagged_Present);
13840 pragma Inline (Set_Target);
13841 pragma Inline (Set_Target_Type);
13842 pragma Inline (Set_Task_Definition);
13843 pragma Inline (Set_Task_Present);
13844 pragma Inline (Set_Then_Actions);
13845 pragma Inline (Set_Then_Statements);
13846 pragma Inline (Set_Triggering_Alternative);
13847 pragma Inline (Set_Triggering_Statement);
13848 pragma Inline (Set_Type_Definition);
13849 pragma Inline (Set_Uneval_Old_Accept);
13850 pragma Inline (Set_Uneval_Old_Warn);
13851 pragma Inline (Set_Unit);
13852 pragma Inline (Set_Uninitialized_Variable);
13853 pragma Inline (Set_Unknown_Discriminants_Present);
13854 pragma Inline (Set_Unreferenced_In_Spec);
13855 pragma Inline (Set_Used_Operations);
13856 pragma Inline (Set_Variant_Part);
13857 pragma Inline (Set_Variants);
13858 pragma Inline (Set_Visible_Declarations);
13859 pragma Inline (Set_Was_Attribute_Reference);
13860 pragma Inline (Set_Was_Default_Init_Box_Association);
13861 pragma Inline (Set_Was_Expression_Function);
13862 pragma Inline (Set_Was_Originally_Stub);
13864 end Sinfo;