PR rtl-optimization/79386
[official-gcc.git] / gcc / ada / sinfo.ads
blob69f283759b52bec610ee7a9813790cae8a4a4608
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
54 package Sinfo is
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in these places:
64 -- In sinfo.ads:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
72 -- In sinfo.adb:
73 -- The body of the access function
74 -- The body of the set procedure
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
78 -- fields.
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
84 -- If a new tree node is added, then the following changes are made:
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- Add an entry in Is_Syntactic_Field
90 -- In the body (sinfo), add entries to the access functions for all
91 -- its fields (except standard expression fields) to include the new
92 -- node in the checks.
93 -- Add an appropriate section to the case statement in sprint.adb
94 -- Add an appropriate section to the case statement in sem.adb
95 -- Add an appropriate section to the case statement in exp_util.adb
96 -- (Insert_Actions procedure)
97 -- For a subexpression, add an appropriate section to the case
98 -- statement in sem_eval.adb
99 -- For a subexpression, add an appropriate section to the case
100 -- statement in sem_res.adb
102 -- All back ends must be made aware of the new node kind.
104 -- Finally, four utility programs must be run:
106 -- (Optional.) Run CSinfo to check that you have made the changes
107 -- consistently. It checks most of the rules given above. This utility
108 -- reads sinfo.ads and sinfo.adb and generates a report to standard
109 -- output. This step is optional because XSinfo runs CSinfo.
111 -- Run XSinfo to create sinfo.h, the corresponding C header. This
112 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
113 -- not need to read sinfo.adb, since the contents of the body are
114 -- algorithmically determinable from the spec.
116 -- Run XTreeprs to create treeprs.ads, an updated version of the module
117 -- that is used to drive the tree print routine. This utility reads (but
118 -- does not modify) treeprs.adt, the template that provides the basic
119 -- structure of the file, and then fills in the data from the comments
120 -- in sinfo.ads.
122 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
123 -- spec of the Nmake package which contains functions for constructing
124 -- nodes.
126 -- The above steps are done automatically by the build scripts when you do
127 -- a full bootstrap.
129 -- Note: sometime we could write a utility that actually generated the body
130 -- of sinfo from the spec instead of simply checking it, since, as noted
131 -- above, the contents of the body can be determined from the spec.
133 --------------------------------
134 -- Implicit Nodes in the Tree --
135 --------------------------------
137 -- Generally the structure of the tree very closely follows the grammar as
138 -- defined in the RM. However, certain nodes are omitted to save space and
139 -- simplify semantic processing. Two general classes of such omitted nodes
140 -- are as follows:
142 -- If the only possibilities for a non-terminal are one or more other
143 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
144 -- corresponding node is omitted from the tree, and the target construct
145 -- appears directly. For example, a real type definition is either
146 -- floating point definition or a fixed point definition. No explicit node
147 -- appears for real type definition. Instead either the floating point
148 -- definition or fixed point definition appears directly.
150 -- If a non-terminal corresponds to a list of some other non-terminal
151 -- (possibly with separating punctuation), then usually it is omitted from
152 -- the tree, and a list of components appears instead. For example,
153 -- sequence of statements does not appear explicitly in the tree. Instead
154 -- a list of statements appears directly.
156 -- Some additional cases of omitted nodes occur and are documented
157 -- individually. In particular, many nodes are omitted in the tree
158 -- generated for an expression.
160 -------------------------------------------
161 -- Handling of Defining Identifier Lists --
162 -------------------------------------------
164 -- In several declarative forms in the syntax, lists of defining
165 -- identifiers appear (object declarations, component declarations, number
166 -- declarations etc.)
168 -- The semantics of such statements are equivalent to a series of identical
169 -- declarations of single defining identifiers (except that conformance
170 -- checks require the same grouping of identifiers in the parameter case).
172 -- To simplify semantic processing, the parser breaks down such multiple
173 -- declaration cases into sequences of single declarations, duplicating
174 -- type and initialization information as required. The flags More_Ids and
175 -- Prev_Ids are used to record the original form of the source in the case
176 -- where the original source used a list of names, More_Ids being set on
177 -- all but the last name and Prev_Ids being set on all but the first name.
178 -- These flags are used to reconstruct the original source (e.g. in the
179 -- Sprint package), and also are included in the conformance checks, but
180 -- otherwise have no semantic significance.
182 -- Note: the reason that we use More_Ids and Prev_Ids rather than
183 -- First_Name and Last_Name flags is so that the flags are off in the
184 -- normal one identifier case, which minimizes tree print output.
186 -----------------------
187 -- Use of Node Lists --
188 -----------------------
190 -- With a few exceptions, if a construction of the form {non-terminal}
191 -- appears in the tree, lists are used in the corresponding tree node (see
192 -- package Nlists for handling of node lists). In this case a field of the
193 -- parent node points to a list of nodes for the non-terminal. The field
194 -- name for such fields has a plural name which always ends in "s". For
195 -- example, a case statement has a field Alternatives pointing to list of
196 -- case statement alternative nodes.
198 -- Only fields pointing to lists have names ending in "s", so generally the
199 -- structure is strongly typed, fields not ending in s point to single
200 -- nodes, and fields ending in s point to lists.
202 -- The following example shows how a traversal of a list is written. We
203 -- suppose here that Stmt points to a N_Case_Statement node which has a
204 -- list field called Alternatives:
206 -- Alt := First (Alternatives (Stmt));
207 -- while Present (Alt) loop
208 -- ..
209 -- -- processing for case statement alternative Alt
210 -- ..
211 -- Alt := Next (Alt);
212 -- end loop;
214 -- The Present function tests for Empty, which in this case signals the end
215 -- of the list. First returns Empty immediately if the list is empty.
216 -- Present is defined in Atree, First and Next are defined in Nlists.
218 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
219 -- contexts, which is handled as described in the previous section, and
220 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
221 -- using the First_Name and Last_Name flags, as further detailed in the
222 -- description of the N_With_Clause node.
224 -------------
225 -- Pragmas --
226 -------------
228 -- Pragmas can appear in many different context, but are not included in
229 -- the grammar. Still they must appear in the tree, so they can be properly
230 -- processed.
232 -- Two approaches are used. In some cases, an extra field is defined in an
233 -- appropriate node that contains a list of pragmas appearing in the
234 -- expected context. For example pragmas can appear before an
235 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
236 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
238 -- The other approach is to simply allow pragmas to appear in syntactic
239 -- lists where the grammar (of course) does not include the possibility.
240 -- For example, the Variants field of an N_Variant_Part node points to a
241 -- list that can contain both N_Pragma and N_Variant nodes.
243 -- To make processing easier in the latter case, the Nlists package
244 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
245 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
246 -- ignoring all pragmas.
248 -- In the case of the variants list, we can either write:
250 -- Variant := First (Variants (N));
251 -- while Present (Variant) loop
252 -- ...
253 -- Variant := Next (Variant);
254 -- end loop;
256 -- or
258 -- Variant := First_Non_Pragma (Variants (N));
259 -- while Present (Variant) loop
260 -- ...
261 -- Variant := Next_Non_Pragma (Variant);
262 -- end loop;
264 -- In the first form of the loop, Variant can either be an N_Pragma or an
265 -- N_Variant node. In the second form, Variant can only be N_Variant since
266 -- all pragmas are skipped.
268 ---------------------
269 -- Optional Fields --
270 ---------------------
272 -- Fields which correspond to a section of the syntax enclosed in square
273 -- brackets are generally omitted (and the corresponding field set to Empty
274 -- for a node, or No_List for a list). The documentation of such fields
275 -- notes these cases. One exception to this rule occurs in the case of
276 -- possibly empty statement sequences (such as the sequence of statements
277 -- in an entry call alternative). Such cases appear in the syntax rules as
278 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
279 -- statement sequences always contain an empty list (not No_List) if no
280 -- statements are present.
282 -- Note: the utility program that constructs the body and spec of the Nmake
283 -- package relies on the format of the comments to determine if a field
284 -- should have a default value in the corresponding make routine. The rule
285 -- is that if the first line of the description of the field contains the
286 -- string "(set to xxx if", then a default value of xxx is provided for
287 -- this field in the corresponding Make_yyy routine.
289 -----------------------------------
290 -- Note on Body/Spec Terminology --
291 -----------------------------------
293 -- In informal discussions about Ada, it is customary to refer to package
294 -- and subprogram specs and bodies. However, this is not technically
295 -- correct, what is normally referred to as a spec or specification is in
296 -- fact a package declaration or subprogram declaration. We are careful in
297 -- GNAT to use the correct terminology and in particular, the full word
298 -- specification is never used as an incorrect substitute for declaration.
299 -- The structure and terminology used in the tree also reflects the grammar
300 -- and thus uses declaration and specification in the technically correct
301 -- manner.
303 -- However, there are contexts in which the informal terminology is useful.
304 -- We have the word "body" to refer to the Interp_Etype declared by the
305 -- declaration of a unit body, and in some contexts we need similar term to
306 -- refer to the entity declared by the package or subprogram declaration,
307 -- and simply using declaration can be confusing since the body also has a
308 -- declaration.
310 -- An example of such a context is the link between the package body and
311 -- its declaration. With_Declaration is confusing, since the package body
312 -- itself is a declaration.
314 -- To deal with this problem, we reserve the informal term Spec, i.e. the
315 -- popular abbreviation used in this context, to refer to the entity
316 -- declared by the package or subprogram declaration. So in the above
317 -- example case, the field in the body is called With_Spec.
319 -- Another important context for the use of the word Spec is in error
320 -- messages, where a hyper-correct use of declaration would be confusing to
321 -- a typical Ada programmer, and even for an expert programmer can cause
322 -- confusion since the body has a declaration as well.
324 -- So, to summarize:
326 -- Declaration always refers to the syntactic entity that is called
327 -- a declaration. In particular, subprogram declaration
328 -- and package declaration are used to describe the
329 -- syntactic entity that includes the semicolon.
331 -- Specification always refers to the syntactic entity that is called
332 -- a specification. In particular, the terms procedure
333 -- specification, function specification, package
334 -- specification, subprogram specification always refer
335 -- to the syntactic entity that has no semicolon.
337 -- Spec is an informal term, used to refer to the entity
338 -- that is declared by a task declaration, protected
339 -- declaration, generic declaration, subprogram
340 -- declaration or package declaration.
342 -- This convention is followed throughout the GNAT documentation
343 -- both internal and external, and in all error message text.
345 ------------------------
346 -- Internal Use Nodes --
347 ------------------------
349 -- These are Node_Kind settings used in the internal implementation which
350 -- are not logically part of the specification.
352 -- N_Unused_At_Start
353 -- Completely unused entry at the start of the enumeration type. This
354 -- is inserted so that no legitimate value is zero, which helps to get
355 -- better debugging behavior, since zero is a likely uninitialized value).
357 -- N_Unused_At_End
358 -- Completely unused entry at the end of the enumeration type. This is
359 -- handy so that arrays with Node_Kind as the index type have an extra
360 -- entry at the end (see for example the use of the Pchar_Pos_Array in
361 -- Treepr, where the extra entry provides the limit value when dealing with
362 -- the last used entry in the array).
364 -----------------------------------------
365 -- Note on the settings of Sloc fields --
366 -----------------------------------------
368 -- The Sloc field of nodes that come from the source is set by the parser.
369 -- For internal nodes, and nodes generated during expansion the Sloc is
370 -- usually set in the call to the constructor for the node. In general the
371 -- Sloc value chosen for an internal node is the Sloc of the source node
372 -- whose processing is responsible for the expansion. For example, the Sloc
373 -- of an inherited primitive operation is the Sloc of the corresponding
374 -- derived type declaration.
376 -- For the nodes of a generic instantiation, the Sloc value is encoded to
377 -- represent both the original Sloc in the generic unit, and the Sloc of
378 -- the instantiation itself. See Sinput.ads for details.
380 -- Subprogram instances create two callable entities: one is the visible
381 -- subprogram instance, and the other is an anonymous subprogram nested
382 -- within a wrapper package that contains the renamings for the actuals.
383 -- Both of these entities have the Sloc of the defining entity in the
384 -- instantiation node. This simplifies some ASIS queries.
386 -----------------------
387 -- Field Definitions --
388 -----------------------
390 -- In the following node definitions, all fields, both syntactic and
391 -- semantic, are documented. The one exception is in the case of entities
392 -- (defining identifiers, character literals and operator symbols), where
393 -- the usage of the fields depends on the entity kind. Entity fields are
394 -- fully documented in the separate package Einfo.
396 -- In the node definitions, three common sets of fields are abbreviated to
397 -- save both space in the documentation, and also space in the string
398 -- (defined in Tree_Print_Strings) used to print trees. The following
399 -- abbreviations are used:
401 -- Note: the utility program that creates the Treeprs spec (in the file
402 -- xtreeprs.adb) knows about the special fields here, so it must be
403 -- modified if any change is made to these fields.
405 -- "plus fields for binary operator"
406 -- Chars (Name1) Name_Id for the operator
407 -- Left_Opnd (Node2) left operand expression
408 -- Right_Opnd (Node3) right operand expression
409 -- Entity (Node4-Sem) defining entity for operator
410 -- Associated_Node (Node4-Sem) for generic processing
411 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
412 -- Has_Private_View (Flag11-Sem) set in generic units.
414 -- "plus fields for unary operator"
415 -- Chars (Name1) Name_Id for the operator
416 -- Right_Opnd (Node3) right operand expression
417 -- Entity (Node4-Sem) defining entity for operator
418 -- Associated_Node (Node4-Sem) for generic processing
419 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
420 -- Has_Private_View (Flag11-Sem) set in generic units.
422 -- "plus fields for expression"
423 -- Paren_Count number of parentheses levels
424 -- Etype (Node5-Sem) type of the expression
425 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
426 -- Is_Static_Expression (Flag6-Sem) set for static expression
427 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
428 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
429 -- Do_Range_Check (Flag9-Sem) set if a range check needed
430 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
431 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
432 -- Assignment_OK (Flag15-Sem) set if modification is OK
433 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
435 -- Note: see under (EXPRESSION) for further details on the use of
436 -- the Paren_Count field to record the number of parentheses levels.
438 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
439 -- The actual definition of this type is given later (the reason for this
440 -- is that we want the descriptions ordered by logical chapter in the RM,
441 -- but the type definition is reordered to facilitate the definition of
442 -- some subtype ranges. The individual descriptions of the nodes show how
443 -- the various fields are used in each node kind, as well as providing
444 -- logical names for the fields. Functions and procedures are provided for
445 -- accessing and setting these fields using these logical names.
447 -----------------------
448 -- Gigi Restrictions --
449 -----------------------
451 -- The tree passed to Gigi is more restricted than the general tree form.
452 -- For example, as a result of expansion, most of the tasking nodes can
453 -- never appear. For each node to which either a complete or partial
454 -- restriction applies, a note entitled "Gigi restriction" appears which
455 -- documents the restriction.
457 -- Note that most of these restrictions apply only to trees generated when
458 -- code is being generated, since they involved expander actions that
459 -- destroy the tree.
461 ---------------
462 -- ASIS Mode --
463 ---------------
465 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
466 -- and the analysis must generate a tree in a form that meets all ASIS
467 -- requirements.
469 -- ASIS must be able to recover the original tree that corresponds to the
470 -- source. It relies heavily on Original_Node for this purpose, which as
471 -- described in Atree, records the history when a node is rewritten. ASIS
472 -- uses Original_Node to recover the original node before the Rewrite.
474 -- At least in ASIS mode (not really important in non-ASIS mode), when
475 -- N1 is rewritten as N2:
477 -- The subtree rooted by the original node N1 should be fully decorated,
478 -- i.e. all semantic fields noted in sinfo.ads should be set properly
479 -- and any referenced entities should be complete (with exceptions for
480 -- representation information, noted below).
482 -- For all the direct descendants of N1 (original node) their Parent
483 -- links should point not to N1, but to N2 (rewriting node).
485 -- The Parent links of rewritten nodes (N1 in this example) are set in
486 -- some cases (to point to the rewritten parent), but in other cases
487 -- they are set to Empty. This needs sorting out ??? It would be much
488 -- cleaner if they could always be set in the original node ???
490 -- There are a few cases when ASIS has to use not the original, but the
491 -- rewritten tree structures. This happens when because of some important
492 -- technical reasons it is impossible or very hard to have the original
493 -- structure properly decorated by semantic information, and the rewritten
494 -- structure fully reproduces the original source. Below is the (incomplete
495 -- for the moment???) list of such exceptions:
497 -- Generic specifications and generic bodies
498 -- Function calls that use prefixed notation (Operand.Operation [(...)])
500 -- Representation Information
502 -- For the purposes of the data description annex, the representation
503 -- information for source declared entities must be complete in the
504 -- ASIS tree.
506 -- This requires that the front end call the back end (gigi/gcc) in
507 -- a special "back annotate only" mode to obtain information on layout
508 -- from the back end.
510 -- For the purposes of this special "back annotate only" mode, the
511 -- requirements that would normally need to be met to generate code
512 -- are relaxed as follows:
514 -- Anonymous types need not have full representation information (e.g.
515 -- sizes need not be set for types where the front end would normally
516 -- set the sizes), since anonymous types can be ignored in this mode.
518 -- In this mode, gigi will see at least fragments of a fully annotated
519 -- unexpanded tree. This means that it will encounter nodes it does
520 -- not normally handle (such as stubs, task bodies etc). It should
521 -- simply ignore these nodes, since they are not relevant to the task
522 -- of back annotating representation information.
524 -- Some other ASIS-specific issues are covered in specific comments in
525 -- sections for particular nodes or flags.
527 ----------------
528 -- Ghost Mode --
529 ----------------
531 -- The SPARK RM 6.9 defines two classes of constructs - Ghost entities and
532 -- Ghost statements. The intent of the feature is to treat Ghost constructs
533 -- as non-existent when Ghost assertion policy Ignore is in effect.
535 -- The corresponding nodes which map to Ghost constructs are:
537 -- Ghost entities
538 -- Declaration nodes
539 -- N_Package_Body
540 -- N_Subprogram_Body
542 -- Ghost statements
543 -- N_Assignment_Statement
544 -- N_Procedure_Call_Statement
545 -- N_Pragma
547 -- In addition, the compiler treats instantiations as Ghost entities
549 -- To achieve the removal of ignored Ghost constructs, the compiler relies
550 -- on global variable Ghost_Mode and a mechanism called "Ghost regions".
551 -- The values of the global variable are as follows:
553 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
554 -- effect. The Ghost region has mode Check.
556 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
557 -- files, object files, and the final executable. The Ghost region
558 -- has mode Ignore.
560 -- 3. None - No Ghost region is in effect
562 -- A Ghost region is a compiler operating mode, similar to Check_Syntax,
563 -- however a region is much more finely grained and depends on the policy
564 -- in effect. The region starts prior to the analysis of a Ghost construct
565 -- and ends immediately after its expansion. The region is established as
566 -- follows:
568 -- 1. Declarations - Prior to analysis, if the declaration is subject to
569 -- pragma Ghost.
571 -- 2. Renaming declarations - Same as 1) or when the renamed entity is
572 -- Ghost.
574 -- 3. Completing declarations - Same as 1) or when the declaration is
575 -- partially analyzed and the declaration completes a Ghost entity.
577 -- 4. N_Package_Body, N_Subprogram_Body - Same as 1) or when the body is
578 -- partially analyzed and completes a Ghost entity.
580 -- 5. N_Assignment_Statement - After the left hand side is analyzed and
581 -- references a Ghost entity.
583 -- 6. N_Procedure_Call_Statement - After the name is analyzed and denotes
584 -- a Ghost procedure.
586 -- 7. N_Pragma - During analysis, when the related entity is Ghost or the
587 -- pragma encloses a Ghost entity.
589 -- 8. Instantiations - Save as 1) or when the instantiation is partially
590 -- analyzed and the generic template is Ghost.
592 -- Routines Mark_And_Set_Ghost_xxx install a new Ghost region and routine
593 -- Restore_Ghost_Mode ends a Ghost region. A region may be reinstalled
594 -- similar to scopes for decoupled expansion such as the generation of
595 -- dispatch tables or the creation of a predicate function.
597 -- If the mode of a Ghost region is Ignore, any newly created nodes as well
598 -- as source entities are marked as ignored Ghost. In additon, the marking
599 -- process signals all enclosing scopes that an ignored Ghost node resides
600 -- within. The compilation unit where the node resides is also added to an
601 -- auxiliary table for post processing.
603 -- After the analysis and expansion of all compilation units takes place
604 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
605 -- driver initiates a separate pass which removes all ignored Ghost nodes
606 -- from all units stored in the auxiliary table.
608 --------------------
609 -- GNATprove Mode --
610 --------------------
612 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
613 -- expansion is performed and the analysis must generate a tree in a
614 -- form that meets additional requirements.
616 -- This light expansion does two transformations of the tree that cannot
617 -- be postponed till after semantic analysis:
619 -- 1. Replace object renamings by renamed object. This requires the
620 -- introduction of temporaries at the point of the renaming, which
621 -- must be properly analyzed.
623 -- 2. Fully qualify entity names. This is needed to generate suitable
624 -- local effects and call-graphs in ALI files, with the completely
625 -- qualified names (in particular the suffix to distinguish homonyms).
627 -- The tree after this light expansion should be fully analyzed
628 -- semantically, which sometimes requires the insertion of semantic
629 -- pre-analysis, for example for subprogram contracts and pragma
630 -- check/assert. In particular, all expression must have their proper type,
631 -- and semantic links should be set between tree nodes (partial to full
632 -- view, etc.) Some kinds of nodes should be either absent, or can be
633 -- ignored by the formal verification backend:
635 -- N_Object_Renaming_Declaration: can be ignored safely
636 -- N_Expression_Function: absent (rewritten)
637 -- N_Expression_With_Actions: absent (not generated)
639 -- SPARK cross-references are generated from the regular cross-references
640 -- (used for browsing and code understanding) and additional references
641 -- collected during semantic analysis, in particular on all dereferences.
642 -- These SPARK cross-references are output in a separate section of ALI
643 -- files, as described in spark_xrefs.adb. They are the basis for the
644 -- computation of data dependences in GNATprove. This implies that all
645 -- cross-references should be generated in this mode, even those that would
646 -- not make sense from a user point-of-view, and that cross-references that
647 -- do not lead to data dependences for subprograms can be safely ignored.
649 -- GNATprove relies on the following front end behaviors:
651 -- 1. The first declarations in the list of visible declarations of
652 -- a package declaration for a generic instance, up to the first
653 -- declaration which comes from source, should correspond to
654 -- the "mappings nodes" between formal and actual generic parameters.
656 -- 2. In addition pragma Debug statements are removed from the tree
657 -- (rewritten to NULL stmt), since they should be ignored in formal
658 -- verification.
660 -- 3. An error is also issued for missing subunits, similar to the
661 -- warning issued when generating code, to avoid formal verification
662 -- of a partial unit.
664 -- 4. Unconstrained types are not replaced by constrained types whose
665 -- bounds are generated from an expression: Expand_Subtype_From_Expr
666 -- should be a no-op.
668 -- 5. Errors (instead of warnings) are issued on compile-time-known
669 -- constraint errors even though such cases do not correspond to
670 -- illegalities in the Ada RM (this is simply another case where
671 -- GNATprove implements a subset of the full language).
673 -- However, there are a few exceptions to this rule for cases where
674 -- we want to allow the GNATprove analysis to proceed (e.g. range
675 -- checks on empty ranges, which typically appear in deactivated
676 -- code in a particular configuration).
678 -- 6. Subtypes should match in the AST, even after a generic is
679 -- instantiated. In particular, GNATprove relies on the fact that,
680 -- on a selected component, the type of the selected component is
681 -- the type of the corresponding component in the prefix of the
682 -- selected component.
684 -- Note that, in some cases, we know that this rule is broken by the
685 -- frontend. In particular, if the selected component is a packed
686 -- array depending on a discriminant of a unconstrained formal object
687 -- parameter of a generic.
689 -----------------------
690 -- Check Flag Fields --
691 -----------------------
693 -- The following flag fields appear in expression nodes:
695 -- Do_Division_Check
696 -- Do_Overflow_Check
697 -- Do_Range_Check
699 -- These three flags are always set by the front end during semantic
700 -- analysis, on expression nodes that may trigger the corresponding
701 -- check. The front end then inserts or not the check during expansion. In
702 -- particular, these flags should also be correctly set in ASIS mode and
703 -- GNATprove mode. As a special case, the front end does not insert a
704 -- Do_Division_Check flag on float exponentiation expressions, for the case
705 -- where the value is 0.0 and the exponent is negative, although this case
706 -- does lead to a division check failure.
708 -- Note: the expander always takes care of the Do_Range check case,
709 -- so this flag will never be set in the expanded tree passed to the
710 -- back end code generator.
712 -- Note that this accounts for all nodes that trigger the corresponding
713 -- checks, except for range checks on subtype_indications, which may be
714 -- required to check that a range_constraint is compatible with the given
715 -- subtype (RM 3.2.2(11)).
717 -- The following flag fields appear in various nodes:
719 -- Do_Accessibility_Check
720 -- Do_Discriminant_Check
721 -- Do_Length_Check
722 -- Do_Storage_Check
723 -- Do_Tag_Check
725 -- These flags are used in some specific cases by the front end, either
726 -- during semantic analysis or during expansion, and cannot be expected
727 -- to be set on all nodes that trigger the corresponding check.
729 ------------------------
730 -- Common Flag Fields --
731 ------------------------
733 -- The following flag fields appear in all nodes:
735 -- Analyzed
736 -- This flag is used to indicate that a node (and all its children have
737 -- been analyzed. It is used to avoid reanalysis of a node that has
738 -- already been analyzed, both for efficiency and functional correctness
739 -- reasons.
741 -- Comes_From_Source
742 -- This flag is set if the node comes directly from an explicit construct
743 -- in the source. It is normally on for any nodes built by the scanner or
744 -- parser from the source program, with the exception that in a few cases
745 -- the parser adds nodes to normalize the representation (in particular
746 -- a null statement is added to a package body if there is no begin/end
747 -- initialization section.
749 -- Most nodes inserted by the analyzer or expander are not considered
750 -- as coming from source, so the flag is off for such nodes. In a few
751 -- cases, the expander constructs nodes closely equivalent to nodes
752 -- from the source program (e.g. the allocator built for build-in-place
753 -- case), and the Comes_From_Source flag is deliberately set.
755 -- Error_Posted
756 -- This flag is used to avoid multiple error messages being posted on or
757 -- referring to the same node. This flag is set if an error message
758 -- refers to a node or is posted on its source location, and has the
759 -- effect of inhibiting further messages involving this same node.
761 -----------------------
762 -- Modify_Tree_For_C --
763 -----------------------
765 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
766 -- in ways that help match the semantics better with C, easing the task of
767 -- interfacing to C code generators (other than GCC, where the work is done
768 -- in gigi, and there is no point in changing that), and also making life
769 -- easier for Cprint in generating C source code.
771 -- The current modifications implemented are as follows:
773 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
774 -- are eliminated from the tree (since these operations do not exist in
775 -- C), and the operations are rewritten in terms of logical shifts and
776 -- other logical operations that do exist in C. See Exp_Ch4 expansion
777 -- routines for these operators for details of the transformations made.
779 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
780 -- less than the word size (since other values are not well-defined in
781 -- C). This is done using an explicit test if necessary.
783 -- Min and Max attributes are expanded into equivalent if expressions,
784 -- dealing properly with side effect issues.
786 -- Mod for signed integer types is expanded into equivalent expressions
787 -- using Rem (which is % in C) and other C-available operators.
789 -- Functions returning bounded arrays are transformed into procedures
790 -- with an extra out parameter, and the calls updated accordingly.
792 -- Aggregates are only kept unexpanded for object declarations, otherwise
793 -- they are systematically expanded into loops (for arrays) and
794 -- individual assignments (for records).
796 -- Unconstrained array types are handled by means of fat pointers.
798 -- Postconditions are inlined by the frontend since their body may have
799 -- references to itypes defined in the enclosing subprogram.
801 ------------------------------------
802 -- Description of Semantic Fields --
803 ------------------------------------
805 -- The meaning of the syntactic fields is generally clear from their names
806 -- without any further description, since the names are chosen to
807 -- correspond very closely to the syntax in the reference manual. This
808 -- section describes the usage of the semantic fields, which are used to
809 -- contain additional information determined during semantic analysis.
811 -- ABE_Is_Certain (Flag18-Sem)
812 -- This flag is set in an instantiation node or a call node is determined
813 -- to be sure to raise an ABE. This is used to trigger special handling
814 -- of such cases, particularly in the instantiation case where we avoid
815 -- instantiating the body if this flag is set. This flag is also present
816 -- in an N_Formal_Package_Declaration node since formal package
817 -- declarations are treated like instantiations, but it is always set to
818 -- False in this context.
820 -- Accept_Handler_Records (List5-Sem)
821 -- This field is present only in an N_Accept_Alternative node. It is used
822 -- to temporarily hold the exception handler records from an accept
823 -- statement in a selective accept. These exception handlers will
824 -- eventually be placed in the Handler_Records list of the procedure
825 -- built for this accept (see Expand_N_Selective_Accept procedure in
826 -- Exp_Ch9 for further details).
828 -- Access_Types_To_Process (Elist2-Sem)
829 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
830 -- Contains the list of access types which may require specific treatment
831 -- when the nature of the type completion is completely known. An example
832 -- of such treatment is the generation of the associated_final_chain.
834 -- Actions (List1-Sem)
835 -- This field contains a sequence of actions that are associated with the
836 -- node holding the field. See the individual node types for details of
837 -- how this field is used, as well as the description of the specific use
838 -- for a particular node type.
840 -- Activation_Chain_Entity (Node3-Sem)
841 -- This is used in tree nodes representing task activators (blocks,
842 -- subprogram bodies, package declarations, and task bodies). It is
843 -- initially Empty, and then gets set to point to the entity for the
844 -- declared Activation_Chain variable when the first task is declared.
845 -- When tasks are declared in the corresponding declarative region this
846 -- entity is located by name (its name is always _Chain) and the declared
847 -- tasks are added to the chain. Note that N_Extended_Return_Statement
848 -- does not have this attribute, although it does have an activation
849 -- chain. This chain is used to store the tasks temporarily, and is not
850 -- used for activating them. On successful completion of the return
851 -- statement, the tasks are moved to the caller's chain, and the caller
852 -- activates them.
854 -- Acts_As_Spec (Flag4-Sem)
855 -- A flag set in the N_Subprogram_Body node for a subprogram body which
856 -- is acting as its own spec. In the case of a library-level subprogram
857 -- the flag is set as well on the parent compilation unit node.
859 -- Actual_Designated_Subtype (Node4-Sem)
860 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
861 -- needs to known the dynamic constrained subtype of the designated
862 -- object, this attribute is set to that type. This is done for
863 -- N_Free_Statements for access-to-classwide types and access to
864 -- unconstrained packed array types, and for N_Explicit_Dereference when
865 -- the designated type is an unconstrained packed array and the
866 -- dereference is the prefix of a 'Size attribute reference.
868 -- Address_Warning_Posted (Flag18-Sem)
869 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
870 -- posted a warning for the address clause regarding size or alignment
871 -- issues. Used to inhibit multiple redundant messages.
873 -- Aggregate_Bounds (Node3-Sem)
874 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
875 -- known at compile time, this field points to an N_Range node with those
876 -- bounds. Otherwise Empty.
878 -- All_Others (Flag11-Sem)
879 -- Present in an N_Others_Choice node. This flag is set for an others
880 -- exception where all exceptions are to be caught, even those that are
881 -- not normally handled (in particular the tasking abort signal). This
882 -- is used for translation of the at end handler into a normal exception
883 -- handler.
885 -- Aspect_Rep_Item (Node2-Sem)
886 -- Present in N_Aspect_Specification nodes. Points to the corresponding
887 -- pragma/attribute definition node used to process the aspect.
889 -- Assignment_OK (Flag15-Sem)
890 -- This flag is set in a subexpression node for an object, indicating
891 -- that the associated object can be modified, even if this would not
892 -- normally be permissible (either by direct assignment, or by being
893 -- passed as an out or in-out parameter). This is used by the expander
894 -- for a number of purposes, including initialization of constants and
895 -- limited type objects (such as tasks), setting discriminant fields,
896 -- setting tag values, etc. N_Object_Declaration nodes also have this
897 -- flag defined. Here it is used to indicate that an initialization
898 -- expression is valid, even where it would normally not be allowed
899 -- (e.g. where the type involved is limited). It is also used to stop
900 -- a Force_Evaluation call for an unchecked conversion, but this usage
901 -- is unclear and not documented ???
903 -- Associated_Node (Node4-Sem)
904 -- Present in nodes that can denote an entity: identifiers, character
905 -- literals, operator symbols, expanded names, operator nodes, and
906 -- attribute reference nodes (all these nodes have an Entity field).
907 -- This field is also present in N_Aggregate, N_Selected_Component, and
908 -- N_Extension_Aggregate nodes. This field is used in generic processing
909 -- to create links between the generic template and the generic copy.
910 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
911 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
912 -- the normal function of Entity is not required at the point where the
913 -- Associated_Node is set. Note also, that in generic templates, this
914 -- means that the Entity field does not necessarily point to an Entity.
915 -- Since the back end is expected to ignore generic templates, this is
916 -- harmless.
918 -- Atomic_Sync_Required (Flag14-Sem)
919 -- This flag is set on a node for which atomic synchronization is
920 -- required for the corresponding reference or modification.
922 -- At_End_Proc (Node1)
923 -- This field is present in an N_Handled_Sequence_Of_Statements node.
924 -- It contains an identifier reference for the cleanup procedure to be
925 -- called. See description of this node for further details.
927 -- Backwards_OK (Flag6-Sem)
928 -- A flag present in the N_Assignment_Statement node. It is used only
929 -- if the type being assigned is an array type, and is set if analysis
930 -- determines that it is definitely safe to do the copy backwards, i.e.
931 -- starting at the highest addressed element. This is the case if either
932 -- the operands do not overlap, or they may overlap, but if they do,
933 -- then the left operand is at a higher address than the right operand.
935 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
936 -- means that the front end could not determine that either direction is
937 -- definitely safe, and a runtime check may be required if the backend
938 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
939 -- set, it means that the front end can assure no overlap of operands.
941 -- Body_To_Inline (Node3-Sem)
942 -- Present in subprogram declarations. Denotes analyzed but unexpanded
943 -- body of subprogram, to be used when inlining calls. Present when the
944 -- subprogram has an Inline pragma and inlining is enabled. If the
945 -- declaration is completed by a renaming_as_body, and the renamed entity
946 -- is a subprogram, the Body_To_Inline is the name of that entity, which
947 -- is used directly in later calls to the original subprogram.
949 -- Body_Required (Flag13-Sem)
950 -- A flag that appears in the N_Compilation_Unit node indicating that
951 -- the corresponding unit requires a body. For the package case, this
952 -- indicates that a completion is required. In Ada 95, if the flag is not
953 -- set for the package case, then a body may not be present. In Ada 83,
954 -- if the flag is not set for the package case, then body is optional.
955 -- For a subprogram declaration, the flag is set except in the case where
956 -- a pragma Import or Interface applies, in which case no body is
957 -- permitted (in Ada 83 or Ada 95).
959 -- By_Ref (Flag5-Sem)
960 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
961 -- this flag is set when the returned expression is already allocated on
962 -- the secondary stack and thus the result is passed by reference rather
963 -- than copied another time.
965 -- Cleanup_Actions (List5-Sem)
966 -- Present in block statements created for transient blocks, contains
967 -- additional cleanup actions carried over from the transient scope.
969 -- Check_Address_Alignment (Flag11-Sem)
970 -- A flag present in N_Attribute_Definition clause for a 'Address
971 -- attribute definition. This flag is set if a dynamic check should be
972 -- generated at the freeze point for the entity to which this address
973 -- clause applies. The reason that we need this flag is that we want to
974 -- check for range checks being suppressed at the point where the
975 -- attribute definition clause is given, rather than testing this at the
976 -- freeze point.
978 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
979 -- Present in N_Simple_Return_Statement nodes. True if this node was
980 -- constructed as part of the N_Extended_Return_Statement expansion.
982 -- Compile_Time_Known_Aggregate (Flag18-Sem)
983 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
984 -- evaluated at compile time without raising constraint error. Such
985 -- aggregates can be passed as is the back end without any expansion.
986 -- See Exp_Aggr for specific conditions under which this flag gets set.
988 -- Componentwise_Assignment (Flag14-Sem)
989 -- Present in N_Assignment_Statement nodes. Set for a record assignment
990 -- where all that needs doing is to expand it into component-by-component
991 -- assignments. This is used internally for the case of tagged types with
992 -- rep clauses, where we need to avoid recursion (we don't want to try to
993 -- generate a call to the primitive operation, because this is the case
994 -- where we are compiling the primitive operation). Note that when we are
995 -- expanding component assignments in this case, we never assign the _tag
996 -- field, but we recursively assign components of the parent type.
998 -- Condition_Actions (List3-Sem)
999 -- This field appears in else-if nodes and in the iteration scheme node
1000 -- for while loops. This field is only used during semantic processing to
1001 -- temporarily hold actions inserted into the tree. In the tree passed
1002 -- to gigi, the condition actions field is always set to No_List. For
1003 -- details on how this field is used, see the routine Insert_Actions in
1004 -- package Exp_Util, and also the expansion routines for the relevant
1005 -- nodes.
1007 -- Context_Pending (Flag16-Sem)
1008 -- This field appears in Compilation_Unit nodes, to indicate that the
1009 -- context of the unit is being compiled. Used to detect circularities
1010 -- that are not otherwise detected by the loading mechanism. Such
1011 -- circularities can occur in the presence of limited and non-limited
1012 -- with_clauses that mention the same units.
1014 -- Controlling_Argument (Node1-Sem)
1015 -- This field is set in procedure and function call nodes if the call
1016 -- is a dispatching call (it is Empty for a non-dispatching call). It
1017 -- indicates the source of the call's controlling tag. For procedure
1018 -- calls, the Controlling_Argument is one of the actuals. For function
1019 -- that has a dispatching result, it is an entity in the context of the
1020 -- call that can provide a tag, or else it is the tag of the root type
1021 -- of the class. It can also specify a tag directly rather than being a
1022 -- tagged object. The latter is needed by the implementations of AI-239
1023 -- and AI-260.
1025 -- Conversion_OK (Flag14-Sem)
1026 -- A flag set on type conversion nodes to indicate that the conversion
1027 -- is to be considered as being valid, even though it is the case that
1028 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1029 -- Fixed_Value and Integer_Value, for internal conversions done for
1030 -- fixed-point operations, and for certain conversions for calls to
1031 -- initialization procedures. If Conversion_OK is set, then Etype must be
1032 -- set (the analyzer assumes that Etype has been set). For the case of
1033 -- fixed-point operands, it also indicates that the conversion is to be
1034 -- direct conversion of the underlying integer result, with no regard to
1035 -- the small operand.
1037 -- Convert_To_Return_False (Flag13-Sem)
1038 -- Present in N_Raise_Expression nodes that appear in the body of the
1039 -- special predicateM function used to test a predicate in the context
1040 -- of a membership test, where raise expression results in returning a
1041 -- value of False rather than raising an exception.
1043 -- Corresponding_Aspect (Node3-Sem)
1044 -- Present in N_Pragma node. Used to point back to the source aspect from
1045 -- the corresponding pragma. This field is Empty for source pragmas.
1047 -- Corresponding_Body (Node5-Sem)
1048 -- This field is set in subprogram declarations, package declarations,
1049 -- entry declarations of protected types, and in generic units. It points
1050 -- to the defining entity for the corresponding body (NOT the node for
1051 -- the body itself).
1053 -- Corresponding_Formal_Spec (Node3-Sem)
1054 -- This field is set in subprogram renaming declarations, where it points
1055 -- to the defining entity for a formal subprogram in the case where the
1056 -- renaming corresponds to a generic formal subprogram association in an
1057 -- instantiation. The field is Empty if the renaming does not correspond
1058 -- to such a formal association.
1060 -- Corresponding_Generic_Association (Node5-Sem)
1061 -- This field is defined for object declarations and object renaming
1062 -- declarations. It is set for the declarations within an instance that
1063 -- map generic formals to their actuals. If set, the field points to
1064 -- a generic_association which is the original parent of the expression
1065 -- or name appearing in the declaration. This simplifies ASIS queries.
1067 -- Corresponding_Integer_Value (Uint4-Sem)
1068 -- This field is set in real literals of fixed-point types (it is not
1069 -- used for floating-point types). It contains the integer value used
1070 -- to represent the fixed-point value. It is also set on the universal
1071 -- real literals used to represent bounds of fixed-point base types
1072 -- and their first named subtypes.
1074 -- Corresponding_Spec (Node5-Sem)
1075 -- This field is set in subprogram, package, task, and protected body
1076 -- nodes, where it points to the defining entity in the corresponding
1077 -- spec. The attribute is also set in N_With_Clause nodes where it points
1078 -- to the defining entity for the with'ed spec, and in a subprogram
1079 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1080 -- if there is no corresponding spec, as in the case of a subprogram body
1081 -- that serves as its own spec.
1083 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1084 -- complete a subprogram declaration.
1086 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1087 -- This field is present in subprogram, package, task and protected body
1088 -- stubs where it points to the corresponding spec of the stub. Due to
1089 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1091 -- Corresponding_Stub (Node3-Sem)
1092 -- This field is present in an N_Subunit node. It holds the node in
1093 -- the parent unit that is the stub declaration for the subunit. It is
1094 -- set when analysis of the stub forces loading of the proper body. If
1095 -- expansion of the proper body creates new declarative nodes, they are
1096 -- inserted at the point of the corresponding_stub.
1098 -- Dcheck_Function (Node5-Sem)
1099 -- This field is present in an N_Variant node, It references the entity
1100 -- for the discriminant checking function for the variant.
1102 -- Default_Expression (Node5-Sem)
1103 -- This field is Empty if there is no default expression. If there is a
1104 -- simple default expression (one with no side effects), then this field
1105 -- simply contains a copy of the Expression field (both point to the tree
1106 -- for the default expression). Default_Expression is used for
1107 -- conformance checking.
1109 -- Default_Storage_Pool (Node3-Sem)
1110 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1111 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1112 -- package Opt for details. This is used for inheriting the
1113 -- Default_Storage_Pool in child units.
1115 -- Discr_Check_Funcs_Built (Flag11-Sem)
1116 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1117 -- discriminant checking functions are constructed. The purpose is to
1118 -- avoid attempting to set these functions more than once.
1120 -- Do_Accessibility_Check (Flag13-Sem)
1121 -- This flag is set on N_Parameter_Specification nodes to indicate
1122 -- that an accessibility check is required for the parameter. It is
1123 -- not yet decided who takes care of this check (TBD ???).
1125 -- Do_Discriminant_Check (Flag1-Sem)
1126 -- This flag is set on N_Selected_Component nodes to indicate that a
1127 -- discriminant check is required using the discriminant check routine
1128 -- associated with the selector. The actual check is generated by the
1129 -- expander when processing selected components. In the case of
1130 -- Unchecked_Union, the flag is also set, but no discriminant check
1131 -- routine is associated with the selector, and the expander does not
1132 -- generate a check. This flag is also present in assignment statements
1133 -- (and set if the assignment requires a discriminant check), and in type
1134 -- conversion nodes (and set if the conversion requires a check).
1136 -- Do_Division_Check (Flag13-Sem)
1137 -- This flag is set on a division operator (/ mod rem) to indicate
1138 -- that a zero divide check is required. The actual check is dealt
1139 -- with by the backend (all the front end does is to set the flag).
1141 -- Do_Length_Check (Flag4-Sem)
1142 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1143 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1144 -- is required. It is not determined who deals with this flag (???).
1146 -- Do_Overflow_Check (Flag17-Sem)
1147 -- This flag is set on an operator where an overflow check is required on
1148 -- the operation. The actual check is dealt with by the backend (all the
1149 -- front end does is to set the flag). The other cases where this flag is
1150 -- used is on a Type_Conversion node and for attribute reference nodes.
1151 -- For a type conversion, it means that the conversion is from one base
1152 -- type to another, and the value may not fit in the target base type.
1153 -- See also the description of Do_Range_Check for this case. The only
1154 -- attribute references which use this flag are Pred and Succ, where it
1155 -- means that the result should be checked for going outside the base
1156 -- range. Note that this flag is not set for modular types. This flag is
1157 -- also set on if and case expression nodes if we are operating in either
1158 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1159 -- properly process overflow checking for dependent expressions).
1161 -- Do_Range_Check (Flag9-Sem)
1162 -- This flag is set on an expression which appears in a context where a
1163 -- range check is required. The target type is clear from the context.
1164 -- The contexts in which this flag can appear are the following:
1166 -- Right side of an assignment. In this case the target type is
1167 -- taken from the left side of the assignment, which is referenced
1168 -- by the Name of the N_Assignment_Statement node.
1170 -- Subscript expressions in an indexed component. In this case the
1171 -- target type is determined from the type of the array, which is
1172 -- referenced by the Prefix of the N_Indexed_Component node.
1174 -- Argument expression for a parameter, appearing either directly in
1175 -- the Parameter_Associations list of a call or as the Expression of an
1176 -- N_Parameter_Association node that appears in this list. In either
1177 -- case, the check is against the type of the formal. Note that the
1178 -- flag is relevant only in IN and IN OUT parameters, and will be
1179 -- ignored for OUT parameters, where no check is required in the call,
1180 -- and if a check is required on the return, it is generated explicitly
1181 -- with a type conversion.
1183 -- Initialization expression for the initial value in an object
1184 -- declaration. In this case the Do_Range_Check flag is set on
1185 -- the initialization expression, and the check is against the
1186 -- range of the type of the object being declared. This includes the
1187 -- cases of expressions providing default discriminant values, and
1188 -- expressions used to initialize record components.
1190 -- The expression of a type conversion. In this case the range check is
1191 -- against the target type of the conversion. See also the use of
1192 -- Do_Overflow_Check on a type conversion. The distinction is that the
1193 -- overflow check protects against a value that is outside the range of
1194 -- the target base type, whereas a range check checks that the
1195 -- resulting value (which is a value of the base type of the target
1196 -- type), satisfies the range constraint of the target type.
1198 -- Note: when a range check is required in contexts other than those
1199 -- listed above (e.g. in a return statement), an additional type
1200 -- conversion node is introduced to represent the required check.
1202 -- A special case arises for the arguments of the Pred/Succ attributes.
1203 -- Here the range check needed is against First + 1 .. Last (Pred) or
1204 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1205 -- these checks are what would be performed within the implicit body of
1206 -- the functions that correspond to these attributes. In these cases,
1207 -- the Do_Range check flag is set on the argument to the attribute
1208 -- function, and the back end must special case the appropriate range
1209 -- to check against.
1211 -- Do_Storage_Check (Flag17-Sem)
1212 -- This flag is set in an N_Allocator node to indicate that a storage
1213 -- check is required for the allocation, or in an N_Subprogram_Body node
1214 -- to indicate that a stack check is required in the subprogram prologue.
1215 -- The N_Allocator case is handled by the routine that expands the call
1216 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1217 -- backend, and all the semantics does is set the flag.
1219 -- Do_Tag_Check (Flag13-Sem)
1220 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1221 -- N_Procedure_Call_Statement, N_Type_Conversion,
1222 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1223 -- node to indicate that the tag check can be suppressed. It is not
1224 -- yet decided how this flag is used (TBD ???).
1226 -- Elaborate_Present (Flag4-Sem)
1227 -- This flag is set in the N_With_Clause node to indicate that pragma
1228 -- Elaborate pragma appears for the with'ed units.
1230 -- Elaborate_All_Desirable (Flag9-Sem)
1231 -- This flag is set in the N_With_Clause mode to indicate that the static
1232 -- elaboration processing has determined that an Elaborate_All pragma is
1233 -- desirable for correct elaboration for this unit.
1235 -- Elaborate_All_Present (Flag14-Sem)
1236 -- This flag is set in the N_With_Clause node to indicate that a
1237 -- pragma Elaborate_All pragma appears for the with'ed units.
1239 -- Elaborate_Desirable (Flag11-Sem)
1240 -- This flag is set in the N_With_Clause mode to indicate that the static
1241 -- elaboration processing has determined that an Elaborate pragma is
1242 -- desirable for correct elaboration for this unit.
1244 -- Else_Actions (List3-Sem)
1245 -- This field is present in if expression nodes. During code
1246 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1247 -- actions at an appropriate place in the tree to get elaborated at the
1248 -- right time. For if expressions, we have to be sure that the actions
1249 -- for the Else branch are only elaborated if the condition is False.
1250 -- The Else_Actions field is used as a temporary parking place for
1251 -- these actions. The final tree is always rewritten to eliminate the
1252 -- need for this field, so in the tree passed to Gigi, this field is
1253 -- always set to No_List.
1255 -- Enclosing_Variant (Node2-Sem)
1256 -- This field is present in the N_Variant node and identifies the Node_Id
1257 -- corresponding to the immediately enclosing variant when the variant is
1258 -- nested, and N_Empty otherwise. Set during semantic processing of the
1259 -- variant part of a record type.
1261 -- Entity (Node4-Sem)
1262 -- Appears in all direct names (identifiers, character literals, and
1263 -- operator symbols), as well as expanded names, and attributes that
1264 -- denote entities, such as 'Class. Points to entity for corresponding
1265 -- defining occurrence. Set after name resolution. For identifiers in a
1266 -- WITH list, the corresponding defining occurrence is in a separately
1267 -- compiled file, and Entity must be set by the library Load procedure.
1269 -- Note: During name resolution, the value in Entity may be temporarily
1270 -- incorrect (e.g. during overload resolution, Entity is initially set to
1271 -- the first possible correct interpretation, and then later modified if
1272 -- necessary to contain the correct value after resolution).
1274 -- Note: This field overlaps Associated_Node, which is used during
1275 -- generic processing (see Sem_Ch12 for details). Note also that in
1276 -- generic templates, this means that the Entity field does not always
1277 -- point to an Entity. Since the back end is expected to ignore generic
1278 -- templates, this is harmless.
1280 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1281 -- It is used only for stream attributes definition clauses. In this
1282 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1283 -- conceptually at the point of the clause. Thus the visibility of the
1284 -- attribute definition clause (in the sense of 8.3(23) as amended by
1285 -- AI-195) can be checked by testing the visibility of that subprogram.
1287 -- Note: Normally the Entity field of an identifier points to the entity
1288 -- for the corresponding defining identifier, and hence the Chars field
1289 -- of an identifier will match the Chars field of the entity. However,
1290 -- there is no requirement that these match, and there are obscure cases
1291 -- of generated code where they do not match.
1293 -- Note: Ada 2012 aspect specifications require additional links between
1294 -- identifiers and various attributes. These attributes can be of
1295 -- arbitrary types, and the entity field of identifiers that denote
1296 -- aspects must be used to store arbitrary expressions for later semantic
1297 -- checks. See section on aspect specifications for details.
1299 -- Entity_Or_Associated_Node (Node4-Sem)
1300 -- A synonym for both Entity and Associated_Node. Used by convention in
1301 -- the code when referencing this field in cases where it is not known
1302 -- whether the field contains an Entity or an Associated_Node.
1304 -- Etype (Node5-Sem)
1305 -- Appears in all expression nodes, all direct names, and all entities.
1306 -- Points to the entity for the related type. Set after type resolution.
1307 -- Normally this is the actual subtype of the expression. However, in
1308 -- certain contexts such as the right side of an assignment, subscripts,
1309 -- arguments to calls, returned value in a function, initial value etc.
1310 -- it is the desired target type. In the event that this is different
1311 -- from the actual type, the Do_Range_Check flag will be set if a range
1312 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1313 -- points to an essentially arbitrary choice from the possible set of
1314 -- types.
1316 -- Exception_Junk (Flag8-Sem)
1317 -- This flag is set in a various nodes appearing in a statement sequence
1318 -- to indicate that the corresponding node is an artifact of the
1319 -- generated code for exception handling, and should be ignored when
1320 -- analyzing the control flow of the relevant sequence of statements
1321 -- (e.g. to check that it does not end with a bad return statement).
1323 -- Exception_Label (Node5-Sem)
1324 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1325 -- to be used for transforming the corresponding exception into a goto,
1326 -- or contains Empty, if this exception is not to be transformed. Also
1327 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1328 -- that there may be a local raise for the handler, so that expansion
1329 -- to allow a goto is required (and this field contains the label for
1330 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1332 -- Expansion_Delayed (Flag11-Sem)
1333 -- Set on aggregates and extension aggregates that need a top-down rather
1334 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1335 -- up. For nested aggregates the expansion is delayed until the enclosing
1336 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1337 -- delay it we set this flag. This is done to avoid creating a temporary
1338 -- for each level of a nested aggregates, and also to prevent the
1339 -- premature generation of constraint checks. This is also a requirement
1340 -- if we want to generate the proper attachment to the internal
1341 -- finalization lists (for record with controlled components). Top down
1342 -- expansion of aggregates is also used for in-place array aggregate
1343 -- assignment or initialization. When the full context is known, the
1344 -- target of the assignment or initialization is used to generate the
1345 -- left-hand side of individual assignment to each sub-component.
1347 -- Expression_Copy (Node2-Sem)
1348 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1349 -- original expression. This field is best used to store pragma-dependent
1350 -- modifications performed on the original expression such as replacement
1351 -- of the current type instance or substitutions of primitives.
1353 -- First_Inlined_Subprogram (Node3-Sem)
1354 -- Present in the N_Compilation_Unit node for the main program. Points
1355 -- to a chain of entities for subprograms that are to be inlined. The
1356 -- Next_Inlined_Subprogram field of these entities is used as a link
1357 -- pointer with Empty marking the end of the list. This field is Empty
1358 -- if there are no inlined subprograms or inlining is not active.
1360 -- First_Named_Actual (Node4-Sem)
1361 -- Present in procedure call statement and function call nodes, and also
1362 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1363 -- named parameter where parameters are ordered by declaration order (as
1364 -- opposed to the actual order in the call which may be different due to
1365 -- named associations). Note: this field points to the explicit actual
1366 -- parameter itself, not the N_Parameter_Association node (its parent).
1368 -- First_Real_Statement (Node2-Sem)
1369 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1370 -- Empty. Used only when declarations are moved into the statement part
1371 -- of a construct as a result of wrapping an AT END handler that is
1372 -- required to cover the declarations. In this case, this field is used
1373 -- to remember the location in the statements list of the first real
1374 -- statement, i.e. the statement that used to be first in the statement
1375 -- list before the declarations were prepended.
1377 -- First_Subtype_Link (Node5-Sem)
1378 -- Present in N_Freeze_Entity node for an anonymous base type that is
1379 -- implicitly created by the declaration of a first subtype. It points
1380 -- to the entity for the first subtype.
1382 -- Float_Truncate (Flag11-Sem)
1383 -- A flag present in type conversion nodes. This is used for float to
1384 -- integer conversions where truncation is required rather than rounding.
1386 -- Forwards_OK (Flag5-Sem)
1387 -- A flag present in the N_Assignment_Statement node. It is used only
1388 -- if the type being assigned is an array type, and is set if analysis
1389 -- determines that it is definitely safe to do the copy forwards, i.e.
1390 -- starting at the lowest addressed element. This is the case if either
1391 -- the operands do not overlap, or they may overlap, but if they do,
1392 -- then the left operand is at a lower address than the right operand.
1394 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1395 -- means that the front end could not determine that either direction is
1396 -- definitely safe, and a runtime check may be required if the backend
1397 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1398 -- set, it means that the front end can assure no overlap of operands.
1400 -- From_Aspect_Specification (Flag13-Sem)
1401 -- Processing of aspect specifications typically results in insertion in
1402 -- the tree of corresponding pragma or attribute definition clause nodes.
1403 -- These generated nodes have the From_Aspect_Specification flag set to
1404 -- indicate that they came from aspect specifications originally.
1406 -- From_At_End (Flag4-Sem)
1407 -- This flag is set on an N_Raise_Statement node if it corresponds to
1408 -- the reraise statement generated as the last statement of an AT END
1409 -- handler when SJLJ exception handling is active. It is used to stop
1410 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1411 -- because if the restriction is set, the reraise is not generated.
1413 -- From_At_Mod (Flag4-Sem)
1414 -- This flag is set on the attribute definition clause node that is
1415 -- generated by a transformation of an at mod phrase in a record
1416 -- representation clause. This is used to give slightly different (Ada 83
1417 -- compatible) semantics to such a clause, namely it is used to specify a
1418 -- minimum acceptable alignment for the base type and all subtypes. In
1419 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1420 -- must be a multiple of the given value, and the representation clause
1421 -- is considered to be type specific instead of subtype specific.
1423 -- From_Conditional_Expression (Flag1-Sem)
1424 -- This flag is set on if and case statements generated by the expansion
1425 -- of if and case expressions respectively. The flag is used to suppress
1426 -- any finalization of controlled objects found within these statements.
1428 -- From_Default (Flag6-Sem)
1429 -- This flag is set on the subprogram renaming declaration created in an
1430 -- instance for a formal subprogram, when the formal is declared with a
1431 -- box, and there is no explicit actual. If the flag is present, the
1432 -- declaration is treated as an implicit reference to the formal in the
1433 -- ali file.
1435 -- Generalized_Indexing (Node4-Sem)
1436 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1437 -- that are Ada 2012 container indexing operations. The value of the
1438 -- attribute is a function call (possibly dereferenced) that corresponds
1439 -- to the proper expansion of the source indexing operation. Before
1440 -- expansion, the source node is rewritten as the resolved generalized
1441 -- indexing. In ASIS mode, the expansion does not take place, so that
1442 -- the source is preserved and properly annotated with types.
1444 -- Generic_Parent (Node5-Sem)
1445 -- Generic_Parent is defined on declaration nodes that are instances. The
1446 -- value of Generic_Parent is the generic entity from which the instance
1447 -- is obtained. Generic_Parent is also defined for the renaming
1448 -- declarations and object declarations created for the actuals in an
1449 -- instantiation. The generic parent of such a declaration is the
1450 -- corresponding generic association in the Instantiation node.
1452 -- Generic_Parent_Type (Node4-Sem)
1453 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1454 -- actuals of formal private and derived types. Within the instance, the
1455 -- operations on the actual are those inherited from the parent. For a
1456 -- formal private type, the parent type is the generic type itself. The
1457 -- Generic_Parent_Type is also used in an instance to determine whether a
1458 -- private operation overrides an inherited one.
1460 -- Handler_List_Entry (Node2-Sem)
1461 -- This field is present in N_Object_Declaration nodes. It is set only
1462 -- for the Handler_Record entry generated for an exception in zero cost
1463 -- exception handling mode. It references the corresponding item in the
1464 -- handler list, and is used to delete this entry if the corresponding
1465 -- handler is deleted during optimization. For further details on why
1466 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1468 -- Has_Dereference_Action (Flag13-Sem)
1469 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1470 -- indicate that the expansion has aready produced a call to primitive
1471 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1472 -- Such dereference actions are produced for debugging purposes.
1474 -- Has_Dynamic_Length_Check (Flag10-Sem)
1475 -- This flag is present in all expression nodes. It is set to indicate
1476 -- that one of the routines in unit Checks has generated a length check
1477 -- action which has been inserted at the flagged node. This is used to
1478 -- avoid the generation of duplicate checks.
1480 -- Has_Dynamic_Range_Check (Flag12-Sem)
1481 -- This flag is present in N_Subtype_Declaration nodes and on all
1482 -- expression nodes. It is set to indicate that one of the routines in
1483 -- unit Checks has generated a range check action which has been inserted
1484 -- at the flagged node. This is used to avoid the generation of duplicate
1485 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1486 -- it mean in that context???
1488 -- Has_Local_Raise (Flag8-Sem)
1489 -- Present in exception handler nodes. Set if the handler can be entered
1490 -- via a local raise that gets transformed to a goto statement. This will
1491 -- always be set if Local_Raise_Statements is non-empty, but can also be
1492 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1493 -- nodes requiring generation of back end checks.
1495 -- Has_No_Elaboration_Code (Flag17-Sem)
1496 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1497 -- or not elaboration code is present for this unit. It is initially set
1498 -- true for subprogram specs and bodies and for all generic units and
1499 -- false for non-generic package specs and bodies. Gigi may set the flag
1500 -- in the non-generic package case if it determines that no elaboration
1501 -- code is generated. Note that this flag is not related to the
1502 -- Is_Preelaborated status, there can be preelaborated packages that
1503 -- generate elaboration code, and non-preelaborated packages which do
1504 -- not generate elaboration code.
1506 -- Has_Pragma_Suppress_All (Flag14-Sem)
1507 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1508 -- pragma appears anywhere in the unit. This accommodates the rather
1509 -- strange placement rules of other compilers (DEC permits it at the
1510 -- end of a unit, and Rational allows it as a program unit pragma). We
1511 -- allow it anywhere at all, and consider it equivalent to a pragma
1512 -- Suppress (All_Checks) appearing at the start of the configuration
1513 -- pragmas for the unit.
1515 -- Has_Private_View (Flag11-Sem)
1516 -- A flag present in generic nodes that have an entity, to indicate that
1517 -- the node has a private type. Used to exchange private and full
1518 -- declarations if the visibility at instantiation is different from the
1519 -- visibility at generic definition.
1521 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1522 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1523 -- flag the presence of a pragma Relative_Deadline.
1525 -- Has_Self_Reference (Flag13-Sem)
1526 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1527 -- of the expressions contains an access attribute reference to the
1528 -- enclosing type. Such a self-reference can only appear in default-
1529 -- initialized aggregate for a record type.
1531 -- Has_SP_Choice (Flag15-Sem)
1532 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1533 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1534 -- True if the Discrete_Choices list has at least one occurrence of a
1535 -- statically predicated subtype.
1537 -- Has_Storage_Size_Pragma (Flag5-Sem)
1538 -- A flag present in an N_Task_Definition node to flag the presence of a
1539 -- Storage_Size pragma.
1541 -- Has_Target_Names (Flag8-Sem)
1542 -- Present in assignment statements. Indicates that the RHS contains
1543 -- target names (see AI12-0125-3) and must be expanded accordingly.
1545 -- Has_Wide_Character (Flag11-Sem)
1546 -- Present in string literals, set if any wide character (i.e. character
1547 -- code outside the Character range but within Wide_Character range)
1548 -- appears in the string. Used to implement pragma preference rules.
1550 -- Has_Wide_Wide_Character (Flag13-Sem)
1551 -- Present in string literals, set if any wide character (i.e. character
1552 -- code outside the Wide_Character range) appears in the string. Used to
1553 -- implement pragma preference rules.
1555 -- Header_Size_Added (Flag11-Sem)
1556 -- Present in N_Attribute_Reference nodes, set only for attribute
1557 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1558 -- hidden list header used by the runtime finalization support has been
1559 -- added to the size of the prefix. The flag also prevents the infinite
1560 -- expansion of the same attribute in the said context.
1562 -- Hidden_By_Use_Clause (Elist4-Sem)
1563 -- An entity list present in use clauses that appear within
1564 -- instantiations. For the resolution of local entities, entities
1565 -- introduced by these use clauses have priority over global ones, and
1566 -- outer entities must be explicitly hidden/restored on exit.
1568 -- Implicit_With (Flag16-Sem)
1569 -- This flag is set in the N_With_Clause node that is implicitly
1570 -- generated for runtime units that are loaded by the expander or in
1571 -- GNATprove mode, and also for package System, if it is loaded
1572 -- implicitly by a use of the 'Address or 'Tag attribute.
1573 -- ??? There are other implicit with clauses as well.
1575 -- Implicit_With_From_Instantiation (Flag12-Sem)
1576 -- Set in N_With_Clause nodes from generic instantiations.
1578 -- Import_Interface_Present (Flag16-Sem)
1579 -- This flag is set in an Interface or Import pragma if a matching
1580 -- pragma of the other kind is also present. This is used to avoid
1581 -- generating some unwanted error messages.
1583 -- Includes_Infinities (Flag11-Sem)
1584 -- This flag is present in N_Range nodes. It is set for the range of
1585 -- unconstrained float types defined in Standard, which include not only
1586 -- the given range of values, but also legitimately can include infinite
1587 -- values. This flag is false for any float type for which an explicit
1588 -- range is given by the programmer, even if that range is identical to
1589 -- the range for Float.
1591 -- Incomplete_View (Node2-Sem)
1592 -- Present in full type declarations that are completions of incomplete
1593 -- type declarations. Denotes the corresponding incomplete type
1594 -- declaration. Used to simplify the retrieval of primitive operations
1595 -- that may be declared between the partial and the full view of an
1596 -- untagged type.
1598 -- Inherited_Discriminant (Flag13-Sem)
1599 -- This flag is present in N_Component_Association nodes. It indicates
1600 -- that a given component association in an extension aggregate is the
1601 -- value obtained from a constraint on an ancestor. Used to prevent
1602 -- double expansion when the aggregate has expansion delayed.
1604 -- Instance_Spec (Node5-Sem)
1605 -- This field is present in generic instantiation nodes, and also in
1606 -- formal package declaration nodes (formal package declarations are
1607 -- treated in a manner very similar to package instantiations). It points
1608 -- to the node for the spec of the instance, inserted as part of the
1609 -- semantic processing for instantiations in Sem_Ch12.
1611 -- Is_Abort_Block (Flag4-Sem)
1612 -- Present in N_Block_Statement nodes. True if the block protects a list
1613 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1615 -- Is_Accessibility_Actual (Flag13-Sem)
1616 -- Present in N_Parameter_Association nodes. True if the parameter is
1617 -- an extra actual that carries the accessibility level of the actual
1618 -- for an access parameter, in a function that dispatches on result and
1619 -- is called in a dispatching context. Used to prevent a formal/actual
1620 -- mismatch when the call is rewritten as a dispatching call.
1622 -- Is_Analyzed_Pragma (Flag5-Sem)
1623 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1624 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1625 -- and verifies the overall legality of the pragma. The second step takes
1626 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1627 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1629 -- Is_Expanded_Contract (Flag1-Sem)
1630 -- Present in N_Contract nodes. Set if the contract has already undergone
1631 -- expansion activities.
1633 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1634 -- A flag set in a Block_Statement node to indicate that it is the
1635 -- expansion of an asynchronous entry call. Such a block needs cleanup
1636 -- handler to assure that the call is cancelled.
1638 -- Is_Boolean_Aspect (Flag16-Sem)
1639 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1640 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1642 -- Is_Checked (Flag11-Sem)
1643 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1644 -- assertion aspect or pragma, or check pragma for an assertion, that
1645 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1646 -- is set (they cannot both be set), then this means that the status of
1647 -- the pragma has been checked at the appropriate point and should not
1648 -- be further modified (in some cases these flags are copied when a
1649 -- pragma is rewritten).
1651 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1652 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1653 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1654 -- This flag has no relation to Is_Checked.
1656 -- Is_Component_Left_Opnd (Flag13-Sem)
1657 -- Is_Component_Right_Opnd (Flag14-Sem)
1658 -- Present in concatenation nodes, to indicate that the corresponding
1659 -- operand is of the component type of the result. Used in resolving
1660 -- concatenation nodes in instances.
1662 -- Is_Controlling_Actual (Flag16-Sem)
1663 -- This flag is set on an expression that is a controlling argument in
1664 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1665 -- details of its use.
1667 -- Is_Delayed_Aspect (Flag14-Sem)
1668 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1669 -- come from aspect specifications, where the evaluation of the aspect
1670 -- must be delayed to the freeze point. This flag is also set True in
1671 -- the corresponding N_Aspect_Specification node.
1673 -- Is_Disabled (Flag15-Sem)
1674 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1675 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1676 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1677 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1678 -- If this flag is set, the aspect or policy is not analyzed for semantic
1679 -- correctness, so any expressions etc will not be marked as analyzed.
1681 -- Is_Dynamic_Coextension (Flag18-Sem)
1682 -- Present in allocator nodes, to indicate that this is an allocator
1683 -- for an access discriminant of a dynamically allocated object. The
1684 -- coextension must be deallocated and finalized at the same time as
1685 -- the enclosing object.
1687 -- Is_Entry_Barrier_Function (Flag8-Sem)
1688 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1689 -- nodes which emulate the barrier function of a protected entry body.
1690 -- The flag is used when checking for incorrect use of Current_Task.
1692 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1693 -- This flag is set in an N_Function_Call node to indicate that the extra
1694 -- actuals to support a build-in-place style of call have been added to
1695 -- the call.
1697 -- Is_Finalization_Wrapper (Flag9-Sem)
1698 -- This flag is present in N_Block_Statement nodes. It is set when the
1699 -- block acts as a wrapper of a handled construct which has controlled
1700 -- objects. The wrapper prevents interference between exception handlers
1701 -- and At_End handlers.
1703 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1704 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1705 -- a source construct, applies to a generic unit or its body and denotes
1706 -- one of the following contract-related annotations:
1707 -- Abstract_State
1708 -- Contract_Cases
1709 -- Depends
1710 -- Extensions_Visible
1711 -- Global
1712 -- Initial_Condition
1713 -- Initializes
1714 -- Post
1715 -- Post_Class
1716 -- Postcondition
1717 -- Pre
1718 -- Pre_Class
1719 -- Precondition
1720 -- Refined_Depends
1721 -- Refined_Global
1722 -- Refined_Post
1723 -- Refined_State
1724 -- Test_Case
1726 -- Is_Ignored (Flag9-Sem)
1727 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1728 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1729 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1730 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1731 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1732 -- gives a policy for the aspect or pragma, then there are two cases. For
1733 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1734 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1735 -- ignored because of the absence of a -gnata switch. For any other
1736 -- aspects or pragmas, the flag is off. If this flag is set, the
1737 -- aspect/pragma is fully analyzed and checked for other syntactic
1738 -- and semantic errors, but it does not have any semantic effect.
1740 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1741 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1742 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1743 -- This flag has no relation to Is_Ignored.
1745 -- Is_In_Discriminant_Check (Flag11-Sem)
1746 -- This flag is present in a selected component, and is used to indicate
1747 -- that the reference occurs within a discriminant check. The
1748 -- significance is that optimizations based on assuming that the
1749 -- discriminant check has a correct value cannot be performed in this
1750 -- case (or the discriminant check may be optimized away).
1752 -- Is_Inherited_Pragma (Flag4-Sem)
1753 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1754 -- to indicate that the pragma has been inherited from a parent context.
1756 -- Is_Machine_Number (Flag11-Sem)
1757 -- This flag is set in an N_Real_Literal node to indicate that the value
1758 -- is a machine number. This avoids some unnecessary cases of converting
1759 -- real literals to machine numbers.
1761 -- Is_Null_Loop (Flag16-Sem)
1762 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1763 -- can be determined to be null at compile time. This is used to remove
1764 -- the loop entirely at expansion time.
1766 -- Is_Overloaded (Flag5-Sem)
1767 -- A flag present in all expression nodes. Used temporarily during
1768 -- overloading determination. The setting of this flag is not relevant
1769 -- once overloading analysis is complete.
1771 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1772 -- A flag present only in N_Op_Expon nodes. It is set when the
1773 -- exponentiation is of the form 2 ** N, where the type of N is an
1774 -- unsigned integral subtype whose size does not exceed the size of
1775 -- Standard_Integer (i.e. a type that can be safely converted to
1776 -- Natural), and the exponentiation appears as the right operand of an
1777 -- integer multiplication or an integer division where the dividend is
1778 -- unsigned. It is also required that overflow checking is off for both
1779 -- the exponentiation and the multiply/divide node. If this set of
1780 -- conditions holds, and the flag is set, then the division or
1781 -- multiplication can be (and is) converted to a shift.
1783 -- Is_Prefixed_Call (Flag17-Sem)
1784 -- This flag is set in a selected component within a generic unit, if
1785 -- it resolves to a prefixed call to a primitive operation. The flag
1786 -- is used to prevent accidental overloadings in an instance, when a
1787 -- primitive operation and a private record component may be homographs.
1789 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1790 -- A flag set in a Subprogram_Body block to indicate that it is the
1791 -- implementation of a protected subprogram. Such a body needs cleanup
1792 -- handler to make sure that the associated protected object is unlocked
1793 -- when the subprogram completes.
1795 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1796 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1797 -- converting a universal literal to a specific type. Such qualifiers aid
1798 -- the resolution of accidental overloading of binary or unary operators
1799 -- which may occur in instances.
1801 -- Is_Static_Coextension (Flag14-Sem)
1802 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1803 -- of an object allocated on the stack rather than the heap.
1805 -- Is_Static_Expression (Flag6-Sem)
1806 -- Indicates that an expression is a static expression according to the
1807 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1808 -- when Raises_Constraint_Error is also set. In practice almost all cases
1809 -- where a static expression is required do not allow an expression which
1810 -- raises Constraint_Error, so almost always, callers should call the
1811 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1812 -- spec of package Sem_Eval for full details on the use of this flag.
1814 -- Is_Subprogram_Descriptor (Flag16-Sem)
1815 -- Present in N_Object_Declaration, and set only for the object
1816 -- declaration generated for a subprogram descriptor in fast exception
1817 -- mode. See Exp_Ch11 for details of use.
1819 -- Is_Task_Allocation_Block (Flag6-Sem)
1820 -- A flag set in a Block_Statement node to indicate that it is the
1821 -- expansion of a task allocator, or the allocator of an object
1822 -- containing tasks. Such a block requires a cleanup handler to call
1823 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1824 -- allocated but not activated when the allocator completes abnormally.
1826 -- Is_Task_Body_Procedure (Flag1-Sem)
1827 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1828 -- nodes which emulate the body of a task unit.
1830 -- Is_Task_Master (Flag5-Sem)
1831 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1832 -- indicate that the construct is a task master (i.e. has declared tasks
1833 -- or declares an access to a task type).
1835 -- Itype (Node1-Sem)
1836 -- Used in N_Itype_Reference node to reference an itype for which it is
1837 -- important to ensure that it is defined. See description of this node
1838 -- for further details.
1840 -- Kill_Range_Check (Flag11-Sem)
1841 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1842 -- result should not be subjected to range checks. This is used for the
1843 -- implementation of Normalize_Scalars.
1845 -- Label_Construct (Node2-Sem)
1846 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1847 -- N_Block_Statement or N_Loop_Statement node to which the label
1848 -- declaration applies. This attribute is used both in the compiler and
1849 -- in the implementation of ASIS queries. The field is left empty for the
1850 -- special labels generated as part of expanding raise statements with a
1851 -- local exception handler.
1853 -- Library_Unit (Node4-Sem)
1854 -- In a stub node, Library_Unit points to the compilation unit node of
1855 -- the corresponding subunit.
1857 -- In a with clause node, Library_Unit points to the spec of the with'ed
1858 -- unit.
1860 -- In a compilation unit node, the usage depends on the unit type:
1862 -- For a library unit body, Library_Unit points to the compilation unit
1863 -- node of the corresponding spec, unless it's a subprogram body with
1864 -- Acts_As_Spec set, in which case it points to itself.
1866 -- For a spec, Library_Unit points to the compilation unit node of the
1867 -- corresponding body, if present. The body will be present if the spec
1868 -- is or contains generics that we needed to instantiate. Similarly, the
1869 -- body will be present if we needed it for inlining purposes. Thus, if
1870 -- we have a spec/body pair, both of which are present, they point to
1871 -- each other via Library_Unit.
1873 -- For a subunit, Library_Unit points to the compilation unit node of
1874 -- the parent body.
1875 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1876 -- to the corresponding spec for the parent body.
1878 -- Note that this field is not used to hold the parent pointer for child
1879 -- unit (which might in any case need to use it for some other purpose as
1880 -- described above). Instead for a child unit, implicit with's are
1881 -- generated for all parents.
1883 -- Local_Raise_Statements (Elist1)
1884 -- This field is present in exception handler nodes. It is set to
1885 -- No_Elist in the normal case. If there is at least one raise statement
1886 -- which can potentially be handled as a local raise, then this field
1887 -- points to a list of raise nodes, which are calls to a routine to raise
1888 -- an exception. These are raise nodes which can be optimized into gotos
1889 -- if the handler turns out to meet the conditions which permit this
1890 -- transformation. Note that this does NOT include instances of the
1891 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1892 -- handled by the back end (using the N_Push/N_Pop mechanism).
1894 -- Loop_Actions (List2-Sem)
1895 -- A list present in Component_Association nodes in array aggregates.
1896 -- Used to collect actions that must be executed within the loop because
1897 -- they may need to be evaluated anew each time through.
1899 -- Limited_View_Installed (Flag18-Sem)
1900 -- Present in With_Clauses and in package specifications. If set on
1901 -- with_clause, it indicates that this clause has created the current
1902 -- limited view of the designated package. On a package specification, it
1903 -- indicates that the limited view has already been created because the
1904 -- package is mentioned in a limited_with_clause in the closure of the
1905 -- unit being compiled.
1907 -- Local_Raise_Not_OK (Flag7-Sem)
1908 -- Present in N_Exception_Handler nodes. Set if the handler contains
1909 -- a construct (reraise statement, or call to subprogram in package
1910 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1911 -- for a local raise (one that could otherwise be converted to a goto).
1913 -- Must_Be_Byte_Aligned (Flag14-Sem)
1914 -- This flag is present in N_Attribute_Reference nodes. It can be set
1915 -- only for the Address and Unrestricted_Access attributes. If set it
1916 -- means that the object for which the address/access is given must be on
1917 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1918 -- of the object is to be made before taking the address (this copy is in
1919 -- the current scope on the stack frame). This is used for certain cases
1920 -- of code generated by the expander that passes parameters by address.
1922 -- The reason the copy is not made by the front end is that the back end
1923 -- has more information about type layout and may be able to (but is not
1924 -- guaranteed to) prevent making unnecessary copies.
1926 -- Must_Not_Freeze (Flag8-Sem)
1927 -- A flag present in all expression nodes. Normally expressions cause
1928 -- freezing as described in the RM. If this flag is set, then this is
1929 -- inhibited. This is used by the analyzer and expander to label nodes
1930 -- that are created by semantic analysis or expansion and which must not
1931 -- cause freezing even though they normally would. This flag is also
1932 -- present in an N_Subtype_Indication node, since we also use these in
1933 -- calls to Freeze_Expression.
1935 -- Next_Entity (Node2-Sem)
1936 -- Present in defining identifiers, defining character literals and
1937 -- defining operator symbols (i.e. in all entities). The entities of a
1938 -- scope are chained, and this field is used as the forward pointer for
1939 -- this list. See Einfo for further details.
1941 -- Next_Exit_Statement (Node3-Sem)
1942 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1943 -- chained (in reverse order of appearance) from the First_Exit_Statement
1944 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1945 -- the next entry on this chain (Empty = end of list).
1947 -- Next_Implicit_With (Node3-Sem)
1948 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1949 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1950 -- to prevent multiple with_clauses for the same unit in a given context.
1951 -- A postorder traversal of the tree whose nodes are units and whose
1952 -- links are with_clauses defines the order in which CodePeer must
1953 -- examine a compiled unit and its full context. This ordering ensures
1954 -- that any subprogram call is examined after the subprogram declaration
1955 -- has been seen.
1957 -- Next_Named_Actual (Node4-Sem)
1958 -- Present in parameter association nodes. Set during semantic analysis
1959 -- to point to the next named parameter, where parameters are ordered by
1960 -- declaration order (as opposed to the actual order in the call, which
1961 -- may be different due to named associations). Not that this field
1962 -- points to the explicit actual parameter itself, not to the
1963 -- N_Parameter_Association node (its parent).
1965 -- Next_Pragma (Node1-Sem)
1966 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1967 -- nodes. Currently used for two purposes:
1969 -- Create a list of linked Check_Policy pragmas. The head of this list
1970 -- is stored in Opt.Check_Policy_List (which has further details).
1972 -- Used by processing for Pre/Postcondition pragmas to store a list of
1973 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1974 -- details).
1976 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1977 -- the apply to the same construct. These are visible/private mode for
1978 -- a package spec and declarative/statement mode for package body.
1980 -- Next_Rep_Item (Node5-Sem)
1981 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1982 -- clauses, record rep clauses, aspect specification nodes. Used to link
1983 -- representation items that apply to an entity. See full description of
1984 -- First_Rep_Item field in Einfo for further details.
1986 -- Next_Use_Clause (Node3-Sem)
1987 -- While use clauses are active during semantic processing, they are
1988 -- chained from the scope stack entry, using Next_Use_Clause as a link
1989 -- pointer, with Empty marking the end of the list. The head pointer is
1990 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1991 -- processing (i.e. when Gigi sees the tree, the contents of this field
1992 -- is undefined and should not be read).
1994 -- No_Ctrl_Actions (Flag7-Sem)
1995 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1996 -- Adjust should take place on this assignment even though the RHS is
1997 -- controlled. Also indicates that the primitive _assign should not be
1998 -- used for a tagged assignment. This is used in init procs and aggregate
1999 -- expansions where the generated assignments are initializations, not
2000 -- real assignments.
2002 -- No_Elaboration_Check (Flag14-Sem)
2003 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
2004 -- that no elaboration check is needed on the call, because it appears in
2005 -- the context of a local Suppress pragma. This is used on calls within
2006 -- task bodies, where the actual elaboration checks are applied after
2007 -- analysis, when the local scope stack is not present.
2009 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2010 -- Present in N_With_Clause nodes. Set if the with clause is on the
2011 -- package or subprogram spec where the main unit is the corresponding
2012 -- body, and no entities of the with'ed unit are referenced by the spec
2013 -- (an entity may still be referenced in the body, so this flag is used
2014 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2015 -- full details).
2017 -- No_Initialization (Flag13-Sem)
2018 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2019 -- object must not be initialized (by Initialize or call to an init
2020 -- proc). This is needed for controlled aggregates. When the Object
2021 -- declaration has an expression, this flag means that this expression
2022 -- should not be taken into account (needed for in place initialization
2023 -- with aggregates, and for object with an address clause, which are
2024 -- initialized with an assignment at freeze time).
2026 -- No_Minimize_Eliminate (Flag17-Sem)
2027 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2028 -- It is used to indicate that processing for extended overflow checking
2029 -- modes is not required (this is used to prevent infinite recursion).
2031 -- No_Side_Effect_Removal (Flag1-Sem)
2032 -- Present in N_Function_Call nodes. Set when a function call does not
2033 -- require side effect removal. This attribute suppresses the generation
2034 -- of a temporary to capture the result of the function which eventually
2035 -- replaces the function call.
2037 -- No_Truncation (Flag17-Sem)
2038 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2039 -- only if the RM_Size of the source is greater than the RM_Size of the
2040 -- target for scalar operands. Normally in such a case we truncate some
2041 -- higher order bits of the source, and then sign/zero extend the result
2042 -- to form the output value. But if this flag is set, then we do not do
2043 -- any truncation, so for example, if an 8 bit input is converted to 5
2044 -- bit result which is in fact stored in 8 bits, then the high order
2045 -- three bits of the target result will be copied from the source. This
2046 -- is used for properly setting out of range values for use by pragmas
2047 -- Initialize_Scalars and Normalize_Scalars.
2049 -- Non_Aliased_Prefix (Flag18-Sem)
2050 -- Present in N_Attribute_Reference nodes. Set only for the case of an
2051 -- Unrestricted_Access reference whose prefix is non-aliased, which is
2052 -- the case that is permitted for Unrestricted_Access except when the
2053 -- expected type is a thin pointer to unconstrained array. This flag is
2054 -- to assist in detecting this illegal use of Unrestricted_Access.
2056 -- Null_Excluding_Subtype (Flag16)
2057 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2058 -- indication carries a null-exclusion indicator, which is distinct from
2059 -- the null-exclusion indicator that may precede the access keyword.
2061 -- Original_Discriminant (Node2-Sem)
2062 -- Present in identifiers. Used in references to discriminants that
2063 -- appear in generic units. Because the names of the discriminants may be
2064 -- different in an instance, we use this field to recover the position of
2065 -- the discriminant in the original type, and replace it with the
2066 -- discriminant at the same position in the instantiated type.
2068 -- Original_Entity (Node2-Sem)
2069 -- Present in numeric literals. Used to denote the named number that has
2070 -- been constant-folded into the given literal. If literal is from
2071 -- source, or the result of some other constant-folding operation, then
2072 -- Original_Entity is empty. This field is needed to handle properly
2073 -- named numbers in generic units, where the Associated_Node field
2074 -- interferes with the Entity field, making it impossible to preserve the
2075 -- original entity at the point of instantiation (ASIS problem).
2077 -- Others_Discrete_Choices (List1-Sem)
2078 -- When a case statement or variant is analyzed, the semantic checks
2079 -- determine the actual list of choices that correspond to an others
2080 -- choice. This list is materialized for later use by the expander and
2081 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2082 -- this materialized list of choices, which is in standard format for a
2083 -- list of discrete choices, except that of course it cannot contain an
2084 -- N_Others_Choice entry.
2086 -- Parent_Spec (Node4-Sem)
2087 -- For a library unit that is a child unit spec (package or subprogram
2088 -- declaration, generic declaration or instantiation, or library level
2089 -- rename) this field points to the compilation unit node for the parent
2090 -- package specification. This field is Empty for library bodies (the
2091 -- parent spec in this case can be found from the corresponding spec).
2093 -- Premature_Use (Node5-Sem)
2094 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2095 -- error diagnostics: if there is a premature usage of an incomplete
2096 -- type, a subsequently generated error message indicates the position
2097 -- of its full declaration.
2099 -- Present_Expr (Uint3-Sem)
2100 -- Present in an N_Variant node. This has a meaningful value only after
2101 -- Gigi has back annotated the tree with representation information. At
2102 -- this point, it contains a reference to a gcc expression that depends
2103 -- on the values of one or more discriminants. Give a set of discriminant
2104 -- values, this expression evaluates to False (zero) if variant is not
2105 -- present, and True (non-zero) if it is present. See unit Repinfo for
2106 -- further details on gigi back annotation. This field is used during
2107 -- ASIS processing (data decomposition annex) to determine if a field is
2108 -- present or not.
2110 -- Print_In_Hex (Flag13-Sem)
2111 -- Set on an N_Integer_Literal node to indicate that the value should be
2112 -- printed in hexadecimal in the sprint listing. Has no effect on
2113 -- legality or semantics of program, only on the displayed output. This
2114 -- is used to clarify output from the packed array cases.
2116 -- Procedure_To_Call (Node2-Sem)
2117 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2118 -- and N_Extended_Return_Statement nodes. References the entity for the
2119 -- declaration of the procedure to be called to accomplish the required
2120 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2121 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2122 -- allocating the return value), and for the Deallocate procedure in the
2123 -- case of N_Free_Statement.
2125 -- Raises_Constraint_Error (Flag7-Sem)
2126 -- Set on an expression whose evaluation will definitely fail constraint
2127 -- error check. In the case of static expressions, this flag must be set
2128 -- accurately (and if it is set, the expression is typically illegal
2129 -- unless it appears as a non-elaborated branch of a short-circuit form).
2130 -- For a non-static expression, this flag may be set whenever an
2131 -- expression (e.g. an aggregate) is known to raise constraint error. If
2132 -- set, the expression definitely will raise CE if elaborated at runtime.
2133 -- If not set, the expression may or may not raise CE. In other words, on
2134 -- static expressions, the flag is set accurately, on non-static
2135 -- expressions it is set conservatively.
2137 -- Redundant_Use (Flag13-Sem)
2138 -- Present in nodes that can appear as an operand in a use clause or use
2139 -- type clause (identifiers, expanded names, attribute references). Set
2140 -- to indicate that a use is redundant (and therefore need not be undone
2141 -- on scope exit).
2143 -- Renaming_Exception (Node2-Sem)
2144 -- Present in N_Exception_Declaration node. Used to point back to the
2145 -- exception renaming for an exception declared within a subprogram.
2146 -- What happens is that an exception declared in a subprogram is moved
2147 -- to the library level with a unique name, and the original exception
2148 -- becomes a renaming. This link from the library level exception to the
2149 -- renaming declaration allows registering of the proper exception name.
2151 -- Return_Statement_Entity (Node5-Sem)
2152 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2153 -- Points to an E_Return_Statement representing the return statement.
2155 -- Return_Object_Declarations (List3)
2156 -- Present in N_Extended_Return_Statement. Points to a list initially
2157 -- containing a single N_Object_Declaration representing the return
2158 -- object. We use a list (instead of just a pointer to the object decl)
2159 -- because Analyze wants to insert extra actions on this list.
2161 -- Rounded_Result (Flag18-Sem)
2162 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2163 -- Used in the fixed-point cases to indicate that the result must be
2164 -- rounded as a result of the use of the 'Round attribute. Also used for
2165 -- integer N_Op_Divide nodes to indicate that the result should be
2166 -- rounded to the nearest integer (breaking ties away from zero), rather
2167 -- than truncated towards zero as usual. These rounded integer operations
2168 -- are the result of expansion of rounded fixed-point divide, conversion
2169 -- and multiplication operations.
2171 -- SCIL_Entity (Node4-Sem)
2172 -- Present in SCIL nodes. References the specific tagged type associated
2173 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2174 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2175 -- generated as part of testing membership in T'Class, this is T; for an
2176 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2178 -- SCIL_Controlling_Tag (Node5-Sem)
2179 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2180 -- tag of a dispatching call. This is usually an N_Selected_Component
2181 -- node (for a _tag component), but may be an N_Object_Declaration or
2182 -- N_Parameter_Specification node in some cases (e.g., for a call to
2183 -- a classwide streaming operation or a call to an instance of
2184 -- Ada.Tags.Generic_Dispatching_Constructor).
2186 -- SCIL_Tag_Value (Node5-Sem)
2187 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2188 -- of the value that is being tested.
2190 -- SCIL_Target_Prim (Node2-Sem)
2191 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2192 -- operation named (statically) in a dispatching call.
2194 -- Scope (Node3-Sem)
2195 -- Present in defining identifiers, defining character literals and
2196 -- defining operator symbols (i.e. in all entities). The entities of a
2197 -- scope all use this field to reference the corresponding scope entity.
2198 -- See Einfo for further details.
2200 -- Shift_Count_OK (Flag4-Sem)
2201 -- A flag present in shift nodes to indicate that the shift count is
2202 -- known to be in range, i.e. is in the range from zero to word length
2203 -- minus one. If this flag is not set, then the shift count may be
2204 -- outside this range, i.e. larger than the word length, and the code
2205 -- must ensure that such shift counts give the appropriate result.
2207 -- Source_Type (Node1-Sem)
2208 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2209 -- source type entity for the unchecked conversion instantiation
2210 -- which gigi must do size validation for.
2212 -- Split_PPC (Flag17)
2213 -- When a Pre or Post aspect specification is processed, it is broken
2214 -- into AND THEN sections. The left most section has Split_PPC set to
2215 -- False, indicating that it is the original specification (e.g. for
2216 -- posting errors). For other sections, Split_PPC is set to True.
2217 -- This flag is set in both the N_Aspect_Specification node itself,
2218 -- and in the pragma which is generated from this node.
2220 -- Storage_Pool (Node1-Sem)
2221 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2222 -- and N_Extended_Return_Statement nodes. References the entity for the
2223 -- storage pool to be used for the allocate or free call or for the
2224 -- allocation of the returned value from function. Empty indicates that
2225 -- the global default pool is to be used. Note that in the case
2226 -- of a return statement, this field is set only if the function returns
2227 -- value of a type whose size is not known at compile time on the
2228 -- secondary stack.
2230 -- Suppress_Assignment_Checks (Flag18-Sem)
2231 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2232 -- and range checks in cases where the generated code knows that the
2233 -- value being assigned is in range and satisfies any predicate. Also
2234 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2235 -- checks on the initializing value. In assignment statements it also
2236 -- suppresses access checks in the generated code for out- and in-out
2237 -- parameters in entry calls.
2239 -- Suppress_Loop_Warnings (Flag17-Sem)
2240 -- Used in N_Loop_Statement node to indicate that warnings within the
2241 -- body of the loop should be suppressed. This is set when the range
2242 -- of a FOR loop is known to be null, or is probably null (loop would
2243 -- only execute if invalid values are present).
2245 -- Target_Type (Node2-Sem)
2246 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2247 -- type entity for the unchecked conversion instantiation which gigi must
2248 -- do size validation for.
2250 -- Then_Actions (List3-Sem)
2251 -- This field is present in if expression nodes. During code expansion
2252 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2253 -- at an appropriate place in the tree to get elaborated at the right
2254 -- time. For if expressions, we have to be sure that the actions for
2255 -- for the Then branch are only elaborated if the condition is True.
2256 -- The Then_Actions field is used as a temporary parking place for
2257 -- these actions. The final tree is always rewritten to eliminate the
2258 -- need for this field, so in the tree passed to Gigi, this field is
2259 -- always set to No_List.
2261 -- Treat_Fixed_As_Integer (Flag14-Sem)
2262 -- This flag appears in operator nodes for divide, multiply, mod and rem
2263 -- on fixed-point operands. It indicates that the operands are to be
2264 -- treated as integer values, ignoring small values. This flag is only
2265 -- set as a result of expansion of fixed-point operations. Typically a
2266 -- fixed-point multiplication in the source generates subsidiary
2267 -- multiplication and division operations that work with the underlying
2268 -- integer values and have this flag set. Note that this flag is not
2269 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2270 -- in these cases it is always the case that fixed is treated as integer.
2271 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2272 -- leave such nodes alone, and whoever makes them must set the correct
2273 -- Etype value.
2275 -- TSS_Elist (Elist3-Sem)
2276 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2277 -- entries for each TSS (type support subprogram) associated with the
2278 -- frozen type. The elements of the list are the entities for the
2279 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2280 -- if there are no type support subprograms for the type or if the freeze
2281 -- node is not for a type.
2283 -- Uneval_Old_Accept (Flag7-Sem)
2284 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2285 -- (accept) at the point where the pragma is encountered (including the
2286 -- case of a pragma generated from an aspect specification). It is this
2287 -- setting that is relevant, rather than the setting at the point where
2288 -- a contract is finally analyzed after the delay till the freeze point.
2290 -- Uneval_Old_Warn (Flag18-Sem)
2291 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2292 -- (warn) at the point where the pragma is encountered (including the
2293 -- case of a pragma generated from an aspect specification). It is this
2294 -- setting that is relevant, rather than the setting at the point where
2295 -- a contract is finally analyzed after the delay till the freeze point.
2297 -- Unreferenced_In_Spec (Flag7-Sem)
2298 -- Present in N_With_Clause nodes. Set if the with clause is on the
2299 -- package or subprogram spec where the main unit is the corresponding
2300 -- body, and is not referenced by the spec (it may still be referenced by
2301 -- the body, so this flag is used to generate the proper message (see
2302 -- Sem_Util.Check_Unused_Withs for details)
2304 -- Uninitialized_Variable (Node3-Sem)
2305 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2306 -- Extension_Declarations. Indicates that a variable in a generic unit
2307 -- whose type is a formal private or derived type is read without being
2308 -- initialized. Used to warn if the corresponding actual type is not
2309 -- a fully initialized type.
2311 -- Used_Operations (Elist5-Sem)
2312 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2313 -- are made potentially use-visible by the clause. Simplifies processing
2314 -- on exit from the scope of the use_type_clause, in particular in the
2315 -- case of Use_All_Type, when those operations several scopes.
2317 -- Was_Expression_Function (Flag18-Sem)
2318 -- Present in N_Subprogram_Body. True if the original source had an
2319 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2320 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2321 -- recreate the expression function (for the instance body) when the
2322 -- completion of a generic function declaration is an expression
2323 -- function.
2325 -- Was_Originally_Stub (Flag13-Sem)
2326 -- This flag is set in the node for a proper body that replaces stub.
2327 -- During the analysis procedure, stubs in some situations get rewritten
2328 -- by the corresponding bodies, and we set this flag to remember that
2329 -- this happened. Note that it is not good enough to rely on the use of
2330 -- Original_Node here because of the case of nested instantiations where
2331 -- the substituted node can be copied.
2333 -- Withed_Body (Node1-Sem)
2334 -- Present in N_With_Clause nodes. Set if the unit in whose context
2335 -- the with_clause appears instantiates a generic contained in the
2336 -- library unit of the with_clause and as a result loads its body.
2337 -- Used for a more precise unit traversal for CodePeer.
2339 --------------------------------------------------
2340 -- Note on Use of End_Label and End_Span Fields --
2341 --------------------------------------------------
2343 -- Several constructs have end lines:
2345 -- Loop Statement end loop [loop_IDENTIFIER];
2346 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2347 -- Task Definition end [task_IDENTIFIER]
2348 -- Protected Definition end [protected_IDENTIFIER]
2349 -- Protected Body end [protected_IDENTIFIER]
2351 -- Block Statement end [block_IDENTIFIER];
2352 -- Subprogram Body end [DESIGNATOR];
2353 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2354 -- Task Body end [task_IDENTIFIER];
2355 -- Accept Statement end [entry_IDENTIFIER]];
2356 -- Entry Body end [entry_IDENTIFIER];
2358 -- If Statement end if;
2359 -- Case Statement end case;
2361 -- Record Definition end record;
2362 -- Enumeration Definition );
2364 -- The End_Label and End_Span fields are used to mark the locations of
2365 -- these lines, and also keep track of the label in the case where a label
2366 -- is present.
2368 -- For the first group above, the End_Label field of the corresponding node
2369 -- is used to point to the label identifier. In the case where there is no
2370 -- label in the source, the parser supplies a dummy identifier (with
2371 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2372 -- marks the location of the token following the END token.
2374 -- For the second group, the use of End_Label is similar, but the End_Label
2375 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2376 -- simply because in some cases there is no room in the parent node.
2378 -- For the third group, there is never any label, and instead of using
2379 -- End_Label, we use the End_Span field which gives the location of the
2380 -- token following END, relative to the starting Sloc of the construct,
2381 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2382 -- following the End_Label.
2384 -- The record definition case is handled specially, we treat it as though
2385 -- it required an optional label which is never present, and so the parser
2386 -- always builds a dummy identifier with Comes From Source set False. The
2387 -- reason we do this, rather than using End_Span in this case, is that we
2388 -- want to generate a cross-ref entry for the end of a record, since it
2389 -- represents a scope for name declaration purposes.
2391 -- The enumeration definition case is handled in an exactly similar manner,
2392 -- building a dummy identifier to get a cross-reference.
2394 -- Note: the reason we store the difference as a Uint, instead of storing
2395 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2396 -- distinguished from other types of values, and we count on all general
2397 -- use fields being self describing. To make things easier for clients,
2398 -- note that we provide function End_Location, and procedure
2399 -- Set_End_Location to allow access to the logical value (which is the
2400 -- Source_Ptr value for the end token).
2402 ---------------------
2403 -- Syntactic Nodes --
2404 ---------------------
2406 ---------------------
2407 -- 2.3 Identifier --
2408 ---------------------
2410 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2411 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2413 -- An IDENTIFIER shall not be a reserved word
2415 -- In the Ada grammar identifiers are the bottom level tokens which have
2416 -- very few semantics. Actual program identifiers are direct names. If
2417 -- we were being 100% honest with the grammar, then we would have a node
2418 -- called N_Direct_Name which would point to an identifier. However,
2419 -- that's too many extra nodes, so we just use the N_Identifier node
2420 -- directly as a direct name, and it contains the expression fields and
2421 -- Entity field that correspond to its use as a direct name. In those
2422 -- few cases where identifiers appear in contexts where they are not
2423 -- direct names (pragmas, pragma argument associations, attribute
2424 -- references and attribute definition clauses), the Chars field of the
2425 -- node contains the Name_Id for the identifier name.
2427 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2428 -- cases. First, an incorrect use of a reserved word as an identifier is
2429 -- diagnosed and then treated as a normal identifier. Second, an
2430 -- attribute designator of the form of a reserved word (access, delta,
2431 -- digits, range) is treated as an identifier.
2433 -- Note: The set of letters that is permitted in an identifier depends
2434 -- on the character set in use. See package Csets for full details.
2436 -- N_Identifier
2437 -- Sloc points to identifier
2438 -- Chars (Name1) contains the Name_Id for the identifier
2439 -- Entity (Node4-Sem)
2440 -- Associated_Node (Node4-Sem)
2441 -- Original_Discriminant (Node2-Sem)
2442 -- Redundant_Use (Flag13-Sem)
2443 -- Atomic_Sync_Required (Flag14-Sem)
2444 -- Has_Private_View (Flag11-Sem) (set in generic units)
2445 -- plus fields for expression
2447 --------------------------
2448 -- 2.4 Numeric Literal --
2449 --------------------------
2451 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2453 ----------------------------
2454 -- 2.4.1 Decimal Literal --
2455 ----------------------------
2457 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2459 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2461 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2463 -- Decimal literals appear in the tree as either integer literal nodes
2464 -- or real literal nodes, depending on whether a period is present.
2466 -- Note: literal nodes appear as a result of direct use of literals
2467 -- in the source program, and also as the result of evaluating
2468 -- expressions at compile time. In the latter case, it is possible
2469 -- to construct real literals that have no syntactic representation
2470 -- using the standard literal format. Such literals are listed by
2471 -- Sprint using the notation [numerator / denominator].
2473 -- Note: the value of an integer literal node created by the front end
2474 -- is never outside the range of values of the base type. However, it
2475 -- can be the case that the created value is outside the range of the
2476 -- particular subtype. This happens in the case of integer overflows
2477 -- with checks suppressed.
2479 -- N_Integer_Literal
2480 -- Sloc points to literal
2481 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2482 -- has been constant-folded into its literal value.
2483 -- Intval (Uint3) contains integer value of literal
2484 -- Print_In_Hex (Flag13-Sem)
2485 -- plus fields for expression
2487 -- N_Real_Literal
2488 -- Sloc points to literal
2489 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2490 -- has been constant-folded into its literal value.
2491 -- Realval (Ureal3) contains real value of literal
2492 -- Corresponding_Integer_Value (Uint4-Sem)
2493 -- Is_Machine_Number (Flag11-Sem)
2494 -- plus fields for expression
2496 --------------------------
2497 -- 2.4.2 Based Literal --
2498 --------------------------
2500 -- BASED_LITERAL ::=
2501 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2503 -- BASE ::= NUMERAL
2505 -- BASED_NUMERAL ::=
2506 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2508 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2510 -- Based literals appear in the tree as either integer literal nodes
2511 -- or real literal nodes, depending on whether a period is present.
2513 ----------------------------
2514 -- 2.5 Character Literal --
2515 ----------------------------
2517 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2519 -- N_Character_Literal
2520 -- Sloc points to literal
2521 -- Chars (Name1) contains the Name_Id for the identifier
2522 -- Char_Literal_Value (Uint2) contains the literal value
2523 -- Entity (Node4-Sem)
2524 -- Associated_Node (Node4-Sem)
2525 -- Has_Private_View (Flag11-Sem) set in generic units.
2526 -- plus fields for expression
2528 -- Note: the Entity field will be missing (set to Empty) for character
2529 -- literals whose type is Standard.Wide_Character or Standard.Character
2530 -- or a type derived from one of these two. In this case the character
2531 -- literal stands for its own coding. The reason we take this irregular
2532 -- short cut is to avoid the need to build lots of junk defining
2533 -- character literal nodes.
2535 -------------------------
2536 -- 2.6 String Literal --
2537 -------------------------
2539 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2541 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2542 -- single GRAPHIC_CHARACTER other than a quotation mark.
2544 -- Is_Folded_In_Parser is True if the parser created this literal by
2545 -- folding a sequence of "&" operators. For example, if the source code
2546 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2547 -- is set. This flag is needed because the parser doesn't know about
2548 -- visibility, so the folded result might be wrong, and semantic
2549 -- analysis needs to check for that.
2551 -- N_String_Literal
2552 -- Sloc points to literal
2553 -- Strval (Str3) contains Id of string value
2554 -- Has_Wide_Character (Flag11-Sem)
2555 -- Has_Wide_Wide_Character (Flag13-Sem)
2556 -- Is_Folded_In_Parser (Flag4)
2557 -- plus fields for expression
2559 ------------------
2560 -- 2.7 Comment --
2561 ------------------
2563 -- A COMMENT starts with two adjacent hyphens and extends up to the
2564 -- end of the line. A COMMENT may appear on any line of a program.
2566 -- Comments are skipped by the scanner and do not appear in the tree.
2567 -- It is possible to reconstruct the position of comments with respect
2568 -- to the elements of the tree by using the source position (Sloc)
2569 -- pointers that appear in every tree node.
2571 -----------------
2572 -- 2.8 Pragma --
2573 -----------------
2575 -- PRAGMA ::= pragma IDENTIFIER
2576 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2578 -- Note that a pragma may appear in the tree anywhere a declaration
2579 -- or a statement may appear, as well as in some other situations
2580 -- which are explicitly documented.
2582 -- N_Pragma
2583 -- Sloc points to PRAGMA
2584 -- Next_Pragma (Node1-Sem)
2585 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2586 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2587 -- Pragma_Identifier (Node4)
2588 -- Next_Rep_Item (Node5-Sem)
2589 -- Class_Present (Flag6) set if from Aspect with 'Class
2590 -- From_Aspect_Specification (Flag13-Sem)
2591 -- Import_Interface_Present (Flag16-Sem)
2592 -- Is_Analyzed_Pragma (Flag5-Sem)
2593 -- Is_Checked (Flag11-Sem)
2594 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2595 -- Is_Delayed_Aspect (Flag14-Sem)
2596 -- Is_Disabled (Flag15-Sem)
2597 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2598 -- Is_Ignored (Flag9-Sem)
2599 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2600 -- Is_Inherited_Pragma (Flag4-Sem)
2601 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2602 -- Uneval_Old_Accept (Flag7-Sem)
2603 -- Uneval_Old_Warn (Flag18-Sem)
2605 -- Note: we should have a section on what pragmas are passed on to
2606 -- the back end to be processed. This section should note that pragma
2607 -- Psect_Object is always converted to Common_Object, but there are
2608 -- undoubtedly many other similar notes required ???
2610 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2611 -- applied to pragma nodes to obtain the Chars or its mapped version.
2613 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2614 -- aspect name, as does the Pragma_Identifier. In this case if the
2615 -- pragma has a local name argument (such as pragma Inline), it is
2616 -- resolved to point to the specific entity affected by the pragma.
2618 --------------------------------------
2619 -- 2.8 Pragma Argument Association --
2620 --------------------------------------
2622 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2623 -- [pragma_argument_IDENTIFIER =>] NAME
2624 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2626 -- In Ada 2012, there are two more possibilities:
2628 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2629 -- [pragma_argument_ASPECT_MARK =>] NAME
2630 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2632 -- where the interesting allowed cases (which do not fit the syntax of
2633 -- the first alternative above) are
2635 -- ASPECT_MARK => Pre'Class |
2636 -- Post'Class |
2637 -- Type_Invariant'Class |
2638 -- Invariant'Class
2640 -- We allow this special usage in all Ada modes, but it would be a
2641 -- pain to allow these aspects to pervade the pragma syntax, and the
2642 -- representation of pragma nodes internally. So what we do is to
2643 -- replace these ASPECT_MARK forms with identifiers whose name is one
2644 -- of the special internal names _Pre, _Post or _Type_Invariant.
2646 -- We do a similar replacement of these Aspect_Mark forms in the
2647 -- Expression of a pragma argument association for the cases of
2648 -- the first arguments of any Check pragmas and Check_Policy pragmas
2650 -- N_Pragma_Argument_Association
2651 -- Sloc points to first token in association
2652 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2653 -- Expression_Copy (Node2-Sem)
2654 -- Expression (Node3)
2656 ------------------------
2657 -- 2.9 Reserved Word --
2658 ------------------------
2660 -- Reserved words are parsed by the scanner, and returned as the
2661 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2663 ----------------------------
2664 -- 3.1 Basic Declaration --
2665 ----------------------------
2667 -- BASIC_DECLARATION ::=
2668 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2669 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2670 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2671 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2672 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2673 -- | GENERIC_INSTANTIATION
2675 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2676 -- see further description in section on semantic nodes.
2678 -- Also, in the tree that is constructed, a pragma may appear
2679 -- anywhere that a declaration may appear.
2681 ------------------------------
2682 -- 3.1 Defining Identifier --
2683 ------------------------------
2685 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2687 -- A defining identifier is an entity, which has additional fields
2688 -- depending on the setting of the Ekind field. These additional
2689 -- fields are defined (and access subprograms declared) in package
2690 -- Einfo.
2692 -- Note: N_Defining_Identifier is an extended node whose fields are
2693 -- deliberate layed out to match the layout of fields in an ordinary
2694 -- N_Identifier node allowing for easy alteration of an identifier
2695 -- node into a defining identifier node. For details, see procedure
2696 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2698 -- N_Defining_Identifier
2699 -- Sloc points to identifier
2700 -- Chars (Name1) contains the Name_Id for the identifier
2701 -- Next_Entity (Node2-Sem)
2702 -- Scope (Node3-Sem)
2703 -- Etype (Node5-Sem)
2705 -----------------------------
2706 -- 3.2.1 Type Declaration --
2707 -----------------------------
2709 -- TYPE_DECLARATION ::=
2710 -- FULL_TYPE_DECLARATION
2711 -- | INCOMPLETE_TYPE_DECLARATION
2712 -- | PRIVATE_TYPE_DECLARATION
2713 -- | PRIVATE_EXTENSION_DECLARATION
2715 ----------------------------------
2716 -- 3.2.1 Full Type Declaration --
2717 ----------------------------------
2719 -- FULL_TYPE_DECLARATION ::=
2720 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2721 -- is TYPE_DEFINITION
2722 -- [ASPECT_SPECIFICATIONS];
2723 -- | TASK_TYPE_DECLARATION
2724 -- | PROTECTED_TYPE_DECLARATION
2726 -- The full type declaration node is used only for the first case. The
2727 -- second case (concurrent type declaration), is represented directly
2728 -- by a task type declaration or a protected type declaration.
2730 -- N_Full_Type_Declaration
2731 -- Sloc points to TYPE
2732 -- Defining_Identifier (Node1)
2733 -- Incomplete_View (Node2-Sem)
2734 -- Discriminant_Specifications (List4) (set to No_List if none)
2735 -- Type_Definition (Node3)
2736 -- Discr_Check_Funcs_Built (Flag11-Sem)
2738 ----------------------------
2739 -- 3.2.1 Type Definition --
2740 ----------------------------
2742 -- TYPE_DEFINITION ::=
2743 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2744 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2745 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2746 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2748 --------------------------------
2749 -- 3.2.2 Subtype Declaration --
2750 --------------------------------
2752 -- SUBTYPE_DECLARATION ::=
2753 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2754 -- [ASPECT_SPECIFICATIONS];
2756 -- The subtype indication field is set to Empty for subtypes
2757 -- declared in package Standard (Positive, Natural).
2759 -- N_Subtype_Declaration
2760 -- Sloc points to SUBTYPE
2761 -- Defining_Identifier (Node1)
2762 -- Null_Exclusion_Present (Flag11)
2763 -- Subtype_Indication (Node5)
2764 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2765 -- Exception_Junk (Flag8-Sem)
2766 -- Has_Dynamic_Range_Check (Flag12-Sem)
2768 -------------------------------
2769 -- 3.2.2 Subtype Indication --
2770 -------------------------------
2772 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2774 -- Note: if no constraint is present, the subtype indication appears
2775 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2776 -- node is used only if a constraint is present.
2778 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2779 -- with the null-exclusion part (see AI-231), we had to introduce a new
2780 -- attribute in all the parents of subtype_indication nodes to indicate
2781 -- if the null-exclusion is present.
2783 -- Note: the reason that this node has expression fields is that a
2784 -- subtype indication can appear as an operand of a membership test.
2786 -- N_Subtype_Indication
2787 -- Sloc points to first token of subtype mark
2788 -- Subtype_Mark (Node4)
2789 -- Constraint (Node3)
2790 -- Etype (Node5-Sem)
2791 -- Must_Not_Freeze (Flag8-Sem)
2793 -- Note: Depending on context, the Etype is either the entity of the
2794 -- Subtype_Mark field, or it is an itype constructed to reify the
2795 -- subtype indication. In particular, such itypes are created for a
2796 -- subtype indication that appears in an array type declaration. This
2797 -- simplifies constraint checking in indexed components.
2799 -- For subtype indications that appear in scalar type and subtype
2800 -- declarations, the Etype is the entity of the subtype mark.
2802 -------------------------
2803 -- 3.2.2 Subtype Mark --
2804 -------------------------
2806 -- SUBTYPE_MARK ::= subtype_NAME
2808 -----------------------
2809 -- 3.2.2 Constraint --
2810 -----------------------
2812 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2814 ------------------------------
2815 -- 3.2.2 Scalar Constraint --
2816 ------------------------------
2818 -- SCALAR_CONSTRAINT ::=
2819 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2821 ---------------------------------
2822 -- 3.2.2 Composite Constraint --
2823 ---------------------------------
2825 -- COMPOSITE_CONSTRAINT ::=
2826 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2828 -------------------------------
2829 -- 3.3.1 Object Declaration --
2830 -------------------------------
2832 -- OBJECT_DECLARATION ::=
2833 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2834 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2835 -- [ASPECT_SPECIFICATIONS];
2836 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2837 -- ACCESS_DEFINITION [:= EXPRESSION]
2838 -- [ASPECT_SPECIFICATIONS];
2839 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2840 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2841 -- [ASPECT_SPECIFICATIONS];
2842 -- | SINGLE_TASK_DECLARATION
2843 -- | SINGLE_PROTECTED_DECLARATION
2845 -- Note: aliased is not permitted in Ada 83 mode
2847 -- The N_Object_Declaration node is only for the first three cases.
2848 -- Single task declaration is handled by P_Task (9.1)
2849 -- Single protected declaration is handled by P_protected (9.5)
2851 -- Although the syntax allows multiple identifiers in the list, the
2852 -- semantics is as though successive declarations were given with
2853 -- identical type definition and expression components. To simplify
2854 -- semantic processing, the parser represents a multiple declaration
2855 -- case as a sequence of single declarations, using the More_Ids and
2856 -- Prev_Ids flags to preserve the original source form as described
2857 -- in the section on "Handling of Defining Identifier Lists".
2859 -- The flag Has_Init_Expression is set if an initializing expression
2860 -- is present. Normally it is set if and only if Expression contains
2861 -- a non-empty value, but there is an exception to this. When the
2862 -- initializing expression is an aggregate which requires explicit
2863 -- assignments, the Expression field gets set to Empty, but this flag
2864 -- is still set, so we don't forget we had an initializing expression.
2866 -- Note: if a range check is required for the initialization
2867 -- expression then the Do_Range_Check flag is set in the Expression,
2868 -- with the check being done against the type given by the object
2869 -- definition, which is also the Etype of the defining identifier.
2871 -- Note: the contents of the Expression field must be ignored (i.e.
2872 -- treated as though it were Empty) if No_Initialization is set True.
2874 -- Note: the back end places some restrictions on the form of the
2875 -- Expression field. If the object being declared is Atomic, then
2876 -- the Expression may not have the form of an aggregate (since this
2877 -- might cause the back end to generate separate assignments). In this
2878 -- case the front end must generate an extra temporary and initialize
2879 -- this temporary as required (the temporary itself is not atomic).
2881 -- Note: there is not node kind for object definition. Instead, the
2882 -- corresponding field holds a subtype indication, an array type
2883 -- definition, or (Ada 2005, AI-406) an access definition.
2885 -- N_Object_Declaration
2886 -- Sloc points to first identifier
2887 -- Defining_Identifier (Node1)
2888 -- Aliased_Present (Flag4)
2889 -- Constant_Present (Flag17) set if CONSTANT appears
2890 -- Null_Exclusion_Present (Flag11)
2891 -- Object_Definition (Node4) subtype indic./array type def./access def.
2892 -- Expression (Node3) (set to Empty if not present)
2893 -- Handler_List_Entry (Node2-Sem)
2894 -- Corresponding_Generic_Association (Node5-Sem)
2895 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2896 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2897 -- No_Initialization (Flag13-Sem)
2898 -- Assignment_OK (Flag15-Sem)
2899 -- Exception_Junk (Flag8-Sem)
2900 -- Is_Subprogram_Descriptor (Flag16-Sem)
2901 -- Has_Init_Expression (Flag14)
2902 -- Suppress_Assignment_Checks (Flag18-Sem)
2904 -------------------------------------
2905 -- 3.3.1 Defining Identifier List --
2906 -------------------------------------
2908 -- DEFINING_IDENTIFIER_LIST ::=
2909 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2911 -------------------------------
2912 -- 3.3.2 Number Declaration --
2913 -------------------------------
2915 -- NUMBER_DECLARATION ::=
2916 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2918 -- Although the syntax allows multiple identifiers in the list, the
2919 -- semantics is as though successive declarations were given with
2920 -- identical expressions. To simplify semantic processing, the parser
2921 -- represents a multiple declaration case as a sequence of single
2922 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2923 -- the original source form as described in the section on "Handling
2924 -- of Defining Identifier Lists".
2926 -- N_Number_Declaration
2927 -- Sloc points to first identifier
2928 -- Defining_Identifier (Node1)
2929 -- Expression (Node3)
2930 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2931 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2933 ----------------------------------
2934 -- 3.4 Derived Type Definition --
2935 ----------------------------------
2937 -- DERIVED_TYPE_DEFINITION ::=
2938 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2939 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2941 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2942 -- in Ada 83 mode
2944 -- Note: a record extension part is required if ABSTRACT is present
2946 -- N_Derived_Type_Definition
2947 -- Sloc points to NEW
2948 -- Abstract_Present (Flag4)
2949 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2950 -- Subtype_Indication (Node5)
2951 -- Record_Extension_Part (Node3) (set to Empty if not present)
2952 -- Limited_Present (Flag17)
2953 -- Task_Present (Flag5) set in task interfaces
2954 -- Protected_Present (Flag6) set in protected interfaces
2955 -- Synchronized_Present (Flag7) set in interfaces
2956 -- Interface_List (List2) (set to No_List if none)
2957 -- Interface_Present (Flag16) set in abstract interfaces
2959 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2960 -- Interface_List, and Interface_Present are used for abstract
2961 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2963 ---------------------------
2964 -- 3.5 Range Constraint --
2965 ---------------------------
2967 -- RANGE_CONSTRAINT ::= range RANGE
2969 -- N_Range_Constraint
2970 -- Sloc points to RANGE
2971 -- Range_Expression (Node4)
2973 ----------------
2974 -- 3.5 Range --
2975 ----------------
2977 -- RANGE ::=
2978 -- RANGE_ATTRIBUTE_REFERENCE
2979 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2981 -- Note: the case of a range given as a range attribute reference
2982 -- appears directly in the tree as an attribute reference.
2984 -- Note: the field name for a reference to a range is Range_Expression
2985 -- rather than Range, because range is a reserved keyword in Ada.
2987 -- Note: the reason that this node has expression fields is that a
2988 -- range can appear as an operand of a membership test. The Etype
2989 -- field is the type of the range (we do NOT construct an implicit
2990 -- subtype to represent the range exactly).
2992 -- N_Range
2993 -- Sloc points to ..
2994 -- Low_Bound (Node1)
2995 -- High_Bound (Node2)
2996 -- Includes_Infinities (Flag11)
2997 -- plus fields for expression
2999 -- Note: if the range appears in a context, such as a subtype
3000 -- declaration, where range checks are required on one or both of
3001 -- the expression fields, then type conversion nodes are inserted
3002 -- to represent the required checks.
3004 ----------------------------------------
3005 -- 3.5.1 Enumeration Type Definition --
3006 ----------------------------------------
3008 -- ENUMERATION_TYPE_DEFINITION ::=
3009 -- (ENUMERATION_LITERAL_SPECIFICATION
3010 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3012 -- Note: the Literals field in the node described below is null for
3013 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3014 -- which special processing handles these types as special cases.
3016 -- N_Enumeration_Type_Definition
3017 -- Sloc points to left parenthesis
3018 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3019 -- End_Label (Node4) (set to Empty if internally generated record)
3021 ----------------------------------------------
3022 -- 3.5.1 Enumeration Literal Specification --
3023 ----------------------------------------------
3025 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3026 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3028 ---------------------------------------
3029 -- 3.5.1 Defining Character Literal --
3030 ---------------------------------------
3032 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3034 -- A defining character literal is an entity, which has additional
3035 -- fields depending on the setting of the Ekind field. These
3036 -- additional fields are defined (and access subprograms declared)
3037 -- in package Einfo.
3039 -- Note: N_Defining_Character_Literal is an extended node whose fields
3040 -- are deliberate layed out to match the layout of fields in an ordinary
3041 -- N_Character_Literal node allowing for easy alteration of a character
3042 -- literal node into a defining character literal node. For details, see
3043 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3045 -- N_Defining_Character_Literal
3046 -- Sloc points to literal
3047 -- Chars (Name1) contains the Name_Id for the identifier
3048 -- Next_Entity (Node2-Sem)
3049 -- Scope (Node3-Sem)
3050 -- Etype (Node5-Sem)
3052 ------------------------------------
3053 -- 3.5.4 Integer Type Definition --
3054 ------------------------------------
3056 -- Note: there is an error in this rule in the latest version of the
3057 -- grammar, so we have retained the old rule pending clarification.
3059 -- INTEGER_TYPE_DEFINITION ::=
3060 -- SIGNED_INTEGER_TYPE_DEFINITION
3061 -- | MODULAR_TYPE_DEFINITION
3063 -------------------------------------------
3064 -- 3.5.4 Signed Integer Type Definition --
3065 -------------------------------------------
3067 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3068 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3070 -- Note: the Low_Bound and High_Bound fields are set to Empty
3071 -- for integer types defined in package Standard.
3073 -- N_Signed_Integer_Type_Definition
3074 -- Sloc points to RANGE
3075 -- Low_Bound (Node1)
3076 -- High_Bound (Node2)
3078 ------------------------------------
3079 -- 3.5.4 Modular Type Definition --
3080 ------------------------------------
3082 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3084 -- N_Modular_Type_Definition
3085 -- Sloc points to MOD
3086 -- Expression (Node3)
3088 ---------------------------------
3089 -- 3.5.6 Real Type Definition --
3090 ---------------------------------
3092 -- REAL_TYPE_DEFINITION ::=
3093 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3095 --------------------------------------
3096 -- 3.5.7 Floating Point Definition --
3097 --------------------------------------
3099 -- FLOATING_POINT_DEFINITION ::=
3100 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3102 -- Note: The Digits_Expression and Real_Range_Specifications fields
3103 -- are set to Empty for floating-point types declared in Standard.
3105 -- N_Floating_Point_Definition
3106 -- Sloc points to DIGITS
3107 -- Digits_Expression (Node2)
3108 -- Real_Range_Specification (Node4) (set to Empty if not present)
3110 -------------------------------------
3111 -- 3.5.7 Real Range Specification --
3112 -------------------------------------
3114 -- REAL_RANGE_SPECIFICATION ::=
3115 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3117 -- N_Real_Range_Specification
3118 -- Sloc points to RANGE
3119 -- Low_Bound (Node1)
3120 -- High_Bound (Node2)
3122 -----------------------------------
3123 -- 3.5.9 Fixed Point Definition --
3124 -----------------------------------
3126 -- FIXED_POINT_DEFINITION ::=
3127 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3129 --------------------------------------------
3130 -- 3.5.9 Ordinary Fixed Point Definition --
3131 --------------------------------------------
3133 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3134 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3136 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3138 -- N_Ordinary_Fixed_Point_Definition
3139 -- Sloc points to DELTA
3140 -- Delta_Expression (Node3)
3141 -- Real_Range_Specification (Node4)
3143 -------------------------------------------
3144 -- 3.5.9 Decimal Fixed Point Definition --
3145 -------------------------------------------
3147 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3148 -- delta static_EXPRESSION
3149 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3151 -- Note: decimal types are not permitted in Ada 83 mode
3153 -- N_Decimal_Fixed_Point_Definition
3154 -- Sloc points to DELTA
3155 -- Delta_Expression (Node3)
3156 -- Digits_Expression (Node2)
3157 -- Real_Range_Specification (Node4) (set to Empty if not present)
3159 ------------------------------
3160 -- 3.5.9 Digits Constraint --
3161 ------------------------------
3163 -- DIGITS_CONSTRAINT ::=
3164 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3166 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3167 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3169 -- N_Digits_Constraint
3170 -- Sloc points to DIGITS
3171 -- Digits_Expression (Node2)
3172 -- Range_Constraint (Node4) (set to Empty if not present)
3174 --------------------------------
3175 -- 3.6 Array Type Definition --
3176 --------------------------------
3178 -- ARRAY_TYPE_DEFINITION ::=
3179 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3181 -----------------------------------------
3182 -- 3.6 Unconstrained Array Definition --
3183 -----------------------------------------
3185 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3186 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3187 -- COMPONENT_DEFINITION
3189 -- Note: dimensionality of array is indicated by number of entries in
3190 -- the Subtype_Marks list, which has one entry for each dimension.
3192 -- N_Unconstrained_Array_Definition
3193 -- Sloc points to ARRAY
3194 -- Subtype_Marks (List2)
3195 -- Component_Definition (Node4)
3197 -----------------------------------
3198 -- 3.6 Index Subtype Definition --
3199 -----------------------------------
3201 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3203 -- There is no explicit node in the tree for an index subtype
3204 -- definition since the N_Unconstrained_Array_Definition node
3205 -- incorporates the type marks which appear in this context.
3207 ---------------------------------------
3208 -- 3.6 Constrained Array Definition --
3209 ---------------------------------------
3211 -- CONSTRAINED_ARRAY_DEFINITION ::=
3212 -- array (DISCRETE_SUBTYPE_DEFINITION
3213 -- {, DISCRETE_SUBTYPE_DEFINITION})
3214 -- of COMPONENT_DEFINITION
3216 -- Note: dimensionality of array is indicated by number of entries
3217 -- in the Discrete_Subtype_Definitions list, which has one entry
3218 -- for each dimension.
3220 -- N_Constrained_Array_Definition
3221 -- Sloc points to ARRAY
3222 -- Discrete_Subtype_Definitions (List2)
3223 -- Component_Definition (Node4)
3225 -- Note: although the language allows the full syntax for discrete
3226 -- subtype definitions (i.e. a discrete subtype indication or a range),
3227 -- in the generated tree, we always rewrite these as N_Range nodes.
3229 --------------------------------------
3230 -- 3.6 Discrete Subtype Definition --
3231 --------------------------------------
3233 -- DISCRETE_SUBTYPE_DEFINITION ::=
3234 -- discrete_SUBTYPE_INDICATION | RANGE
3236 -------------------------------
3237 -- 3.6 Component Definition --
3238 -------------------------------
3240 -- COMPONENT_DEFINITION ::=
3241 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3243 -- Note: although the syntax does not permit a component definition to
3244 -- be an anonymous array (and the parser will diagnose such an attempt
3245 -- with an appropriate message), it is possible for anonymous arrays
3246 -- to appear as component definitions. The semantics and back end handle
3247 -- this case properly, and the expander in fact generates such cases.
3248 -- Access_Definition is an optional field that gives support to
3249 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3250 -- Subtype_Indication field or else the Access_Definition field.
3252 -- N_Component_Definition
3253 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3254 -- Aliased_Present (Flag4)
3255 -- Null_Exclusion_Present (Flag11)
3256 -- Subtype_Indication (Node5) (set to Empty if not present)
3257 -- Access_Definition (Node3) (set to Empty if not present)
3259 -----------------------------
3260 -- 3.6.1 Index Constraint --
3261 -----------------------------
3263 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3265 -- It is not in general possible to distinguish between discriminant
3266 -- constraints and index constraints at parse time, since a simple
3267 -- name could be either the subtype mark of a discrete range, or an
3268 -- expression in a discriminant association with no name. Either
3269 -- entry appears simply as the name, and the semantic parse must
3270 -- distinguish between the two cases. Thus we use a common tree
3271 -- node format for both of these constraint types.
3273 -- See Discriminant_Constraint for format of node
3275 ---------------------------
3276 -- 3.6.1 Discrete Range --
3277 ---------------------------
3279 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3281 ----------------------------
3282 -- 3.7 Discriminant Part --
3283 ----------------------------
3285 -- DISCRIMINANT_PART ::=
3286 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3288 ------------------------------------
3289 -- 3.7 Unknown Discriminant Part --
3290 ------------------------------------
3292 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3294 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3296 -- There is no explicit node in the tree for an unknown discriminant
3297 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3298 -- parent node.
3300 ----------------------------------
3301 -- 3.7 Known Discriminant Part --
3302 ----------------------------------
3304 -- KNOWN_DISCRIMINANT_PART ::=
3305 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3307 -------------------------------------
3308 -- 3.7 Discriminant Specification --
3309 -------------------------------------
3311 -- DISCRIMINANT_SPECIFICATION ::=
3312 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3313 -- [:= DEFAULT_EXPRESSION]
3314 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3315 -- [:= DEFAULT_EXPRESSION]
3317 -- Although the syntax allows multiple identifiers in the list, the
3318 -- semantics is as though successive specifications were given with
3319 -- identical type definition and expression components. To simplify
3320 -- semantic processing, the parser represents a multiple declaration
3321 -- case as a sequence of single specifications, using the More_Ids and
3322 -- Prev_Ids flags to preserve the original source form as described
3323 -- in the section on "Handling of Defining Identifier Lists".
3325 -- N_Discriminant_Specification
3326 -- Sloc points to first identifier
3327 -- Defining_Identifier (Node1)
3328 -- Null_Exclusion_Present (Flag11)
3329 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3330 -- Expression (Node3) (set to Empty if no default expression)
3331 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3332 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3334 -----------------------------
3335 -- 3.7 Default Expression --
3336 -----------------------------
3338 -- DEFAULT_EXPRESSION ::= EXPRESSION
3340 ------------------------------------
3341 -- 3.7.1 Discriminant Constraint --
3342 ------------------------------------
3344 -- DISCRIMINANT_CONSTRAINT ::=
3345 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3347 -- It is not in general possible to distinguish between discriminant
3348 -- constraints and index constraints at parse time, since a simple
3349 -- name could be either the subtype mark of a discrete range, or an
3350 -- expression in a discriminant association with no name. Either
3351 -- entry appears simply as the name, and the semantic parse must
3352 -- distinguish between the two cases. Thus we use a common tree
3353 -- node format for both of these constraint types.
3355 -- N_Index_Or_Discriminant_Constraint
3356 -- Sloc points to left paren
3357 -- Constraints (List1) points to list of discrete ranges or
3358 -- discriminant associations
3360 -------------------------------------
3361 -- 3.7.1 Discriminant Association --
3362 -------------------------------------
3364 -- DISCRIMINANT_ASSOCIATION ::=
3365 -- [discriminant_SELECTOR_NAME
3366 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3368 -- Note: a discriminant association that has no selector name list
3369 -- appears directly as an expression in the tree.
3371 -- N_Discriminant_Association
3372 -- Sloc points to first token of discriminant association
3373 -- Selector_Names (List1) (always non-empty, since if no selector
3374 -- names are present, this node is not used, see comment above)
3375 -- Expression (Node3)
3377 ---------------------------------
3378 -- 3.8 Record Type Definition --
3379 ---------------------------------
3381 -- RECORD_TYPE_DEFINITION ::=
3382 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3384 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3386 -- There is no explicit node in the tree for a record type definition.
3387 -- Instead the flags for Tagged_Present and Limited_Present appear in
3388 -- the N_Record_Definition node for a record definition appearing in
3389 -- the context of a record type definition.
3391 ----------------------------
3392 -- 3.8 Record Definition --
3393 ----------------------------
3395 -- RECORD_DEFINITION ::=
3396 -- record
3397 -- COMPONENT_LIST
3398 -- end record
3399 -- | null record
3401 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3402 -- flags appear only for a record definition appearing in a record
3403 -- type definition.
3405 -- Note: the NULL RECORD case is not permitted in Ada 83
3407 -- N_Record_Definition
3408 -- Sloc points to RECORD or NULL
3409 -- End_Label (Node4) (set to Empty if internally generated record)
3410 -- Abstract_Present (Flag4)
3411 -- Tagged_Present (Flag15)
3412 -- Limited_Present (Flag17)
3413 -- Component_List (Node1) empty in null record case
3414 -- Null_Present (Flag13) set in null record case
3415 -- Task_Present (Flag5) set in task interfaces
3416 -- Protected_Present (Flag6) set in protected interfaces
3417 -- Synchronized_Present (Flag7) set in interfaces
3418 -- Interface_Present (Flag16) set in abstract interfaces
3419 -- Interface_List (List2) (set to No_List if none)
3421 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3422 -- Interface_List and Interface_Present are used for abstract
3423 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3425 -------------------------
3426 -- 3.8 Component List --
3427 -------------------------
3429 -- COMPONENT_LIST ::=
3430 -- COMPONENT_ITEM {COMPONENT_ITEM}
3431 -- | {COMPONENT_ITEM} VARIANT_PART
3432 -- | null;
3434 -- N_Component_List
3435 -- Sloc points to first token of component list
3436 -- Component_Items (List3)
3437 -- Variant_Part (Node4) (set to Empty if no variant part)
3438 -- Null_Present (Flag13)
3440 -------------------------
3441 -- 3.8 Component Item --
3442 -------------------------
3444 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3446 -- Note: A component item can also be a pragma, and in the tree
3447 -- that is obtained after semantic processing, a component item
3448 -- can be an N_Null node resulting from a non-recognized pragma.
3450 --------------------------------
3451 -- 3.8 Component Declaration --
3452 --------------------------------
3454 -- COMPONENT_DECLARATION ::=
3455 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3456 -- [:= DEFAULT_EXPRESSION]
3457 -- [ASPECT_SPECIFICATIONS];
3459 -- Note: although the syntax does not permit a component definition to
3460 -- be an anonymous array (and the parser will diagnose such an attempt
3461 -- with an appropriate message), it is possible for anonymous arrays
3462 -- to appear as component definitions. The semantics and back end handle
3463 -- this case properly, and the expander in fact generates such cases.
3465 -- Although the syntax allows multiple identifiers in the list, the
3466 -- semantics is as though successive declarations were given with the
3467 -- same component definition and expression components. To simplify
3468 -- semantic processing, the parser represents a multiple declaration
3469 -- case as a sequence of single declarations, using the More_Ids and
3470 -- Prev_Ids flags to preserve the original source form as described
3471 -- in the section on "Handling of Defining Identifier Lists".
3473 -- N_Component_Declaration
3474 -- Sloc points to first identifier
3475 -- Defining_Identifier (Node1)
3476 -- Component_Definition (Node4)
3477 -- Expression (Node3) (set to Empty if no default expression)
3478 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3479 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3481 -------------------------
3482 -- 3.8.1 Variant Part --
3483 -------------------------
3485 -- VARIANT_PART ::=
3486 -- case discriminant_DIRECT_NAME is
3487 -- VARIANT {VARIANT}
3488 -- end case;
3490 -- Note: the variants list can contain pragmas as well as variants.
3491 -- In a properly formed program there is at least one variant.
3493 -- N_Variant_Part
3494 -- Sloc points to CASE
3495 -- Name (Node2)
3496 -- Variants (List1)
3498 --------------------
3499 -- 3.8.1 Variant --
3500 --------------------
3502 -- VARIANT ::=
3503 -- when DISCRETE_CHOICE_LIST =>
3504 -- COMPONENT_LIST
3506 -- N_Variant
3507 -- Sloc points to WHEN
3508 -- Discrete_Choices (List4)
3509 -- Component_List (Node1)
3510 -- Enclosing_Variant (Node2-Sem)
3511 -- Present_Expr (Uint3-Sem)
3512 -- Dcheck_Function (Node5-Sem)
3513 -- Has_SP_Choice (Flag15-Sem)
3515 -- Note: in the list of Discrete_Choices, the tree passed to the back
3516 -- end does not have choice entries corresponding to names of statically
3517 -- predicated subtypes. Such entries are always expanded out to the list
3518 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3519 -- mode also has this expansion, but done with a proper Rewrite call on
3520 -- the N_Variant node so that ASIS can properly retrieve the original.
3522 ---------------------------------
3523 -- 3.8.1 Discrete Choice List --
3524 ---------------------------------
3526 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3528 ----------------------------
3529 -- 3.8.1 Discrete Choice --
3530 ----------------------------
3532 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3534 -- Note: in Ada 83 mode, the expression must be a simple expression
3536 -- The only choice that appears explicitly is the OTHERS choice, as
3537 -- defined here. Other cases of discrete choice (expression and
3538 -- discrete range) appear directly. This production is also used
3539 -- for the OTHERS possibility of an exception choice.
3541 -- Note: in accordance with the syntax, the parser does not check that
3542 -- OTHERS appears at the end on its own in a choice list context. This
3543 -- is a semantic check.
3545 -- N_Others_Choice
3546 -- Sloc points to OTHERS
3547 -- Others_Discrete_Choices (List1-Sem)
3548 -- All_Others (Flag11-Sem)
3550 ----------------------------------
3551 -- 3.9.1 Record Extension Part --
3552 ----------------------------------
3554 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3556 -- Note: record extension parts are not permitted in Ada 83 mode
3558 --------------------------------------
3559 -- 3.9.4 Interface Type Definition --
3560 --------------------------------------
3562 -- INTERFACE_TYPE_DEFINITION ::=
3563 -- [limited | task | protected | synchronized]
3564 -- interface [interface_list]
3566 -- Note: Interfaces are implemented with N_Record_Definition and
3567 -- N_Derived_Type_Definition nodes because most of the support
3568 -- for the analysis of abstract types has been reused to
3569 -- analyze abstract interfaces.
3571 ----------------------------------
3572 -- 3.10 Access Type Definition --
3573 ----------------------------------
3575 -- ACCESS_TYPE_DEFINITION ::=
3576 -- ACCESS_TO_OBJECT_DEFINITION
3577 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3579 --------------------------
3580 -- 3.10 Null Exclusion --
3581 --------------------------
3583 -- NULL_EXCLUSION ::= not null
3585 ---------------------------------------
3586 -- 3.10 Access To Object Definition --
3587 ---------------------------------------
3589 -- ACCESS_TO_OBJECT_DEFINITION ::=
3590 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3591 -- SUBTYPE_INDICATION
3593 -- N_Access_To_Object_Definition
3594 -- Sloc points to ACCESS
3595 -- All_Present (Flag15)
3596 -- Null_Exclusion_Present (Flag11)
3597 -- Null_Excluding_Subtype (Flag16)
3598 -- Subtype_Indication (Node5)
3599 -- Constant_Present (Flag17)
3601 -----------------------------------
3602 -- 3.10 General Access Modifier --
3603 -----------------------------------
3605 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3607 -- Note: general access modifiers are not permitted in Ada 83 mode
3609 -- There is no explicit node in the tree for general access modifier.
3610 -- Instead the All_Present or Constant_Present flags are set in the
3611 -- parent node.
3613 -------------------------------------------
3614 -- 3.10 Access To Subprogram Definition --
3615 -------------------------------------------
3617 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3618 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3619 -- | [NULL_EXCLUSION] access [protected] function
3620 -- PARAMETER_AND_RESULT_PROFILE
3622 -- Note: access to subprograms are not permitted in Ada 83 mode
3624 -- N_Access_Function_Definition
3625 -- Sloc points to ACCESS
3626 -- Null_Exclusion_Present (Flag11)
3627 -- Null_Exclusion_In_Return_Present (Flag14)
3628 -- Protected_Present (Flag6)
3629 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3630 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3632 -- N_Access_Procedure_Definition
3633 -- Sloc points to ACCESS
3634 -- Null_Exclusion_Present (Flag11)
3635 -- Protected_Present (Flag6)
3636 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3638 -----------------------------
3639 -- 3.10 Access Definition --
3640 -----------------------------
3642 -- ACCESS_DEFINITION ::=
3643 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3644 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3646 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3648 -- N_Access_Definition
3649 -- Sloc points to ACCESS
3650 -- Null_Exclusion_Present (Flag11)
3651 -- All_Present (Flag15)
3652 -- Constant_Present (Flag17)
3653 -- Subtype_Mark (Node4)
3654 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3656 -----------------------------------------
3657 -- 3.10.1 Incomplete Type Declaration --
3658 -----------------------------------------
3660 -- INCOMPLETE_TYPE_DECLARATION ::=
3661 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3663 -- N_Incomplete_Type_Declaration
3664 -- Sloc points to TYPE
3665 -- Defining_Identifier (Node1)
3666 -- Discriminant_Specifications (List4) (set to No_List if no
3667 -- discriminant part, or if the discriminant part is an
3668 -- unknown discriminant part)
3669 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3670 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3671 -- Tagged_Present (Flag15)
3673 ----------------------------
3674 -- 3.11 Declarative Part --
3675 ----------------------------
3677 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3679 -- Note: although the parser enforces the syntactic requirement that
3680 -- a declarative part can contain only declarations, the semantic
3681 -- processing may add statements to the list of actions in a
3682 -- declarative part, so the code generator should be prepared
3683 -- to accept a statement in this position.
3685 ----------------------------
3686 -- 3.11 Declarative Item --
3687 ----------------------------
3689 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3691 ----------------------------------
3692 -- 3.11 Basic Declarative Item --
3693 ----------------------------------
3695 -- BASIC_DECLARATIVE_ITEM ::=
3696 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3698 ----------------
3699 -- 3.11 Body --
3700 ----------------
3702 -- BODY ::= PROPER_BODY | BODY_STUB
3704 -----------------------
3705 -- 3.11 Proper Body --
3706 -----------------------
3708 -- PROPER_BODY ::=
3709 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3711 ---------------
3712 -- 4.1 Name --
3713 ---------------
3715 -- NAME ::=
3716 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3717 -- | INDEXED_COMPONENT | SLICE
3718 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3719 -- | TYPE_CONVERSION | FUNCTION_CALL
3720 -- | CHARACTER_LITERAL
3722 ----------------------
3723 -- 4.1 Direct Name --
3724 ----------------------
3726 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3728 -----------------
3729 -- 4.1 Prefix --
3730 -----------------
3732 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3734 -------------------------------
3735 -- 4.1 Explicit Dereference --
3736 -------------------------------
3738 -- EXPLICIT_DEREFERENCE ::= NAME . all
3740 -- N_Explicit_Dereference
3741 -- Sloc points to ALL
3742 -- Prefix (Node3)
3743 -- Actual_Designated_Subtype (Node4-Sem)
3744 -- Atomic_Sync_Required (Flag14-Sem)
3745 -- Has_Dereference_Action (Flag13-Sem)
3746 -- plus fields for expression
3748 -------------------------------
3749 -- 4.1 Implicit Dereference --
3750 -------------------------------
3752 -- IMPLICIT_DEREFERENCE ::= NAME
3754 ------------------------------
3755 -- 4.1.1 Indexed Component --
3756 ------------------------------
3758 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3760 -- Note: the parser may generate this node in some situations where it
3761 -- should be a function call. The semantic pass must correct this
3762 -- misidentification (which is inevitable at the parser level).
3764 -- N_Indexed_Component
3765 -- Sloc contains a copy of the Sloc value of the Prefix
3766 -- Prefix (Node3)
3767 -- Expressions (List1)
3768 -- Generalized_Indexing (Node4-Sem)
3769 -- Atomic_Sync_Required (Flag14-Sem)
3770 -- plus fields for expression
3772 -- Note: if any of the subscripts requires a range check, then the
3773 -- Do_Range_Check flag is set on the corresponding expression, with
3774 -- the index type being determined from the type of the Prefix, which
3775 -- references the array being indexed.
3777 -- Note: in a fully analyzed and expanded indexed component node, and
3778 -- hence in any such node that gigi sees, if the prefix is an access
3779 -- type, then an explicit dereference operation has been inserted.
3781 ------------------
3782 -- 4.1.2 Slice --
3783 ------------------
3785 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3787 -- Note: an implicit subtype is created to describe the resulting
3788 -- type, so that the bounds of this type are the bounds of the slice.
3790 -- N_Slice
3791 -- Sloc points to first token of prefix
3792 -- Prefix (Node3)
3793 -- Discrete_Range (Node4)
3794 -- plus fields for expression
3796 -------------------------------
3797 -- 4.1.3 Selected Component --
3798 -------------------------------
3800 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3802 -- Note: selected components that are semantically expanded names get
3803 -- changed during semantic processing into the separate N_Expanded_Name
3804 -- node. See description of this node in the section on semantic nodes.
3806 -- N_Selected_Component
3807 -- Sloc points to the period
3808 -- Prefix (Node3)
3809 -- Selector_Name (Node2)
3810 -- Associated_Node (Node4-Sem)
3811 -- Do_Discriminant_Check (Flag1-Sem)
3812 -- Is_In_Discriminant_Check (Flag11-Sem)
3813 -- Is_Prefixed_Call (Flag17-Sem)
3814 -- Atomic_Sync_Required (Flag14-Sem)
3815 -- plus fields for expression
3817 --------------------------
3818 -- 4.1.3 Selector Name --
3819 --------------------------
3821 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3823 --------------------------------
3824 -- 4.1.4 Attribute Reference --
3825 --------------------------------
3827 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3829 -- Note: the syntax is quite ambiguous at this point. Consider:
3831 -- A'Length (X) X is part of the attribute designator
3832 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3833 -- A'Class (X) X is the expression of a type conversion
3835 -- It would be possible for the parser to distinguish these cases
3836 -- by looking at the attribute identifier. However, that would mean
3837 -- more work in introducing new implementation defined attributes,
3838 -- and also it would mean that special processing for attributes
3839 -- would be scattered around, instead of being centralized in the
3840 -- semantic routine that handles an N_Attribute_Reference node.
3841 -- Consequently, the parser in all the above cases stores the
3842 -- expression (X in these examples) as a single element list in
3843 -- in the Expressions field of the N_Attribute_Reference node.
3845 -- Similarly, for attributes like Max which take two arguments,
3846 -- we store the two arguments as a two element list in the
3847 -- Expressions field. Of course it is clear at parse time that
3848 -- this case is really a function call with an attribute as the
3849 -- prefix, but it turns out to be convenient to handle the two
3850 -- argument case in a similar manner to the one argument case,
3851 -- and indeed in general the parser will accept any number of
3852 -- expressions in this position and store them as a list in the
3853 -- attribute reference node. This allows for future addition of
3854 -- attributes that take more than two arguments.
3856 -- Note: named associates are not permitted in function calls where
3857 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3858 -- to skip the normal subprogram argument processing.
3860 -- Note: for the attributes whose designators are technically keywords,
3861 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3862 -- the corresponding name, even though no identifier is involved.
3864 -- Note: the generated code may contain stream attributes applied to
3865 -- limited types for which no stream routines exist officially. In such
3866 -- case, the result is to use the stream attribute for the underlying
3867 -- full type, or in the case of a protected type, the components
3868 -- (including any discriminants) are merely streamed in order.
3870 -- See Exp_Attr for a complete description of which attributes are
3871 -- passed onto Gigi, and which are handled entirely by the front end.
3873 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3874 -- a non-standard enumeration type or a nonzero/zero semantics
3875 -- boolean type, so the value is simply the stored representation.
3877 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3878 -- references a subprogram that is a renaming, then the front end must
3879 -- rewrite the attribute to refer directly to the renamed entity.
3881 -- Note: syntactically the prefix of an attribute reference must be a
3882 -- name, and this (somewhat artificial) requirement is enforced by the
3883 -- parser. However, for many attributes, such as 'Valid, it is quite
3884 -- reasonable to apply the attribute to any value, and hence to any
3885 -- expression. Internally in the tree, the prefix is an expression which
3886 -- does not have to be a name, and this is handled fine by the semantic
3887 -- analysis and expansion, and back ends. This arises for the case of
3888 -- attribute references built by the expander (e.g. 'Valid for the case
3889 -- of an implicit validity check).
3891 -- Note: In generated code, the Address and Unrestricted_Access
3892 -- attributes can be applied to any expression, and the meaning is
3893 -- to create an object containing the value (the object is in the
3894 -- current stack frame), and pass the address of this value. If the
3895 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3896 -- is taken must be on a byte (storage unit) boundary, and if it is
3897 -- not (or may not be), then the generated code must create a copy
3898 -- that is byte aligned, and pass the address of this copy.
3900 -- N_Attribute_Reference
3901 -- Sloc points to apostrophe
3902 -- Prefix (Node3) (general expression, see note above)
3903 -- Attribute_Name (Name2) identifier name from attribute designator
3904 -- Expressions (List1) (set to No_List if no associated expressions)
3905 -- Entity (Node4-Sem) used if the attribute yields a type
3906 -- Associated_Node (Node4-Sem)
3907 -- Do_Overflow_Check (Flag17-Sem)
3908 -- Header_Size_Added (Flag11-Sem)
3909 -- Must_Be_Byte_Aligned (Flag14-Sem)
3910 -- Non_Aliased_Prefix (Flag18-Sem)
3911 -- Redundant_Use (Flag13-Sem)
3912 -- plus fields for expression
3914 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3915 -- into equivalent if expressions, properly taking care of side effects.
3917 ---------------------------------
3918 -- 4.1.4 Attribute Designator --
3919 ---------------------------------
3921 -- ATTRIBUTE_DESIGNATOR ::=
3922 -- IDENTIFIER [(static_EXPRESSION)]
3923 -- | access | delta | digits
3925 -- There is no explicit node in the tree for an attribute designator.
3926 -- Instead the Attribute_Name and Expressions fields of the parent
3927 -- node (N_Attribute_Reference node) hold the information.
3929 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3930 -- designator, then they are treated as identifiers internally
3931 -- rather than the keywords of the same name.
3933 --------------------------------------
3934 -- 4.1.4 Range Attribute Reference --
3935 --------------------------------------
3937 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3939 -- A range attribute reference is represented in the tree using the
3940 -- normal N_Attribute_Reference node.
3942 ---------------------------------------
3943 -- 4.1.4 Range Attribute Designator --
3944 ---------------------------------------
3946 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3948 -- A range attribute designator is represented in the tree using the
3949 -- normal N_Attribute_Reference node.
3951 --------------------
3952 -- 4.3 Aggregate --
3953 --------------------
3955 -- AGGREGATE ::=
3956 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3958 -----------------------------
3959 -- 4.3.1 Record Aggregate --
3960 -----------------------------
3962 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3964 -- N_Aggregate
3965 -- Sloc points to left parenthesis
3966 -- Expressions (List1) (set to No_List if none or null record case)
3967 -- Component_Associations (List2) (set to No_List if none)
3968 -- Null_Record_Present (Flag17)
3969 -- Aggregate_Bounds (Node3-Sem)
3970 -- Associated_Node (Node4-Sem)
3971 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3972 -- Expansion_Delayed (Flag11-Sem)
3973 -- Has_Self_Reference (Flag13-Sem)
3974 -- plus fields for expression
3976 -- Note: this structure is used for both record and array aggregates
3977 -- since the two cases are not separable by the parser. The parser
3978 -- makes no attempt to enforce consistency here, so it is up to the
3979 -- semantic phase to make sure that the aggregate is consistent (i.e.
3980 -- that it is not a "half-and-half" case that mixes record and array
3981 -- syntax. In particular, for a record aggregate, the expressions
3982 -- field will be set if there are positional associations.
3984 -- Note: N_Aggregate is not used for all aggregates; in particular,
3985 -- there is a separate node kind for extension aggregates.
3987 -- Note: gigi/gcc can handle array aggregates correctly providing that
3988 -- they are entirely positional, and the array subtype involved has a
3989 -- known at compile time length and is not bit packed, or a convention
3990 -- Fortran array with more than one dimension. If these conditions
3991 -- are not met, then the front end must translate the aggregate into
3992 -- an appropriate set of assignments into a temporary.
3994 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3995 -- of record aggregates, including those for packed, and rep-claused
3996 -- records, and also variant records, providing that there are no
3997 -- variable length fields whose size is not known at compile time,
3998 -- and providing that the aggregate is presented in fully named form.
4000 -- The other situation in which array aggregates and record aggregates
4001 -- cannot be passed to the back end is if assignment to one or more
4002 -- components itself needs expansion, e.g. in the case of an assignment
4003 -- of an object of a controlled type. In such cases, the front end
4004 -- must expand the aggregate to a series of assignments, and apply
4005 -- the required expansion to the individual assignment statements.
4007 ----------------------------------------------
4008 -- 4.3.1 Record Component Association List --
4009 ----------------------------------------------
4011 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4012 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4013 -- | null record
4015 -- There is no explicit node in the tree for a record component
4016 -- association list. Instead the Null_Record_Present flag is set in
4017 -- the parent node for the NULL RECORD case.
4019 ------------------------------------------------------
4020 -- 4.3.1 Record Component Association (also 4.3.3) --
4021 ------------------------------------------------------
4023 -- RECORD_COMPONENT_ASSOCIATION ::=
4024 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4026 -- N_Component_Association
4027 -- Sloc points to first selector name
4028 -- Choices (List1)
4029 -- Loop_Actions (List2-Sem)
4030 -- Expression (Node3) (empty if Box_Present)
4031 -- Box_Present (Flag15)
4032 -- Inherited_Discriminant (Flag13)
4034 -- Note: this structure is used for both record component associations
4035 -- and array component associations, since the two cases aren't always
4036 -- separable by the parser. The choices list may represent either a
4037 -- list of selector names in the record aggregate case, or a list of
4038 -- discrete choices in the array aggregate case or an N_Others_Choice
4039 -- node (which appears as a singleton list). Box_Present gives support
4040 -- to Ada 2005 (AI-287).
4042 ----------------------------------
4043 -- 4.3.1 Component Choice List --
4044 ----------------------------------
4046 -- COMPONENT_CHOICE_LIST ::=
4047 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4048 -- | others
4050 -- The entries of a component choice list appear in the Choices list of
4051 -- the associated N_Component_Association, as either selector names, or
4052 -- as an N_Others_Choice node.
4054 --------------------------------
4055 -- 4.3.2 Extension Aggregate --
4056 --------------------------------
4058 -- EXTENSION_AGGREGATE ::=
4059 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4061 -- Note: extension aggregates are not permitted in Ada 83 mode
4063 -- N_Extension_Aggregate
4064 -- Sloc points to left parenthesis
4065 -- Ancestor_Part (Node3)
4066 -- Associated_Node (Node4-Sem)
4067 -- Expressions (List1) (set to No_List if none or null record case)
4068 -- Component_Associations (List2) (set to No_List if none)
4069 -- Null_Record_Present (Flag17)
4070 -- Expansion_Delayed (Flag11-Sem)
4071 -- Has_Self_Reference (Flag13-Sem)
4072 -- plus fields for expression
4074 --------------------------
4075 -- 4.3.2 Ancestor Part --
4076 --------------------------
4078 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4080 ----------------------------
4081 -- 4.3.3 Array Aggregate --
4082 ----------------------------
4084 -- ARRAY_AGGREGATE ::=
4085 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4087 ---------------------------------------
4088 -- 4.3.3 Positional Array Aggregate --
4089 ---------------------------------------
4091 -- POSITIONAL_ARRAY_AGGREGATE ::=
4092 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4093 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4095 -- See Record_Aggregate (4.3.1) for node structure
4097 ----------------------------------
4098 -- 4.3.3 Named Array Aggregate --
4099 ----------------------------------
4101 -- NAMED_ARRAY_AGGREGATE ::=
4102 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4104 -- See Record_Aggregate (4.3.1) for node structure
4106 ----------------------------------------
4107 -- 4.3.3 Array Component Association --
4108 ----------------------------------------
4110 -- ARRAY_COMPONENT_ASSOCIATION ::=
4111 -- DISCRETE_CHOICE_LIST => EXPRESSION
4112 -- | ITERATED_COMPONENT_ASSOCIATION
4114 -- See Record_Component_Association (4.3.1) for node structure
4115 -- The iterated_component_association is introduced into the
4116 -- Corrigendum of Ada_2012 by AI12-061.
4118 ------------------------------------------
4119 -- 4.3.3 Iterated component Association --
4120 ------------------------------------------
4122 -- ITERATED_COMPONENT_ASSOCIATION ::=
4123 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4125 -- N_Iterated_Component_Association
4126 -- Sloc points to FOR
4127 -- Defining_Identifier (Node1)
4128 -- Loop_Actions (List2-Sem)
4129 -- Expression (Node3)
4130 -- Discrete_Choices (List4)
4131 -- Box_Present (Flag15)
4133 -- Note that Box_Present is always False, but it is intentionally added
4134 -- for completeness.
4136 ----------------------------
4137 -- 4.3.4 Delta Aggregate --
4138 ----------------------------
4140 -- N_Delta_Aggregate
4141 -- Sloc points to left parenthesis
4142 -- Expression (Node3)
4143 -- Component_Associations (List2)
4145 --------------------------------------------------
4146 -- 4.4 Expression/Relation/Term/Factor/Primary --
4147 --------------------------------------------------
4149 -- EXPRESSION ::=
4150 -- RELATION {LOGICAL_OPERATOR RELATION}
4152 -- CHOICE_EXPRESSION ::=
4153 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4155 -- CHOICE_RELATION ::=
4156 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4158 -- RELATION ::=
4159 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4160 -- | RAISE_EXPRESSION
4162 -- MEMBERSHIP_CHOICE_LIST ::=
4163 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4165 -- MEMBERSHIP_CHOICE ::=
4166 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4168 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4170 -- SIMPLE_EXPRESSION ::=
4171 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4173 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4175 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4177 -- No nodes are generated for any of these constructs. Instead, the
4178 -- node for the operator appears directly. When we refer to an
4179 -- expression in this description, we mean any of the possible
4180 -- constituent components of an expression (e.g. identifier is
4181 -- an example of an expression).
4183 -- Note: the above syntax is that Ada 2012 syntax which restricts
4184 -- choice relations to simple expressions to avoid ambiguities in
4185 -- some contexts with set membership notation. It has been decided
4186 -- that in retrospect, the Ada 95 change allowing general expressions
4187 -- in this context was a mistake, so we have reverted to the above
4188 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4189 -- expressions was there in Ada 83 from the start).
4191 ------------------
4192 -- 4.4 Primary --
4193 ------------------
4195 -- PRIMARY ::=
4196 -- NUMERIC_LITERAL | null
4197 -- | STRING_LITERAL | AGGREGATE
4198 -- | NAME | QUALIFIED_EXPRESSION
4199 -- | ALLOCATOR | (EXPRESSION)
4201 -- Usually there is no explicit node in the tree for primary. Instead
4202 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4203 -- exceptions. First, there is an explicit node for a null primary.
4205 -- N_Null
4206 -- Sloc points to NULL
4207 -- plus fields for expression
4209 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4210 -- that the parser keep track of which subexpressions are enclosed
4211 -- in parentheses, and how many levels of parentheses are used. This
4212 -- information is required for optimization purposes, and also for
4213 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4214 -- conform with ((((1)))) in the body).
4216 -- The parentheses are recorded by keeping a Paren_Count field in every
4217 -- subexpression node (it is actually present in all nodes, but only
4218 -- used in subexpression nodes). This count records the number of
4219 -- levels of parentheses. If the number of levels in the source exceeds
4220 -- the maximum accommodated by this count, then the count is simply left
4221 -- at the maximum value. This means that there are some pathological
4222 -- cases of failure to detect conformance failures (e.g. an expression
4223 -- with 500 levels of parens will conform with one with 501 levels),
4224 -- but we do not need to lose sleep over this.
4226 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4227 -- type N_Parenthesized_Expression used to accurately record unlimited
4228 -- numbers of levels of parentheses. However, it turned out to be a
4229 -- real nuisance to have to take into account the possible presence of
4230 -- this node during semantic analysis, since basically parentheses have
4231 -- zero relevance to semantic analysis.
4233 -- Note: the level of parentheses always present in things like
4234 -- aggregates does not count, only the parentheses in the primary
4235 -- (EXPRESSION) affect the setting of the Paren_Count field.
4237 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4238 -- treated as though it were Empty) if No_Initialization is set True.
4240 --------------------------------------
4241 -- 4.5 Short-Circuit Control Forms --
4242 --------------------------------------
4244 -- EXPRESSION ::=
4245 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4247 -- Gigi restriction: For both these control forms, the operand and
4248 -- result types are always Standard.Boolean. The expander inserts the
4249 -- required conversion operations where needed to ensure this is the
4250 -- case.
4252 -- N_And_Then
4253 -- Sloc points to AND of AND THEN
4254 -- Left_Opnd (Node2)
4255 -- Right_Opnd (Node3)
4256 -- Actions (List1-Sem)
4257 -- plus fields for expression
4259 -- N_Or_Else
4260 -- Sloc points to OR of OR ELSE
4261 -- Left_Opnd (Node2)
4262 -- Right_Opnd (Node3)
4263 -- Actions (List1-Sem)
4264 -- plus fields for expression
4266 -- Note: The Actions field is used to hold actions associated with
4267 -- the right hand operand. These have to be treated specially since
4268 -- they are not unconditionally executed. See Insert_Actions for a
4269 -- more detailed description of how these actions are handled.
4271 ---------------------------
4272 -- 4.5 Membership Tests --
4273 ---------------------------
4275 -- RELATION ::=
4276 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4278 -- MEMBERSHIP_CHOICE_LIST ::=
4279 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4281 -- MEMBERSHIP_CHOICE ::=
4282 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4284 -- Note: although the grammar above allows only a range or a subtype
4285 -- mark, the parser in fact will accept any simple expression in place
4286 -- of a subtype mark. This means that the semantic analyzer must be able
4287 -- to deal with, and diagnose a simple expression other than a name for
4288 -- the right operand. This simplifies error recovery in the parser.
4290 -- The Alternatives field below is present only if there is more than
4291 -- one Membership_Choice present (which is legitimate only in Ada 2012
4292 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4293 -- the list of choices. In the tree passed to the back end, Alternatives
4294 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4295 -- expands out the complex set membership case using simple membership
4296 -- and equality operations).
4298 -- Should we rename Alternatives here to Membership_Choices ???
4300 -- N_In
4301 -- Sloc points to IN
4302 -- Left_Opnd (Node2)
4303 -- Right_Opnd (Node3)
4304 -- Alternatives (List4) (set to No_List if only one set alternative)
4305 -- No_Minimize_Eliminate (Flag17)
4306 -- plus fields for expression
4308 -- N_Not_In
4309 -- Sloc points to NOT of NOT IN
4310 -- Left_Opnd (Node2)
4311 -- Right_Opnd (Node3)
4312 -- Alternatives (List4) (set to No_List if only one set alternative)
4313 -- No_Minimize_Eliminate (Flag17)
4314 -- plus fields for expression
4316 --------------------
4317 -- 4.5 Operators --
4318 --------------------
4320 -- LOGICAL_OPERATOR ::= and | or | xor
4322 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4324 -- BINARY_ADDING_OPERATOR ::= + | - | &
4326 -- UNARY_ADDING_OPERATOR ::= + | -
4328 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4330 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4332 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4334 -- x #* y
4335 -- x #/ y
4336 -- x #mod y
4337 -- x #rem y
4339 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4340 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4341 -- All handling of smalls for multiplication and division is handled
4342 -- by the front end (mod and rem result only from expansion). Gigi
4343 -- thus never needs to worry about small values (for other operators
4344 -- operating on fixed-point, e.g. addition, the small value does not
4345 -- have any semantic effect anyway, these are always integer operations.
4347 -- Gigi restriction: For all operators taking Boolean operands, the
4348 -- type is always Standard.Boolean. The expander inserts the required
4349 -- conversion operations where needed to ensure this is the case.
4351 -- N_Op_And
4352 -- Sloc points to AND
4353 -- Do_Length_Check (Flag4-Sem)
4354 -- plus fields for binary operator
4355 -- plus fields for expression
4357 -- N_Op_Or
4358 -- Sloc points to OR
4359 -- Do_Length_Check (Flag4-Sem)
4360 -- plus fields for binary operator
4361 -- plus fields for expression
4363 -- N_Op_Xor
4364 -- Sloc points to XOR
4365 -- Do_Length_Check (Flag4-Sem)
4366 -- plus fields for binary operator
4367 -- plus fields for expression
4369 -- N_Op_Eq
4370 -- Sloc points to =
4371 -- plus fields for binary operator
4372 -- plus fields for expression
4374 -- N_Op_Ne
4375 -- Sloc points to /=
4376 -- plus fields for binary operator
4377 -- plus fields for expression
4379 -- N_Op_Lt
4380 -- Sloc points to <
4381 -- plus fields for binary operator
4382 -- plus fields for expression
4384 -- N_Op_Le
4385 -- Sloc points to <=
4386 -- plus fields for binary operator
4387 -- plus fields for expression
4389 -- N_Op_Gt
4390 -- Sloc points to >
4391 -- plus fields for binary operator
4392 -- plus fields for expression
4394 -- N_Op_Ge
4395 -- Sloc points to >=
4396 -- plus fields for binary operator
4397 -- plus fields for expression
4399 -- N_Op_Add
4400 -- Sloc points to + (binary)
4401 -- plus fields for binary operator
4402 -- plus fields for expression
4404 -- N_Op_Subtract
4405 -- Sloc points to - (binary)
4406 -- plus fields for binary operator
4407 -- plus fields for expression
4409 -- N_Op_Concat
4410 -- Sloc points to &
4411 -- Is_Component_Left_Opnd (Flag13-Sem)
4412 -- Is_Component_Right_Opnd (Flag14-Sem)
4413 -- plus fields for binary operator
4414 -- plus fields for expression
4416 -- N_Op_Multiply
4417 -- Sloc points to *
4418 -- Treat_Fixed_As_Integer (Flag14-Sem)
4419 -- Rounded_Result (Flag18-Sem)
4420 -- plus fields for binary operator
4421 -- plus fields for expression
4423 -- N_Op_Divide
4424 -- Sloc points to /
4425 -- Treat_Fixed_As_Integer (Flag14-Sem)
4426 -- Do_Division_Check (Flag13-Sem)
4427 -- Rounded_Result (Flag18-Sem)
4428 -- plus fields for binary operator
4429 -- plus fields for expression
4431 -- N_Op_Mod
4432 -- Sloc points to MOD
4433 -- Treat_Fixed_As_Integer (Flag14-Sem)
4434 -- Do_Division_Check (Flag13-Sem)
4435 -- plus fields for binary operator
4436 -- plus fields for expression
4438 -- N_Op_Rem
4439 -- Sloc points to REM
4440 -- Treat_Fixed_As_Integer (Flag14-Sem)
4441 -- Do_Division_Check (Flag13-Sem)
4442 -- plus fields for binary operator
4443 -- plus fields for expression
4445 -- N_Op_Expon
4446 -- Sloc points to **
4447 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4448 -- plus fields for binary operator
4449 -- plus fields for expression
4451 -- N_Op_Plus
4452 -- Sloc points to + (unary)
4453 -- plus fields for unary operator
4454 -- plus fields for expression
4456 -- N_Op_Minus
4457 -- Sloc points to - (unary)
4458 -- plus fields for unary operator
4459 -- plus fields for expression
4461 -- N_Op_Abs
4462 -- Sloc points to ABS
4463 -- plus fields for unary operator
4464 -- plus fields for expression
4466 -- N_Op_Not
4467 -- Sloc points to NOT
4468 -- plus fields for unary operator
4469 -- plus fields for expression
4471 -- See also shift operators in section B.2
4473 -- Note on fixed-point operations passed to Gigi: For adding operators,
4474 -- the semantics is to treat these simply as integer operations, with
4475 -- the small values being ignored (the bounds are already stored in
4476 -- units of small, so that constraint checking works as usual). For the
4477 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4478 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4479 -- thus treat these nodes in identical manner, ignoring small values.
4481 -- Note on equality/inequality tests for records. In the expanded tree,
4482 -- record comparisons are always expanded to be a series of component
4483 -- comparisons, so the back end will never see an equality or inequality
4484 -- operation with operands of a record type.
4486 -- Note on overflow handling: When the overflow checking mode is set to
4487 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4488 -- be modified to use a larger type for the operands and result. In
4489 -- the case where the computed range exceeds that of Long_Long_Integer,
4490 -- and we are running in ELIMINATED mode, the operator node will be
4491 -- changed to be a call to the appropriate routine in System.Bignums.
4493 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4494 -- for signed integer types (since there is no equivalent operator in
4495 -- C). Instead we rewrite such an operation in terms of REM (which is
4496 -- % in C) and other C-available operators.
4498 ------------------------------------
4499 -- 4.5.7 Conditional Expressions --
4500 ------------------------------------
4502 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4504 --------------------------
4505 -- 4.5.7 If Expression --
4506 ----------------------------
4508 -- IF_EXPRESSION ::=
4509 -- if CONDITION then DEPENDENT_EXPRESSION
4510 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4511 -- [else DEPENDENT_EXPRESSION]
4513 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4515 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4516 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4517 -- the Is_Elsif flag is set on the inner if expression.
4519 -- N_If_Expression
4520 -- Sloc points to IF or ELSIF keyword
4521 -- Expressions (List1)
4522 -- Then_Actions (List2-Sem)
4523 -- Else_Actions (List3-Sem)
4524 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4525 -- Do_Overflow_Check (Flag17-Sem)
4526 -- plus fields for expression
4528 -- Expressions here is a three-element list, whose first element is the
4529 -- condition, the second element is the dependent expression after THEN
4530 -- and the third element is the dependent expression after the ELSE
4531 -- (explicitly set to True if missing).
4533 -- Note: the Then_Actions and Else_Actions fields are always set to
4534 -- No_List in the tree passed to the back end. These are used only
4535 -- for temporary processing purposes in the expander. Even though they
4536 -- are semantic fields, their parent pointers are set because analysis
4537 -- of actions nodes in those lists may generate additional actions that
4538 -- need to know their insertion point (for example for the creation of
4539 -- transient scopes).
4541 -- Note: in the tree passed to the back end, if the result type is
4542 -- an unconstrained array, the if expression can only appears in the
4543 -- initializing expression of an object declaration (this avoids the
4544 -- back end having to create a variable length temporary on the fly).
4546 ----------------------------
4547 -- 4.5.7 Case Expression --
4548 ----------------------------
4550 -- CASE_EXPRESSION ::=
4551 -- case SELECTING_EXPRESSION is
4552 -- CASE_EXPRESSION_ALTERNATIVE
4553 -- {,CASE_EXPRESSION_ALTERNATIVE}
4555 -- Note that the Alternatives cannot include pragmas (this contrasts
4556 -- with the situation of case statements where pragmas are allowed).
4558 -- N_Case_Expression
4559 -- Sloc points to CASE
4560 -- Expression (Node3) (the selecting expression)
4561 -- Alternatives (List4) (the case expression alternatives)
4562 -- Do_Overflow_Check (Flag17-Sem)
4564 ----------------------------------------
4565 -- 4.5.7 Case Expression Alternative --
4566 ----------------------------------------
4568 -- CASE_EXPRESSION_ALTERNATIVE ::=
4569 -- when DISCRETE_CHOICE_LIST =>
4570 -- DEPENDENT_EXPRESSION
4572 -- N_Case_Expression_Alternative
4573 -- Sloc points to WHEN
4574 -- Actions (List1)
4575 -- Discrete_Choices (List4)
4576 -- Expression (Node3)
4577 -- Has_SP_Choice (Flag15-Sem)
4579 -- Note: The Actions field temporarily holds any actions associated with
4580 -- evaluation of the Expression. During expansion of the case expression
4581 -- these actions are wrapped into an N_Expressions_With_Actions node
4582 -- replacing the original expression.
4584 -- Note: this node never appears in the tree passed to the back end,
4585 -- since the expander converts case expressions into case statements.
4587 ---------------------------------
4588 -- 4.5.9 Quantified Expression --
4589 ---------------------------------
4591 -- QUANTIFIED_EXPRESSION ::=
4592 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4593 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4595 -- QUANTIFIER ::= all | some
4597 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4598 -- is present at a time, in which case the other one is empty.
4600 -- N_Quantified_Expression
4601 -- Sloc points to FOR
4602 -- Iterator_Specification (Node2)
4603 -- Loop_Parameter_Specification (Node4)
4604 -- Condition (Node1)
4605 -- All_Present (Flag15)
4607 --------------------------
4608 -- 4.6 Type Conversion --
4609 --------------------------
4611 -- TYPE_CONVERSION ::=
4612 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4614 -- In the (NAME) case, the name is stored as the expression
4616 -- Note: the parser never generates a type conversion node, since it
4617 -- looks like an indexed component which is generated by preference.
4618 -- The semantic pass must correct this misidentification.
4620 -- Gigi handles conversions that involve no change in the root type,
4621 -- and also all conversions from integer to floating-point types.
4622 -- Conversions from floating-point to integer are only handled in
4623 -- the case where Float_Truncate flag set. Other conversions from
4624 -- floating-point to integer (involving rounding) and all conversions
4625 -- involving fixed-point types are handled by the expander.
4627 -- Sprint syntax if Float_Truncate set: X^(Y)
4628 -- Sprint syntax if Conversion_OK set X?(Y)
4629 -- Sprint syntax if both flags set X?^(Y)
4631 -- Note: If either the operand or result type is fixed-point, Gigi will
4632 -- only see a type conversion node with Conversion_OK set. The front end
4633 -- takes care of all handling of small's for fixed-point conversions.
4635 -- N_Type_Conversion
4636 -- Sloc points to first token of subtype mark
4637 -- Subtype_Mark (Node4)
4638 -- Expression (Node3)
4639 -- Do_Discriminant_Check (Flag1-Sem)
4640 -- Do_Length_Check (Flag4-Sem)
4641 -- Float_Truncate (Flag11-Sem)
4642 -- Do_Tag_Check (Flag13-Sem)
4643 -- Conversion_OK (Flag14-Sem)
4644 -- Do_Overflow_Check (Flag17-Sem)
4645 -- Rounded_Result (Flag18-Sem)
4646 -- plus fields for expression
4648 -- Note: if a range check is required, then the Do_Range_Check flag
4649 -- is set in the Expression with the check being done against the
4650 -- target type range (after the base type conversion, if any).
4652 -------------------------------
4653 -- 4.7 Qualified Expression --
4654 -------------------------------
4656 -- QUALIFIED_EXPRESSION ::=
4657 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4659 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4660 -- the expression, so the Expression field of this node always points
4661 -- to a parenthesized expression in this case (i.e. Paren_Count will
4662 -- always be non-zero for the referenced expression if it is not an
4663 -- aggregate).
4665 -- N_Qualified_Expression
4666 -- Sloc points to apostrophe
4667 -- Subtype_Mark (Node4)
4668 -- Expression (Node3) expression or aggregate
4669 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4670 -- plus fields for expression
4672 --------------------
4673 -- 4.8 Allocator --
4674 --------------------
4676 -- ALLOCATOR ::=
4677 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4678 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4680 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4682 -- Sprint syntax (when storage pool present)
4683 -- new xxx (storage_pool = pool)
4684 -- or
4685 -- new (subpool) xxx (storage_pool = pool)
4687 -- N_Allocator
4688 -- Sloc points to NEW
4689 -- Expression (Node3) subtype indication or qualified expression
4690 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4691 -- Storage_Pool (Node1-Sem)
4692 -- Procedure_To_Call (Node2-Sem)
4693 -- Null_Exclusion_Present (Flag11)
4694 -- No_Initialization (Flag13-Sem)
4695 -- Is_Static_Coextension (Flag14-Sem)
4696 -- Do_Storage_Check (Flag17-Sem)
4697 -- Is_Dynamic_Coextension (Flag18-Sem)
4698 -- plus fields for expression
4700 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4701 -- This flag has a special function in conjunction with the restriction
4702 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4703 -- is not set. This means that if a source allocator is replaced with
4704 -- a constructed allocator, the Comes_From_Source flag should be copied
4705 -- to the newly created allocator.
4707 ---------------------------------
4708 -- 5.1 Sequence Of Statements --
4709 ---------------------------------
4711 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4713 -- Note: Although the parser will not accept a declaration as a
4714 -- statement, the semantic analyzer may insert declarations (e.g.
4715 -- declarations of implicit types needed for execution of other
4716 -- statements) into a sequence of statements, so the code generator
4717 -- should be prepared to accept a declaration where a statement is
4718 -- expected. Note also that pragmas can appear as statements.
4720 --------------------
4721 -- 5.1 Statement --
4722 --------------------
4724 -- STATEMENT ::=
4725 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4727 -- There is no explicit node in the tree for a statement. Instead, the
4728 -- individual statement appears directly. Labels are treated as a
4729 -- kind of statement, i.e. they are linked into a statement list at
4730 -- the point they appear, so the labeled statement appears following
4731 -- the label or labels in the statement list.
4733 ---------------------------
4734 -- 5.1 Simple Statement --
4735 ---------------------------
4737 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4738 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4739 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4740 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4741 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4742 -- | ABORT_STATEMENT | RAISE_STATEMENT
4743 -- | CODE_STATEMENT
4745 -----------------------------
4746 -- 5.1 Compound Statement --
4747 -----------------------------
4749 -- COMPOUND_STATEMENT ::=
4750 -- IF_STATEMENT | CASE_STATEMENT
4751 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4752 -- | EXTENDED_RETURN_STATEMENT
4753 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4755 -------------------------
4756 -- 5.1 Null Statement --
4757 -------------------------
4759 -- NULL_STATEMENT ::= null;
4761 -- N_Null_Statement
4762 -- Sloc points to NULL
4764 ----------------
4765 -- 5.1 Label --
4766 ----------------
4768 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4770 -- Note that the occurrence of a label is not a defining identifier,
4771 -- but rather a referencing occurrence. The defining occurrence is
4772 -- in the implicit label declaration which occurs in the innermost
4773 -- enclosing block.
4775 -- N_Label
4776 -- Sloc points to <<
4777 -- Identifier (Node1) direct name of statement identifier
4778 -- Exception_Junk (Flag8-Sem)
4780 -- Note: Before Ada 2012, a label is always followed by a statement,
4781 -- and this is true in the tree even in Ada 2012 mode (the parser
4782 -- inserts a null statement marked with Comes_From_Source False).
4784 -------------------------------
4785 -- 5.1 Statement Identifier --
4786 -------------------------------
4788 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4790 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4791 -- (not an OPERATOR_SYMBOL)
4793 -------------------------------
4794 -- 5.2 Assignment Statement --
4795 -------------------------------
4797 -- ASSIGNMENT_STATEMENT ::=
4798 -- variable_NAME := EXPRESSION;
4800 -- N_Assignment_Statement
4801 -- Sloc points to :=
4802 -- Name (Node2)
4803 -- Expression (Node3)
4804 -- Do_Discriminant_Check (Flag1-Sem)
4805 -- Do_Tag_Check (Flag13-Sem)
4806 -- Do_Length_Check (Flag4-Sem)
4807 -- Forwards_OK (Flag5-Sem)
4808 -- Backwards_OK (Flag6-Sem)
4809 -- No_Ctrl_Actions (Flag7-Sem)
4810 -- Has_Target_Names (Flag8-Sem)
4811 -- Componentwise_Assignment (Flag14-Sem)
4812 -- Suppress_Assignment_Checks (Flag18-Sem)
4814 -- Note: if a range check is required, then the Do_Range_Check flag
4815 -- is set in the Expression (right hand side), with the check being
4816 -- done against the type of the Name (left hand side).
4818 -- Note: the back end places some restrictions on the form of the
4819 -- Expression field. If the object being assigned to is Atomic, then
4820 -- the Expression may not have the form of an aggregate (since this
4821 -- might cause the back end to generate separate assignments). In this
4822 -- case the front end must generate an extra temporary and initialize
4823 -- this temporary as required (the temporary itself is not atomic).
4825 ------------------
4826 -- Target_Name --
4827 ------------------
4829 -- N_Target_Name
4830 -- Sloc points to @
4831 -- Etype (Node5-Sem)
4833 -- Note (Ada 2020): node is used during analysis as a placeholder for
4834 -- the value of the LHS of the enclosing assignment statement. Node is
4835 -- eventually rewritten together with enclosing assignment, and backends
4836 -- are not aware of it.
4838 -----------------------
4839 -- 5.3 If Statement --
4840 -----------------------
4842 -- IF_STATEMENT ::=
4843 -- if CONDITION then
4844 -- SEQUENCE_OF_STATEMENTS
4845 -- {elsif CONDITION then
4846 -- SEQUENCE_OF_STATEMENTS}
4847 -- [else
4848 -- SEQUENCE_OF_STATEMENTS]
4849 -- end if;
4851 -- Gigi restriction: This expander ensures that the type of the
4852 -- Condition fields is always Standard.Boolean, even if the type
4853 -- in the source is some non-standard boolean type.
4855 -- N_If_Statement
4856 -- Sloc points to IF
4857 -- Condition (Node1)
4858 -- Then_Statements (List2)
4859 -- Elsif_Parts (List3) (set to No_List if none present)
4860 -- Else_Statements (List4) (set to No_List if no else part present)
4861 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4862 -- From_Conditional_Expression (Flag1-Sem)
4864 -- N_Elsif_Part
4865 -- Sloc points to ELSIF
4866 -- Condition (Node1)
4867 -- Then_Statements (List2)
4868 -- Condition_Actions (List3-Sem)
4870 --------------------
4871 -- 5.3 Condition --
4872 --------------------
4874 -- CONDITION ::= boolean_EXPRESSION
4876 -------------------------
4877 -- 5.4 Case Statement --
4878 -------------------------
4880 -- CASE_STATEMENT ::=
4881 -- case EXPRESSION is
4882 -- CASE_STATEMENT_ALTERNATIVE
4883 -- {CASE_STATEMENT_ALTERNATIVE}
4884 -- end case;
4886 -- Note: the Alternatives can contain pragmas. These only occur at
4887 -- the start of the list, since any pragmas occurring after the first
4888 -- alternative are absorbed into the corresponding statement sequence.
4890 -- N_Case_Statement
4891 -- Sloc points to CASE
4892 -- Expression (Node3)
4893 -- Alternatives (List4)
4894 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4895 -- From_Conditional_Expression (Flag1-Sem)
4897 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4898 -- followed by a statement, and this is true in the tree even in Ada
4899 -- 2012 mode (the parser inserts a null statement marked with the flag
4900 -- Comes_From_Source False).
4902 -------------------------------------
4903 -- 5.4 Case Statement Alternative --
4904 -------------------------------------
4906 -- CASE_STATEMENT_ALTERNATIVE ::=
4907 -- when DISCRETE_CHOICE_LIST =>
4908 -- SEQUENCE_OF_STATEMENTS
4910 -- N_Case_Statement_Alternative
4911 -- Sloc points to WHEN
4912 -- Discrete_Choices (List4)
4913 -- Statements (List3)
4914 -- Has_SP_Choice (Flag15-Sem)
4916 -- Note: in the list of Discrete_Choices, the tree passed to the back
4917 -- end does not have choice entries corresponding to names of statically
4918 -- predicated subtypes. Such entries are always expanded out to the list
4919 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4920 -- mode does not have this expansion, and has the original choices.
4922 -------------------------
4923 -- 5.5 Loop Statement --
4924 -------------------------
4926 -- LOOP_STATEMENT ::=
4927 -- [loop_STATEMENT_IDENTIFIER :]
4928 -- [ITERATION_SCHEME] loop
4929 -- SEQUENCE_OF_STATEMENTS
4930 -- end loop [loop_IDENTIFIER];
4932 -- Note: The occurrence of a loop label is not a defining identifier
4933 -- but rather a referencing occurrence. The defining occurrence is in
4934 -- the implicit label declaration which occurs in the innermost
4935 -- enclosing block.
4937 -- Note: there is always a loop statement identifier present in the
4938 -- tree, even if none was given in the source. In the case where no loop
4939 -- identifier is given in the source, the parser creates a name of the
4940 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4941 -- that the loop names created in this manner do not conflict with any
4942 -- user defined identifiers), and the flag Has_Created_Identifier is set
4943 -- to True. The only exception to the rule that all loop statement nodes
4944 -- have identifiers occurs for loops constructed by the expander, and
4945 -- the semantic analyzer will create and supply dummy loop identifiers
4946 -- in these cases.
4948 -- N_Loop_Statement
4949 -- Sloc points to LOOP
4950 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4951 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4952 -- Statements (List3)
4953 -- End_Label (Node4)
4954 -- Has_Created_Identifier (Flag15)
4955 -- Is_Null_Loop (Flag16)
4956 -- Suppress_Loop_Warnings (Flag17)
4958 -- Note: the parser fills in the Identifier field if there is an
4959 -- explicit loop identifier. Otherwise the parser leaves this field
4960 -- set to Empty, and then the semantic processing for a loop statement
4961 -- creates an identifier, setting the Has_Created_Identifier flag to
4962 -- True. So after semantic analysis, the Identifier is always set,
4963 -- referencing an identifier whose entity has an Ekind of E_Loop.
4965 ---------------------------
4966 -- 5.5 Iteration Scheme --
4967 ---------------------------
4969 -- ITERATION_SCHEME ::=
4970 -- while CONDITION
4971 -- | for LOOP_PARAMETER_SPECIFICATION
4972 -- | for ITERATOR_SPECIFICATION
4974 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4975 -- is present at a time, in which case the other one is empty. Both are
4976 -- empty in the case of a WHILE loop.
4978 -- Gigi restriction: The expander ensures that the type of the Condition
4979 -- field is always Standard.Boolean, even if the type in the source is
4980 -- some non-standard boolean type.
4982 -- N_Iteration_Scheme
4983 -- Sloc points to WHILE or FOR
4984 -- Condition (Node1) (set to Empty if FOR case)
4985 -- Condition_Actions (List3-Sem)
4986 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4987 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4989 ---------------------------------------
4990 -- 5.5 Loop Parameter Specification --
4991 ---------------------------------------
4993 -- LOOP_PARAMETER_SPECIFICATION ::=
4994 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4996 -- N_Loop_Parameter_Specification
4997 -- Sloc points to first identifier
4998 -- Defining_Identifier (Node1)
4999 -- Reverse_Present (Flag15)
5000 -- Discrete_Subtype_Definition (Node4)
5002 -----------------------------------
5003 -- 5.5.1 Iterator Specification --
5004 -----------------------------------
5006 -- ITERATOR_SPECIFICATION ::=
5007 -- DEFINING_IDENTIFIER in [reverse] NAME
5008 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5010 -- N_Iterator_Specification
5011 -- Sloc points to defining identifier
5012 -- Defining_Identifier (Node1)
5013 -- Name (Node2)
5014 -- Reverse_Present (Flag15)
5015 -- Of_Present (Flag16)
5016 -- Subtype_Indication (Node5)
5018 -- Note: The Of_Present flag distinguishes the two forms
5020 --------------------------
5021 -- 5.6 Block Statement --
5022 --------------------------
5024 -- BLOCK_STATEMENT ::=
5025 -- [block_STATEMENT_IDENTIFIER:]
5026 -- [declare
5027 -- DECLARATIVE_PART]
5028 -- begin
5029 -- HANDLED_SEQUENCE_OF_STATEMENTS
5030 -- end [block_IDENTIFIER];
5032 -- Note that the occurrence of a block identifier is not a defining
5033 -- identifier, but rather a referencing occurrence. The defining
5034 -- occurrence is an E_Block entity declared by the implicit label
5035 -- declaration which occurs in the innermost enclosing block statement
5036 -- or body; the block identifier denotes that E_Block.
5038 -- For block statements that come from source code, there is always a
5039 -- block statement identifier present in the tree, denoting an E_Block.
5040 -- In the case where no block identifier is given in the source,
5041 -- the parser creates a name of the form B_n, where n is a decimal
5042 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5043 -- constructed by the expander usually have no identifier, and no
5044 -- corresponding entity.
5046 -- Note: the block statement created for an extended return statement
5047 -- has an entity, and this entity is an E_Return_Statement, rather than
5048 -- the usual E_Block.
5050 -- Note: Exception_Junk is set for the wrapping blocks created during
5051 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5053 -- Note: from a control flow viewpoint, a block statement defines an
5054 -- extended basic block, i.e. the entry of the block dominates every
5055 -- statement in the sequence. When generating new statements with
5056 -- exception handlers in the expander at the end of a sequence that
5057 -- comes from source code, it can be necessary to wrap them all in a
5058 -- block statement in order to expose the implicit control flow to
5059 -- gigi and thus prevent it from issuing bogus control flow warnings.
5061 -- N_Block_Statement
5062 -- Sloc points to DECLARE or BEGIN
5063 -- Identifier (Node1) block direct name (set to Empty if not present)
5064 -- Declarations (List2) (set to No_List if no DECLARE part)
5065 -- Handled_Statement_Sequence (Node4)
5066 -- Cleanup_Actions (List5-Sem)
5067 -- Is_Abort_Block (Flag4-Sem)
5068 -- Is_Task_Master (Flag5-Sem)
5069 -- Activation_Chain_Entity (Node3-Sem)
5070 -- Has_Created_Identifier (Flag15)
5071 -- Is_Task_Allocation_Block (Flag6)
5072 -- Is_Asynchronous_Call_Block (Flag7)
5073 -- Exception_Junk (Flag8-Sem)
5074 -- Is_Finalization_Wrapper (Flag9-Sem)
5076 -------------------------
5077 -- 5.7 Exit Statement --
5078 -------------------------
5080 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5082 -- Gigi restriction: The expander ensures that the type of the Condition
5083 -- field is always Standard.Boolean, even if the type in the source is
5084 -- some non-standard boolean type.
5086 -- N_Exit_Statement
5087 -- Sloc points to EXIT
5088 -- Name (Node2) (set to Empty if no loop name present)
5089 -- Condition (Node1) (set to Empty if no WHEN part present)
5090 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5092 -------------------------
5093 -- 5.9 Goto Statement --
5094 -------------------------
5096 -- GOTO_STATEMENT ::= goto label_NAME;
5098 -- N_Goto_Statement
5099 -- Sloc points to GOTO
5100 -- Name (Node2)
5101 -- Exception_Junk (Flag8-Sem)
5103 ---------------------------------
5104 -- 6.1 Subprogram Declaration --
5105 ---------------------------------
5107 -- SUBPROGRAM_DECLARATION ::=
5108 -- SUBPROGRAM_SPECIFICATION
5109 -- [ASPECT_SPECIFICATIONS];
5111 -- N_Subprogram_Declaration
5112 -- Sloc points to FUNCTION or PROCEDURE
5113 -- Specification (Node1)
5114 -- Body_To_Inline (Node3-Sem)
5115 -- Corresponding_Body (Node5-Sem)
5116 -- Parent_Spec (Node4-Sem)
5117 -- Is_Entry_Barrier_Function (Flag8-Sem)
5118 -- Is_Task_Body_Procedure (Flag1-Sem)
5120 ------------------------------------------
5121 -- 6.1 Abstract Subprogram Declaration --
5122 ------------------------------------------
5124 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5125 -- SUBPROGRAM_SPECIFICATION is abstract
5126 -- [ASPECT_SPECIFICATIONS];
5128 -- N_Abstract_Subprogram_Declaration
5129 -- Sloc points to ABSTRACT
5130 -- Specification (Node1)
5132 -----------------------------------
5133 -- 6.1 Subprogram Specification --
5134 -----------------------------------
5136 -- SUBPROGRAM_SPECIFICATION ::=
5137 -- [[not] overriding]
5138 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5139 -- | [[not] overriding]
5140 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5142 -- Note: there are no separate nodes for the profiles, instead the
5143 -- information appears directly in the following nodes.
5145 -- N_Function_Specification
5146 -- Sloc points to FUNCTION
5147 -- Defining_Unit_Name (Node1) (the designator)
5148 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5149 -- Null_Exclusion_Present (Flag11)
5150 -- Result_Definition (Node4) for result subtype
5151 -- Generic_Parent (Node5-Sem)
5152 -- Must_Override (Flag14) set if overriding indicator present
5153 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5155 -- N_Procedure_Specification
5156 -- Sloc points to PROCEDURE
5157 -- Defining_Unit_Name (Node1)
5158 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5159 -- Generic_Parent (Node5-Sem)
5160 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5161 -- Must_Override (Flag14) set if overriding indicator present
5162 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5164 -- Note: overriding indicator is an Ada 2005 feature
5166 ---------------------
5167 -- 6.1 Designator --
5168 ---------------------
5170 -- DESIGNATOR ::=
5171 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5173 -- Designators that are simply identifiers or operator symbols appear
5174 -- directly in the tree in this form. The following node is used only
5175 -- in the case where the designator has a parent unit name component.
5177 -- N_Designator
5178 -- Sloc points to period
5179 -- Name (Node2) holds the parent unit name
5180 -- Identifier (Node1)
5182 -- Note: Name is always non-Empty, since this node is only used for the
5183 -- case where a parent library unit package name is present.
5185 -- Note that the identifier can also be an operator symbol here
5187 ------------------------------
5188 -- 6.1 Defining Designator --
5189 ------------------------------
5191 -- DEFINING_DESIGNATOR ::=
5192 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5194 -------------------------------------
5195 -- 6.1 Defining Program Unit Name --
5196 -------------------------------------
5198 -- DEFINING_PROGRAM_UNIT_NAME ::=
5199 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5201 -- The parent unit name is present only in the case of a child unit name
5202 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5203 -- at scope level one). If no such name is present, the defining program
5204 -- unit name is represented simply as the defining identifier. In the
5205 -- child unit case, the following node is used to represent the child
5206 -- unit name.
5208 -- N_Defining_Program_Unit_Name
5209 -- Sloc points to period
5210 -- Name (Node2) holds the parent unit name
5211 -- Defining_Identifier (Node1)
5213 -- Note: Name is always non-Empty, since this node is only used for the
5214 -- case where a parent unit name is present.
5216 --------------------------
5217 -- 6.1 Operator Symbol --
5218 --------------------------
5220 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5222 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5223 -- the corresponding fields of an N_Character_Literal node. This allows
5224 -- easy conversion of the operator symbol node into a character literal
5225 -- node in the case where a string constant of the form of an operator
5226 -- symbol is scanned out as such, but turns out semantically to be a
5227 -- string literal that is not an operator. For details see Sinfo.CN.
5228 -- Change_Operator_Symbol_To_String_Literal.
5230 -- N_Operator_Symbol
5231 -- Sloc points to literal
5232 -- Chars (Name1) contains the Name_Id for the operator symbol
5233 -- Strval (Str3) Id of string value. This is used if the operator
5234 -- symbol turns out to be a normal string after all.
5235 -- Entity (Node4-Sem)
5236 -- Associated_Node (Node4-Sem)
5237 -- Has_Private_View (Flag11-Sem) set in generic units.
5238 -- Etype (Node5-Sem)
5240 -- Note: the Strval field may be set to No_String for generated
5241 -- operator symbols that are known not to be string literals
5242 -- semantically.
5244 -----------------------------------
5245 -- 6.1 Defining Operator Symbol --
5246 -----------------------------------
5248 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5250 -- A defining operator symbol is an entity, which has additional
5251 -- fields depending on the setting of the Ekind field. These
5252 -- additional fields are defined (and access subprograms declared)
5253 -- in package Einfo.
5255 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5256 -- are deliberately layed out to match the layout of fields in an
5257 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5258 -- an operator symbol node into a defining operator symbol node.
5259 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5260 -- for further details.
5262 -- N_Defining_Operator_Symbol
5263 -- Sloc points to literal
5264 -- Chars (Name1) contains the Name_Id for the operator symbol
5265 -- Next_Entity (Node2-Sem)
5266 -- Scope (Node3-Sem)
5267 -- Etype (Node5-Sem)
5269 ----------------------------
5270 -- 6.1 Parameter Profile --
5271 ----------------------------
5273 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5275 ---------------------------------------
5276 -- 6.1 Parameter and Result Profile --
5277 ---------------------------------------
5279 -- PARAMETER_AND_RESULT_PROFILE ::=
5280 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5281 -- | [FORMAL_PART] return ACCESS_DEFINITION
5283 -- There is no explicit node in the tree for a parameter and result
5284 -- profile. Instead the information appears directly in the parent.
5286 ----------------------
5287 -- 6.1 Formal Part --
5288 ----------------------
5290 -- FORMAL_PART ::=
5291 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5293 ----------------------------------
5294 -- 6.1 Parameter Specification --
5295 ----------------------------------
5297 -- PARAMETER_SPECIFICATION ::=
5298 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5299 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5300 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5301 -- [:= DEFAULT_EXPRESSION]
5303 -- Although the syntax allows multiple identifiers in the list, the
5304 -- semantics is as though successive specifications were given with
5305 -- identical type definition and expression components. To simplify
5306 -- semantic processing, the parser represents a multiple declaration
5307 -- case as a sequence of single Specifications, using the More_Ids and
5308 -- Prev_Ids flags to preserve the original source form as described
5309 -- in the section on "Handling of Defining Identifier Lists".
5311 -- ALIASED can only be present in Ada 2012 mode
5313 -- N_Parameter_Specification
5314 -- Sloc points to first identifier
5315 -- Defining_Identifier (Node1)
5316 -- Aliased_Present (Flag4)
5317 -- In_Present (Flag15)
5318 -- Out_Present (Flag17)
5319 -- Null_Exclusion_Present (Flag11)
5320 -- Parameter_Type (Node2) subtype mark or access definition
5321 -- Expression (Node3) (set to Empty if no default expression present)
5322 -- Do_Accessibility_Check (Flag13-Sem)
5323 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5324 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5325 -- Default_Expression (Node5-Sem)
5327 ---------------
5328 -- 6.1 Mode --
5329 ---------------
5331 -- MODE ::= [in] | in out | out
5333 -- There is no explicit node in the tree for the Mode. Instead the
5334 -- In_Present and Out_Present flags are set in the parent node to
5335 -- record the presence of keywords specifying the mode.
5337 --------------------------
5338 -- 6.3 Subprogram Body --
5339 --------------------------
5341 -- SUBPROGRAM_BODY ::=
5342 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5343 -- DECLARATIVE_PART
5344 -- begin
5345 -- HANDLED_SEQUENCE_OF_STATEMENTS
5346 -- end [DESIGNATOR];
5348 -- N_Subprogram_Body
5349 -- Sloc points to FUNCTION or PROCEDURE
5350 -- Specification (Node1)
5351 -- Declarations (List2)
5352 -- Handled_Statement_Sequence (Node4)
5353 -- Activation_Chain_Entity (Node3-Sem)
5354 -- Corresponding_Spec (Node5-Sem)
5355 -- Acts_As_Spec (Flag4-Sem)
5356 -- Bad_Is_Detected (Flag15) used only by parser
5357 -- Do_Storage_Check (Flag17-Sem)
5358 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5359 -- Is_Entry_Barrier_Function (Flag8-Sem)
5360 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5361 -- Is_Task_Body_Procedure (Flag1-Sem)
5362 -- Is_Task_Master (Flag5-Sem)
5363 -- Was_Expression_Function (Flag18-Sem)
5364 -- Was_Originally_Stub (Flag13-Sem)
5366 -------------------------
5367 -- Expression Function --
5368 -------------------------
5370 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5371 -- and put in its proper section when we know exactly where that is.
5373 -- EXPRESSION_FUNCTION ::=
5374 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5375 -- [ASPECT_SPECIFICATIONS];
5377 -- N_Expression_Function
5378 -- Sloc points to FUNCTION
5379 -- Specification (Node1)
5380 -- Expression (Node3)
5381 -- Corresponding_Spec (Node5-Sem)
5383 -----------------------------------
5384 -- 6.4 Procedure Call Statement --
5385 -----------------------------------
5387 -- PROCEDURE_CALL_STATEMENT ::=
5388 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5390 -- Note: the reason that a procedure call has expression fields is that
5391 -- it semantically resembles an expression, e.g. overloading is allowed
5392 -- and a type is concocted for semantic processing purposes. Certain of
5393 -- these fields, such as Parens are not relevant, but it is easier to
5394 -- just supply all of them together.
5396 -- N_Procedure_Call_Statement
5397 -- Sloc points to first token of name or prefix
5398 -- Name (Node2) stores name or prefix
5399 -- Parameter_Associations (List3) (set to No_List if no
5400 -- actual parameter part)
5401 -- First_Named_Actual (Node4-Sem)
5402 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5403 -- Do_Tag_Check (Flag13-Sem)
5404 -- No_Elaboration_Check (Flag14-Sem)
5405 -- ABE_Is_Certain (Flag18-Sem)
5406 -- plus fields for expression
5408 -- If any IN parameter requires a range check, then the corresponding
5409 -- argument expression has the Do_Range_Check flag set, and the range
5410 -- check is done against the formal type. Note that this argument
5411 -- expression may appear directly in the Parameter_Associations list,
5412 -- or may be a descendant of an N_Parameter_Association node that
5413 -- appears in this list.
5415 ------------------------
5416 -- 6.4 Function Call --
5417 ------------------------
5419 -- FUNCTION_CALL ::=
5420 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5422 -- Note: the parser may generate an indexed component node or simply
5423 -- a name node instead of a function call node. The semantic pass must
5424 -- correct this misidentification.
5426 -- N_Function_Call
5427 -- Sloc points to first token of name or prefix
5428 -- Name (Node2) stores name or prefix
5429 -- Parameter_Associations (List3) (set to No_List if no
5430 -- actual parameter part)
5431 -- First_Named_Actual (Node4-Sem)
5432 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5433 -- No_Side_Effect_Removal (Flag1-Sem)
5434 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5435 -- Do_Tag_Check (Flag13-Sem)
5436 -- No_Elaboration_Check (Flag14-Sem)
5437 -- ABE_Is_Certain (Flag18-Sem)
5438 -- plus fields for expression
5440 --------------------------------
5441 -- 6.4 Actual Parameter Part --
5442 --------------------------------
5444 -- ACTUAL_PARAMETER_PART ::=
5445 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5447 --------------------------------
5448 -- 6.4 Parameter Association --
5449 --------------------------------
5451 -- PARAMETER_ASSOCIATION ::=
5452 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5454 -- Note: the N_Parameter_Association node is built only if a formal
5455 -- parameter selector name is present, otherwise the parameter
5456 -- association appears in the tree simply as the node for the
5457 -- explicit actual parameter.
5459 -- N_Parameter_Association
5460 -- Sloc points to formal parameter
5461 -- Selector_Name (Node2) (always non-Empty)
5462 -- Explicit_Actual_Parameter (Node3)
5463 -- Next_Named_Actual (Node4-Sem)
5464 -- Is_Accessibility_Actual (Flag13-Sem)
5466 ---------------------------
5467 -- 6.4 Actual Parameter --
5468 ---------------------------
5470 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5472 ---------------------------
5473 -- 6.5 Return Statement --
5474 ---------------------------
5476 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5478 -- EXTENDED_RETURN_STATEMENT ::=
5479 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5480 -- [:= EXPRESSION] [do
5481 -- HANDLED_SEQUENCE_OF_STATEMENTS
5482 -- end return];
5484 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5486 -- The term "return statement" is defined in 6.5 to mean either a
5487 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5488 -- the use of this term, since it used to mean someting else in earlier
5489 -- versions of Ada.
5491 -- N_Simple_Return_Statement
5492 -- Sloc points to RETURN
5493 -- Return_Statement_Entity (Node5-Sem)
5494 -- Expression (Node3) (set to Empty if no expression present)
5495 -- Storage_Pool (Node1-Sem)
5496 -- Procedure_To_Call (Node2-Sem)
5497 -- Do_Tag_Check (Flag13-Sem)
5498 -- By_Ref (Flag5-Sem)
5499 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5501 -- Note: Return_Statement_Entity points to an E_Return_Statement
5503 -- If a range check is required, then Do_Range_Check is set on the
5504 -- Expression. The check is against the return subtype of the function.
5506 -- N_Extended_Return_Statement
5507 -- Sloc points to RETURN
5508 -- Return_Statement_Entity (Node5-Sem)
5509 -- Return_Object_Declarations (List3)
5510 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5511 -- Storage_Pool (Node1-Sem)
5512 -- Procedure_To_Call (Node2-Sem)
5513 -- Do_Tag_Check (Flag13-Sem)
5514 -- By_Ref (Flag5-Sem)
5516 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5518 -- Note that Return_Object_Declarations is a list containing the
5519 -- N_Object_Declaration -- see comment on this field above.
5521 -- The declared object will have Is_Return_Object = True.
5523 -- There is no such syntactic category as return_object_declaration
5524 -- in the RM. Return_Object_Declarations represents this portion of
5525 -- the syntax for EXTENDED_RETURN_STATEMENT:
5526 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5527 -- [:= EXPRESSION]
5529 -- There are two entities associated with an extended_return_statement:
5530 -- the Return_Statement_Entity represents the statement itself,
5531 -- and the Defining_Identifier of the Object_Declaration in
5532 -- Return_Object_Declarations represents the object being
5533 -- returned. N_Simple_Return_Statement has only the former.
5535 ------------------------------
5536 -- 7.1 Package Declaration --
5537 ------------------------------
5539 -- PACKAGE_DECLARATION ::=
5540 -- PACKAGE_SPECIFICATION;
5542 -- Note: the activation chain entity for a package spec is used for
5543 -- all tasks declared in the package spec, or in the package body.
5545 -- N_Package_Declaration
5546 -- Sloc points to PACKAGE
5547 -- Specification (Node1)
5548 -- Corresponding_Body (Node5-Sem)
5549 -- Parent_Spec (Node4-Sem)
5550 -- Activation_Chain_Entity (Node3-Sem)
5552 --------------------------------
5553 -- 7.1 Package Specification --
5554 --------------------------------
5556 -- PACKAGE_SPECIFICATION ::=
5557 -- package DEFINING_PROGRAM_UNIT_NAME
5558 -- [ASPECT_SPECIFICATIONS]
5559 -- is
5560 -- {BASIC_DECLARATIVE_ITEM}
5561 -- [private
5562 -- {BASIC_DECLARATIVE_ITEM}]
5563 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5565 -- N_Package_Specification
5566 -- Sloc points to PACKAGE
5567 -- Defining_Unit_Name (Node1)
5568 -- Visible_Declarations (List2)
5569 -- Private_Declarations (List3) (set to No_List if no private
5570 -- part present)
5571 -- End_Label (Node4)
5572 -- Generic_Parent (Node5-Sem)
5573 -- Limited_View_Installed (Flag18-Sem)
5575 -----------------------
5576 -- 7.1 Package Body --
5577 -----------------------
5579 -- PACKAGE_BODY ::=
5580 -- package body DEFINING_PROGRAM_UNIT_NAME
5581 -- [ASPECT_SPECIFICATIONS]
5582 -- is
5583 -- DECLARATIVE_PART
5584 -- [begin
5585 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5586 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5588 -- N_Package_Body
5589 -- Sloc points to PACKAGE
5590 -- Defining_Unit_Name (Node1)
5591 -- Declarations (List2)
5592 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5593 -- Corresponding_Spec (Node5-Sem)
5594 -- Was_Originally_Stub (Flag13-Sem)
5596 -- Note: if a source level package does not contain a handled sequence
5597 -- of statements, then the parser supplies a dummy one with a null
5598 -- sequence of statements. Comes_From_Source will be False in this
5599 -- constructed sequence. The reason we need this is for the End_Label
5600 -- field in the HSS.
5602 -----------------------------------
5603 -- 7.4 Private Type Declaration --
5604 -----------------------------------
5606 -- PRIVATE_TYPE_DECLARATION ::=
5607 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5608 -- is [[abstract] tagged] [limited] private
5609 -- [ASPECT_SPECIFICATIONS];
5611 -- Note: TAGGED is not permitted in Ada 83 mode
5613 -- N_Private_Type_Declaration
5614 -- Sloc points to TYPE
5615 -- Defining_Identifier (Node1)
5616 -- Discriminant_Specifications (List4) (set to No_List if no
5617 -- discriminant part)
5618 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5619 -- Abstract_Present (Flag4)
5620 -- Tagged_Present (Flag15)
5621 -- Limited_Present (Flag17)
5623 ----------------------------------------
5624 -- 7.4 Private Extension Declaration --
5625 ----------------------------------------
5627 -- PRIVATE_EXTENSION_DECLARATION ::=
5628 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5629 -- [abstract] [limited | synchronized]
5630 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5631 -- with private [ASPECT_SPECIFICATIONS];
5633 -- Note: LIMITED, and private extension declarations are not allowed
5634 -- in Ada 83 mode.
5636 -- N_Private_Extension_Declaration
5637 -- Sloc points to TYPE
5638 -- Defining_Identifier (Node1)
5639 -- Uninitialized_Variable (Node3-Sem)
5640 -- Discriminant_Specifications (List4) (set to No_List if no
5641 -- discriminant part)
5642 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5643 -- Abstract_Present (Flag4)
5644 -- Limited_Present (Flag17)
5645 -- Synchronized_Present (Flag7)
5646 -- Subtype_Indication (Node5)
5647 -- Interface_List (List2) (set to No_List if none)
5649 ---------------------
5650 -- 8.4 Use Clause --
5651 ---------------------
5653 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5655 -----------------------------
5656 -- 8.4 Use Package Clause --
5657 -----------------------------
5659 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5661 -- N_Use_Package_Clause
5662 -- Sloc points to USE
5663 -- Names (List2)
5664 -- Next_Use_Clause (Node3-Sem)
5665 -- Hidden_By_Use_Clause (Elist4-Sem)
5667 --------------------------
5668 -- 8.4 Use Type Clause --
5669 --------------------------
5671 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5673 -- Note: use type clause is not permitted in Ada 83 mode
5675 -- Note: the ALL keyword can appear only in Ada 2012 mode
5677 -- N_Use_Type_Clause
5678 -- Sloc points to USE
5679 -- Subtype_Marks (List2)
5680 -- Next_Use_Clause (Node3-Sem)
5681 -- Hidden_By_Use_Clause (Elist4-Sem)
5682 -- Used_Operations (Elist5-Sem)
5683 -- All_Present (Flag15)
5685 -------------------------------
5686 -- 8.5 Renaming Declaration --
5687 -------------------------------
5689 -- RENAMING_DECLARATION ::=
5690 -- OBJECT_RENAMING_DECLARATION
5691 -- | EXCEPTION_RENAMING_DECLARATION
5692 -- | PACKAGE_RENAMING_DECLARATION
5693 -- | SUBPROGRAM_RENAMING_DECLARATION
5694 -- | GENERIC_RENAMING_DECLARATION
5696 --------------------------------------
5697 -- 8.5 Object Renaming Declaration --
5698 --------------------------------------
5700 -- OBJECT_RENAMING_DECLARATION ::=
5701 -- DEFINING_IDENTIFIER :
5702 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5703 -- [ASPECT_SPECIFICATIONS];
5704 -- | DEFINING_IDENTIFIER :
5705 -- ACCESS_DEFINITION renames object_NAME
5706 -- [ASPECT_SPECIFICATIONS];
5708 -- Note: Access_Definition is an optional field that gives support to
5709 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5710 -- Subtype_Indication field or else the Access_Definition field.
5712 -- N_Object_Renaming_Declaration
5713 -- Sloc points to first identifier
5714 -- Defining_Identifier (Node1)
5715 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5716 -- Subtype_Mark (Node4) (set to Empty if not present)
5717 -- Access_Definition (Node3) (set to Empty if not present)
5718 -- Name (Node2)
5719 -- Corresponding_Generic_Association (Node5-Sem)
5721 -----------------------------------------
5722 -- 8.5 Exception Renaming Declaration --
5723 -----------------------------------------
5725 -- EXCEPTION_RENAMING_DECLARATION ::=
5726 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5727 -- [ASPECT_SPECIFICATIONS];
5729 -- N_Exception_Renaming_Declaration
5730 -- Sloc points to first identifier
5731 -- Defining_Identifier (Node1)
5732 -- Name (Node2)
5734 ---------------------------------------
5735 -- 8.5 Package Renaming Declaration --
5736 ---------------------------------------
5738 -- PACKAGE_RENAMING_DECLARATION ::=
5739 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5740 -- [ASPECT_SPECIFICATIONS];
5742 -- N_Package_Renaming_Declaration
5743 -- Sloc points to PACKAGE
5744 -- Defining_Unit_Name (Node1)
5745 -- Name (Node2)
5746 -- Parent_Spec (Node4-Sem)
5748 ------------------------------------------
5749 -- 8.5 Subprogram Renaming Declaration --
5750 ------------------------------------------
5752 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5753 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5754 -- [ASPECT_SPECIFICATIONS];
5756 -- N_Subprogram_Renaming_Declaration
5757 -- Sloc points to RENAMES
5758 -- Specification (Node1)
5759 -- Name (Node2)
5760 -- Parent_Spec (Node4-Sem)
5761 -- Corresponding_Spec (Node5-Sem)
5762 -- Corresponding_Formal_Spec (Node3-Sem)
5763 -- From_Default (Flag6-Sem)
5765 -----------------------------------------
5766 -- 8.5.5 Generic Renaming Declaration --
5767 -----------------------------------------
5769 -- GENERIC_RENAMING_DECLARATION ::=
5770 -- generic package DEFINING_PROGRAM_UNIT_NAME
5771 -- renames generic_package_NAME
5772 -- [ASPECT_SPECIFICATIONS];
5773 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5774 -- renames generic_procedure_NAME
5775 -- [ASPECT_SPECIFICATIONS];
5776 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5777 -- renames generic_function_NAME
5778 -- [ASPECT_SPECIFICATIONS];
5780 -- N_Generic_Package_Renaming_Declaration
5781 -- Sloc points to GENERIC
5782 -- Defining_Unit_Name (Node1)
5783 -- Name (Node2)
5784 -- Parent_Spec (Node4-Sem)
5786 -- N_Generic_Procedure_Renaming_Declaration
5787 -- Sloc points to GENERIC
5788 -- Defining_Unit_Name (Node1)
5789 -- Name (Node2)
5790 -- Parent_Spec (Node4-Sem)
5792 -- N_Generic_Function_Renaming_Declaration
5793 -- Sloc points to GENERIC
5794 -- Defining_Unit_Name (Node1)
5795 -- Name (Node2)
5796 -- Parent_Spec (Node4-Sem)
5798 --------------------------------
5799 -- 9.1 Task Type Declaration --
5800 --------------------------------
5802 -- TASK_TYPE_DECLARATION ::=
5803 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5804 -- [ASPECT_SPECIFICATIONS]
5805 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5807 -- N_Task_Type_Declaration
5808 -- Sloc points to TASK
5809 -- Defining_Identifier (Node1)
5810 -- Discriminant_Specifications (List4) (set to No_List if no
5811 -- discriminant part)
5812 -- Interface_List (List2) (set to No_List if none)
5813 -- Task_Definition (Node3) (set to Empty if not present)
5814 -- Corresponding_Body (Node5-Sem)
5816 ----------------------------------
5817 -- 9.1 Single Task Declaration --
5818 ----------------------------------
5820 -- SINGLE_TASK_DECLARATION ::=
5821 -- task DEFINING_IDENTIFIER
5822 -- [ASPECT_SPECIFICATIONS]
5823 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5825 -- N_Single_Task_Declaration
5826 -- Sloc points to TASK
5827 -- Defining_Identifier (Node1)
5828 -- Interface_List (List2) (set to No_List if none)
5829 -- Task_Definition (Node3) (set to Empty if not present)
5831 --------------------------
5832 -- 9.1 Task Definition --
5833 --------------------------
5835 -- TASK_DEFINITION ::=
5836 -- {TASK_ITEM}
5837 -- [private
5838 -- {TASK_ITEM}]
5839 -- end [task_IDENTIFIER]
5841 -- Note: as a result of semantic analysis, the list of task items can
5842 -- include implicit type declarations resulting from entry families.
5844 -- N_Task_Definition
5845 -- Sloc points to first token of task definition
5846 -- Visible_Declarations (List2)
5847 -- Private_Declarations (List3) (set to No_List if no private part)
5848 -- End_Label (Node4)
5849 -- Has_Storage_Size_Pragma (Flag5-Sem)
5850 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5852 --------------------
5853 -- 9.1 Task Item --
5854 --------------------
5856 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5858 --------------------
5859 -- 9.1 Task Body --
5860 --------------------
5862 -- TASK_BODY ::=
5863 -- task body task_DEFINING_IDENTIFIER
5864 -- [ASPECT_SPECIFICATIONS]
5865 -- is
5866 -- DECLARATIVE_PART
5867 -- begin
5868 -- HANDLED_SEQUENCE_OF_STATEMENTS
5869 -- end [task_IDENTIFIER];
5871 -- Gigi restriction: This node never appears
5873 -- N_Task_Body
5874 -- Sloc points to TASK
5875 -- Defining_Identifier (Node1)
5876 -- Declarations (List2)
5877 -- Handled_Statement_Sequence (Node4)
5878 -- Is_Task_Master (Flag5-Sem)
5879 -- Activation_Chain_Entity (Node3-Sem)
5880 -- Corresponding_Spec (Node5-Sem)
5881 -- Was_Originally_Stub (Flag13-Sem)
5883 -------------------------------------
5884 -- 9.4 Protected Type Declaration --
5885 -------------------------------------
5887 -- PROTECTED_TYPE_DECLARATION ::=
5888 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5889 -- [ASPECT_SPECIFICATIONS]
5890 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5892 -- Note: protected type declarations are not permitted in Ada 83 mode
5894 -- N_Protected_Type_Declaration
5895 -- Sloc points to PROTECTED
5896 -- Defining_Identifier (Node1)
5897 -- Discriminant_Specifications (List4) (set to No_List if no
5898 -- discriminant part)
5899 -- Interface_List (List2) (set to No_List if none)
5900 -- Protected_Definition (Node3)
5901 -- Corresponding_Body (Node5-Sem)
5903 ---------------------------------------
5904 -- 9.4 Single Protected Declaration --
5905 ---------------------------------------
5907 -- SINGLE_PROTECTED_DECLARATION ::=
5908 -- protected DEFINING_IDENTIFIER
5909 -- [ASPECT_SPECIFICATIONS]
5910 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5912 -- Note: single protected declarations are not allowed in Ada 83 mode
5914 -- N_Single_Protected_Declaration
5915 -- Sloc points to PROTECTED
5916 -- Defining_Identifier (Node1)
5917 -- Interface_List (List2) (set to No_List if none)
5918 -- Protected_Definition (Node3)
5920 -------------------------------
5921 -- 9.4 Protected Definition --
5922 -------------------------------
5924 -- PROTECTED_DEFINITION ::=
5925 -- {PROTECTED_OPERATION_DECLARATION}
5926 -- [private
5927 -- {PROTECTED_ELEMENT_DECLARATION}]
5928 -- end [protected_IDENTIFIER]
5930 -- N_Protected_Definition
5931 -- Sloc points to first token of protected definition
5932 -- Visible_Declarations (List2)
5933 -- Private_Declarations (List3) (set to No_List if no private part)
5934 -- End_Label (Node4)
5936 ------------------------------------------
5937 -- 9.4 Protected Operation Declaration --
5938 ------------------------------------------
5940 -- PROTECTED_OPERATION_DECLARATION ::=
5941 -- SUBPROGRAM_DECLARATION
5942 -- | ENTRY_DECLARATION
5943 -- | REPRESENTATION_CLAUSE
5945 ----------------------------------------
5946 -- 9.4 Protected Element Declaration --
5947 ----------------------------------------
5949 -- PROTECTED_ELEMENT_DECLARATION ::=
5950 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5952 -------------------------
5953 -- 9.4 Protected Body --
5954 -------------------------
5956 -- PROTECTED_BODY ::=
5957 -- protected body DEFINING_IDENTIFIER
5958 -- [ASPECT_SPECIFICATIONS];
5959 -- is
5960 -- {PROTECTED_OPERATION_ITEM}
5961 -- end [protected_IDENTIFIER];
5963 -- Note: protected bodies are not allowed in Ada 83 mode
5965 -- Gigi restriction: This node never appears
5967 -- N_Protected_Body
5968 -- Sloc points to PROTECTED
5969 -- Defining_Identifier (Node1)
5970 -- Declarations (List2) protected operation items (and pragmas)
5971 -- End_Label (Node4)
5972 -- Corresponding_Spec (Node5-Sem)
5973 -- Was_Originally_Stub (Flag13-Sem)
5975 -----------------------------------
5976 -- 9.4 Protected Operation Item --
5977 -----------------------------------
5979 -- PROTECTED_OPERATION_ITEM ::=
5980 -- SUBPROGRAM_DECLARATION
5981 -- | SUBPROGRAM_BODY
5982 -- | ENTRY_BODY
5983 -- | REPRESENTATION_CLAUSE
5985 ------------------------------
5986 -- 9.5.2 Entry Declaration --
5987 ------------------------------
5989 -- ENTRY_DECLARATION ::=
5990 -- [[not] overriding]
5991 -- entry DEFINING_IDENTIFIER
5992 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5993 -- [ASPECT_SPECIFICATIONS];
5995 -- N_Entry_Declaration
5996 -- Sloc points to ENTRY
5997 -- Defining_Identifier (Node1)
5998 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5999 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6000 -- Corresponding_Body (Node5-Sem)
6001 -- Must_Override (Flag14) set if overriding indicator present
6002 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6004 -- Note: overriding indicator is an Ada 2005 feature
6006 -----------------------------
6007 -- 9.5.2 Accept statement --
6008 -----------------------------
6010 -- ACCEPT_STATEMENT ::=
6011 -- accept entry_DIRECT_NAME
6012 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6013 -- HANDLED_SEQUENCE_OF_STATEMENTS
6014 -- end [entry_IDENTIFIER]];
6016 -- Gigi restriction: This node never appears
6018 -- Note: there are no explicit declarations allowed in an accept
6019 -- statement. However, the implicit declarations for any statement
6020 -- identifiers (labels and block/loop identifiers) are declarations
6021 -- that belong logically to the accept statement, and that is why
6022 -- there is a Declarations field in this node.
6024 -- N_Accept_Statement
6025 -- Sloc points to ACCEPT
6026 -- Entry_Direct_Name (Node1)
6027 -- Entry_Index (Node5) (set to Empty if not present)
6028 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6029 -- Handled_Statement_Sequence (Node4)
6030 -- Declarations (List2) (set to No_List if no declarations)
6032 ------------------------
6033 -- 9.5.2 Entry Index --
6034 ------------------------
6036 -- ENTRY_INDEX ::= EXPRESSION
6038 -----------------------
6039 -- 9.5.2 Entry Body --
6040 -----------------------
6042 -- ENTRY_BODY ::=
6043 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6044 -- DECLARATIVE_PART
6045 -- begin
6046 -- HANDLED_SEQUENCE_OF_STATEMENTS
6047 -- end [entry_IDENTIFIER];
6049 -- ENTRY_BARRIER ::= when CONDITION
6051 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6052 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6053 -- too full (it would otherwise have too many fields)
6055 -- Gigi restriction: This node never appears
6057 -- N_Entry_Body
6058 -- Sloc points to ENTRY
6059 -- Defining_Identifier (Node1)
6060 -- Entry_Body_Formal_Part (Node5)
6061 -- Declarations (List2)
6062 -- Handled_Statement_Sequence (Node4)
6063 -- Activation_Chain_Entity (Node3-Sem)
6065 -----------------------------------
6066 -- 9.5.2 Entry Body Formal Part --
6067 -----------------------------------
6069 -- ENTRY_BODY_FORMAL_PART ::=
6070 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6072 -- Note that an entry body formal part node is present even if it is
6073 -- empty. This reflects the grammar, in which it is the components of
6074 -- the entry body formal part that are optional, not the entry body
6075 -- formal part itself. Also this means that the barrier condition
6076 -- always has somewhere to be stored.
6078 -- Gigi restriction: This node never appears
6080 -- N_Entry_Body_Formal_Part
6081 -- Sloc points to first token
6082 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6083 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6084 -- Condition (Node1) from entry barrier of entry body
6086 --------------------------
6087 -- 9.5.2 Entry Barrier --
6088 --------------------------
6090 -- ENTRY_BARRIER ::= when CONDITION
6092 --------------------------------------
6093 -- 9.5.2 Entry Index Specification --
6094 --------------------------------------
6096 -- ENTRY_INDEX_SPECIFICATION ::=
6097 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6099 -- Gigi restriction: This node never appears
6101 -- N_Entry_Index_Specification
6102 -- Sloc points to FOR
6103 -- Defining_Identifier (Node1)
6104 -- Discrete_Subtype_Definition (Node4)
6106 ---------------------------------
6107 -- 9.5.3 Entry Call Statement --
6108 ---------------------------------
6110 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6112 -- The parser may generate a procedure call for this construct. The
6113 -- semantic pass must correct this misidentification where needed.
6115 -- Gigi restriction: This node never appears
6117 -- N_Entry_Call_Statement
6118 -- Sloc points to first token of name
6119 -- Name (Node2)
6120 -- Parameter_Associations (List3) (set to No_List if no
6121 -- actual parameter part)
6122 -- First_Named_Actual (Node4-Sem)
6124 ------------------------------
6125 -- 9.5.4 Requeue Statement --
6126 ------------------------------
6128 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6130 -- Note: requeue statements are not permitted in Ada 83 mode
6132 -- Gigi restriction: This node never appears
6134 -- N_Requeue_Statement
6135 -- Sloc points to REQUEUE
6136 -- Name (Node2)
6137 -- Abort_Present (Flag15)
6139 --------------------------
6140 -- 9.6 Delay Statement --
6141 --------------------------
6143 -- DELAY_STATEMENT ::=
6144 -- DELAY_UNTIL_STATEMENT
6145 -- | DELAY_RELATIVE_STATEMENT
6147 --------------------------------
6148 -- 9.6 Delay Until Statement --
6149 --------------------------------
6151 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6153 -- Note: delay until statements are not permitted in Ada 83 mode
6155 -- Gigi restriction: This node never appears
6157 -- N_Delay_Until_Statement
6158 -- Sloc points to DELAY
6159 -- Expression (Node3)
6161 -----------------------------------
6162 -- 9.6 Delay Relative Statement --
6163 -----------------------------------
6165 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6167 -- Gigi restriction: This node never appears
6169 -- N_Delay_Relative_Statement
6170 -- Sloc points to DELAY
6171 -- Expression (Node3)
6173 ---------------------------
6174 -- 9.7 Select Statement --
6175 ---------------------------
6177 -- SELECT_STATEMENT ::=
6178 -- SELECTIVE_ACCEPT
6179 -- | TIMED_ENTRY_CALL
6180 -- | CONDITIONAL_ENTRY_CALL
6181 -- | ASYNCHRONOUS_SELECT
6183 -----------------------------
6184 -- 9.7.1 Selective Accept --
6185 -----------------------------
6187 -- SELECTIVE_ACCEPT ::=
6188 -- select
6189 -- [GUARD]
6190 -- SELECT_ALTERNATIVE
6191 -- {or
6192 -- [GUARD]
6193 -- SELECT_ALTERNATIVE}
6194 -- [else
6195 -- SEQUENCE_OF_STATEMENTS]
6196 -- end select;
6198 -- Gigi restriction: This node never appears
6200 -- Note: the guard expression, if present, appears in the node for
6201 -- the select alternative.
6203 -- N_Selective_Accept
6204 -- Sloc points to SELECT
6205 -- Select_Alternatives (List1)
6206 -- Else_Statements (List4) (set to No_List if no else part)
6208 ------------------
6209 -- 9.7.1 Guard --
6210 ------------------
6212 -- GUARD ::= when CONDITION =>
6214 -- As noted above, the CONDITION that is part of a GUARD is included
6215 -- in the node for the select alternative for convenience.
6217 -------------------------------
6218 -- 9.7.1 Select Alternative --
6219 -------------------------------
6221 -- SELECT_ALTERNATIVE ::=
6222 -- ACCEPT_ALTERNATIVE
6223 -- | DELAY_ALTERNATIVE
6224 -- | TERMINATE_ALTERNATIVE
6226 -------------------------------
6227 -- 9.7.1 Accept Alternative --
6228 -------------------------------
6230 -- ACCEPT_ALTERNATIVE ::=
6231 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6233 -- Gigi restriction: This node never appears
6235 -- N_Accept_Alternative
6236 -- Sloc points to ACCEPT
6237 -- Accept_Statement (Node2)
6238 -- Condition (Node1) from the guard (set to Empty if no guard present)
6239 -- Statements (List3) (set to Empty_List if no statements)
6240 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6241 -- Accept_Handler_Records (List5-Sem)
6243 ------------------------------
6244 -- 9.7.1 Delay Alternative --
6245 ------------------------------
6247 -- DELAY_ALTERNATIVE ::=
6248 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6250 -- Gigi restriction: This node never appears
6252 -- N_Delay_Alternative
6253 -- Sloc points to DELAY
6254 -- Delay_Statement (Node2)
6255 -- Condition (Node1) from the guard (set to Empty if no guard present)
6256 -- Statements (List3) (set to Empty_List if no statements)
6257 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6259 ----------------------------------
6260 -- 9.7.1 Terminate Alternative --
6261 ----------------------------------
6263 -- TERMINATE_ALTERNATIVE ::= terminate;
6265 -- Gigi restriction: This node never appears
6267 -- N_Terminate_Alternative
6268 -- Sloc points to TERMINATE
6269 -- Condition (Node1) from the guard (set to Empty if no guard present)
6270 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6271 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6273 -----------------------------
6274 -- 9.7.2 Timed Entry Call --
6275 -----------------------------
6277 -- TIMED_ENTRY_CALL ::=
6278 -- select
6279 -- ENTRY_CALL_ALTERNATIVE
6280 -- or
6281 -- DELAY_ALTERNATIVE
6282 -- end select;
6284 -- Gigi restriction: This node never appears
6286 -- N_Timed_Entry_Call
6287 -- Sloc points to SELECT
6288 -- Entry_Call_Alternative (Node1)
6289 -- Delay_Alternative (Node4)
6291 -----------------------------------
6292 -- 9.7.2 Entry Call Alternative --
6293 -----------------------------------
6295 -- ENTRY_CALL_ALTERNATIVE ::=
6296 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6298 -- PROCEDURE_OR_ENTRY_CALL ::=
6299 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6301 -- Gigi restriction: This node never appears
6303 -- N_Entry_Call_Alternative
6304 -- Sloc points to first token of entry call statement
6305 -- Entry_Call_Statement (Node1)
6306 -- Statements (List3) (set to Empty_List if no statements)
6307 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6309 -----------------------------------
6310 -- 9.7.3 Conditional Entry Call --
6311 -----------------------------------
6313 -- CONDITIONAL_ENTRY_CALL ::=
6314 -- select
6315 -- ENTRY_CALL_ALTERNATIVE
6316 -- else
6317 -- SEQUENCE_OF_STATEMENTS
6318 -- end select;
6320 -- Gigi restriction: This node never appears
6322 -- N_Conditional_Entry_Call
6323 -- Sloc points to SELECT
6324 -- Entry_Call_Alternative (Node1)
6325 -- Else_Statements (List4)
6327 --------------------------------
6328 -- 9.7.4 Asynchronous Select --
6329 --------------------------------
6331 -- ASYNCHRONOUS_SELECT ::=
6332 -- select
6333 -- TRIGGERING_ALTERNATIVE
6334 -- then abort
6335 -- ABORTABLE_PART
6336 -- end select;
6338 -- Note: asynchronous select is not permitted in Ada 83 mode
6340 -- Gigi restriction: This node never appears
6342 -- N_Asynchronous_Select
6343 -- Sloc points to SELECT
6344 -- Triggering_Alternative (Node1)
6345 -- Abortable_Part (Node2)
6347 -----------------------------------
6348 -- 9.7.4 Triggering Alternative --
6349 -----------------------------------
6351 -- TRIGGERING_ALTERNATIVE ::=
6352 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6354 -- Gigi restriction: This node never appears
6356 -- N_Triggering_Alternative
6357 -- Sloc points to first token of triggering statement
6358 -- Triggering_Statement (Node1)
6359 -- Statements (List3) (set to Empty_List if no statements)
6360 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6362 ---------------------------------
6363 -- 9.7.4 Triggering Statement --
6364 ---------------------------------
6366 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6368 ---------------------------
6369 -- 9.7.4 Abortable Part --
6370 ---------------------------
6372 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6374 -- Gigi restriction: This node never appears
6376 -- N_Abortable_Part
6377 -- Sloc points to ABORT
6378 -- Statements (List3)
6380 --------------------------
6381 -- 9.8 Abort Statement --
6382 --------------------------
6384 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6386 -- Gigi restriction: This node never appears
6388 -- N_Abort_Statement
6389 -- Sloc points to ABORT
6390 -- Names (List2)
6392 -------------------------
6393 -- 10.1.1 Compilation --
6394 -------------------------
6396 -- COMPILATION ::= {COMPILATION_UNIT}
6398 -- There is no explicit node in the tree for a compilation, since in
6399 -- general the compiler is processing only a single compilation unit
6400 -- at a time. It is possible to parse multiple units in syntax check
6401 -- only mode, but the trees are discarded in that case.
6403 ------------------------------
6404 -- 10.1.1 Compilation Unit --
6405 ------------------------------
6407 -- COMPILATION_UNIT ::=
6408 -- CONTEXT_CLAUSE LIBRARY_ITEM
6409 -- | CONTEXT_CLAUSE SUBUNIT
6411 -- The N_Compilation_Unit node itself represents the above syntax.
6412 -- However, there are two additional items not reflected in the above
6413 -- syntax. First we have the global declarations that are added by the
6414 -- code generator. These are outer level declarations (so they cannot
6415 -- be represented as being inside the units). An example is the wrapper
6416 -- subprograms that are created to do ABE checking. As always a list of
6417 -- declarations can contain actions as well (i.e. statements), and such
6418 -- statements are executed as part of the elaboration of the unit. Note
6419 -- that all such declarations are elaborated before the library unit.
6421 -- Similarly, certain actions need to be elaborated at the completion
6422 -- of elaboration of the library unit (notably the statement that sets
6423 -- the Boolean flag indicating that elaboration is complete).
6425 -- The third item not reflected in the syntax is pragmas that appear
6426 -- after the compilation unit. As always pragmas are a problem since
6427 -- they are not part of the formal syntax, but can be stuck into the
6428 -- source following a set of ad hoc rules, and we have to find an ad
6429 -- hoc way of sticking them into the tree. For pragmas that appear
6430 -- before the library unit, we just consider them to be part of the
6431 -- context clause, and pragmas can appear in the Context_Items list
6432 -- of the compilation unit. However, pragmas can also appear after
6433 -- the library item.
6435 -- To deal with all these problems, we create an auxiliary node for
6436 -- a compilation unit, referenced from the N_Compilation_Unit node,
6437 -- that contains these items.
6439 -- N_Compilation_Unit
6440 -- Sloc points to first token of defining unit name
6441 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6442 -- Context_Items (List1) context items and pragmas preceding unit
6443 -- Private_Present (Flag15) set if library unit has private keyword
6444 -- Unit (Node2) library item or subunit
6445 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6446 -- Has_No_Elaboration_Code (Flag17-Sem)
6447 -- Body_Required (Flag13-Sem) set for spec if body is required
6448 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6449 -- Context_Pending (Flag16-Sem)
6450 -- First_Inlined_Subprogram (Node3-Sem)
6451 -- Has_Pragma_Suppress_All (Flag14-Sem)
6453 -- N_Compilation_Unit_Aux
6454 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6455 -- Declarations (List2) (set to No_List if no global declarations)
6456 -- Actions (List1) (set to No_List if no actions)
6457 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6458 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6459 -- Default_Storage_Pool (Node3-Sem)
6461 --------------------------
6462 -- 10.1.1 Library Item --
6463 --------------------------
6465 -- LIBRARY_ITEM ::=
6466 -- [private] LIBRARY_UNIT_DECLARATION
6467 -- | LIBRARY_UNIT_BODY
6468 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6470 -- Note: PRIVATE is not allowed in Ada 83 mode
6472 -- There is no explicit node in the tree for library item, instead
6473 -- the declaration or body, and the flag for private if present,
6474 -- appear in the N_Compilation_Unit node.
6476 --------------------------------------
6477 -- 10.1.1 Library Unit Declaration --
6478 --------------------------------------
6480 -- LIBRARY_UNIT_DECLARATION ::=
6481 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6482 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6484 -----------------------------------------------
6485 -- 10.1.1 Library Unit Renaming Declaration --
6486 -----------------------------------------------
6488 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6489 -- PACKAGE_RENAMING_DECLARATION
6490 -- | GENERIC_RENAMING_DECLARATION
6491 -- | SUBPROGRAM_RENAMING_DECLARATION
6493 -------------------------------
6494 -- 10.1.1 Library unit body --
6495 -------------------------------
6497 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6499 ------------------------------
6500 -- 10.1.1 Parent Unit Name --
6501 ------------------------------
6503 -- PARENT_UNIT_NAME ::= NAME
6505 ----------------------------
6506 -- 10.1.2 Context clause --
6507 ----------------------------
6509 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6511 -- The context clause can include pragmas, and any pragmas that appear
6512 -- before the context clause proper (i.e. all configuration pragmas,
6513 -- also appear at the front of this list).
6515 --------------------------
6516 -- 10.1.2 Context_Item --
6517 --------------------------
6519 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6521 -------------------------
6522 -- 10.1.2 With clause --
6523 -------------------------
6525 -- WITH_CLAUSE ::=
6526 -- with library_unit_NAME {,library_unit_NAME};
6528 -- A separate With clause is built for each name, so that we have
6529 -- a Corresponding_Spec field for each with'ed spec. The flags
6530 -- First_Name and Last_Name are used to reconstruct the exact
6531 -- source form. When a list of names appears in one with clause,
6532 -- the first name in the list has First_Name set, and the last
6533 -- has Last_Name set. If the with clause has only one name, then
6534 -- both of the flags First_Name and Last_Name are set in this name.
6536 -- Note: in the case of implicit with's that are installed by the
6537 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6538 -- set to Standard_Location, but it is incorrect to test the Sloc
6539 -- to find out if a with clause is implicit, test the flag instead.
6541 -- N_With_Clause
6542 -- Sloc points to first token of library unit name
6543 -- Withed_Body (Node1-Sem)
6544 -- Name (Node2)
6545 -- Next_Implicit_With (Node3-Sem)
6546 -- Library_Unit (Node4-Sem)
6547 -- Corresponding_Spec (Node5-Sem)
6548 -- First_Name (Flag5) (set to True if first name or only one name)
6549 -- Last_Name (Flag6) (set to True if last name or only one name)
6550 -- Context_Installed (Flag13-Sem)
6551 -- Elaborate_Present (Flag4-Sem)
6552 -- Elaborate_All_Present (Flag14-Sem)
6553 -- Elaborate_All_Desirable (Flag9-Sem)
6554 -- Elaborate_Desirable (Flag11-Sem)
6555 -- Private_Present (Flag15) set if with_clause has private keyword
6556 -- Implicit_With (Flag16-Sem)
6557 -- Implicit_With_From_Instantiation (Flag12-Sem)
6558 -- Limited_Present (Flag17) set if LIMITED is present
6559 -- Limited_View_Installed (Flag18-Sem)
6560 -- Unreferenced_In_Spec (Flag7-Sem)
6561 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6563 -- Note: Limited_Present and Limited_View_Installed are used to support
6564 -- the implementation of Ada 2005 (AI-50217).
6566 -- Similarly, Private_Present is used to support the implementation of
6567 -- Ada 2005 (AI-50262).
6569 -- Note: if the WITH clause refers to a standard library unit, then a
6570 -- limited with clause is changed into a normal with clause, because we
6571 -- are not prepared to deal with limited with in the context of Rtsfind.
6572 -- So in this case, the Limited_Present flag will be False in the final
6573 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6574 -- ASIS the flag will remain set in this situation.
6576 ----------------------
6577 -- With_Type clause --
6578 ----------------------
6580 -- This is a GNAT extension, used to implement mutually recursive
6581 -- types declared in different packages.
6583 -- Note: this is now obsolete. The functionality of this construct
6584 -- is now implemented by the Ada 2005 limited_with_clause.
6586 ---------------------
6587 -- 10.2 Body stub --
6588 ---------------------
6590 -- BODY_STUB ::=
6591 -- SUBPROGRAM_BODY_STUB
6592 -- | PACKAGE_BODY_STUB
6593 -- | TASK_BODY_STUB
6594 -- | PROTECTED_BODY_STUB
6596 ----------------------------------
6597 -- 10.1.3 Subprogram Body Stub --
6598 ----------------------------------
6600 -- SUBPROGRAM_BODY_STUB ::=
6601 -- SUBPROGRAM_SPECIFICATION is separate
6602 -- [ASPECT_SPECIFICATION];
6604 -- N_Subprogram_Body_Stub
6605 -- Sloc points to FUNCTION or PROCEDURE
6606 -- Specification (Node1)
6607 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6608 -- Library_Unit (Node4-Sem) points to the subunit
6609 -- Corresponding_Body (Node5-Sem)
6611 -------------------------------
6612 -- 10.1.3 Package Body Stub --
6613 -------------------------------
6615 -- PACKAGE_BODY_STUB ::=
6616 -- package body DEFINING_IDENTIFIER is separate
6617 -- [ASPECT_SPECIFICATION];
6619 -- N_Package_Body_Stub
6620 -- Sloc points to PACKAGE
6621 -- Defining_Identifier (Node1)
6622 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6623 -- Library_Unit (Node4-Sem) points to the subunit
6624 -- Corresponding_Body (Node5-Sem)
6626 ----------------------------
6627 -- 10.1.3 Task Body Stub --
6628 ----------------------------
6630 -- TASK_BODY_STUB ::=
6631 -- task body DEFINING_IDENTIFIER is separate
6632 -- [ASPECT_SPECIFICATION];
6634 -- N_Task_Body_Stub
6635 -- Sloc points to TASK
6636 -- Defining_Identifier (Node1)
6637 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6638 -- Library_Unit (Node4-Sem) points to the subunit
6639 -- Corresponding_Body (Node5-Sem)
6641 ---------------------------------
6642 -- 10.1.3 Protected Body Stub --
6643 ---------------------------------
6645 -- PROTECTED_BODY_STUB ::=
6646 -- protected body DEFINING_IDENTIFIER is separate
6647 -- [ASPECT_SPECIFICATION];
6649 -- Note: protected body stubs are not allowed in Ada 83 mode
6651 -- N_Protected_Body_Stub
6652 -- Sloc points to PROTECTED
6653 -- Defining_Identifier (Node1)
6654 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6655 -- Library_Unit (Node4-Sem) points to the subunit
6656 -- Corresponding_Body (Node5-Sem)
6658 ---------------------
6659 -- 10.1.3 Subunit --
6660 ---------------------
6662 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6664 -- N_Subunit
6665 -- Sloc points to SEPARATE
6666 -- Name (Node2) is the name of the parent unit
6667 -- Proper_Body (Node1) is the subunit body
6668 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6670 ---------------------------------
6671 -- 11.1 Exception Declaration --
6672 ---------------------------------
6674 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6675 -- [ASPECT_SPECIFICATIONS];
6677 -- For consistency with object declarations etc., the parser converts
6678 -- the case of multiple identifiers being declared to a series of
6679 -- declarations in which the expression is copied, using the More_Ids
6680 -- and Prev_Ids flags to remember the source form as described in the
6681 -- section on "Handling of Defining Identifier Lists".
6683 -- N_Exception_Declaration
6684 -- Sloc points to EXCEPTION
6685 -- Defining_Identifier (Node1)
6686 -- Expression (Node3-Sem)
6687 -- Renaming_Exception (Node2-Sem)
6688 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6689 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6691 ------------------------------------------
6692 -- 11.2 Handled Sequence Of Statements --
6693 ------------------------------------------
6695 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6696 -- SEQUENCE_OF_STATEMENTS
6697 -- [exception
6698 -- EXCEPTION_HANDLER
6699 -- {EXCEPTION_HANDLER}]
6700 -- [at end
6701 -- cleanup_procedure_call (param, param, param, ...);]
6703 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6704 -- used only internally currently, but is considered to be syntactic.
6705 -- At the moment, the only cleanup action allowed is a single call to
6706 -- a parameterless procedure, and the Identifier field of the node is
6707 -- the procedure to be called. The cleanup action occurs whenever the
6708 -- sequence of statements is left for any reason. The possible reasons
6709 -- are:
6710 -- 1. reaching the end of the sequence
6711 -- 2. exit, return, or goto
6712 -- 3. exception or abort
6713 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6714 -- entirely in the back end. In this case, a handled sequence of
6715 -- statements with an "at end" cannot also have exception handlers.
6716 -- For other back ends, such as gcc with front-end SJLJ, the
6717 -- implementation is split between the front end and back end; the front
6718 -- end implements 3, and the back end implements 1 and 2. In this case,
6719 -- if there is an "at end", the front end inserts the appropriate
6720 -- exception handler, and this handler takes precedence over "at end"
6721 -- in case of exception.
6723 -- The inserted exception handler is of the form:
6725 -- when all others =>
6726 -- cleanup;
6727 -- raise;
6729 -- where cleanup is the procedure to be called. The reason we do this is
6730 -- so that the front end can handle the necessary entries in the
6731 -- exception tables, and other exception handler actions required as
6732 -- part of the normal handling for exception handlers.
6734 -- The AT END cleanup handler protects only the sequence of statements
6735 -- (not the associated declarations of the parent), just like exception
6736 -- handlers. The big difference is that the cleanup procedure is called
6737 -- on either a normal or an abnormal exit from the statement sequence.
6739 -- Note: the list of Exception_Handlers can contain pragmas as well
6740 -- as actual handlers. In practice these pragmas can only occur at
6741 -- the start of the list, since any pragmas occurring later on will
6742 -- be included in the statement list of the corresponding handler.
6744 -- Note: although in the Ada syntax, the sequence of statements in
6745 -- a handled sequence of statements can only contain statements, we
6746 -- allow free mixing of declarations and statements in the resulting
6747 -- expanded tree. This is for example used to deal with the case of
6748 -- a cleanup procedure that must handle declarations as well as the
6749 -- statements of a block.
6751 -- Note: the cleanup_procedure_call does not go through the common
6752 -- processing for calls, which in particular means that it will not be
6753 -- automatically inlined in all cases, even though the procedure to be
6754 -- called is marked inline. More specifically, if the procedure comes
6755 -- from another unit than the main source unit, for example a run-time
6756 -- unit, then it needs to be manually added to the list of bodies to be
6757 -- inlined by invoking Add_Inlined_Body on it.
6759 -- N_Handled_Sequence_Of_Statements
6760 -- Sloc points to first token of first statement
6761 -- Statements (List3)
6762 -- End_Label (Node4) (set to Empty if expander generated)
6763 -- Exception_Handlers (List5) (set to No_List if none present)
6764 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6765 -- First_Real_Statement (Node2-Sem)
6767 -- Note: the parent always contains a Declarations field which contains
6768 -- declarations associated with the handled sequence of statements. This
6769 -- is true even in the case of an accept statement (see description of
6770 -- the N_Accept_Statement node).
6772 -- End_Label refers to the containing construct
6774 -----------------------------
6775 -- 11.2 Exception Handler --
6776 -----------------------------
6778 -- EXCEPTION_HANDLER ::=
6779 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6780 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6781 -- SEQUENCE_OF_STATEMENTS
6783 -- Note: choice parameter specification is not allowed in Ada 83 mode
6785 -- N_Exception_Handler
6786 -- Sloc points to WHEN
6787 -- Choice_Parameter (Node2) (set to Empty if not present)
6788 -- Exception_Choices (List4)
6789 -- Statements (List3)
6790 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6791 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6792 -- Local_Raise_Not_OK (Flag7-Sem)
6793 -- Has_Local_Raise (Flag8-Sem)
6795 ------------------------------------------
6796 -- 11.2 Choice parameter specification --
6797 ------------------------------------------
6799 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6801 ----------------------------
6802 -- 11.2 Exception Choice --
6803 ----------------------------
6805 -- EXCEPTION_CHOICE ::= exception_NAME | others
6807 -- Except in the case of OTHERS, no explicit node appears in the tree
6808 -- for exception choice. Instead the exception name appears directly.
6809 -- An OTHERS choice is represented by a N_Others_Choice node (see
6810 -- section 3.8.1.
6812 -- Note: for the exception choice created for an at end handler, the
6813 -- exception choice is an N_Others_Choice node with All_Others set.
6815 ---------------------------
6816 -- 11.3 Raise Statement --
6817 ---------------------------
6819 -- RAISE_STATEMENT ::= raise [exception_NAME];
6821 -- In Ada 2005, we have
6823 -- RAISE_STATEMENT ::=
6824 -- raise; | raise exception_NAME [with string_EXPRESSION];
6826 -- N_Raise_Statement
6827 -- Sloc points to RAISE
6828 -- Name (Node2) (set to Empty if no exception name present)
6829 -- Expression (Node3) (set to Empty if no expression present)
6830 -- From_At_End (Flag4-Sem)
6832 ----------------------------
6833 -- 11.3 Raise Expression --
6834 ----------------------------
6836 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6838 -- N_Raise_Expression
6839 -- Sloc points to RAISE
6840 -- Name (Node2) (always present)
6841 -- Expression (Node3) (set to Empty if no expression present)
6842 -- Convert_To_Return_False (Flag13-Sem)
6843 -- plus fields for expression
6845 -------------------------------
6846 -- 12.1 Generic Declaration --
6847 -------------------------------
6849 -- GENERIC_DECLARATION ::=
6850 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6852 ------------------------------------------
6853 -- 12.1 Generic Subprogram Declaration --
6854 ------------------------------------------
6856 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6857 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6858 -- [ASPECT_SPECIFICATIONS];
6860 -- Note: Generic_Formal_Declarations can include pragmas
6862 -- N_Generic_Subprogram_Declaration
6863 -- Sloc points to GENERIC
6864 -- Specification (Node1) subprogram specification
6865 -- Corresponding_Body (Node5-Sem)
6866 -- Generic_Formal_Declarations (List2) from generic formal part
6867 -- Parent_Spec (Node4-Sem)
6869 ---------------------------------------
6870 -- 12.1 Generic Package Declaration --
6871 ---------------------------------------
6873 -- GENERIC_PACKAGE_DECLARATION ::=
6874 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6875 -- [ASPECT_SPECIFICATIONS];
6877 -- Note: when we do generics right, the Activation_Chain_Entity entry
6878 -- for this node can be removed (since the expander won't see generic
6879 -- units any more)???.
6881 -- Note: Generic_Formal_Declarations can include pragmas
6883 -- N_Generic_Package_Declaration
6884 -- Sloc points to GENERIC
6885 -- Specification (Node1) package specification
6886 -- Corresponding_Body (Node5-Sem)
6887 -- Generic_Formal_Declarations (List2) from generic formal part
6888 -- Parent_Spec (Node4-Sem)
6889 -- Activation_Chain_Entity (Node3-Sem)
6891 -------------------------------
6892 -- 12.1 Generic Formal Part --
6893 -------------------------------
6895 -- GENERIC_FORMAL_PART ::=
6896 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6898 ------------------------------------------------
6899 -- 12.1 Generic Formal Parameter Declaration --
6900 ------------------------------------------------
6902 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6903 -- FORMAL_OBJECT_DECLARATION
6904 -- | FORMAL_TYPE_DECLARATION
6905 -- | FORMAL_SUBPROGRAM_DECLARATION
6906 -- | FORMAL_PACKAGE_DECLARATION
6908 ---------------------------------
6909 -- 12.3 Generic Instantiation --
6910 ---------------------------------
6912 -- GENERIC_INSTANTIATION ::=
6913 -- package DEFINING_PROGRAM_UNIT_NAME is
6914 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6915 -- [ASPECT_SPECIFICATIONS];
6916 -- | [[not] overriding]
6917 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6918 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6919 -- [ASPECT_SPECIFICATIONS];
6920 -- | [[not] overriding]
6921 -- function DEFINING_DESIGNATOR is
6922 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6923 -- [ASPECT_SPECIFICATIONS];
6925 -- N_Package_Instantiation
6926 -- Sloc points to PACKAGE
6927 -- Defining_Unit_Name (Node1)
6928 -- Name (Node2)
6929 -- Generic_Associations (List3) (set to No_List if no
6930 -- generic actual part)
6931 -- Parent_Spec (Node4-Sem)
6932 -- Instance_Spec (Node5-Sem)
6933 -- ABE_Is_Certain (Flag18-Sem)
6935 -- N_Procedure_Instantiation
6936 -- Sloc points to PROCEDURE
6937 -- Defining_Unit_Name (Node1)
6938 -- Name (Node2)
6939 -- Parent_Spec (Node4-Sem)
6940 -- Generic_Associations (List3) (set to No_List if no
6941 -- generic actual part)
6942 -- Instance_Spec (Node5-Sem)
6943 -- Must_Override (Flag14) set if overriding indicator present
6944 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6945 -- ABE_Is_Certain (Flag18-Sem)
6947 -- N_Function_Instantiation
6948 -- Sloc points to FUNCTION
6949 -- Defining_Unit_Name (Node1)
6950 -- Name (Node2)
6951 -- Generic_Associations (List3) (set to No_List if no
6952 -- generic actual part)
6953 -- Parent_Spec (Node4-Sem)
6954 -- Instance_Spec (Node5-Sem)
6955 -- Must_Override (Flag14) set if overriding indicator present
6956 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6957 -- ABE_Is_Certain (Flag18-Sem)
6959 -- Note: overriding indicator is an Ada 2005 feature
6961 -------------------------------
6962 -- 12.3 Generic Actual Part --
6963 -------------------------------
6965 -- GENERIC_ACTUAL_PART ::=
6966 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6968 -------------------------------
6969 -- 12.3 Generic Association --
6970 -------------------------------
6972 -- GENERIC_ASSOCIATION ::=
6973 -- [generic_formal_parameter_SELECTOR_NAME =>]
6975 -- Note: unlike the procedure call case, a generic association node
6976 -- is generated for every association, even if no formal parameter
6977 -- selector name is present. In this case the parser will leave the
6978 -- Selector_Name field set to Empty, to be filled in later by the
6979 -- semantic pass.
6981 -- In Ada 2005, a formal may be associated with a box, if the
6982 -- association is part of the list of actuals for a formal package.
6983 -- If the association is given by OTHERS => <>, the association is
6984 -- an N_Others_Choice.
6986 -- N_Generic_Association
6987 -- Sloc points to first token of generic association
6988 -- Selector_Name (Node2) (set to Empty if no formal
6989 -- parameter selector name)
6990 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6991 -- Box_Present (Flag15) (for formal_package associations with a box)
6993 ---------------------------------------------
6994 -- 12.3 Explicit Generic Actual Parameter --
6995 ---------------------------------------------
6997 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6998 -- EXPRESSION | variable_NAME | subprogram_NAME
6999 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7001 -------------------------------------
7002 -- 12.4 Formal Object Declaration --
7003 -------------------------------------
7005 -- FORMAL_OBJECT_DECLARATION ::=
7006 -- DEFINING_IDENTIFIER_LIST :
7007 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7008 -- [ASPECT_SPECIFICATIONS];
7009 -- | DEFINING_IDENTIFIER_LIST :
7010 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7011 -- [ASPECT_SPECIFICATIONS];
7013 -- Although the syntax allows multiple identifiers in the list, the
7014 -- semantics is as though successive declarations were given with
7015 -- identical type definition and expression components. To simplify
7016 -- semantic processing, the parser represents a multiple declaration
7017 -- case as a sequence of single declarations, using the More_Ids and
7018 -- Prev_Ids flags to preserve the original source form as described
7019 -- in the section on "Handling of Defining Identifier Lists".
7021 -- N_Formal_Object_Declaration
7022 -- Sloc points to first identifier
7023 -- Defining_Identifier (Node1)
7024 -- In_Present (Flag15)
7025 -- Out_Present (Flag17)
7026 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7027 -- Subtype_Mark (Node4) (set to Empty if not present)
7028 -- Access_Definition (Node3) (set to Empty if not present)
7029 -- Default_Expression (Node5) (set to Empty if no default expression)
7030 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7031 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7033 -----------------------------------
7034 -- 12.5 Formal Type Declaration --
7035 -----------------------------------
7037 -- FORMAL_TYPE_DECLARATION ::=
7038 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7039 -- is FORMAL_TYPE_DEFINITION
7040 -- [ASPECT_SPECIFICATIONS];
7041 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7043 -- N_Formal_Type_Declaration
7044 -- Sloc points to TYPE
7045 -- Defining_Identifier (Node1)
7046 -- Formal_Type_Definition (Node3)
7047 -- Discriminant_Specifications (List4) (set to No_List if no
7048 -- discriminant part)
7049 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7051 ----------------------------------
7052 -- 12.5 Formal type definition --
7053 ----------------------------------
7055 -- FORMAL_TYPE_DEFINITION ::=
7056 -- FORMAL_PRIVATE_TYPE_DEFINITION
7057 -- | FORMAL_DERIVED_TYPE_DEFINITION
7058 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7059 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7060 -- | FORMAL_MODULAR_TYPE_DEFINITION
7061 -- | FORMAL_FLOATING_POINT_DEFINITION
7062 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7063 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7064 -- | FORMAL_ARRAY_TYPE_DEFINITION
7065 -- | FORMAL_ACCESS_TYPE_DEFINITION
7066 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7067 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7069 -- The Ada 2012 syntax introduces two new non-terminals:
7070 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7071 -- the latter category. Here we introduce an incomplete type definition
7072 -- in order to preserve as much as possible the existing structure.
7074 ---------------------------------------------
7075 -- 12.5.1 Formal Private Type Definition --
7076 ---------------------------------------------
7078 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7079 -- [[abstract] tagged] [limited] private
7081 -- Note: TAGGED is not allowed in Ada 83 mode
7083 -- N_Formal_Private_Type_Definition
7084 -- Sloc points to PRIVATE
7085 -- Uninitialized_Variable (Node3-Sem)
7086 -- Abstract_Present (Flag4)
7087 -- Tagged_Present (Flag15)
7088 -- Limited_Present (Flag17)
7090 --------------------------------------------
7091 -- 12.5.1 Formal Derived Type Definition --
7092 --------------------------------------------
7094 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7095 -- [abstract] [limited | synchronized]
7096 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7097 -- Note: this construct is not allowed in Ada 83 mode
7099 -- N_Formal_Derived_Type_Definition
7100 -- Sloc points to NEW
7101 -- Subtype_Mark (Node4)
7102 -- Private_Present (Flag15)
7103 -- Abstract_Present (Flag4)
7104 -- Limited_Present (Flag17)
7105 -- Synchronized_Present (Flag7)
7106 -- Interface_List (List2) (set to No_List if none)
7108 -----------------------------------------------
7109 -- 12.5.1 Formal Incomplete Type Definition --
7110 -----------------------------------------------
7112 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7114 -- N_Formal_Incomplete_Type_Definition
7115 -- Sloc points to identifier of parent
7116 -- Tagged_Present (Flag15)
7118 ---------------------------------------------
7119 -- 12.5.2 Formal Discrete Type Definition --
7120 ---------------------------------------------
7122 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7124 -- N_Formal_Discrete_Type_Definition
7125 -- Sloc points to (
7127 ---------------------------------------------------
7128 -- 12.5.2 Formal Signed Integer Type Definition --
7129 ---------------------------------------------------
7131 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7133 -- N_Formal_Signed_Integer_Type_Definition
7134 -- Sloc points to RANGE
7136 --------------------------------------------
7137 -- 12.5.2 Formal Modular Type Definition --
7138 --------------------------------------------
7140 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7142 -- N_Formal_Modular_Type_Definition
7143 -- Sloc points to MOD
7145 ----------------------------------------------
7146 -- 12.5.2 Formal Floating Point Definition --
7147 ----------------------------------------------
7149 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7151 -- N_Formal_Floating_Point_Definition
7152 -- Sloc points to DIGITS
7154 ----------------------------------------------------
7155 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7156 ----------------------------------------------------
7158 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7160 -- N_Formal_Ordinary_Fixed_Point_Definition
7161 -- Sloc points to DELTA
7163 ---------------------------------------------------
7164 -- 12.5.2 Formal Decimal Fixed Point Definition --
7165 ---------------------------------------------------
7167 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7169 -- Note: formal decimal fixed point definition not allowed in Ada 83
7171 -- N_Formal_Decimal_Fixed_Point_Definition
7172 -- Sloc points to DELTA
7174 ------------------------------------------
7175 -- 12.5.3 Formal Array Type Definition --
7176 ------------------------------------------
7178 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7180 -------------------------------------------
7181 -- 12.5.4 Formal Access Type Definition --
7182 -------------------------------------------
7184 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7186 ----------------------------------------------
7187 -- 12.5.5 Formal Interface Type Definition --
7188 ----------------------------------------------
7190 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7192 -----------------------------------------
7193 -- 12.6 Formal Subprogram Declaration --
7194 -----------------------------------------
7196 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7197 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7198 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7200 --------------------------------------------------
7201 -- 12.6 Formal Concrete Subprogram Declaration --
7202 --------------------------------------------------
7204 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7205 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7206 -- [ASPECT_SPECIFICATIONS];
7208 -- N_Formal_Concrete_Subprogram_Declaration
7209 -- Sloc points to WITH
7210 -- Specification (Node1)
7211 -- Default_Name (Node2) (set to Empty if no subprogram default)
7212 -- Box_Present (Flag15)
7214 -- Note: if no subprogram default is present, then Name is set
7215 -- to Empty, and Box_Present is False.
7217 --------------------------------------------------
7218 -- 12.6 Formal Abstract Subprogram Declaration --
7219 --------------------------------------------------
7221 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7222 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7223 -- [ASPECT_SPECIFICATIONS];
7225 -- N_Formal_Abstract_Subprogram_Declaration
7226 -- Sloc points to WITH
7227 -- Specification (Node1)
7228 -- Default_Name (Node2) (set to Empty if no subprogram default)
7229 -- Box_Present (Flag15)
7231 -- Note: if no subprogram default is present, then Name is set
7232 -- to Empty, and Box_Present is False.
7234 ------------------------------
7235 -- 12.6 Subprogram Default --
7236 ------------------------------
7238 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7240 -- There is no separate node in the tree for a subprogram default.
7241 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7242 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7243 -- default name or box indication, as needed.
7245 ------------------------
7246 -- 12.6 Default Name --
7247 ------------------------
7249 -- DEFAULT_NAME ::= NAME
7251 --------------------------------------
7252 -- 12.7 Formal Package Declaration --
7253 --------------------------------------
7255 -- FORMAL_PACKAGE_DECLARATION ::=
7256 -- with package DEFINING_IDENTIFIER
7257 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7258 -- [ASPECT_SPECIFICATIONS];
7260 -- Note: formal package declarations not allowed in Ada 83 mode
7262 -- N_Formal_Package_Declaration
7263 -- Sloc points to WITH
7264 -- Defining_Identifier (Node1)
7265 -- Name (Node2)
7266 -- Generic_Associations (List3) (set to No_List if (<>) case or
7267 -- empty generic actual part)
7268 -- Box_Present (Flag15)
7269 -- Instance_Spec (Node5-Sem)
7270 -- ABE_Is_Certain (Flag18-Sem)
7272 --------------------------------------
7273 -- 12.7 Formal Package Actual Part --
7274 --------------------------------------
7276 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7277 -- ([OTHERS] => <>)
7278 -- | [GENERIC_ACTUAL_PART]
7279 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7281 -- FORMAL_PACKAGE_ASSOCIATION ::=
7282 -- GENERIC_ASSOCIATION
7283 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7285 -- There is no explicit node in the tree for a formal package actual
7286 -- part. Instead the information appears in the parent node (i.e. the
7287 -- formal package declaration node itself).
7289 -- There is no explicit node for a formal package association. All of
7290 -- them are represented either by a generic association, possibly with
7291 -- Box_Present, or by an N_Others_Choice.
7293 ---------------------------------
7294 -- 13.1 Representation clause --
7295 ---------------------------------
7297 -- REPRESENTATION_CLAUSE ::=
7298 -- ATTRIBUTE_DEFINITION_CLAUSE
7299 -- | ENUMERATION_REPRESENTATION_CLAUSE
7300 -- | RECORD_REPRESENTATION_CLAUSE
7301 -- | AT_CLAUSE
7303 ----------------------
7304 -- 13.1 Local Name --
7305 ----------------------
7307 -- LOCAL_NAME :=
7308 -- DIRECT_NAME
7309 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7310 -- | library_unit_NAME
7312 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7313 -- as an attribute reference, which has essentially the same form.
7315 ---------------------------------------
7316 -- 13.3 Attribute definition clause --
7317 ---------------------------------------
7319 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7320 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7321 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7323 -- In Ada 83, the expression must be a simple expression and the
7324 -- local name must be a direct name.
7326 -- Note: the only attribute definition clause that is processed by
7327 -- gigi is an address clause. For all other cases, the information
7328 -- is extracted by the front end and either results in setting entity
7329 -- information, e.g. Esize for the Size clause, or in appropriate
7330 -- expansion actions (e.g. in the case of Storage_Size).
7332 -- For an address clause, Gigi constructs the appropriate addressing
7333 -- code. It also ensures that no aliasing optimizations are made
7334 -- for the object for which the address clause appears.
7336 -- Note: for an address clause used to achieve an overlay:
7338 -- A : Integer;
7339 -- B : Integer;
7340 -- for B'Address use A'Address;
7342 -- the above rule means that Gigi will ensure that no optimizations
7343 -- will be made for B that would violate the implementation advice
7344 -- of RM 13.3(19). However, this advice applies only to B and not
7345 -- to A, which seems unfortunate. The GNAT front end will mark the
7346 -- object A as volatile to also prevent unwanted optimization
7347 -- assumptions based on no aliasing being made for B.
7349 -- N_Attribute_Definition_Clause
7350 -- Sloc points to FOR
7351 -- Name (Node2) the local name
7352 -- Chars (Name1) the identifier name from the attribute designator
7353 -- Expression (Node3) the expression or name
7354 -- Entity (Node4-Sem)
7355 -- Next_Rep_Item (Node5-Sem)
7356 -- From_At_Mod (Flag4-Sem)
7357 -- Check_Address_Alignment (Flag11-Sem)
7358 -- From_Aspect_Specification (Flag13-Sem)
7359 -- Is_Delayed_Aspect (Flag14-Sem)
7360 -- Address_Warning_Posted (Flag18-Sem)
7362 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7363 -- aspect name, and Entity is resolved already to reference the entity
7364 -- to which the aspect applies.
7366 -----------------------------------
7367 -- 13.3.1 Aspect Specifications --
7368 -----------------------------------
7370 -- We modify the RM grammar here, the RM grammar is:
7372 -- ASPECT_SPECIFICATION ::=
7373 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7374 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7376 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7378 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7380 -- That's inconvenient, since there is no non-terminal name for a single
7381 -- entry in the list of aspects. So we use this grammar instead:
7383 -- ASPECT_SPECIFICATIONS ::=
7384 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7386 -- ASPECT_SPECIFICATION =>
7387 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7389 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7391 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7393 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7394 -- aggregate with the elements of the aggregate corresponding to the
7395 -- successive arguments of the corresponding pragma.
7397 -- See separate package Aspects for details on the incorporation of
7398 -- these nodes into the tree, and how aspect specifications for a given
7399 -- declaration node are associated with that node.
7401 -- N_Aspect_Specification
7402 -- Sloc points to aspect identifier
7403 -- Identifier (Node1) aspect identifier
7404 -- Aspect_Rep_Item (Node2-Sem)
7405 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7406 -- Entity (Node4-Sem) entity to which the aspect applies
7407 -- Next_Rep_Item (Node5-Sem)
7408 -- Class_Present (Flag6) Set if 'Class present
7409 -- Is_Ignored (Flag9-Sem)
7410 -- Is_Checked (Flag11-Sem)
7411 -- Is_Delayed_Aspect (Flag14-Sem)
7412 -- Is_Disabled (Flag15-Sem)
7413 -- Is_Boolean_Aspect (Flag16-Sem)
7414 -- Split_PPC (Flag17) Set if split pre/post attribute
7416 -- Note: Aspect_Specification is an Ada 2012 feature
7418 -- Note: The Identifier serves to identify the aspect involved (it
7419 -- is the aspect whose name corresponds to the Chars field). This
7420 -- means that the other fields of this identifier are unused, and
7421 -- in particular we use the Entity field of this identifier to save
7422 -- a copy of the expression for visibility analysis, see spec of
7423 -- Sem_Ch13 for full details of this usage.
7425 -- In the case of aspects of the form xxx'Class, the aspect identifier
7426 -- is for xxx, and Class_Present is set to True.
7428 -- Note: When a Pre or Post aspect specification is processed, it is
7429 -- broken into AND THEN sections. The left most section has Split_PPC
7430 -- set to False, indicating that it is the original specification (e.g.
7431 -- for posting errors). For the other sections, Split_PPC is set True.
7433 ---------------------------------------------
7434 -- 13.4 Enumeration representation clause --
7435 ---------------------------------------------
7437 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7438 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7440 -- In Ada 83, the name must be a direct name
7442 -- N_Enumeration_Representation_Clause
7443 -- Sloc points to FOR
7444 -- Identifier (Node1) direct name
7445 -- Array_Aggregate (Node3)
7446 -- Next_Rep_Item (Node5-Sem)
7448 ---------------------------------
7449 -- 13.4 Enumeration aggregate --
7450 ---------------------------------
7452 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7454 ------------------------------------------
7455 -- 13.5.1 Record representation clause --
7456 ------------------------------------------
7458 -- RECORD_REPRESENTATION_CLAUSE ::=
7459 -- for first_subtype_LOCAL_NAME use
7460 -- record [MOD_CLAUSE]
7461 -- {COMPONENT_CLAUSE}
7462 -- end record;
7464 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7465 -- replaced by a corresponding Alignment attribute definition clause).
7467 -- Note: Component_Clauses can include pragmas
7469 -- N_Record_Representation_Clause
7470 -- Sloc points to FOR
7471 -- Identifier (Node1) direct name
7472 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7473 -- Component_Clauses (List3)
7474 -- Next_Rep_Item (Node5-Sem)
7476 ------------------------------
7477 -- 13.5.1 Component clause --
7478 ------------------------------
7480 -- COMPONENT_CLAUSE ::=
7481 -- component_LOCAL_NAME at POSITION
7482 -- range FIRST_BIT .. LAST_BIT;
7484 -- N_Component_Clause
7485 -- Sloc points to AT
7486 -- Component_Name (Node1) points to Name or Attribute_Reference
7487 -- Position (Node2)
7488 -- First_Bit (Node3)
7489 -- Last_Bit (Node4)
7491 ----------------------
7492 -- 13.5.1 Position --
7493 ----------------------
7495 -- POSITION ::= static_EXPRESSION
7497 -----------------------
7498 -- 13.5.1 First_Bit --
7499 -----------------------
7501 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7503 ----------------------
7504 -- 13.5.1 Last_Bit --
7505 ----------------------
7507 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7509 --------------------------
7510 -- 13.8 Code statement --
7511 --------------------------
7513 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7515 -- Note: in GNAT, the qualified expression has the form
7517 -- Asm_Insn'(Asm (...));
7519 -- See package System.Machine_Code in file s-maccod.ads for details on
7520 -- the allowed parameters to Asm. There are two ways this node can
7521 -- arise, as a code statement, in which case the expression is the
7522 -- qualified expression, or as a result of the expansion of an intrinsic
7523 -- call to the Asm or Asm_Input procedure.
7525 -- N_Code_Statement
7526 -- Sloc points to first token of the expression
7527 -- Expression (Node3)
7529 -- Note: package Exp_Code contains an abstract functional interface
7530 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7532 ------------------------
7533 -- 13.12 Restriction --
7534 ------------------------
7536 -- RESTRICTION ::=
7537 -- restriction_IDENTIFIER
7538 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7540 -- There is no explicit node for restrictions. Instead the restriction
7541 -- appears in normal pragma syntax as a pragma argument association,
7542 -- which has the same syntactic form.
7544 --------------------------
7545 -- B.2 Shift Operators --
7546 --------------------------
7548 -- Calls to the intrinsic shift functions are converted to one of
7549 -- the following shift nodes, which have the form of normal binary
7550 -- operator names. Note that for a given shift operation, one node
7551 -- covers all possible types, as for normal operators.
7553 -- Note: it is perfectly permissible for the expander to generate
7554 -- shift operation nodes directly, in which case they will be analyzed
7555 -- and parsed in the usual manner.
7557 -- Sprint syntax: shift-function-name!(expr, count)
7559 -- Note: the Left_Opnd field holds the first argument (the value to
7560 -- be shifted). The Right_Opnd field holds the second argument (the
7561 -- shift count). The Chars field is the name of the intrinsic function.
7563 -- N_Op_Rotate_Left
7564 -- Sloc points to the function name
7565 -- plus fields for binary operator
7566 -- plus fields for expression
7567 -- Shift_Count_OK (Flag4-Sem)
7569 -- N_Op_Rotate_Right
7570 -- Sloc points to the function name
7571 -- plus fields for binary operator
7572 -- plus fields for expression
7573 -- Shift_Count_OK (Flag4-Sem)
7575 -- N_Op_Shift_Left
7576 -- Sloc points to the function name
7577 -- plus fields for binary operator
7578 -- plus fields for expression
7579 -- Shift_Count_OK (Flag4-Sem)
7581 -- N_Op_Shift_Right_Arithmetic
7582 -- Sloc points to the function name
7583 -- plus fields for binary operator
7584 -- plus fields for expression
7585 -- Shift_Count_OK (Flag4-Sem)
7587 -- N_Op_Shift_Right
7588 -- Sloc points to the function name
7589 -- plus fields for binary operator
7590 -- plus fields for expression
7591 -- Shift_Count_OK (Flag4-Sem)
7593 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7594 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7596 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7597 -- always less than the word size if Modify_Tree_For_C mode is set.
7599 --------------------------
7600 -- Obsolescent Features --
7601 --------------------------
7603 -- The syntax descriptions and tree nodes for obsolescent features are
7604 -- grouped together, corresponding to their location in appendix I in
7605 -- the RM. However, parsing and semantic analysis for these constructs
7606 -- is located in an appropriate chapter (see individual notes).
7608 ---------------------------
7609 -- J.3 Delta Constraint --
7610 ---------------------------
7612 -- Note: the parse routine for this construct is located in section
7613 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7614 -- where delta constraint logically belongs.
7616 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7618 -- N_Delta_Constraint
7619 -- Sloc points to DELTA
7620 -- Delta_Expression (Node3)
7621 -- Range_Constraint (Node4) (set to Empty if not present)
7623 --------------------
7624 -- J.7 At Clause --
7625 --------------------
7627 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7629 -- Note: the parse routine for this construct is located in Par-Ch13,
7630 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7631 -- belongs if it were not obsolescent.
7633 -- Note: in Ada 83 the expression must be a simple expression
7635 -- Gigi restriction: This node never appears, it is rewritten as an
7636 -- address attribute definition clause.
7638 -- N_At_Clause
7639 -- Sloc points to FOR
7640 -- Identifier (Node1)
7641 -- Expression (Node3)
7643 ---------------------
7644 -- J.8 Mod clause --
7645 ---------------------
7647 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7649 -- Note: the parse routine for this construct is located in Par-Ch13,
7650 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7651 -- belongs if it were not obsolescent.
7653 -- Note: in Ada 83, the expression must be a simple expression
7655 -- Gigi restriction: this node never appears. It is replaced
7656 -- by a corresponding Alignment attribute definition clause.
7658 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7659 -- its name has "clause" in it. This is rather strange, but is quite
7660 -- definitely specified. The pragmas before are collected in the
7661 -- Pragmas_Before field of the mod clause node itself, and pragmas
7662 -- after are simply swallowed up in the list of component clauses.
7664 -- N_Mod_Clause
7665 -- Sloc points to AT
7666 -- Expression (Node3)
7667 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7669 --------------------
7670 -- Semantic Nodes --
7671 --------------------
7673 -- These semantic nodes are used to hold additional semantic information.
7674 -- They are inserted into the tree as a result of semantic processing.
7675 -- Although there are no legitimate source syntax constructions that
7676 -- correspond directly to these nodes, we need a source syntax for the
7677 -- reconstructed tree printed by Sprint, and the node descriptions here
7678 -- show this syntax.
7680 ------------------------
7681 -- Compound Statement --
7682 ------------------------
7684 -- This node is created by the analyzer/expander to handle some
7685 -- expansion cases where a sequence of actions needs to be captured
7686 -- within a single node (which acts as a container and allows the
7687 -- entire list of actions to be moved around as a whole) appearing
7688 -- in a sequence of statements.
7690 -- This is the statement counterpart to the expression node
7691 -- N_Expression_With_Actions.
7693 -- The required semantics is that the set of actions is executed in
7694 -- the order in which it appears, as though they appeared by themselves
7695 -- in the enclosing list of declarations of statements. Unlike what
7696 -- happens when using an N_Block_Statement, no new scope is introduced.
7698 -- Note: for the time being, this is used only as a transient
7699 -- representation during expansion, and all compound statement nodes
7700 -- must be exploded back to their constituent statements before handing
7701 -- the tree to the back end.
7703 -- Sprint syntax: do
7704 -- action;
7705 -- action;
7706 -- ...
7707 -- action;
7708 -- end;
7710 -- N_Compound_Statement
7711 -- Actions (List1)
7713 --------------
7714 -- Contract --
7715 --------------
7717 -- This node is used to hold the various parts of an entry, subprogram
7718 -- [body] or package [body] contract, in particular:
7719 -- Abstract states declared by a package declaration
7720 -- Contract cases that apply to a subprogram
7721 -- Dependency relations of inputs and output of a subprogram
7722 -- Global annotations classifying data as input or output
7723 -- Initialization sequences for a package declaration
7724 -- Pre- and postconditions that apply to a subprogram
7726 -- The node appears in an entry and [generic] subprogram [body] entity.
7728 -- Sprint syntax: <none> as the node should not appear in the tree, but
7729 -- only attached to an entry or [generic] subprogram
7730 -- entity.
7732 -- N_Contract
7733 -- Sloc points to the subprogram's name
7734 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7735 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7736 -- Classifications (Node3-Sem) (set to Empty if none)
7737 -- Is_Expanded_Contract (Flag1-Sem)
7739 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7740 -- to pre- and postconditions associated with an entry or a subprogram
7741 -- [body or stub]. The pragmas can either come from source or be the
7742 -- byproduct of aspect expansion. Currently the following pragmas appear
7743 -- in this list:
7744 -- Post
7745 -- Postcondition
7746 -- Pre
7747 -- Precondition
7748 -- Refined_Post
7749 -- The ordering in the list is in LIFO fashion.
7751 -- Note that there might be multiple preconditions or postconditions
7752 -- in this list, either because they come from separate pragmas in the
7753 -- source, or because a Pre (resp. Post) aspect specification has been
7754 -- broken into AND THEN sections. See Split_PPC for details.
7756 -- In GNATprove mode, the inherited classwide pre- and postconditions
7757 -- (suitably specialized for the specific type of the overriding
7758 -- operation) are also in this list.
7760 -- Contract_Test_Cases contains a collection of pragmas that correspond
7761 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7762 -- list is in LIFO fashion.
7764 -- Classifications contains pragmas that either declare, categorize or
7765 -- establish dependencies between subprogram or package inputs and
7766 -- outputs. Currently the following pragmas appear in this list:
7767 -- Abstract_States
7768 -- Async_Readers
7769 -- Async_Writers
7770 -- Constant_After_Elaboration
7771 -- Depends
7772 -- Effective_Reads
7773 -- Effective_Writes
7774 -- Extensions_Visible
7775 -- Global
7776 -- Initial_Condition
7777 -- Initializes
7778 -- Part_Of
7779 -- Refined_Depends
7780 -- Refined_Global
7781 -- Refined_States
7782 -- Volatile_Function
7783 -- The ordering is in LIFO fashion.
7785 -------------------
7786 -- Expanded Name --
7787 -------------------
7789 -- The N_Expanded_Name node is used to represent a selected component
7790 -- name that has been resolved to an expanded name. The semantic phase
7791 -- replaces N_Selected_Component nodes that represent names by the use
7792 -- of this node, leaving the N_Selected_Component node used only when
7793 -- the prefix is a record or protected type.
7795 -- The fields of the N_Expanded_Name node are layed out identically
7796 -- to those of the N_Selected_Component node, allowing conversion of
7797 -- an expanded name node to a selected component node to be done
7798 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7800 -- There is no special sprint syntax for an expanded name
7802 -- N_Expanded_Name
7803 -- Sloc points to the period
7804 -- Chars (Name1) copy of Chars field of selector name
7805 -- Prefix (Node3)
7806 -- Selector_Name (Node2)
7807 -- Entity (Node4-Sem)
7808 -- Associated_Node (Node4-Sem)
7809 -- Has_Private_View (Flag11-Sem) set in generic units.
7810 -- Redundant_Use (Flag13-Sem)
7811 -- Atomic_Sync_Required (Flag14-Sem)
7812 -- plus fields for expression
7814 -----------------------------
7815 -- Expression With Actions --
7816 -----------------------------
7818 -- This node is created by the analyzer/expander to handle some
7819 -- expansion cases, notably short-circuit forms where there are
7820 -- actions associated with the right-hand side operand.
7822 -- The N_Expression_With_Actions node represents an expression with
7823 -- an associated set of actions (which are executable statements and
7824 -- declarations, as might occur in a handled statement sequence).
7826 -- The required semantics is that the set of actions is executed in
7827 -- the order in which it appears just before the expression is
7828 -- evaluated (and these actions must only be executed if the value
7829 -- of the expression is evaluated). The node is considered to be
7830 -- a subexpression, whose value is the value of the Expression after
7831 -- executing all the actions.
7833 -- If the actions contain declarations, then these declarations may
7834 -- be referenced within the expression. However note that there is
7835 -- no proper scope associated with the expression-with-action, so the
7836 -- back-end will elaborate them in the context of the enclosing scope.
7838 -- Sprint syntax: do
7839 -- action;
7840 -- action;
7841 -- ...
7842 -- action;
7843 -- in expression end
7845 -- N_Expression_With_Actions
7846 -- Actions (List1)
7847 -- Expression (Node3)
7848 -- plus fields for expression
7850 -- Note: In the final generated tree presented to the code generator,
7851 -- the actions list is always non-null, since there is no point in this
7852 -- node if the actions are Empty. During semantic analysis there are
7853 -- cases where it is convenient to temporarily generate an empty actions
7854 -- list. This arises in cases where we create such an empty actions
7855 -- list, and it may or may not end up being a place where additional
7856 -- actions are inserted. The expander removes such empty cases after
7857 -- the expression of the node is fully analyzed and expanded, at which
7858 -- point it is safe to remove it, since no more actions can be inserted.
7860 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7861 -- the action list, which can contain only non-declarative statements.
7863 --------------------
7864 -- Free Statement --
7865 --------------------
7867 -- The N_Free_Statement node is generated as a result of a call to an
7868 -- instantiation of Unchecked_Deallocation. The instantiation of this
7869 -- generic is handled specially and generates this node directly.
7871 -- Sprint syntax: free expression
7873 -- N_Free_Statement
7874 -- Sloc is copied from the unchecked deallocation call
7875 -- Expression (Node3) argument to unchecked deallocation call
7876 -- Storage_Pool (Node1-Sem)
7877 -- Procedure_To_Call (Node2-Sem)
7878 -- Actual_Designated_Subtype (Node4-Sem)
7880 -- Note: in the case where a debug source file is generated, the Sloc
7881 -- for this node points to the FREE keyword in the Sprint file output.
7883 -------------------
7884 -- Freeze Entity --
7885 -------------------
7887 -- This node marks the point in a declarative part at which an entity
7888 -- declared therein becomes frozen. The expander places initialization
7889 -- procedures for types at those points. Gigi uses the freezing point
7890 -- to elaborate entities that may depend on previous private types.
7892 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7893 -- a full description of the use of this node.
7895 -- The Entity field points back to the entity for the type (whose
7896 -- Freeze_Node field points back to this freeze node).
7898 -- The Actions field contains a list of declarations and statements
7899 -- generated by the expander which are associated with the freeze
7900 -- node, and are elaborated as though the freeze node were replaced
7901 -- by this sequence of actions.
7903 -- Note: the Sloc field in the freeze node references a construct
7904 -- associated with the freezing point. This is used for posting
7905 -- messages in some error/warning situations, e.g. the case where
7906 -- a primitive operation of a tagged type is declared too late.
7908 -- Sprint syntax: freeze entity-name [
7909 -- freeze actions
7910 -- ]
7912 -- N_Freeze_Entity
7913 -- Sloc points near freeze point (see above special note)
7914 -- Entity (Node4-Sem)
7915 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7916 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7917 -- Actions (List1) (set to No_List if no freeze actions)
7918 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7920 -- The Actions field holds actions associated with the freeze. These
7921 -- actions are elaborated at the point where the type is frozen.
7923 -- Note: in the case where a debug source file is generated, the Sloc
7924 -- for this node points to the FREEZE keyword in the Sprint file output.
7926 ---------------------------
7927 -- Freeze Generic Entity --
7928 ---------------------------
7930 -- The freeze point of an entity indicates the point at which the
7931 -- information needed to generate code for the entity is complete.
7932 -- The freeze node for an entity triggers expander activities, such as
7933 -- build initialization procedures, and backend activities, such as
7934 -- completing the elaboration of packages.
7936 -- For entities declared within a generic unit, for which no code is
7937 -- generated, the freeze point is not equally meaningful. However, in
7938 -- Ada 2012 several semantic checks on declarations must be delayed to
7939 -- the freeze point, and we need to include such a mark in the tree to
7940 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7941 -- role, and is ignored by the expander and the back-end.
7943 -- Sprint syntax: freeze_generic entity-name
7945 -- N_Freeze_Generic_Entity
7946 -- Sloc points near freeze point
7947 -- Entity (Node4-Sem)
7949 --------------------------------
7950 -- Implicit Label Declaration --
7951 --------------------------------
7953 -- An implicit label declaration is created for every occurrence of a
7954 -- label on a statement or a label on a block or loop. It is chained
7955 -- in the declarations of the innermost enclosing block as specified
7956 -- in RM section 5.1 (3).
7958 -- The Defining_Identifier is the actual identifier for the statement
7959 -- identifier. Note that the occurrence of the label is a reference, NOT
7960 -- the defining occurrence. The defining occurrence occurs at the head
7961 -- of the innermost enclosing block, and is represented by this node.
7963 -- Note: from the grammar, this might better be called an implicit
7964 -- statement identifier declaration, but the term we choose seems
7965 -- friendlier, since at least informally statement identifiers are
7966 -- called labels in both cases (i.e. when used in labels, and when
7967 -- used as the identifiers of blocks and loops).
7969 -- Note: although this is logically a semantic node, since it does not
7970 -- correspond directly to a source syntax construction, these nodes are
7971 -- actually created by the parser in a post pass done just after parsing
7972 -- is complete, before semantic analysis is started (see Par.Labl).
7974 -- Sprint syntax: labelname : label;
7976 -- N_Implicit_Label_Declaration
7977 -- Sloc points to the << token for a statement identifier, or to the
7978 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7979 -- Defining_Identifier (Node1)
7980 -- Label_Construct (Node2-Sem)
7982 -- Note: in the case where a debug source file is generated, the Sloc
7983 -- for this node points to the label name in the generated declaration.
7985 ---------------------
7986 -- Itype Reference --
7987 ---------------------
7989 -- This node is used to create a reference to an Itype. The only purpose
7990 -- is to make sure the Itype is defined if this is the first reference.
7992 -- A typical use of this node is when an Itype is to be referenced in
7993 -- two branches of an IF statement. In this case it is important that
7994 -- the first use of the Itype not be inside the conditional, since then
7995 -- it might not be defined if the other branch of the IF is taken, in
7996 -- the case where the definition generates elaboration code.
7998 -- The Itype field points to the referenced Itype
8000 -- Sprint syntax: reference itype-name
8002 -- N_Itype_Reference
8003 -- Sloc points to the node generating the reference
8004 -- Itype (Node1-Sem)
8006 -- Note: in the case where a debug source file is generated, the Sloc
8007 -- for this node points to the REFERENCE keyword in the file output.
8009 ---------------------
8010 -- Raise xxx Error --
8011 ---------------------
8013 -- One of these nodes is created during semantic analysis to replace
8014 -- a node for an expression that is determined to definitely raise
8015 -- the corresponding exception.
8017 -- The N_Raise_xxx_Error node may also stand alone in place
8018 -- of a declaration or statement, in which case it simply causes
8019 -- the exception to be raised (i.e. it is equivalent to a raise
8020 -- statement that raises the corresponding exception). This use
8021 -- is distinguished by the fact that the Etype in this case is
8022 -- Standard_Void_Type; in the subexpression case, the Etype is the
8023 -- same as the type of the subexpression which it replaces.
8025 -- If Condition is empty, then the raise is unconditional. If the
8026 -- Condition field is non-empty, it is a boolean expression which is
8027 -- first evaluated, and the exception is raised only if the value of the
8028 -- expression is True. In the unconditional case, the creation of this
8029 -- node is usually accompanied by a warning message (unless it appears
8030 -- within the right operand of a short-circuit form whose left argument
8031 -- is static and decisively eliminates elaboration of the raise
8032 -- operation). The condition field can ONLY be present when the node is
8033 -- used as a statement form; it must NOT be present in the case where
8034 -- the node appears within an expression.
8036 -- The exception is generated with a message that contains the
8037 -- file name and line number, and then appended text. The Reason
8038 -- code shows the text to be added. The Reason code is an element
8039 -- of the type Types.RT_Exception_Code, and indicates both the
8040 -- message to be added, and the exception to be raised (which must
8041 -- match the node type). The value is stored by storing a Uint which
8042 -- is the Pos value of the enumeration element in this type.
8044 -- Gigi restriction: This expander ensures that the type of the
8045 -- Condition field is always Standard.Boolean, even if the type
8046 -- in the source is some non-standard boolean type.
8048 -- Sprint syntax: [xxx_error "msg"]
8049 -- or: [xxx_error when condition "msg"]
8051 -- N_Raise_Constraint_Error
8052 -- Sloc references related construct
8053 -- Condition (Node1) (set to Empty if no condition)
8054 -- Reason (Uint3)
8055 -- plus fields for expression
8057 -- N_Raise_Program_Error
8058 -- Sloc references related construct
8059 -- Condition (Node1) (set to Empty if no condition)
8060 -- Reason (Uint3)
8061 -- plus fields for expression
8063 -- N_Raise_Storage_Error
8064 -- Sloc references related construct
8065 -- Condition (Node1) (set to Empty if no condition)
8066 -- Reason (Uint3)
8067 -- plus fields for expression
8069 -- Note: Sloc is copied from the expression generating the exception.
8070 -- In the case where a debug source file is generated, the Sloc for
8071 -- this node points to the left bracket in the Sprint file output.
8073 -- Note: the back end may be required to translate these nodes into
8074 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8076 ---------------------------------------------
8077 -- Optimization of Exception Raise to Goto --
8078 ---------------------------------------------
8080 -- In some cases, the front end will determine that any exception raised
8081 -- by the back end for a certain exception should be transformed into a
8082 -- goto statement.
8084 -- There are three kinds of exceptions raised by the back end (note that
8085 -- for this purpose we consider gigi to be part of the back end in the
8086 -- gcc case):
8088 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8089 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8090 -- 3. Other cases not specifically marked by the front end
8092 -- Normally all such exceptions are translated into calls to the proper
8093 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8094 -- and the exception message.
8096 -- The front end may determine that for a particular sequence of code,
8097 -- exceptions in any of these three categories for a particular builtin
8098 -- exception should result in a goto, rather than a call to Rcheck_xx.
8099 -- The exact sequence to be generated is:
8101 -- Local_Raise (exception'Identity);
8102 -- goto Label
8104 -- The front end marks such a sequence of code by bracketing it with
8105 -- push and pop nodes:
8107 -- N_Push_xxx_Label (referencing the label)
8108 -- ...
8109 -- (code where transformation is expected for exception xxx)
8110 -- ...
8111 -- N_Pop_xxx_Label
8113 -- The use of push/pop reflects the fact that such regions can properly
8114 -- nest, and one special case is a subregion in which no transformation
8115 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8116 -- Exception_Label field is Empty.
8118 -- N_Push_Constraint_Error_Label
8119 -- Sloc references first statement in region covered
8120 -- Exception_Label (Node5-Sem)
8122 -- N_Push_Program_Error_Label
8123 -- Sloc references first statement in region covered
8124 -- Exception_Label (Node5-Sem)
8126 -- N_Push_Storage_Error_Label
8127 -- Sloc references first statement in region covered
8128 -- Exception_Label (Node5-Sem)
8130 -- N_Pop_Constraint_Error_Label
8131 -- Sloc references last statement in region covered
8133 -- N_Pop_Program_Error_Label
8134 -- Sloc references last statement in region covered
8136 -- N_Pop_Storage_Error_Label
8137 -- Sloc references last statement in region covered
8139 ---------------
8140 -- Reference --
8141 ---------------
8143 -- For a number of purposes, we need to construct references to objects.
8144 -- These references are subsequently treated as normal access values.
8145 -- An example is the construction of the parameter block passed to a
8146 -- task entry. The N_Reference node is provided for this purpose. It is
8147 -- similar in effect to the use of the Unrestricted_Access attribute,
8148 -- and like Unrestricted_Access can be applied to objects which would
8149 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8150 -- objects which are not aliased, and slices). In addition it can be
8151 -- applied to composite type values as well as objects, including string
8152 -- values and aggregates.
8154 -- Note: we use the Prefix field for this expression so that the
8155 -- resulting node can be treated using common code with the attribute
8156 -- nodes for the 'Access and related attributes. Logically it would make
8157 -- more sense to call it an Expression field, but then we would have to
8158 -- special case the treatment of the N_Reference node.
8160 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8161 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8162 -- a temporary initialized to a N_Reference node in order to eliminate
8163 -- superfluous access checks.
8165 -- Sprint syntax: prefix'reference
8167 -- N_Reference
8168 -- Sloc is copied from the expression
8169 -- Prefix (Node3)
8170 -- plus fields for expression
8172 -- Note: in the case where a debug source file is generated, the Sloc
8173 -- for this node points to the quote in the Sprint file output.
8175 ----------------
8176 -- SCIL Nodes --
8177 ----------------
8179 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8180 -- is active. They are only generated if SCIL generation is enabled.
8181 -- A standard tree-walk will not encounter these nodes even if they
8182 -- are present; these nodes are only accessible via the function
8183 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8184 -- semantics.
8186 -- Sprint syntax: [ <node kind> ]
8187 -- No semantic field values are displayed.
8189 -- N_SCIL_Dispatch_Table_Tag_Init
8190 -- Sloc references a node for a tag initialization
8191 -- SCIL_Entity (Node4-Sem)
8193 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8194 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8195 -- the declaration of the dispatch table for a tagged type.
8197 -- N_SCIL_Dispatching_Call
8198 -- Sloc references the node of a dispatching call
8199 -- SCIL_Target_Prim (Node2-Sem)
8200 -- SCIL_Entity (Node4-Sem)
8201 -- SCIL_Controlling_Tag (Node5-Sem)
8203 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8204 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8205 -- rewriting thereof) corresponding to a dispatching call.
8207 -- N_SCIL_Membership_Test
8208 -- Sloc references the node of a membership test
8209 -- SCIL_Tag_Value (Node5-Sem)
8210 -- SCIL_Entity (Node4-Sem)
8212 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8213 -- with the N_In node (or a rewriting thereof) corresponding to a
8214 -- classwide membership test.
8216 --------------------------
8217 -- Unchecked Expression --
8218 --------------------------
8220 -- An unchecked expression is one that must be analyzed and resolved
8221 -- with all checks off, regardless of the current setting of scope
8222 -- suppress flags.
8224 -- Sprint syntax: `(expression)
8226 -- Note: this node is always removed from the tree (and replaced by
8227 -- its constituent expression) on completion of analysis, so it only
8228 -- appears in intermediate trees, and will never be seen by Gigi.
8230 -- N_Unchecked_Expression
8231 -- Sloc is a copy of the Sloc of the expression
8232 -- Expression (Node3)
8233 -- plus fields for expression
8235 -- Note: in the case where a debug source file is generated, the Sloc
8236 -- for this node points to the back quote in the Sprint file output.
8238 -------------------------------
8239 -- Unchecked Type Conversion --
8240 -------------------------------
8242 -- An unchecked type conversion node represents the semantic action
8243 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8244 -- It is generated as a result of actual use of Unchecked_Conversion
8245 -- and also the expander generates unchecked type conversion nodes
8246 -- directly for expansion of complex semantic actions.
8248 -- Note: an unchecked type conversion is a variable as far as the
8249 -- semantics are concerned, which is convenient for the expander.
8250 -- This does not change what Ada source programs are legal, since
8251 -- clearly a function call to an instantiation of Unchecked_Conversion
8252 -- is not a variable in any case.
8254 -- Sprint syntax: subtype-mark!(expression)
8256 -- N_Unchecked_Type_Conversion
8257 -- Sloc points to related node in source
8258 -- Subtype_Mark (Node4)
8259 -- Expression (Node3)
8260 -- Kill_Range_Check (Flag11-Sem)
8261 -- No_Truncation (Flag17-Sem)
8262 -- plus fields for expression
8264 -- Note: in the case where a debug source file is generated, the Sloc
8265 -- for this node points to the exclamation in the Sprint file output.
8267 -----------------------------------
8268 -- Validate_Unchecked_Conversion --
8269 -----------------------------------
8271 -- The front end does most of the validation of unchecked conversion,
8272 -- including checking sizes (this is done after the back end is called
8273 -- to take advantage of back-annotation of calculated sizes).
8275 -- The front end also deals with specific cases that are not allowed
8276 -- e.g. involving unconstrained array types.
8278 -- For the case of the standard gigi backend, this means that all
8279 -- checks are done in the front end.
8281 -- However, in the case of specialized back-ends, in particular the JVM
8282 -- backend in the past, additional requirements and restrictions may
8283 -- apply to unchecked conversion, and these are most conveniently
8284 -- performed in the specialized back-end.
8286 -- To accommodate this requirement, for such back ends, the following
8287 -- special node is generated recording an unchecked conversion that
8288 -- needs to be validated. The back end should post an appropriate
8289 -- error message if the unchecked conversion is invalid or warrants
8290 -- a special warning message.
8292 -- Source_Type and Target_Type point to the entities for the two
8293 -- types involved in the unchecked conversion instantiation that
8294 -- is to be validated.
8296 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8298 -- N_Validate_Unchecked_Conversion
8299 -- Sloc points to instantiation (location for warning message)
8300 -- Source_Type (Node1-Sem)
8301 -- Target_Type (Node2-Sem)
8303 -- Note: in the case where a debug source file is generated, the Sloc
8304 -- for this node points to the VALIDATE keyword in the file output.
8306 -----------
8307 -- Empty --
8308 -----------
8310 -- Used as the contents of the Nkind field of the dummy Empty node
8311 -- and in some other situations to indicate an uninitialized value.
8313 -- N_Empty
8314 -- Chars (Name1) is set to No_Name
8316 -----------
8317 -- Error --
8318 -----------
8320 -- Used as the contents of the Nkind field of the dummy Error node.
8321 -- Has an Etype field, which gets set to Any_Type later on, to help
8322 -- error recovery (Error_Posted is also set in the Error node).
8324 -- N_Error
8325 -- Chars (Name1) is set to Error_Name
8326 -- Etype (Node5-Sem)
8328 --------------------------
8329 -- Node Type Definition --
8330 --------------------------
8332 -- The following is the definition of the Node_Kind type. As previously
8333 -- discussed, this is separated off to allow rearrangement of the order to
8334 -- facilitate definition of subtype ranges. The comments show the subtype
8335 -- classes which apply to each set of node kinds. The first entry in the
8336 -- comment characterizes the following list of nodes.
8338 type Node_Kind is (
8339 N_Unused_At_Start,
8341 -- N_Representation_Clause
8343 N_At_Clause,
8344 N_Component_Clause,
8345 N_Enumeration_Representation_Clause,
8346 N_Mod_Clause,
8347 N_Record_Representation_Clause,
8349 -- N_Representation_Clause, N_Has_Chars
8351 N_Attribute_Definition_Clause,
8353 -- N_Has_Chars
8355 N_Empty,
8356 N_Pragma_Argument_Association,
8358 -- N_Has_Etype, N_Has_Chars
8360 -- Note: of course N_Error does not really have Etype or Chars fields,
8361 -- and any attempt to access these fields in N_Error will cause an
8362 -- error, but historically this always has been positioned so that an
8363 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8364 -- Most likely this makes coding easier somewhere but still seems
8365 -- undesirable. To be investigated some time ???
8367 N_Error,
8369 -- N_Entity, N_Has_Etype, N_Has_Chars
8371 N_Defining_Character_Literal,
8372 N_Defining_Identifier,
8373 N_Defining_Operator_Symbol,
8375 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8377 N_Expanded_Name,
8379 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8380 -- N_Has_Chars, N_Has_Entity
8382 N_Identifier,
8383 N_Operator_Symbol,
8385 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8386 -- N_Has_Chars, N_Has_Entity
8388 N_Character_Literal,
8390 -- N_Binary_Op, N_Op, N_Subexpr,
8391 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8393 N_Op_Add,
8394 N_Op_Concat,
8395 N_Op_Expon,
8396 N_Op_Subtract,
8398 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8399 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8401 N_Op_Divide,
8402 N_Op_Mod,
8403 N_Op_Multiply,
8404 N_Op_Rem,
8406 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8407 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8409 N_Op_And,
8411 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8412 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8414 N_Op_Eq,
8415 N_Op_Ge,
8416 N_Op_Gt,
8417 N_Op_Le,
8418 N_Op_Lt,
8419 N_Op_Ne,
8421 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8422 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8424 N_Op_Or,
8425 N_Op_Xor,
8427 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8428 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8430 N_Op_Rotate_Left,
8431 N_Op_Rotate_Right,
8432 N_Op_Shift_Left,
8433 N_Op_Shift_Right,
8434 N_Op_Shift_Right_Arithmetic,
8436 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8437 -- N_Has_Chars, N_Has_Entity
8439 N_Op_Abs,
8440 N_Op_Minus,
8441 N_Op_Not,
8442 N_Op_Plus,
8444 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8446 N_Attribute_Reference,
8448 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8450 N_In,
8451 N_Not_In,
8453 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8455 N_And_Then,
8456 N_Or_Else,
8458 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8460 N_Function_Call,
8461 N_Procedure_Call_Statement,
8463 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8465 N_Raise_Constraint_Error,
8466 N_Raise_Program_Error,
8467 N_Raise_Storage_Error,
8469 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8471 N_Integer_Literal,
8472 N_Real_Literal,
8473 N_String_Literal,
8475 -- N_Subexpr, N_Has_Etype
8477 N_Explicit_Dereference,
8478 N_Expression_With_Actions,
8479 N_If_Expression,
8480 N_Indexed_Component,
8481 N_Null,
8482 N_Qualified_Expression,
8483 N_Quantified_Expression,
8484 N_Aggregate,
8485 N_Allocator,
8486 N_Case_Expression,
8487 N_Delta_Aggregate,
8488 N_Extension_Aggregate,
8489 N_Raise_Expression,
8490 N_Range,
8491 N_Reference,
8492 N_Selected_Component,
8493 N_Slice,
8494 N_Target_Name,
8495 N_Type_Conversion,
8496 N_Unchecked_Expression,
8497 N_Unchecked_Type_Conversion,
8499 -- N_Has_Etype
8501 N_Subtype_Indication,
8503 -- N_Declaration
8505 N_Component_Declaration,
8506 N_Entry_Declaration,
8507 N_Expression_Function,
8508 N_Formal_Object_Declaration,
8509 N_Formal_Type_Declaration,
8510 N_Full_Type_Declaration,
8511 N_Incomplete_Type_Declaration,
8512 N_Iterator_Specification,
8513 N_Loop_Parameter_Specification,
8514 N_Object_Declaration,
8515 N_Protected_Type_Declaration,
8516 N_Private_Extension_Declaration,
8517 N_Private_Type_Declaration,
8518 N_Subtype_Declaration,
8520 -- N_Subprogram_Specification, N_Declaration
8522 N_Function_Specification,
8523 N_Procedure_Specification,
8525 -- N_Access_To_Subprogram_Definition
8527 N_Access_Function_Definition,
8528 N_Access_Procedure_Definition,
8530 -- N_Later_Decl_Item
8532 N_Task_Type_Declaration,
8534 -- N_Body_Stub, N_Later_Decl_Item
8536 N_Package_Body_Stub,
8537 N_Protected_Body_Stub,
8538 N_Subprogram_Body_Stub,
8539 N_Task_Body_Stub,
8541 -- N_Generic_Instantiation, N_Later_Decl_Item
8542 -- N_Subprogram_Instantiation
8544 N_Function_Instantiation,
8545 N_Procedure_Instantiation,
8547 -- N_Generic_Instantiation, N_Later_Decl_Item
8549 N_Package_Instantiation,
8551 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8553 N_Package_Body,
8554 N_Subprogram_Body,
8556 -- N_Later_Decl_Item, N_Proper_Body
8558 N_Protected_Body,
8559 N_Task_Body,
8561 -- N_Later_Decl_Item
8563 N_Implicit_Label_Declaration,
8564 N_Package_Declaration,
8565 N_Single_Task_Declaration,
8566 N_Subprogram_Declaration,
8567 N_Use_Package_Clause,
8569 -- N_Generic_Declaration, N_Later_Decl_Item
8571 N_Generic_Package_Declaration,
8572 N_Generic_Subprogram_Declaration,
8574 -- N_Array_Type_Definition
8576 N_Constrained_Array_Definition,
8577 N_Unconstrained_Array_Definition,
8579 -- N_Renaming_Declaration
8581 N_Exception_Renaming_Declaration,
8582 N_Object_Renaming_Declaration,
8583 N_Package_Renaming_Declaration,
8584 N_Subprogram_Renaming_Declaration,
8586 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8588 N_Generic_Function_Renaming_Declaration,
8589 N_Generic_Package_Renaming_Declaration,
8590 N_Generic_Procedure_Renaming_Declaration,
8592 -- N_Statement_Other_Than_Procedure_Call
8594 N_Abort_Statement,
8595 N_Accept_Statement,
8596 N_Assignment_Statement,
8597 N_Asynchronous_Select,
8598 N_Block_Statement,
8599 N_Case_Statement,
8600 N_Code_Statement,
8601 N_Compound_Statement,
8602 N_Conditional_Entry_Call,
8604 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8606 N_Delay_Relative_Statement,
8607 N_Delay_Until_Statement,
8609 -- N_Statement_Other_Than_Procedure_Call
8611 N_Entry_Call_Statement,
8612 N_Free_Statement,
8613 N_Goto_Statement,
8614 N_Loop_Statement,
8615 N_Null_Statement,
8616 N_Raise_Statement,
8617 N_Requeue_Statement,
8618 N_Simple_Return_Statement,
8619 N_Extended_Return_Statement,
8620 N_Selective_Accept,
8621 N_Timed_Entry_Call,
8623 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8625 N_Exit_Statement,
8626 N_If_Statement,
8628 -- N_Has_Condition
8630 N_Accept_Alternative,
8631 N_Delay_Alternative,
8632 N_Elsif_Part,
8633 N_Entry_Body_Formal_Part,
8634 N_Iteration_Scheme,
8635 N_Terminate_Alternative,
8637 -- N_Formal_Subprogram_Declaration
8639 N_Formal_Abstract_Subprogram_Declaration,
8640 N_Formal_Concrete_Subprogram_Declaration,
8642 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8644 N_Push_Constraint_Error_Label,
8645 N_Push_Program_Error_Label,
8646 N_Push_Storage_Error_Label,
8648 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8650 N_Pop_Constraint_Error_Label,
8651 N_Pop_Program_Error_Label,
8652 N_Pop_Storage_Error_Label,
8654 -- SCIL nodes
8656 N_SCIL_Dispatch_Table_Tag_Init,
8657 N_SCIL_Dispatching_Call,
8658 N_SCIL_Membership_Test,
8660 -- Other nodes (not part of any subtype class)
8662 N_Abortable_Part,
8663 N_Abstract_Subprogram_Declaration,
8664 N_Access_Definition,
8665 N_Access_To_Object_Definition,
8666 N_Aspect_Specification,
8667 N_Case_Expression_Alternative,
8668 N_Case_Statement_Alternative,
8669 N_Compilation_Unit,
8670 N_Compilation_Unit_Aux,
8671 N_Component_Association,
8672 N_Component_Definition,
8673 N_Component_List,
8674 N_Contract,
8675 N_Derived_Type_Definition,
8676 N_Decimal_Fixed_Point_Definition,
8677 N_Defining_Program_Unit_Name,
8678 N_Delta_Constraint,
8679 N_Designator,
8680 N_Digits_Constraint,
8681 N_Discriminant_Association,
8682 N_Discriminant_Specification,
8683 N_Enumeration_Type_Definition,
8684 N_Entry_Body,
8685 N_Entry_Call_Alternative,
8686 N_Entry_Index_Specification,
8687 N_Exception_Declaration,
8688 N_Exception_Handler,
8689 N_Floating_Point_Definition,
8690 N_Formal_Decimal_Fixed_Point_Definition,
8691 N_Formal_Derived_Type_Definition,
8692 N_Formal_Discrete_Type_Definition,
8693 N_Formal_Floating_Point_Definition,
8694 N_Formal_Modular_Type_Definition,
8695 N_Formal_Ordinary_Fixed_Point_Definition,
8696 N_Formal_Package_Declaration,
8697 N_Formal_Private_Type_Definition,
8698 N_Formal_Incomplete_Type_Definition,
8699 N_Formal_Signed_Integer_Type_Definition,
8700 N_Freeze_Entity,
8701 N_Freeze_Generic_Entity,
8702 N_Generic_Association,
8703 N_Handled_Sequence_Of_Statements,
8704 N_Index_Or_Discriminant_Constraint,
8705 N_Iterated_Component_Association,
8706 N_Itype_Reference,
8707 N_Label,
8708 N_Modular_Type_Definition,
8709 N_Number_Declaration,
8710 N_Ordinary_Fixed_Point_Definition,
8711 N_Others_Choice,
8712 N_Package_Specification,
8713 N_Parameter_Association,
8714 N_Parameter_Specification,
8715 N_Pragma,
8716 N_Protected_Definition,
8717 N_Range_Constraint,
8718 N_Real_Range_Specification,
8719 N_Record_Definition,
8720 N_Signed_Integer_Type_Definition,
8721 N_Single_Protected_Declaration,
8722 N_Subunit,
8723 N_Task_Definition,
8724 N_Triggering_Alternative,
8725 N_Use_Type_Clause,
8726 N_Validate_Unchecked_Conversion,
8727 N_Variant,
8728 N_Variant_Part,
8729 N_With_Clause,
8730 N_Unused_At_End);
8732 for Node_Kind'Size use 8;
8733 -- The data structures in Atree assume this
8735 ----------------------------
8736 -- Node Class Definitions --
8737 ----------------------------
8739 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8740 N_Access_Function_Definition ..
8741 N_Access_Procedure_Definition;
8743 subtype N_Array_Type_Definition is Node_Kind range
8744 N_Constrained_Array_Definition ..
8745 N_Unconstrained_Array_Definition;
8747 subtype N_Binary_Op is Node_Kind range
8748 N_Op_Add ..
8749 N_Op_Shift_Right_Arithmetic;
8751 subtype N_Body_Stub is Node_Kind range
8752 N_Package_Body_Stub ..
8753 N_Task_Body_Stub;
8755 subtype N_Declaration is Node_Kind range
8756 N_Component_Declaration ..
8757 N_Procedure_Specification;
8758 -- Note: this includes all constructs normally thought of as declarations
8759 -- except those which are separately grouped as later declarations.
8761 subtype N_Delay_Statement is Node_Kind range
8762 N_Delay_Relative_Statement ..
8763 N_Delay_Until_Statement;
8765 subtype N_Direct_Name is Node_Kind range
8766 N_Identifier ..
8767 N_Character_Literal;
8769 subtype N_Entity is Node_Kind range
8770 N_Defining_Character_Literal ..
8771 N_Defining_Operator_Symbol;
8773 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8774 N_Formal_Abstract_Subprogram_Declaration ..
8775 N_Formal_Concrete_Subprogram_Declaration;
8777 subtype N_Generic_Declaration is Node_Kind range
8778 N_Generic_Package_Declaration ..
8779 N_Generic_Subprogram_Declaration;
8781 subtype N_Generic_Instantiation is Node_Kind range
8782 N_Function_Instantiation ..
8783 N_Package_Instantiation;
8785 subtype N_Generic_Renaming_Declaration is Node_Kind range
8786 N_Generic_Function_Renaming_Declaration ..
8787 N_Generic_Procedure_Renaming_Declaration;
8789 subtype N_Has_Chars is Node_Kind range
8790 N_Attribute_Definition_Clause ..
8791 N_Op_Plus;
8793 subtype N_Has_Entity is Node_Kind range
8794 N_Expanded_Name ..
8795 N_Attribute_Reference;
8796 -- Nodes that have Entity fields
8797 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8798 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8800 subtype N_Has_Etype is Node_Kind range
8801 N_Error ..
8802 N_Subtype_Indication;
8804 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8805 N_Op_Divide ..
8806 N_Op_Rem;
8808 subtype N_Multiplying_Operator is Node_Kind range
8809 N_Op_Divide ..
8810 N_Op_Rem;
8812 subtype N_Later_Decl_Item is Node_Kind range
8813 N_Task_Type_Declaration ..
8814 N_Generic_Subprogram_Declaration;
8815 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8816 -- only those items which can appear as later declarative items. This also
8817 -- includes N_Implicit_Label_Declaration which is not specifically in the
8818 -- grammar but may appear as a valid later declarative items. It does NOT
8819 -- include N_Pragma which can also appear among later declarative items.
8820 -- It does however include N_Protected_Body, which is a bit peculiar, but
8821 -- harmless since this cannot appear in Ada 83 mode anyway.
8823 subtype N_Membership_Test is Node_Kind range
8824 N_In ..
8825 N_Not_In;
8827 subtype N_Numeric_Or_String_Literal is Node_Kind range
8828 N_Integer_Literal ..
8829 N_String_Literal;
8831 subtype N_Op is Node_Kind range
8832 N_Op_Add ..
8833 N_Op_Plus;
8835 subtype N_Op_Boolean is Node_Kind range
8836 N_Op_And ..
8837 N_Op_Xor;
8838 -- Binary operators which take operands of a boolean type, and yield
8839 -- a result of a boolean type.
8841 subtype N_Op_Compare is Node_Kind range
8842 N_Op_Eq ..
8843 N_Op_Ne;
8845 subtype N_Op_Shift is Node_Kind range
8846 N_Op_Rotate_Left ..
8847 N_Op_Shift_Right_Arithmetic;
8849 subtype N_Proper_Body is Node_Kind range
8850 N_Package_Body ..
8851 N_Task_Body;
8853 subtype N_Push_xxx_Label is Node_Kind range
8854 N_Push_Constraint_Error_Label ..
8855 N_Push_Storage_Error_Label;
8857 subtype N_Pop_xxx_Label is Node_Kind range
8858 N_Pop_Constraint_Error_Label ..
8859 N_Pop_Storage_Error_Label;
8861 subtype N_Push_Pop_xxx_Label is Node_Kind range
8862 N_Push_Constraint_Error_Label ..
8863 N_Pop_Storage_Error_Label;
8865 subtype N_Raise_xxx_Error is Node_Kind range
8866 N_Raise_Constraint_Error ..
8867 N_Raise_Storage_Error;
8869 subtype N_Renaming_Declaration is Node_Kind range
8870 N_Exception_Renaming_Declaration ..
8871 N_Generic_Procedure_Renaming_Declaration;
8873 subtype N_Representation_Clause is Node_Kind range
8874 N_At_Clause ..
8875 N_Attribute_Definition_Clause;
8877 subtype N_Short_Circuit is Node_Kind range
8878 N_And_Then ..
8879 N_Or_Else;
8881 subtype N_SCIL_Node is Node_Kind range
8882 N_SCIL_Dispatch_Table_Tag_Init ..
8883 N_SCIL_Membership_Test;
8885 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8886 N_Abort_Statement ..
8887 N_If_Statement;
8888 -- Note that this includes all statement types except for the cases of the
8889 -- N_Procedure_Call_Statement which is considered to be a subexpression
8890 -- (since overloading is possible, so it needs to go through the normal
8891 -- overloading resolution for expressions).
8893 subtype N_Subprogram_Call is Node_Kind range
8894 N_Function_Call ..
8895 N_Procedure_Call_Statement;
8897 subtype N_Subprogram_Instantiation is Node_Kind range
8898 N_Function_Instantiation ..
8899 N_Procedure_Instantiation;
8901 subtype N_Has_Condition is Node_Kind range
8902 N_Exit_Statement ..
8903 N_Terminate_Alternative;
8904 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8906 subtype N_Subexpr is Node_Kind range
8907 N_Expanded_Name ..
8908 N_Unchecked_Type_Conversion;
8909 -- Nodes with expression fields
8911 subtype N_Subprogram_Specification is Node_Kind range
8912 N_Function_Specification ..
8913 N_Procedure_Specification;
8915 subtype N_Unary_Op is Node_Kind range
8916 N_Op_Abs ..
8917 N_Op_Plus;
8919 subtype N_Unit_Body is Node_Kind range
8920 N_Package_Body ..
8921 N_Subprogram_Body;
8923 ---------------------------
8924 -- Node Access Functions --
8925 ---------------------------
8927 -- The following functions return the contents of the indicated field of
8928 -- the node referenced by the argument, which is a Node_Id. They provide
8929 -- logical access to fields in the node which could be accessed using the
8930 -- Atree.Unchecked_Access package, but the idea is always to use these
8931 -- higher level routines which preserve strong typing. In debug mode,
8932 -- these routines check that they are being applied to an appropriate
8933 -- node, as well as checking that the node is in range.
8935 function ABE_Is_Certain
8936 (N : Node_Id) return Boolean; -- Flag18
8938 function Abort_Present
8939 (N : Node_Id) return Boolean; -- Flag15
8941 function Abortable_Part
8942 (N : Node_Id) return Node_Id; -- Node2
8944 function Abstract_Present
8945 (N : Node_Id) return Boolean; -- Flag4
8947 function Accept_Handler_Records
8948 (N : Node_Id) return List_Id; -- List5
8950 function Accept_Statement
8951 (N : Node_Id) return Node_Id; -- Node2
8953 function Access_Definition
8954 (N : Node_Id) return Node_Id; -- Node3
8956 function Access_To_Subprogram_Definition
8957 (N : Node_Id) return Node_Id; -- Node3
8959 function Access_Types_To_Process
8960 (N : Node_Id) return Elist_Id; -- Elist2
8962 function Actions
8963 (N : Node_Id) return List_Id; -- List1
8965 function Activation_Chain_Entity
8966 (N : Node_Id) return Node_Id; -- Node3
8968 function Acts_As_Spec
8969 (N : Node_Id) return Boolean; -- Flag4
8971 function Actual_Designated_Subtype
8972 (N : Node_Id) return Node_Id; -- Node4
8974 function Address_Warning_Posted
8975 (N : Node_Id) return Boolean; -- Flag18
8977 function Aggregate_Bounds
8978 (N : Node_Id) return Node_Id; -- Node3
8980 function Aliased_Present
8981 (N : Node_Id) return Boolean; -- Flag4
8983 function All_Others
8984 (N : Node_Id) return Boolean; -- Flag11
8986 function All_Present
8987 (N : Node_Id) return Boolean; -- Flag15
8989 function Alternatives
8990 (N : Node_Id) return List_Id; -- List4
8992 function Ancestor_Part
8993 (N : Node_Id) return Node_Id; -- Node3
8995 function Atomic_Sync_Required
8996 (N : Node_Id) return Boolean; -- Flag14
8998 function Array_Aggregate
8999 (N : Node_Id) return Node_Id; -- Node3
9001 function Aspect_Rep_Item
9002 (N : Node_Id) return Node_Id; -- Node2
9004 function Assignment_OK
9005 (N : Node_Id) return Boolean; -- Flag15
9007 function Associated_Node
9008 (N : Node_Id) return Node_Id; -- Node4
9010 function At_End_Proc
9011 (N : Node_Id) return Node_Id; -- Node1
9013 function Attribute_Name
9014 (N : Node_Id) return Name_Id; -- Name2
9016 function Aux_Decls_Node
9017 (N : Node_Id) return Node_Id; -- Node5
9019 function Backwards_OK
9020 (N : Node_Id) return Boolean; -- Flag6
9022 function Bad_Is_Detected
9023 (N : Node_Id) return Boolean; -- Flag15
9025 function By_Ref
9026 (N : Node_Id) return Boolean; -- Flag5
9028 function Body_Required
9029 (N : Node_Id) return Boolean; -- Flag13
9031 function Body_To_Inline
9032 (N : Node_Id) return Node_Id; -- Node3
9034 function Box_Present
9035 (N : Node_Id) return Boolean; -- Flag15
9037 function Char_Literal_Value
9038 (N : Node_Id) return Uint; -- Uint2
9040 function Chars
9041 (N : Node_Id) return Name_Id; -- Name1
9043 function Check_Address_Alignment
9044 (N : Node_Id) return Boolean; -- Flag11
9046 function Choice_Parameter
9047 (N : Node_Id) return Node_Id; -- Node2
9049 function Choices
9050 (N : Node_Id) return List_Id; -- List1
9052 function Class_Present
9053 (N : Node_Id) return Boolean; -- Flag6
9055 function Classifications
9056 (N : Node_Id) return Node_Id; -- Node3
9058 function Cleanup_Actions
9059 (N : Node_Id) return List_Id; -- List5
9061 function Comes_From_Extended_Return_Statement
9062 (N : Node_Id) return Boolean; -- Flag18
9064 function Compile_Time_Known_Aggregate
9065 (N : Node_Id) return Boolean; -- Flag18
9067 function Component_Associations
9068 (N : Node_Id) return List_Id; -- List2
9070 function Component_Clauses
9071 (N : Node_Id) return List_Id; -- List3
9073 function Component_Definition
9074 (N : Node_Id) return Node_Id; -- Node4
9076 function Component_Items
9077 (N : Node_Id) return List_Id; -- List3
9079 function Component_List
9080 (N : Node_Id) return Node_Id; -- Node1
9082 function Component_Name
9083 (N : Node_Id) return Node_Id; -- Node1
9085 function Componentwise_Assignment
9086 (N : Node_Id) return Boolean; -- Flag14
9088 function Condition
9089 (N : Node_Id) return Node_Id; -- Node1
9091 function Condition_Actions
9092 (N : Node_Id) return List_Id; -- List3
9094 function Config_Pragmas
9095 (N : Node_Id) return List_Id; -- List4
9097 function Constant_Present
9098 (N : Node_Id) return Boolean; -- Flag17
9100 function Constraint
9101 (N : Node_Id) return Node_Id; -- Node3
9103 function Constraints
9104 (N : Node_Id) return List_Id; -- List1
9106 function Context_Installed
9107 (N : Node_Id) return Boolean; -- Flag13
9109 function Context_Pending
9110 (N : Node_Id) return Boolean; -- Flag16
9112 function Context_Items
9113 (N : Node_Id) return List_Id; -- List1
9115 function Contract_Test_Cases
9116 (N : Node_Id) return Node_Id; -- Node2
9118 function Controlling_Argument
9119 (N : Node_Id) return Node_Id; -- Node1
9121 function Conversion_OK
9122 (N : Node_Id) return Boolean; -- Flag14
9124 function Convert_To_Return_False
9125 (N : Node_Id) return Boolean; -- Flag13
9127 function Corresponding_Aspect
9128 (N : Node_Id) return Node_Id; -- Node3
9130 function Corresponding_Body
9131 (N : Node_Id) return Node_Id; -- Node5
9133 function Corresponding_Formal_Spec
9134 (N : Node_Id) return Node_Id; -- Node3
9136 function Corresponding_Generic_Association
9137 (N : Node_Id) return Node_Id; -- Node5
9139 function Corresponding_Integer_Value
9140 (N : Node_Id) return Uint; -- Uint4
9142 function Corresponding_Spec
9143 (N : Node_Id) return Entity_Id; -- Node5
9145 function Corresponding_Spec_Of_Stub
9146 (N : Node_Id) return Node_Id; -- Node2
9148 function Corresponding_Stub
9149 (N : Node_Id) return Node_Id; -- Node3
9151 function Dcheck_Function
9152 (N : Node_Id) return Entity_Id; -- Node5
9154 function Declarations
9155 (N : Node_Id) return List_Id; -- List2
9157 function Default_Expression
9158 (N : Node_Id) return Node_Id; -- Node5
9160 function Default_Storage_Pool
9161 (N : Node_Id) return Node_Id; -- Node3
9163 function Default_Name
9164 (N : Node_Id) return Node_Id; -- Node2
9166 function Defining_Identifier
9167 (N : Node_Id) return Entity_Id; -- Node1
9169 function Defining_Unit_Name
9170 (N : Node_Id) return Node_Id; -- Node1
9172 function Delay_Alternative
9173 (N : Node_Id) return Node_Id; -- Node4
9175 function Delay_Statement
9176 (N : Node_Id) return Node_Id; -- Node2
9178 function Delta_Expression
9179 (N : Node_Id) return Node_Id; -- Node3
9181 function Digits_Expression
9182 (N : Node_Id) return Node_Id; -- Node2
9184 function Discr_Check_Funcs_Built
9185 (N : Node_Id) return Boolean; -- Flag11
9187 function Discrete_Choices
9188 (N : Node_Id) return List_Id; -- List4
9190 function Discrete_Range
9191 (N : Node_Id) return Node_Id; -- Node4
9193 function Discrete_Subtype_Definition
9194 (N : Node_Id) return Node_Id; -- Node4
9196 function Discrete_Subtype_Definitions
9197 (N : Node_Id) return List_Id; -- List2
9199 function Discriminant_Specifications
9200 (N : Node_Id) return List_Id; -- List4
9202 function Discriminant_Type
9203 (N : Node_Id) return Node_Id; -- Node5
9205 function Do_Accessibility_Check
9206 (N : Node_Id) return Boolean; -- Flag13
9208 function Do_Discriminant_Check
9209 (N : Node_Id) return Boolean; -- Flag1
9211 function Do_Division_Check
9212 (N : Node_Id) return Boolean; -- Flag13
9214 function Do_Length_Check
9215 (N : Node_Id) return Boolean; -- Flag4
9217 function Do_Overflow_Check
9218 (N : Node_Id) return Boolean; -- Flag17
9220 function Do_Range_Check
9221 (N : Node_Id) return Boolean; -- Flag9
9223 function Do_Storage_Check
9224 (N : Node_Id) return Boolean; -- Flag17
9226 function Do_Tag_Check
9227 (N : Node_Id) return Boolean; -- Flag13
9229 function Elaborate_All_Desirable
9230 (N : Node_Id) return Boolean; -- Flag9
9232 function Elaborate_All_Present
9233 (N : Node_Id) return Boolean; -- Flag14
9235 function Elaborate_Desirable
9236 (N : Node_Id) return Boolean; -- Flag11
9238 function Elaborate_Present
9239 (N : Node_Id) return Boolean; -- Flag4
9241 function Else_Actions
9242 (N : Node_Id) return List_Id; -- List3
9244 function Else_Statements
9245 (N : Node_Id) return List_Id; -- List4
9247 function Elsif_Parts
9248 (N : Node_Id) return List_Id; -- List3
9250 function Enclosing_Variant
9251 (N : Node_Id) return Node_Id; -- Node2
9253 function End_Label
9254 (N : Node_Id) return Node_Id; -- Node4
9256 function End_Span
9257 (N : Node_Id) return Uint; -- Uint5
9259 function Entity
9260 (N : Node_Id) return Node_Id; -- Node4
9262 function Entity_Or_Associated_Node
9263 (N : Node_Id) return Node_Id; -- Node4
9265 function Entry_Body_Formal_Part
9266 (N : Node_Id) return Node_Id; -- Node5
9268 function Entry_Call_Alternative
9269 (N : Node_Id) return Node_Id; -- Node1
9271 function Entry_Call_Statement
9272 (N : Node_Id) return Node_Id; -- Node1
9274 function Entry_Direct_Name
9275 (N : Node_Id) return Node_Id; -- Node1
9277 function Entry_Index
9278 (N : Node_Id) return Node_Id; -- Node5
9280 function Entry_Index_Specification
9281 (N : Node_Id) return Node_Id; -- Node4
9283 function Etype
9284 (N : Node_Id) return Node_Id; -- Node5
9286 function Exception_Choices
9287 (N : Node_Id) return List_Id; -- List4
9289 function Exception_Handlers
9290 (N : Node_Id) return List_Id; -- List5
9292 function Exception_Junk
9293 (N : Node_Id) return Boolean; -- Flag8
9295 function Exception_Label
9296 (N : Node_Id) return Node_Id; -- Node5
9298 function Explicit_Actual_Parameter
9299 (N : Node_Id) return Node_Id; -- Node3
9301 function Expansion_Delayed
9302 (N : Node_Id) return Boolean; -- Flag11
9304 function Explicit_Generic_Actual_Parameter
9305 (N : Node_Id) return Node_Id; -- Node1
9307 function Expression
9308 (N : Node_Id) return Node_Id; -- Node3
9310 function Expression_Copy
9311 (N : Node_Id) return Node_Id; -- Node2
9313 function Expressions
9314 (N : Node_Id) return List_Id; -- List1
9316 function First_Bit
9317 (N : Node_Id) return Node_Id; -- Node3
9319 function First_Inlined_Subprogram
9320 (N : Node_Id) return Entity_Id; -- Node3
9322 function First_Name
9323 (N : Node_Id) return Boolean; -- Flag5
9325 function First_Named_Actual
9326 (N : Node_Id) return Node_Id; -- Node4
9328 function First_Real_Statement
9329 (N : Node_Id) return Node_Id; -- Node2
9331 function First_Subtype_Link
9332 (N : Node_Id) return Entity_Id; -- Node5
9334 function Float_Truncate
9335 (N : Node_Id) return Boolean; -- Flag11
9337 function Formal_Type_Definition
9338 (N : Node_Id) return Node_Id; -- Node3
9340 function Forwards_OK
9341 (N : Node_Id) return Boolean; -- Flag5
9343 function From_Aspect_Specification
9344 (N : Node_Id) return Boolean; -- Flag13
9346 function From_At_End
9347 (N : Node_Id) return Boolean; -- Flag4
9349 function From_At_Mod
9350 (N : Node_Id) return Boolean; -- Flag4
9352 function From_Conditional_Expression
9353 (N : Node_Id) return Boolean; -- Flag1
9355 function From_Default
9356 (N : Node_Id) return Boolean; -- Flag6
9358 function Generalized_Indexing
9359 (N : Node_Id) return Node_Id; -- Node4
9360 function Generic_Associations
9361 (N : Node_Id) return List_Id; -- List3
9363 function Generic_Formal_Declarations
9364 (N : Node_Id) return List_Id; -- List2
9366 function Generic_Parent
9367 (N : Node_Id) return Node_Id; -- Node5
9369 function Generic_Parent_Type
9370 (N : Node_Id) return Node_Id; -- Node4
9372 function Handled_Statement_Sequence
9373 (N : Node_Id) return Node_Id; -- Node4
9375 function Handler_List_Entry
9376 (N : Node_Id) return Node_Id; -- Node2
9378 function Has_Created_Identifier
9379 (N : Node_Id) return Boolean; -- Flag15
9381 function Has_Dereference_Action
9382 (N : Node_Id) return Boolean; -- Flag13
9384 function Has_Dynamic_Length_Check
9385 (N : Node_Id) return Boolean; -- Flag10
9387 function Has_Dynamic_Range_Check
9388 (N : Node_Id) return Boolean; -- Flag12
9390 function Has_Init_Expression
9391 (N : Node_Id) return Boolean; -- Flag14
9393 function Has_Local_Raise
9394 (N : Node_Id) return Boolean; -- Flag8
9396 function Has_No_Elaboration_Code
9397 (N : Node_Id) return Boolean; -- Flag17
9399 function Has_Pragma_Suppress_All
9400 (N : Node_Id) return Boolean; -- Flag14
9402 function Has_Private_View
9403 (N : Node_Id) return Boolean; -- Flag11
9405 function Has_Relative_Deadline_Pragma
9406 (N : Node_Id) return Boolean; -- Flag9
9408 function Has_Self_Reference
9409 (N : Node_Id) return Boolean; -- Flag13
9411 function Has_SP_Choice
9412 (N : Node_Id) return Boolean; -- Flag15
9414 function Has_Storage_Size_Pragma
9415 (N : Node_Id) return Boolean; -- Flag5
9417 function Has_Target_Names
9418 (N : Node_Id) return Boolean; -- Flag8
9420 function Has_Wide_Character
9421 (N : Node_Id) return Boolean; -- Flag11
9423 function Has_Wide_Wide_Character
9424 (N : Node_Id) return Boolean; -- Flag13
9426 function Header_Size_Added
9427 (N : Node_Id) return Boolean; -- Flag11
9429 function Hidden_By_Use_Clause
9430 (N : Node_Id) return Elist_Id; -- Elist4
9432 function High_Bound
9433 (N : Node_Id) return Node_Id; -- Node2
9435 function Identifier
9436 (N : Node_Id) return Node_Id; -- Node1
9438 function Interface_List
9439 (N : Node_Id) return List_Id; -- List2
9441 function Interface_Present
9442 (N : Node_Id) return Boolean; -- Flag16
9444 function Implicit_With
9445 (N : Node_Id) return Boolean; -- Flag16
9447 function Implicit_With_From_Instantiation
9448 (N : Node_Id) return Boolean; -- Flag12
9450 function Import_Interface_Present
9451 (N : Node_Id) return Boolean; -- Flag16
9453 function In_Present
9454 (N : Node_Id) return Boolean; -- Flag15
9456 function Includes_Infinities
9457 (N : Node_Id) return Boolean; -- Flag11
9459 function Incomplete_View
9460 (N : Node_Id) return Node_Id; -- Node2
9462 function Inherited_Discriminant
9463 (N : Node_Id) return Boolean; -- Flag13
9465 function Instance_Spec
9466 (N : Node_Id) return Node_Id; -- Node5
9468 function Intval
9469 (N : Node_Id) return Uint; -- Uint3
9471 function Is_Abort_Block
9472 (N : Node_Id) return Boolean; -- Flag4
9474 function Is_Accessibility_Actual
9475 (N : Node_Id) return Boolean; -- Flag13
9477 function Is_Analyzed_Pragma
9478 (N : Node_Id) return Boolean; -- Flag5
9480 function Is_Asynchronous_Call_Block
9481 (N : Node_Id) return Boolean; -- Flag7
9483 function Is_Boolean_Aspect
9484 (N : Node_Id) return Boolean; -- Flag16
9486 function Is_Checked
9487 (N : Node_Id) return Boolean; -- Flag11
9489 function Is_Checked_Ghost_Pragma
9490 (N : Node_Id) return Boolean; -- Flag3
9492 function Is_Component_Left_Opnd
9493 (N : Node_Id) return Boolean; -- Flag13
9495 function Is_Component_Right_Opnd
9496 (N : Node_Id) return Boolean; -- Flag14
9498 function Is_Controlling_Actual
9499 (N : Node_Id) return Boolean; -- Flag16
9501 function Is_Delayed_Aspect
9502 (N : Node_Id) return Boolean; -- Flag14
9504 function Is_Disabled
9505 (N : Node_Id) return Boolean; -- Flag15
9507 function Is_Dynamic_Coextension
9508 (N : Node_Id) return Boolean; -- Flag18
9510 function Is_Elsif
9511 (N : Node_Id) return Boolean; -- Flag13
9513 function Is_Entry_Barrier_Function
9514 (N : Node_Id) return Boolean; -- Flag8
9516 function Is_Expanded_Build_In_Place_Call
9517 (N : Node_Id) return Boolean; -- Flag11
9519 function Is_Expanded_Contract
9520 (N : Node_Id) return Boolean; -- Flag1
9522 function Is_Finalization_Wrapper
9523 (N : Node_Id) return Boolean; -- Flag9
9525 function Is_Folded_In_Parser
9526 (N : Node_Id) return Boolean; -- Flag4
9528 function Is_Generic_Contract_Pragma
9529 (N : Node_Id) return Boolean; -- Flag2
9531 function Is_Ignored
9532 (N : Node_Id) return Boolean; -- Flag9
9534 function Is_Ignored_Ghost_Pragma
9535 (N : Node_Id) return Boolean; -- Flag8
9537 function Is_In_Discriminant_Check
9538 (N : Node_Id) return Boolean; -- Flag11
9540 function Is_Inherited_Pragma
9541 (N : Node_Id) return Boolean; -- Flag4
9543 function Is_Machine_Number
9544 (N : Node_Id) return Boolean; -- Flag11
9546 function Is_Null_Loop
9547 (N : Node_Id) return Boolean; -- Flag16
9549 function Is_Overloaded
9550 (N : Node_Id) return Boolean; -- Flag5
9552 function Is_Power_Of_2_For_Shift
9553 (N : Node_Id) return Boolean; -- Flag13
9555 function Is_Prefixed_Call
9556 (N : Node_Id) return Boolean; -- Flag17
9558 function Is_Protected_Subprogram_Body
9559 (N : Node_Id) return Boolean; -- Flag7
9561 function Is_Qualified_Universal_Literal
9562 (N : Node_Id) return Boolean; -- Flag4
9564 function Is_Static_Coextension
9565 (N : Node_Id) return Boolean; -- Flag14
9567 function Is_Static_Expression
9568 (N : Node_Id) return Boolean; -- Flag6
9570 function Is_Subprogram_Descriptor
9571 (N : Node_Id) return Boolean; -- Flag16
9573 function Is_Task_Allocation_Block
9574 (N : Node_Id) return Boolean; -- Flag6
9576 function Is_Task_Body_Procedure
9577 (N : Node_Id) return Boolean; -- Flag1
9579 function Is_Task_Master
9580 (N : Node_Id) return Boolean; -- Flag5
9582 function Iteration_Scheme
9583 (N : Node_Id) return Node_Id; -- Node2
9585 function Iterator_Specification
9586 (N : Node_Id) return Node_Id; -- Node2
9588 function Itype
9589 (N : Node_Id) return Entity_Id; -- Node1
9591 function Kill_Range_Check
9592 (N : Node_Id) return Boolean; -- Flag11
9594 function Label_Construct
9595 (N : Node_Id) return Node_Id; -- Node2
9597 function Left_Opnd
9598 (N : Node_Id) return Node_Id; -- Node2
9600 function Last_Bit
9601 (N : Node_Id) return Node_Id; -- Node4
9603 function Last_Name
9604 (N : Node_Id) return Boolean; -- Flag6
9606 function Library_Unit
9607 (N : Node_Id) return Node_Id; -- Node4
9609 function Limited_View_Installed
9610 (N : Node_Id) return Boolean; -- Flag18
9612 function Limited_Present
9613 (N : Node_Id) return Boolean; -- Flag17
9615 function Literals
9616 (N : Node_Id) return List_Id; -- List1
9618 function Local_Raise_Not_OK
9619 (N : Node_Id) return Boolean; -- Flag7
9621 function Local_Raise_Statements
9622 (N : Node_Id) return Elist_Id; -- Elist1
9624 function Loop_Actions
9625 (N : Node_Id) return List_Id; -- List2
9627 function Loop_Parameter_Specification
9628 (N : Node_Id) return Node_Id; -- Node4
9630 function Low_Bound
9631 (N : Node_Id) return Node_Id; -- Node1
9633 function Mod_Clause
9634 (N : Node_Id) return Node_Id; -- Node2
9636 function More_Ids
9637 (N : Node_Id) return Boolean; -- Flag5
9639 function Must_Be_Byte_Aligned
9640 (N : Node_Id) return Boolean; -- Flag14
9642 function Must_Not_Freeze
9643 (N : Node_Id) return Boolean; -- Flag8
9645 function Must_Not_Override
9646 (N : Node_Id) return Boolean; -- Flag15
9648 function Must_Override
9649 (N : Node_Id) return Boolean; -- Flag14
9651 function Name
9652 (N : Node_Id) return Node_Id; -- Node2
9654 function Names
9655 (N : Node_Id) return List_Id; -- List2
9657 function Next_Entity
9658 (N : Node_Id) return Node_Id; -- Node2
9660 function Next_Exit_Statement
9661 (N : Node_Id) return Node_Id; -- Node3
9663 function Next_Implicit_With
9664 (N : Node_Id) return Node_Id; -- Node3
9666 function Next_Named_Actual
9667 (N : Node_Id) return Node_Id; -- Node4
9669 function Next_Pragma
9670 (N : Node_Id) return Node_Id; -- Node1
9672 function Next_Rep_Item
9673 (N : Node_Id) return Node_Id; -- Node5
9675 function Next_Use_Clause
9676 (N : Node_Id) return Node_Id; -- Node3
9678 function No_Ctrl_Actions
9679 (N : Node_Id) return Boolean; -- Flag7
9681 function No_Elaboration_Check
9682 (N : Node_Id) return Boolean; -- Flag14
9684 function No_Entities_Ref_In_Spec
9685 (N : Node_Id) return Boolean; -- Flag8
9687 function No_Initialization
9688 (N : Node_Id) return Boolean; -- Flag13
9690 function No_Minimize_Eliminate
9691 (N : Node_Id) return Boolean; -- Flag17
9693 function No_Side_Effect_Removal
9694 (N : Node_Id) return Boolean; -- Flag1
9696 function No_Truncation
9697 (N : Node_Id) return Boolean; -- Flag17
9699 function Non_Aliased_Prefix
9700 (N : Node_Id) return Boolean; -- Flag18
9702 function Null_Present
9703 (N : Node_Id) return Boolean; -- Flag13
9705 function Null_Excluding_Subtype
9706 (N : Node_Id) return Boolean; -- Flag16
9708 function Null_Exclusion_Present
9709 (N : Node_Id) return Boolean; -- Flag11
9711 function Null_Exclusion_In_Return_Present
9712 (N : Node_Id) return Boolean; -- Flag14
9714 function Null_Record_Present
9715 (N : Node_Id) return Boolean; -- Flag17
9717 function Object_Definition
9718 (N : Node_Id) return Node_Id; -- Node4
9720 function Of_Present
9721 (N : Node_Id) return Boolean; -- Flag16
9723 function Original_Discriminant
9724 (N : Node_Id) return Node_Id; -- Node2
9726 function Original_Entity
9727 (N : Node_Id) return Entity_Id; -- Node2
9729 function Others_Discrete_Choices
9730 (N : Node_Id) return List_Id; -- List1
9732 function Out_Present
9733 (N : Node_Id) return Boolean; -- Flag17
9735 function Parameter_Associations
9736 (N : Node_Id) return List_Id; -- List3
9738 function Parameter_Specifications
9739 (N : Node_Id) return List_Id; -- List3
9741 function Parameter_Type
9742 (N : Node_Id) return Node_Id; -- Node2
9744 function Parent_Spec
9745 (N : Node_Id) return Node_Id; -- Node4
9747 function Position
9748 (N : Node_Id) return Node_Id; -- Node2
9750 function Pragma_Argument_Associations
9751 (N : Node_Id) return List_Id; -- List2
9753 function Pragma_Identifier
9754 (N : Node_Id) return Node_Id; -- Node4
9756 function Pragmas_After
9757 (N : Node_Id) return List_Id; -- List5
9759 function Pragmas_Before
9760 (N : Node_Id) return List_Id; -- List4
9762 function Pre_Post_Conditions
9763 (N : Node_Id) return Node_Id; -- Node1
9765 function Prefix
9766 (N : Node_Id) return Node_Id; -- Node3
9768 function Premature_Use
9769 (N : Node_Id) return Node_Id; -- Node5
9771 function Present_Expr
9772 (N : Node_Id) return Uint; -- Uint3
9774 function Prev_Ids
9775 (N : Node_Id) return Boolean; -- Flag6
9777 function Print_In_Hex
9778 (N : Node_Id) return Boolean; -- Flag13
9780 function Private_Declarations
9781 (N : Node_Id) return List_Id; -- List3
9783 function Private_Present
9784 (N : Node_Id) return Boolean; -- Flag15
9786 function Procedure_To_Call
9787 (N : Node_Id) return Node_Id; -- Node2
9789 function Proper_Body
9790 (N : Node_Id) return Node_Id; -- Node1
9792 function Protected_Definition
9793 (N : Node_Id) return Node_Id; -- Node3
9795 function Protected_Present
9796 (N : Node_Id) return Boolean; -- Flag6
9798 function Raises_Constraint_Error
9799 (N : Node_Id) return Boolean; -- Flag7
9801 function Range_Constraint
9802 (N : Node_Id) return Node_Id; -- Node4
9804 function Range_Expression
9805 (N : Node_Id) return Node_Id; -- Node4
9807 function Real_Range_Specification
9808 (N : Node_Id) return Node_Id; -- Node4
9810 function Realval
9811 (N : Node_Id) return Ureal; -- Ureal3
9813 function Reason
9814 (N : Node_Id) return Uint; -- Uint3
9816 function Record_Extension_Part
9817 (N : Node_Id) return Node_Id; -- Node3
9819 function Redundant_Use
9820 (N : Node_Id) return Boolean; -- Flag13
9822 function Renaming_Exception
9823 (N : Node_Id) return Node_Id; -- Node2
9825 function Result_Definition
9826 (N : Node_Id) return Node_Id; -- Node4
9828 function Return_Object_Declarations
9829 (N : Node_Id) return List_Id; -- List3
9831 function Return_Statement_Entity
9832 (N : Node_Id) return Node_Id; -- Node5
9834 function Reverse_Present
9835 (N : Node_Id) return Boolean; -- Flag15
9837 function Right_Opnd
9838 (N : Node_Id) return Node_Id; -- Node3
9840 function Rounded_Result
9841 (N : Node_Id) return Boolean; -- Flag18
9843 function SCIL_Controlling_Tag
9844 (N : Node_Id) return Node_Id; -- Node5
9846 function SCIL_Entity
9847 (N : Node_Id) return Node_Id; -- Node4
9849 function SCIL_Tag_Value
9850 (N : Node_Id) return Node_Id; -- Node5
9852 function SCIL_Target_Prim
9853 (N : Node_Id) return Node_Id; -- Node2
9855 function Scope
9856 (N : Node_Id) return Node_Id; -- Node3
9858 function Select_Alternatives
9859 (N : Node_Id) return List_Id; -- List1
9861 function Selector_Name
9862 (N : Node_Id) return Node_Id; -- Node2
9864 function Selector_Names
9865 (N : Node_Id) return List_Id; -- List1
9867 function Shift_Count_OK
9868 (N : Node_Id) return Boolean; -- Flag4
9870 function Source_Type
9871 (N : Node_Id) return Entity_Id; -- Node1
9873 function Specification
9874 (N : Node_Id) return Node_Id; -- Node1
9876 function Split_PPC
9877 (N : Node_Id) return Boolean; -- Flag17
9879 function Statements
9880 (N : Node_Id) return List_Id; -- List3
9882 function Storage_Pool
9883 (N : Node_Id) return Node_Id; -- Node1
9885 function Subpool_Handle_Name
9886 (N : Node_Id) return Node_Id; -- Node4
9888 function Strval
9889 (N : Node_Id) return String_Id; -- Str3
9891 function Subtype_Indication
9892 (N : Node_Id) return Node_Id; -- Node5
9894 function Subtype_Mark
9895 (N : Node_Id) return Node_Id; -- Node4
9897 function Subtype_Marks
9898 (N : Node_Id) return List_Id; -- List2
9900 function Suppress_Assignment_Checks
9901 (N : Node_Id) return Boolean; -- Flag18
9903 function Suppress_Loop_Warnings
9904 (N : Node_Id) return Boolean; -- Flag17
9906 function Synchronized_Present
9907 (N : Node_Id) return Boolean; -- Flag7
9909 function Tagged_Present
9910 (N : Node_Id) return Boolean; -- Flag15
9912 function Target_Type
9913 (N : Node_Id) return Entity_Id; -- Node2
9915 function Task_Definition
9916 (N : Node_Id) return Node_Id; -- Node3
9918 function Task_Present
9919 (N : Node_Id) return Boolean; -- Flag5
9921 function Then_Actions
9922 (N : Node_Id) return List_Id; -- List2
9924 function Then_Statements
9925 (N : Node_Id) return List_Id; -- List2
9927 function Treat_Fixed_As_Integer
9928 (N : Node_Id) return Boolean; -- Flag14
9930 function Triggering_Alternative
9931 (N : Node_Id) return Node_Id; -- Node1
9933 function Triggering_Statement
9934 (N : Node_Id) return Node_Id; -- Node1
9936 function TSS_Elist
9937 (N : Node_Id) return Elist_Id; -- Elist3
9939 function Type_Definition
9940 (N : Node_Id) return Node_Id; -- Node3
9942 function Uneval_Old_Accept
9943 (N : Node_Id) return Boolean; -- Flag7
9945 function Uneval_Old_Warn
9946 (N : Node_Id) return Boolean; -- Flag18
9948 function Unit
9949 (N : Node_Id) return Node_Id; -- Node2
9951 function Unknown_Discriminants_Present
9952 (N : Node_Id) return Boolean; -- Flag13
9954 function Unreferenced_In_Spec
9955 (N : Node_Id) return Boolean; -- Flag7
9957 function Variant_Part
9958 (N : Node_Id) return Node_Id; -- Node4
9960 function Variants
9961 (N : Node_Id) return List_Id; -- List1
9963 function Visible_Declarations
9964 (N : Node_Id) return List_Id; -- List2
9966 function Uninitialized_Variable
9967 (N : Node_Id) return Node_Id; -- Node3
9969 function Used_Operations
9970 (N : Node_Id) return Elist_Id; -- Elist5
9972 function Was_Expression_Function
9973 (N : Node_Id) return Boolean; -- Flag18
9975 function Was_Originally_Stub
9976 (N : Node_Id) return Boolean; -- Flag13
9978 function Withed_Body
9979 (N : Node_Id) return Node_Id; -- Node1
9981 -- End functions (note used by xsinfo utility program to end processing)
9983 ----------------------------
9984 -- Node Update Procedures --
9985 ----------------------------
9987 -- These are the corresponding node update routines, which again provide
9988 -- a high level logical access with type checking. In addition to setting
9989 -- the indicated field of the node N to the given Val, in the case of
9990 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9991 -- point back to node N. This automates the setting of the parent pointer.
9993 procedure Set_ABE_Is_Certain
9994 (N : Node_Id; Val : Boolean := True); -- Flag18
9996 procedure Set_Abort_Present
9997 (N : Node_Id; Val : Boolean := True); -- Flag15
9999 procedure Set_Abortable_Part
10000 (N : Node_Id; Val : Node_Id); -- Node2
10002 procedure Set_Abstract_Present
10003 (N : Node_Id; Val : Boolean := True); -- Flag4
10005 procedure Set_Accept_Handler_Records
10006 (N : Node_Id; Val : List_Id); -- List5
10008 procedure Set_Accept_Statement
10009 (N : Node_Id; Val : Node_Id); -- Node2
10011 procedure Set_Access_Definition
10012 (N : Node_Id; Val : Node_Id); -- Node3
10014 procedure Set_Access_To_Subprogram_Definition
10015 (N : Node_Id; Val : Node_Id); -- Node3
10017 procedure Set_Access_Types_To_Process
10018 (N : Node_Id; Val : Elist_Id); -- Elist2
10020 procedure Set_Actions
10021 (N : Node_Id; Val : List_Id); -- List1
10023 procedure Set_Activation_Chain_Entity
10024 (N : Node_Id; Val : Node_Id); -- Node3
10026 procedure Set_Acts_As_Spec
10027 (N : Node_Id; Val : Boolean := True); -- Flag4
10029 procedure Set_Actual_Designated_Subtype
10030 (N : Node_Id; Val : Node_Id); -- Node4
10032 procedure Set_Address_Warning_Posted
10033 (N : Node_Id; Val : Boolean := True); -- Flag18
10035 procedure Set_Aggregate_Bounds
10036 (N : Node_Id; Val : Node_Id); -- Node3
10038 procedure Set_Aliased_Present
10039 (N : Node_Id; Val : Boolean := True); -- Flag4
10041 procedure Set_All_Others
10042 (N : Node_Id; Val : Boolean := True); -- Flag11
10044 procedure Set_All_Present
10045 (N : Node_Id; Val : Boolean := True); -- Flag15
10047 procedure Set_Alternatives
10048 (N : Node_Id; Val : List_Id); -- List4
10050 procedure Set_Ancestor_Part
10051 (N : Node_Id; Val : Node_Id); -- Node3
10053 procedure Set_Atomic_Sync_Required
10054 (N : Node_Id; Val : Boolean := True); -- Flag14
10056 procedure Set_Array_Aggregate
10057 (N : Node_Id; Val : Node_Id); -- Node3
10059 procedure Set_Aspect_Rep_Item
10060 (N : Node_Id; Val : Node_Id); -- Node2
10062 procedure Set_Assignment_OK
10063 (N : Node_Id; Val : Boolean := True); -- Flag15
10065 procedure Set_Associated_Node
10066 (N : Node_Id; Val : Node_Id); -- Node4
10068 procedure Set_Attribute_Name
10069 (N : Node_Id; Val : Name_Id); -- Name2
10071 procedure Set_At_End_Proc
10072 (N : Node_Id; Val : Node_Id); -- Node1
10074 procedure Set_Aux_Decls_Node
10075 (N : Node_Id; Val : Node_Id); -- Node5
10077 procedure Set_Backwards_OK
10078 (N : Node_Id; Val : Boolean := True); -- Flag6
10080 procedure Set_Bad_Is_Detected
10081 (N : Node_Id; Val : Boolean := True); -- Flag15
10083 procedure Set_Body_Required
10084 (N : Node_Id; Val : Boolean := True); -- Flag13
10086 procedure Set_Body_To_Inline
10087 (N : Node_Id; Val : Node_Id); -- Node3
10089 procedure Set_Box_Present
10090 (N : Node_Id; Val : Boolean := True); -- Flag15
10092 procedure Set_By_Ref
10093 (N : Node_Id; Val : Boolean := True); -- Flag5
10095 procedure Set_Char_Literal_Value
10096 (N : Node_Id; Val : Uint); -- Uint2
10098 procedure Set_Chars
10099 (N : Node_Id; Val : Name_Id); -- Name1
10101 procedure Set_Check_Address_Alignment
10102 (N : Node_Id; Val : Boolean := True); -- Flag11
10104 procedure Set_Choice_Parameter
10105 (N : Node_Id; Val : Node_Id); -- Node2
10107 procedure Set_Choices
10108 (N : Node_Id; Val : List_Id); -- List1
10110 procedure Set_Class_Present
10111 (N : Node_Id; Val : Boolean := True); -- Flag6
10113 procedure Set_Classifications
10114 (N : Node_Id; Val : Node_Id); -- Node3
10116 procedure Set_Cleanup_Actions
10117 (N : Node_Id; Val : List_Id); -- List5
10119 procedure Set_Comes_From_Extended_Return_Statement
10120 (N : Node_Id; Val : Boolean := True); -- Flag18
10122 procedure Set_Compile_Time_Known_Aggregate
10123 (N : Node_Id; Val : Boolean := True); -- Flag18
10125 procedure Set_Component_Associations
10126 (N : Node_Id; Val : List_Id); -- List2
10128 procedure Set_Component_Clauses
10129 (N : Node_Id; Val : List_Id); -- List3
10131 procedure Set_Component_Definition
10132 (N : Node_Id; Val : Node_Id); -- Node4
10134 procedure Set_Component_Items
10135 (N : Node_Id; Val : List_Id); -- List3
10137 procedure Set_Component_List
10138 (N : Node_Id; Val : Node_Id); -- Node1
10140 procedure Set_Component_Name
10141 (N : Node_Id; Val : Node_Id); -- Node1
10143 procedure Set_Componentwise_Assignment
10144 (N : Node_Id; Val : Boolean := True); -- Flag14
10146 procedure Set_Condition
10147 (N : Node_Id; Val : Node_Id); -- Node1
10149 procedure Set_Condition_Actions
10150 (N : Node_Id; Val : List_Id); -- List3
10152 procedure Set_Config_Pragmas
10153 (N : Node_Id; Val : List_Id); -- List4
10155 procedure Set_Constant_Present
10156 (N : Node_Id; Val : Boolean := True); -- Flag17
10158 procedure Set_Constraint
10159 (N : Node_Id; Val : Node_Id); -- Node3
10161 procedure Set_Constraints
10162 (N : Node_Id; Val : List_Id); -- List1
10164 procedure Set_Context_Installed
10165 (N : Node_Id; Val : Boolean := True); -- Flag13
10167 procedure Set_Context_Items
10168 (N : Node_Id; Val : List_Id); -- List1
10170 procedure Set_Context_Pending
10171 (N : Node_Id; Val : Boolean := True); -- Flag16
10173 procedure Set_Contract_Test_Cases
10174 (N : Node_Id; Val : Node_Id); -- Node2
10176 procedure Set_Controlling_Argument
10177 (N : Node_Id; Val : Node_Id); -- Node1
10179 procedure Set_Conversion_OK
10180 (N : Node_Id; Val : Boolean := True); -- Flag14
10182 procedure Set_Convert_To_Return_False
10183 (N : Node_Id; Val : Boolean := True); -- Flag13
10185 procedure Set_Corresponding_Aspect
10186 (N : Node_Id; Val : Node_Id); -- Node3
10188 procedure Set_Corresponding_Body
10189 (N : Node_Id; Val : Node_Id); -- Node5
10191 procedure Set_Corresponding_Formal_Spec
10192 (N : Node_Id; Val : Node_Id); -- Node3
10194 procedure Set_Corresponding_Generic_Association
10195 (N : Node_Id; Val : Node_Id); -- Node5
10197 procedure Set_Corresponding_Integer_Value
10198 (N : Node_Id; Val : Uint); -- Uint4
10200 procedure Set_Corresponding_Spec
10201 (N : Node_Id; Val : Entity_Id); -- Node5
10203 procedure Set_Corresponding_Spec_Of_Stub
10204 (N : Node_Id; Val : Node_Id); -- Node2
10206 procedure Set_Corresponding_Stub
10207 (N : Node_Id; Val : Node_Id); -- Node3
10209 procedure Set_Dcheck_Function
10210 (N : Node_Id; Val : Entity_Id); -- Node5
10212 procedure Set_Declarations
10213 (N : Node_Id; Val : List_Id); -- List2
10215 procedure Set_Default_Expression
10216 (N : Node_Id; Val : Node_Id); -- Node5
10218 procedure Set_Default_Storage_Pool
10219 (N : Node_Id; Val : Node_Id); -- Node3
10221 procedure Set_Default_Name
10222 (N : Node_Id; Val : Node_Id); -- Node2
10224 procedure Set_Defining_Identifier
10225 (N : Node_Id; Val : Entity_Id); -- Node1
10227 procedure Set_Defining_Unit_Name
10228 (N : Node_Id; Val : Node_Id); -- Node1
10230 procedure Set_Delay_Alternative
10231 (N : Node_Id; Val : Node_Id); -- Node4
10233 procedure Set_Delay_Statement
10234 (N : Node_Id; Val : Node_Id); -- Node2
10236 procedure Set_Delta_Expression
10237 (N : Node_Id; Val : Node_Id); -- Node3
10239 procedure Set_Digits_Expression
10240 (N : Node_Id; Val : Node_Id); -- Node2
10242 procedure Set_Discr_Check_Funcs_Built
10243 (N : Node_Id; Val : Boolean := True); -- Flag11
10245 procedure Set_Discrete_Choices
10246 (N : Node_Id; Val : List_Id); -- List4
10248 procedure Set_Discrete_Range
10249 (N : Node_Id; Val : Node_Id); -- Node4
10251 procedure Set_Discrete_Subtype_Definition
10252 (N : Node_Id; Val : Node_Id); -- Node4
10254 procedure Set_Discrete_Subtype_Definitions
10255 (N : Node_Id; Val : List_Id); -- List2
10257 procedure Set_Discriminant_Specifications
10258 (N : Node_Id; Val : List_Id); -- List4
10260 procedure Set_Discriminant_Type
10261 (N : Node_Id; Val : Node_Id); -- Node5
10263 procedure Set_Do_Accessibility_Check
10264 (N : Node_Id; Val : Boolean := True); -- Flag13
10266 procedure Set_Do_Discriminant_Check
10267 (N : Node_Id; Val : Boolean := True); -- Flag1
10269 procedure Set_Do_Division_Check
10270 (N : Node_Id; Val : Boolean := True); -- Flag13
10272 procedure Set_Do_Length_Check
10273 (N : Node_Id; Val : Boolean := True); -- Flag4
10275 procedure Set_Do_Overflow_Check
10276 (N : Node_Id; Val : Boolean := True); -- Flag17
10278 procedure Set_Do_Range_Check
10279 (N : Node_Id; Val : Boolean := True); -- Flag9
10281 procedure Set_Do_Storage_Check
10282 (N : Node_Id; Val : Boolean := True); -- Flag17
10284 procedure Set_Do_Tag_Check
10285 (N : Node_Id; Val : Boolean := True); -- Flag13
10287 procedure Set_Elaborate_All_Desirable
10288 (N : Node_Id; Val : Boolean := True); -- Flag9
10290 procedure Set_Elaborate_All_Present
10291 (N : Node_Id; Val : Boolean := True); -- Flag14
10293 procedure Set_Elaborate_Desirable
10294 (N : Node_Id; Val : Boolean := True); -- Flag11
10296 procedure Set_Elaborate_Present
10297 (N : Node_Id; Val : Boolean := True); -- Flag4
10299 procedure Set_Else_Actions
10300 (N : Node_Id; Val : List_Id); -- List3
10302 procedure Set_Else_Statements
10303 (N : Node_Id; Val : List_Id); -- List4
10305 procedure Set_Elsif_Parts
10306 (N : Node_Id; Val : List_Id); -- List3
10308 procedure Set_Enclosing_Variant
10309 (N : Node_Id; Val : Node_Id); -- Node2
10311 procedure Set_End_Label
10312 (N : Node_Id; Val : Node_Id); -- Node4
10314 procedure Set_End_Span
10315 (N : Node_Id; Val : Uint); -- Uint5
10317 procedure Set_Entity
10318 (N : Node_Id; Val : Node_Id); -- Node4
10320 procedure Set_Entry_Body_Formal_Part
10321 (N : Node_Id; Val : Node_Id); -- Node5
10323 procedure Set_Entry_Call_Alternative
10324 (N : Node_Id; Val : Node_Id); -- Node1
10326 procedure Set_Entry_Call_Statement
10327 (N : Node_Id; Val : Node_Id); -- Node1
10329 procedure Set_Entry_Direct_Name
10330 (N : Node_Id; Val : Node_Id); -- Node1
10332 procedure Set_Entry_Index
10333 (N : Node_Id; Val : Node_Id); -- Node5
10335 procedure Set_Entry_Index_Specification
10336 (N : Node_Id; Val : Node_Id); -- Node4
10338 procedure Set_Etype
10339 (N : Node_Id; Val : Node_Id); -- Node5
10341 procedure Set_Exception_Choices
10342 (N : Node_Id; Val : List_Id); -- List4
10344 procedure Set_Exception_Handlers
10345 (N : Node_Id; Val : List_Id); -- List5
10347 procedure Set_Exception_Junk
10348 (N : Node_Id; Val : Boolean := True); -- Flag8
10350 procedure Set_Exception_Label
10351 (N : Node_Id; Val : Node_Id); -- Node5
10353 procedure Set_Expansion_Delayed
10354 (N : Node_Id; Val : Boolean := True); -- Flag11
10356 procedure Set_Explicit_Actual_Parameter
10357 (N : Node_Id; Val : Node_Id); -- Node3
10359 procedure Set_Explicit_Generic_Actual_Parameter
10360 (N : Node_Id; Val : Node_Id); -- Node1
10362 procedure Set_Expression
10363 (N : Node_Id; Val : Node_Id); -- Node3
10365 procedure Set_Expression_Copy
10366 (N : Node_Id; Val : Node_Id); -- Node2
10368 procedure Set_Expressions
10369 (N : Node_Id; Val : List_Id); -- List1
10371 procedure Set_First_Bit
10372 (N : Node_Id; Val : Node_Id); -- Node3
10374 procedure Set_First_Inlined_Subprogram
10375 (N : Node_Id; Val : Entity_Id); -- Node3
10377 procedure Set_First_Name
10378 (N : Node_Id; Val : Boolean := True); -- Flag5
10380 procedure Set_First_Named_Actual
10381 (N : Node_Id; Val : Node_Id); -- Node4
10383 procedure Set_First_Real_Statement
10384 (N : Node_Id; Val : Node_Id); -- Node2
10386 procedure Set_First_Subtype_Link
10387 (N : Node_Id; Val : Entity_Id); -- Node5
10389 procedure Set_Float_Truncate
10390 (N : Node_Id; Val : Boolean := True); -- Flag11
10392 procedure Set_Formal_Type_Definition
10393 (N : Node_Id; Val : Node_Id); -- Node3
10395 procedure Set_Forwards_OK
10396 (N : Node_Id; Val : Boolean := True); -- Flag5
10398 procedure Set_From_Aspect_Specification
10399 (N : Node_Id; Val : Boolean := True); -- Flag13
10401 procedure Set_From_At_End
10402 (N : Node_Id; Val : Boolean := True); -- Flag4
10404 procedure Set_From_At_Mod
10405 (N : Node_Id; Val : Boolean := True); -- Flag4
10407 procedure Set_From_Conditional_Expression
10408 (N : Node_Id; Val : Boolean := True); -- Flag1
10410 procedure Set_From_Default
10411 (N : Node_Id; Val : Boolean := True); -- Flag6
10413 procedure Set_Generalized_Indexing
10414 (N : Node_Id; Val : Node_Id); -- Node4
10416 procedure Set_Generic_Associations
10417 (N : Node_Id; Val : List_Id); -- List3
10419 procedure Set_Generic_Formal_Declarations
10420 (N : Node_Id; Val : List_Id); -- List2
10422 procedure Set_Generic_Parent
10423 (N : Node_Id; Val : Node_Id); -- Node5
10425 procedure Set_Generic_Parent_Type
10426 (N : Node_Id; Val : Node_Id); -- Node4
10428 procedure Set_Handled_Statement_Sequence
10429 (N : Node_Id; Val : Node_Id); -- Node4
10431 procedure Set_Handler_List_Entry
10432 (N : Node_Id; Val : Node_Id); -- Node2
10434 procedure Set_Has_Created_Identifier
10435 (N : Node_Id; Val : Boolean := True); -- Flag15
10437 procedure Set_Has_Dereference_Action
10438 (N : Node_Id; Val : Boolean := True); -- Flag13
10440 procedure Set_Has_Dynamic_Length_Check
10441 (N : Node_Id; Val : Boolean := True); -- Flag10
10443 procedure Set_Has_Dynamic_Range_Check
10444 (N : Node_Id; Val : Boolean := True); -- Flag12
10446 procedure Set_Has_Init_Expression
10447 (N : Node_Id; Val : Boolean := True); -- Flag14
10449 procedure Set_Has_Local_Raise
10450 (N : Node_Id; Val : Boolean := True); -- Flag8
10452 procedure Set_Has_No_Elaboration_Code
10453 (N : Node_Id; Val : Boolean := True); -- Flag17
10455 procedure Set_Has_Pragma_Suppress_All
10456 (N : Node_Id; Val : Boolean := True); -- Flag14
10458 procedure Set_Has_Private_View
10459 (N : Node_Id; Val : Boolean := True); -- Flag11
10461 procedure Set_Has_Relative_Deadline_Pragma
10462 (N : Node_Id; Val : Boolean := True); -- Flag9
10464 procedure Set_Has_Self_Reference
10465 (N : Node_Id; Val : Boolean := True); -- Flag13
10467 procedure Set_Has_SP_Choice
10468 (N : Node_Id; Val : Boolean := True); -- Flag15
10470 procedure Set_Has_Storage_Size_Pragma
10471 (N : Node_Id; Val : Boolean := True); -- Flag5
10473 procedure Set_Has_Target_Names
10474 (N : Node_Id; Val : Boolean := True); -- Flag8
10476 procedure Set_Has_Wide_Character
10477 (N : Node_Id; Val : Boolean := True); -- Flag11
10479 procedure Set_Has_Wide_Wide_Character
10480 (N : Node_Id; Val : Boolean := True); -- Flag13
10482 procedure Set_Header_Size_Added
10483 (N : Node_Id; Val : Boolean := True); -- Flag11
10485 procedure Set_Hidden_By_Use_Clause
10486 (N : Node_Id; Val : Elist_Id); -- Elist4
10488 procedure Set_High_Bound
10489 (N : Node_Id; Val : Node_Id); -- Node2
10491 procedure Set_Identifier
10492 (N : Node_Id; Val : Node_Id); -- Node1
10494 procedure Set_Interface_List
10495 (N : Node_Id; Val : List_Id); -- List2
10497 procedure Set_Interface_Present
10498 (N : Node_Id; Val : Boolean := True); -- Flag16
10500 procedure Set_Implicit_With
10501 (N : Node_Id; Val : Boolean := True); -- Flag16
10503 procedure Set_Implicit_With_From_Instantiation
10504 (N : Node_Id; Val : Boolean := True); -- Flag12
10506 procedure Set_Import_Interface_Present
10507 (N : Node_Id; Val : Boolean := True); -- Flag16
10509 procedure Set_In_Present
10510 (N : Node_Id; Val : Boolean := True); -- Flag15
10512 procedure Set_Includes_Infinities
10513 (N : Node_Id; Val : Boolean := True); -- Flag11
10515 procedure Set_Incomplete_View
10516 (N : Node_Id; Val : Node_Id); -- Node2
10518 procedure Set_Inherited_Discriminant
10519 (N : Node_Id; Val : Boolean := True); -- Flag13
10521 procedure Set_Instance_Spec
10522 (N : Node_Id; Val : Node_Id); -- Node5
10524 procedure Set_Intval
10525 (N : Node_Id; Val : Uint); -- Uint3
10527 procedure Set_Is_Abort_Block
10528 (N : Node_Id; Val : Boolean := True); -- Flag4
10530 procedure Set_Is_Accessibility_Actual
10531 (N : Node_Id; Val : Boolean := True); -- Flag13
10533 procedure Set_Is_Analyzed_Pragma
10534 (N : Node_Id; Val : Boolean := True); -- Flag5
10536 procedure Set_Is_Asynchronous_Call_Block
10537 (N : Node_Id; Val : Boolean := True); -- Flag7
10539 procedure Set_Is_Boolean_Aspect
10540 (N : Node_Id; Val : Boolean := True); -- Flag16
10542 procedure Set_Is_Checked
10543 (N : Node_Id; Val : Boolean := True); -- Flag11
10545 procedure Set_Is_Checked_Ghost_Pragma
10546 (N : Node_Id; Val : Boolean := True); -- Flag3
10548 procedure Set_Is_Component_Left_Opnd
10549 (N : Node_Id; Val : Boolean := True); -- Flag13
10551 procedure Set_Is_Component_Right_Opnd
10552 (N : Node_Id; Val : Boolean := True); -- Flag14
10554 procedure Set_Is_Controlling_Actual
10555 (N : Node_Id; Val : Boolean := True); -- Flag16
10557 procedure Set_Is_Delayed_Aspect
10558 (N : Node_Id; Val : Boolean := True); -- Flag14
10560 procedure Set_Is_Disabled
10561 (N : Node_Id; Val : Boolean := True); -- Flag15
10563 procedure Set_Is_Dynamic_Coextension
10564 (N : Node_Id; Val : Boolean := True); -- Flag18
10566 procedure Set_Is_Elsif
10567 (N : Node_Id; Val : Boolean := True); -- Flag13
10569 procedure Set_Is_Entry_Barrier_Function
10570 (N : Node_Id; Val : Boolean := True); -- Flag8
10572 procedure Set_Is_Expanded_Build_In_Place_Call
10573 (N : Node_Id; Val : Boolean := True); -- Flag11
10575 procedure Set_Is_Expanded_Contract
10576 (N : Node_Id; Val : Boolean := True); -- Flag1
10578 procedure Set_Is_Finalization_Wrapper
10579 (N : Node_Id; Val : Boolean := True); -- Flag9
10581 procedure Set_Is_Folded_In_Parser
10582 (N : Node_Id; Val : Boolean := True); -- Flag4
10584 procedure Set_Is_Generic_Contract_Pragma
10585 (N : Node_Id; Val : Boolean := True); -- Flag2
10587 procedure Set_Is_Ignored
10588 (N : Node_Id; Val : Boolean := True); -- Flag9
10590 procedure Set_Is_Ignored_Ghost_Pragma
10591 (N : Node_Id; Val : Boolean := True); -- Flag8
10593 procedure Set_Is_In_Discriminant_Check
10594 (N : Node_Id; Val : Boolean := True); -- Flag11
10596 procedure Set_Is_Inherited_Pragma
10597 (N : Node_Id; Val : Boolean := True); -- Flag4
10599 procedure Set_Is_Machine_Number
10600 (N : Node_Id; Val : Boolean := True); -- Flag11
10602 procedure Set_Is_Null_Loop
10603 (N : Node_Id; Val : Boolean := True); -- Flag16
10605 procedure Set_Is_Overloaded
10606 (N : Node_Id; Val : Boolean := True); -- Flag5
10608 procedure Set_Is_Power_Of_2_For_Shift
10609 (N : Node_Id; Val : Boolean := True); -- Flag13
10611 procedure Set_Is_Prefixed_Call
10612 (N : Node_Id; Val : Boolean := True); -- Flag17
10614 procedure Set_Is_Protected_Subprogram_Body
10615 (N : Node_Id; Val : Boolean := True); -- Flag7
10617 procedure Set_Is_Qualified_Universal_Literal
10618 (N : Node_Id; Val : Boolean := True); -- Flag4
10620 procedure Set_Is_Static_Coextension
10621 (N : Node_Id; Val : Boolean := True); -- Flag14
10623 procedure Set_Is_Static_Expression
10624 (N : Node_Id; Val : Boolean := True); -- Flag6
10626 procedure Set_Is_Subprogram_Descriptor
10627 (N : Node_Id; Val : Boolean := True); -- Flag16
10629 procedure Set_Is_Task_Allocation_Block
10630 (N : Node_Id; Val : Boolean := True); -- Flag6
10632 procedure Set_Is_Task_Body_Procedure
10633 (N : Node_Id; Val : Boolean := True); -- Flag1
10635 procedure Set_Is_Task_Master
10636 (N : Node_Id; Val : Boolean := True); -- Flag5
10638 procedure Set_Iteration_Scheme
10639 (N : Node_Id; Val : Node_Id); -- Node2
10641 procedure Set_Iterator_Specification
10642 (N : Node_Id; Val : Node_Id); -- Node2
10644 procedure Set_Itype
10645 (N : Node_Id; Val : Entity_Id); -- Node1
10647 procedure Set_Kill_Range_Check
10648 (N : Node_Id; Val : Boolean := True); -- Flag11
10650 procedure Set_Last_Bit
10651 (N : Node_Id; Val : Node_Id); -- Node4
10653 procedure Set_Last_Name
10654 (N : Node_Id; Val : Boolean := True); -- Flag6
10656 procedure Set_Library_Unit
10657 (N : Node_Id; Val : Node_Id); -- Node4
10659 procedure Set_Label_Construct
10660 (N : Node_Id; Val : Node_Id); -- Node2
10662 procedure Set_Left_Opnd
10663 (N : Node_Id; Val : Node_Id); -- Node2
10665 procedure Set_Limited_View_Installed
10666 (N : Node_Id; Val : Boolean := True); -- Flag18
10668 procedure Set_Limited_Present
10669 (N : Node_Id; Val : Boolean := True); -- Flag17
10671 procedure Set_Literals
10672 (N : Node_Id; Val : List_Id); -- List1
10674 procedure Set_Local_Raise_Not_OK
10675 (N : Node_Id; Val : Boolean := True); -- Flag7
10677 procedure Set_Local_Raise_Statements
10678 (N : Node_Id; Val : Elist_Id); -- Elist1
10680 procedure Set_Loop_Actions
10681 (N : Node_Id; Val : List_Id); -- List2
10683 procedure Set_Loop_Parameter_Specification
10684 (N : Node_Id; Val : Node_Id); -- Node4
10686 procedure Set_Low_Bound
10687 (N : Node_Id; Val : Node_Id); -- Node1
10689 procedure Set_Mod_Clause
10690 (N : Node_Id; Val : Node_Id); -- Node2
10692 procedure Set_More_Ids
10693 (N : Node_Id; Val : Boolean := True); -- Flag5
10695 procedure Set_Must_Be_Byte_Aligned
10696 (N : Node_Id; Val : Boolean := True); -- Flag14
10698 procedure Set_Must_Not_Freeze
10699 (N : Node_Id; Val : Boolean := True); -- Flag8
10701 procedure Set_Must_Not_Override
10702 (N : Node_Id; Val : Boolean := True); -- Flag15
10704 procedure Set_Must_Override
10705 (N : Node_Id; Val : Boolean := True); -- Flag14
10707 procedure Set_Name
10708 (N : Node_Id; Val : Node_Id); -- Node2
10710 procedure Set_Names
10711 (N : Node_Id; Val : List_Id); -- List2
10713 procedure Set_Next_Entity
10714 (N : Node_Id; Val : Node_Id); -- Node2
10716 procedure Set_Next_Exit_Statement
10717 (N : Node_Id; Val : Node_Id); -- Node3
10719 procedure Set_Next_Implicit_With
10720 (N : Node_Id; Val : Node_Id); -- Node3
10722 procedure Set_Next_Named_Actual
10723 (N : Node_Id; Val : Node_Id); -- Node4
10725 procedure Set_Next_Pragma
10726 (N : Node_Id; Val : Node_Id); -- Node1
10728 procedure Set_Next_Rep_Item
10729 (N : Node_Id; Val : Node_Id); -- Node5
10731 procedure Set_Next_Use_Clause
10732 (N : Node_Id; Val : Node_Id); -- Node3
10734 procedure Set_No_Ctrl_Actions
10735 (N : Node_Id; Val : Boolean := True); -- Flag7
10737 procedure Set_No_Elaboration_Check
10738 (N : Node_Id; Val : Boolean := True); -- Flag14
10740 procedure Set_No_Entities_Ref_In_Spec
10741 (N : Node_Id; Val : Boolean := True); -- Flag8
10743 procedure Set_No_Initialization
10744 (N : Node_Id; Val : Boolean := True); -- Flag13
10746 procedure Set_No_Minimize_Eliminate
10747 (N : Node_Id; Val : Boolean := True); -- Flag17
10749 procedure Set_No_Side_Effect_Removal
10750 (N : Node_Id; Val : Boolean := True); -- Flag1
10752 procedure Set_No_Truncation
10753 (N : Node_Id; Val : Boolean := True); -- Flag17
10755 procedure Set_Non_Aliased_Prefix
10756 (N : Node_Id; Val : Boolean := True); -- Flag18
10758 procedure Set_Null_Present
10759 (N : Node_Id; Val : Boolean := True); -- Flag13
10761 procedure Set_Null_Excluding_Subtype
10762 (N : Node_Id; Val : Boolean := True); -- Flag16
10764 procedure Set_Null_Exclusion_Present
10765 (N : Node_Id; Val : Boolean := True); -- Flag11
10767 procedure Set_Null_Exclusion_In_Return_Present
10768 (N : Node_Id; Val : Boolean := True); -- Flag14
10770 procedure Set_Null_Record_Present
10771 (N : Node_Id; Val : Boolean := True); -- Flag17
10773 procedure Set_Object_Definition
10774 (N : Node_Id; Val : Node_Id); -- Node4
10776 procedure Set_Of_Present
10777 (N : Node_Id; Val : Boolean := True); -- Flag16
10779 procedure Set_Original_Discriminant
10780 (N : Node_Id; Val : Node_Id); -- Node2
10782 procedure Set_Original_Entity
10783 (N : Node_Id; Val : Entity_Id); -- Node2
10785 procedure Set_Others_Discrete_Choices
10786 (N : Node_Id; Val : List_Id); -- List1
10788 procedure Set_Out_Present
10789 (N : Node_Id; Val : Boolean := True); -- Flag17
10791 procedure Set_Parameter_Associations
10792 (N : Node_Id; Val : List_Id); -- List3
10794 procedure Set_Parameter_Specifications
10795 (N : Node_Id; Val : List_Id); -- List3
10797 procedure Set_Parameter_Type
10798 (N : Node_Id; Val : Node_Id); -- Node2
10800 procedure Set_Parent_Spec
10801 (N : Node_Id; Val : Node_Id); -- Node4
10803 procedure Set_Position
10804 (N : Node_Id; Val : Node_Id); -- Node2
10806 procedure Set_Pragma_Argument_Associations
10807 (N : Node_Id; Val : List_Id); -- List2
10809 procedure Set_Pragma_Identifier
10810 (N : Node_Id; Val : Node_Id); -- Node4
10812 procedure Set_Pragmas_After
10813 (N : Node_Id; Val : List_Id); -- List5
10815 procedure Set_Pragmas_Before
10816 (N : Node_Id; Val : List_Id); -- List4
10818 procedure Set_Pre_Post_Conditions
10819 (N : Node_Id; Val : Node_Id); -- Node1
10821 procedure Set_Prefix
10822 (N : Node_Id; Val : Node_Id); -- Node3
10824 procedure Set_Premature_Use
10825 (N : Node_Id; Val : Node_Id); -- Node5
10827 procedure Set_Present_Expr
10828 (N : Node_Id; Val : Uint); -- Uint3
10830 procedure Set_Prev_Ids
10831 (N : Node_Id; Val : Boolean := True); -- Flag6
10833 procedure Set_Print_In_Hex
10834 (N : Node_Id; Val : Boolean := True); -- Flag13
10836 procedure Set_Private_Declarations
10837 (N : Node_Id; Val : List_Id); -- List3
10839 procedure Set_Private_Present
10840 (N : Node_Id; Val : Boolean := True); -- Flag15
10842 procedure Set_Procedure_To_Call
10843 (N : Node_Id; Val : Node_Id); -- Node2
10845 procedure Set_Proper_Body
10846 (N : Node_Id; Val : Node_Id); -- Node1
10848 procedure Set_Protected_Definition
10849 (N : Node_Id; Val : Node_Id); -- Node3
10851 procedure Set_Protected_Present
10852 (N : Node_Id; Val : Boolean := True); -- Flag6
10854 procedure Set_Raises_Constraint_Error
10855 (N : Node_Id; Val : Boolean := True); -- Flag7
10857 procedure Set_Range_Constraint
10858 (N : Node_Id; Val : Node_Id); -- Node4
10860 procedure Set_Range_Expression
10861 (N : Node_Id; Val : Node_Id); -- Node4
10863 procedure Set_Real_Range_Specification
10864 (N : Node_Id; Val : Node_Id); -- Node4
10866 procedure Set_Realval
10867 (N : Node_Id; Val : Ureal); -- Ureal3
10869 procedure Set_Reason
10870 (N : Node_Id; Val : Uint); -- Uint3
10872 procedure Set_Record_Extension_Part
10873 (N : Node_Id; Val : Node_Id); -- Node3
10875 procedure Set_Redundant_Use
10876 (N : Node_Id; Val : Boolean := True); -- Flag13
10878 procedure Set_Renaming_Exception
10879 (N : Node_Id; Val : Node_Id); -- Node2
10881 procedure Set_Result_Definition
10882 (N : Node_Id; Val : Node_Id); -- Node4
10884 procedure Set_Return_Object_Declarations
10885 (N : Node_Id; Val : List_Id); -- List3
10887 procedure Set_Return_Statement_Entity
10888 (N : Node_Id; Val : Node_Id); -- Node5
10890 procedure Set_Reverse_Present
10891 (N : Node_Id; Val : Boolean := True); -- Flag15
10893 procedure Set_Right_Opnd
10894 (N : Node_Id; Val : Node_Id); -- Node3
10896 procedure Set_Rounded_Result
10897 (N : Node_Id; Val : Boolean := True); -- Flag18
10899 procedure Set_SCIL_Controlling_Tag
10900 (N : Node_Id; Val : Node_Id); -- Node5
10902 procedure Set_SCIL_Entity
10903 (N : Node_Id; Val : Node_Id); -- Node4
10905 procedure Set_SCIL_Tag_Value
10906 (N : Node_Id; Val : Node_Id); -- Node5
10908 procedure Set_SCIL_Target_Prim
10909 (N : Node_Id; Val : Node_Id); -- Node2
10911 procedure Set_Scope
10912 (N : Node_Id; Val : Node_Id); -- Node3
10914 procedure Set_Select_Alternatives
10915 (N : Node_Id; Val : List_Id); -- List1
10917 procedure Set_Selector_Name
10918 (N : Node_Id; Val : Node_Id); -- Node2
10920 procedure Set_Selector_Names
10921 (N : Node_Id; Val : List_Id); -- List1
10923 procedure Set_Shift_Count_OK
10924 (N : Node_Id; Val : Boolean := True); -- Flag4
10926 procedure Set_Source_Type
10927 (N : Node_Id; Val : Entity_Id); -- Node1
10929 procedure Set_Specification
10930 (N : Node_Id; Val : Node_Id); -- Node1
10932 procedure Set_Split_PPC
10933 (N : Node_Id; Val : Boolean); -- Flag17
10935 procedure Set_Statements
10936 (N : Node_Id; Val : List_Id); -- List3
10938 procedure Set_Storage_Pool
10939 (N : Node_Id; Val : Node_Id); -- Node1
10941 procedure Set_Subpool_Handle_Name
10942 (N : Node_Id; Val : Node_Id); -- Node4
10944 procedure Set_Strval
10945 (N : Node_Id; Val : String_Id); -- Str3
10947 procedure Set_Subtype_Indication
10948 (N : Node_Id; Val : Node_Id); -- Node5
10950 procedure Set_Subtype_Mark
10951 (N : Node_Id; Val : Node_Id); -- Node4
10953 procedure Set_Subtype_Marks
10954 (N : Node_Id; Val : List_Id); -- List2
10956 procedure Set_Suppress_Assignment_Checks
10957 (N : Node_Id; Val : Boolean := True); -- Flag18
10959 procedure Set_Suppress_Loop_Warnings
10960 (N : Node_Id; Val : Boolean := True); -- Flag17
10962 procedure Set_Synchronized_Present
10963 (N : Node_Id; Val : Boolean := True); -- Flag7
10965 procedure Set_Tagged_Present
10966 (N : Node_Id; Val : Boolean := True); -- Flag15
10968 procedure Set_Target_Type
10969 (N : Node_Id; Val : Entity_Id); -- Node2
10971 procedure Set_Task_Definition
10972 (N : Node_Id; Val : Node_Id); -- Node3
10974 procedure Set_Task_Present
10975 (N : Node_Id; Val : Boolean := True); -- Flag5
10977 procedure Set_Then_Actions
10978 (N : Node_Id; Val : List_Id); -- List2
10980 procedure Set_Then_Statements
10981 (N : Node_Id; Val : List_Id); -- List2
10983 procedure Set_Treat_Fixed_As_Integer
10984 (N : Node_Id; Val : Boolean := True); -- Flag14
10986 procedure Set_Triggering_Alternative
10987 (N : Node_Id; Val : Node_Id); -- Node1
10989 procedure Set_Triggering_Statement
10990 (N : Node_Id; Val : Node_Id); -- Node1
10992 procedure Set_TSS_Elist
10993 (N : Node_Id; Val : Elist_Id); -- Elist3
10995 procedure Set_Type_Definition
10996 (N : Node_Id; Val : Node_Id); -- Node3
10998 procedure Set_Uneval_Old_Accept
10999 (N : Node_Id; Val : Boolean := True); -- Flag7
11001 procedure Set_Uneval_Old_Warn
11002 (N : Node_Id; Val : Boolean := True); -- Flag18
11004 procedure Set_Unit
11005 (N : Node_Id; Val : Node_Id); -- Node2
11007 procedure Set_Unknown_Discriminants_Present
11008 (N : Node_Id; Val : Boolean := True); -- Flag13
11010 procedure Set_Unreferenced_In_Spec
11011 (N : Node_Id; Val : Boolean := True); -- Flag7
11013 procedure Set_Variant_Part
11014 (N : Node_Id; Val : Node_Id); -- Node4
11016 procedure Set_Variants
11017 (N : Node_Id; Val : List_Id); -- List1
11019 procedure Set_Visible_Declarations
11020 (N : Node_Id; Val : List_Id); -- List2
11022 procedure Set_Uninitialized_Variable
11023 (N : Node_Id; Val : Node_Id); -- Node3
11025 procedure Set_Used_Operations
11026 (N : Node_Id; Val : Elist_Id); -- Elist5
11028 procedure Set_Was_Expression_Function
11029 (N : Node_Id; Val : Boolean := True); -- Flag18
11031 procedure Set_Was_Originally_Stub
11032 (N : Node_Id; Val : Boolean := True); -- Flag13
11034 procedure Set_Withed_Body
11035 (N : Node_Id; Val : Node_Id); -- Node1
11037 -------------------------
11038 -- Iterator Procedures --
11039 -------------------------
11041 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11043 procedure Next_Entity (N : in out Node_Id);
11044 procedure Next_Named_Actual (N : in out Node_Id);
11045 procedure Next_Rep_Item (N : in out Node_Id);
11046 procedure Next_Use_Clause (N : in out Node_Id);
11048 -------------------------------------------
11049 -- Miscellaneous Tree Access Subprograms --
11050 -------------------------------------------
11052 function End_Location (N : Node_Id) return Source_Ptr;
11053 -- N is an N_If_Statement or N_Case_Statement node, and this function
11054 -- returns the location of the IF token in the END IF sequence by
11055 -- translating the value of the End_Span field.
11057 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11058 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11059 -- the End_Span field to correspond to the given value S. In other words,
11060 -- End_Span is set to the difference between S and Sloc (N), the starting
11061 -- location.
11063 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11064 -- Given an argument to a pragma Arg, this function returns the expression
11065 -- for the argument. This is Arg itself, or, in the case where Arg is a
11066 -- pragma argument association node, the expression from this node.
11068 --------------------------------
11069 -- Node_Kind Membership Tests --
11070 --------------------------------
11072 -- The following functions allow a convenient notation for testing whether
11073 -- a Node_Kind value matches any one of a list of possible values. In each
11074 -- case True is returned if the given T argument is equal to any of the V
11075 -- arguments. Note that there is a similar set of functions defined in
11076 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11078 function Nkind_In
11079 (T : Node_Kind;
11080 V1 : Node_Kind;
11081 V2 : Node_Kind) return Boolean;
11083 function Nkind_In
11084 (T : Node_Kind;
11085 V1 : Node_Kind;
11086 V2 : Node_Kind;
11087 V3 : Node_Kind) return Boolean;
11089 function Nkind_In
11090 (T : Node_Kind;
11091 V1 : Node_Kind;
11092 V2 : Node_Kind;
11093 V3 : Node_Kind;
11094 V4 : Node_Kind) return Boolean;
11096 function Nkind_In
11097 (T : Node_Kind;
11098 V1 : Node_Kind;
11099 V2 : Node_Kind;
11100 V3 : Node_Kind;
11101 V4 : Node_Kind;
11102 V5 : Node_Kind) return Boolean;
11104 function Nkind_In
11105 (T : Node_Kind;
11106 V1 : Node_Kind;
11107 V2 : Node_Kind;
11108 V3 : Node_Kind;
11109 V4 : Node_Kind;
11110 V5 : Node_Kind;
11111 V6 : Node_Kind) return Boolean;
11113 function Nkind_In
11114 (T : Node_Kind;
11115 V1 : Node_Kind;
11116 V2 : Node_Kind;
11117 V3 : Node_Kind;
11118 V4 : Node_Kind;
11119 V5 : Node_Kind;
11120 V6 : Node_Kind;
11121 V7 : Node_Kind) return Boolean;
11123 function Nkind_In
11124 (T : Node_Kind;
11125 V1 : Node_Kind;
11126 V2 : Node_Kind;
11127 V3 : Node_Kind;
11128 V4 : Node_Kind;
11129 V5 : Node_Kind;
11130 V6 : Node_Kind;
11131 V7 : Node_Kind;
11132 V8 : Node_Kind) return Boolean;
11134 function Nkind_In
11135 (T : Node_Kind;
11136 V1 : Node_Kind;
11137 V2 : Node_Kind;
11138 V3 : Node_Kind;
11139 V4 : Node_Kind;
11140 V5 : Node_Kind;
11141 V6 : Node_Kind;
11142 V7 : Node_Kind;
11143 V8 : Node_Kind;
11144 V9 : Node_Kind) return Boolean;
11146 pragma Inline (Nkind_In);
11147 -- Inline all above functions
11149 -----------------------
11150 -- Utility Functions --
11151 -----------------------
11153 procedure Map_Pragma_Name (From, To : Name_Id);
11154 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11155 -- From to pragma name To, so From can be used as a synonym for To.
11157 Too_Many_Pragma_Mappings : exception;
11158 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11159 -- programs will use it at all, and those that do will use it approximately
11160 -- once or twice.
11162 function Pragma_Name (N : Node_Id) return Name_Id;
11163 -- Obtain the name of pragma N from the Chars field of its identifier. If
11164 -- the pragma has been renamed using Rename_Pragma, this routine returns
11165 -- the name of the renaming.
11167 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11168 -- Obtain the name of pragma N from the Chars field of its identifier. This
11169 -- form of name extraction does not take into account renamings performed
11170 -- by Rename_Pragma.
11172 -----------------------------
11173 -- Syntactic Parent Tables --
11174 -----------------------------
11176 -- These tables show for each node, and for each of the five fields,
11177 -- whether the corresponding field is syntactic (True) or semantic (False).
11178 -- Unused entries are also set to False.
11180 subtype Field_Num is Natural range 1 .. 5;
11182 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11184 -- Following entries can be built automatically from the sinfo sources
11185 -- using the makeisf utility (currently this program is in spitbol).
11187 N_Identifier =>
11188 (1 => True, -- Chars (Name1)
11189 2 => False, -- Original_Discriminant (Node2-Sem)
11190 3 => False, -- unused
11191 4 => False, -- Entity (Node4-Sem)
11192 5 => False), -- Etype (Node5-Sem)
11194 N_Integer_Literal =>
11195 (1 => False, -- unused
11196 2 => False, -- Original_Entity (Node2-Sem)
11197 3 => True, -- Intval (Uint3)
11198 4 => False, -- unused
11199 5 => False), -- Etype (Node5-Sem)
11201 N_Real_Literal =>
11202 (1 => False, -- unused
11203 2 => False, -- Original_Entity (Node2-Sem)
11204 3 => True, -- Realval (Ureal3)
11205 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11206 5 => False), -- Etype (Node5-Sem)
11208 N_Character_Literal =>
11209 (1 => True, -- Chars (Name1)
11210 2 => True, -- Char_Literal_Value (Uint2)
11211 3 => False, -- unused
11212 4 => False, -- Entity (Node4-Sem)
11213 5 => False), -- Etype (Node5-Sem)
11215 N_String_Literal =>
11216 (1 => False, -- unused
11217 2 => False, -- unused
11218 3 => True, -- Strval (Str3)
11219 4 => False, -- unused
11220 5 => False), -- Etype (Node5-Sem)
11222 N_Pragma =>
11223 (1 => False, -- Next_Pragma (Node1-Sem)
11224 2 => True, -- Pragma_Argument_Associations (List2)
11225 3 => False, -- Corresponding_Aspect (Node3-Sem)
11226 4 => True, -- Pragma_Identifier (Node4)
11227 5 => False), -- Next_Rep_Item (Node5-Sem)
11229 N_Pragma_Argument_Association =>
11230 (1 => True, -- Chars (Name1)
11231 2 => False, -- Expression_Copy (Node2-Sem)
11232 3 => True, -- Expression (Node3)
11233 4 => False, -- unused
11234 5 => False), -- unused
11236 N_Defining_Identifier =>
11237 (1 => True, -- Chars (Name1)
11238 2 => False, -- Next_Entity (Node2-Sem)
11239 3 => False, -- Scope (Node3-Sem)
11240 4 => False, -- unused
11241 5 => False), -- Etype (Node5-Sem)
11243 N_Full_Type_Declaration =>
11244 (1 => True, -- Defining_Identifier (Node1)
11245 2 => False, -- Incomplete_View (Node2-Sem)
11246 3 => True, -- Type_Definition (Node3)
11247 4 => True, -- Discriminant_Specifications (List4)
11248 5 => False), -- unused
11250 N_Subtype_Declaration =>
11251 (1 => True, -- Defining_Identifier (Node1)
11252 2 => False, -- unused
11253 3 => False, -- unused
11254 4 => False, -- Generic_Parent_Type (Node4-Sem)
11255 5 => True), -- Subtype_Indication (Node5)
11257 N_Subtype_Indication =>
11258 (1 => False, -- unused
11259 2 => False, -- unused
11260 3 => True, -- Constraint (Node3)
11261 4 => True, -- Subtype_Mark (Node4)
11262 5 => False), -- Etype (Node5-Sem)
11264 N_Object_Declaration =>
11265 (1 => True, -- Defining_Identifier (Node1)
11266 2 => False, -- Handler_List_Entry (Node2-Sem)
11267 3 => True, -- Expression (Node3)
11268 4 => True, -- Object_Definition (Node4)
11269 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11271 N_Number_Declaration =>
11272 (1 => True, -- Defining_Identifier (Node1)
11273 2 => False, -- unused
11274 3 => True, -- Expression (Node3)
11275 4 => False, -- unused
11276 5 => False), -- unused
11278 N_Derived_Type_Definition =>
11279 (1 => False, -- unused
11280 2 => True, -- Interface_List (List2)
11281 3 => True, -- Record_Extension_Part (Node3)
11282 4 => False, -- unused
11283 5 => True), -- Subtype_Indication (Node5)
11285 N_Range_Constraint =>
11286 (1 => False, -- unused
11287 2 => False, -- unused
11288 3 => False, -- unused
11289 4 => True, -- Range_Expression (Node4)
11290 5 => False), -- unused
11292 N_Range =>
11293 (1 => True, -- Low_Bound (Node1)
11294 2 => True, -- High_Bound (Node2)
11295 3 => False, -- unused
11296 4 => False, -- unused
11297 5 => False), -- Etype (Node5-Sem)
11299 N_Enumeration_Type_Definition =>
11300 (1 => True, -- Literals (List1)
11301 2 => False, -- unused
11302 3 => False, -- unused
11303 4 => True, -- End_Label (Node4)
11304 5 => False), -- unused
11306 N_Defining_Character_Literal =>
11307 (1 => True, -- Chars (Name1)
11308 2 => False, -- Next_Entity (Node2-Sem)
11309 3 => False, -- Scope (Node3-Sem)
11310 4 => False, -- unused
11311 5 => False), -- Etype (Node5-Sem)
11313 N_Signed_Integer_Type_Definition =>
11314 (1 => True, -- Low_Bound (Node1)
11315 2 => True, -- High_Bound (Node2)
11316 3 => False, -- unused
11317 4 => False, -- unused
11318 5 => False), -- unused
11320 N_Modular_Type_Definition =>
11321 (1 => False, -- unused
11322 2 => False, -- unused
11323 3 => True, -- Expression (Node3)
11324 4 => False, -- unused
11325 5 => False), -- unused
11327 N_Floating_Point_Definition =>
11328 (1 => False, -- unused
11329 2 => True, -- Digits_Expression (Node2)
11330 3 => False, -- unused
11331 4 => True, -- Real_Range_Specification (Node4)
11332 5 => False), -- unused
11334 N_Real_Range_Specification =>
11335 (1 => True, -- Low_Bound (Node1)
11336 2 => True, -- High_Bound (Node2)
11337 3 => False, -- unused
11338 4 => False, -- unused
11339 5 => False), -- unused
11341 N_Ordinary_Fixed_Point_Definition =>
11342 (1 => False, -- unused
11343 2 => False, -- unused
11344 3 => True, -- Delta_Expression (Node3)
11345 4 => True, -- Real_Range_Specification (Node4)
11346 5 => False), -- unused
11348 N_Decimal_Fixed_Point_Definition =>
11349 (1 => False, -- unused
11350 2 => True, -- Digits_Expression (Node2)
11351 3 => True, -- Delta_Expression (Node3)
11352 4 => True, -- Real_Range_Specification (Node4)
11353 5 => False), -- unused
11355 N_Digits_Constraint =>
11356 (1 => False, -- unused
11357 2 => True, -- Digits_Expression (Node2)
11358 3 => False, -- unused
11359 4 => True, -- Range_Constraint (Node4)
11360 5 => False), -- unused
11362 N_Unconstrained_Array_Definition =>
11363 (1 => False, -- unused
11364 2 => True, -- Subtype_Marks (List2)
11365 3 => False, -- unused
11366 4 => True, -- Component_Definition (Node4)
11367 5 => False), -- unused
11369 N_Constrained_Array_Definition =>
11370 (1 => False, -- unused
11371 2 => True, -- Discrete_Subtype_Definitions (List2)
11372 3 => False, -- unused
11373 4 => True, -- Component_Definition (Node4)
11374 5 => False), -- unused
11376 N_Component_Definition =>
11377 (1 => False, -- unused
11378 2 => False, -- unused
11379 3 => True, -- Access_Definition (Node3)
11380 4 => False, -- unused
11381 5 => True), -- Subtype_Indication (Node5)
11383 N_Discriminant_Specification =>
11384 (1 => True, -- Defining_Identifier (Node1)
11385 2 => False, -- unused
11386 3 => True, -- Expression (Node3)
11387 4 => False, -- unused
11388 5 => True), -- Discriminant_Type (Node5)
11390 N_Index_Or_Discriminant_Constraint =>
11391 (1 => True, -- Constraints (List1)
11392 2 => False, -- unused
11393 3 => False, -- unused
11394 4 => False, -- unused
11395 5 => False), -- unused
11397 N_Discriminant_Association =>
11398 (1 => True, -- Selector_Names (List1)
11399 2 => False, -- unused
11400 3 => True, -- Expression (Node3)
11401 4 => False, -- unused
11402 5 => False), -- unused
11404 N_Record_Definition =>
11405 (1 => True, -- Component_List (Node1)
11406 2 => True, -- Interface_List (List2)
11407 3 => False, -- unused
11408 4 => True, -- End_Label (Node4)
11409 5 => False), -- unused
11411 N_Component_List =>
11412 (1 => False, -- unused
11413 2 => False, -- unused
11414 3 => True, -- Component_Items (List3)
11415 4 => True, -- Variant_Part (Node4)
11416 5 => False), -- unused
11418 N_Component_Declaration =>
11419 (1 => True, -- Defining_Identifier (Node1)
11420 2 => False, -- unused
11421 3 => True, -- Expression (Node3)
11422 4 => True, -- Component_Definition (Node4)
11423 5 => False), -- unused
11425 N_Variant_Part =>
11426 (1 => True, -- Variants (List1)
11427 2 => True, -- Name (Node2)
11428 3 => False, -- unused
11429 4 => False, -- unused
11430 5 => False), -- unused
11432 N_Variant =>
11433 (1 => True, -- Component_List (Node1)
11434 2 => False, -- Enclosing_Variant (Node2-Sem)
11435 3 => False, -- Present_Expr (Uint3-Sem)
11436 4 => True, -- Discrete_Choices (List4)
11437 5 => False), -- Dcheck_Function (Node5-Sem)
11439 N_Others_Choice =>
11440 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11441 2 => False, -- unused
11442 3 => False, -- unused
11443 4 => False, -- unused
11444 5 => False), -- unused
11446 N_Access_To_Object_Definition =>
11447 (1 => False, -- unused
11448 2 => False, -- unused
11449 3 => False, -- unused
11450 4 => False, -- unused
11451 5 => True), -- Subtype_Indication (Node5)
11453 N_Access_Function_Definition =>
11454 (1 => False, -- unused
11455 2 => False, -- unused
11456 3 => True, -- Parameter_Specifications (List3)
11457 4 => True, -- Result_Definition (Node4)
11458 5 => False), -- unused
11460 N_Access_Procedure_Definition =>
11461 (1 => False, -- unused
11462 2 => False, -- unused
11463 3 => True, -- Parameter_Specifications (List3)
11464 4 => False, -- unused
11465 5 => False), -- unused
11467 N_Access_Definition =>
11468 (1 => False, -- unused
11469 2 => False, -- unused
11470 3 => True, -- Access_To_Subprogram_Definition (Node3)
11471 4 => True, -- Subtype_Mark (Node4)
11472 5 => False), -- unused
11474 N_Incomplete_Type_Declaration =>
11475 (1 => True, -- Defining_Identifier (Node1)
11476 2 => False, -- unused
11477 3 => False, -- unused
11478 4 => True, -- Discriminant_Specifications (List4)
11479 5 => False), -- Premature_Use
11481 N_Explicit_Dereference =>
11482 (1 => False, -- unused
11483 2 => False, -- unused
11484 3 => True, -- Prefix (Node3)
11485 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11486 5 => False), -- Etype (Node5-Sem)
11488 N_Indexed_Component =>
11489 (1 => True, -- Expressions (List1)
11490 2 => False, -- unused
11491 3 => True, -- Prefix (Node3)
11492 4 => False, -- Generalized_Indexing (Node4-Sem)
11493 5 => False), -- Etype (Node5-Sem)
11495 N_Slice =>
11496 (1 => False, -- unused
11497 2 => False, -- unused
11498 3 => True, -- Prefix (Node3)
11499 4 => True, -- Discrete_Range (Node4)
11500 5 => False), -- Etype (Node5-Sem)
11502 N_Selected_Component =>
11503 (1 => False, -- unused
11504 2 => True, -- Selector_Name (Node2)
11505 3 => True, -- Prefix (Node3)
11506 4 => False, -- unused
11507 5 => False), -- Etype (Node5-Sem)
11509 N_Attribute_Reference =>
11510 (1 => True, -- Expressions (List1)
11511 2 => True, -- Attribute_Name (Name2)
11512 3 => True, -- Prefix (Node3)
11513 4 => False, -- Entity (Node4-Sem)
11514 5 => False), -- Etype (Node5-Sem)
11516 N_Aggregate =>
11517 (1 => True, -- Expressions (List1)
11518 2 => True, -- Component_Associations (List2)
11519 3 => False, -- Aggregate_Bounds (Node3-Sem)
11520 4 => False, -- unused
11521 5 => False), -- Etype (Node5-Sem)
11523 N_Component_Association =>
11524 (1 => True, -- Choices (List1)
11525 2 => False, -- Loop_Actions (List2-Sem)
11526 3 => True, -- Expression (Node3)
11527 4 => False, -- unused
11528 5 => False), -- unused
11530 N_Iterated_Component_Association =>
11531 (1 => True, -- Defining_Identifier (Node1)
11532 2 => False, -- unused
11533 3 => True, -- Expression (Node3)
11534 4 => True, -- Discrete_Choices (List4)
11535 5 => False), -- unused
11537 N_Delta_Aggregate =>
11538 (1 => False, -- Expressions (List1)
11539 2 => True, -- Component_Associations (List2)
11540 3 => True, -- Expression (Node3)
11541 4 => False, -- Unused
11542 5 => False), -- Etype (Node5-Sem)
11544 N_Extension_Aggregate =>
11545 (1 => True, -- Expressions (List1)
11546 2 => True, -- Component_Associations (List2)
11547 3 => True, -- Ancestor_Part (Node3)
11548 4 => False, -- unused
11549 5 => False), -- Etype (Node5-Sem)
11551 N_Null =>
11552 (1 => False, -- unused
11553 2 => False, -- unused
11554 3 => False, -- unused
11555 4 => False, -- unused
11556 5 => False), -- Etype (Node5-Sem)
11558 N_And_Then =>
11559 (1 => False, -- Actions (List1-Sem)
11560 2 => True, -- Left_Opnd (Node2)
11561 3 => True, -- Right_Opnd (Node3)
11562 4 => False, -- unused
11563 5 => False), -- Etype (Node5-Sem)
11565 N_Or_Else =>
11566 (1 => False, -- Actions (List1-Sem)
11567 2 => True, -- Left_Opnd (Node2)
11568 3 => True, -- Right_Opnd (Node3)
11569 4 => False, -- unused
11570 5 => False), -- Etype (Node5-Sem)
11572 N_In =>
11573 (1 => False, -- unused
11574 2 => True, -- Left_Opnd (Node2)
11575 3 => True, -- Right_Opnd (Node3)
11576 4 => True, -- Alternatives (List4)
11577 5 => False), -- Etype (Node5-Sem)
11579 N_Not_In =>
11580 (1 => False, -- unused
11581 2 => True, -- Left_Opnd (Node2)
11582 3 => True, -- Right_Opnd (Node3)
11583 4 => True, -- Alternatives (List4)
11584 5 => False), -- Etype (Node5-Sem)
11586 N_Op_And =>
11587 (1 => True, -- Chars (Name1)
11588 2 => True, -- Left_Opnd (Node2)
11589 3 => True, -- Right_Opnd (Node3)
11590 4 => False, -- Entity (Node4-Sem)
11591 5 => False), -- Etype (Node5-Sem)
11593 N_Op_Or =>
11594 (1 => True, -- Chars (Name1)
11595 2 => True, -- Left_Opnd (Node2)
11596 3 => True, -- Right_Opnd (Node3)
11597 4 => False, -- Entity (Node4-Sem)
11598 5 => False), -- Etype (Node5-Sem)
11600 N_Op_Xor =>
11601 (1 => True, -- Chars (Name1)
11602 2 => True, -- Left_Opnd (Node2)
11603 3 => True, -- Right_Opnd (Node3)
11604 4 => False, -- Entity (Node4-Sem)
11605 5 => False), -- Etype (Node5-Sem)
11607 N_Op_Eq =>
11608 (1 => True, -- Chars (Name1)
11609 2 => True, -- Left_Opnd (Node2)
11610 3 => True, -- Right_Opnd (Node3)
11611 4 => False, -- Entity (Node4-Sem)
11612 5 => False), -- Etype (Node5-Sem)
11614 N_Op_Ne =>
11615 (1 => True, -- Chars (Name1)
11616 2 => True, -- Left_Opnd (Node2)
11617 3 => True, -- Right_Opnd (Node3)
11618 4 => False, -- Entity (Node4-Sem)
11619 5 => False), -- Etype (Node5-Sem)
11621 N_Op_Lt =>
11622 (1 => True, -- Chars (Name1)
11623 2 => True, -- Left_Opnd (Node2)
11624 3 => True, -- Right_Opnd (Node3)
11625 4 => False, -- Entity (Node4-Sem)
11626 5 => False), -- Etype (Node5-Sem)
11628 N_Op_Le =>
11629 (1 => True, -- Chars (Name1)
11630 2 => True, -- Left_Opnd (Node2)
11631 3 => True, -- Right_Opnd (Node3)
11632 4 => False, -- Entity (Node4-Sem)
11633 5 => False), -- Etype (Node5-Sem)
11635 N_Op_Gt =>
11636 (1 => True, -- Chars (Name1)
11637 2 => True, -- Left_Opnd (Node2)
11638 3 => True, -- Right_Opnd (Node3)
11639 4 => False, -- Entity (Node4-Sem)
11640 5 => False), -- Etype (Node5-Sem)
11642 N_Op_Ge =>
11643 (1 => True, -- Chars (Name1)
11644 2 => True, -- Left_Opnd (Node2)
11645 3 => True, -- Right_Opnd (Node3)
11646 4 => False, -- Entity (Node4-Sem)
11647 5 => False), -- Etype (Node5-Sem)
11649 N_Op_Add =>
11650 (1 => True, -- Chars (Name1)
11651 2 => True, -- Left_Opnd (Node2)
11652 3 => True, -- Right_Opnd (Node3)
11653 4 => False, -- Entity (Node4-Sem)
11654 5 => False), -- Etype (Node5-Sem)
11656 N_Op_Subtract =>
11657 (1 => True, -- Chars (Name1)
11658 2 => True, -- Left_Opnd (Node2)
11659 3 => True, -- Right_Opnd (Node3)
11660 4 => False, -- Entity (Node4-Sem)
11661 5 => False), -- Etype (Node5-Sem)
11663 N_Op_Concat =>
11664 (1 => True, -- Chars (Name1)
11665 2 => True, -- Left_Opnd (Node2)
11666 3 => True, -- Right_Opnd (Node3)
11667 4 => False, -- Entity (Node4-Sem)
11668 5 => False), -- Etype (Node5-Sem)
11670 N_Op_Multiply =>
11671 (1 => True, -- Chars (Name1)
11672 2 => True, -- Left_Opnd (Node2)
11673 3 => True, -- Right_Opnd (Node3)
11674 4 => False, -- Entity (Node4-Sem)
11675 5 => False), -- Etype (Node5-Sem)
11677 N_Op_Divide =>
11678 (1 => True, -- Chars (Name1)
11679 2 => True, -- Left_Opnd (Node2)
11680 3 => True, -- Right_Opnd (Node3)
11681 4 => False, -- Entity (Node4-Sem)
11682 5 => False), -- Etype (Node5-Sem)
11684 N_Op_Mod =>
11685 (1 => True, -- Chars (Name1)
11686 2 => True, -- Left_Opnd (Node2)
11687 3 => True, -- Right_Opnd (Node3)
11688 4 => False, -- Entity (Node4-Sem)
11689 5 => False), -- Etype (Node5-Sem)
11691 N_Op_Rem =>
11692 (1 => True, -- Chars (Name1)
11693 2 => True, -- Left_Opnd (Node2)
11694 3 => True, -- Right_Opnd (Node3)
11695 4 => False, -- Entity (Node4-Sem)
11696 5 => False), -- Etype (Node5-Sem)
11698 N_Op_Expon =>
11699 (1 => True, -- Chars (Name1)
11700 2 => True, -- Left_Opnd (Node2)
11701 3 => True, -- Right_Opnd (Node3)
11702 4 => False, -- Entity (Node4-Sem)
11703 5 => False), -- Etype (Node5-Sem)
11705 N_Op_Plus =>
11706 (1 => True, -- Chars (Name1)
11707 2 => False, -- unused
11708 3 => True, -- Right_Opnd (Node3)
11709 4 => False, -- Entity (Node4-Sem)
11710 5 => False), -- Etype (Node5-Sem)
11712 N_Op_Minus =>
11713 (1 => True, -- Chars (Name1)
11714 2 => False, -- unused
11715 3 => True, -- Right_Opnd (Node3)
11716 4 => False, -- Entity (Node4-Sem)
11717 5 => False), -- Etype (Node5-Sem)
11719 N_Op_Abs =>
11720 (1 => True, -- Chars (Name1)
11721 2 => False, -- unused
11722 3 => True, -- Right_Opnd (Node3)
11723 4 => False, -- Entity (Node4-Sem)
11724 5 => False), -- Etype (Node5-Sem)
11726 N_Op_Not =>
11727 (1 => True, -- Chars (Name1)
11728 2 => False, -- unused
11729 3 => True, -- Right_Opnd (Node3)
11730 4 => False, -- Entity (Node4-Sem)
11731 5 => False), -- Etype (Node5-Sem)
11733 N_Type_Conversion =>
11734 (1 => False, -- unused
11735 2 => False, -- unused
11736 3 => True, -- Expression (Node3)
11737 4 => True, -- Subtype_Mark (Node4)
11738 5 => False), -- Etype (Node5-Sem)
11740 N_Qualified_Expression =>
11741 (1 => False, -- unused
11742 2 => False, -- unused
11743 3 => True, -- Expression (Node3)
11744 4 => True, -- Subtype_Mark (Node4)
11745 5 => False), -- Etype (Node5-Sem)
11747 N_Quantified_Expression =>
11748 (1 => True, -- Condition (Node1)
11749 2 => True, -- Iterator_Specification
11750 3 => False, -- unused
11751 4 => True, -- Loop_Parameter_Specification (Node4)
11752 5 => False), -- Etype (Node5-Sem)
11754 N_Allocator =>
11755 (1 => False, -- Storage_Pool (Node1-Sem)
11756 2 => False, -- Procedure_To_Call (Node2-Sem)
11757 3 => True, -- Expression (Node3)
11758 4 => True, -- Subpool_Handle_Name (Node4)
11759 5 => False), -- Etype (Node5-Sem)
11761 N_Null_Statement =>
11762 (1 => False, -- unused
11763 2 => False, -- unused
11764 3 => False, -- unused
11765 4 => False, -- unused
11766 5 => False), -- unused
11768 N_Label =>
11769 (1 => True, -- Identifier (Node1)
11770 2 => False, -- unused
11771 3 => False, -- unused
11772 4 => False, -- unused
11773 5 => False), -- unused
11775 N_Assignment_Statement =>
11776 (1 => False, -- unused
11777 2 => True, -- Name (Node2)
11778 3 => True, -- Expression (Node3)
11779 4 => False, -- unused
11780 5 => False), -- unused
11782 N_Target_Name =>
11783 (1 => False, -- unused
11784 2 => False, -- unused
11785 3 => False, -- unused
11786 4 => False, -- unused
11787 5 => False), -- Etype (Node5-Sem)
11789 N_If_Statement =>
11790 (1 => True, -- Condition (Node1)
11791 2 => True, -- Then_Statements (List2)
11792 3 => True, -- Elsif_Parts (List3)
11793 4 => True, -- Else_Statements (List4)
11794 5 => True), -- End_Span (Uint5)
11796 N_Elsif_Part =>
11797 (1 => True, -- Condition (Node1)
11798 2 => True, -- Then_Statements (List2)
11799 3 => False, -- Condition_Actions (List3-Sem)
11800 4 => False, -- unused
11801 5 => False), -- unused
11803 N_Case_Expression =>
11804 (1 => False, -- unused
11805 2 => False, -- unused
11806 3 => True, -- Expression (Node3)
11807 4 => True, -- Alternatives (List4)
11808 5 => False), -- unused
11810 N_Case_Expression_Alternative =>
11811 (1 => False, -- Actions (List1-Sem)
11812 2 => False, -- unused
11813 3 => True, -- Statements (List3)
11814 4 => True, -- Expression (Node4)
11815 5 => False), -- unused
11817 N_Case_Statement =>
11818 (1 => False, -- unused
11819 2 => False, -- unused
11820 3 => True, -- Expression (Node3)
11821 4 => True, -- Alternatives (List4)
11822 5 => True), -- End_Span (Uint5)
11824 N_Case_Statement_Alternative =>
11825 (1 => False, -- unused
11826 2 => False, -- unused
11827 3 => True, -- Statements (List3)
11828 4 => True, -- Discrete_Choices (List4)
11829 5 => False), -- unused
11831 N_Loop_Statement =>
11832 (1 => True, -- Identifier (Node1)
11833 2 => True, -- Iteration_Scheme (Node2)
11834 3 => True, -- Statements (List3)
11835 4 => True, -- End_Label (Node4)
11836 5 => False), -- unused
11838 N_Iteration_Scheme =>
11839 (1 => True, -- Condition (Node1)
11840 2 => True, -- Iterator_Specification (Node2)
11841 3 => False, -- Condition_Actions (List3-Sem)
11842 4 => True, -- Loop_Parameter_Specification (Node4)
11843 5 => False), -- unused
11845 N_Loop_Parameter_Specification =>
11846 (1 => True, -- Defining_Identifier (Node1)
11847 2 => False, -- unused
11848 3 => False, -- unused
11849 4 => True, -- Discrete_Subtype_Definition (Node4)
11850 5 => False), -- unused
11852 N_Iterator_Specification =>
11853 (1 => True, -- Defining_Identifier (Node1)
11854 2 => True, -- Name (Node2)
11855 3 => False, -- Unused
11856 4 => False, -- Unused
11857 5 => True), -- Subtype_Indication (Node5)
11859 N_Block_Statement =>
11860 (1 => True, -- Identifier (Node1)
11861 2 => True, -- Declarations (List2)
11862 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11863 4 => True, -- Handled_Statement_Sequence (Node4)
11864 5 => False), -- unused
11866 N_Exit_Statement =>
11867 (1 => True, -- Condition (Node1)
11868 2 => True, -- Name (Node2)
11869 3 => False, -- unused
11870 4 => False, -- unused
11871 5 => False), -- unused
11873 N_Goto_Statement =>
11874 (1 => False, -- unused
11875 2 => True, -- Name (Node2)
11876 3 => False, -- unused
11877 4 => False, -- unused
11878 5 => False), -- unused
11880 N_Subprogram_Declaration =>
11881 (1 => True, -- Specification (Node1)
11882 2 => False, -- unused
11883 3 => False, -- Body_To_Inline (Node3-Sem)
11884 4 => False, -- Parent_Spec (Node4-Sem)
11885 5 => False), -- Corresponding_Body (Node5-Sem)
11887 N_Abstract_Subprogram_Declaration =>
11888 (1 => True, -- Specification (Node1)
11889 2 => False, -- unused
11890 3 => False, -- unused
11891 4 => False, -- unused
11892 5 => False), -- unused
11894 N_Function_Specification =>
11895 (1 => True, -- Defining_Unit_Name (Node1)
11896 2 => False, -- unused
11897 3 => True, -- Parameter_Specifications (List3)
11898 4 => True, -- Result_Definition (Node4)
11899 5 => False), -- Generic_Parent (Node5-Sem)
11901 N_Procedure_Specification =>
11902 (1 => True, -- Defining_Unit_Name (Node1)
11903 2 => False, -- unused
11904 3 => True, -- Parameter_Specifications (List3)
11905 4 => False, -- unused
11906 5 => False), -- Generic_Parent (Node5-Sem)
11908 N_Designator =>
11909 (1 => True, -- Identifier (Node1)
11910 2 => True, -- Name (Node2)
11911 3 => False, -- unused
11912 4 => False, -- unused
11913 5 => False), -- unused
11915 N_Defining_Program_Unit_Name =>
11916 (1 => True, -- Defining_Identifier (Node1)
11917 2 => True, -- Name (Node2)
11918 3 => False, -- unused
11919 4 => False, -- unused
11920 5 => False), -- unused
11922 N_Operator_Symbol =>
11923 (1 => True, -- Chars (Name1)
11924 2 => False, -- unused
11925 3 => True, -- Strval (Str3)
11926 4 => False, -- Entity (Node4-Sem)
11927 5 => False), -- Etype (Node5-Sem)
11929 N_Defining_Operator_Symbol =>
11930 (1 => True, -- Chars (Name1)
11931 2 => False, -- Next_Entity (Node2-Sem)
11932 3 => False, -- Scope (Node3-Sem)
11933 4 => False, -- unused
11934 5 => False), -- Etype (Node5-Sem)
11936 N_Parameter_Specification =>
11937 (1 => True, -- Defining_Identifier (Node1)
11938 2 => True, -- Parameter_Type (Node2)
11939 3 => True, -- Expression (Node3)
11940 4 => False, -- unused
11941 5 => False), -- Default_Expression (Node5-Sem)
11943 N_Subprogram_Body =>
11944 (1 => True, -- Specification (Node1)
11945 2 => True, -- Declarations (List2)
11946 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11947 4 => True, -- Handled_Statement_Sequence (Node4)
11948 5 => False), -- Corresponding_Spec (Node5-Sem)
11950 N_Expression_Function =>
11951 (1 => True, -- Specification (Node1)
11952 2 => False, -- unused
11953 3 => True, -- Expression (Node3)
11954 4 => False, -- unused
11955 5 => False), -- unused
11957 N_Procedure_Call_Statement =>
11958 (1 => False, -- Controlling_Argument (Node1-Sem)
11959 2 => True, -- Name (Node2)
11960 3 => True, -- Parameter_Associations (List3)
11961 4 => False, -- First_Named_Actual (Node4-Sem)
11962 5 => False), -- Etype (Node5-Sem)
11964 N_Function_Call =>
11965 (1 => False, -- Controlling_Argument (Node1-Sem)
11966 2 => True, -- Name (Node2)
11967 3 => True, -- Parameter_Associations (List3)
11968 4 => False, -- First_Named_Actual (Node4-Sem)
11969 5 => False), -- Etype (Node5-Sem)
11971 N_Parameter_Association =>
11972 (1 => False, -- unused
11973 2 => True, -- Selector_Name (Node2)
11974 3 => True, -- Explicit_Actual_Parameter (Node3)
11975 4 => False, -- Next_Named_Actual (Node4-Sem)
11976 5 => False), -- unused
11978 N_Simple_Return_Statement =>
11979 (1 => False, -- Storage_Pool (Node1-Sem)
11980 2 => False, -- Procedure_To_Call (Node2-Sem)
11981 3 => True, -- Expression (Node3)
11982 4 => False, -- unused
11983 5 => False), -- Return_Statement_Entity (Node5-Sem)
11985 N_Extended_Return_Statement =>
11986 (1 => False, -- Storage_Pool (Node1-Sem)
11987 2 => False, -- Procedure_To_Call (Node2-Sem)
11988 3 => True, -- Return_Object_Declarations (List3)
11989 4 => True, -- Handled_Statement_Sequence (Node4)
11990 5 => False), -- Return_Statement_Entity (Node5-Sem)
11992 N_Package_Declaration =>
11993 (1 => True, -- Specification (Node1)
11994 2 => False, -- unused
11995 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11996 4 => False, -- Parent_Spec (Node4-Sem)
11997 5 => False), -- Corresponding_Body (Node5-Sem)
11999 N_Package_Specification =>
12000 (1 => True, -- Defining_Unit_Name (Node1)
12001 2 => True, -- Visible_Declarations (List2)
12002 3 => True, -- Private_Declarations (List3)
12003 4 => True, -- End_Label (Node4)
12004 5 => False), -- Generic_Parent (Node5-Sem)
12006 N_Package_Body =>
12007 (1 => True, -- Defining_Unit_Name (Node1)
12008 2 => True, -- Declarations (List2)
12009 3 => False, -- unused
12010 4 => True, -- Handled_Statement_Sequence (Node4)
12011 5 => False), -- Corresponding_Spec (Node5-Sem)
12013 N_Private_Type_Declaration =>
12014 (1 => True, -- Defining_Identifier (Node1)
12015 2 => False, -- unused
12016 3 => False, -- unused
12017 4 => True, -- Discriminant_Specifications (List4)
12018 5 => False), -- unused
12020 N_Private_Extension_Declaration =>
12021 (1 => True, -- Defining_Identifier (Node1)
12022 2 => True, -- Interface_List (List2)
12023 3 => False, -- unused
12024 4 => True, -- Discriminant_Specifications (List4)
12025 5 => True), -- Subtype_Indication (Node5)
12027 N_Use_Package_Clause =>
12028 (1 => False, -- unused
12029 2 => True, -- Names (List2)
12030 3 => False, -- Next_Use_Clause (Node3-Sem)
12031 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
12032 5 => False), -- unused
12034 N_Use_Type_Clause =>
12035 (1 => False, -- unused
12036 2 => True, -- Subtype_Marks (List2)
12037 3 => False, -- Next_Use_Clause (Node3-Sem)
12038 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
12039 5 => False), -- unused
12041 N_Object_Renaming_Declaration =>
12042 (1 => True, -- Defining_Identifier (Node1)
12043 2 => True, -- Name (Node2)
12044 3 => True, -- Access_Definition (Node3)
12045 4 => True, -- Subtype_Mark (Node4)
12046 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12048 N_Exception_Renaming_Declaration =>
12049 (1 => True, -- Defining_Identifier (Node1)
12050 2 => True, -- Name (Node2)
12051 3 => False, -- unused
12052 4 => False, -- unused
12053 5 => False), -- unused
12055 N_Package_Renaming_Declaration =>
12056 (1 => True, -- Defining_Unit_Name (Node1)
12057 2 => True, -- Name (Node2)
12058 3 => False, -- unused
12059 4 => False, -- Parent_Spec (Node4-Sem)
12060 5 => False), -- unused
12062 N_Subprogram_Renaming_Declaration =>
12063 (1 => True, -- Specification (Node1)
12064 2 => True, -- Name (Node2)
12065 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12066 4 => False, -- Parent_Spec (Node4-Sem)
12067 5 => False), -- Corresponding_Spec (Node5-Sem)
12069 N_Generic_Package_Renaming_Declaration =>
12070 (1 => True, -- Defining_Unit_Name (Node1)
12071 2 => True, -- Name (Node2)
12072 3 => False, -- unused
12073 4 => False, -- Parent_Spec (Node4-Sem)
12074 5 => False), -- unused
12076 N_Generic_Procedure_Renaming_Declaration =>
12077 (1 => True, -- Defining_Unit_Name (Node1)
12078 2 => True, -- Name (Node2)
12079 3 => False, -- unused
12080 4 => False, -- Parent_Spec (Node4-Sem)
12081 5 => False), -- unused
12083 N_Generic_Function_Renaming_Declaration =>
12084 (1 => True, -- Defining_Unit_Name (Node1)
12085 2 => True, -- Name (Node2)
12086 3 => False, -- unused
12087 4 => False, -- Parent_Spec (Node4-Sem)
12088 5 => False), -- unused
12090 N_Task_Type_Declaration =>
12091 (1 => True, -- Defining_Identifier (Node1)
12092 2 => True, -- Interface_List (List2)
12093 3 => True, -- Task_Definition (Node3)
12094 4 => True, -- Discriminant_Specifications (List4)
12095 5 => False), -- Corresponding_Body (Node5-Sem)
12097 N_Single_Task_Declaration =>
12098 (1 => True, -- Defining_Identifier (Node1)
12099 2 => True, -- Interface_List (List2)
12100 3 => True, -- Task_Definition (Node3)
12101 4 => False, -- unused
12102 5 => False), -- unused
12104 N_Task_Definition =>
12105 (1 => False, -- unused
12106 2 => True, -- Visible_Declarations (List2)
12107 3 => True, -- Private_Declarations (List3)
12108 4 => True, -- End_Label (Node4)
12109 5 => False), -- unused
12111 N_Task_Body =>
12112 (1 => True, -- Defining_Identifier (Node1)
12113 2 => True, -- Declarations (List2)
12114 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12115 4 => True, -- Handled_Statement_Sequence (Node4)
12116 5 => False), -- Corresponding_Spec (Node5-Sem)
12118 N_Protected_Type_Declaration =>
12119 (1 => True, -- Defining_Identifier (Node1)
12120 2 => True, -- Interface_List (List2)
12121 3 => True, -- Protected_Definition (Node3)
12122 4 => True, -- Discriminant_Specifications (List4)
12123 5 => False), -- Corresponding_Body (Node5-Sem)
12125 N_Single_Protected_Declaration =>
12126 (1 => True, -- Defining_Identifier (Node1)
12127 2 => True, -- Interface_List (List2)
12128 3 => True, -- Protected_Definition (Node3)
12129 4 => False, -- unused
12130 5 => False), -- unused
12132 N_Protected_Definition =>
12133 (1 => False, -- unused
12134 2 => True, -- Visible_Declarations (List2)
12135 3 => True, -- Private_Declarations (List3)
12136 4 => True, -- End_Label (Node4)
12137 5 => False), -- unused
12139 N_Protected_Body =>
12140 (1 => True, -- Defining_Identifier (Node1)
12141 2 => True, -- Declarations (List2)
12142 3 => False, -- unused
12143 4 => True, -- End_Label (Node4)
12144 5 => False), -- Corresponding_Spec (Node5-Sem)
12146 N_Entry_Declaration =>
12147 (1 => True, -- Defining_Identifier (Node1)
12148 2 => False, -- unused
12149 3 => True, -- Parameter_Specifications (List3)
12150 4 => True, -- Discrete_Subtype_Definition (Node4)
12151 5 => False), -- Corresponding_Body (Node5-Sem)
12153 N_Accept_Statement =>
12154 (1 => True, -- Entry_Direct_Name (Node1)
12155 2 => True, -- Declarations (List2)
12156 3 => True, -- Parameter_Specifications (List3)
12157 4 => True, -- Handled_Statement_Sequence (Node4)
12158 5 => True), -- Entry_Index (Node5)
12160 N_Entry_Body =>
12161 (1 => True, -- Defining_Identifier (Node1)
12162 2 => True, -- Declarations (List2)
12163 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12164 4 => True, -- Handled_Statement_Sequence (Node4)
12165 5 => True), -- Entry_Body_Formal_Part (Node5)
12167 N_Entry_Body_Formal_Part =>
12168 (1 => True, -- Condition (Node1)
12169 2 => False, -- unused
12170 3 => True, -- Parameter_Specifications (List3)
12171 4 => True, -- Entry_Index_Specification (Node4)
12172 5 => False), -- unused
12174 N_Entry_Index_Specification =>
12175 (1 => True, -- Defining_Identifier (Node1)
12176 2 => False, -- unused
12177 3 => False, -- unused
12178 4 => True, -- Discrete_Subtype_Definition (Node4)
12179 5 => False), -- unused
12181 N_Entry_Call_Statement =>
12182 (1 => False, -- unused
12183 2 => True, -- Name (Node2)
12184 3 => True, -- Parameter_Associations (List3)
12185 4 => False, -- First_Named_Actual (Node4-Sem)
12186 5 => False), -- unused
12188 N_Requeue_Statement =>
12189 (1 => False, -- unused
12190 2 => True, -- Name (Node2)
12191 3 => False, -- unused
12192 4 => False, -- unused
12193 5 => False), -- unused
12195 N_Delay_Until_Statement =>
12196 (1 => False, -- unused
12197 2 => False, -- unused
12198 3 => True, -- Expression (Node3)
12199 4 => False, -- unused
12200 5 => False), -- unused
12202 N_Delay_Relative_Statement =>
12203 (1 => False, -- unused
12204 2 => False, -- unused
12205 3 => True, -- Expression (Node3)
12206 4 => False, -- unused
12207 5 => False), -- unused
12209 N_Selective_Accept =>
12210 (1 => True, -- Select_Alternatives (List1)
12211 2 => False, -- unused
12212 3 => False, -- unused
12213 4 => True, -- Else_Statements (List4)
12214 5 => False), -- unused
12216 N_Accept_Alternative =>
12217 (1 => True, -- Condition (Node1)
12218 2 => True, -- Accept_Statement (Node2)
12219 3 => True, -- Statements (List3)
12220 4 => True, -- Pragmas_Before (List4)
12221 5 => False), -- Accept_Handler_Records (List5-Sem)
12223 N_Delay_Alternative =>
12224 (1 => True, -- Condition (Node1)
12225 2 => True, -- Delay_Statement (Node2)
12226 3 => True, -- Statements (List3)
12227 4 => True, -- Pragmas_Before (List4)
12228 5 => False), -- unused
12230 N_Terminate_Alternative =>
12231 (1 => True, -- Condition (Node1)
12232 2 => False, -- unused
12233 3 => False, -- unused
12234 4 => True, -- Pragmas_Before (List4)
12235 5 => True), -- Pragmas_After (List5)
12237 N_Timed_Entry_Call =>
12238 (1 => True, -- Entry_Call_Alternative (Node1)
12239 2 => False, -- unused
12240 3 => False, -- unused
12241 4 => True, -- Delay_Alternative (Node4)
12242 5 => False), -- unused
12244 N_Entry_Call_Alternative =>
12245 (1 => True, -- Entry_Call_Statement (Node1)
12246 2 => False, -- unused
12247 3 => True, -- Statements (List3)
12248 4 => True, -- Pragmas_Before (List4)
12249 5 => False), -- unused
12251 N_Conditional_Entry_Call =>
12252 (1 => True, -- Entry_Call_Alternative (Node1)
12253 2 => False, -- unused
12254 3 => False, -- unused
12255 4 => True, -- Else_Statements (List4)
12256 5 => False), -- unused
12258 N_Asynchronous_Select =>
12259 (1 => True, -- Triggering_Alternative (Node1)
12260 2 => True, -- Abortable_Part (Node2)
12261 3 => False, -- unused
12262 4 => False, -- unused
12263 5 => False), -- unused
12265 N_Triggering_Alternative =>
12266 (1 => True, -- Triggering_Statement (Node1)
12267 2 => False, -- unused
12268 3 => True, -- Statements (List3)
12269 4 => True, -- Pragmas_Before (List4)
12270 5 => False), -- unused
12272 N_Abortable_Part =>
12273 (1 => False, -- unused
12274 2 => False, -- unused
12275 3 => True, -- Statements (List3)
12276 4 => False, -- unused
12277 5 => False), -- unused
12279 N_Abort_Statement =>
12280 (1 => False, -- unused
12281 2 => True, -- Names (List2)
12282 3 => False, -- unused
12283 4 => False, -- unused
12284 5 => False), -- unused
12286 N_Compilation_Unit =>
12287 (1 => True, -- Context_Items (List1)
12288 2 => True, -- Unit (Node2)
12289 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12290 4 => False, -- Library_Unit (Node4-Sem)
12291 5 => True), -- Aux_Decls_Node (Node5)
12293 N_Compilation_Unit_Aux =>
12294 (1 => True, -- Actions (List1)
12295 2 => True, -- Declarations (List2)
12296 3 => False, -- Default_Storage_Pool (Node3)
12297 4 => True, -- Config_Pragmas (List4)
12298 5 => True), -- Pragmas_After (List5)
12300 N_With_Clause =>
12301 (1 => False, -- unused
12302 2 => True, -- Name (Node2)
12303 3 => False, -- unused
12304 4 => False, -- Library_Unit (Node4-Sem)
12305 5 => False), -- Corresponding_Spec (Node5-Sem)
12307 N_Subprogram_Body_Stub =>
12308 (1 => True, -- Specification (Node1)
12309 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12310 3 => False, -- unused
12311 4 => False, -- Library_Unit (Node4-Sem)
12312 5 => False), -- Corresponding_Body (Node5-Sem)
12314 N_Package_Body_Stub =>
12315 (1 => True, -- Defining_Identifier (Node1)
12316 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12317 3 => False, -- unused
12318 4 => False, -- Library_Unit (Node4-Sem)
12319 5 => False), -- Corresponding_Body (Node5-Sem)
12321 N_Task_Body_Stub =>
12322 (1 => True, -- Defining_Identifier (Node1)
12323 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12324 3 => False, -- unused
12325 4 => False, -- Library_Unit (Node4-Sem)
12326 5 => False), -- Corresponding_Body (Node5-Sem)
12328 N_Protected_Body_Stub =>
12329 (1 => True, -- Defining_Identifier (Node1)
12330 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12331 3 => False, -- unused
12332 4 => False, -- Library_Unit (Node4-Sem)
12333 5 => False), -- Corresponding_Body (Node5-Sem)
12335 N_Subunit =>
12336 (1 => True, -- Proper_Body (Node1)
12337 2 => True, -- Name (Node2)
12338 3 => False, -- Corresponding_Stub (Node3-Sem)
12339 4 => False, -- unused
12340 5 => False), -- unused
12342 N_Exception_Declaration =>
12343 (1 => True, -- Defining_Identifier (Node1)
12344 2 => False, -- unused
12345 3 => False, -- Expression (Node3-Sem)
12346 4 => False, -- unused
12347 5 => False), -- unused
12349 N_Handled_Sequence_Of_Statements =>
12350 (1 => True, -- At_End_Proc (Node1)
12351 2 => False, -- First_Real_Statement (Node2-Sem)
12352 3 => True, -- Statements (List3)
12353 4 => True, -- End_Label (Node4)
12354 5 => True), -- Exception_Handlers (List5)
12356 N_Exception_Handler =>
12357 (1 => False, -- Local_Raise_Statements (Elist1)
12358 2 => True, -- Choice_Parameter (Node2)
12359 3 => True, -- Statements (List3)
12360 4 => True, -- Exception_Choices (List4)
12361 5 => False), -- Exception_Label (Node5)
12363 N_Raise_Statement =>
12364 (1 => False, -- unused
12365 2 => True, -- Name (Node2)
12366 3 => True, -- Expression (Node3)
12367 4 => False, -- unused
12368 5 => False), -- unused
12370 N_Raise_Expression =>
12371 (1 => False, -- unused
12372 2 => True, -- Name (Node2)
12373 3 => True, -- Expression (Node3)
12374 4 => False, -- unused
12375 5 => False), -- Etype (Node5-Sem)
12377 N_Generic_Subprogram_Declaration =>
12378 (1 => True, -- Specification (Node1)
12379 2 => True, -- Generic_Formal_Declarations (List2)
12380 3 => False, -- unused
12381 4 => False, -- Parent_Spec (Node4-Sem)
12382 5 => False), -- Corresponding_Body (Node5-Sem)
12384 N_Generic_Package_Declaration =>
12385 (1 => True, -- Specification (Node1)
12386 2 => True, -- Generic_Formal_Declarations (List2)
12387 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12388 4 => False, -- Parent_Spec (Node4-Sem)
12389 5 => False), -- Corresponding_Body (Node5-Sem)
12391 N_Package_Instantiation =>
12392 (1 => True, -- Defining_Unit_Name (Node1)
12393 2 => True, -- Name (Node2)
12394 3 => True, -- Generic_Associations (List3)
12395 4 => False, -- Parent_Spec (Node4-Sem)
12396 5 => False), -- Instance_Spec (Node5-Sem)
12398 N_Procedure_Instantiation =>
12399 (1 => True, -- Defining_Unit_Name (Node1)
12400 2 => True, -- Name (Node2)
12401 3 => True, -- Generic_Associations (List3)
12402 4 => False, -- Parent_Spec (Node4-Sem)
12403 5 => False), -- Instance_Spec (Node5-Sem)
12405 N_Function_Instantiation =>
12406 (1 => True, -- Defining_Unit_Name (Node1)
12407 2 => True, -- Name (Node2)
12408 3 => True, -- Generic_Associations (List3)
12409 4 => False, -- Parent_Spec (Node4-Sem)
12410 5 => False), -- Instance_Spec (Node5-Sem)
12412 N_Generic_Association =>
12413 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12414 2 => True, -- Selector_Name (Node2)
12415 3 => False, -- unused
12416 4 => False, -- unused
12417 5 => False), -- unused
12419 N_Formal_Object_Declaration =>
12420 (1 => True, -- Defining_Identifier (Node1)
12421 2 => False, -- unused
12422 3 => True, -- Access_Definition (Node3)
12423 4 => True, -- Subtype_Mark (Node4)
12424 5 => True), -- Default_Expression (Node5)
12426 N_Formal_Type_Declaration =>
12427 (1 => True, -- Defining_Identifier (Node1)
12428 2 => False, -- unused
12429 3 => True, -- Formal_Type_Definition (Node3)
12430 4 => True, -- Discriminant_Specifications (List4)
12431 5 => False), -- unused
12433 N_Formal_Private_Type_Definition =>
12434 (1 => False, -- unused
12435 2 => False, -- unused
12436 3 => False, -- unused
12437 4 => False, -- unused
12438 5 => False), -- unused
12440 N_Formal_Incomplete_Type_Definition =>
12441 (1 => False, -- unused
12442 2 => False, -- unused
12443 3 => False, -- unused
12444 4 => False, -- unused
12445 5 => False), -- unused
12447 N_Formal_Derived_Type_Definition =>
12448 (1 => False, -- unused
12449 2 => True, -- Interface_List (List2)
12450 3 => False, -- unused
12451 4 => True, -- Subtype_Mark (Node4)
12452 5 => False), -- unused
12454 N_Formal_Discrete_Type_Definition =>
12455 (1 => False, -- unused
12456 2 => False, -- unused
12457 3 => False, -- unused
12458 4 => False, -- unused
12459 5 => False), -- unused
12461 N_Formal_Signed_Integer_Type_Definition =>
12462 (1 => False, -- unused
12463 2 => False, -- unused
12464 3 => False, -- unused
12465 4 => False, -- unused
12466 5 => False), -- unused
12468 N_Formal_Modular_Type_Definition =>
12469 (1 => False, -- unused
12470 2 => False, -- unused
12471 3 => False, -- unused
12472 4 => False, -- unused
12473 5 => False), -- unused
12475 N_Formal_Floating_Point_Definition =>
12476 (1 => False, -- unused
12477 2 => False, -- unused
12478 3 => False, -- unused
12479 4 => False, -- unused
12480 5 => False), -- unused
12482 N_Formal_Ordinary_Fixed_Point_Definition =>
12483 (1 => False, -- unused
12484 2 => False, -- unused
12485 3 => False, -- unused
12486 4 => False, -- unused
12487 5 => False), -- unused
12489 N_Formal_Decimal_Fixed_Point_Definition =>
12490 (1 => False, -- unused
12491 2 => False, -- unused
12492 3 => False, -- unused
12493 4 => False, -- unused
12494 5 => False), -- unused
12496 N_Formal_Concrete_Subprogram_Declaration =>
12497 (1 => True, -- Specification (Node1)
12498 2 => True, -- Default_Name (Node2)
12499 3 => False, -- unused
12500 4 => False, -- unused
12501 5 => False), -- unused
12503 N_Formal_Abstract_Subprogram_Declaration =>
12504 (1 => True, -- Specification (Node1)
12505 2 => True, -- Default_Name (Node2)
12506 3 => False, -- unused
12507 4 => False, -- unused
12508 5 => False), -- unused
12510 N_Formal_Package_Declaration =>
12511 (1 => True, -- Defining_Identifier (Node1)
12512 2 => True, -- Name (Node2)
12513 3 => True, -- Generic_Associations (List3)
12514 4 => False, -- unused
12515 5 => False), -- Instance_Spec (Node5-Sem)
12517 N_Attribute_Definition_Clause =>
12518 (1 => True, -- Chars (Name1)
12519 2 => True, -- Name (Node2)
12520 3 => True, -- Expression (Node3)
12521 4 => False, -- unused
12522 5 => False), -- Next_Rep_Item (Node5-Sem)
12524 N_Aspect_Specification =>
12525 (1 => True, -- Identifier (Node1)
12526 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12527 3 => True, -- Expression (Node3)
12528 4 => False, -- Entity (Node4-Sem)
12529 5 => False), -- Next_Rep_Item (Node5-Sem)
12531 N_Enumeration_Representation_Clause =>
12532 (1 => True, -- Identifier (Node1)
12533 2 => False, -- unused
12534 3 => True, -- Array_Aggregate (Node3)
12535 4 => False, -- unused
12536 5 => False), -- Next_Rep_Item (Node5-Sem)
12538 N_Record_Representation_Clause =>
12539 (1 => True, -- Identifier (Node1)
12540 2 => True, -- Mod_Clause (Node2)
12541 3 => True, -- Component_Clauses (List3)
12542 4 => False, -- unused
12543 5 => False), -- Next_Rep_Item (Node5-Sem)
12545 N_Component_Clause =>
12546 (1 => True, -- Component_Name (Node1)
12547 2 => True, -- Position (Node2)
12548 3 => True, -- First_Bit (Node3)
12549 4 => True, -- Last_Bit (Node4)
12550 5 => False), -- unused
12552 N_Code_Statement =>
12553 (1 => False, -- unused
12554 2 => False, -- unused
12555 3 => True, -- Expression (Node3)
12556 4 => False, -- unused
12557 5 => False), -- unused
12559 N_Op_Rotate_Left =>
12560 (1 => True, -- Chars (Name1)
12561 2 => True, -- Left_Opnd (Node2)
12562 3 => True, -- Right_Opnd (Node3)
12563 4 => False, -- Entity (Node4-Sem)
12564 5 => False), -- Etype (Node5-Sem)
12566 N_Op_Rotate_Right =>
12567 (1 => True, -- Chars (Name1)
12568 2 => True, -- Left_Opnd (Node2)
12569 3 => True, -- Right_Opnd (Node3)
12570 4 => False, -- Entity (Node4-Sem)
12571 5 => False), -- Etype (Node5-Sem)
12573 N_Op_Shift_Left =>
12574 (1 => True, -- Chars (Name1)
12575 2 => True, -- Left_Opnd (Node2)
12576 3 => True, -- Right_Opnd (Node3)
12577 4 => False, -- Entity (Node4-Sem)
12578 5 => False), -- Etype (Node5-Sem)
12580 N_Op_Shift_Right_Arithmetic =>
12581 (1 => True, -- Chars (Name1)
12582 2 => True, -- Left_Opnd (Node2)
12583 3 => True, -- Right_Opnd (Node3)
12584 4 => False, -- Entity (Node4-Sem)
12585 5 => False), -- Etype (Node5-Sem)
12587 N_Op_Shift_Right =>
12588 (1 => True, -- Chars (Name1)
12589 2 => True, -- Left_Opnd (Node2)
12590 3 => True, -- Right_Opnd (Node3)
12591 4 => False, -- Entity (Node4-Sem)
12592 5 => False), -- Etype (Node5-Sem)
12594 N_Delta_Constraint =>
12595 (1 => False, -- unused
12596 2 => False, -- unused
12597 3 => True, -- Delta_Expression (Node3)
12598 4 => True, -- Range_Constraint (Node4)
12599 5 => False), -- unused
12601 N_At_Clause =>
12602 (1 => True, -- Identifier (Node1)
12603 2 => False, -- unused
12604 3 => True, -- Expression (Node3)
12605 4 => False, -- unused
12606 5 => False), -- unused
12608 N_Mod_Clause =>
12609 (1 => False, -- unused
12610 2 => False, -- unused
12611 3 => True, -- Expression (Node3)
12612 4 => True, -- Pragmas_Before (List4)
12613 5 => False), -- unused
12615 N_If_Expression =>
12616 (1 => True, -- Expressions (List1)
12617 2 => False, -- Then_Actions (List2-Sem)
12618 3 => False, -- Else_Actions (List3-Sem)
12619 4 => False, -- unused
12620 5 => False), -- Etype (Node5-Sem)
12622 N_Compound_Statement =>
12623 (1 => True, -- Actions (List1)
12624 2 => False, -- unused
12625 3 => False, -- unused
12626 4 => False, -- unused
12627 5 => False), -- unused
12629 N_Contract =>
12630 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
12631 2 => False, -- Contract_Test_Cases (Node2-Sem)
12632 3 => False, -- Classifications (Node3-Sem)
12633 4 => False, -- unused
12634 5 => False), -- unused
12636 N_Expanded_Name =>
12637 (1 => True, -- Chars (Name1)
12638 2 => True, -- Selector_Name (Node2)
12639 3 => True, -- Prefix (Node3)
12640 4 => False, -- Entity (Node4-Sem)
12641 5 => False), -- Etype (Node5-Sem)
12643 N_Expression_With_Actions =>
12644 (1 => True, -- Actions (List1)
12645 2 => False, -- unused
12646 3 => True, -- Expression (Node3)
12647 4 => False, -- unused
12648 5 => False), -- unused
12650 N_Free_Statement =>
12651 (1 => False, -- Storage_Pool (Node1-Sem)
12652 2 => False, -- Procedure_To_Call (Node2-Sem)
12653 3 => True, -- Expression (Node3)
12654 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12655 5 => False), -- unused
12657 N_Freeze_Entity =>
12658 (1 => True, -- Actions (List1)
12659 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12660 3 => False, -- TSS_Elist (Elist3-Sem)
12661 4 => False, -- Entity (Node4-Sem)
12662 5 => False), -- First_Subtype_Link (Node5-Sem)
12664 N_Freeze_Generic_Entity =>
12665 (1 => False, -- unused
12666 2 => False, -- unused
12667 3 => False, -- unused
12668 4 => False, -- Entity (Node4-Sem)
12669 5 => False), -- unused
12671 N_Implicit_Label_Declaration =>
12672 (1 => True, -- Defining_Identifier (Node1)
12673 2 => False, -- Label_Construct (Node2-Sem)
12674 3 => False, -- unused
12675 4 => False, -- unused
12676 5 => False), -- unused
12678 N_Itype_Reference =>
12679 (1 => False, -- Itype (Node1-Sem)
12680 2 => False, -- unused
12681 3 => False, -- unused
12682 4 => False, -- unused
12683 5 => False), -- unused
12685 N_Raise_Constraint_Error =>
12686 (1 => True, -- Condition (Node1)
12687 2 => False, -- unused
12688 3 => True, -- Reason (Uint3)
12689 4 => False, -- unused
12690 5 => False), -- Etype (Node5-Sem)
12692 N_Raise_Program_Error =>
12693 (1 => True, -- Condition (Node1)
12694 2 => False, -- unused
12695 3 => True, -- Reason (Uint3)
12696 4 => False, -- unused
12697 5 => False), -- Etype (Node5-Sem)
12699 N_Raise_Storage_Error =>
12700 (1 => True, -- Condition (Node1)
12701 2 => False, -- unused
12702 3 => True, -- Reason (Uint3)
12703 4 => False, -- unused
12704 5 => False), -- Etype (Node5-Sem)
12706 N_Push_Constraint_Error_Label =>
12707 (1 => False, -- unused
12708 2 => False, -- unused
12709 3 => False, -- unused
12710 4 => False, -- unused
12711 5 => False), -- unused
12713 N_Push_Program_Error_Label =>
12714 (1 => False, -- unused
12715 2 => False, -- unused
12716 3 => False, -- unused
12717 4 => False, -- unused
12718 5 => False), -- Exception_Label
12720 N_Push_Storage_Error_Label =>
12721 (1 => False, -- unused
12722 2 => False, -- unused
12723 3 => False, -- unused
12724 4 => False, -- unused
12725 5 => False), -- Exception_Label
12727 N_Pop_Constraint_Error_Label =>
12728 (1 => False, -- unused
12729 2 => False, -- unused
12730 3 => False, -- unused
12731 4 => False, -- unused
12732 5 => False), -- unused
12734 N_Pop_Program_Error_Label =>
12735 (1 => False, -- unused
12736 2 => False, -- unused
12737 3 => False, -- unused
12738 4 => False, -- unused
12739 5 => False), -- unused
12741 N_Pop_Storage_Error_Label =>
12742 (1 => False, -- unused
12743 2 => False, -- unused
12744 3 => False, -- unused
12745 4 => False, -- unused
12746 5 => False), -- unused
12748 N_Reference =>
12749 (1 => False, -- unused
12750 2 => False, -- unused
12751 3 => True, -- Prefix (Node3)
12752 4 => False, -- unused
12753 5 => False), -- Etype (Node5-Sem)
12755 N_Unchecked_Expression =>
12756 (1 => False, -- unused
12757 2 => False, -- unused
12758 3 => True, -- Expression (Node3)
12759 4 => False, -- unused
12760 5 => False), -- Etype (Node5-Sem)
12762 N_Unchecked_Type_Conversion =>
12763 (1 => False, -- unused
12764 2 => False, -- unused
12765 3 => True, -- Expression (Node3)
12766 4 => True, -- Subtype_Mark (Node4)
12767 5 => False), -- Etype (Node5-Sem)
12769 N_Validate_Unchecked_Conversion =>
12770 (1 => False, -- Source_Type (Node1-Sem)
12771 2 => False, -- Target_Type (Node2-Sem)
12772 3 => False, -- unused
12773 4 => False, -- unused
12774 5 => False), -- unused
12776 -- Entries for SCIL nodes
12778 N_SCIL_Dispatch_Table_Tag_Init =>
12779 (1 => False, -- unused
12780 2 => False, -- unused
12781 3 => False, -- unused
12782 4 => False, -- SCIL_Entity (Node4-Sem)
12783 5 => False), -- unused
12785 N_SCIL_Dispatching_Call =>
12786 (1 => False, -- unused
12787 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12788 3 => False, -- unused
12789 4 => False, -- SCIL_Entity (Node4-Sem)
12790 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12792 N_SCIL_Membership_Test =>
12793 (1 => False, -- unused
12794 2 => False, -- unused
12795 3 => False, -- unused
12796 4 => False, -- SCIL_Entity (Node4-Sem)
12797 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12799 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12800 -- field for debugging purposes, they are not really syntactic fields, so
12801 -- we mark all fields as unused.
12803 N_Empty =>
12804 (1 => False, -- unused
12805 2 => False, -- unused
12806 3 => False, -- unused
12807 4 => False, -- unused
12808 5 => False), -- unused
12810 N_Error =>
12811 (1 => False, -- unused
12812 2 => False, -- unused
12813 3 => False, -- unused
12814 4 => False, -- unused
12815 5 => False), -- unused
12817 N_Unused_At_Start =>
12818 (1 => False, -- unused
12819 2 => False, -- unused
12820 3 => False, -- unused
12821 4 => False, -- unused
12822 5 => False), -- unused
12824 N_Unused_At_End =>
12825 (1 => False, -- unused
12826 2 => False, -- unused
12827 3 => False, -- unused
12828 4 => False, -- unused
12829 5 => False)); -- unused
12831 --------------------
12832 -- Inline Pragmas --
12833 --------------------
12835 pragma Inline (ABE_Is_Certain);
12836 pragma Inline (Abort_Present);
12837 pragma Inline (Abortable_Part);
12838 pragma Inline (Abstract_Present);
12839 pragma Inline (Accept_Handler_Records);
12840 pragma Inline (Accept_Statement);
12841 pragma Inline (Access_Definition);
12842 pragma Inline (Access_To_Subprogram_Definition);
12843 pragma Inline (Access_Types_To_Process);
12844 pragma Inline (Actions);
12845 pragma Inline (Activation_Chain_Entity);
12846 pragma Inline (Acts_As_Spec);
12847 pragma Inline (Actual_Designated_Subtype);
12848 pragma Inline (Address_Warning_Posted);
12849 pragma Inline (Aggregate_Bounds);
12850 pragma Inline (Aliased_Present);
12851 pragma Inline (All_Others);
12852 pragma Inline (All_Present);
12853 pragma Inline (Alternatives);
12854 pragma Inline (Ancestor_Part);
12855 pragma Inline (Atomic_Sync_Required);
12856 pragma Inline (Array_Aggregate);
12857 pragma Inline (Aspect_Rep_Item);
12858 pragma Inline (Assignment_OK);
12859 pragma Inline (Associated_Node);
12860 pragma Inline (At_End_Proc);
12861 pragma Inline (Attribute_Name);
12862 pragma Inline (Aux_Decls_Node);
12863 pragma Inline (Backwards_OK);
12864 pragma Inline (Bad_Is_Detected);
12865 pragma Inline (Body_To_Inline);
12866 pragma Inline (Body_Required);
12867 pragma Inline (By_Ref);
12868 pragma Inline (Box_Present);
12869 pragma Inline (Char_Literal_Value);
12870 pragma Inline (Chars);
12871 pragma Inline (Check_Address_Alignment);
12872 pragma Inline (Choice_Parameter);
12873 pragma Inline (Choices);
12874 pragma Inline (Class_Present);
12875 pragma Inline (Classifications);
12876 pragma Inline (Cleanup_Actions);
12877 pragma Inline (Comes_From_Extended_Return_Statement);
12878 pragma Inline (Compile_Time_Known_Aggregate);
12879 pragma Inline (Component_Associations);
12880 pragma Inline (Component_Clauses);
12881 pragma Inline (Component_Definition);
12882 pragma Inline (Component_Items);
12883 pragma Inline (Component_List);
12884 pragma Inline (Component_Name);
12885 pragma Inline (Componentwise_Assignment);
12886 pragma Inline (Condition);
12887 pragma Inline (Condition_Actions);
12888 pragma Inline (Config_Pragmas);
12889 pragma Inline (Constant_Present);
12890 pragma Inline (Constraint);
12891 pragma Inline (Constraints);
12892 pragma Inline (Context_Installed);
12893 pragma Inline (Context_Items);
12894 pragma Inline (Context_Pending);
12895 pragma Inline (Contract_Test_Cases);
12896 pragma Inline (Controlling_Argument);
12897 pragma Inline (Convert_To_Return_False);
12898 pragma Inline (Conversion_OK);
12899 pragma Inline (Corresponding_Aspect);
12900 pragma Inline (Corresponding_Body);
12901 pragma Inline (Corresponding_Formal_Spec);
12902 pragma Inline (Corresponding_Generic_Association);
12903 pragma Inline (Corresponding_Integer_Value);
12904 pragma Inline (Corresponding_Spec);
12905 pragma Inline (Corresponding_Spec_Of_Stub);
12906 pragma Inline (Corresponding_Stub);
12907 pragma Inline (Dcheck_Function);
12908 pragma Inline (Declarations);
12909 pragma Inline (Default_Expression);
12910 pragma Inline (Default_Storage_Pool);
12911 pragma Inline (Default_Name);
12912 pragma Inline (Defining_Identifier);
12913 pragma Inline (Defining_Unit_Name);
12914 pragma Inline (Delay_Alternative);
12915 pragma Inline (Delay_Statement);
12916 pragma Inline (Delta_Expression);
12917 pragma Inline (Digits_Expression);
12918 pragma Inline (Discr_Check_Funcs_Built);
12919 pragma Inline (Discrete_Choices);
12920 pragma Inline (Discrete_Range);
12921 pragma Inline (Discrete_Subtype_Definition);
12922 pragma Inline (Discrete_Subtype_Definitions);
12923 pragma Inline (Discriminant_Specifications);
12924 pragma Inline (Discriminant_Type);
12925 pragma Inline (Do_Accessibility_Check);
12926 pragma Inline (Do_Discriminant_Check);
12927 pragma Inline (Do_Length_Check);
12928 pragma Inline (Do_Division_Check);
12929 pragma Inline (Do_Overflow_Check);
12930 pragma Inline (Do_Range_Check);
12931 pragma Inline (Do_Storage_Check);
12932 pragma Inline (Do_Tag_Check);
12933 pragma Inline (Elaborate_Present);
12934 pragma Inline (Elaborate_All_Desirable);
12935 pragma Inline (Elaborate_All_Present);
12936 pragma Inline (Elaborate_Desirable);
12937 pragma Inline (Else_Actions);
12938 pragma Inline (Else_Statements);
12939 pragma Inline (Elsif_Parts);
12940 pragma Inline (Enclosing_Variant);
12941 pragma Inline (End_Label);
12942 pragma Inline (End_Span);
12943 pragma Inline (Entity);
12944 pragma Inline (Entity_Or_Associated_Node);
12945 pragma Inline (Entry_Body_Formal_Part);
12946 pragma Inline (Entry_Call_Alternative);
12947 pragma Inline (Entry_Call_Statement);
12948 pragma Inline (Entry_Direct_Name);
12949 pragma Inline (Entry_Index);
12950 pragma Inline (Entry_Index_Specification);
12951 pragma Inline (Etype);
12952 pragma Inline (Exception_Choices);
12953 pragma Inline (Exception_Handlers);
12954 pragma Inline (Exception_Junk);
12955 pragma Inline (Exception_Label);
12956 pragma Inline (Expansion_Delayed);
12957 pragma Inline (Explicit_Actual_Parameter);
12958 pragma Inline (Explicit_Generic_Actual_Parameter);
12959 pragma Inline (Expression);
12960 pragma Inline (Expression_Copy);
12961 pragma Inline (Expressions);
12962 pragma Inline (First_Bit);
12963 pragma Inline (First_Inlined_Subprogram);
12964 pragma Inline (First_Name);
12965 pragma Inline (First_Named_Actual);
12966 pragma Inline (First_Real_Statement);
12967 pragma Inline (First_Subtype_Link);
12968 pragma Inline (Float_Truncate);
12969 pragma Inline (Formal_Type_Definition);
12970 pragma Inline (Forwards_OK);
12971 pragma Inline (From_Aspect_Specification);
12972 pragma Inline (From_At_End);
12973 pragma Inline (From_At_Mod);
12974 pragma Inline (From_Conditional_Expression);
12975 pragma Inline (From_Default);
12976 pragma Inline (Generalized_Indexing);
12977 pragma Inline (Generic_Associations);
12978 pragma Inline (Generic_Formal_Declarations);
12979 pragma Inline (Generic_Parent);
12980 pragma Inline (Generic_Parent_Type);
12981 pragma Inline (Handled_Statement_Sequence);
12982 pragma Inline (Handler_List_Entry);
12983 pragma Inline (Has_Created_Identifier);
12984 pragma Inline (Has_Dereference_Action);
12985 pragma Inline (Has_Dynamic_Length_Check);
12986 pragma Inline (Has_Dynamic_Range_Check);
12987 pragma Inline (Has_Init_Expression);
12988 pragma Inline (Has_Local_Raise);
12989 pragma Inline (Has_Self_Reference);
12990 pragma Inline (Has_SP_Choice);
12991 pragma Inline (Has_No_Elaboration_Code);
12992 pragma Inline (Has_Pragma_Suppress_All);
12993 pragma Inline (Has_Private_View);
12994 pragma Inline (Has_Relative_Deadline_Pragma);
12995 pragma Inline (Has_Storage_Size_Pragma);
12996 pragma Inline (Has_Target_Names);
12997 pragma Inline (Has_Wide_Character);
12998 pragma Inline (Has_Wide_Wide_Character);
12999 pragma Inline (Header_Size_Added);
13000 pragma Inline (Hidden_By_Use_Clause);
13001 pragma Inline (High_Bound);
13002 pragma Inline (Identifier);
13003 pragma Inline (Implicit_With);
13004 pragma Inline (Implicit_With_From_Instantiation);
13005 pragma Inline (Interface_List);
13006 pragma Inline (Interface_Present);
13007 pragma Inline (Includes_Infinities);
13008 pragma Inline (Import_Interface_Present);
13009 pragma Inline (In_Present);
13010 pragma Inline (Incomplete_View);
13011 pragma Inline (Inherited_Discriminant);
13012 pragma Inline (Instance_Spec);
13013 pragma Inline (Intval);
13014 pragma Inline (Iterator_Specification);
13015 pragma Inline (Is_Abort_Block);
13016 pragma Inline (Is_Accessibility_Actual);
13017 pragma Inline (Is_Analyzed_Pragma);
13018 pragma Inline (Is_Asynchronous_Call_Block);
13019 pragma Inline (Is_Boolean_Aspect);
13020 pragma Inline (Is_Checked);
13021 pragma Inline (Is_Checked_Ghost_Pragma);
13022 pragma Inline (Is_Component_Left_Opnd);
13023 pragma Inline (Is_Component_Right_Opnd);
13024 pragma Inline (Is_Controlling_Actual);
13025 pragma Inline (Is_Delayed_Aspect);
13026 pragma Inline (Is_Disabled);
13027 pragma Inline (Is_Dynamic_Coextension);
13028 pragma Inline (Is_Elsif);
13029 pragma Inline (Is_Entry_Barrier_Function);
13030 pragma Inline (Is_Expanded_Build_In_Place_Call);
13031 pragma Inline (Is_Expanded_Contract);
13032 pragma Inline (Is_Finalization_Wrapper);
13033 pragma Inline (Is_Folded_In_Parser);
13034 pragma Inline (Is_Generic_Contract_Pragma);
13035 pragma Inline (Is_Ignored);
13036 pragma Inline (Is_Ignored_Ghost_Pragma);
13037 pragma Inline (Is_In_Discriminant_Check);
13038 pragma Inline (Is_Inherited_Pragma);
13039 pragma Inline (Is_Machine_Number);
13040 pragma Inline (Is_Null_Loop);
13041 pragma Inline (Is_Overloaded);
13042 pragma Inline (Is_Power_Of_2_For_Shift);
13043 pragma Inline (Is_Prefixed_Call);
13044 pragma Inline (Is_Protected_Subprogram_Body);
13045 pragma Inline (Is_Qualified_Universal_Literal);
13046 pragma Inline (Is_Static_Coextension);
13047 pragma Inline (Is_Static_Expression);
13048 pragma Inline (Is_Subprogram_Descriptor);
13049 pragma Inline (Is_Task_Allocation_Block);
13050 pragma Inline (Is_Task_Body_Procedure);
13051 pragma Inline (Is_Task_Master);
13052 pragma Inline (Iteration_Scheme);
13053 pragma Inline (Itype);
13054 pragma Inline (Kill_Range_Check);
13055 pragma Inline (Last_Bit);
13056 pragma Inline (Last_Name);
13057 pragma Inline (Library_Unit);
13058 pragma Inline (Label_Construct);
13059 pragma Inline (Left_Opnd);
13060 pragma Inline (Limited_View_Installed);
13061 pragma Inline (Limited_Present);
13062 pragma Inline (Literals);
13063 pragma Inline (Local_Raise_Not_OK);
13064 pragma Inline (Local_Raise_Statements);
13065 pragma Inline (Loop_Actions);
13066 pragma Inline (Loop_Parameter_Specification);
13067 pragma Inline (Low_Bound);
13068 pragma Inline (Mod_Clause);
13069 pragma Inline (More_Ids);
13070 pragma Inline (Must_Be_Byte_Aligned);
13071 pragma Inline (Must_Not_Freeze);
13072 pragma Inline (Must_Not_Override);
13073 pragma Inline (Must_Override);
13074 pragma Inline (Name);
13075 pragma Inline (Names);
13076 pragma Inline (Next_Entity);
13077 pragma Inline (Next_Exit_Statement);
13078 pragma Inline (Next_Implicit_With);
13079 pragma Inline (Next_Named_Actual);
13080 pragma Inline (Next_Pragma);
13081 pragma Inline (Next_Rep_Item);
13082 pragma Inline (Next_Use_Clause);
13083 pragma Inline (No_Ctrl_Actions);
13084 pragma Inline (No_Elaboration_Check);
13085 pragma Inline (No_Entities_Ref_In_Spec);
13086 pragma Inline (No_Initialization);
13087 pragma Inline (No_Minimize_Eliminate);
13088 pragma Inline (No_Side_Effect_Removal);
13089 pragma Inline (No_Truncation);
13090 pragma Inline (Non_Aliased_Prefix);
13091 pragma Inline (Null_Present);
13092 pragma Inline (Null_Excluding_Subtype);
13093 pragma Inline (Null_Exclusion_Present);
13094 pragma Inline (Null_Exclusion_In_Return_Present);
13095 pragma Inline (Null_Record_Present);
13096 pragma Inline (Object_Definition);
13097 pragma Inline (Of_Present);
13098 pragma Inline (Original_Discriminant);
13099 pragma Inline (Original_Entity);
13100 pragma Inline (Others_Discrete_Choices);
13101 pragma Inline (Out_Present);
13102 pragma Inline (Parameter_Associations);
13103 pragma Inline (Parameter_Specifications);
13104 pragma Inline (Parameter_Type);
13105 pragma Inline (Parent_Spec);
13106 pragma Inline (Position);
13107 pragma Inline (Pragma_Argument_Associations);
13108 pragma Inline (Pragma_Identifier);
13109 pragma Inline (Pragmas_After);
13110 pragma Inline (Pragmas_Before);
13111 pragma Inline (Pre_Post_Conditions);
13112 pragma Inline (Prefix);
13113 pragma Inline (Premature_Use);
13114 pragma Inline (Present_Expr);
13115 pragma Inline (Prev_Ids);
13116 pragma Inline (Print_In_Hex);
13117 pragma Inline (Private_Declarations);
13118 pragma Inline (Private_Present);
13119 pragma Inline (Procedure_To_Call);
13120 pragma Inline (Proper_Body);
13121 pragma Inline (Protected_Definition);
13122 pragma Inline (Protected_Present);
13123 pragma Inline (Raises_Constraint_Error);
13124 pragma Inline (Range_Constraint);
13125 pragma Inline (Range_Expression);
13126 pragma Inline (Real_Range_Specification);
13127 pragma Inline (Realval);
13128 pragma Inline (Reason);
13129 pragma Inline (Record_Extension_Part);
13130 pragma Inline (Redundant_Use);
13131 pragma Inline (Renaming_Exception);
13132 pragma Inline (Result_Definition);
13133 pragma Inline (Return_Object_Declarations);
13134 pragma Inline (Return_Statement_Entity);
13135 pragma Inline (Reverse_Present);
13136 pragma Inline (Right_Opnd);
13137 pragma Inline (Rounded_Result);
13138 pragma Inline (SCIL_Controlling_Tag);
13139 pragma Inline (SCIL_Entity);
13140 pragma Inline (SCIL_Tag_Value);
13141 pragma Inline (SCIL_Target_Prim);
13142 pragma Inline (Scope);
13143 pragma Inline (Select_Alternatives);
13144 pragma Inline (Selector_Name);
13145 pragma Inline (Selector_Names);
13146 pragma Inline (Shift_Count_OK);
13147 pragma Inline (Source_Type);
13148 pragma Inline (Specification);
13149 pragma Inline (Split_PPC);
13150 pragma Inline (Statements);
13151 pragma Inline (Storage_Pool);
13152 pragma Inline (Subpool_Handle_Name);
13153 pragma Inline (Strval);
13154 pragma Inline (Subtype_Indication);
13155 pragma Inline (Subtype_Mark);
13156 pragma Inline (Subtype_Marks);
13157 pragma Inline (Suppress_Assignment_Checks);
13158 pragma Inline (Suppress_Loop_Warnings);
13159 pragma Inline (Synchronized_Present);
13160 pragma Inline (Tagged_Present);
13161 pragma Inline (Target_Type);
13162 pragma Inline (Task_Definition);
13163 pragma Inline (Task_Present);
13164 pragma Inline (Then_Actions);
13165 pragma Inline (Then_Statements);
13166 pragma Inline (Triggering_Alternative);
13167 pragma Inline (Triggering_Statement);
13168 pragma Inline (Treat_Fixed_As_Integer);
13169 pragma Inline (TSS_Elist);
13170 pragma Inline (Type_Definition);
13171 pragma Inline (Uneval_Old_Accept);
13172 pragma Inline (Uneval_Old_Warn);
13173 pragma Inline (Unit);
13174 pragma Inline (Uninitialized_Variable);
13175 pragma Inline (Unknown_Discriminants_Present);
13176 pragma Inline (Unreferenced_In_Spec);
13177 pragma Inline (Variant_Part);
13178 pragma Inline (Variants);
13179 pragma Inline (Visible_Declarations);
13180 pragma Inline (Used_Operations);
13181 pragma Inline (Was_Expression_Function);
13182 pragma Inline (Was_Originally_Stub);
13183 pragma Inline (Withed_Body);
13185 pragma Inline (Set_ABE_Is_Certain);
13186 pragma Inline (Set_Abort_Present);
13187 pragma Inline (Set_Abortable_Part);
13188 pragma Inline (Set_Abstract_Present);
13189 pragma Inline (Set_Accept_Handler_Records);
13190 pragma Inline (Set_Accept_Statement);
13191 pragma Inline (Set_Access_Definition);
13192 pragma Inline (Set_Access_To_Subprogram_Definition);
13193 pragma Inline (Set_Access_Types_To_Process);
13194 pragma Inline (Set_Actions);
13195 pragma Inline (Set_Activation_Chain_Entity);
13196 pragma Inline (Set_Acts_As_Spec);
13197 pragma Inline (Set_Actual_Designated_Subtype);
13198 pragma Inline (Set_Address_Warning_Posted);
13199 pragma Inline (Set_Aggregate_Bounds);
13200 pragma Inline (Set_Aliased_Present);
13201 pragma Inline (Set_All_Others);
13202 pragma Inline (Set_All_Present);
13203 pragma Inline (Set_Alternatives);
13204 pragma Inline (Set_Ancestor_Part);
13205 pragma Inline (Set_Array_Aggregate);
13206 pragma Inline (Set_Aspect_Rep_Item);
13207 pragma Inline (Set_Assignment_OK);
13208 pragma Inline (Set_Associated_Node);
13209 pragma Inline (Set_At_End_Proc);
13210 pragma Inline (Set_Atomic_Sync_Required);
13211 pragma Inline (Set_Attribute_Name);
13212 pragma Inline (Set_Aux_Decls_Node);
13213 pragma Inline (Set_Backwards_OK);
13214 pragma Inline (Set_Bad_Is_Detected);
13215 pragma Inline (Set_Body_Required);
13216 pragma Inline (Set_Body_To_Inline);
13217 pragma Inline (Set_Box_Present);
13218 pragma Inline (Set_By_Ref);
13219 pragma Inline (Set_Char_Literal_Value);
13220 pragma Inline (Set_Chars);
13221 pragma Inline (Set_Check_Address_Alignment);
13222 pragma Inline (Set_Choice_Parameter);
13223 pragma Inline (Set_Choices);
13224 pragma Inline (Set_Class_Present);
13225 pragma Inline (Set_Classifications);
13226 pragma Inline (Set_Cleanup_Actions);
13227 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13228 pragma Inline (Set_Compile_Time_Known_Aggregate);
13229 pragma Inline (Set_Component_Associations);
13230 pragma Inline (Set_Component_Clauses);
13231 pragma Inline (Set_Component_Definition);
13232 pragma Inline (Set_Component_Items);
13233 pragma Inline (Set_Component_List);
13234 pragma Inline (Set_Component_Name);
13235 pragma Inline (Set_Componentwise_Assignment);
13236 pragma Inline (Set_Condition);
13237 pragma Inline (Set_Condition_Actions);
13238 pragma Inline (Set_Config_Pragmas);
13239 pragma Inline (Set_Constant_Present);
13240 pragma Inline (Set_Constraint);
13241 pragma Inline (Set_Constraints);
13242 pragma Inline (Set_Context_Installed);
13243 pragma Inline (Set_Context_Items);
13244 pragma Inline (Set_Context_Pending);
13245 pragma Inline (Set_Contract_Test_Cases);
13246 pragma Inline (Set_Controlling_Argument);
13247 pragma Inline (Set_Conversion_OK);
13248 pragma Inline (Set_Convert_To_Return_False);
13249 pragma Inline (Set_Corresponding_Aspect);
13250 pragma Inline (Set_Corresponding_Body);
13251 pragma Inline (Set_Corresponding_Formal_Spec);
13252 pragma Inline (Set_Corresponding_Generic_Association);
13253 pragma Inline (Set_Corresponding_Integer_Value);
13254 pragma Inline (Set_Corresponding_Spec);
13255 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13256 pragma Inline (Set_Corresponding_Stub);
13257 pragma Inline (Set_Dcheck_Function);
13258 pragma Inline (Set_Declarations);
13259 pragma Inline (Set_Default_Expression);
13260 pragma Inline (Set_Default_Name);
13261 pragma Inline (Set_Default_Storage_Pool);
13262 pragma Inline (Set_Defining_Identifier);
13263 pragma Inline (Set_Defining_Unit_Name);
13264 pragma Inline (Set_Delay_Alternative);
13265 pragma Inline (Set_Delay_Statement);
13266 pragma Inline (Set_Delta_Expression);
13267 pragma Inline (Set_Digits_Expression);
13268 pragma Inline (Set_Discr_Check_Funcs_Built);
13269 pragma Inline (Set_Discrete_Choices);
13270 pragma Inline (Set_Discrete_Range);
13271 pragma Inline (Set_Discrete_Subtype_Definition);
13272 pragma Inline (Set_Discrete_Subtype_Definitions);
13273 pragma Inline (Set_Discriminant_Specifications);
13274 pragma Inline (Set_Discriminant_Type);
13275 pragma Inline (Set_Do_Accessibility_Check);
13276 pragma Inline (Set_Do_Discriminant_Check);
13277 pragma Inline (Set_Do_Division_Check);
13278 pragma Inline (Set_Do_Length_Check);
13279 pragma Inline (Set_Do_Overflow_Check);
13280 pragma Inline (Set_Do_Range_Check);
13281 pragma Inline (Set_Do_Storage_Check);
13282 pragma Inline (Set_Do_Tag_Check);
13283 pragma Inline (Set_Elaborate_All_Desirable);
13284 pragma Inline (Set_Elaborate_All_Present);
13285 pragma Inline (Set_Elaborate_Desirable);
13286 pragma Inline (Set_Elaborate_Present);
13287 pragma Inline (Set_Else_Actions);
13288 pragma Inline (Set_Else_Statements);
13289 pragma Inline (Set_Elsif_Parts);
13290 pragma Inline (Set_Enclosing_Variant);
13291 pragma Inline (Set_End_Label);
13292 pragma Inline (Set_End_Span);
13293 pragma Inline (Set_Entity);
13294 pragma Inline (Set_Entry_Body_Formal_Part);
13295 pragma Inline (Set_Entry_Call_Alternative);
13296 pragma Inline (Set_Entry_Call_Statement);
13297 pragma Inline (Set_Entry_Direct_Name);
13298 pragma Inline (Set_Entry_Index);
13299 pragma Inline (Set_Entry_Index_Specification);
13300 pragma Inline (Set_Etype);
13301 pragma Inline (Set_Exception_Choices);
13302 pragma Inline (Set_Exception_Handlers);
13303 pragma Inline (Set_Exception_Junk);
13304 pragma Inline (Set_Exception_Label);
13305 pragma Inline (Set_Expansion_Delayed);
13306 pragma Inline (Set_Explicit_Actual_Parameter);
13307 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13308 pragma Inline (Set_Expression);
13309 pragma Inline (Set_Expression_Copy);
13310 pragma Inline (Set_Expressions);
13311 pragma Inline (Set_First_Bit);
13312 pragma Inline (Set_First_Inlined_Subprogram);
13313 pragma Inline (Set_First_Name);
13314 pragma Inline (Set_First_Named_Actual);
13315 pragma Inline (Set_First_Real_Statement);
13316 pragma Inline (Set_First_Subtype_Link);
13317 pragma Inline (Set_Float_Truncate);
13318 pragma Inline (Set_Formal_Type_Definition);
13319 pragma Inline (Set_Forwards_OK);
13320 pragma Inline (Set_From_Aspect_Specification);
13321 pragma Inline (Set_From_At_End);
13322 pragma Inline (Set_From_At_Mod);
13323 pragma Inline (Set_From_Conditional_Expression);
13324 pragma Inline (Set_From_Default);
13325 pragma Inline (Set_Generalized_Indexing);
13326 pragma Inline (Set_Generic_Associations);
13327 pragma Inline (Set_Generic_Formal_Declarations);
13328 pragma Inline (Set_Generic_Parent);
13329 pragma Inline (Set_Generic_Parent_Type);
13330 pragma Inline (Set_Handled_Statement_Sequence);
13331 pragma Inline (Set_Handler_List_Entry);
13332 pragma Inline (Set_Has_Created_Identifier);
13333 pragma Inline (Set_Has_Dereference_Action);
13334 pragma Inline (Set_Has_Dynamic_Length_Check);
13335 pragma Inline (Set_Has_Dynamic_Range_Check);
13336 pragma Inline (Set_Has_Init_Expression);
13337 pragma Inline (Set_Has_Local_Raise);
13338 pragma Inline (Set_Has_No_Elaboration_Code);
13339 pragma Inline (Set_Has_Pragma_Suppress_All);
13340 pragma Inline (Set_Has_Private_View);
13341 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13342 pragma Inline (Set_Has_Self_Reference);
13343 pragma Inline (Set_Has_SP_Choice);
13344 pragma Inline (Set_Has_Storage_Size_Pragma);
13345 pragma Inline (Set_Has_Target_Names);
13346 pragma Inline (Set_Has_Wide_Character);
13347 pragma Inline (Set_Has_Wide_Wide_Character);
13348 pragma Inline (Set_Header_Size_Added);
13349 pragma Inline (Set_Hidden_By_Use_Clause);
13350 pragma Inline (Set_High_Bound);
13351 pragma Inline (Set_Identifier);
13352 pragma Inline (Set_Implicit_With);
13353 pragma Inline (Set_Import_Interface_Present);
13354 pragma Inline (Set_In_Present);
13355 pragma Inline (Set_Includes_Infinities);
13356 pragma Inline (Set_Incomplete_View);
13357 pragma Inline (Set_Inherited_Discriminant);
13358 pragma Inline (Set_Instance_Spec);
13359 pragma Inline (Set_Interface_List);
13360 pragma Inline (Set_Interface_Present);
13361 pragma Inline (Set_Intval);
13362 pragma Inline (Set_Is_Abort_Block);
13363 pragma Inline (Set_Is_Accessibility_Actual);
13364 pragma Inline (Set_Is_Analyzed_Pragma);
13365 pragma Inline (Set_Is_Asynchronous_Call_Block);
13366 pragma Inline (Set_Is_Boolean_Aspect);
13367 pragma Inline (Set_Is_Checked);
13368 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13369 pragma Inline (Set_Is_Component_Left_Opnd);
13370 pragma Inline (Set_Is_Component_Right_Opnd);
13371 pragma Inline (Set_Is_Controlling_Actual);
13372 pragma Inline (Set_Is_Delayed_Aspect);
13373 pragma Inline (Set_Is_Disabled);
13374 pragma Inline (Set_Is_Dynamic_Coextension);
13375 pragma Inline (Set_Is_Elsif);
13376 pragma Inline (Set_Is_Entry_Barrier_Function);
13377 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13378 pragma Inline (Set_Is_Expanded_Contract);
13379 pragma Inline (Set_Is_Finalization_Wrapper);
13380 pragma Inline (Set_Is_Folded_In_Parser);
13381 pragma Inline (Set_Is_Generic_Contract_Pragma);
13382 pragma Inline (Set_Is_Ignored);
13383 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13384 pragma Inline (Set_Is_In_Discriminant_Check);
13385 pragma Inline (Set_Is_Inherited_Pragma);
13386 pragma Inline (Set_Is_Machine_Number);
13387 pragma Inline (Set_Is_Null_Loop);
13388 pragma Inline (Set_Is_Overloaded);
13389 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13390 pragma Inline (Set_Is_Prefixed_Call);
13391 pragma Inline (Set_Is_Protected_Subprogram_Body);
13392 pragma Inline (Set_Is_Qualified_Universal_Literal);
13393 pragma Inline (Set_Is_Static_Coextension);
13394 pragma Inline (Set_Is_Static_Expression);
13395 pragma Inline (Set_Is_Subprogram_Descriptor);
13396 pragma Inline (Set_Is_Task_Allocation_Block);
13397 pragma Inline (Set_Is_Task_Body_Procedure);
13398 pragma Inline (Set_Is_Task_Master);
13399 pragma Inline (Set_Iteration_Scheme);
13400 pragma Inline (Set_Iterator_Specification);
13401 pragma Inline (Set_Itype);
13402 pragma Inline (Set_Kill_Range_Check);
13403 pragma Inline (Set_Label_Construct);
13404 pragma Inline (Set_Last_Bit);
13405 pragma Inline (Set_Last_Name);
13406 pragma Inline (Set_Left_Opnd);
13407 pragma Inline (Set_Library_Unit);
13408 pragma Inline (Set_Limited_Present);
13409 pragma Inline (Set_Limited_View_Installed);
13410 pragma Inline (Set_Literals);
13411 pragma Inline (Set_Local_Raise_Not_OK);
13412 pragma Inline (Set_Local_Raise_Statements);
13413 pragma Inline (Set_Loop_Actions);
13414 pragma Inline (Set_Loop_Parameter_Specification);
13415 pragma Inline (Set_Low_Bound);
13416 pragma Inline (Set_Mod_Clause);
13417 pragma Inline (Set_More_Ids);
13418 pragma Inline (Set_Must_Be_Byte_Aligned);
13419 pragma Inline (Set_Must_Not_Freeze);
13420 pragma Inline (Set_Must_Not_Override);
13421 pragma Inline (Set_Must_Override);
13422 pragma Inline (Set_Name);
13423 pragma Inline (Set_Names);
13424 pragma Inline (Set_Next_Entity);
13425 pragma Inline (Set_Next_Exit_Statement);
13426 pragma Inline (Set_Next_Implicit_With);
13427 pragma Inline (Set_Next_Named_Actual);
13428 pragma Inline (Set_Next_Pragma);
13429 pragma Inline (Set_Next_Rep_Item);
13430 pragma Inline (Set_Next_Use_Clause);
13431 pragma Inline (Set_No_Ctrl_Actions);
13432 pragma Inline (Set_No_Elaboration_Check);
13433 pragma Inline (Set_No_Entities_Ref_In_Spec);
13434 pragma Inline (Set_No_Initialization);
13435 pragma Inline (Set_No_Minimize_Eliminate);
13436 pragma Inline (Set_No_Side_Effect_Removal);
13437 pragma Inline (Set_No_Truncation);
13438 pragma Inline (Set_Non_Aliased_Prefix);
13439 pragma Inline (Set_Null_Excluding_Subtype);
13440 pragma Inline (Set_Null_Exclusion_Present);
13441 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13442 pragma Inline (Set_Null_Present);
13443 pragma Inline (Set_Null_Record_Present);
13444 pragma Inline (Set_Object_Definition);
13445 pragma Inline (Set_Of_Present);
13446 pragma Inline (Set_Original_Discriminant);
13447 pragma Inline (Set_Original_Entity);
13448 pragma Inline (Set_Others_Discrete_Choices);
13449 pragma Inline (Set_Out_Present);
13450 pragma Inline (Set_Parameter_Associations);
13451 pragma Inline (Set_Parameter_Specifications);
13452 pragma Inline (Set_Parameter_Type);
13453 pragma Inline (Set_Parent_Spec);
13454 pragma Inline (Set_Position);
13455 pragma Inline (Set_Pragma_Argument_Associations);
13456 pragma Inline (Set_Pragma_Identifier);
13457 pragma Inline (Set_Pragmas_After);
13458 pragma Inline (Set_Pragmas_Before);
13459 pragma Inline (Set_Pre_Post_Conditions);
13460 pragma Inline (Set_Prefix);
13461 pragma Inline (Set_Premature_Use);
13462 pragma Inline (Set_Present_Expr);
13463 pragma Inline (Set_Prev_Ids);
13464 pragma Inline (Set_Print_In_Hex);
13465 pragma Inline (Set_Private_Declarations);
13466 pragma Inline (Set_Private_Present);
13467 pragma Inline (Set_Procedure_To_Call);
13468 pragma Inline (Set_Proper_Body);
13469 pragma Inline (Set_Protected_Definition);
13470 pragma Inline (Set_Protected_Present);
13471 pragma Inline (Set_Raises_Constraint_Error);
13472 pragma Inline (Set_Range_Constraint);
13473 pragma Inline (Set_Range_Expression);
13474 pragma Inline (Set_Real_Range_Specification);
13475 pragma Inline (Set_Realval);
13476 pragma Inline (Set_Reason);
13477 pragma Inline (Set_Record_Extension_Part);
13478 pragma Inline (Set_Redundant_Use);
13479 pragma Inline (Set_Renaming_Exception);
13480 pragma Inline (Set_Result_Definition);
13481 pragma Inline (Set_Return_Object_Declarations);
13482 pragma Inline (Set_Reverse_Present);
13483 pragma Inline (Set_Right_Opnd);
13484 pragma Inline (Set_Rounded_Result);
13485 pragma Inline (Set_SCIL_Controlling_Tag);
13486 pragma Inline (Set_SCIL_Entity);
13487 pragma Inline (Set_SCIL_Tag_Value);
13488 pragma Inline (Set_SCIL_Target_Prim);
13489 pragma Inline (Set_Scope);
13490 pragma Inline (Set_Select_Alternatives);
13491 pragma Inline (Set_Selector_Name);
13492 pragma Inline (Set_Selector_Names);
13493 pragma Inline (Set_Shift_Count_OK);
13494 pragma Inline (Set_Source_Type);
13495 pragma Inline (Set_Split_PPC);
13496 pragma Inline (Set_Statements);
13497 pragma Inline (Set_Storage_Pool);
13498 pragma Inline (Set_Strval);
13499 pragma Inline (Set_Subpool_Handle_Name);
13500 pragma Inline (Set_Subtype_Indication);
13501 pragma Inline (Set_Subtype_Mark);
13502 pragma Inline (Set_Subtype_Marks);
13503 pragma Inline (Set_Suppress_Assignment_Checks);
13504 pragma Inline (Set_Suppress_Loop_Warnings);
13505 pragma Inline (Set_Synchronized_Present);
13506 pragma Inline (Set_TSS_Elist);
13507 pragma Inline (Set_Tagged_Present);
13508 pragma Inline (Set_Target_Type);
13509 pragma Inline (Set_Task_Definition);
13510 pragma Inline (Set_Task_Present);
13511 pragma Inline (Set_Then_Actions);
13512 pragma Inline (Set_Then_Statements);
13513 pragma Inline (Set_Treat_Fixed_As_Integer);
13514 pragma Inline (Set_Triggering_Alternative);
13515 pragma Inline (Set_Triggering_Statement);
13516 pragma Inline (Set_Type_Definition);
13517 pragma Inline (Set_Uneval_Old_Accept);
13518 pragma Inline (Set_Uneval_Old_Warn);
13519 pragma Inline (Set_Unit);
13520 pragma Inline (Set_Uninitialized_Variable);
13521 pragma Inline (Set_Unknown_Discriminants_Present);
13522 pragma Inline (Set_Unreferenced_In_Spec);
13523 pragma Inline (Set_Used_Operations);
13524 pragma Inline (Set_Variant_Part);
13525 pragma Inline (Set_Variants);
13526 pragma Inline (Set_Visible_Declarations);
13527 pragma Inline (Set_Was_Expression_Function);
13528 pragma Inline (Set_Was_Originally_Stub);
13529 pragma Inline (Set_Withed_Body);
13531 end Sinfo;