PR target/82524
[official-gcc.git] / gcc / ada / sinfo.ads
blob247d127982d5c5220048c16093130e003d7d380a
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2017, 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 and Set_Ghost_Mode install a new Ghost
593 -- region and routine Restore_Ghost_Mode ends a Ghost region. A region may
594 -- be reinstalled similarly to scopes for decoupled expansion such as the
595 -- generation of 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 -- SPARK Mode --
691 ----------------
693 -- The SPARK RM 1.6.5 defines a mode of operation called "SPARK mode" which
694 -- starts a scope where the SPARK language semantics are either On, Off, or
695 -- Auto, where Auto leaves the choice to the tools. A SPARK mode may be
696 -- specified by means of an aspect or a pragma.
698 -- The following entities may be subject to a SPARK mode. Entities marked
699 -- with * may possess two differente SPARK modes.
701 -- E_Entry
702 -- E_Entry_Family
703 -- E_Function
704 -- E_Generic_Function
705 -- E_Generic_Package *
706 -- E_Generic_Procedure
707 -- E_Operator
708 -- E_Package *
709 -- E_Package_Body *
710 -- E_Procedure
711 -- E_Protected_Body
712 -- E_Protected_Subtype
713 -- E_Protected_Type *
714 -- E_Subprogram_Body
715 -- E_Task_Body
716 -- E_Task_Subtype
717 -- E_Task_Type *
718 -- E_Variable
720 -- In order to manage SPARK scopes, the compiler relies on global variables
721 -- SPARK_Mode and SPARK_Mode_Pragma and a mechanism called "SPARK regions."
722 -- Routines Install_SPARK_Mode and Set_SPARK_Mode create a new SPARK region
723 -- and routine Restore_SPARK_Mode ends a SPARK region. A region may be
724 -- reinstalled similarly to scopes.
726 -----------------------
727 -- Check Flag Fields --
728 -----------------------
730 -- The following flag fields appear in expression nodes:
732 -- Do_Division_Check
733 -- Do_Overflow_Check
734 -- Do_Range_Check
736 -- These three flags are always set by the front end during semantic
737 -- analysis, on expression nodes that may trigger the corresponding
738 -- check. The front end then inserts or not the check during expansion. In
739 -- particular, these flags should also be correctly set in ASIS mode and
740 -- GNATprove mode. As a special case, the front end does not insert a
741 -- Do_Division_Check flag on float exponentiation expressions, for the case
742 -- where the value is 0.0 and the exponent is negative, although this case
743 -- does lead to a division check failure.
745 -- Note: the expander always takes care of the Do_Range check case,
746 -- so this flag will never be set in the expanded tree passed to the
747 -- back end code generator.
749 -- Note that this accounts for all nodes that trigger the corresponding
750 -- checks, except for range checks on subtype_indications, which may be
751 -- required to check that a range_constraint is compatible with the given
752 -- subtype (RM 3.2.2(11)).
754 -- The following flag fields appear in various nodes:
756 -- Do_Accessibility_Check
757 -- Do_Discriminant_Check
758 -- Do_Length_Check
759 -- Do_Storage_Check
760 -- Do_Tag_Check
762 -- These flags are used in some specific cases by the front end, either
763 -- during semantic analysis or during expansion, and cannot be expected
764 -- to be set on all nodes that trigger the corresponding check.
766 ------------------------
767 -- Common Flag Fields --
768 ------------------------
770 -- The following flag fields appear in all nodes:
772 -- Analyzed
773 -- This flag is used to indicate that a node (and all its children have
774 -- been analyzed. It is used to avoid reanalysis of a node that has
775 -- already been analyzed, both for efficiency and functional correctness
776 -- reasons.
778 -- Comes_From_Source
779 -- This flag is set if the node comes directly from an explicit construct
780 -- in the source. It is normally on for any nodes built by the scanner or
781 -- parser from the source program, with the exception that in a few cases
782 -- the parser adds nodes to normalize the representation (in particular
783 -- a null statement is added to a package body if there is no begin/end
784 -- initialization section.
786 -- Most nodes inserted by the analyzer or expander are not considered
787 -- as coming from source, so the flag is off for such nodes. In a few
788 -- cases, the expander constructs nodes closely equivalent to nodes
789 -- from the source program (e.g. the allocator built for build-in-place
790 -- case), and the Comes_From_Source flag is deliberately set.
792 -- Error_Posted
793 -- This flag is used to avoid multiple error messages being posted on or
794 -- referring to the same node. This flag is set if an error message
795 -- refers to a node or is posted on its source location, and has the
796 -- effect of inhibiting further messages involving this same node.
798 -----------------------
799 -- Modify_Tree_For_C --
800 -----------------------
802 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
803 -- in ways that help match the semantics better with C, easing the task of
804 -- interfacing to C code generators (other than GCC, where the work is done
805 -- in gigi, and there is no point in changing that), and also making life
806 -- easier for Cprint in generating C source code.
808 -- The current modifications implemented are as follows:
810 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
811 -- are eliminated from the tree (since these operations do not exist in
812 -- C), and the operations are rewritten in terms of logical shifts and
813 -- other logical operations that do exist in C. See Exp_Ch4 expansion
814 -- routines for these operators for details of the transformations made.
816 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
817 -- less than the word size (since other values are not well-defined in
818 -- C). This is done using an explicit test if necessary.
820 -- Min and Max attributes are expanded into equivalent if expressions,
821 -- dealing properly with side effect issues.
823 -- Mod for signed integer types is expanded into equivalent expressions
824 -- using Rem (which is % in C) and other C-available operators.
826 -- Functions returning bounded arrays are transformed into procedures
827 -- with an extra out parameter, and the calls updated accordingly.
829 -- Aggregates are only kept unexpanded for object declarations, otherwise
830 -- they are systematically expanded into loops (for arrays) and
831 -- individual assignments (for records).
833 -- Unconstrained array types are handled by means of fat pointers.
835 -- Postconditions are inlined by the frontend since their body may have
836 -- references to itypes defined in the enclosing subprogram.
838 ------------------------------------
839 -- Description of Semantic Fields --
840 ------------------------------------
842 -- The meaning of the syntactic fields is generally clear from their names
843 -- without any further description, since the names are chosen to
844 -- correspond very closely to the syntax in the reference manual. This
845 -- section describes the usage of the semantic fields, which are used to
846 -- contain additional information determined during semantic analysis.
848 -- Accept_Handler_Records (List5-Sem)
849 -- This field is present only in an N_Accept_Alternative node. It is used
850 -- to temporarily hold the exception handler records from an accept
851 -- statement in a selective accept. These exception handlers will
852 -- eventually be placed in the Handler_Records list of the procedure
853 -- built for this accept (see Expand_N_Selective_Accept procedure in
854 -- Exp_Ch9 for further details).
856 -- Access_Types_To_Process (Elist2-Sem)
857 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
858 -- Contains the list of access types which may require specific treatment
859 -- when the nature of the type completion is completely known. An example
860 -- of such treatment is the generation of the associated_final_chain.
862 -- Actions (List1-Sem)
863 -- This field contains a sequence of actions that are associated with the
864 -- node holding the field. See the individual node types for details of
865 -- how this field is used, as well as the description of the specific use
866 -- for a particular node type.
868 -- Activation_Chain_Entity (Node3-Sem)
869 -- This is used in tree nodes representing task activators (blocks,
870 -- subprogram bodies, package declarations, and task bodies). It is
871 -- initially Empty, and then gets set to point to the entity for the
872 -- declared Activation_Chain variable when the first task is declared.
873 -- When tasks are declared in the corresponding declarative region this
874 -- entity is located by name (its name is always _Chain) and the declared
875 -- tasks are added to the chain. Note that N_Extended_Return_Statement
876 -- does not have this attribute, although it does have an activation
877 -- chain. This chain is used to store the tasks temporarily, and is not
878 -- used for activating them. On successful completion of the return
879 -- statement, the tasks are moved to the caller's chain, and the caller
880 -- activates them.
882 -- Acts_As_Spec (Flag4-Sem)
883 -- A flag set in the N_Subprogram_Body node for a subprogram body which
884 -- is acting as its own spec. In the case of a library-level subprogram
885 -- the flag is set as well on the parent compilation unit node.
887 -- Actual_Designated_Subtype (Node4-Sem)
888 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
889 -- needs to known the dynamic constrained subtype of the designated
890 -- object, this attribute is set to that type. This is done for
891 -- N_Free_Statements for access-to-classwide types and access to
892 -- unconstrained packed array types, and for N_Explicit_Dereference when
893 -- the designated type is an unconstrained packed array and the
894 -- dereference is the prefix of a 'Size attribute reference.
896 -- Address_Warning_Posted (Flag18-Sem)
897 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
898 -- posted a warning for the address clause regarding size or alignment
899 -- issues. Used to inhibit multiple redundant messages.
901 -- Aggregate_Bounds (Node3-Sem)
902 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
903 -- known at compile time, this field points to an N_Range node with those
904 -- bounds. Otherwise Empty.
906 -- All_Others (Flag11-Sem)
907 -- Present in an N_Others_Choice node. This flag is set for an others
908 -- exception where all exceptions are to be caught, even those that are
909 -- not normally handled (in particular the tasking abort signal). This
910 -- is used for translation of the at end handler into a normal exception
911 -- handler.
913 -- Aspect_Rep_Item (Node2-Sem)
914 -- Present in N_Aspect_Specification nodes. Points to the corresponding
915 -- pragma/attribute definition node used to process the aspect.
917 -- Assignment_OK (Flag15-Sem)
918 -- This flag is set in a subexpression node for an object, indicating
919 -- that the associated object can be modified, even if this would not
920 -- normally be permissible (either by direct assignment, or by being
921 -- passed as an out or in-out parameter). This is used by the expander
922 -- for a number of purposes, including initialization of constants and
923 -- limited type objects (such as tasks), setting discriminant fields,
924 -- setting tag values, etc. N_Object_Declaration nodes also have this
925 -- flag defined. Here it is used to indicate that an initialization
926 -- expression is valid, even where it would normally not be allowed
927 -- (e.g. where the type involved is limited). It is also used to stop
928 -- a Force_Evaluation call for an unchecked conversion, but this usage
929 -- is unclear and not documented ???
931 -- Associated_Node (Node4-Sem)
932 -- Present in nodes that can denote an entity: identifiers, character
933 -- literals, operator symbols, expanded names, operator nodes, and
934 -- attribute reference nodes (all these nodes have an Entity field).
935 -- This field is also present in N_Aggregate, N_Selected_Component, and
936 -- N_Extension_Aggregate nodes. This field is used in generic processing
937 -- to create links between the generic template and the generic copy.
938 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
939 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
940 -- the normal function of Entity is not required at the point where the
941 -- Associated_Node is set. Note also, that in generic templates, this
942 -- means that the Entity field does not necessarily point to an Entity.
943 -- Since the back end is expected to ignore generic templates, this is
944 -- harmless.
946 -- Atomic_Sync_Required (Flag14-Sem)
947 -- This flag is set on a node for which atomic synchronization is
948 -- required for the corresponding reference or modification.
950 -- At_End_Proc (Node1)
951 -- This field is present in an N_Handled_Sequence_Of_Statements node.
952 -- It contains an identifier reference for the cleanup procedure to be
953 -- called. See description of this node for further details.
955 -- Backwards_OK (Flag6-Sem)
956 -- A flag present in the N_Assignment_Statement node. It is used only
957 -- if the type being assigned is an array type, and is set if analysis
958 -- determines that it is definitely safe to do the copy backwards, i.e.
959 -- starting at the highest addressed element. This is the case if either
960 -- the operands do not overlap, or they may overlap, but if they do,
961 -- then the left operand is at a higher address than the right operand.
963 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
964 -- means that the front end could not determine that either direction is
965 -- definitely safe, and a runtime check may be required if the backend
966 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
967 -- set, it means that the front end can assure no overlap of operands.
969 -- Body_To_Inline (Node3-Sem)
970 -- Present in subprogram declarations. Denotes analyzed but unexpanded
971 -- body of subprogram, to be used when inlining calls. Present when the
972 -- subprogram has an Inline pragma and inlining is enabled. If the
973 -- declaration is completed by a renaming_as_body, and the renamed entity
974 -- is a subprogram, the Body_To_Inline is the name of that entity, which
975 -- is used directly in later calls to the original subprogram.
977 -- Body_Required (Flag13-Sem)
978 -- A flag that appears in the N_Compilation_Unit node indicating that
979 -- the corresponding unit requires a body. For the package case, this
980 -- indicates that a completion is required. In Ada 95, if the flag is not
981 -- set for the package case, then a body may not be present. In Ada 83,
982 -- if the flag is not set for the package case, then body is optional.
983 -- For a subprogram declaration, the flag is set except in the case where
984 -- a pragma Import or Interface applies, in which case no body is
985 -- permitted (in Ada 83 or Ada 95).
987 -- By_Ref (Flag5-Sem)
988 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
989 -- this flag is set when the returned expression is already allocated on
990 -- the secondary stack and thus the result is passed by reference rather
991 -- than copied another time.
993 -- Cleanup_Actions (List5-Sem)
994 -- Present in block statements created for transient blocks, contains
995 -- additional cleanup actions carried over from the transient scope.
997 -- Check_Address_Alignment (Flag11-Sem)
998 -- A flag present in N_Attribute_Definition clause for a 'Address
999 -- attribute definition. This flag is set if a dynamic check should be
1000 -- generated at the freeze point for the entity to which this address
1001 -- clause applies. The reason that we need this flag is that we want to
1002 -- check for range checks being suppressed at the point where the
1003 -- attribute definition clause is given, rather than testing this at the
1004 -- freeze point.
1006 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
1007 -- Present in N_Simple_Return_Statement nodes. True if this node was
1008 -- constructed as part of the N_Extended_Return_Statement expansion.
1010 -- Compile_Time_Known_Aggregate (Flag18-Sem)
1011 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
1012 -- evaluated at compile time without raising constraint error. Such
1013 -- aggregates can be passed as is to the back end without any expansion.
1014 -- See Exp_Aggr for specific conditions under which this flag gets set.
1016 -- Componentwise_Assignment (Flag14-Sem)
1017 -- Present in N_Assignment_Statement nodes. Set for a record assignment
1018 -- where all that needs doing is to expand it into component-by-component
1019 -- assignments. This is used internally for the case of tagged types with
1020 -- rep clauses, where we need to avoid recursion (we don't want to try to
1021 -- generate a call to the primitive operation, because this is the case
1022 -- where we are compiling the primitive operation). Note that when we are
1023 -- expanding component assignments in this case, we never assign the _tag
1024 -- field, but we recursively assign components of the parent type.
1026 -- Condition_Actions (List3-Sem)
1027 -- This field appears in else-if nodes and in the iteration scheme node
1028 -- for while loops. This field is only used during semantic processing to
1029 -- temporarily hold actions inserted into the tree. In the tree passed
1030 -- to gigi, the condition actions field is always set to No_List. For
1031 -- details on how this field is used, see the routine Insert_Actions in
1032 -- package Exp_Util, and also the expansion routines for the relevant
1033 -- nodes.
1035 -- Context_Pending (Flag16-Sem)
1036 -- This field appears in Compilation_Unit nodes, to indicate that the
1037 -- context of the unit is being compiled. Used to detect circularities
1038 -- that are not otherwise detected by the loading mechanism. Such
1039 -- circularities can occur in the presence of limited and non-limited
1040 -- with_clauses that mention the same units.
1042 -- Controlling_Argument (Node1-Sem)
1043 -- This field is set in procedure and function call nodes if the call
1044 -- is a dispatching call (it is Empty for a non-dispatching call). It
1045 -- indicates the source of the call's controlling tag. For procedure
1046 -- calls, the Controlling_Argument is one of the actuals. For function
1047 -- that has a dispatching result, it is an entity in the context of the
1048 -- call that can provide a tag, or else it is the tag of the root type
1049 -- of the class. It can also specify a tag directly rather than being a
1050 -- tagged object. The latter is needed by the implementations of AI-239
1051 -- and AI-260.
1053 -- Conversion_OK (Flag14-Sem)
1054 -- A flag set on type conversion nodes to indicate that the conversion
1055 -- is to be considered as being valid, even though it is the case that
1056 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1057 -- Fixed_Value and Integer_Value, for internal conversions done for
1058 -- fixed-point operations, and for certain conversions for calls to
1059 -- initialization procedures. If Conversion_OK is set, then Etype must be
1060 -- set (the analyzer assumes that Etype has been set). For the case of
1061 -- fixed-point operands, it also indicates that the conversion is to be
1062 -- direct conversion of the underlying integer result, with no regard to
1063 -- the small operand.
1065 -- Convert_To_Return_False (Flag13-Sem)
1066 -- Present in N_Raise_Expression nodes that appear in the body of the
1067 -- special predicateM function used to test a predicate in the context
1068 -- of a membership test, where raise expression results in returning a
1069 -- value of False rather than raising an exception.
1071 -- Corresponding_Aspect (Node3-Sem)
1072 -- Present in N_Pragma node. Used to point back to the source aspect from
1073 -- the corresponding pragma. This field is Empty for source pragmas.
1075 -- Corresponding_Body (Node5-Sem)
1076 -- This field is set in subprogram declarations, package declarations,
1077 -- entry declarations of protected types, and in generic units. It points
1078 -- to the defining entity for the corresponding body (NOT the node for
1079 -- the body itself).
1081 -- Corresponding_Formal_Spec (Node3-Sem)
1082 -- This field is set in subprogram renaming declarations, where it points
1083 -- to the defining entity for a formal subprogram in the case where the
1084 -- renaming corresponds to a generic formal subprogram association in an
1085 -- instantiation. The field is Empty if the renaming does not correspond
1086 -- to such a formal association.
1088 -- Corresponding_Generic_Association (Node5-Sem)
1089 -- This field is defined for object declarations and object renaming
1090 -- declarations. It is set for the declarations within an instance that
1091 -- map generic formals to their actuals. If set, the field points to
1092 -- a generic_association which is the original parent of the expression
1093 -- or name appearing in the declaration. This simplifies ASIS queries.
1095 -- Corresponding_Integer_Value (Uint4-Sem)
1096 -- This field is set in real literals of fixed-point types (it is not
1097 -- used for floating-point types). It contains the integer value used
1098 -- to represent the fixed-point value. It is also set on the universal
1099 -- real literals used to represent bounds of fixed-point base types
1100 -- and their first named subtypes.
1102 -- Corresponding_Spec (Node5-Sem)
1103 -- This field is set in subprogram, package, task, and protected body
1104 -- nodes, where it points to the defining entity in the corresponding
1105 -- spec. The attribute is also set in N_With_Clause nodes where it points
1106 -- to the defining entity for the with'ed spec, and in a subprogram
1107 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1108 -- if there is no corresponding spec, as in the case of a subprogram body
1109 -- that serves as its own spec.
1111 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1112 -- complete a subprogram declaration.
1114 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1115 -- This field is present in subprogram, package, task and protected body
1116 -- stubs where it points to the corresponding spec of the stub. Due to
1117 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1119 -- Corresponding_Stub (Node3-Sem)
1120 -- This field is present in an N_Subunit node. It holds the node in
1121 -- the parent unit that is the stub declaration for the subunit. It is
1122 -- set when analysis of the stub forces loading of the proper body. If
1123 -- expansion of the proper body creates new declarative nodes, they are
1124 -- inserted at the point of the corresponding_stub.
1126 -- Dcheck_Function (Node5-Sem)
1127 -- This field is present in an N_Variant node, It references the entity
1128 -- for the discriminant checking function for the variant.
1130 -- Default_Expression (Node5-Sem)
1131 -- This field is Empty if there is no default expression. If there is a
1132 -- simple default expression (one with no side effects), then this field
1133 -- simply contains a copy of the Expression field (both point to the tree
1134 -- for the default expression). Default_Expression is used for
1135 -- conformance checking.
1137 -- Default_Storage_Pool (Node3-Sem)
1138 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1139 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1140 -- package Opt for details. This is used for inheriting the
1141 -- Default_Storage_Pool in child units.
1143 -- Discr_Check_Funcs_Built (Flag11-Sem)
1144 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1145 -- discriminant checking functions are constructed. The purpose is to
1146 -- avoid attempting to set these functions more than once.
1148 -- Do_Accessibility_Check (Flag13-Sem)
1149 -- This flag is set on N_Parameter_Specification nodes to indicate
1150 -- that an accessibility check is required for the parameter. It is
1151 -- not yet decided who takes care of this check (TBD ???).
1153 -- Do_Discriminant_Check (Flag3-Sem)
1154 -- This flag is set on N_Selected_Component nodes to indicate that a
1155 -- discriminant check is required using the discriminant check routine
1156 -- associated with the selector. The actual check is generated by the
1157 -- expander when processing selected components. In the case of
1158 -- Unchecked_Union, the flag is also set, but no discriminant check
1159 -- routine is associated with the selector, and the expander does not
1160 -- generate a check. This flag is also present in assignment statements
1161 -- (and set if the assignment requires a discriminant check), and in type
1162 -- conversion nodes (and set if the conversion requires a check).
1164 -- Do_Division_Check (Flag13-Sem)
1165 -- This flag is set on a division operator (/ mod rem) to indicate
1166 -- that a zero divide check is required. The actual check is dealt
1167 -- with by the backend (all the front end does is to set the flag).
1169 -- Do_Length_Check (Flag4-Sem)
1170 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1171 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1172 -- is required. It is not determined who deals with this flag (???).
1174 -- Do_Overflow_Check (Flag17-Sem)
1175 -- This flag is set on an operator where an overflow check is required on
1176 -- the operation. The actual check is dealt with by the backend (all the
1177 -- front end does is to set the flag). The other cases where this flag is
1178 -- used is on a Type_Conversion node and for attribute reference nodes.
1179 -- For a type conversion, it means that the conversion is from one base
1180 -- type to another, and the value may not fit in the target base type.
1181 -- See also the description of Do_Range_Check for this case. The only
1182 -- attribute references which use this flag are Pred and Succ, where it
1183 -- means that the result should be checked for going outside the base
1184 -- range. Note that this flag is not set for modular types. This flag is
1185 -- also set on if and case expression nodes if we are operating in either
1186 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1187 -- properly process overflow checking for dependent expressions).
1189 -- Do_Range_Check (Flag9-Sem)
1190 -- This flag is set on an expression which appears in a context where a
1191 -- range check is required. The target type is clear from the context.
1192 -- The contexts in which this flag can appear are the following:
1194 -- Right side of an assignment. In this case the target type is
1195 -- taken from the left side of the assignment, which is referenced
1196 -- by the Name of the N_Assignment_Statement node.
1198 -- Subscript expressions in an indexed component. In this case the
1199 -- target type is determined from the type of the array, which is
1200 -- referenced by the Prefix of the N_Indexed_Component node.
1202 -- Argument expression for a parameter, appearing either directly in
1203 -- the Parameter_Associations list of a call or as the Expression of an
1204 -- N_Parameter_Association node that appears in this list. In either
1205 -- case, the check is against the type of the formal. Note that the
1206 -- flag is relevant only in IN and IN OUT parameters, and will be
1207 -- ignored for OUT parameters, where no check is required in the call,
1208 -- and if a check is required on the return, it is generated explicitly
1209 -- with a type conversion.
1211 -- Initialization expression for the initial value in an object
1212 -- declaration. In this case the Do_Range_Check flag is set on
1213 -- the initialization expression, and the check is against the
1214 -- range of the type of the object being declared. This includes the
1215 -- cases of expressions providing default discriminant values, and
1216 -- expressions used to initialize record components.
1218 -- The expression of a type conversion. In this case the range check is
1219 -- against the target type of the conversion. See also the use of
1220 -- Do_Overflow_Check on a type conversion. The distinction is that the
1221 -- overflow check protects against a value that is outside the range of
1222 -- the target base type, whereas a range check checks that the
1223 -- resulting value (which is a value of the base type of the target
1224 -- type), satisfies the range constraint of the target type.
1226 -- Note: when a range check is required in contexts other than those
1227 -- listed above (e.g. in a return statement), an additional type
1228 -- conversion node is introduced to represent the required check.
1230 -- A special case arises for the arguments of the Pred/Succ attributes.
1231 -- Here the range check needed is against First + 1 .. Last (Pred) or
1232 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1233 -- these checks are what would be performed within the implicit body of
1234 -- the functions that correspond to these attributes. In these cases,
1235 -- the Do_Range check flag is set on the argument to the attribute
1236 -- function, and the back end must special case the appropriate range
1237 -- to check against.
1239 -- Do_Storage_Check (Flag17-Sem)
1240 -- This flag is set in an N_Allocator node to indicate that a storage
1241 -- check is required for the allocation, or in an N_Subprogram_Body node
1242 -- to indicate that a stack check is required in the subprogram prologue.
1243 -- The N_Allocator case is handled by the routine that expands the call
1244 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1245 -- backend, and all the semantics does is set the flag.
1247 -- Do_Tag_Check (Flag13-Sem)
1248 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1249 -- N_Procedure_Call_Statement, N_Type_Conversion,
1250 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1251 -- node to indicate that the tag check can be suppressed. It is not
1252 -- yet decided how this flag is used (TBD ???).
1254 -- Elaborate_Present (Flag4-Sem)
1255 -- This flag is set in the N_With_Clause node to indicate that pragma
1256 -- Elaborate pragma appears for the with'ed units.
1258 -- Elaborate_All_Desirable (Flag9-Sem)
1259 -- This flag is set in the N_With_Clause mode to indicate that the static
1260 -- elaboration processing has determined that an Elaborate_All pragma is
1261 -- desirable for correct elaboration for this unit.
1263 -- Elaborate_All_Present (Flag14-Sem)
1264 -- This flag is set in the N_With_Clause node to indicate that a
1265 -- pragma Elaborate_All pragma appears for the with'ed units.
1267 -- Elaborate_Desirable (Flag11-Sem)
1268 -- This flag is set in the N_With_Clause mode to indicate that the static
1269 -- elaboration processing has determined that an Elaborate pragma is
1270 -- desirable for correct elaboration for this unit.
1272 -- Else_Actions (List3-Sem)
1273 -- This field is present in if expression nodes. During code
1274 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1275 -- actions at an appropriate place in the tree to get elaborated at the
1276 -- right time. For if expressions, we have to be sure that the actions
1277 -- for the Else branch are only elaborated if the condition is False.
1278 -- The Else_Actions field is used as a temporary parking place for
1279 -- these actions. The final tree is always rewritten to eliminate the
1280 -- need for this field, so in the tree passed to Gigi, this field is
1281 -- always set to No_List.
1283 -- Enclosing_Variant (Node2-Sem)
1284 -- This field is present in the N_Variant node and identifies the Node_Id
1285 -- corresponding to the immediately enclosing variant when the variant is
1286 -- nested, and N_Empty otherwise. Set during semantic processing of the
1287 -- variant part of a record type.
1289 -- Entity (Node4-Sem)
1290 -- Appears in all direct names (identifiers, character literals, and
1291 -- operator symbols), as well as expanded names, and attributes that
1292 -- denote entities, such as 'Class. Points to entity for corresponding
1293 -- defining occurrence. Set after name resolution. For identifiers in a
1294 -- WITH list, the corresponding defining occurrence is in a separately
1295 -- compiled file, and Entity must be set by the library Load procedure.
1297 -- Note: During name resolution, the value in Entity may be temporarily
1298 -- incorrect (e.g. during overload resolution, Entity is initially set to
1299 -- the first possible correct interpretation, and then later modified if
1300 -- necessary to contain the correct value after resolution).
1302 -- Note: This field overlaps Associated_Node, which is used during
1303 -- generic processing (see Sem_Ch12 for details). Note also that in
1304 -- generic templates, this means that the Entity field does not always
1305 -- point to an Entity. Since the back end is expected to ignore generic
1306 -- templates, this is harmless.
1308 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1309 -- It is used only for stream attributes definition clauses. In this
1310 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1311 -- conceptually at the point of the clause. Thus the visibility of the
1312 -- attribute definition clause (in the sense of 8.3(23) as amended by
1313 -- AI-195) can be checked by testing the visibility of that subprogram.
1315 -- Note: Normally the Entity field of an identifier points to the entity
1316 -- for the corresponding defining identifier, and hence the Chars field
1317 -- of an identifier will match the Chars field of the entity. However,
1318 -- there is no requirement that these match, and there are obscure cases
1319 -- of generated code where they do not match.
1321 -- Note: Ada 2012 aspect specifications require additional links between
1322 -- identifiers and various attributes. These attributes can be of
1323 -- arbitrary types, and the entity field of identifiers that denote
1324 -- aspects must be used to store arbitrary expressions for later semantic
1325 -- checks. See section on aspect specifications for details.
1327 -- Entity_Or_Associated_Node (Node4-Sem)
1328 -- A synonym for both Entity and Associated_Node. Used by convention in
1329 -- the code when referencing this field in cases where it is not known
1330 -- whether the field contains an Entity or an Associated_Node.
1332 -- Etype (Node5-Sem)
1333 -- Appears in all expression nodes, all direct names, and all entities.
1334 -- Points to the entity for the related type. Set after type resolution.
1335 -- Normally this is the actual subtype of the expression. However, in
1336 -- certain contexts such as the right side of an assignment, subscripts,
1337 -- arguments to calls, returned value in a function, initial value etc.
1338 -- it is the desired target type. In the event that this is different
1339 -- from the actual type, the Do_Range_Check flag will be set if a range
1340 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1341 -- points to an essentially arbitrary choice from the possible set of
1342 -- types.
1344 -- Exception_Junk (Flag8-Sem)
1345 -- This flag is set in a various nodes appearing in a statement sequence
1346 -- to indicate that the corresponding node is an artifact of the
1347 -- generated code for exception handling, and should be ignored when
1348 -- analyzing the control flow of the relevant sequence of statements
1349 -- (e.g. to check that it does not end with a bad return statement).
1351 -- Exception_Label (Node5-Sem)
1352 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1353 -- to be used for transforming the corresponding exception into a goto,
1354 -- or contains Empty, if this exception is not to be transformed. Also
1355 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1356 -- that there may be a local raise for the handler, so that expansion
1357 -- to allow a goto is required (and this field contains the label for
1358 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1360 -- Expansion_Delayed (Flag11-Sem)
1361 -- Set on aggregates and extension aggregates that need a top-down rather
1362 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1363 -- up. For nested aggregates the expansion is delayed until the enclosing
1364 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1365 -- delay it we set this flag. This is done to avoid creating a temporary
1366 -- for each level of a nested aggregate, and also to prevent the
1367 -- premature generation of constraint checks. This is also a requirement
1368 -- if we want to generate the proper attachment to the internal????
1369 -- finalization lists (for record with controlled components). Top down
1370 -- expansion of aggregates is also used for in-place array aggregate
1371 -- assignment or initialization. When the full context is known, the
1372 -- target of the assignment or initialization is used to generate the
1373 -- left-hand side of individual assignment to each sub-component.
1375 -- Expression_Copy (Node2-Sem)
1376 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1377 -- original expression. This field is best used to store pragma-dependent
1378 -- modifications performed on the original expression such as replacement
1379 -- of the current type instance or substitutions of primitives.
1381 -- First_Inlined_Subprogram (Node3-Sem)
1382 -- Present in the N_Compilation_Unit node for the main program. Points
1383 -- to a chain of entities for subprograms that are to be inlined. The
1384 -- Next_Inlined_Subprogram field of these entities is used as a link
1385 -- pointer with Empty marking the end of the list. This field is Empty
1386 -- if there are no inlined subprograms or inlining is not active.
1388 -- First_Named_Actual (Node4-Sem)
1389 -- Present in procedure call statement and function call nodes, and also
1390 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1391 -- named parameter where parameters are ordered by declaration order (as
1392 -- opposed to the actual order in the call which may be different due to
1393 -- named associations). Note: this field points to the explicit actual
1394 -- parameter itself, not the N_Parameter_Association node (its parent).
1396 -- First_Real_Statement (Node2-Sem)
1397 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1398 -- Empty. Used only when declarations are moved into the statement part
1399 -- of a construct as a result of wrapping an AT END handler that is
1400 -- required to cover the declarations. In this case, this field is used
1401 -- to remember the location in the statements list of the first real
1402 -- statement, i.e. the statement that used to be first in the statement
1403 -- list before the declarations were prepended.
1405 -- First_Subtype_Link (Node5-Sem)
1406 -- Present in N_Freeze_Entity node for an anonymous base type that is
1407 -- implicitly created by the declaration of a first subtype. It points
1408 -- to the entity for the first subtype.
1410 -- Float_Truncate (Flag11-Sem)
1411 -- A flag present in type conversion nodes. This is used for float to
1412 -- integer conversions where truncation is required rather than rounding.
1414 -- Forwards_OK (Flag5-Sem)
1415 -- A flag present in the N_Assignment_Statement node. It is used only
1416 -- if the type being assigned is an array type, and is set if analysis
1417 -- determines that it is definitely safe to do the copy forwards, i.e.
1418 -- starting at the lowest addressed element. This is the case if either
1419 -- the operands do not overlap, or they may overlap, but if they do,
1420 -- then the left operand is at a lower address than the right operand.
1422 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1423 -- means that the front end could not determine that either direction is
1424 -- definitely safe, and a runtime check may be required if the backend
1425 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1426 -- set, it means that the front end can assure no overlap of operands.
1428 -- From_Aspect_Specification (Flag13-Sem)
1429 -- Processing of aspect specifications typically results in insertion in
1430 -- the tree of corresponding pragma or attribute definition clause nodes.
1431 -- These generated nodes have the From_Aspect_Specification flag set to
1432 -- indicate that they came from aspect specifications originally.
1434 -- From_At_End (Flag4-Sem)
1435 -- This flag is set on an N_Raise_Statement node if it corresponds to
1436 -- the reraise statement generated as the last statement of an AT END
1437 -- handler when SJLJ exception handling is active. It is used to stop
1438 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1439 -- because if the restriction is set, the reraise is not generated.
1441 -- From_At_Mod (Flag4-Sem)
1442 -- This flag is set on the attribute definition clause node that is
1443 -- generated by a transformation of an at mod phrase in a record
1444 -- representation clause. This is used to give slightly different (Ada 83
1445 -- compatible) semantics to such a clause, namely it is used to specify a
1446 -- minimum acceptable alignment for the base type and all subtypes. In
1447 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1448 -- must be a multiple of the given value, and the representation clause
1449 -- is considered to be type specific instead of subtype specific.
1451 -- From_Conditional_Expression (Flag1-Sem)
1452 -- This flag is set on if and case statements generated by the expansion
1453 -- of if and case expressions respectively. The flag is used to suppress
1454 -- any finalization of controlled objects found within these statements.
1456 -- From_Default (Flag6-Sem)
1457 -- This flag is set on the subprogram renaming declaration created in an
1458 -- instance for a formal subprogram, when the formal is declared with a
1459 -- box, and there is no explicit actual. If the flag is present, the
1460 -- declaration is treated as an implicit reference to the formal in the
1461 -- ali file.
1463 -- Generalized_Indexing (Node4-Sem)
1464 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1465 -- that are Ada 2012 container indexing operations. The value of the
1466 -- attribute is a function call (possibly dereferenced) that corresponds
1467 -- to the proper expansion of the source indexing operation. Before
1468 -- expansion, the source node is rewritten as the resolved generalized
1469 -- indexing. In ASIS mode, the expansion does not take place, so that
1470 -- the source is preserved and properly annotated with types.
1472 -- Generic_Parent (Node5-Sem)
1473 -- Generic_Parent is defined on declaration nodes that are instances. The
1474 -- value of Generic_Parent is the generic entity from which the instance
1475 -- is obtained. Generic_Parent is also defined for the renaming
1476 -- declarations and object declarations created for the actuals in an
1477 -- instantiation. The generic parent of such a declaration is the
1478 -- corresponding generic association in the Instantiation node.
1480 -- Generic_Parent_Type (Node4-Sem)
1481 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1482 -- actuals of formal private and derived types. Within the instance, the
1483 -- operations on the actual are those inherited from the parent. For a
1484 -- formal private type, the parent type is the generic type itself. The
1485 -- Generic_Parent_Type is also used in an instance to determine whether a
1486 -- private operation overrides an inherited one.
1488 -- Handler_List_Entry (Node2-Sem)
1489 -- This field is present in N_Object_Declaration nodes. It is set only
1490 -- for the Handler_Record entry generated for an exception in zero cost
1491 -- exception handling mode. It references the corresponding item in the
1492 -- handler list, and is used to delete this entry if the corresponding
1493 -- handler is deleted during optimization. For further details on why
1494 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1496 -- Has_Dereference_Action (Flag13-Sem)
1497 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1498 -- indicate that the expansion has aready produced a call to primitive
1499 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1500 -- Such dereference actions are produced for debugging purposes.
1502 -- Has_Dynamic_Length_Check (Flag10-Sem)
1503 -- This flag is present in all expression nodes. It is set to indicate
1504 -- that one of the routines in unit Checks has generated a length check
1505 -- action which has been inserted at the flagged node. This is used to
1506 -- avoid the generation of duplicate checks.
1508 -- Has_Dynamic_Range_Check (Flag12-Sem)
1509 -- This flag is present in N_Subtype_Declaration nodes and on all
1510 -- expression nodes. It is set to indicate that one of the routines in
1511 -- unit Checks has generated a range check action which has been inserted
1512 -- at the flagged node. This is used to avoid the generation of duplicate
1513 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1514 -- it mean in that context???
1516 -- Has_Local_Raise (Flag8-Sem)
1517 -- Present in exception handler nodes. Set if the handler can be entered
1518 -- via a local raise that gets transformed to a goto statement. This will
1519 -- always be set if Local_Raise_Statements is non-empty, but can also be
1520 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1521 -- nodes requiring generation of back end checks.
1523 -- Has_No_Elaboration_Code (Flag17-Sem)
1524 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1525 -- or not elaboration code is present for this unit. It is initially set
1526 -- true for subprogram specs and bodies and for all generic units and
1527 -- false for non-generic package specs and bodies. Gigi may set the flag
1528 -- in the non-generic package case if it determines that no elaboration
1529 -- code is generated. Note that this flag is not related to the
1530 -- Is_Preelaborated status, there can be preelaborated packages that
1531 -- generate elaboration code, and non-preelaborated packages which do
1532 -- not generate elaboration code.
1534 -- Has_Pragma_Suppress_All (Flag14-Sem)
1535 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1536 -- pragma appears anywhere in the unit. This accommodates the rather
1537 -- strange placement rules of other compilers (DEC permits it at the
1538 -- end of a unit, and Rational allows it as a program unit pragma). We
1539 -- allow it anywhere at all, and consider it equivalent to a pragma
1540 -- Suppress (All_Checks) appearing at the start of the configuration
1541 -- pragmas for the unit.
1543 -- Has_Private_View (Flag11-Sem)
1544 -- A flag present in generic nodes that have an entity, to indicate that
1545 -- the node has a private type. Used to exchange private and full
1546 -- declarations if the visibility at instantiation is different from the
1547 -- visibility at generic definition.
1549 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1550 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1551 -- flag the presence of a pragma Relative_Deadline.
1553 -- Has_Self_Reference (Flag13-Sem)
1554 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1555 -- of the expressions contains an access attribute reference to the
1556 -- enclosing type. Such a self-reference can only appear in default-
1557 -- initialized aggregate for a record type.
1559 -- Has_SP_Choice (Flag15-Sem)
1560 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1561 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1562 -- True if the Discrete_Choices list has at least one occurrence of a
1563 -- statically predicated subtype.
1565 -- Has_Storage_Size_Pragma (Flag5-Sem)
1566 -- A flag present in an N_Task_Definition node to flag the presence of a
1567 -- Storage_Size pragma.
1569 -- Has_Target_Names (Flag8-Sem)
1570 -- Present in assignment statements. Indicates that the RHS contains
1571 -- target names (see AI12-0125-3) and must be expanded accordingly.
1573 -- Has_Wide_Character (Flag11-Sem)
1574 -- Present in string literals, set if any wide character (i.e. character
1575 -- code outside the Character range but within Wide_Character range)
1576 -- appears in the string. Used to implement pragma preference rules.
1578 -- Has_Wide_Wide_Character (Flag13-Sem)
1579 -- Present in string literals, set if any wide character (i.e. character
1580 -- code outside the Wide_Character range) appears in the string. Used to
1581 -- implement pragma preference rules.
1583 -- Header_Size_Added (Flag11-Sem)
1584 -- Present in N_Attribute_Reference nodes, set only for attribute
1585 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1586 -- hidden list header used by the runtime finalization support has been
1587 -- added to the size of the prefix. The flag also prevents the infinite
1588 -- expansion of the same attribute in the said context.
1590 -- Hidden_By_Use_Clause (Elist5-Sem)
1591 -- An entity list present in use clauses that appear within
1592 -- instantiations. For the resolution of local entities, entities
1593 -- introduced by these use clauses have priority over global ones, and
1594 -- outer entities must be explicitly hidden/restored on exit.
1596 -- Implicit_With (Flag16-Sem)
1597 -- This flag is set in the N_With_Clause node that is implicitly
1598 -- generated for runtime units that are loaded by the expander or in
1599 -- GNATprove mode, and also for package System, if it is loaded
1600 -- implicitly by a use of the 'Address or 'Tag attribute.
1601 -- ??? There are other implicit with clauses as well.
1603 -- Implicit_With_From_Instantiation (Flag12-Sem)
1604 -- Set in N_With_Clause nodes from generic instantiations.
1606 -- Import_Interface_Present (Flag16-Sem)
1607 -- This flag is set in an Interface or Import pragma if a matching
1608 -- pragma of the other kind is also present. This is used to avoid
1609 -- generating some unwanted error messages.
1611 -- Includes_Infinities (Flag11-Sem)
1612 -- This flag is present in N_Range nodes. It is set for the range of
1613 -- unconstrained float types defined in Standard, which include not only
1614 -- the given range of values, but also legitimately can include infinite
1615 -- values. This flag is false for any float type for which an explicit
1616 -- range is given by the programmer, even if that range is identical to
1617 -- the range for Float.
1619 -- Incomplete_View (Node2-Sem)
1620 -- Present in full type declarations that are completions of incomplete
1621 -- type declarations. Denotes the corresponding incomplete type
1622 -- declaration. Used to simplify the retrieval of primitive operations
1623 -- that may be declared between the partial and the full view of an
1624 -- untagged type.
1626 -- Inherited_Discriminant (Flag13-Sem)
1627 -- This flag is present in N_Component_Association nodes. It indicates
1628 -- that a given component association in an extension aggregate is the
1629 -- value obtained from a constraint on an ancestor. Used to prevent
1630 -- double expansion when the aggregate has expansion delayed.
1632 -- Instance_Spec (Node5-Sem)
1633 -- This field is present in generic instantiation nodes, and also in
1634 -- formal package declaration nodes (formal package declarations are
1635 -- treated in a manner very similar to package instantiations). It points
1636 -- to the node for the spec of the instance, inserted as part of the
1637 -- semantic processing for instantiations in Sem_Ch12.
1639 -- Is_Abort_Block (Flag4-Sem)
1640 -- Present in N_Block_Statement nodes. True if the block protects a list
1641 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1643 -- Is_Accessibility_Actual (Flag13-Sem)
1644 -- Present in N_Parameter_Association nodes. True if the parameter is
1645 -- an extra actual that carries the accessibility level of the actual
1646 -- for an access parameter, in a function that dispatches on result and
1647 -- is called in a dispatching context. Used to prevent a formal/actual
1648 -- mismatch when the call is rewritten as a dispatching call.
1650 -- Is_Analyzed_Pragma (Flag5-Sem)
1651 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1652 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1653 -- and verifies the overall legality of the pragma. The second step takes
1654 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1655 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1657 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1658 -- A flag set in a Block_Statement node to indicate that it is the
1659 -- expansion of an asynchronous entry call. Such a block needs cleanup
1660 -- handler to assure that the call is cancelled.
1662 -- Is_Boolean_Aspect (Flag16-Sem)
1663 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1664 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1666 -- Is_Checked (Flag11-Sem)
1667 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1668 -- assertion aspect or pragma, or check pragma for an assertion, that
1669 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1670 -- is set (they cannot both be set), then this means that the status of
1671 -- the pragma has been checked at the appropriate point and should not
1672 -- be further modified (in some cases these flags are copied when a
1673 -- pragma is rewritten).
1675 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1676 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1677 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1678 -- This flag has no relation to Is_Checked.
1680 -- Is_Component_Left_Opnd (Flag13-Sem)
1681 -- Is_Component_Right_Opnd (Flag14-Sem)
1682 -- Present in concatenation nodes, to indicate that the corresponding
1683 -- operand is of the component type of the result. Used in resolving
1684 -- concatenation nodes in instances.
1686 -- Is_Controlling_Actual (Flag16-Sem)
1687 -- This flag is set on an expression that is a controlling argument in
1688 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1689 -- details of its use.
1691 -- Is_Declaration_Level_Node (Flag5-Sem)
1692 -- Present in call marker and instantiation nodes. Set when the constuct
1693 -- appears within the declarations of a block statement, an entry body,
1694 -- a subprogram body, or a task body. The flag aids the ABE Processing
1695 -- phase to catch certain forms of guaranteed ABEs.
1697 -- Is_Delayed_Aspect (Flag14-Sem)
1698 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1699 -- come from aspect specifications, where the evaluation of the aspect
1700 -- must be delayed to the freeze point. This flag is also set True in
1701 -- the corresponding N_Aspect_Specification node.
1703 -- Is_Disabled (Flag15-Sem)
1704 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1705 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1706 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1707 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1708 -- If this flag is set, the aspect or policy is not analyzed for semantic
1709 -- correctness, so any expressions etc will not be marked as analyzed.
1711 -- Is_Dispatching_Call (Flag3-Sem)
1712 -- Present in call marker nodes. Set when the related call which prompted
1713 -- the creation of the marker is dispatching.
1715 -- Is_Dynamic_Coextension (Flag18-Sem)
1716 -- Present in allocator nodes, to indicate that this is an allocator
1717 -- for an access discriminant of a dynamically allocated object. The
1718 -- coextension must be deallocated and finalized at the same time as
1719 -- the enclosing object.
1721 -- Is_Effective_Use_Clause (Flag1-Sem)
1722 -- Present in both N_Use_Type_Clause and N_Use_Package_Clause to indicate
1723 -- a use clause is "used" in the current source.
1725 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
1726 -- Present in nodes which represent an elaboration scenario. Those are
1727 -- assignment statement, attribute reference, call marker, entry call
1728 -- statement, expanded name, function call, identifier, instantiation,
1729 -- procedure call statement, and requeue statement nodes. Set when the
1730 -- node appears within a context which allows for the generation of
1731 -- run-time ABE checks. This flag detemines whether the ABE Processing
1732 -- phase generates conditional ABE checks and guaranteed ABE failures.
1734 -- Is_Entry_Barrier_Function (Flag8-Sem)
1735 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1736 -- nodes which emulate the barrier function of a protected entry body.
1737 -- The flag is used when checking for incorrect use of Current_Task.
1739 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1740 -- This flag is set in an N_Function_Call node to indicate that the extra
1741 -- actuals to support a build-in-place style of call have been added to
1742 -- the call.
1744 -- Is_Expanded_Contract (Flag1-Sem)
1745 -- Present in N_Contract nodes. Set if the contract has already undergone
1746 -- expansion activities.
1748 -- Is_Finalization_Wrapper (Flag9-Sem)
1749 -- This flag is present in N_Block_Statement nodes. It is set when the
1750 -- block acts as a wrapper of a handled construct which has controlled
1751 -- objects. The wrapper prevents interference between exception handlers
1752 -- and At_End handlers.
1754 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1755 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1756 -- a source construct, applies to a generic unit or its body and denotes
1757 -- one of the following contract-related annotations:
1758 -- Abstract_State
1759 -- Contract_Cases
1760 -- Depends
1761 -- Extensions_Visible
1762 -- Global
1763 -- Initial_Condition
1764 -- Initializes
1765 -- Post
1766 -- Post_Class
1767 -- Postcondition
1768 -- Pre
1769 -- Pre_Class
1770 -- Precondition
1771 -- Refined_Depends
1772 -- Refined_Global
1773 -- Refined_Post
1774 -- Refined_State
1775 -- Test_Case
1777 -- Is_Ignored (Flag9-Sem)
1778 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1779 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1780 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1781 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1782 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1783 -- gives a policy for the aspect or pragma, then there are two cases. For
1784 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1785 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1786 -- ignored because of the absence of a -gnata switch. For any other
1787 -- aspects or pragmas, the flag is off. If this flag is set, the
1788 -- aspect/pragma is fully analyzed and checked for other syntactic
1789 -- and semantic errors, but it does not have any semantic effect.
1791 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1792 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1793 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1794 -- This flag has no relation to Is_Ignored.
1796 -- Is_In_Discriminant_Check (Flag11-Sem)
1797 -- This flag is present in a selected component, and is used to indicate
1798 -- that the reference occurs within a discriminant check. The
1799 -- significance is that optimizations based on assuming that the
1800 -- discriminant check has a correct value cannot be performed in this
1801 -- case (or the discriminant check may be optimized away).
1803 -- Is_Inherited_Pragma (Flag4-Sem)
1804 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1805 -- to indicate that the pragma has been inherited from a parent context.
1807 -- Is_Initialization_Block (Flag1-Sem)
1808 -- Defined in block nodes. Set when the block statement was created by
1809 -- the finalization machinery to wrap initialization statements. This
1810 -- flag aids the ABE Processing phase to suppress the diagnostics of
1811 -- finalization actions in initialization contexts.
1813 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
1814 -- Present in call markers and instantiations. Set when the elaboration
1815 -- or evaluation of the scenario results in a guaranteed ABE. The flag
1816 -- is used to suppress the instantiation of generic bodies because gigi
1817 -- cannot handle certain forms of premature instantiation, as well as to
1818 -- prevent the reexamination of the node by the ABE Processing phase.
1820 -- Is_Machine_Number (Flag11-Sem)
1821 -- This flag is set in an N_Real_Literal node to indicate that the value
1822 -- is a machine number. This avoids some unnecessary cases of converting
1823 -- real literals to machine numbers.
1825 -- Is_Null_Loop (Flag16-Sem)
1826 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1827 -- can be determined to be null at compile time. This is used to remove
1828 -- the loop entirely at expansion time.
1830 -- Is_Overloaded (Flag5-Sem)
1831 -- A flag present in all expression nodes. Used temporarily during
1832 -- overloading determination. The setting of this flag is not relevant
1833 -- once overloading analysis is complete.
1835 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1836 -- A flag present only in N_Op_Expon nodes. It is set when the
1837 -- exponentiation is of the form 2 ** N, where the type of N is an
1838 -- unsigned integral subtype whose size does not exceed the size of
1839 -- Standard_Integer (i.e. a type that can be safely converted to
1840 -- Natural), and the exponentiation appears as the right operand of an
1841 -- integer multiplication or an integer division where the dividend is
1842 -- unsigned. It is also required that overflow checking is off for both
1843 -- the exponentiation and the multiply/divide node. If this set of
1844 -- conditions holds, and the flag is set, then the division or
1845 -- multiplication can be (and is) converted to a shift.
1847 -- Is_Prefixed_Call (Flag17-Sem)
1848 -- This flag is set in a selected component within a generic unit, if
1849 -- it resolves to a prefixed call to a primitive operation. The flag
1850 -- is used to prevent accidental overloadings in an instance, when a
1851 -- primitive operation and a private record component may be homographs.
1853 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1854 -- A flag set in a Subprogram_Body block to indicate that it is the
1855 -- implementation of a protected subprogram. Such a body needs cleanup
1856 -- handler to make sure that the associated protected object is unlocked
1857 -- when the subprogram completes.
1859 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1860 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1861 -- converting a universal literal to a specific type. Such qualifiers aid
1862 -- the resolution of accidental overloading of binary or unary operators
1863 -- which may occur in instances.
1865 -- Is_Recorded_Scenario (Flag6-Sem)
1866 -- Present in call marker and instantiation nodes. Set when the scenario
1867 -- was saved by the ABE Recording phase. This flag aids the ABE machinery
1868 -- to keep its internal data up-to-date in case the node is transformed
1869 -- by Atree.Rewrite.
1871 -- Is_Source_Call (Flag4-Sem)
1872 -- Present in call marker nodes. Set when the related call came from
1873 -- source.
1875 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
1876 -- Present in nodes which represent an elaboration scenario. Those are
1877 -- assignment statement, attribute reference, call marker, entry call
1878 -- statement, expanded name, function call, identifier, instantiation,
1879 -- procedure call statement, and requeue statement nodes. Set when the
1880 -- node appears within a context subject to SPARK_Mode On. This flag
1881 -- determines when the SPARK model of elaboration be activated by the
1882 -- ABE Processing phase.
1884 -- Is_Static_Coextension (Flag14-Sem)
1885 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1886 -- of an object allocated on the stack rather than the heap.
1888 -- Is_Static_Expression (Flag6-Sem)
1889 -- Indicates that an expression is a static expression according to the
1890 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1891 -- when Raises_Constraint_Error is also set. In practice almost all cases
1892 -- where a static expression is required do not allow an expression which
1893 -- raises Constraint_Error, so almost always, callers should call the
1894 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1895 -- spec of package Sem_Eval for full details on the use of this flag.
1897 -- Is_Subprogram_Descriptor (Flag16-Sem)
1898 -- Present in N_Object_Declaration, and set only for the object
1899 -- declaration generated for a subprogram descriptor in fast exception
1900 -- mode. See Exp_Ch11 for details of use.
1902 -- Is_Task_Allocation_Block (Flag6-Sem)
1903 -- A flag set in a Block_Statement node to indicate that it is the
1904 -- expansion of a task allocator, or the allocator of an object
1905 -- containing tasks. Such a block requires a cleanup handler to call
1906 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1907 -- allocated but not activated when the allocator completes abnormally.
1909 -- Is_Task_Body_Procedure (Flag1-Sem)
1910 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1911 -- nodes which emulate the body of a task unit.
1913 -- Is_Task_Master (Flag5-Sem)
1914 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1915 -- indicate that the construct is a task master (i.e. has declared tasks
1916 -- or declares an access to a task type).
1918 -- Itype (Node1-Sem)
1919 -- Used in N_Itype_Reference node to reference an itype for which it is
1920 -- important to ensure that it is defined. See description of this node
1921 -- for further details.
1923 -- Kill_Range_Check (Flag11-Sem)
1924 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1925 -- result should not be subjected to range checks. This is used for the
1926 -- implementation of Normalize_Scalars.
1928 -- Label_Construct (Node2-Sem)
1929 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1930 -- N_Block_Statement or N_Loop_Statement node to which the label
1931 -- declaration applies. This attribute is used both in the compiler and
1932 -- in the implementation of ASIS queries. The field is left empty for the
1933 -- special labels generated as part of expanding raise statements with a
1934 -- local exception handler.
1936 -- Library_Unit (Node4-Sem)
1937 -- In a stub node, Library_Unit points to the compilation unit node of
1938 -- the corresponding subunit.
1940 -- In a with clause node, Library_Unit points to the spec of the with'ed
1941 -- unit.
1943 -- In a compilation unit node, the usage depends on the unit type:
1945 -- For a library unit body, Library_Unit points to the compilation unit
1946 -- node of the corresponding spec, unless it's a subprogram body with
1947 -- Acts_As_Spec set, in which case it points to itself.
1949 -- For a spec, Library_Unit points to the compilation unit node of the
1950 -- corresponding body, if present. The body will be present if the spec
1951 -- is or contains generics that we needed to instantiate. Similarly, the
1952 -- body will be present if we needed it for inlining purposes. Thus, if
1953 -- we have a spec/body pair, both of which are present, they point to
1954 -- each other via Library_Unit.
1956 -- For a subunit, Library_Unit points to the compilation unit node of
1957 -- the parent body.
1958 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1959 -- to the corresponding spec for the parent body.
1961 -- Note that this field is not used to hold the parent pointer for child
1962 -- unit (which might in any case need to use it for some other purpose as
1963 -- described above). Instead for a child unit, implicit with's are
1964 -- generated for all parents.
1966 -- Local_Raise_Statements (Elist1)
1967 -- This field is present in exception handler nodes. It is set to
1968 -- No_Elist in the normal case. If there is at least one raise statement
1969 -- which can potentially be handled as a local raise, then this field
1970 -- points to a list of raise nodes, which are calls to a routine to raise
1971 -- an exception. These are raise nodes which can be optimized into gotos
1972 -- if the handler turns out to meet the conditions which permit this
1973 -- transformation. Note that this does NOT include instances of the
1974 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1975 -- handled by the back end (using the N_Push/N_Pop mechanism).
1977 -- Loop_Actions (List2-Sem)
1978 -- A list present in Component_Association nodes in array aggregates.
1979 -- Used to collect actions that must be executed within the loop because
1980 -- they may need to be evaluated anew each time through.
1982 -- Limited_View_Installed (Flag18-Sem)
1983 -- Present in With_Clauses and in package specifications. If set on
1984 -- with_clause, it indicates that this clause has created the current
1985 -- limited view of the designated package. On a package specification, it
1986 -- indicates that the limited view has already been created because the
1987 -- package is mentioned in a limited_with_clause in the closure of the
1988 -- unit being compiled.
1990 -- Local_Raise_Not_OK (Flag7-Sem)
1991 -- Present in N_Exception_Handler nodes. Set if the handler contains
1992 -- a construct (reraise statement, or call to subprogram in package
1993 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1994 -- for a local raise (one that could otherwise be converted to a goto).
1996 -- Must_Be_Byte_Aligned (Flag14-Sem)
1997 -- This flag is present in N_Attribute_Reference nodes. It can be set
1998 -- only for the Address and Unrestricted_Access attributes. If set it
1999 -- means that the object for which the address/access is given must be on
2000 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
2001 -- of the object is to be made before taking the address (this copy is in
2002 -- the current scope on the stack frame). This is used for certain cases
2003 -- of code generated by the expander that passes parameters by address.
2005 -- The reason the copy is not made by the front end is that the back end
2006 -- has more information about type layout and may be able to (but is not
2007 -- guaranteed to) prevent making unnecessary copies.
2009 -- Must_Not_Freeze (Flag8-Sem)
2010 -- A flag present in all expression nodes. Normally expressions cause
2011 -- freezing as described in the RM. If this flag is set, then this is
2012 -- inhibited. This is used by the analyzer and expander to label nodes
2013 -- that are created by semantic analysis or expansion and which must not
2014 -- cause freezing even though they normally would. This flag is also
2015 -- present in an N_Subtype_Indication node, since we also use these in
2016 -- calls to Freeze_Expression.
2018 -- Next_Entity (Node2-Sem)
2019 -- Present in defining identifiers, defining character literals and
2020 -- defining operator symbols (i.e. in all entities). The entities of a
2021 -- scope are chained, and this field is used as the forward pointer for
2022 -- this list. See Einfo for further details.
2024 -- Next_Exit_Statement (Node3-Sem)
2025 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
2026 -- chained (in reverse order of appearance) from the First_Exit_Statement
2027 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
2028 -- the next entry on this chain (Empty = end of list).
2030 -- Next_Implicit_With (Node3-Sem)
2031 -- Present in N_With_Clause. Part of a chain of with_clauses generated
2032 -- in rtsfind to indicate implicit dependencies on predefined units. Used
2033 -- to prevent multiple with_clauses for the same unit in a given context.
2034 -- A postorder traversal of the tree whose nodes are units and whose
2035 -- links are with_clauses defines the order in which CodePeer must
2036 -- examine a compiled unit and its full context. This ordering ensures
2037 -- that any subprogram call is examined after the subprogram declaration
2038 -- has been seen.
2040 -- Next_Named_Actual (Node4-Sem)
2041 -- Present in parameter association nodes. Set during semantic analysis
2042 -- to point to the next named parameter, where parameters are ordered by
2043 -- declaration order (as opposed to the actual order in the call, which
2044 -- may be different due to named associations). Not that this field
2045 -- points to the explicit actual parameter itself, not to the
2046 -- N_Parameter_Association node (its parent).
2048 -- Next_Pragma (Node1-Sem)
2049 -- Present in N_Pragma nodes. Used to create a linked list of pragma
2050 -- nodes. Currently used for two purposes:
2052 -- Create a list of linked Check_Policy pragmas. The head of this list
2053 -- is stored in Opt.Check_Policy_List (which has further details).
2055 -- Used by processing for Pre/Postcondition pragmas to store a list of
2056 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
2057 -- details).
2059 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
2060 -- the apply to the same construct. These are visible/private mode for
2061 -- a package spec and declarative/statement mode for package body.
2063 -- Next_Rep_Item (Node5-Sem)
2064 -- Present in pragma nodes, attribute definition nodes, enumeration rep
2065 -- clauses, record rep clauses, aspect specification nodes. Used to link
2066 -- representation items that apply to an entity. See full description of
2067 -- First_Rep_Item field in Einfo for further details.
2069 -- Next_Use_Clause (Node3-Sem)
2070 -- While use clauses are active during semantic processing, they are
2071 -- chained from the scope stack entry, using Next_Use_Clause as a link
2072 -- pointer, with Empty marking the end of the list. The head pointer is
2073 -- in the scope stack entry (First_Use_Clause). At the end of semantic
2074 -- processing (i.e. when Gigi sees the tree, the contents of this field
2075 -- is undefined and should not be read).
2077 -- No_Ctrl_Actions (Flag7-Sem)
2078 -- Present in N_Assignment_Statement to indicate that no Finalize nor
2079 -- Adjust should take place on this assignment even though the RHS is
2080 -- controlled. Also indicates that the primitive _assign should not be
2081 -- used for a tagged assignment. This is used in init procs and aggregate
2082 -- expansions where the generated assignments are initializations, not
2083 -- real assignments.
2085 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2086 -- Present in N_With_Clause nodes. Set if the with clause is on the
2087 -- package or subprogram spec where the main unit is the corresponding
2088 -- body, and no entities of the with'ed unit are referenced by the spec
2089 -- (an entity may still be referenced in the body, so this flag is used
2090 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2091 -- full details).
2093 -- No_Initialization (Flag13-Sem)
2094 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2095 -- object must not be initialized (by Initialize or call to an init
2096 -- proc). This is needed for controlled aggregates. When the Object
2097 -- declaration has an expression, this flag means that this expression
2098 -- should not be taken into account (needed for in place initialization
2099 -- with aggregates, and for object with an address clause, which are
2100 -- initialized with an assignment at freeze time).
2102 -- No_Minimize_Eliminate (Flag17-Sem)
2103 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2104 -- It is used to indicate that processing for extended overflow checking
2105 -- modes is not required (this is used to prevent infinite recursion).
2107 -- No_Side_Effect_Removal (Flag17-Sem)
2108 -- Present in N_Function_Call nodes. Set when a function call does not
2109 -- require side effect removal. This attribute suppresses the generation
2110 -- of a temporary to capture the result of the function which eventually
2111 -- replaces the function call.
2113 -- No_Truncation (Flag17-Sem)
2114 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2115 -- only if the RM_Size of the source is greater than the RM_Size of the
2116 -- target for scalar operands. Normally in such a case we truncate some
2117 -- higher order bits of the source, and then sign/zero extend the result
2118 -- to form the output value. But if this flag is set, then we do not do
2119 -- any truncation, so for example, if an 8 bit input is converted to 5
2120 -- bit result which is in fact stored in 8 bits, then the high order
2121 -- three bits of the target result will be copied from the source. This
2122 -- is used for properly setting out of range values for use by pragmas
2123 -- Initialize_Scalars and Normalize_Scalars.
2125 -- Null_Excluding_Subtype (Flag16)
2126 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2127 -- indication carries a null-exclusion indicator, which is distinct from
2128 -- the null-exclusion indicator that may precede the access keyword.
2130 -- Original_Discriminant (Node2-Sem)
2131 -- Present in identifiers. Used in references to discriminants that
2132 -- appear in generic units. Because the names of the discriminants may be
2133 -- different in an instance, we use this field to recover the position of
2134 -- the discriminant in the original type, and replace it with the
2135 -- discriminant at the same position in the instantiated type.
2137 -- Original_Entity (Node2-Sem)
2138 -- Present in numeric literals. Used to denote the named number that has
2139 -- been constant-folded into the given literal. If literal is from
2140 -- source, or the result of some other constant-folding operation, then
2141 -- Original_Entity is empty. This field is needed to handle properly
2142 -- named numbers in generic units, where the Associated_Node field
2143 -- interferes with the Entity field, making it impossible to preserve the
2144 -- original entity at the point of instantiation (ASIS problem).
2146 -- Others_Discrete_Choices (List1-Sem)
2147 -- When a case statement or variant is analyzed, the semantic checks
2148 -- determine the actual list of choices that correspond to an others
2149 -- choice. This list is materialized for later use by the expander and
2150 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2151 -- this materialized list of choices, which is in standard format for a
2152 -- list of discrete choices, except that of course it cannot contain an
2153 -- N_Others_Choice entry.
2155 -- Parent_Spec (Node4-Sem)
2156 -- For a library unit that is a child unit spec (package or subprogram
2157 -- declaration, generic declaration or instantiation, or library level
2158 -- rename) this field points to the compilation unit node for the parent
2159 -- package specification. This field is Empty for library bodies (the
2160 -- parent spec in this case can be found from the corresponding spec).
2162 -- Premature_Use (Node5-Sem)
2163 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2164 -- error diagnostics: if there is a premature usage of an incomplete
2165 -- type, a subsequently generated error message indicates the position
2166 -- of its full declaration.
2168 -- Present_Expr (Uint3-Sem)
2169 -- Present in an N_Variant node. This has a meaningful value only after
2170 -- Gigi has back annotated the tree with representation information. At
2171 -- this point, it contains a reference to a gcc expression that depends
2172 -- on the values of one or more discriminants. Give a set of discriminant
2173 -- values, this expression evaluates to False (zero) if variant is not
2174 -- present, and True (non-zero) if it is present. See unit Repinfo for
2175 -- further details on gigi back annotation. This field is used during
2176 -- ASIS processing (data decomposition annex) to determine if a field is
2177 -- present or not.
2179 -- Prev_Use_Clause (Node1-Sem)
2180 -- Present in both N_Use_Package_Clause and N_Use_Type_Clause. Used in
2181 -- detection of ineffective use clauses by allowing a chain of related
2182 -- clauses together to avoid traversing the current scope stack.
2184 -- Print_In_Hex (Flag13-Sem)
2185 -- Set on an N_Integer_Literal node to indicate that the value should be
2186 -- printed in hexadecimal in the sprint listing. Has no effect on
2187 -- legality or semantics of program, only on the displayed output. This
2188 -- is used to clarify output from the packed array cases.
2190 -- Procedure_To_Call (Node2-Sem)
2191 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2192 -- and N_Extended_Return_Statement nodes. References the entity for the
2193 -- declaration of the procedure to be called to accomplish the required
2194 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2195 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2196 -- allocating the return value), and for the Deallocate procedure in the
2197 -- case of N_Free_Statement.
2199 -- Raises_Constraint_Error (Flag7-Sem)
2200 -- Set on an expression whose evaluation will definitely fail constraint
2201 -- error check. In the case of static expressions, this flag must be set
2202 -- accurately (and if it is set, the expression is typically illegal
2203 -- unless it appears as a non-elaborated branch of a short-circuit form).
2204 -- For a non-static expression, this flag may be set whenever an
2205 -- expression (e.g. an aggregate) is known to raise constraint error. If
2206 -- set, the expression definitely will raise CE if elaborated at runtime.
2207 -- If not set, the expression may or may not raise CE. In other words, on
2208 -- static expressions, the flag is set accurately, on non-static
2209 -- expressions it is set conservatively.
2211 -- Redundant_Use (Flag13-Sem)
2212 -- Present in nodes that can appear as an operand in a use clause or use
2213 -- type clause (identifiers, expanded names, attribute references). Set
2214 -- to indicate that a use is redundant (and therefore need not be undone
2215 -- on scope exit).
2217 -- Renaming_Exception (Node2-Sem)
2218 -- Present in N_Exception_Declaration node. Used to point back to the
2219 -- exception renaming for an exception declared within a subprogram.
2220 -- What happens is that an exception declared in a subprogram is moved
2221 -- to the library level with a unique name, and the original exception
2222 -- becomes a renaming. This link from the library level exception to the
2223 -- renaming declaration allows registering of the proper exception name.
2225 -- Return_Statement_Entity (Node5-Sem)
2226 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2227 -- Points to an E_Return_Statement representing the return statement.
2229 -- Return_Object_Declarations (List3)
2230 -- Present in N_Extended_Return_Statement. Points to a list initially
2231 -- containing a single N_Object_Declaration representing the return
2232 -- object. We use a list (instead of just a pointer to the object decl)
2233 -- because Analyze wants to insert extra actions on this list.
2235 -- Rounded_Result (Flag18-Sem)
2236 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2237 -- Used in the fixed-point cases to indicate that the result must be
2238 -- rounded as a result of the use of the 'Round attribute. Also used for
2239 -- integer N_Op_Divide nodes to indicate that the result should be
2240 -- rounded to the nearest integer (breaking ties away from zero), rather
2241 -- than truncated towards zero as usual. These rounded integer operations
2242 -- are the result of expansion of rounded fixed-point divide, conversion
2243 -- and multiplication operations.
2245 -- SCIL_Entity (Node4-Sem)
2246 -- Present in SCIL nodes. References the specific tagged type associated
2247 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2248 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2249 -- generated as part of testing membership in T'Class, this is T; for an
2250 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2252 -- SCIL_Controlling_Tag (Node5-Sem)
2253 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2254 -- tag of a dispatching call. This is usually an N_Selected_Component
2255 -- node (for a _tag component), but may be an N_Object_Declaration or
2256 -- N_Parameter_Specification node in some cases (e.g., for a call to
2257 -- a classwide streaming operation or a call to an instance of
2258 -- Ada.Tags.Generic_Dispatching_Constructor).
2260 -- SCIL_Tag_Value (Node5-Sem)
2261 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2262 -- of the value that is being tested.
2264 -- SCIL_Target_Prim (Node2-Sem)
2265 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2266 -- operation named (statically) in a dispatching call.
2268 -- Scope (Node3-Sem)
2269 -- Present in defining identifiers, defining character literals and
2270 -- defining operator symbols (i.e. in all entities). The entities of a
2271 -- scope all use this field to reference the corresponding scope entity.
2272 -- See Einfo for further details.
2274 -- Shift_Count_OK (Flag4-Sem)
2275 -- A flag present in shift nodes to indicate that the shift count is
2276 -- known to be in range, i.e. is in the range from zero to word length
2277 -- minus one. If this flag is not set, then the shift count may be
2278 -- outside this range, i.e. larger than the word length, and the code
2279 -- must ensure that such shift counts give the appropriate result.
2281 -- Source_Type (Node1-Sem)
2282 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2283 -- source type entity for the unchecked conversion instantiation
2284 -- which gigi must do size validation for.
2286 -- Split_PPC (Flag17)
2287 -- When a Pre or Post aspect specification is processed, it is broken
2288 -- into AND THEN sections. The left most section has Split_PPC set to
2289 -- False, indicating that it is the original specification (e.g. for
2290 -- posting errors). For other sections, Split_PPC is set to True.
2291 -- This flag is set in both the N_Aspect_Specification node itself,
2292 -- and in the pragma which is generated from this node.
2294 -- Storage_Pool (Node1-Sem)
2295 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2296 -- and N_Extended_Return_Statement nodes. References the entity for the
2297 -- storage pool to be used for the allocate or free call or for the
2298 -- allocation of the returned value from function. Empty indicates that
2299 -- the global default pool is to be used. Note that in the case
2300 -- of a return statement, this field is set only if the function returns
2301 -- value of a type whose size is not known at compile time on the
2302 -- secondary stack.
2304 -- Suppress_Assignment_Checks (Flag18-Sem)
2305 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2306 -- and range checks in cases where the generated code knows that the
2307 -- value being assigned is in range and satisfies any predicate. Also
2308 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2309 -- checks on the initializing value. In assignment statements it also
2310 -- suppresses access checks in the generated code for out- and in-out
2311 -- parameters in entry calls.
2313 -- Suppress_Loop_Warnings (Flag17-Sem)
2314 -- Used in N_Loop_Statement node to indicate that warnings within the
2315 -- body of the loop should be suppressed. This is set when the range
2316 -- of a FOR loop is known to be null, or is probably null (loop would
2317 -- only execute if invalid values are present).
2319 -- Target (Node1-Sem)
2320 -- Present in call marker nodes. References the entity of the entry,
2321 -- operator, or subprogram invoked by the related call or requeue.
2323 -- Target_Type (Node2-Sem)
2324 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2325 -- type entity for the unchecked conversion instantiation which gigi must
2326 -- do size validation for.
2328 -- Then_Actions (List3-Sem)
2329 -- This field is present in if expression nodes. During code expansion
2330 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2331 -- at an appropriate place in the tree to get elaborated at the right
2332 -- time. For if expressions, we have to be sure that the actions for
2333 -- for the Then branch are only elaborated if the condition is True.
2334 -- The Then_Actions field is used as a temporary parking place for
2335 -- these actions. The final tree is always rewritten to eliminate the
2336 -- need for this field, so in the tree passed to Gigi, this field is
2337 -- always set to No_List.
2339 -- Treat_Fixed_As_Integer (Flag14-Sem)
2340 -- This flag appears in operator nodes for divide, multiply, mod and rem
2341 -- on fixed-point operands. It indicates that the operands are to be
2342 -- treated as integer values, ignoring small values. This flag is only
2343 -- set as a result of expansion of fixed-point operations. Typically a
2344 -- fixed-point multiplication in the source generates subsidiary
2345 -- multiplication and division operations that work with the underlying
2346 -- integer values and have this flag set. Note that this flag is not
2347 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2348 -- in these cases it is always the case that fixed is treated as integer.
2349 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2350 -- leave such nodes alone, and whoever makes them must set the correct
2351 -- Etype value.
2353 -- TSS_Elist (Elist3-Sem)
2354 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2355 -- entries for each TSS (type support subprogram) associated with the
2356 -- frozen type. The elements of the list are the entities for the
2357 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2358 -- if there are no type support subprograms for the type or if the freeze
2359 -- node is not for a type.
2361 -- Uneval_Old_Accept (Flag7-Sem)
2362 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2363 -- (accept) at the point where the pragma is encountered (including the
2364 -- case of a pragma generated from an aspect specification). It is this
2365 -- setting that is relevant, rather than the setting at the point where
2366 -- a contract is finally analyzed after the delay till the freeze point.
2368 -- Uneval_Old_Warn (Flag18-Sem)
2369 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2370 -- (warn) at the point where the pragma is encountered (including the
2371 -- case of a pragma generated from an aspect specification). It is this
2372 -- setting that is relevant, rather than the setting at the point where
2373 -- a contract is finally analyzed after the delay till the freeze point.
2375 -- Unreferenced_In_Spec (Flag7-Sem)
2376 -- Present in N_With_Clause nodes. Set if the with clause is on the
2377 -- package or subprogram spec where the main unit is the corresponding
2378 -- body, and is not referenced by the spec (it may still be referenced by
2379 -- the body, so this flag is used to generate the proper message (see
2380 -- Sem_Util.Check_Unused_Withs for details)
2382 -- Uninitialized_Variable (Node3-Sem)
2383 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2384 -- Extension_Declarations. Indicates that a variable in a generic unit
2385 -- whose type is a formal private or derived type is read without being
2386 -- initialized. Used to warn if the corresponding actual type is not
2387 -- a fully initialized type.
2389 -- Used_Operations (Elist2-Sem)
2390 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2391 -- are made potentially use-visible by the clause. Simplifies processing
2392 -- on exit from the scope of the use_type_clause, in particular in the
2393 -- case of Use_All_Type, when those operations several scopes.
2395 -- Was_Attribute_Reference (Flag2-Sem)
2396 -- Present in N_Subprogram_Body. Set to True if the original source is an
2397 -- attribute reference which is an actual in a generic instantiation. The
2398 -- instantiation prologue renames these attributes, and expansion later
2399 -- converts them into subprogram bodies.
2401 -- Was_Expression_Function (Flag18-Sem)
2402 -- Present in N_Subprogram_Body. True if the original source had an
2403 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2404 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2405 -- recreate the expression function (for the instance body) when the
2406 -- completion of a generic function declaration is an expression
2407 -- function.
2409 -- Was_Originally_Stub (Flag13-Sem)
2410 -- This flag is set in the node for a proper body that replaces stub.
2411 -- During the analysis procedure, stubs in some situations get rewritten
2412 -- by the corresponding bodies, and we set this flag to remember that
2413 -- this happened. Note that it is not good enough to rely on the use of
2414 -- Original_Node here because of the case of nested instantiations where
2415 -- the substituted node can be copied.
2417 -- Withed_Body (Node1-Sem)
2418 -- Present in N_With_Clause nodes. Set if the unit in whose context
2419 -- the with_clause appears instantiates a generic contained in the
2420 -- library unit of the with_clause and as a result loads its body.
2421 -- Used for a more precise unit traversal for CodePeer.
2423 --------------------------------------------------
2424 -- Note on Use of End_Label and End_Span Fields --
2425 --------------------------------------------------
2427 -- Several constructs have end lines:
2429 -- Loop Statement end loop [loop_IDENTIFIER];
2430 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2431 -- Task Definition end [task_IDENTIFIER]
2432 -- Protected Definition end [protected_IDENTIFIER]
2433 -- Protected Body end [protected_IDENTIFIER]
2435 -- Block Statement end [block_IDENTIFIER];
2436 -- Subprogram Body end [DESIGNATOR];
2437 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2438 -- Task Body end [task_IDENTIFIER];
2439 -- Accept Statement end [entry_IDENTIFIER]];
2440 -- Entry Body end [entry_IDENTIFIER];
2442 -- If Statement end if;
2443 -- Case Statement end case;
2445 -- Record Definition end record;
2446 -- Enumeration Definition );
2448 -- The End_Label and End_Span fields are used to mark the locations of
2449 -- these lines, and also keep track of the label in the case where a label
2450 -- is present.
2452 -- For the first group above, the End_Label field of the corresponding node
2453 -- is used to point to the label identifier. In the case where there is no
2454 -- label in the source, the parser supplies a dummy identifier (with
2455 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2456 -- marks the location of the token following the END token.
2458 -- For the second group, the use of End_Label is similar, but the End_Label
2459 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2460 -- simply because in some cases there is no room in the parent node.
2462 -- For the third group, there is never any label, and instead of using
2463 -- End_Label, we use the End_Span field which gives the location of the
2464 -- token following END, relative to the starting Sloc of the construct,
2465 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2466 -- following the End_Label.
2468 -- The record definition case is handled specially, we treat it as though
2469 -- it required an optional label which is never present, and so the parser
2470 -- always builds a dummy identifier with Comes From Source set False. The
2471 -- reason we do this, rather than using End_Span in this case, is that we
2472 -- want to generate a cross-ref entry for the end of a record, since it
2473 -- represents a scope for name declaration purposes.
2475 -- The enumeration definition case is handled in an exactly similar manner,
2476 -- building a dummy identifier to get a cross-reference.
2478 -- Note: the reason we store the difference as a Uint, instead of storing
2479 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2480 -- distinguished from other types of values, and we count on all general
2481 -- use fields being self describing. To make things easier for clients,
2482 -- note that we provide function End_Location, and procedure
2483 -- Set_End_Location to allow access to the logical value (which is the
2484 -- Source_Ptr value for the end token).
2486 ---------------------
2487 -- Syntactic Nodes --
2488 ---------------------
2490 ---------------------
2491 -- 2.3 Identifier --
2492 ---------------------
2494 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2495 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2497 -- An IDENTIFIER shall not be a reserved word
2499 -- In the Ada grammar identifiers are the bottom level tokens which have
2500 -- very few semantics. Actual program identifiers are direct names. If
2501 -- we were being 100% honest with the grammar, then we would have a node
2502 -- called N_Direct_Name which would point to an identifier. However,
2503 -- that's too many extra nodes, so we just use the N_Identifier node
2504 -- directly as a direct name, and it contains the expression fields and
2505 -- Entity field that correspond to its use as a direct name. In those
2506 -- few cases where identifiers appear in contexts where they are not
2507 -- direct names (pragmas, pragma argument associations, attribute
2508 -- references and attribute definition clauses), the Chars field of the
2509 -- node contains the Name_Id for the identifier name.
2511 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2512 -- cases. First, an incorrect use of a reserved word as an identifier is
2513 -- diagnosed and then treated as a normal identifier. Second, an
2514 -- attribute designator of the form of a reserved word (access, delta,
2515 -- digits, range) is treated as an identifier.
2517 -- Note: The set of letters that is permitted in an identifier depends
2518 -- on the character set in use. See package Csets for full details.
2520 -- N_Identifier
2521 -- Sloc points to identifier
2522 -- Chars (Name1) contains the Name_Id for the identifier
2523 -- Entity (Node4-Sem)
2524 -- Associated_Node (Node4-Sem)
2525 -- Original_Discriminant (Node2-Sem)
2526 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
2527 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
2528 -- Has_Private_View (Flag11-Sem) (set in generic units)
2529 -- Redundant_Use (Flag13-Sem)
2530 -- Atomic_Sync_Required (Flag14-Sem)
2531 -- plus fields for expression
2533 --------------------------
2534 -- 2.4 Numeric Literal --
2535 --------------------------
2537 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2539 ----------------------------
2540 -- 2.4.1 Decimal Literal --
2541 ----------------------------
2543 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2545 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2547 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2549 -- Decimal literals appear in the tree as either integer literal nodes
2550 -- or real literal nodes, depending on whether a period is present.
2552 -- Note: literal nodes appear as a result of direct use of literals
2553 -- in the source program, and also as the result of evaluating
2554 -- expressions at compile time. In the latter case, it is possible
2555 -- to construct real literals that have no syntactic representation
2556 -- using the standard literal format. Such literals are listed by
2557 -- Sprint using the notation [numerator / denominator].
2559 -- Note: the value of an integer literal node created by the front end
2560 -- is never outside the range of values of the base type. However, it
2561 -- can be the case that the created value is outside the range of the
2562 -- particular subtype. This happens in the case of integer overflows
2563 -- with checks suppressed.
2565 -- N_Integer_Literal
2566 -- Sloc points to literal
2567 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2568 -- has been constant-folded into its literal value.
2569 -- Intval (Uint3) contains integer value of literal
2570 -- Print_In_Hex (Flag13-Sem)
2571 -- plus fields for expression
2573 -- N_Real_Literal
2574 -- Sloc points to literal
2575 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2576 -- has been constant-folded into its literal value.
2577 -- Realval (Ureal3) contains real value of literal
2578 -- Corresponding_Integer_Value (Uint4-Sem)
2579 -- Is_Machine_Number (Flag11-Sem)
2580 -- plus fields for expression
2582 --------------------------
2583 -- 2.4.2 Based Literal --
2584 --------------------------
2586 -- BASED_LITERAL ::=
2587 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2589 -- BASE ::= NUMERAL
2591 -- BASED_NUMERAL ::=
2592 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2594 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2596 -- Based literals appear in the tree as either integer literal nodes
2597 -- or real literal nodes, depending on whether a period is present.
2599 ----------------------------
2600 -- 2.5 Character Literal --
2601 ----------------------------
2603 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2605 -- N_Character_Literal
2606 -- Sloc points to literal
2607 -- Chars (Name1) contains the Name_Id for the identifier
2608 -- Char_Literal_Value (Uint2) contains the literal value
2609 -- Entity (Node4-Sem)
2610 -- Associated_Node (Node4-Sem)
2611 -- Has_Private_View (Flag11-Sem) set in generic units.
2612 -- plus fields for expression
2614 -- Note: the Entity field will be missing (set to Empty) for character
2615 -- literals whose type is Standard.Wide_Character or Standard.Character
2616 -- or a type derived from one of these two. In this case the character
2617 -- literal stands for its own coding. The reason we take this irregular
2618 -- short cut is to avoid the need to build lots of junk defining
2619 -- character literal nodes.
2621 -------------------------
2622 -- 2.6 String Literal --
2623 -------------------------
2625 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2627 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2628 -- single GRAPHIC_CHARACTER other than a quotation mark.
2630 -- Is_Folded_In_Parser is True if the parser created this literal by
2631 -- folding a sequence of "&" operators. For example, if the source code
2632 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2633 -- is set. This flag is needed because the parser doesn't know about
2634 -- visibility, so the folded result might be wrong, and semantic
2635 -- analysis needs to check for that.
2637 -- N_String_Literal
2638 -- Sloc points to literal
2639 -- Strval (Str3) contains Id of string value
2640 -- Has_Wide_Character (Flag11-Sem)
2641 -- Has_Wide_Wide_Character (Flag13-Sem)
2642 -- Is_Folded_In_Parser (Flag4)
2643 -- plus fields for expression
2645 ------------------
2646 -- 2.7 Comment --
2647 ------------------
2649 -- A COMMENT starts with two adjacent hyphens and extends up to the
2650 -- end of the line. A COMMENT may appear on any line of a program.
2652 -- Comments are skipped by the scanner and do not appear in the tree.
2653 -- It is possible to reconstruct the position of comments with respect
2654 -- to the elements of the tree by using the source position (Sloc)
2655 -- pointers that appear in every tree node.
2657 -----------------
2658 -- 2.8 Pragma --
2659 -----------------
2661 -- PRAGMA ::= pragma IDENTIFIER
2662 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2664 -- Note that a pragma may appear in the tree anywhere a declaration
2665 -- or a statement may appear, as well as in some other situations
2666 -- which are explicitly documented.
2668 -- N_Pragma
2669 -- Sloc points to PRAGMA
2670 -- Next_Pragma (Node1-Sem)
2671 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2672 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2673 -- Pragma_Identifier (Node4)
2674 -- Next_Rep_Item (Node5-Sem)
2675 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2676 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2677 -- Is_Inherited_Pragma (Flag4-Sem)
2678 -- Is_Analyzed_Pragma (Flag5-Sem)
2679 -- Class_Present (Flag6) set if from Aspect with 'Class
2680 -- Uneval_Old_Accept (Flag7-Sem)
2681 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2682 -- Is_Ignored (Flag9-Sem)
2683 -- Is_Checked (Flag11-Sem)
2684 -- From_Aspect_Specification (Flag13-Sem)
2685 -- Is_Delayed_Aspect (Flag14-Sem)
2686 -- Is_Disabled (Flag15-Sem)
2687 -- Import_Interface_Present (Flag16-Sem)
2688 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2689 -- Uneval_Old_Warn (Flag18-Sem)
2691 -- Note: we should have a section on what pragmas are passed on to
2692 -- the back end to be processed. This section should note that pragma
2693 -- Psect_Object is always converted to Common_Object, but there are
2694 -- undoubtedly many other similar notes required ???
2696 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2697 -- applied to pragma nodes to obtain the Chars or its mapped version.
2699 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2700 -- aspect name, as does the Pragma_Identifier. In this case if the
2701 -- pragma has a local name argument (such as pragma Inline), it is
2702 -- resolved to point to the specific entity affected by the pragma.
2704 --------------------------------------
2705 -- 2.8 Pragma Argument Association --
2706 --------------------------------------
2708 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2709 -- [pragma_argument_IDENTIFIER =>] NAME
2710 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2712 -- In Ada 2012, there are two more possibilities:
2714 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2715 -- [pragma_argument_ASPECT_MARK =>] NAME
2716 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2718 -- where the interesting allowed cases (which do not fit the syntax of
2719 -- the first alternative above) are
2721 -- ASPECT_MARK => Pre'Class |
2722 -- Post'Class |
2723 -- Type_Invariant'Class |
2724 -- Invariant'Class
2726 -- We allow this special usage in all Ada modes, but it would be a
2727 -- pain to allow these aspects to pervade the pragma syntax, and the
2728 -- representation of pragma nodes internally. So what we do is to
2729 -- replace these ASPECT_MARK forms with identifiers whose name is one
2730 -- of the special internal names _Pre, _Post or _Type_Invariant.
2732 -- We do a similar replacement of these Aspect_Mark forms in the
2733 -- Expression of a pragma argument association for the cases of
2734 -- the first arguments of any Check pragmas and Check_Policy pragmas
2736 -- N_Pragma_Argument_Association
2737 -- Sloc points to first token in association
2738 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2739 -- Expression_Copy (Node2-Sem)
2740 -- Expression (Node3)
2742 ------------------------
2743 -- 2.9 Reserved Word --
2744 ------------------------
2746 -- Reserved words are parsed by the scanner, and returned as the
2747 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2749 ----------------------------
2750 -- 3.1 Basic Declaration --
2751 ----------------------------
2753 -- BASIC_DECLARATION ::=
2754 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2755 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2756 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2757 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2758 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2759 -- | GENERIC_INSTANTIATION
2761 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2762 -- see further description in section on semantic nodes.
2764 -- Also, in the tree that is constructed, a pragma may appear
2765 -- anywhere that a declaration may appear.
2767 ------------------------------
2768 -- 3.1 Defining Identifier --
2769 ------------------------------
2771 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2773 -- A defining identifier is an entity, which has additional fields
2774 -- depending on the setting of the Ekind field. These additional
2775 -- fields are defined (and access subprograms declared) in package
2776 -- Einfo.
2778 -- Note: N_Defining_Identifier is an extended node whose fields are
2779 -- deliberate layed out to match the layout of fields in an ordinary
2780 -- N_Identifier node allowing for easy alteration of an identifier
2781 -- node into a defining identifier node. For details, see procedure
2782 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2784 -- N_Defining_Identifier
2785 -- Sloc points to identifier
2786 -- Chars (Name1) contains the Name_Id for the identifier
2787 -- Next_Entity (Node2-Sem)
2788 -- Scope (Node3-Sem)
2789 -- Etype (Node5-Sem)
2791 -----------------------------
2792 -- 3.2.1 Type Declaration --
2793 -----------------------------
2795 -- TYPE_DECLARATION ::=
2796 -- FULL_TYPE_DECLARATION
2797 -- | INCOMPLETE_TYPE_DECLARATION
2798 -- | PRIVATE_TYPE_DECLARATION
2799 -- | PRIVATE_EXTENSION_DECLARATION
2801 ----------------------------------
2802 -- 3.2.1 Full Type Declaration --
2803 ----------------------------------
2805 -- FULL_TYPE_DECLARATION ::=
2806 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2807 -- is TYPE_DEFINITION
2808 -- [ASPECT_SPECIFICATIONS];
2809 -- | TASK_TYPE_DECLARATION
2810 -- | PROTECTED_TYPE_DECLARATION
2812 -- The full type declaration node is used only for the first case. The
2813 -- second case (concurrent type declaration), is represented directly
2814 -- by a task type declaration or a protected type declaration.
2816 -- N_Full_Type_Declaration
2817 -- Sloc points to TYPE
2818 -- Defining_Identifier (Node1)
2819 -- Incomplete_View (Node2-Sem)
2820 -- Discriminant_Specifications (List4) (set to No_List if none)
2821 -- Type_Definition (Node3)
2822 -- Discr_Check_Funcs_Built (Flag11-Sem)
2824 ----------------------------
2825 -- 3.2.1 Type Definition --
2826 ----------------------------
2828 -- TYPE_DEFINITION ::=
2829 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2830 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2831 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2832 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2834 --------------------------------
2835 -- 3.2.2 Subtype Declaration --
2836 --------------------------------
2838 -- SUBTYPE_DECLARATION ::=
2839 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2840 -- [ASPECT_SPECIFICATIONS];
2842 -- The subtype indication field is set to Empty for subtypes
2843 -- declared in package Standard (Positive, Natural).
2845 -- N_Subtype_Declaration
2846 -- Sloc points to SUBTYPE
2847 -- Defining_Identifier (Node1)
2848 -- Null_Exclusion_Present (Flag11)
2849 -- Subtype_Indication (Node5)
2850 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2851 -- Exception_Junk (Flag8-Sem)
2852 -- Has_Dynamic_Range_Check (Flag12-Sem)
2854 -------------------------------
2855 -- 3.2.2 Subtype Indication --
2856 -------------------------------
2858 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2860 -- Note: if no constraint is present, the subtype indication appears
2861 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2862 -- node is used only if a constraint is present.
2864 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2865 -- with the null-exclusion part (see AI-231), we had to introduce a new
2866 -- attribute in all the parents of subtype_indication nodes to indicate
2867 -- if the null-exclusion is present.
2869 -- Note: the reason that this node has expression fields is that a
2870 -- subtype indication can appear as an operand of a membership test.
2872 -- N_Subtype_Indication
2873 -- Sloc points to first token of subtype mark
2874 -- Subtype_Mark (Node4)
2875 -- Constraint (Node3)
2876 -- Etype (Node5-Sem)
2877 -- Must_Not_Freeze (Flag8-Sem)
2879 -- Note: Depending on context, the Etype is either the entity of the
2880 -- Subtype_Mark field, or it is an itype constructed to reify the
2881 -- subtype indication. In particular, such itypes are created for a
2882 -- subtype indication that appears in an array type declaration. This
2883 -- simplifies constraint checking in indexed components.
2885 -- For subtype indications that appear in scalar type and subtype
2886 -- declarations, the Etype is the entity of the subtype mark.
2888 -------------------------
2889 -- 3.2.2 Subtype Mark --
2890 -------------------------
2892 -- SUBTYPE_MARK ::= subtype_NAME
2894 -----------------------
2895 -- 3.2.2 Constraint --
2896 -----------------------
2898 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2900 ------------------------------
2901 -- 3.2.2 Scalar Constraint --
2902 ------------------------------
2904 -- SCALAR_CONSTRAINT ::=
2905 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2907 ---------------------------------
2908 -- 3.2.2 Composite Constraint --
2909 ---------------------------------
2911 -- COMPOSITE_CONSTRAINT ::=
2912 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2914 -------------------------------
2915 -- 3.3.1 Object Declaration --
2916 -------------------------------
2918 -- OBJECT_DECLARATION ::=
2919 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2920 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2921 -- [ASPECT_SPECIFICATIONS];
2922 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2923 -- ACCESS_DEFINITION [:= EXPRESSION]
2924 -- [ASPECT_SPECIFICATIONS];
2925 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2926 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2927 -- [ASPECT_SPECIFICATIONS];
2928 -- | SINGLE_TASK_DECLARATION
2929 -- | SINGLE_PROTECTED_DECLARATION
2931 -- Note: aliased is not permitted in Ada 83 mode
2933 -- The N_Object_Declaration node is only for the first three cases.
2934 -- Single task declaration is handled by P_Task (9.1)
2935 -- Single protected declaration is handled by P_protected (9.5)
2937 -- Although the syntax allows multiple identifiers in the list, the
2938 -- semantics is as though successive declarations were given with
2939 -- identical type definition and expression components. To simplify
2940 -- semantic processing, the parser represents a multiple declaration
2941 -- case as a sequence of single declarations, using the More_Ids and
2942 -- Prev_Ids flags to preserve the original source form as described
2943 -- in the section on "Handling of Defining Identifier Lists".
2945 -- The flag Has_Init_Expression is set if an initializing expression
2946 -- is present. Normally it is set if and only if Expression contains
2947 -- a non-empty value, but there is an exception to this. When the
2948 -- initializing expression is an aggregate which requires explicit
2949 -- assignments, the Expression field gets set to Empty, but this flag
2950 -- is still set, so we don't forget we had an initializing expression.
2952 -- Note: if a range check is required for the initialization
2953 -- expression then the Do_Range_Check flag is set in the Expression,
2954 -- with the check being done against the type given by the object
2955 -- definition, which is also the Etype of the defining identifier.
2957 -- Note: the contents of the Expression field must be ignored (i.e.
2958 -- treated as though it were Empty) if No_Initialization is set True.
2960 -- Note: the back end places some restrictions on the form of the
2961 -- Expression field. If the object being declared is Atomic, then
2962 -- the Expression may not have the form of an aggregate (since this
2963 -- might cause the back end to generate separate assignments). In this
2964 -- case the front end must generate an extra temporary and initialize
2965 -- this temporary as required (the temporary itself is not atomic).
2967 -- Note: there is no node kind for object definition. Instead, the
2968 -- corresponding field holds a subtype indication, an array type
2969 -- definition, or (Ada 2005, AI-406) an access definition.
2971 -- N_Object_Declaration
2972 -- Sloc points to first identifier
2973 -- Defining_Identifier (Node1)
2974 -- Aliased_Present (Flag4)
2975 -- Constant_Present (Flag17) set if CONSTANT appears
2976 -- Null_Exclusion_Present (Flag11)
2977 -- Object_Definition (Node4) subtype indic./array type def./access def.
2978 -- Expression (Node3) (set to Empty if not present)
2979 -- Handler_List_Entry (Node2-Sem)
2980 -- Corresponding_Generic_Association (Node5-Sem)
2981 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2982 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2983 -- No_Initialization (Flag13-Sem)
2984 -- Assignment_OK (Flag15-Sem)
2985 -- Exception_Junk (Flag8-Sem)
2986 -- Is_Subprogram_Descriptor (Flag16-Sem)
2987 -- Has_Init_Expression (Flag14)
2988 -- Suppress_Assignment_Checks (Flag18-Sem)
2990 -------------------------------------
2991 -- 3.3.1 Defining Identifier List --
2992 -------------------------------------
2994 -- DEFINING_IDENTIFIER_LIST ::=
2995 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2997 -------------------------------
2998 -- 3.3.2 Number Declaration --
2999 -------------------------------
3001 -- NUMBER_DECLARATION ::=
3002 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
3004 -- Although the syntax allows multiple identifiers in the list, the
3005 -- semantics is as though successive declarations were given with
3006 -- identical expressions. To simplify semantic processing, the parser
3007 -- represents a multiple declaration case as a sequence of single
3008 -- declarations, using the More_Ids and Prev_Ids flags to preserve
3009 -- the original source form as described in the section on "Handling
3010 -- of Defining Identifier Lists".
3012 -- N_Number_Declaration
3013 -- Sloc points to first identifier
3014 -- Defining_Identifier (Node1)
3015 -- Expression (Node3)
3016 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3017 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3019 ----------------------------------
3020 -- 3.4 Derived Type Definition --
3021 ----------------------------------
3023 -- DERIVED_TYPE_DEFINITION ::=
3024 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
3025 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
3027 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
3028 -- in Ada 83 mode
3030 -- Note: a record extension part is required if ABSTRACT is present
3032 -- N_Derived_Type_Definition
3033 -- Sloc points to NEW
3034 -- Abstract_Present (Flag4)
3035 -- Null_Exclusion_Present (Flag11) (set to False if not present)
3036 -- Subtype_Indication (Node5)
3037 -- Record_Extension_Part (Node3) (set to Empty if not present)
3038 -- Limited_Present (Flag17)
3039 -- Task_Present (Flag5) set in task interfaces
3040 -- Protected_Present (Flag6) set in protected interfaces
3041 -- Synchronized_Present (Flag7) set in interfaces
3042 -- Interface_List (List2) (set to No_List if none)
3043 -- Interface_Present (Flag16) set in abstract interfaces
3045 -- Note: Task_Present, Protected_Present, Synchronized_Present,
3046 -- Interface_List, and Interface_Present are used for abstract
3047 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3049 ---------------------------
3050 -- 3.5 Range Constraint --
3051 ---------------------------
3053 -- RANGE_CONSTRAINT ::= range RANGE
3055 -- N_Range_Constraint
3056 -- Sloc points to RANGE
3057 -- Range_Expression (Node4)
3059 ----------------
3060 -- 3.5 Range --
3061 ----------------
3063 -- RANGE ::=
3064 -- RANGE_ATTRIBUTE_REFERENCE
3065 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
3067 -- Note: the case of a range given as a range attribute reference
3068 -- appears directly in the tree as an attribute reference.
3070 -- Note: the field name for a reference to a range is Range_Expression
3071 -- rather than Range, because range is a reserved keyword in Ada.
3073 -- Note: the reason that this node has expression fields is that a
3074 -- range can appear as an operand of a membership test. The Etype
3075 -- field is the type of the range (we do NOT construct an implicit
3076 -- subtype to represent the range exactly).
3078 -- N_Range
3079 -- Sloc points to ..
3080 -- Low_Bound (Node1)
3081 -- High_Bound (Node2)
3082 -- Includes_Infinities (Flag11)
3083 -- plus fields for expression
3085 -- Note: if the range appears in a context, such as a subtype
3086 -- declaration, where range checks are required on one or both of
3087 -- the expression fields, then type conversion nodes are inserted
3088 -- to represent the required checks.
3090 ----------------------------------------
3091 -- 3.5.1 Enumeration Type Definition --
3092 ----------------------------------------
3094 -- ENUMERATION_TYPE_DEFINITION ::=
3095 -- (ENUMERATION_LITERAL_SPECIFICATION
3096 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3098 -- Note: the Literals field in the node described below is null for
3099 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3100 -- which special processing handles these types as special cases.
3102 -- N_Enumeration_Type_Definition
3103 -- Sloc points to left parenthesis
3104 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3105 -- End_Label (Node4) (set to Empty if internally generated record)
3107 ----------------------------------------------
3108 -- 3.5.1 Enumeration Literal Specification --
3109 ----------------------------------------------
3111 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3112 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3114 ---------------------------------------
3115 -- 3.5.1 Defining Character Literal --
3116 ---------------------------------------
3118 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3120 -- A defining character literal is an entity, which has additional
3121 -- fields depending on the setting of the Ekind field. These
3122 -- additional fields are defined (and access subprograms declared)
3123 -- in package Einfo.
3125 -- Note: N_Defining_Character_Literal is an extended node whose fields
3126 -- are deliberate layed out to match the layout of fields in an ordinary
3127 -- N_Character_Literal node allowing for easy alteration of a character
3128 -- literal node into a defining character literal node. For details, see
3129 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3131 -- N_Defining_Character_Literal
3132 -- Sloc points to literal
3133 -- Chars (Name1) contains the Name_Id for the identifier
3134 -- Next_Entity (Node2-Sem)
3135 -- Scope (Node3-Sem)
3136 -- Etype (Node5-Sem)
3138 ------------------------------------
3139 -- 3.5.4 Integer Type Definition --
3140 ------------------------------------
3142 -- Note: there is an error in this rule in the latest version of the
3143 -- grammar, so we have retained the old rule pending clarification.
3145 -- INTEGER_TYPE_DEFINITION ::=
3146 -- SIGNED_INTEGER_TYPE_DEFINITION
3147 -- | MODULAR_TYPE_DEFINITION
3149 -------------------------------------------
3150 -- 3.5.4 Signed Integer Type Definition --
3151 -------------------------------------------
3153 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3154 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3156 -- Note: the Low_Bound and High_Bound fields are set to Empty
3157 -- for integer types defined in package Standard.
3159 -- N_Signed_Integer_Type_Definition
3160 -- Sloc points to RANGE
3161 -- Low_Bound (Node1)
3162 -- High_Bound (Node2)
3164 ------------------------------------
3165 -- 3.5.4 Modular Type Definition --
3166 ------------------------------------
3168 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3170 -- N_Modular_Type_Definition
3171 -- Sloc points to MOD
3172 -- Expression (Node3)
3174 ---------------------------------
3175 -- 3.5.6 Real Type Definition --
3176 ---------------------------------
3178 -- REAL_TYPE_DEFINITION ::=
3179 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3181 --------------------------------------
3182 -- 3.5.7 Floating Point Definition --
3183 --------------------------------------
3185 -- FLOATING_POINT_DEFINITION ::=
3186 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3188 -- Note: The Digits_Expression and Real_Range_Specifications fields
3189 -- are set to Empty for floating-point types declared in Standard.
3191 -- N_Floating_Point_Definition
3192 -- Sloc points to DIGITS
3193 -- Digits_Expression (Node2)
3194 -- Real_Range_Specification (Node4) (set to Empty if not present)
3196 -------------------------------------
3197 -- 3.5.7 Real Range Specification --
3198 -------------------------------------
3200 -- REAL_RANGE_SPECIFICATION ::=
3201 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3203 -- N_Real_Range_Specification
3204 -- Sloc points to RANGE
3205 -- Low_Bound (Node1)
3206 -- High_Bound (Node2)
3208 -----------------------------------
3209 -- 3.5.9 Fixed Point Definition --
3210 -----------------------------------
3212 -- FIXED_POINT_DEFINITION ::=
3213 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3215 --------------------------------------------
3216 -- 3.5.9 Ordinary Fixed Point Definition --
3217 --------------------------------------------
3219 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3220 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3222 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3224 -- N_Ordinary_Fixed_Point_Definition
3225 -- Sloc points to DELTA
3226 -- Delta_Expression (Node3)
3227 -- Real_Range_Specification (Node4)
3229 -------------------------------------------
3230 -- 3.5.9 Decimal Fixed Point Definition --
3231 -------------------------------------------
3233 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3234 -- delta static_EXPRESSION
3235 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3237 -- Note: decimal types are not permitted in Ada 83 mode
3239 -- N_Decimal_Fixed_Point_Definition
3240 -- Sloc points to DELTA
3241 -- Delta_Expression (Node3)
3242 -- Digits_Expression (Node2)
3243 -- Real_Range_Specification (Node4) (set to Empty if not present)
3245 ------------------------------
3246 -- 3.5.9 Digits Constraint --
3247 ------------------------------
3249 -- DIGITS_CONSTRAINT ::=
3250 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3252 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3253 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3255 -- N_Digits_Constraint
3256 -- Sloc points to DIGITS
3257 -- Digits_Expression (Node2)
3258 -- Range_Constraint (Node4) (set to Empty if not present)
3260 --------------------------------
3261 -- 3.6 Array Type Definition --
3262 --------------------------------
3264 -- ARRAY_TYPE_DEFINITION ::=
3265 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3267 -----------------------------------------
3268 -- 3.6 Unconstrained Array Definition --
3269 -----------------------------------------
3271 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3272 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3273 -- COMPONENT_DEFINITION
3275 -- Note: dimensionality of array is indicated by number of entries in
3276 -- the Subtype_Marks list, which has one entry for each dimension.
3278 -- N_Unconstrained_Array_Definition
3279 -- Sloc points to ARRAY
3280 -- Subtype_Marks (List2)
3281 -- Component_Definition (Node4)
3283 -----------------------------------
3284 -- 3.6 Index Subtype Definition --
3285 -----------------------------------
3287 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3289 -- There is no explicit node in the tree for an index subtype
3290 -- definition since the N_Unconstrained_Array_Definition node
3291 -- incorporates the type marks which appear in this context.
3293 ---------------------------------------
3294 -- 3.6 Constrained Array Definition --
3295 ---------------------------------------
3297 -- CONSTRAINED_ARRAY_DEFINITION ::=
3298 -- array (DISCRETE_SUBTYPE_DEFINITION
3299 -- {, DISCRETE_SUBTYPE_DEFINITION})
3300 -- of COMPONENT_DEFINITION
3302 -- Note: dimensionality of array is indicated by number of entries
3303 -- in the Discrete_Subtype_Definitions list, which has one entry
3304 -- for each dimension.
3306 -- N_Constrained_Array_Definition
3307 -- Sloc points to ARRAY
3308 -- Discrete_Subtype_Definitions (List2)
3309 -- Component_Definition (Node4)
3311 -- Note: although the language allows the full syntax for discrete
3312 -- subtype definitions (i.e. a discrete subtype indication or a range),
3313 -- in the generated tree, we always rewrite these as N_Range nodes.
3315 --------------------------------------
3316 -- 3.6 Discrete Subtype Definition --
3317 --------------------------------------
3319 -- DISCRETE_SUBTYPE_DEFINITION ::=
3320 -- discrete_SUBTYPE_INDICATION | RANGE
3322 -------------------------------
3323 -- 3.6 Component Definition --
3324 -------------------------------
3326 -- COMPONENT_DEFINITION ::=
3327 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3329 -- Note: although the syntax does not permit a component definition to
3330 -- be an anonymous array (and the parser will diagnose such an attempt
3331 -- with an appropriate message), it is possible for anonymous arrays
3332 -- to appear as component definitions. The semantics and back end handle
3333 -- this case properly, and the expander in fact generates such cases.
3334 -- Access_Definition is an optional field that gives support to
3335 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3336 -- Subtype_Indication field or else the Access_Definition field.
3338 -- N_Component_Definition
3339 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3340 -- Aliased_Present (Flag4)
3341 -- Null_Exclusion_Present (Flag11)
3342 -- Subtype_Indication (Node5) (set to Empty if not present)
3343 -- Access_Definition (Node3) (set to Empty if not present)
3345 -----------------------------
3346 -- 3.6.1 Index Constraint --
3347 -----------------------------
3349 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3351 -- It is not in general possible to distinguish between discriminant
3352 -- constraints and index constraints at parse time, since a simple
3353 -- name could be either the subtype mark of a discrete range, or an
3354 -- expression in a discriminant association with no name. Either
3355 -- entry appears simply as the name, and the semantic parse must
3356 -- distinguish between the two cases. Thus we use a common tree
3357 -- node format for both of these constraint types.
3359 -- See Discriminant_Constraint for format of node
3361 ---------------------------
3362 -- 3.6.1 Discrete Range --
3363 ---------------------------
3365 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3367 ----------------------------
3368 -- 3.7 Discriminant Part --
3369 ----------------------------
3371 -- DISCRIMINANT_PART ::=
3372 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3374 ------------------------------------
3375 -- 3.7 Unknown Discriminant Part --
3376 ------------------------------------
3378 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3380 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3382 -- There is no explicit node in the tree for an unknown discriminant
3383 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3384 -- parent node.
3386 ----------------------------------
3387 -- 3.7 Known Discriminant Part --
3388 ----------------------------------
3390 -- KNOWN_DISCRIMINANT_PART ::=
3391 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3393 -------------------------------------
3394 -- 3.7 Discriminant Specification --
3395 -------------------------------------
3397 -- DISCRIMINANT_SPECIFICATION ::=
3398 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3399 -- [:= DEFAULT_EXPRESSION]
3400 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3401 -- [:= DEFAULT_EXPRESSION]
3403 -- Although the syntax allows multiple identifiers in the list, the
3404 -- semantics is as though successive specifications were given with
3405 -- identical type definition and expression components. To simplify
3406 -- semantic processing, the parser represents a multiple declaration
3407 -- case as a sequence of single specifications, using the More_Ids and
3408 -- Prev_Ids flags to preserve the original source form as described
3409 -- in the section on "Handling of Defining Identifier Lists".
3411 -- N_Discriminant_Specification
3412 -- Sloc points to first identifier
3413 -- Defining_Identifier (Node1)
3414 -- Null_Exclusion_Present (Flag11)
3415 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3416 -- Expression (Node3) (set to Empty if no default expression)
3417 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3418 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3420 -----------------------------
3421 -- 3.7 Default Expression --
3422 -----------------------------
3424 -- DEFAULT_EXPRESSION ::= EXPRESSION
3426 ------------------------------------
3427 -- 3.7.1 Discriminant Constraint --
3428 ------------------------------------
3430 -- DISCRIMINANT_CONSTRAINT ::=
3431 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3433 -- It is not in general possible to distinguish between discriminant
3434 -- constraints and index constraints at parse time, since a simple
3435 -- name could be either the subtype mark of a discrete range, or an
3436 -- expression in a discriminant association with no name. Either
3437 -- entry appears simply as the name, and the semantic parse must
3438 -- distinguish between the two cases. Thus we use a common tree
3439 -- node format for both of these constraint types.
3441 -- N_Index_Or_Discriminant_Constraint
3442 -- Sloc points to left paren
3443 -- Constraints (List1) points to list of discrete ranges or
3444 -- discriminant associations
3446 -------------------------------------
3447 -- 3.7.1 Discriminant Association --
3448 -------------------------------------
3450 -- DISCRIMINANT_ASSOCIATION ::=
3451 -- [discriminant_SELECTOR_NAME
3452 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3454 -- Note: a discriminant association that has no selector name list
3455 -- appears directly as an expression in the tree.
3457 -- N_Discriminant_Association
3458 -- Sloc points to first token of discriminant association
3459 -- Selector_Names (List1) (always non-empty, since if no selector
3460 -- names are present, this node is not used, see comment above)
3461 -- Expression (Node3)
3463 ---------------------------------
3464 -- 3.8 Record Type Definition --
3465 ---------------------------------
3467 -- RECORD_TYPE_DEFINITION ::=
3468 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3470 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3472 -- There is no explicit node in the tree for a record type definition.
3473 -- Instead the flags for Tagged_Present and Limited_Present appear in
3474 -- the N_Record_Definition node for a record definition appearing in
3475 -- the context of a record type definition.
3477 ----------------------------
3478 -- 3.8 Record Definition --
3479 ----------------------------
3481 -- RECORD_DEFINITION ::=
3482 -- record
3483 -- COMPONENT_LIST
3484 -- end record
3485 -- | null record
3487 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3488 -- flags appear only for a record definition appearing in a record
3489 -- type definition.
3491 -- Note: the NULL RECORD case is not permitted in Ada 83
3493 -- N_Record_Definition
3494 -- Sloc points to RECORD or NULL
3495 -- End_Label (Node4) (set to Empty if internally generated record)
3496 -- Abstract_Present (Flag4)
3497 -- Tagged_Present (Flag15)
3498 -- Limited_Present (Flag17)
3499 -- Component_List (Node1) empty in null record case
3500 -- Null_Present (Flag13) set in null record case
3501 -- Task_Present (Flag5) set in task interfaces
3502 -- Protected_Present (Flag6) set in protected interfaces
3503 -- Synchronized_Present (Flag7) set in interfaces
3504 -- Interface_Present (Flag16) set in abstract interfaces
3505 -- Interface_List (List2) (set to No_List if none)
3507 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3508 -- Interface_List and Interface_Present are used for abstract
3509 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3511 -------------------------
3512 -- 3.8 Component List --
3513 -------------------------
3515 -- COMPONENT_LIST ::=
3516 -- COMPONENT_ITEM {COMPONENT_ITEM}
3517 -- | {COMPONENT_ITEM} VARIANT_PART
3518 -- | null;
3520 -- N_Component_List
3521 -- Sloc points to first token of component list
3522 -- Component_Items (List3)
3523 -- Variant_Part (Node4) (set to Empty if no variant part)
3524 -- Null_Present (Flag13)
3526 -------------------------
3527 -- 3.8 Component Item --
3528 -------------------------
3530 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3532 -- Note: A component item can also be a pragma, and in the tree
3533 -- that is obtained after semantic processing, a component item
3534 -- can be an N_Null node resulting from a non-recognized pragma.
3536 --------------------------------
3537 -- 3.8 Component Declaration --
3538 --------------------------------
3540 -- COMPONENT_DECLARATION ::=
3541 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3542 -- [:= DEFAULT_EXPRESSION]
3543 -- [ASPECT_SPECIFICATIONS];
3545 -- Note: although the syntax does not permit a component definition to
3546 -- be an anonymous array (and the parser will diagnose such an attempt
3547 -- with an appropriate message), it is possible for anonymous arrays
3548 -- to appear as component definitions. The semantics and back end handle
3549 -- this case properly, and the expander in fact generates such cases.
3551 -- Although the syntax allows multiple identifiers in the list, the
3552 -- semantics is as though successive declarations were given with the
3553 -- same component definition and expression components. To simplify
3554 -- semantic processing, the parser represents a multiple declaration
3555 -- case as a sequence of single declarations, using the More_Ids and
3556 -- Prev_Ids flags to preserve the original source form as described
3557 -- in the section on "Handling of Defining Identifier Lists".
3559 -- N_Component_Declaration
3560 -- Sloc points to first identifier
3561 -- Defining_Identifier (Node1)
3562 -- Component_Definition (Node4)
3563 -- Expression (Node3) (set to Empty if no default expression)
3564 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3565 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3567 -------------------------
3568 -- 3.8.1 Variant Part --
3569 -------------------------
3571 -- VARIANT_PART ::=
3572 -- case discriminant_DIRECT_NAME is
3573 -- VARIANT {VARIANT}
3574 -- end case;
3576 -- Note: the variants list can contain pragmas as well as variants.
3577 -- In a properly formed program there is at least one variant.
3579 -- N_Variant_Part
3580 -- Sloc points to CASE
3581 -- Name (Node2)
3582 -- Variants (List1)
3584 --------------------
3585 -- 3.8.1 Variant --
3586 --------------------
3588 -- VARIANT ::=
3589 -- when DISCRETE_CHOICE_LIST =>
3590 -- COMPONENT_LIST
3592 -- N_Variant
3593 -- Sloc points to WHEN
3594 -- Discrete_Choices (List4)
3595 -- Component_List (Node1)
3596 -- Enclosing_Variant (Node2-Sem)
3597 -- Present_Expr (Uint3-Sem)
3598 -- Dcheck_Function (Node5-Sem)
3599 -- Has_SP_Choice (Flag15-Sem)
3601 -- Note: in the list of Discrete_Choices, the tree passed to the back
3602 -- end does not have choice entries corresponding to names of statically
3603 -- predicated subtypes. Such entries are always expanded out to the list
3604 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3605 -- mode also has this expansion, but done with a proper Rewrite call on
3606 -- the N_Variant node so that ASIS can properly retrieve the original.
3608 ---------------------------------
3609 -- 3.8.1 Discrete Choice List --
3610 ---------------------------------
3612 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3614 ----------------------------
3615 -- 3.8.1 Discrete Choice --
3616 ----------------------------
3618 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3620 -- Note: in Ada 83 mode, the expression must be a simple expression
3622 -- The only choice that appears explicitly is the OTHERS choice, as
3623 -- defined here. Other cases of discrete choice (expression and
3624 -- discrete range) appear directly. This production is also used
3625 -- for the OTHERS possibility of an exception choice.
3627 -- Note: in accordance with the syntax, the parser does not check that
3628 -- OTHERS appears at the end on its own in a choice list context. This
3629 -- is a semantic check.
3631 -- N_Others_Choice
3632 -- Sloc points to OTHERS
3633 -- Others_Discrete_Choices (List1-Sem)
3634 -- All_Others (Flag11-Sem)
3636 ----------------------------------
3637 -- 3.9.1 Record Extension Part --
3638 ----------------------------------
3640 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3642 -- Note: record extension parts are not permitted in Ada 83 mode
3644 --------------------------------------
3645 -- 3.9.4 Interface Type Definition --
3646 --------------------------------------
3648 -- INTERFACE_TYPE_DEFINITION ::=
3649 -- [limited | task | protected | synchronized]
3650 -- interface [interface_list]
3652 -- Note: Interfaces are implemented with N_Record_Definition and
3653 -- N_Derived_Type_Definition nodes because most of the support
3654 -- for the analysis of abstract types has been reused to
3655 -- analyze abstract interfaces.
3657 ----------------------------------
3658 -- 3.10 Access Type Definition --
3659 ----------------------------------
3661 -- ACCESS_TYPE_DEFINITION ::=
3662 -- ACCESS_TO_OBJECT_DEFINITION
3663 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3665 --------------------------
3666 -- 3.10 Null Exclusion --
3667 --------------------------
3669 -- NULL_EXCLUSION ::= not null
3671 ---------------------------------------
3672 -- 3.10 Access To Object Definition --
3673 ---------------------------------------
3675 -- ACCESS_TO_OBJECT_DEFINITION ::=
3676 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3677 -- SUBTYPE_INDICATION
3679 -- N_Access_To_Object_Definition
3680 -- Sloc points to ACCESS
3681 -- All_Present (Flag15)
3682 -- Null_Exclusion_Present (Flag11)
3683 -- Null_Excluding_Subtype (Flag16)
3684 -- Subtype_Indication (Node5)
3685 -- Constant_Present (Flag17)
3687 -----------------------------------
3688 -- 3.10 General Access Modifier --
3689 -----------------------------------
3691 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3693 -- Note: general access modifiers are not permitted in Ada 83 mode
3695 -- There is no explicit node in the tree for general access modifier.
3696 -- Instead the All_Present or Constant_Present flags are set in the
3697 -- parent node.
3699 -------------------------------------------
3700 -- 3.10 Access To Subprogram Definition --
3701 -------------------------------------------
3703 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3704 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3705 -- | [NULL_EXCLUSION] access [protected] function
3706 -- PARAMETER_AND_RESULT_PROFILE
3708 -- Note: access to subprograms are not permitted in Ada 83 mode
3710 -- N_Access_Function_Definition
3711 -- Sloc points to ACCESS
3712 -- Null_Exclusion_Present (Flag11)
3713 -- Null_Exclusion_In_Return_Present (Flag14)
3714 -- Protected_Present (Flag6)
3715 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3716 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3718 -- N_Access_Procedure_Definition
3719 -- Sloc points to ACCESS
3720 -- Null_Exclusion_Present (Flag11)
3721 -- Protected_Present (Flag6)
3722 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3724 -----------------------------
3725 -- 3.10 Access Definition --
3726 -----------------------------
3728 -- ACCESS_DEFINITION ::=
3729 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3730 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3732 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3734 -- N_Access_Definition
3735 -- Sloc points to ACCESS
3736 -- Null_Exclusion_Present (Flag11)
3737 -- All_Present (Flag15)
3738 -- Constant_Present (Flag17)
3739 -- Subtype_Mark (Node4)
3740 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3742 -----------------------------------------
3743 -- 3.10.1 Incomplete Type Declaration --
3744 -----------------------------------------
3746 -- INCOMPLETE_TYPE_DECLARATION ::=
3747 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3749 -- N_Incomplete_Type_Declaration
3750 -- Sloc points to TYPE
3751 -- Defining_Identifier (Node1)
3752 -- Discriminant_Specifications (List4) (set to No_List if no
3753 -- discriminant part, or if the discriminant part is an
3754 -- unknown discriminant part)
3755 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3756 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3757 -- Tagged_Present (Flag15)
3759 ----------------------------
3760 -- 3.11 Declarative Part --
3761 ----------------------------
3763 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3765 -- Note: although the parser enforces the syntactic requirement that
3766 -- a declarative part can contain only declarations, the semantic
3767 -- processing may add statements to the list of actions in a
3768 -- declarative part, so the code generator should be prepared
3769 -- to accept a statement in this position.
3771 ----------------------------
3772 -- 3.11 Declarative Item --
3773 ----------------------------
3775 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3777 ----------------------------------
3778 -- 3.11 Basic Declarative Item --
3779 ----------------------------------
3781 -- BASIC_DECLARATIVE_ITEM ::=
3782 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3784 ----------------
3785 -- 3.11 Body --
3786 ----------------
3788 -- BODY ::= PROPER_BODY | BODY_STUB
3790 -----------------------
3791 -- 3.11 Proper Body --
3792 -----------------------
3794 -- PROPER_BODY ::=
3795 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3797 ---------------
3798 -- 4.1 Name --
3799 ---------------
3801 -- NAME ::=
3802 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3803 -- | INDEXED_COMPONENT | SLICE
3804 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3805 -- | TYPE_CONVERSION | FUNCTION_CALL
3806 -- | CHARACTER_LITERAL
3808 ----------------------
3809 -- 4.1 Direct Name --
3810 ----------------------
3812 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3814 -----------------
3815 -- 4.1 Prefix --
3816 -----------------
3818 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3820 -------------------------------
3821 -- 4.1 Explicit Dereference --
3822 -------------------------------
3824 -- EXPLICIT_DEREFERENCE ::= NAME . all
3826 -- N_Explicit_Dereference
3827 -- Sloc points to ALL
3828 -- Prefix (Node3)
3829 -- Actual_Designated_Subtype (Node4-Sem)
3830 -- Has_Dereference_Action (Flag13-Sem)
3831 -- Atomic_Sync_Required (Flag14-Sem)
3832 -- plus fields for expression
3834 -------------------------------
3835 -- 4.1 Implicit Dereference --
3836 -------------------------------
3838 -- IMPLICIT_DEREFERENCE ::= NAME
3840 ------------------------------
3841 -- 4.1.1 Indexed Component --
3842 ------------------------------
3844 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3846 -- Note: the parser may generate this node in some situations where it
3847 -- should be a function call. The semantic pass must correct this
3848 -- misidentification (which is inevitable at the parser level).
3850 -- N_Indexed_Component
3851 -- Sloc contains a copy of the Sloc value of the Prefix
3852 -- Prefix (Node3)
3853 -- Expressions (List1)
3854 -- Generalized_Indexing (Node4-Sem)
3855 -- Atomic_Sync_Required (Flag14-Sem)
3856 -- plus fields for expression
3858 -- Note: if any of the subscripts requires a range check, then the
3859 -- Do_Range_Check flag is set on the corresponding expression, with
3860 -- the index type being determined from the type of the Prefix, which
3861 -- references the array being indexed.
3863 -- Note: in a fully analyzed and expanded indexed component node, and
3864 -- hence in any such node that gigi sees, if the prefix is an access
3865 -- type, then an explicit dereference operation has been inserted.
3867 ------------------
3868 -- 4.1.2 Slice --
3869 ------------------
3871 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3873 -- Note: an implicit subtype is created to describe the resulting
3874 -- type, so that the bounds of this type are the bounds of the slice.
3876 -- N_Slice
3877 -- Sloc points to first token of prefix
3878 -- Prefix (Node3)
3879 -- Discrete_Range (Node4)
3880 -- plus fields for expression
3882 -------------------------------
3883 -- 4.1.3 Selected Component --
3884 -------------------------------
3886 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3888 -- Note: selected components that are semantically expanded names get
3889 -- changed during semantic processing into the separate N_Expanded_Name
3890 -- node. See description of this node in the section on semantic nodes.
3892 -- N_Selected_Component
3893 -- Sloc points to the period
3894 -- Prefix (Node3)
3895 -- Selector_Name (Node2)
3896 -- Associated_Node (Node4-Sem)
3897 -- Do_Discriminant_Check (Flag3-Sem)
3898 -- Is_In_Discriminant_Check (Flag11-Sem)
3899 -- Atomic_Sync_Required (Flag14-Sem)
3900 -- Is_Prefixed_Call (Flag17-Sem)
3901 -- plus fields for expression
3903 --------------------------
3904 -- 4.1.3 Selector Name --
3905 --------------------------
3907 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3909 --------------------------------
3910 -- 4.1.4 Attribute Reference --
3911 --------------------------------
3913 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3915 -- Note: the syntax is quite ambiguous at this point. Consider:
3917 -- A'Length (X) X is part of the attribute designator
3918 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3919 -- A'Class (X) X is the expression of a type conversion
3921 -- It would be possible for the parser to distinguish these cases
3922 -- by looking at the attribute identifier. However, that would mean
3923 -- more work in introducing new implementation defined attributes,
3924 -- and also it would mean that special processing for attributes
3925 -- would be scattered around, instead of being centralized in the
3926 -- semantic routine that handles an N_Attribute_Reference node.
3927 -- Consequently, the parser in all the above cases stores the
3928 -- expression (X in these examples) as a single element list in
3929 -- in the Expressions field of the N_Attribute_Reference node.
3931 -- Similarly, for attributes like Max which take two arguments,
3932 -- we store the two arguments as a two element list in the
3933 -- Expressions field. Of course it is clear at parse time that
3934 -- this case is really a function call with an attribute as the
3935 -- prefix, but it turns out to be convenient to handle the two
3936 -- argument case in a similar manner to the one argument case,
3937 -- and indeed in general the parser will accept any number of
3938 -- expressions in this position and store them as a list in the
3939 -- attribute reference node. This allows for future addition of
3940 -- attributes that take more than two arguments.
3942 -- Note: named associates are not permitted in function calls where
3943 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3944 -- to skip the normal subprogram argument processing.
3946 -- Note: for the attributes whose designators are technically keywords,
3947 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3948 -- the corresponding name, even though no identifier is involved.
3950 -- Note: the generated code may contain stream attributes applied to
3951 -- limited types for which no stream routines exist officially. In such
3952 -- case, the result is to use the stream attribute for the underlying
3953 -- full type, or in the case of a protected type, the components
3954 -- (including any discriminants) are merely streamed in order.
3956 -- See Exp_Attr for a complete description of which attributes are
3957 -- passed onto Gigi, and which are handled entirely by the front end.
3959 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3960 -- a non-standard enumeration type or a nonzero/zero semantics
3961 -- boolean type, so the value is simply the stored representation.
3963 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3964 -- references a subprogram that is a renaming, then the front end must
3965 -- rewrite the attribute to refer directly to the renamed entity.
3967 -- Note: syntactically the prefix of an attribute reference must be a
3968 -- name, and this (somewhat artificial) requirement is enforced by the
3969 -- parser. However, for many attributes, such as 'Valid, it is quite
3970 -- reasonable to apply the attribute to any value, and hence to any
3971 -- expression. Internally in the tree, the prefix is an expression which
3972 -- does not have to be a name, and this is handled fine by the semantic
3973 -- analysis and expansion, and back ends. This arises for the case of
3974 -- attribute references built by the expander (e.g. 'Valid for the case
3975 -- of an implicit validity check).
3977 -- Note: In generated code, the Address and Unrestricted_Access
3978 -- attributes can be applied to any expression, and the meaning is
3979 -- to create an object containing the value (the object is in the
3980 -- current stack frame), and pass the address of this value. If the
3981 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3982 -- is taken must be on a byte (storage unit) boundary, and if it is
3983 -- not (or may not be), then the generated code must create a copy
3984 -- that is byte aligned, and pass the address of this copy.
3986 -- N_Attribute_Reference
3987 -- Sloc points to apostrophe
3988 -- Prefix (Node3) (general expression, see note above)
3989 -- Attribute_Name (Name2) identifier name from attribute designator
3990 -- Expressions (List1) (set to No_List if no associated expressions)
3991 -- Entity (Node4-Sem) used if the attribute yields a type
3992 -- Associated_Node (Node4-Sem)
3993 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
3994 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
3995 -- Header_Size_Added (Flag11-Sem)
3996 -- Redundant_Use (Flag13-Sem)
3997 -- Must_Be_Byte_Aligned (Flag14-Sem)
3998 -- plus fields for expression
4000 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
4001 -- into equivalent if expressions, properly taking care of side effects.
4003 ---------------------------------
4004 -- 4.1.4 Attribute Designator --
4005 ---------------------------------
4007 -- ATTRIBUTE_DESIGNATOR ::=
4008 -- IDENTIFIER [(static_EXPRESSION)]
4009 -- | access | delta | digits
4011 -- There is no explicit node in the tree for an attribute designator.
4012 -- Instead the Attribute_Name and Expressions fields of the parent
4013 -- node (N_Attribute_Reference node) hold the information.
4015 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
4016 -- designator, then they are treated as identifiers internally
4017 -- rather than the keywords of the same name.
4019 --------------------------------------
4020 -- 4.1.4 Range Attribute Reference --
4021 --------------------------------------
4023 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
4025 -- A range attribute reference is represented in the tree using the
4026 -- normal N_Attribute_Reference node.
4028 ---------------------------------------
4029 -- 4.1.4 Range Attribute Designator --
4030 ---------------------------------------
4032 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
4034 -- A range attribute designator is represented in the tree using the
4035 -- normal N_Attribute_Reference node.
4037 --------------------
4038 -- 4.3 Aggregate --
4039 --------------------
4041 -- AGGREGATE ::=
4042 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
4044 -----------------------------
4045 -- 4.3.1 Record Aggregate --
4046 -----------------------------
4048 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
4050 -- N_Aggregate
4051 -- Sloc points to left parenthesis
4052 -- Expressions (List1) (set to No_List if none or null record case)
4053 -- Component_Associations (List2) (set to No_List if none)
4054 -- Null_Record_Present (Flag17)
4055 -- Aggregate_Bounds (Node3-Sem)
4056 -- Associated_Node (Node4-Sem)
4057 -- Compile_Time_Known_Aggregate (Flag18-Sem)
4058 -- Expansion_Delayed (Flag11-Sem)
4059 -- Has_Self_Reference (Flag13-Sem)
4060 -- plus fields for expression
4062 -- Note: this structure is used for both record and array aggregates
4063 -- since the two cases are not separable by the parser. The parser
4064 -- makes no attempt to enforce consistency here, so it is up to the
4065 -- semantic phase to make sure that the aggregate is consistent (i.e.
4066 -- that it is not a "half-and-half" case that mixes record and array
4067 -- syntax. In particular, for a record aggregate, the expressions
4068 -- field will be set if there are positional associations.
4070 -- Note: N_Aggregate is not used for all aggregates; in particular,
4071 -- there is a separate node kind for extension aggregates.
4073 -- Note: gigi/gcc can handle array aggregates correctly providing that
4074 -- they are entirely positional, and the array subtype involved has a
4075 -- known at compile time length and is not bit packed, or a convention
4076 -- Fortran array with more than one dimension. If these conditions
4077 -- are not met, then the front end must translate the aggregate into
4078 -- an appropriate set of assignments into a temporary.
4080 -- Note: for the record aggregate case, gigi/gcc can handle most cases
4081 -- of record aggregates, including those for packed, and rep-claused
4082 -- records, and also variant records, providing that there are no
4083 -- variable length fields whose size is not known at compile time,
4084 -- and providing that the aggregate is presented in fully named form.
4086 -- The other situation in which array aggregates and record aggregates
4087 -- cannot be passed to the back end is if assignment to one or more
4088 -- components itself needs expansion, e.g. in the case of an assignment
4089 -- of an object of a controlled type. In such cases, the front end
4090 -- must expand the aggregate to a series of assignments, and apply
4091 -- the required expansion to the individual assignment statements.
4093 ----------------------------------------------
4094 -- 4.3.1 Record Component Association List --
4095 ----------------------------------------------
4097 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4098 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4099 -- | null record
4101 -- There is no explicit node in the tree for a record component
4102 -- association list. Instead the Null_Record_Present flag is set in
4103 -- the parent node for the NULL RECORD case.
4105 ------------------------------------------------------
4106 -- 4.3.1 Record Component Association (also 4.3.3) --
4107 ------------------------------------------------------
4109 -- RECORD_COMPONENT_ASSOCIATION ::=
4110 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4112 -- N_Component_Association
4113 -- Sloc points to first selector name
4114 -- Choices (List1)
4115 -- Loop_Actions (List2-Sem)
4116 -- Expression (Node3) (empty if Box_Present)
4117 -- Box_Present (Flag15)
4118 -- Inherited_Discriminant (Flag13)
4120 -- Note: this structure is used for both record component associations
4121 -- and array component associations, since the two cases aren't always
4122 -- separable by the parser. The choices list may represent either a
4123 -- list of selector names in the record aggregate case, or a list of
4124 -- discrete choices in the array aggregate case or an N_Others_Choice
4125 -- node (which appears as a singleton list). Box_Present gives support
4126 -- to Ada 2005 (AI-287).
4128 ----------------------------------
4129 -- 4.3.1 Component Choice List --
4130 ----------------------------------
4132 -- COMPONENT_CHOICE_LIST ::=
4133 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4134 -- | others
4136 -- The entries of a component choice list appear in the Choices list of
4137 -- the associated N_Component_Association, as either selector names, or
4138 -- as an N_Others_Choice node.
4140 --------------------------------
4141 -- 4.3.2 Extension Aggregate --
4142 --------------------------------
4144 -- EXTENSION_AGGREGATE ::=
4145 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4147 -- Note: extension aggregates are not permitted in Ada 83 mode
4149 -- N_Extension_Aggregate
4150 -- Sloc points to left parenthesis
4151 -- Ancestor_Part (Node3)
4152 -- Associated_Node (Node4-Sem)
4153 -- Expressions (List1) (set to No_List if none or null record case)
4154 -- Component_Associations (List2) (set to No_List if none)
4155 -- Null_Record_Present (Flag17)
4156 -- Expansion_Delayed (Flag11-Sem)
4157 -- Has_Self_Reference (Flag13-Sem)
4158 -- plus fields for expression
4160 --------------------------
4161 -- 4.3.2 Ancestor Part --
4162 --------------------------
4164 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4166 ----------------------------
4167 -- 4.3.3 Array Aggregate --
4168 ----------------------------
4170 -- ARRAY_AGGREGATE ::=
4171 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4173 ---------------------------------------
4174 -- 4.3.3 Positional Array Aggregate --
4175 ---------------------------------------
4177 -- POSITIONAL_ARRAY_AGGREGATE ::=
4178 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4179 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4181 -- See Record_Aggregate (4.3.1) for node structure
4183 ----------------------------------
4184 -- 4.3.3 Named Array Aggregate --
4185 ----------------------------------
4187 -- NAMED_ARRAY_AGGREGATE ::=
4188 -- (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4190 -- See Record_Aggregate (4.3.1) for node structure
4192 ----------------------------------------
4193 -- 4.3.3 Array Component Association --
4194 ----------------------------------------
4196 -- ARRAY_COMPONENT_ASSOCIATION ::=
4197 -- DISCRETE_CHOICE_LIST => EXPRESSION
4198 -- | ITERATED_COMPONENT_ASSOCIATION
4200 -- See Record_Component_Association (4.3.1) for node structure
4201 -- The iterated_component_association is introduced into the
4202 -- Corrigendum of Ada_2012 by AI12-061.
4204 ------------------------------------------
4205 -- 4.3.3 Iterated component Association --
4206 ------------------------------------------
4208 -- ITERATED_COMPONENT_ASSOCIATION ::=
4209 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4211 -- N_Iterated_Component_Association
4212 -- Sloc points to FOR
4213 -- Defining_Identifier (Node1)
4214 -- Loop_Actions (List2-Sem)
4215 -- Expression (Node3)
4216 -- Discrete_Choices (List4)
4217 -- Box_Present (Flag15)
4219 -- Note that Box_Present is always False, but it is intentionally added
4220 -- for completeness.
4222 ----------------------------
4223 -- 4.3.4 Delta Aggregate --
4224 ----------------------------
4226 -- N_Delta_Aggregate
4227 -- Sloc points to left parenthesis
4228 -- Expression (Node3)
4229 -- Component_Associations (List2)
4231 --------------------------------------------------
4232 -- 4.4 Expression/Relation/Term/Factor/Primary --
4233 --------------------------------------------------
4235 -- EXPRESSION ::=
4236 -- RELATION {LOGICAL_OPERATOR RELATION}
4238 -- CHOICE_EXPRESSION ::=
4239 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4241 -- CHOICE_RELATION ::=
4242 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4244 -- RELATION ::=
4245 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4246 -- | RAISE_EXPRESSION
4248 -- MEMBERSHIP_CHOICE_LIST ::=
4249 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4251 -- MEMBERSHIP_CHOICE ::=
4252 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4254 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4256 -- SIMPLE_EXPRESSION ::=
4257 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4259 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4261 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4263 -- No nodes are generated for any of these constructs. Instead, the
4264 -- node for the operator appears directly. When we refer to an
4265 -- expression in this description, we mean any of the possible
4266 -- constituent components of an expression (e.g. identifier is
4267 -- an example of an expression).
4269 -- Note: the above syntax is that Ada 2012 syntax which restricts
4270 -- choice relations to simple expressions to avoid ambiguities in
4271 -- some contexts with set membership notation. It has been decided
4272 -- that in retrospect, the Ada 95 change allowing general expressions
4273 -- in this context was a mistake, so we have reverted to the above
4274 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4275 -- expressions was there in Ada 83 from the start).
4277 ------------------
4278 -- 4.4 Primary --
4279 ------------------
4281 -- PRIMARY ::=
4282 -- NUMERIC_LITERAL | null
4283 -- | STRING_LITERAL | AGGREGATE
4284 -- | NAME | QUALIFIED_EXPRESSION
4285 -- | ALLOCATOR | (EXPRESSION)
4287 -- Usually there is no explicit node in the tree for primary. Instead
4288 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4289 -- exceptions. First, there is an explicit node for a null primary.
4291 -- N_Null
4292 -- Sloc points to NULL
4293 -- plus fields for expression
4295 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4296 -- that the parser keep track of which subexpressions are enclosed
4297 -- in parentheses, and how many levels of parentheses are used. This
4298 -- information is required for optimization purposes, and also for
4299 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4300 -- conform with ((((1)))) in the body).
4302 -- The parentheses are recorded by keeping a Paren_Count field in every
4303 -- subexpression node (it is actually present in all nodes, but only
4304 -- used in subexpression nodes). This count records the number of
4305 -- levels of parentheses. If the number of levels in the source exceeds
4306 -- the maximum accommodated by this count, then the count is simply left
4307 -- at the maximum value. This means that there are some pathological
4308 -- cases of failure to detect conformance failures (e.g. an expression
4309 -- with 500 levels of parens will conform with one with 501 levels),
4310 -- but we do not need to lose sleep over this.
4312 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4313 -- type N_Parenthesized_Expression used to accurately record unlimited
4314 -- numbers of levels of parentheses. However, it turned out to be a
4315 -- real nuisance to have to take into account the possible presence of
4316 -- this node during semantic analysis, since basically parentheses have
4317 -- zero relevance to semantic analysis.
4319 -- Note: the level of parentheses always present in things like
4320 -- aggregates does not count, only the parentheses in the primary
4321 -- (EXPRESSION) affect the setting of the Paren_Count field.
4323 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4324 -- treated as though it were Empty) if No_Initialization is set True.
4326 --------------------------------------
4327 -- 4.5 Short-Circuit Control Forms --
4328 --------------------------------------
4330 -- EXPRESSION ::=
4331 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4333 -- Gigi restriction: For both these control forms, the operand and
4334 -- result types are always Standard.Boolean. The expander inserts the
4335 -- required conversion operations where needed to ensure this is the
4336 -- case.
4338 -- N_And_Then
4339 -- Sloc points to AND of AND THEN
4340 -- Left_Opnd (Node2)
4341 -- Right_Opnd (Node3)
4342 -- Actions (List1-Sem)
4343 -- plus fields for expression
4345 -- N_Or_Else
4346 -- Sloc points to OR of OR ELSE
4347 -- Left_Opnd (Node2)
4348 -- Right_Opnd (Node3)
4349 -- Actions (List1-Sem)
4350 -- plus fields for expression
4352 -- Note: The Actions field is used to hold actions associated with
4353 -- the right hand operand. These have to be treated specially since
4354 -- they are not unconditionally executed. See Insert_Actions for a
4355 -- more detailed description of how these actions are handled.
4357 ---------------------------
4358 -- 4.5 Membership Tests --
4359 ---------------------------
4361 -- RELATION ::=
4362 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4364 -- MEMBERSHIP_CHOICE_LIST ::=
4365 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4367 -- MEMBERSHIP_CHOICE ::=
4368 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4370 -- Note: although the grammar above allows only a range or a subtype
4371 -- mark, the parser in fact will accept any simple expression in place
4372 -- of a subtype mark. This means that the semantic analyzer must be able
4373 -- to deal with, and diagnose a simple expression other than a name for
4374 -- the right operand. This simplifies error recovery in the parser.
4376 -- The Alternatives field below is present only if there is more than
4377 -- one Membership_Choice present (which is legitimate only in Ada 2012
4378 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4379 -- the list of choices. In the tree passed to the back end, Alternatives
4380 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4381 -- expands out the complex set membership case using simple membership
4382 -- and equality operations).
4384 -- Should we rename Alternatives here to Membership_Choices ???
4386 -- N_In
4387 -- Sloc points to IN
4388 -- Left_Opnd (Node2)
4389 -- Right_Opnd (Node3)
4390 -- Alternatives (List4) (set to No_List if only one set alternative)
4391 -- No_Minimize_Eliminate (Flag17)
4392 -- plus fields for expression
4394 -- N_Not_In
4395 -- Sloc points to NOT of NOT IN
4396 -- Left_Opnd (Node2)
4397 -- Right_Opnd (Node3)
4398 -- Alternatives (List4) (set to No_List if only one set alternative)
4399 -- No_Minimize_Eliminate (Flag17)
4400 -- plus fields for expression
4402 --------------------
4403 -- 4.5 Operators --
4404 --------------------
4406 -- LOGICAL_OPERATOR ::= and | or | xor
4408 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4410 -- BINARY_ADDING_OPERATOR ::= + | - | &
4412 -- UNARY_ADDING_OPERATOR ::= + | -
4414 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4416 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4418 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4420 -- x #* y
4421 -- x #/ y
4422 -- x #mod y
4423 -- x #rem y
4425 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4426 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4427 -- All handling of smalls for multiplication and division is handled
4428 -- by the front end (mod and rem result only from expansion). Gigi
4429 -- thus never needs to worry about small values (for other operators
4430 -- operating on fixed-point, e.g. addition, the small value does not
4431 -- have any semantic effect anyway, these are always integer operations.
4433 -- Gigi restriction: For all operators taking Boolean operands, the
4434 -- type is always Standard.Boolean. The expander inserts the required
4435 -- conversion operations where needed to ensure this is the case.
4437 -- N_Op_And
4438 -- Sloc points to AND
4439 -- Do_Length_Check (Flag4-Sem)
4440 -- plus fields for binary operator
4441 -- plus fields for expression
4443 -- N_Op_Or
4444 -- Sloc points to OR
4445 -- Do_Length_Check (Flag4-Sem)
4446 -- plus fields for binary operator
4447 -- plus fields for expression
4449 -- N_Op_Xor
4450 -- Sloc points to XOR
4451 -- Do_Length_Check (Flag4-Sem)
4452 -- plus fields for binary operator
4453 -- plus fields for expression
4455 -- N_Op_Eq
4456 -- Sloc points to =
4457 -- plus fields for binary operator
4458 -- plus fields for expression
4460 -- N_Op_Ne
4461 -- Sloc points to /=
4462 -- plus fields for binary operator
4463 -- plus fields for expression
4465 -- N_Op_Lt
4466 -- Sloc points to <
4467 -- plus fields for binary operator
4468 -- plus fields for expression
4470 -- N_Op_Le
4471 -- Sloc points to <=
4472 -- plus fields for binary operator
4473 -- plus fields for expression
4475 -- N_Op_Gt
4476 -- Sloc points to >
4477 -- plus fields for binary operator
4478 -- plus fields for expression
4480 -- N_Op_Ge
4481 -- Sloc points to >=
4482 -- plus fields for binary operator
4483 -- plus fields for expression
4485 -- N_Op_Add
4486 -- Sloc points to + (binary)
4487 -- plus fields for binary operator
4488 -- plus fields for expression
4490 -- N_Op_Subtract
4491 -- Sloc points to - (binary)
4492 -- plus fields for binary operator
4493 -- plus fields for expression
4495 -- N_Op_Concat
4496 -- Sloc points to &
4497 -- Is_Component_Left_Opnd (Flag13-Sem)
4498 -- Is_Component_Right_Opnd (Flag14-Sem)
4499 -- plus fields for binary operator
4500 -- plus fields for expression
4502 -- N_Op_Multiply
4503 -- Sloc points to *
4504 -- Treat_Fixed_As_Integer (Flag14-Sem)
4505 -- Rounded_Result (Flag18-Sem)
4506 -- plus fields for binary operator
4507 -- plus fields for expression
4509 -- N_Op_Divide
4510 -- Sloc points to /
4511 -- Treat_Fixed_As_Integer (Flag14-Sem)
4512 -- Do_Division_Check (Flag13-Sem)
4513 -- Rounded_Result (Flag18-Sem)
4514 -- plus fields for binary operator
4515 -- plus fields for expression
4517 -- N_Op_Mod
4518 -- Sloc points to MOD
4519 -- Treat_Fixed_As_Integer (Flag14-Sem)
4520 -- Do_Division_Check (Flag13-Sem)
4521 -- plus fields for binary operator
4522 -- plus fields for expression
4524 -- N_Op_Rem
4525 -- Sloc points to REM
4526 -- Treat_Fixed_As_Integer (Flag14-Sem)
4527 -- Do_Division_Check (Flag13-Sem)
4528 -- plus fields for binary operator
4529 -- plus fields for expression
4531 -- N_Op_Expon
4532 -- Sloc points to **
4533 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4534 -- plus fields for binary operator
4535 -- plus fields for expression
4537 -- N_Op_Plus
4538 -- Sloc points to + (unary)
4539 -- plus fields for unary operator
4540 -- plus fields for expression
4542 -- N_Op_Minus
4543 -- Sloc points to - (unary)
4544 -- plus fields for unary operator
4545 -- plus fields for expression
4547 -- N_Op_Abs
4548 -- Sloc points to ABS
4549 -- plus fields for unary operator
4550 -- plus fields for expression
4552 -- N_Op_Not
4553 -- Sloc points to NOT
4554 -- plus fields for unary operator
4555 -- plus fields for expression
4557 -- See also shift operators in section B.2
4559 -- Note on fixed-point operations passed to Gigi: For adding operators,
4560 -- the semantics is to treat these simply as integer operations, with
4561 -- the small values being ignored (the bounds are already stored in
4562 -- units of small, so that constraint checking works as usual). For the
4563 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4564 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4565 -- thus treat these nodes in identical manner, ignoring small values.
4567 -- Note on equality/inequality tests for records. In the expanded tree,
4568 -- record comparisons are always expanded to be a series of component
4569 -- comparisons, so the back end will never see an equality or inequality
4570 -- operation with operands of a record type.
4572 -- Note on overflow handling: When the overflow checking mode is set to
4573 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4574 -- be modified to use a larger type for the operands and result. In
4575 -- the case where the computed range exceeds that of Long_Long_Integer,
4576 -- and we are running in ELIMINATED mode, the operator node will be
4577 -- changed to be a call to the appropriate routine in System.Bignums.
4579 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4580 -- for signed integer types (since there is no equivalent operator in
4581 -- C). Instead we rewrite such an operation in terms of REM (which is
4582 -- % in C) and other C-available operators.
4584 ------------------------------------
4585 -- 4.5.7 Conditional Expressions --
4586 ------------------------------------
4588 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4590 --------------------------
4591 -- 4.5.7 If Expression --
4592 ----------------------------
4594 -- IF_EXPRESSION ::=
4595 -- if CONDITION then DEPENDENT_EXPRESSION
4596 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4597 -- [else DEPENDENT_EXPRESSION]
4599 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4601 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4602 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4603 -- the Is_Elsif flag is set on the inner if expression.
4605 -- N_If_Expression
4606 -- Sloc points to IF or ELSIF keyword
4607 -- Expressions (List1)
4608 -- Then_Actions (List2-Sem)
4609 -- Else_Actions (List3-Sem)
4610 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4611 -- Do_Overflow_Check (Flag17-Sem)
4612 -- plus fields for expression
4614 -- Expressions here is a three-element list, whose first element is the
4615 -- condition, the second element is the dependent expression after THEN
4616 -- and the third element is the dependent expression after the ELSE
4617 -- (explicitly set to True if missing).
4619 -- Note: the Then_Actions and Else_Actions fields are always set to
4620 -- No_List in the tree passed to the back end. These are used only
4621 -- for temporary processing purposes in the expander. Even though they
4622 -- are semantic fields, their parent pointers are set because analysis
4623 -- of actions nodes in those lists may generate additional actions that
4624 -- need to know their insertion point (for example for the creation of
4625 -- transient scopes).
4627 -- Note: in the tree passed to the back end, if the result type is
4628 -- an unconstrained array, the if expression can only appears in the
4629 -- initializing expression of an object declaration (this avoids the
4630 -- back end having to create a variable length temporary on the fly).
4632 ----------------------------
4633 -- 4.5.7 Case Expression --
4634 ----------------------------
4636 -- CASE_EXPRESSION ::=
4637 -- case SELECTING_EXPRESSION is
4638 -- CASE_EXPRESSION_ALTERNATIVE
4639 -- {,CASE_EXPRESSION_ALTERNATIVE}
4641 -- Note that the Alternatives cannot include pragmas (this contrasts
4642 -- with the situation of case statements where pragmas are allowed).
4644 -- N_Case_Expression
4645 -- Sloc points to CASE
4646 -- Expression (Node3) (the selecting expression)
4647 -- Alternatives (List4) (the case expression alternatives)
4648 -- Do_Overflow_Check (Flag17-Sem)
4650 ----------------------------------------
4651 -- 4.5.7 Case Expression Alternative --
4652 ----------------------------------------
4654 -- CASE_EXPRESSION_ALTERNATIVE ::=
4655 -- when DISCRETE_CHOICE_LIST =>
4656 -- DEPENDENT_EXPRESSION
4658 -- N_Case_Expression_Alternative
4659 -- Sloc points to WHEN
4660 -- Actions (List1)
4661 -- Discrete_Choices (List4)
4662 -- Expression (Node3)
4663 -- Has_SP_Choice (Flag15-Sem)
4665 -- Note: The Actions field temporarily holds any actions associated with
4666 -- evaluation of the Expression. During expansion of the case expression
4667 -- these actions are wrapped into an N_Expressions_With_Actions node
4668 -- replacing the original expression.
4670 -- Note: this node never appears in the tree passed to the back end,
4671 -- since the expander converts case expressions into case statements.
4673 ---------------------------------
4674 -- 4.5.9 Quantified Expression --
4675 ---------------------------------
4677 -- QUANTIFIED_EXPRESSION ::=
4678 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4679 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4681 -- QUANTIFIER ::= all | some
4683 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4684 -- is present at a time, in which case the other one is empty.
4686 -- N_Quantified_Expression
4687 -- Sloc points to FOR
4688 -- Iterator_Specification (Node2)
4689 -- Loop_Parameter_Specification (Node4)
4690 -- Condition (Node1)
4691 -- All_Present (Flag15)
4693 --------------------------
4694 -- 4.6 Type Conversion --
4695 --------------------------
4697 -- TYPE_CONVERSION ::=
4698 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4700 -- In the (NAME) case, the name is stored as the expression
4702 -- Note: the parser never generates a type conversion node, since it
4703 -- looks like an indexed component which is generated by preference.
4704 -- The semantic pass must correct this misidentification.
4706 -- Gigi handles conversions that involve no change in the root type,
4707 -- and also all conversions from integer to floating-point types.
4708 -- Conversions from floating-point to integer are only handled in
4709 -- the case where Float_Truncate flag set. Other conversions from
4710 -- floating-point to integer (involving rounding) and all conversions
4711 -- involving fixed-point types are handled by the expander.
4713 -- Sprint syntax if Float_Truncate set: X^(Y)
4714 -- Sprint syntax if Conversion_OK set X?(Y)
4715 -- Sprint syntax if both flags set X?^(Y)
4717 -- Note: If either the operand or result type is fixed-point, Gigi will
4718 -- only see a type conversion node with Conversion_OK set. The front end
4719 -- takes care of all handling of small's for fixed-point conversions.
4721 -- N_Type_Conversion
4722 -- Sloc points to first token of subtype mark
4723 -- Subtype_Mark (Node4)
4724 -- Expression (Node3)
4725 -- Do_Discriminant_Check (Flag3-Sem)
4726 -- Do_Length_Check (Flag4-Sem)
4727 -- Float_Truncate (Flag11-Sem)
4728 -- Do_Tag_Check (Flag13-Sem)
4729 -- Conversion_OK (Flag14-Sem)
4730 -- Do_Overflow_Check (Flag17-Sem)
4731 -- Rounded_Result (Flag18-Sem)
4732 -- plus fields for expression
4734 -- Note: if a range check is required, then the Do_Range_Check flag
4735 -- is set in the Expression with the check being done against the
4736 -- target type range (after the base type conversion, if any).
4738 -------------------------------
4739 -- 4.7 Qualified Expression --
4740 -------------------------------
4742 -- QUALIFIED_EXPRESSION ::=
4743 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4745 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4746 -- the expression, so the Expression field of this node always points
4747 -- to a parenthesized expression in this case (i.e. Paren_Count will
4748 -- always be non-zero for the referenced expression if it is not an
4749 -- aggregate).
4751 -- N_Qualified_Expression
4752 -- Sloc points to apostrophe
4753 -- Subtype_Mark (Node4)
4754 -- Expression (Node3) expression or aggregate
4755 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4756 -- plus fields for expression
4758 --------------------
4759 -- 4.8 Allocator --
4760 --------------------
4762 -- ALLOCATOR ::=
4763 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4764 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4766 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4768 -- Sprint syntax (when storage pool present)
4769 -- new xxx (storage_pool = pool)
4770 -- or
4771 -- new (subpool) xxx (storage_pool = pool)
4773 -- N_Allocator
4774 -- Sloc points to NEW
4775 -- Expression (Node3) subtype indication or qualified expression
4776 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4777 -- Storage_Pool (Node1-Sem)
4778 -- Procedure_To_Call (Node2-Sem)
4779 -- Null_Exclusion_Present (Flag11)
4780 -- No_Initialization (Flag13-Sem)
4781 -- Is_Static_Coextension (Flag14-Sem)
4782 -- Do_Storage_Check (Flag17-Sem)
4783 -- Is_Dynamic_Coextension (Flag18-Sem)
4784 -- plus fields for expression
4786 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4787 -- This flag has a special function in conjunction with the restriction
4788 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4789 -- is not set. This means that if a source allocator is replaced with
4790 -- a constructed allocator, the Comes_From_Source flag should be copied
4791 -- to the newly created allocator.
4793 ---------------------------------
4794 -- 5.1 Sequence Of Statements --
4795 ---------------------------------
4797 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4799 -- Note: Although the parser will not accept a declaration as a
4800 -- statement, the semantic analyzer may insert declarations (e.g.
4801 -- declarations of implicit types needed for execution of other
4802 -- statements) into a sequence of statements, so the code generator
4803 -- should be prepared to accept a declaration where a statement is
4804 -- expected. Note also that pragmas can appear as statements.
4806 --------------------
4807 -- 5.1 Statement --
4808 --------------------
4810 -- STATEMENT ::=
4811 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4813 -- There is no explicit node in the tree for a statement. Instead, the
4814 -- individual statement appears directly. Labels are treated as a
4815 -- kind of statement, i.e. they are linked into a statement list at
4816 -- the point they appear, so the labeled statement appears following
4817 -- the label or labels in the statement list.
4819 ---------------------------
4820 -- 5.1 Simple Statement --
4821 ---------------------------
4823 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4824 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4825 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4826 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4827 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4828 -- | ABORT_STATEMENT | RAISE_STATEMENT
4829 -- | CODE_STATEMENT
4831 -----------------------------
4832 -- 5.1 Compound Statement --
4833 -----------------------------
4835 -- COMPOUND_STATEMENT ::=
4836 -- IF_STATEMENT | CASE_STATEMENT
4837 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4838 -- | EXTENDED_RETURN_STATEMENT
4839 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4841 -------------------------
4842 -- 5.1 Null Statement --
4843 -------------------------
4845 -- NULL_STATEMENT ::= null;
4847 -- N_Null_Statement
4848 -- Sloc points to NULL
4850 ----------------
4851 -- 5.1 Label --
4852 ----------------
4854 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4856 -- Note that the occurrence of a label is not a defining identifier,
4857 -- but rather a referencing occurrence. The defining occurrence is
4858 -- in the implicit label declaration which occurs in the innermost
4859 -- enclosing block.
4861 -- N_Label
4862 -- Sloc points to <<
4863 -- Identifier (Node1) direct name of statement identifier
4864 -- Exception_Junk (Flag8-Sem)
4866 -- Note: Before Ada 2012, a label is always followed by a statement,
4867 -- and this is true in the tree even in Ada 2012 mode (the parser
4868 -- inserts a null statement marked with Comes_From_Source False).
4870 -------------------------------
4871 -- 5.1 Statement Identifier --
4872 -------------------------------
4874 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4876 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4877 -- (not an OPERATOR_SYMBOL)
4879 -------------------------------
4880 -- 5.2 Assignment Statement --
4881 -------------------------------
4883 -- ASSIGNMENT_STATEMENT ::=
4884 -- variable_NAME := EXPRESSION;
4886 -- N_Assignment_Statement
4887 -- Sloc points to :=
4888 -- Name (Node2)
4889 -- Expression (Node3)
4890 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4891 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4892 -- Do_Discriminant_Check (Flag3-Sem)
4893 -- Do_Length_Check (Flag4-Sem)
4894 -- Forwards_OK (Flag5-Sem)
4895 -- Backwards_OK (Flag6-Sem)
4896 -- No_Ctrl_Actions (Flag7-Sem)
4897 -- Has_Target_Names (Flag8-Sem)
4898 -- Do_Tag_Check (Flag13-Sem)
4899 -- Componentwise_Assignment (Flag14-Sem)
4900 -- Suppress_Assignment_Checks (Flag18-Sem)
4902 -- Note: if a range check is required, then the Do_Range_Check flag
4903 -- is set in the Expression (right hand side), with the check being
4904 -- done against the type of the Name (left hand side).
4906 -- Note: the back end places some restrictions on the form of the
4907 -- Expression field. If the object being assigned to is Atomic, then
4908 -- the Expression may not have the form of an aggregate (since this
4909 -- might cause the back end to generate separate assignments). In this
4910 -- case the front end must generate an extra temporary and initialize
4911 -- this temporary as required (the temporary itself is not atomic).
4913 ------------------
4914 -- Target_Name --
4915 ------------------
4917 -- N_Target_Name
4918 -- Sloc points to @
4919 -- Etype (Node5-Sem)
4921 -- Note (Ada 2020): node is used during analysis as a placeholder for
4922 -- the value of the LHS of the enclosing assignment statement. Node is
4923 -- eventually rewritten together with enclosing assignment, and backends
4924 -- are not aware of it.
4926 -----------------------
4927 -- 5.3 If Statement --
4928 -----------------------
4930 -- IF_STATEMENT ::=
4931 -- if CONDITION then
4932 -- SEQUENCE_OF_STATEMENTS
4933 -- {elsif CONDITION then
4934 -- SEQUENCE_OF_STATEMENTS}
4935 -- [else
4936 -- SEQUENCE_OF_STATEMENTS]
4937 -- end if;
4939 -- Gigi restriction: This expander ensures that the type of the
4940 -- Condition fields is always Standard.Boolean, even if the type
4941 -- in the source is some non-standard boolean type.
4943 -- N_If_Statement
4944 -- Sloc points to IF
4945 -- Condition (Node1)
4946 -- Then_Statements (List2)
4947 -- Elsif_Parts (List3) (set to No_List if none present)
4948 -- Else_Statements (List4) (set to No_List if no else part present)
4949 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4950 -- From_Conditional_Expression (Flag1-Sem)
4952 -- N_Elsif_Part
4953 -- Sloc points to ELSIF
4954 -- Condition (Node1)
4955 -- Then_Statements (List2)
4956 -- Condition_Actions (List3-Sem)
4958 --------------------
4959 -- 5.3 Condition --
4960 --------------------
4962 -- CONDITION ::= boolean_EXPRESSION
4964 -------------------------
4965 -- 5.4 Case Statement --
4966 -------------------------
4968 -- CASE_STATEMENT ::=
4969 -- case EXPRESSION is
4970 -- CASE_STATEMENT_ALTERNATIVE
4971 -- {CASE_STATEMENT_ALTERNATIVE}
4972 -- end case;
4974 -- Note: the Alternatives can contain pragmas. These only occur at
4975 -- the start of the list, since any pragmas occurring after the first
4976 -- alternative are absorbed into the corresponding statement sequence.
4978 -- N_Case_Statement
4979 -- Sloc points to CASE
4980 -- Expression (Node3)
4981 -- Alternatives (List4)
4982 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4983 -- From_Conditional_Expression (Flag1-Sem)
4985 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4986 -- followed by a statement, and this is true in the tree even in Ada
4987 -- 2012 mode (the parser inserts a null statement marked with the flag
4988 -- Comes_From_Source False).
4990 -------------------------------------
4991 -- 5.4 Case Statement Alternative --
4992 -------------------------------------
4994 -- CASE_STATEMENT_ALTERNATIVE ::=
4995 -- when DISCRETE_CHOICE_LIST =>
4996 -- SEQUENCE_OF_STATEMENTS
4998 -- N_Case_Statement_Alternative
4999 -- Sloc points to WHEN
5000 -- Discrete_Choices (List4)
5001 -- Statements (List3)
5002 -- Has_SP_Choice (Flag15-Sem)
5004 -- Note: in the list of Discrete_Choices, the tree passed to the back
5005 -- end does not have choice entries corresponding to names of statically
5006 -- predicated subtypes. Such entries are always expanded out to the list
5007 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
5008 -- mode does not have this expansion, and has the original choices.
5010 -------------------------
5011 -- 5.5 Loop Statement --
5012 -------------------------
5014 -- LOOP_STATEMENT ::=
5015 -- [loop_STATEMENT_IDENTIFIER :]
5016 -- [ITERATION_SCHEME] loop
5017 -- SEQUENCE_OF_STATEMENTS
5018 -- end loop [loop_IDENTIFIER];
5020 -- Note: The occurrence of a loop label is not a defining identifier
5021 -- but rather a referencing occurrence. The defining occurrence is in
5022 -- the implicit label declaration which occurs in the innermost
5023 -- enclosing block.
5025 -- Note: there is always a loop statement identifier present in the
5026 -- tree, even if none was given in the source. In the case where no loop
5027 -- identifier is given in the source, the parser creates a name of the
5028 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
5029 -- that the loop names created in this manner do not conflict with any
5030 -- user defined identifiers), and the flag Has_Created_Identifier is set
5031 -- to True. The only exception to the rule that all loop statement nodes
5032 -- have identifiers occurs for loops constructed by the expander, and
5033 -- the semantic analyzer will create and supply dummy loop identifiers
5034 -- in these cases.
5036 -- N_Loop_Statement
5037 -- Sloc points to LOOP
5038 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
5039 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
5040 -- Statements (List3)
5041 -- End_Label (Node4)
5042 -- Has_Created_Identifier (Flag15)
5043 -- Is_Null_Loop (Flag16)
5044 -- Suppress_Loop_Warnings (Flag17)
5046 -- Note: the parser fills in the Identifier field if there is an
5047 -- explicit loop identifier. Otherwise the parser leaves this field
5048 -- set to Empty, and then the semantic processing for a loop statement
5049 -- creates an identifier, setting the Has_Created_Identifier flag to
5050 -- True. So after semantic analysis, the Identifier is always set,
5051 -- referencing an identifier whose entity has an Ekind of E_Loop.
5053 ---------------------------
5054 -- 5.5 Iteration Scheme --
5055 ---------------------------
5057 -- ITERATION_SCHEME ::=
5058 -- while CONDITION
5059 -- | for LOOP_PARAMETER_SPECIFICATION
5060 -- | for ITERATOR_SPECIFICATION
5062 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
5063 -- is present at a time, in which case the other one is empty. Both are
5064 -- empty in the case of a WHILE loop.
5066 -- Gigi restriction: The expander ensures that the type of the Condition
5067 -- field is always Standard.Boolean, even if the type in the source is
5068 -- some non-standard boolean type.
5070 -- N_Iteration_Scheme
5071 -- Sloc points to WHILE or FOR
5072 -- Condition (Node1) (set to Empty if FOR case)
5073 -- Condition_Actions (List3-Sem)
5074 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
5075 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
5077 ---------------------------------------
5078 -- 5.5 Loop Parameter Specification --
5079 ---------------------------------------
5081 -- LOOP_PARAMETER_SPECIFICATION ::=
5082 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
5084 -- N_Loop_Parameter_Specification
5085 -- Sloc points to first identifier
5086 -- Defining_Identifier (Node1)
5087 -- Reverse_Present (Flag15)
5088 -- Discrete_Subtype_Definition (Node4)
5090 -----------------------------------
5091 -- 5.5.1 Iterator Specification --
5092 -----------------------------------
5094 -- ITERATOR_SPECIFICATION ::=
5095 -- DEFINING_IDENTIFIER in [reverse] NAME
5096 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5098 -- N_Iterator_Specification
5099 -- Sloc points to defining identifier
5100 -- Defining_Identifier (Node1)
5101 -- Name (Node2)
5102 -- Reverse_Present (Flag15)
5103 -- Of_Present (Flag16)
5104 -- Subtype_Indication (Node5)
5106 -- Note: The Of_Present flag distinguishes the two forms
5108 --------------------------
5109 -- 5.6 Block Statement --
5110 --------------------------
5112 -- BLOCK_STATEMENT ::=
5113 -- [block_STATEMENT_IDENTIFIER:]
5114 -- [declare
5115 -- DECLARATIVE_PART]
5116 -- begin
5117 -- HANDLED_SEQUENCE_OF_STATEMENTS
5118 -- end [block_IDENTIFIER];
5120 -- Note that the occurrence of a block identifier is not a defining
5121 -- identifier, but rather a referencing occurrence. The defining
5122 -- occurrence is an E_Block entity declared by the implicit label
5123 -- declaration which occurs in the innermost enclosing block statement
5124 -- or body; the block identifier denotes that E_Block.
5126 -- For block statements that come from source code, there is always a
5127 -- block statement identifier present in the tree, denoting an E_Block.
5128 -- In the case where no block identifier is given in the source,
5129 -- the parser creates a name of the form B_n, where n is a decimal
5130 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5131 -- constructed by the expander usually have no identifier, and no
5132 -- corresponding entity.
5134 -- Note: the block statement created for an extended return statement
5135 -- has an entity, and this entity is an E_Return_Statement, rather than
5136 -- the usual E_Block.
5138 -- Note: Exception_Junk is set for the wrapping blocks created during
5139 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5141 -- Note: from a control flow viewpoint, a block statement defines an
5142 -- extended basic block, i.e. the entry of the block dominates every
5143 -- statement in the sequence. When generating new statements with
5144 -- exception handlers in the expander at the end of a sequence that
5145 -- comes from source code, it can be necessary to wrap them all in a
5146 -- block statement in order to expose the implicit control flow to
5147 -- gigi and thus prevent it from issuing bogus control flow warnings.
5149 -- N_Block_Statement
5150 -- Sloc points to DECLARE or BEGIN
5151 -- Identifier (Node1) block direct name (set to Empty if not present)
5152 -- Declarations (List2) (set to No_List if no DECLARE part)
5153 -- Handled_Statement_Sequence (Node4)
5154 -- Activation_Chain_Entity (Node3-Sem)
5155 -- Cleanup_Actions (List5-Sem)
5156 -- Has_Created_Identifier (Flag15)
5157 -- Is_Asynchronous_Call_Block (Flag7)
5158 -- Is_Task_Allocation_Block (Flag6)
5159 -- Exception_Junk (Flag8-Sem)
5160 -- Is_Abort_Block (Flag4-Sem)
5161 -- Is_Finalization_Wrapper (Flag9-Sem)
5162 -- Is_Initialization_Block (Flag1-Sem)
5163 -- Is_Task_Master (Flag5-Sem)
5165 -------------------------
5166 -- 5.7 Exit Statement --
5167 -------------------------
5169 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5171 -- Gigi restriction: The expander ensures that the type of the Condition
5172 -- field is always Standard.Boolean, even if the type in the source is
5173 -- some non-standard boolean type.
5175 -- N_Exit_Statement
5176 -- Sloc points to EXIT
5177 -- Name (Node2) (set to Empty if no loop name present)
5178 -- Condition (Node1) (set to Empty if no WHEN part present)
5179 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5181 -------------------------
5182 -- 5.9 Goto Statement --
5183 -------------------------
5185 -- GOTO_STATEMENT ::= goto label_NAME;
5187 -- N_Goto_Statement
5188 -- Sloc points to GOTO
5189 -- Name (Node2)
5190 -- Exception_Junk (Flag8-Sem)
5192 ---------------------------------
5193 -- 6.1 Subprogram Declaration --
5194 ---------------------------------
5196 -- SUBPROGRAM_DECLARATION ::=
5197 -- SUBPROGRAM_SPECIFICATION
5198 -- [ASPECT_SPECIFICATIONS];
5200 -- N_Subprogram_Declaration
5201 -- Sloc points to FUNCTION or PROCEDURE
5202 -- Specification (Node1)
5203 -- Body_To_Inline (Node3-Sem)
5204 -- Corresponding_Body (Node5-Sem)
5205 -- Parent_Spec (Node4-Sem)
5206 -- Is_Entry_Barrier_Function (Flag8-Sem)
5207 -- Is_Task_Body_Procedure (Flag1-Sem)
5209 ------------------------------------------
5210 -- 6.1 Abstract Subprogram Declaration --
5211 ------------------------------------------
5213 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5214 -- SUBPROGRAM_SPECIFICATION is abstract
5215 -- [ASPECT_SPECIFICATIONS];
5217 -- N_Abstract_Subprogram_Declaration
5218 -- Sloc points to ABSTRACT
5219 -- Specification (Node1)
5221 -----------------------------------
5222 -- 6.1 Subprogram Specification --
5223 -----------------------------------
5225 -- SUBPROGRAM_SPECIFICATION ::=
5226 -- [[not] overriding]
5227 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5228 -- | [[not] overriding]
5229 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5231 -- Note: there are no separate nodes for the profiles, instead the
5232 -- information appears directly in the following nodes.
5234 -- N_Function_Specification
5235 -- Sloc points to FUNCTION
5236 -- Defining_Unit_Name (Node1) (the designator)
5237 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5238 -- Null_Exclusion_Present (Flag11)
5239 -- Result_Definition (Node4) for result subtype
5240 -- Generic_Parent (Node5-Sem)
5241 -- Must_Override (Flag14) set if overriding indicator present
5242 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5244 -- N_Procedure_Specification
5245 -- Sloc points to PROCEDURE
5246 -- Defining_Unit_Name (Node1)
5247 -- Null_Statement (Node2-Sem) NULL statement for body, if Null_Present
5248 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5249 -- Generic_Parent (Node5-Sem)
5250 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5251 -- Must_Override (Flag14) set if overriding indicator present
5252 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5254 -- Note: overriding indicator is an Ada 2005 feature
5256 ---------------------
5257 -- 6.1 Designator --
5258 ---------------------
5260 -- DESIGNATOR ::=
5261 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5263 -- Designators that are simply identifiers or operator symbols appear
5264 -- directly in the tree in this form. The following node is used only
5265 -- in the case where the designator has a parent unit name component.
5267 -- N_Designator
5268 -- Sloc points to period
5269 -- Name (Node2) holds the parent unit name
5270 -- Identifier (Node1)
5272 -- Note: Name is always non-Empty, since this node is only used for the
5273 -- case where a parent library unit package name is present.
5275 -- Note that the identifier can also be an operator symbol here
5277 ------------------------------
5278 -- 6.1 Defining Designator --
5279 ------------------------------
5281 -- DEFINING_DESIGNATOR ::=
5282 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5284 -------------------------------------
5285 -- 6.1 Defining Program Unit Name --
5286 -------------------------------------
5288 -- DEFINING_PROGRAM_UNIT_NAME ::=
5289 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5291 -- The parent unit name is present only in the case of a child unit name
5292 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5293 -- at scope level one). If no such name is present, the defining program
5294 -- unit name is represented simply as the defining identifier. In the
5295 -- child unit case, the following node is used to represent the child
5296 -- unit name.
5298 -- N_Defining_Program_Unit_Name
5299 -- Sloc points to period
5300 -- Name (Node2) holds the parent unit name
5301 -- Defining_Identifier (Node1)
5303 -- Note: Name is always non-Empty, since this node is only used for the
5304 -- case where a parent unit name is present.
5306 --------------------------
5307 -- 6.1 Operator Symbol --
5308 --------------------------
5310 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5312 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5313 -- the corresponding fields of an N_Character_Literal node. This allows
5314 -- easy conversion of the operator symbol node into a character literal
5315 -- node in the case where a string constant of the form of an operator
5316 -- symbol is scanned out as such, but turns out semantically to be a
5317 -- string literal that is not an operator. For details see Sinfo.CN.
5318 -- Change_Operator_Symbol_To_String_Literal.
5320 -- N_Operator_Symbol
5321 -- Sloc points to literal
5322 -- Chars (Name1) contains the Name_Id for the operator symbol
5323 -- Strval (Str3) Id of string value. This is used if the operator
5324 -- symbol turns out to be a normal string after all.
5325 -- Entity (Node4-Sem)
5326 -- Associated_Node (Node4-Sem)
5327 -- Etype (Node5-Sem)
5328 -- Has_Private_View (Flag11-Sem) set in generic units
5330 -- Note: the Strval field may be set to No_String for generated
5331 -- operator symbols that are known not to be string literals
5332 -- semantically.
5334 -----------------------------------
5335 -- 6.1 Defining Operator Symbol --
5336 -----------------------------------
5338 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5340 -- A defining operator symbol is an entity, which has additional
5341 -- fields depending on the setting of the Ekind field. These
5342 -- additional fields are defined (and access subprograms declared)
5343 -- in package Einfo.
5345 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5346 -- are deliberately layed out to match the layout of fields in an
5347 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5348 -- an operator symbol node into a defining operator symbol node.
5349 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5350 -- for further details.
5352 -- N_Defining_Operator_Symbol
5353 -- Sloc points to literal
5354 -- Chars (Name1) contains the Name_Id for the operator symbol
5355 -- Next_Entity (Node2-Sem)
5356 -- Scope (Node3-Sem)
5357 -- Etype (Node5-Sem)
5359 ----------------------------
5360 -- 6.1 Parameter Profile --
5361 ----------------------------
5363 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5365 ---------------------------------------
5366 -- 6.1 Parameter and Result Profile --
5367 ---------------------------------------
5369 -- PARAMETER_AND_RESULT_PROFILE ::=
5370 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5371 -- | [FORMAL_PART] return ACCESS_DEFINITION
5373 -- There is no explicit node in the tree for a parameter and result
5374 -- profile. Instead the information appears directly in the parent.
5376 ----------------------
5377 -- 6.1 Formal Part --
5378 ----------------------
5380 -- FORMAL_PART ::=
5381 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5383 ----------------------------------
5384 -- 6.1 Parameter Specification --
5385 ----------------------------------
5387 -- PARAMETER_SPECIFICATION ::=
5388 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5389 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5390 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5391 -- [:= DEFAULT_EXPRESSION]
5393 -- Although the syntax allows multiple identifiers in the list, the
5394 -- semantics is as though successive specifications were given with
5395 -- identical type definition and expression components. To simplify
5396 -- semantic processing, the parser represents a multiple declaration
5397 -- case as a sequence of single Specifications, using the More_Ids and
5398 -- Prev_Ids flags to preserve the original source form as described
5399 -- in the section on "Handling of Defining Identifier Lists".
5401 -- ALIASED can only be present in Ada 2012 mode
5403 -- N_Parameter_Specification
5404 -- Sloc points to first identifier
5405 -- Defining_Identifier (Node1)
5406 -- Aliased_Present (Flag4)
5407 -- In_Present (Flag15)
5408 -- Out_Present (Flag17)
5409 -- Null_Exclusion_Present (Flag11)
5410 -- Parameter_Type (Node2) subtype mark or access definition
5411 -- Expression (Node3) (set to Empty if no default expression present)
5412 -- Do_Accessibility_Check (Flag13-Sem)
5413 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5414 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5415 -- Default_Expression (Node5-Sem)
5417 ---------------
5418 -- 6.1 Mode --
5419 ---------------
5421 -- MODE ::= [in] | in out | out
5423 -- There is no explicit node in the tree for the Mode. Instead the
5424 -- In_Present and Out_Present flags are set in the parent node to
5425 -- record the presence of keywords specifying the mode.
5427 --------------------------
5428 -- 6.3 Subprogram Body --
5429 --------------------------
5431 -- SUBPROGRAM_BODY ::=
5432 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5433 -- DECLARATIVE_PART
5434 -- begin
5435 -- HANDLED_SEQUENCE_OF_STATEMENTS
5436 -- end [DESIGNATOR];
5438 -- N_Subprogram_Body
5439 -- Sloc points to FUNCTION or PROCEDURE
5440 -- Specification (Node1)
5441 -- Declarations (List2)
5442 -- Handled_Statement_Sequence (Node4)
5443 -- Activation_Chain_Entity (Node3-Sem)
5444 -- Corresponding_Spec (Node5-Sem)
5445 -- Acts_As_Spec (Flag4-Sem)
5446 -- Bad_Is_Detected (Flag15) used only by parser
5447 -- Do_Storage_Check (Flag17-Sem)
5448 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5449 -- Is_Entry_Barrier_Function (Flag8-Sem)
5450 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5451 -- Is_Task_Body_Procedure (Flag1-Sem)
5452 -- Is_Task_Master (Flag5-Sem)
5453 -- Was_Attribute_Reference (Flag2-Sem)
5454 -- Was_Expression_Function (Flag18-Sem)
5455 -- Was_Originally_Stub (Flag13-Sem)
5457 -----------------------------------
5458 -- 6.4 Procedure Call Statement --
5459 -----------------------------------
5461 -- PROCEDURE_CALL_STATEMENT ::=
5462 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5464 -- Note: the reason that a procedure call has expression fields is that
5465 -- it semantically resembles an expression, e.g. overloading is allowed
5466 -- and a type is concocted for semantic processing purposes. Certain of
5467 -- these fields, such as Parens are not relevant, but it is easier to
5468 -- just supply all of them together.
5470 -- N_Procedure_Call_Statement
5471 -- Sloc points to first token of name or prefix
5472 -- Name (Node2) stores name or prefix
5473 -- Parameter_Associations (List3) (set to No_List if no
5474 -- actual parameter part)
5475 -- First_Named_Actual (Node4-Sem)
5476 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5477 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5478 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5479 -- Do_Tag_Check (Flag13-Sem)
5480 -- plus fields for expression
5482 -- If any IN parameter requires a range check, then the corresponding
5483 -- argument expression has the Do_Range_Check flag set, and the range
5484 -- check is done against the formal type. Note that this argument
5485 -- expression may appear directly in the Parameter_Associations list,
5486 -- or may be a descendant of an N_Parameter_Association node that
5487 -- appears in this list.
5489 ------------------------
5490 -- 6.4 Function Call --
5491 ------------------------
5493 -- FUNCTION_CALL ::=
5494 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5496 -- Note: the parser may generate an indexed component node or simply
5497 -- a name node instead of a function call node. The semantic pass must
5498 -- correct this misidentification.
5500 -- N_Function_Call
5501 -- Sloc points to first token of name or prefix
5502 -- Name (Node2) stores name or prefix
5503 -- Parameter_Associations (List3) (set to No_List if no
5504 -- actual parameter part)
5505 -- First_Named_Actual (Node4-Sem)
5506 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5507 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5508 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5509 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5510 -- Do_Tag_Check (Flag13-Sem)
5511 -- No_Side_Effect_Removal (Flag17-Sem)
5512 -- plus fields for expression
5514 --------------------------------
5515 -- 6.4 Actual Parameter Part --
5516 --------------------------------
5518 -- ACTUAL_PARAMETER_PART ::=
5519 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5521 --------------------------------
5522 -- 6.4 Parameter Association --
5523 --------------------------------
5525 -- PARAMETER_ASSOCIATION ::=
5526 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5528 -- Note: the N_Parameter_Association node is built only if a formal
5529 -- parameter selector name is present, otherwise the parameter
5530 -- association appears in the tree simply as the node for the
5531 -- explicit actual parameter.
5533 -- N_Parameter_Association
5534 -- Sloc points to formal parameter
5535 -- Selector_Name (Node2) (always non-Empty)
5536 -- Explicit_Actual_Parameter (Node3)
5537 -- Next_Named_Actual (Node4-Sem)
5538 -- Is_Accessibility_Actual (Flag13-Sem)
5540 ---------------------------
5541 -- 6.4 Actual Parameter --
5542 ---------------------------
5544 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5546 ---------------------------
5547 -- 6.5 Return Statement --
5548 ---------------------------
5550 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5552 -- EXTENDED_RETURN_STATEMENT ::=
5553 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5554 -- [:= EXPRESSION] [do
5555 -- HANDLED_SEQUENCE_OF_STATEMENTS
5556 -- end return];
5558 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5560 -- The term "return statement" is defined in 6.5 to mean either a
5561 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5562 -- the use of this term, since it used to mean someting else in earlier
5563 -- versions of Ada.
5565 -- N_Simple_Return_Statement
5566 -- Sloc points to RETURN
5567 -- Return_Statement_Entity (Node5-Sem)
5568 -- Expression (Node3) (set to Empty if no expression present)
5569 -- Storage_Pool (Node1-Sem)
5570 -- Procedure_To_Call (Node2-Sem)
5571 -- Do_Tag_Check (Flag13-Sem)
5572 -- By_Ref (Flag5-Sem)
5573 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5575 -- Note: Return_Statement_Entity points to an E_Return_Statement
5577 -- If a range check is required, then Do_Range_Check is set on the
5578 -- Expression. The check is against the return subtype of the function.
5580 -- N_Extended_Return_Statement
5581 -- Sloc points to RETURN
5582 -- Return_Statement_Entity (Node5-Sem)
5583 -- Return_Object_Declarations (List3)
5584 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5585 -- Storage_Pool (Node1-Sem)
5586 -- Procedure_To_Call (Node2-Sem)
5587 -- Do_Tag_Check (Flag13-Sem)
5588 -- By_Ref (Flag5-Sem)
5590 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5592 -- Note that Return_Object_Declarations is a list containing the
5593 -- N_Object_Declaration -- see comment on this field above.
5595 -- The declared object will have Is_Return_Object = True.
5597 -- There is no such syntactic category as return_object_declaration
5598 -- in the RM. Return_Object_Declarations represents this portion of
5599 -- the syntax for EXTENDED_RETURN_STATEMENT:
5600 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5601 -- [:= EXPRESSION]
5603 -- There are two entities associated with an extended_return_statement:
5604 -- the Return_Statement_Entity represents the statement itself,
5605 -- and the Defining_Identifier of the Object_Declaration in
5606 -- Return_Object_Declarations represents the object being
5607 -- returned. N_Simple_Return_Statement has only the former.
5609 ------------------------------
5610 -- 6.8 Expression Function --
5611 ------------------------------
5613 -- EXPRESSION_FUNCTION ::=
5614 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5615 -- [ASPECT_SPECIFICATIONS];
5617 -- N_Expression_Function
5618 -- Sloc points to FUNCTION
5619 -- Specification (Node1)
5620 -- Expression (Node3)
5621 -- Corresponding_Spec (Node5-Sem)
5623 ------------------------------
5624 -- 7.1 Package Declaration --
5625 ------------------------------
5627 -- PACKAGE_DECLARATION ::=
5628 -- PACKAGE_SPECIFICATION;
5630 -- Note: the activation chain entity for a package spec is used for
5631 -- all tasks declared in the package spec, or in the package body.
5633 -- N_Package_Declaration
5634 -- Sloc points to PACKAGE
5635 -- Specification (Node1)
5636 -- Corresponding_Body (Node5-Sem)
5637 -- Parent_Spec (Node4-Sem)
5638 -- Activation_Chain_Entity (Node3-Sem)
5640 --------------------------------
5641 -- 7.1 Package Specification --
5642 --------------------------------
5644 -- PACKAGE_SPECIFICATION ::=
5645 -- package DEFINING_PROGRAM_UNIT_NAME
5646 -- [ASPECT_SPECIFICATIONS]
5647 -- is
5648 -- {BASIC_DECLARATIVE_ITEM}
5649 -- [private
5650 -- {BASIC_DECLARATIVE_ITEM}]
5651 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5653 -- N_Package_Specification
5654 -- Sloc points to PACKAGE
5655 -- Defining_Unit_Name (Node1)
5656 -- Visible_Declarations (List2)
5657 -- Private_Declarations (List3) (set to No_List if no private
5658 -- part present)
5659 -- End_Label (Node4)
5660 -- Generic_Parent (Node5-Sem)
5661 -- Limited_View_Installed (Flag18-Sem)
5663 -----------------------
5664 -- 7.1 Package Body --
5665 -----------------------
5667 -- PACKAGE_BODY ::=
5668 -- package body DEFINING_PROGRAM_UNIT_NAME
5669 -- [ASPECT_SPECIFICATIONS]
5670 -- is
5671 -- DECLARATIVE_PART
5672 -- [begin
5673 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5674 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5676 -- N_Package_Body
5677 -- Sloc points to PACKAGE
5678 -- Defining_Unit_Name (Node1)
5679 -- Declarations (List2)
5680 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5681 -- Corresponding_Spec (Node5-Sem)
5682 -- Was_Originally_Stub (Flag13-Sem)
5684 -- Note: if a source level package does not contain a handled sequence
5685 -- of statements, then the parser supplies a dummy one with a null
5686 -- sequence of statements. Comes_From_Source will be False in this
5687 -- constructed sequence. The reason we need this is for the End_Label
5688 -- field in the HSS.
5690 -----------------------------------
5691 -- 7.4 Private Type Declaration --
5692 -----------------------------------
5694 -- PRIVATE_TYPE_DECLARATION ::=
5695 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5696 -- is [[abstract] tagged] [limited] private
5697 -- [ASPECT_SPECIFICATIONS];
5699 -- Note: TAGGED is not permitted in Ada 83 mode
5701 -- N_Private_Type_Declaration
5702 -- Sloc points to TYPE
5703 -- Defining_Identifier (Node1)
5704 -- Discriminant_Specifications (List4) (set to No_List if no
5705 -- discriminant part)
5706 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5707 -- Abstract_Present (Flag4)
5708 -- Tagged_Present (Flag15)
5709 -- Limited_Present (Flag17)
5711 ----------------------------------------
5712 -- 7.4 Private Extension Declaration --
5713 ----------------------------------------
5715 -- PRIVATE_EXTENSION_DECLARATION ::=
5716 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5717 -- [abstract] [limited | synchronized]
5718 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5719 -- with private [ASPECT_SPECIFICATIONS];
5721 -- Note: LIMITED, and private extension declarations are not allowed
5722 -- in Ada 83 mode.
5724 -- N_Private_Extension_Declaration
5725 -- Sloc points to TYPE
5726 -- Defining_Identifier (Node1)
5727 -- Uninitialized_Variable (Node3-Sem)
5728 -- Discriminant_Specifications (List4) (set to No_List if no
5729 -- discriminant part)
5730 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5731 -- Abstract_Present (Flag4)
5732 -- Limited_Present (Flag17)
5733 -- Synchronized_Present (Flag7)
5734 -- Subtype_Indication (Node5)
5735 -- Interface_List (List2) (set to No_List if none)
5737 ---------------------
5738 -- 8.4 Use Clause --
5739 ---------------------
5741 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5743 -----------------------------
5744 -- 8.4 Use Package Clause --
5745 -----------------------------
5747 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5749 -- N_Use_Package_Clause
5750 -- Sloc points to USE
5751 -- Prev_Use_Clause (Node1-Sem)
5752 -- Name (Node2)
5753 -- Next_Use_Clause (Node3-Sem)
5754 -- Associated_Node (Node4-Sem)
5755 -- Hidden_By_Use_Clause (Elist5-Sem)
5756 -- Is_Effective_Use_Clause (Flag1)
5757 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5758 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5760 --------------------------
5761 -- 8.4 Use Type Clause --
5762 --------------------------
5764 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5766 -- Note: use type clause is not permitted in Ada 83 mode
5768 -- Note: the ALL keyword can appear only in Ada 2012 mode
5770 -- N_Use_Type_Clause
5771 -- Sloc points to USE
5772 -- Prev_Use_Clause (Node1-Sem)
5773 -- Used_Operations (Elist2-Sem)
5774 -- Next_Use_Clause (Node3-Sem)
5775 -- Subtype_Mark (Node4)
5776 -- Hidden_By_Use_Clause (Elist5-Sem)
5777 -- Is_Effective_Use_Clause (Flag1)
5778 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5779 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5780 -- All_Present (Flag15)
5782 -------------------------------
5783 -- 8.5 Renaming Declaration --
5784 -------------------------------
5786 -- RENAMING_DECLARATION ::=
5787 -- OBJECT_RENAMING_DECLARATION
5788 -- | EXCEPTION_RENAMING_DECLARATION
5789 -- | PACKAGE_RENAMING_DECLARATION
5790 -- | SUBPROGRAM_RENAMING_DECLARATION
5791 -- | GENERIC_RENAMING_DECLARATION
5793 --------------------------------------
5794 -- 8.5 Object Renaming Declaration --
5795 --------------------------------------
5797 -- OBJECT_RENAMING_DECLARATION ::=
5798 -- DEFINING_IDENTIFIER :
5799 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5800 -- [ASPECT_SPECIFICATIONS];
5801 -- | DEFINING_IDENTIFIER :
5802 -- ACCESS_DEFINITION renames object_NAME
5803 -- [ASPECT_SPECIFICATIONS];
5805 -- Note: Access_Definition is an optional field that gives support to
5806 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5807 -- Subtype_Indication field or else the Access_Definition field.
5809 -- N_Object_Renaming_Declaration
5810 -- Sloc points to first identifier
5811 -- Defining_Identifier (Node1)
5812 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5813 -- Subtype_Mark (Node4) (set to Empty if not present)
5814 -- Access_Definition (Node3) (set to Empty if not present)
5815 -- Name (Node2)
5816 -- Corresponding_Generic_Association (Node5-Sem)
5818 -----------------------------------------
5819 -- 8.5 Exception Renaming Declaration --
5820 -----------------------------------------
5822 -- EXCEPTION_RENAMING_DECLARATION ::=
5823 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5824 -- [ASPECT_SPECIFICATIONS];
5826 -- N_Exception_Renaming_Declaration
5827 -- Sloc points to first identifier
5828 -- Defining_Identifier (Node1)
5829 -- Name (Node2)
5831 ---------------------------------------
5832 -- 8.5 Package Renaming Declaration --
5833 ---------------------------------------
5835 -- PACKAGE_RENAMING_DECLARATION ::=
5836 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5837 -- [ASPECT_SPECIFICATIONS];
5839 -- N_Package_Renaming_Declaration
5840 -- Sloc points to PACKAGE
5841 -- Defining_Unit_Name (Node1)
5842 -- Name (Node2)
5843 -- Parent_Spec (Node4-Sem)
5845 ------------------------------------------
5846 -- 8.5 Subprogram Renaming Declaration --
5847 ------------------------------------------
5849 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5850 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5851 -- [ASPECT_SPECIFICATIONS];
5853 -- N_Subprogram_Renaming_Declaration
5854 -- Sloc points to RENAMES
5855 -- Specification (Node1)
5856 -- Name (Node2)
5857 -- Parent_Spec (Node4-Sem)
5858 -- Corresponding_Spec (Node5-Sem)
5859 -- Corresponding_Formal_Spec (Node3-Sem)
5860 -- From_Default (Flag6-Sem)
5862 -----------------------------------------
5863 -- 8.5.5 Generic Renaming Declaration --
5864 -----------------------------------------
5866 -- GENERIC_RENAMING_DECLARATION ::=
5867 -- generic package DEFINING_PROGRAM_UNIT_NAME
5868 -- renames generic_package_NAME
5869 -- [ASPECT_SPECIFICATIONS];
5870 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5871 -- renames generic_procedure_NAME
5872 -- [ASPECT_SPECIFICATIONS];
5873 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5874 -- renames generic_function_NAME
5875 -- [ASPECT_SPECIFICATIONS];
5877 -- N_Generic_Package_Renaming_Declaration
5878 -- Sloc points to GENERIC
5879 -- Defining_Unit_Name (Node1)
5880 -- Name (Node2)
5881 -- Parent_Spec (Node4-Sem)
5883 -- N_Generic_Procedure_Renaming_Declaration
5884 -- Sloc points to GENERIC
5885 -- Defining_Unit_Name (Node1)
5886 -- Name (Node2)
5887 -- Parent_Spec (Node4-Sem)
5889 -- N_Generic_Function_Renaming_Declaration
5890 -- Sloc points to GENERIC
5891 -- Defining_Unit_Name (Node1)
5892 -- Name (Node2)
5893 -- Parent_Spec (Node4-Sem)
5895 --------------------------------
5896 -- 9.1 Task Type Declaration --
5897 --------------------------------
5899 -- TASK_TYPE_DECLARATION ::=
5900 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5901 -- [ASPECT_SPECIFICATIONS]
5902 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5904 -- N_Task_Type_Declaration
5905 -- Sloc points to TASK
5906 -- Defining_Identifier (Node1)
5907 -- Discriminant_Specifications (List4) (set to No_List if no
5908 -- discriminant part)
5909 -- Interface_List (List2) (set to No_List if none)
5910 -- Task_Definition (Node3) (set to Empty if not present)
5911 -- Corresponding_Body (Node5-Sem)
5913 ----------------------------------
5914 -- 9.1 Single Task Declaration --
5915 ----------------------------------
5917 -- SINGLE_TASK_DECLARATION ::=
5918 -- task DEFINING_IDENTIFIER
5919 -- [ASPECT_SPECIFICATIONS]
5920 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5922 -- N_Single_Task_Declaration
5923 -- Sloc points to TASK
5924 -- Defining_Identifier (Node1)
5925 -- Interface_List (List2) (set to No_List if none)
5926 -- Task_Definition (Node3) (set to Empty if not present)
5928 --------------------------
5929 -- 9.1 Task Definition --
5930 --------------------------
5932 -- TASK_DEFINITION ::=
5933 -- {TASK_ITEM}
5934 -- [private
5935 -- {TASK_ITEM}]
5936 -- end [task_IDENTIFIER]
5938 -- Note: as a result of semantic analysis, the list of task items can
5939 -- include implicit type declarations resulting from entry families.
5941 -- N_Task_Definition
5942 -- Sloc points to first token of task definition
5943 -- Visible_Declarations (List2)
5944 -- Private_Declarations (List3) (set to No_List if no private part)
5945 -- End_Label (Node4)
5946 -- Has_Storage_Size_Pragma (Flag5-Sem)
5947 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5949 --------------------
5950 -- 9.1 Task Item --
5951 --------------------
5953 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5955 --------------------
5956 -- 9.1 Task Body --
5957 --------------------
5959 -- TASK_BODY ::=
5960 -- task body task_DEFINING_IDENTIFIER
5961 -- [ASPECT_SPECIFICATIONS]
5962 -- is
5963 -- DECLARATIVE_PART
5964 -- begin
5965 -- HANDLED_SEQUENCE_OF_STATEMENTS
5966 -- end [task_IDENTIFIER];
5968 -- Gigi restriction: This node never appears
5970 -- N_Task_Body
5971 -- Sloc points to TASK
5972 -- Defining_Identifier (Node1)
5973 -- Declarations (List2)
5974 -- Handled_Statement_Sequence (Node4)
5975 -- Is_Task_Master (Flag5-Sem)
5976 -- Activation_Chain_Entity (Node3-Sem)
5977 -- Corresponding_Spec (Node5-Sem)
5978 -- Was_Originally_Stub (Flag13-Sem)
5980 -------------------------------------
5981 -- 9.4 Protected Type Declaration --
5982 -------------------------------------
5984 -- PROTECTED_TYPE_DECLARATION ::=
5985 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5986 -- [ASPECT_SPECIFICATIONS]
5987 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5989 -- Note: protected type declarations are not permitted in Ada 83 mode
5991 -- N_Protected_Type_Declaration
5992 -- Sloc points to PROTECTED
5993 -- Defining_Identifier (Node1)
5994 -- Discriminant_Specifications (List4) (set to No_List if no
5995 -- discriminant part)
5996 -- Interface_List (List2) (set to No_List if none)
5997 -- Protected_Definition (Node3)
5998 -- Corresponding_Body (Node5-Sem)
6000 ---------------------------------------
6001 -- 9.4 Single Protected Declaration --
6002 ---------------------------------------
6004 -- SINGLE_PROTECTED_DECLARATION ::=
6005 -- protected DEFINING_IDENTIFIER
6006 -- [ASPECT_SPECIFICATIONS]
6007 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6009 -- Note: single protected declarations are not allowed in Ada 83 mode
6011 -- N_Single_Protected_Declaration
6012 -- Sloc points to PROTECTED
6013 -- Defining_Identifier (Node1)
6014 -- Interface_List (List2) (set to No_List if none)
6015 -- Protected_Definition (Node3)
6017 -------------------------------
6018 -- 9.4 Protected Definition --
6019 -------------------------------
6021 -- PROTECTED_DEFINITION ::=
6022 -- {PROTECTED_OPERATION_DECLARATION}
6023 -- [private
6024 -- {PROTECTED_ELEMENT_DECLARATION}]
6025 -- end [protected_IDENTIFIER]
6027 -- N_Protected_Definition
6028 -- Sloc points to first token of protected definition
6029 -- Visible_Declarations (List2)
6030 -- Private_Declarations (List3) (set to No_List if no private part)
6031 -- End_Label (Node4)
6033 ------------------------------------------
6034 -- 9.4 Protected Operation Declaration --
6035 ------------------------------------------
6037 -- PROTECTED_OPERATION_DECLARATION ::=
6038 -- SUBPROGRAM_DECLARATION
6039 -- | ENTRY_DECLARATION
6040 -- | REPRESENTATION_CLAUSE
6042 ----------------------------------------
6043 -- 9.4 Protected Element Declaration --
6044 ----------------------------------------
6046 -- PROTECTED_ELEMENT_DECLARATION ::=
6047 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
6049 -------------------------
6050 -- 9.4 Protected Body --
6051 -------------------------
6053 -- PROTECTED_BODY ::=
6054 -- protected body DEFINING_IDENTIFIER
6055 -- [ASPECT_SPECIFICATIONS];
6056 -- is
6057 -- {PROTECTED_OPERATION_ITEM}
6058 -- end [protected_IDENTIFIER];
6060 -- Note: protected bodies are not allowed in Ada 83 mode
6062 -- Gigi restriction: This node never appears
6064 -- N_Protected_Body
6065 -- Sloc points to PROTECTED
6066 -- Defining_Identifier (Node1)
6067 -- Declarations (List2) protected operation items (and pragmas)
6068 -- End_Label (Node4)
6069 -- Corresponding_Spec (Node5-Sem)
6070 -- Was_Originally_Stub (Flag13-Sem)
6072 -----------------------------------
6073 -- 9.4 Protected Operation Item --
6074 -----------------------------------
6076 -- PROTECTED_OPERATION_ITEM ::=
6077 -- SUBPROGRAM_DECLARATION
6078 -- | SUBPROGRAM_BODY
6079 -- | ENTRY_BODY
6080 -- | REPRESENTATION_CLAUSE
6082 ------------------------------
6083 -- 9.5.2 Entry Declaration --
6084 ------------------------------
6086 -- ENTRY_DECLARATION ::=
6087 -- [[not] overriding]
6088 -- entry DEFINING_IDENTIFIER
6089 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
6090 -- [ASPECT_SPECIFICATIONS];
6092 -- N_Entry_Declaration
6093 -- Sloc points to ENTRY
6094 -- Defining_Identifier (Node1)
6095 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
6096 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6097 -- Corresponding_Body (Node5-Sem)
6098 -- Must_Override (Flag14) set if overriding indicator present
6099 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6101 -- Note: overriding indicator is an Ada 2005 feature
6103 -----------------------------
6104 -- 9.5.2 Accept statement --
6105 -----------------------------
6107 -- ACCEPT_STATEMENT ::=
6108 -- accept entry_DIRECT_NAME
6109 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6110 -- HANDLED_SEQUENCE_OF_STATEMENTS
6111 -- end [entry_IDENTIFIER]];
6113 -- Gigi restriction: This node never appears
6115 -- Note: there are no explicit declarations allowed in an accept
6116 -- statement. However, the implicit declarations for any statement
6117 -- identifiers (labels and block/loop identifiers) are declarations
6118 -- that belong logically to the accept statement, and that is why
6119 -- there is a Declarations field in this node.
6121 -- N_Accept_Statement
6122 -- Sloc points to ACCEPT
6123 -- Entry_Direct_Name (Node1)
6124 -- Entry_Index (Node5) (set to Empty if not present)
6125 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6126 -- Handled_Statement_Sequence (Node4)
6127 -- Declarations (List2) (set to No_List if no declarations)
6129 ------------------------
6130 -- 9.5.2 Entry Index --
6131 ------------------------
6133 -- ENTRY_INDEX ::= EXPRESSION
6135 -----------------------
6136 -- 9.5.2 Entry Body --
6137 -----------------------
6139 -- ENTRY_BODY ::=
6140 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6141 -- DECLARATIVE_PART
6142 -- begin
6143 -- HANDLED_SEQUENCE_OF_STATEMENTS
6144 -- end [entry_IDENTIFIER];
6146 -- ENTRY_BARRIER ::= when CONDITION
6148 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6149 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6150 -- too full (it would otherwise have too many fields)
6152 -- Gigi restriction: This node never appears
6154 -- N_Entry_Body
6155 -- Sloc points to ENTRY
6156 -- Defining_Identifier (Node1)
6157 -- Entry_Body_Formal_Part (Node5)
6158 -- Declarations (List2)
6159 -- Handled_Statement_Sequence (Node4)
6160 -- Activation_Chain_Entity (Node3-Sem)
6162 -----------------------------------
6163 -- 9.5.2 Entry Body Formal Part --
6164 -----------------------------------
6166 -- ENTRY_BODY_FORMAL_PART ::=
6167 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6169 -- Note that an entry body formal part node is present even if it is
6170 -- empty. This reflects the grammar, in which it is the components of
6171 -- the entry body formal part that are optional, not the entry body
6172 -- formal part itself. Also this means that the barrier condition
6173 -- always has somewhere to be stored.
6175 -- Gigi restriction: This node never appears
6177 -- N_Entry_Body_Formal_Part
6178 -- Sloc points to first token
6179 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6180 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6181 -- Condition (Node1) from entry barrier of entry body
6183 --------------------------
6184 -- 9.5.2 Entry Barrier --
6185 --------------------------
6187 -- ENTRY_BARRIER ::= when CONDITION
6189 --------------------------------------
6190 -- 9.5.2 Entry Index Specification --
6191 --------------------------------------
6193 -- ENTRY_INDEX_SPECIFICATION ::=
6194 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6196 -- Gigi restriction: This node never appears
6198 -- N_Entry_Index_Specification
6199 -- Sloc points to FOR
6200 -- Defining_Identifier (Node1)
6201 -- Discrete_Subtype_Definition (Node4)
6203 ---------------------------------
6204 -- 9.5.3 Entry Call Statement --
6205 ---------------------------------
6207 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6209 -- The parser may generate a procedure call for this construct. The
6210 -- semantic pass must correct this misidentification where needed.
6212 -- Gigi restriction: This node never appears
6214 -- N_Entry_Call_Statement
6215 -- Sloc points to first token of name
6216 -- Name (Node2)
6217 -- Parameter_Associations (List3) (set to No_List if no
6218 -- actual parameter part)
6219 -- First_Named_Actual (Node4-Sem)
6220 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6221 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6223 ------------------------------
6224 -- 9.5.4 Requeue Statement --
6225 ------------------------------
6227 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6229 -- Note: requeue statements are not permitted in Ada 83 mode
6231 -- Gigi restriction: This node never appears
6233 -- N_Requeue_Statement
6234 -- Sloc points to REQUEUE
6235 -- Name (Node2)
6236 -- Abort_Present (Flag15)
6237 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6238 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6240 --------------------------
6241 -- 9.6 Delay Statement --
6242 --------------------------
6244 -- DELAY_STATEMENT ::=
6245 -- DELAY_UNTIL_STATEMENT
6246 -- | DELAY_RELATIVE_STATEMENT
6248 --------------------------------
6249 -- 9.6 Delay Until Statement --
6250 --------------------------------
6252 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6254 -- Note: delay until statements are not permitted in Ada 83 mode
6256 -- Gigi restriction: This node never appears
6258 -- N_Delay_Until_Statement
6259 -- Sloc points to DELAY
6260 -- Expression (Node3)
6262 -----------------------------------
6263 -- 9.6 Delay Relative Statement --
6264 -----------------------------------
6266 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6268 -- Gigi restriction: This node never appears
6270 -- N_Delay_Relative_Statement
6271 -- Sloc points to DELAY
6272 -- Expression (Node3)
6274 ---------------------------
6275 -- 9.7 Select Statement --
6276 ---------------------------
6278 -- SELECT_STATEMENT ::=
6279 -- SELECTIVE_ACCEPT
6280 -- | TIMED_ENTRY_CALL
6281 -- | CONDITIONAL_ENTRY_CALL
6282 -- | ASYNCHRONOUS_SELECT
6284 -----------------------------
6285 -- 9.7.1 Selective Accept --
6286 -----------------------------
6288 -- SELECTIVE_ACCEPT ::=
6289 -- select
6290 -- [GUARD]
6291 -- SELECT_ALTERNATIVE
6292 -- {or
6293 -- [GUARD]
6294 -- SELECT_ALTERNATIVE}
6295 -- [else
6296 -- SEQUENCE_OF_STATEMENTS]
6297 -- end select;
6299 -- Gigi restriction: This node never appears
6301 -- Note: the guard expression, if present, appears in the node for
6302 -- the select alternative.
6304 -- N_Selective_Accept
6305 -- Sloc points to SELECT
6306 -- Select_Alternatives (List1)
6307 -- Else_Statements (List4) (set to No_List if no else part)
6309 ------------------
6310 -- 9.7.1 Guard --
6311 ------------------
6313 -- GUARD ::= when CONDITION =>
6315 -- As noted above, the CONDITION that is part of a GUARD is included
6316 -- in the node for the select alternative for convenience.
6318 -------------------------------
6319 -- 9.7.1 Select Alternative --
6320 -------------------------------
6322 -- SELECT_ALTERNATIVE ::=
6323 -- ACCEPT_ALTERNATIVE
6324 -- | DELAY_ALTERNATIVE
6325 -- | TERMINATE_ALTERNATIVE
6327 -------------------------------
6328 -- 9.7.1 Accept Alternative --
6329 -------------------------------
6331 -- ACCEPT_ALTERNATIVE ::=
6332 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6334 -- Gigi restriction: This node never appears
6336 -- N_Accept_Alternative
6337 -- Sloc points to ACCEPT
6338 -- Accept_Statement (Node2)
6339 -- Condition (Node1) from the guard (set to Empty if no guard present)
6340 -- Statements (List3) (set to Empty_List if no statements)
6341 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6342 -- Accept_Handler_Records (List5-Sem)
6344 ------------------------------
6345 -- 9.7.1 Delay Alternative --
6346 ------------------------------
6348 -- DELAY_ALTERNATIVE ::=
6349 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6351 -- Gigi restriction: This node never appears
6353 -- N_Delay_Alternative
6354 -- Sloc points to DELAY
6355 -- Delay_Statement (Node2)
6356 -- Condition (Node1) from the guard (set to Empty if no guard present)
6357 -- Statements (List3) (set to Empty_List if no statements)
6358 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6360 ----------------------------------
6361 -- 9.7.1 Terminate Alternative --
6362 ----------------------------------
6364 -- TERMINATE_ALTERNATIVE ::= terminate;
6366 -- Gigi restriction: This node never appears
6368 -- N_Terminate_Alternative
6369 -- Sloc points to TERMINATE
6370 -- Condition (Node1) from the guard (set to Empty if no guard present)
6371 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6372 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6374 -----------------------------
6375 -- 9.7.2 Timed Entry Call --
6376 -----------------------------
6378 -- TIMED_ENTRY_CALL ::=
6379 -- select
6380 -- ENTRY_CALL_ALTERNATIVE
6381 -- or
6382 -- DELAY_ALTERNATIVE
6383 -- end select;
6385 -- Gigi restriction: This node never appears
6387 -- N_Timed_Entry_Call
6388 -- Sloc points to SELECT
6389 -- Entry_Call_Alternative (Node1)
6390 -- Delay_Alternative (Node4)
6392 -----------------------------------
6393 -- 9.7.2 Entry Call Alternative --
6394 -----------------------------------
6396 -- ENTRY_CALL_ALTERNATIVE ::=
6397 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6399 -- PROCEDURE_OR_ENTRY_CALL ::=
6400 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6402 -- Gigi restriction: This node never appears
6404 -- N_Entry_Call_Alternative
6405 -- Sloc points to first token of entry call statement
6406 -- Entry_Call_Statement (Node1)
6407 -- Statements (List3) (set to Empty_List if no statements)
6408 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6410 -----------------------------------
6411 -- 9.7.3 Conditional Entry Call --
6412 -----------------------------------
6414 -- CONDITIONAL_ENTRY_CALL ::=
6415 -- select
6416 -- ENTRY_CALL_ALTERNATIVE
6417 -- else
6418 -- SEQUENCE_OF_STATEMENTS
6419 -- end select;
6421 -- Gigi restriction: This node never appears
6423 -- N_Conditional_Entry_Call
6424 -- Sloc points to SELECT
6425 -- Entry_Call_Alternative (Node1)
6426 -- Else_Statements (List4)
6428 --------------------------------
6429 -- 9.7.4 Asynchronous Select --
6430 --------------------------------
6432 -- ASYNCHRONOUS_SELECT ::=
6433 -- select
6434 -- TRIGGERING_ALTERNATIVE
6435 -- then abort
6436 -- ABORTABLE_PART
6437 -- end select;
6439 -- Note: asynchronous select is not permitted in Ada 83 mode
6441 -- Gigi restriction: This node never appears
6443 -- N_Asynchronous_Select
6444 -- Sloc points to SELECT
6445 -- Triggering_Alternative (Node1)
6446 -- Abortable_Part (Node2)
6448 -----------------------------------
6449 -- 9.7.4 Triggering Alternative --
6450 -----------------------------------
6452 -- TRIGGERING_ALTERNATIVE ::=
6453 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6455 -- Gigi restriction: This node never appears
6457 -- N_Triggering_Alternative
6458 -- Sloc points to first token of triggering statement
6459 -- Triggering_Statement (Node1)
6460 -- Statements (List3) (set to Empty_List if no statements)
6461 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6463 ---------------------------------
6464 -- 9.7.4 Triggering Statement --
6465 ---------------------------------
6467 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6469 ---------------------------
6470 -- 9.7.4 Abortable Part --
6471 ---------------------------
6473 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6475 -- Gigi restriction: This node never appears
6477 -- N_Abortable_Part
6478 -- Sloc points to ABORT
6479 -- Statements (List3)
6481 --------------------------
6482 -- 9.8 Abort Statement --
6483 --------------------------
6485 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6487 -- Gigi restriction: This node never appears
6489 -- N_Abort_Statement
6490 -- Sloc points to ABORT
6491 -- Names (List2)
6493 -------------------------
6494 -- 10.1.1 Compilation --
6495 -------------------------
6497 -- COMPILATION ::= {COMPILATION_UNIT}
6499 -- There is no explicit node in the tree for a compilation, since in
6500 -- general the compiler is processing only a single compilation unit
6501 -- at a time. It is possible to parse multiple units in syntax check
6502 -- only mode, but the trees are discarded in that case.
6504 ------------------------------
6505 -- 10.1.1 Compilation Unit --
6506 ------------------------------
6508 -- COMPILATION_UNIT ::=
6509 -- CONTEXT_CLAUSE LIBRARY_ITEM
6510 -- | CONTEXT_CLAUSE SUBUNIT
6512 -- The N_Compilation_Unit node itself represents the above syntax.
6513 -- However, there are two additional items not reflected in the above
6514 -- syntax. First we have the global declarations that are added by the
6515 -- code generator. These are outer level declarations (so they cannot
6516 -- be represented as being inside the units). An example is the wrapper
6517 -- subprograms that are created to do ABE checking. As always a list of
6518 -- declarations can contain actions as well (i.e. statements), and such
6519 -- statements are executed as part of the elaboration of the unit. Note
6520 -- that all such declarations are elaborated before the library unit.
6522 -- Similarly, certain actions need to be elaborated at the completion
6523 -- of elaboration of the library unit (notably the statement that sets
6524 -- the Boolean flag indicating that elaboration is complete).
6526 -- The third item not reflected in the syntax is pragmas that appear
6527 -- after the compilation unit. As always pragmas are a problem since
6528 -- they are not part of the formal syntax, but can be stuck into the
6529 -- source following a set of ad hoc rules, and we have to find an ad
6530 -- hoc way of sticking them into the tree. For pragmas that appear
6531 -- before the library unit, we just consider them to be part of the
6532 -- context clause, and pragmas can appear in the Context_Items list
6533 -- of the compilation unit. However, pragmas can also appear after
6534 -- the library item.
6536 -- To deal with all these problems, we create an auxiliary node for
6537 -- a compilation unit, referenced from the N_Compilation_Unit node,
6538 -- that contains these items.
6540 -- N_Compilation_Unit
6541 -- Sloc points to first token of defining unit name
6542 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6543 -- Context_Items (List1) context items and pragmas preceding unit
6544 -- Private_Present (Flag15) set if library unit has private keyword
6545 -- Unit (Node2) library item or subunit
6546 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6547 -- Has_No_Elaboration_Code (Flag17-Sem)
6548 -- Body_Required (Flag13-Sem) set for spec if body is required
6549 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6550 -- Context_Pending (Flag16-Sem)
6551 -- First_Inlined_Subprogram (Node3-Sem)
6552 -- Has_Pragma_Suppress_All (Flag14-Sem)
6554 -- N_Compilation_Unit_Aux
6555 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6556 -- Declarations (List2) (set to No_List if no global declarations)
6557 -- Actions (List1) (set to No_List if no actions)
6558 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6559 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6560 -- Default_Storage_Pool (Node3-Sem)
6562 --------------------------
6563 -- 10.1.1 Library Item --
6564 --------------------------
6566 -- LIBRARY_ITEM ::=
6567 -- [private] LIBRARY_UNIT_DECLARATION
6568 -- | LIBRARY_UNIT_BODY
6569 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6571 -- Note: PRIVATE is not allowed in Ada 83 mode
6573 -- There is no explicit node in the tree for library item, instead
6574 -- the declaration or body, and the flag for private if present,
6575 -- appear in the N_Compilation_Unit node.
6577 --------------------------------------
6578 -- 10.1.1 Library Unit Declaration --
6579 --------------------------------------
6581 -- LIBRARY_UNIT_DECLARATION ::=
6582 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6583 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6585 -----------------------------------------------
6586 -- 10.1.1 Library Unit Renaming Declaration --
6587 -----------------------------------------------
6589 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6590 -- PACKAGE_RENAMING_DECLARATION
6591 -- | GENERIC_RENAMING_DECLARATION
6592 -- | SUBPROGRAM_RENAMING_DECLARATION
6594 -------------------------------
6595 -- 10.1.1 Library unit body --
6596 -------------------------------
6598 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6600 ------------------------------
6601 -- 10.1.1 Parent Unit Name --
6602 ------------------------------
6604 -- PARENT_UNIT_NAME ::= NAME
6606 ----------------------------
6607 -- 10.1.2 Context clause --
6608 ----------------------------
6610 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6612 -- The context clause can include pragmas, and any pragmas that appear
6613 -- before the context clause proper (i.e. all configuration pragmas,
6614 -- also appear at the front of this list).
6616 --------------------------
6617 -- 10.1.2 Context_Item --
6618 --------------------------
6620 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6622 -------------------------
6623 -- 10.1.2 With clause --
6624 -------------------------
6626 -- WITH_CLAUSE ::=
6627 -- with library_unit_NAME {,library_unit_NAME};
6629 -- A separate With clause is built for each name, so that we have
6630 -- a Corresponding_Spec field for each with'ed spec. The flags
6631 -- First_Name and Last_Name are used to reconstruct the exact
6632 -- source form. When a list of names appears in one with clause,
6633 -- the first name in the list has First_Name set, and the last
6634 -- has Last_Name set. If the with clause has only one name, then
6635 -- both of the flags First_Name and Last_Name are set in this name.
6637 -- Note: in the case of implicit with's that are installed by the
6638 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6639 -- set to Standard_Location, but it is incorrect to test the Sloc
6640 -- to find out if a with clause is implicit, test the flag instead.
6642 -- N_With_Clause
6643 -- Sloc points to first token of library unit name
6644 -- Withed_Body (Node1-Sem)
6645 -- Name (Node2)
6646 -- Next_Implicit_With (Node3-Sem)
6647 -- Library_Unit (Node4-Sem)
6648 -- Corresponding_Spec (Node5-Sem)
6649 -- First_Name (Flag5) (set to True if first name or only one name)
6650 -- Last_Name (Flag6) (set to True if last name or only one name)
6651 -- Context_Installed (Flag13-Sem)
6652 -- Elaborate_Present (Flag4-Sem)
6653 -- Elaborate_All_Present (Flag14-Sem)
6654 -- Elaborate_All_Desirable (Flag9-Sem)
6655 -- Elaborate_Desirable (Flag11-Sem)
6656 -- Private_Present (Flag15) set if with_clause has private keyword
6657 -- Implicit_With (Flag16-Sem)
6658 -- Implicit_With_From_Instantiation (Flag12-Sem)
6659 -- Limited_Present (Flag17) set if LIMITED is present
6660 -- Limited_View_Installed (Flag18-Sem)
6661 -- Unreferenced_In_Spec (Flag7-Sem)
6662 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6664 -- Note: Limited_Present and Limited_View_Installed are used to support
6665 -- the implementation of Ada 2005 (AI-50217).
6667 -- Similarly, Private_Present is used to support the implementation of
6668 -- Ada 2005 (AI-50262).
6670 -- Note: if the WITH clause refers to a standard library unit, then a
6671 -- limited with clause is changed into a normal with clause, because we
6672 -- are not prepared to deal with limited with in the context of Rtsfind.
6673 -- So in this case, the Limited_Present flag will be False in the final
6674 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6675 -- ASIS the flag will remain set in this situation.
6677 ----------------------
6678 -- With_Type clause --
6679 ----------------------
6681 -- This is a GNAT extension, used to implement mutually recursive
6682 -- types declared in different packages.
6684 -- Note: this is now obsolete. The functionality of this construct
6685 -- is now implemented by the Ada 2005 limited_with_clause.
6687 ---------------------
6688 -- 10.2 Body stub --
6689 ---------------------
6691 -- BODY_STUB ::=
6692 -- SUBPROGRAM_BODY_STUB
6693 -- | PACKAGE_BODY_STUB
6694 -- | TASK_BODY_STUB
6695 -- | PROTECTED_BODY_STUB
6697 ----------------------------------
6698 -- 10.1.3 Subprogram Body Stub --
6699 ----------------------------------
6701 -- SUBPROGRAM_BODY_STUB ::=
6702 -- SUBPROGRAM_SPECIFICATION is separate
6703 -- [ASPECT_SPECIFICATION];
6705 -- N_Subprogram_Body_Stub
6706 -- Sloc points to FUNCTION or PROCEDURE
6707 -- Specification (Node1)
6708 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6709 -- Library_Unit (Node4-Sem) points to the subunit
6710 -- Corresponding_Body (Node5-Sem)
6712 -------------------------------
6713 -- 10.1.3 Package Body Stub --
6714 -------------------------------
6716 -- PACKAGE_BODY_STUB ::=
6717 -- package body DEFINING_IDENTIFIER is separate
6718 -- [ASPECT_SPECIFICATION];
6720 -- N_Package_Body_Stub
6721 -- Sloc points to PACKAGE
6722 -- Defining_Identifier (Node1)
6723 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6724 -- Library_Unit (Node4-Sem) points to the subunit
6725 -- Corresponding_Body (Node5-Sem)
6727 ----------------------------
6728 -- 10.1.3 Task Body Stub --
6729 ----------------------------
6731 -- TASK_BODY_STUB ::=
6732 -- task body DEFINING_IDENTIFIER is separate
6733 -- [ASPECT_SPECIFICATION];
6735 -- N_Task_Body_Stub
6736 -- Sloc points to TASK
6737 -- Defining_Identifier (Node1)
6738 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6739 -- Library_Unit (Node4-Sem) points to the subunit
6740 -- Corresponding_Body (Node5-Sem)
6742 ---------------------------------
6743 -- 10.1.3 Protected Body Stub --
6744 ---------------------------------
6746 -- PROTECTED_BODY_STUB ::=
6747 -- protected body DEFINING_IDENTIFIER is separate
6748 -- [ASPECT_SPECIFICATION];
6750 -- Note: protected body stubs are not allowed in Ada 83 mode
6752 -- N_Protected_Body_Stub
6753 -- Sloc points to PROTECTED
6754 -- Defining_Identifier (Node1)
6755 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6756 -- Library_Unit (Node4-Sem) points to the subunit
6757 -- Corresponding_Body (Node5-Sem)
6759 ---------------------
6760 -- 10.1.3 Subunit --
6761 ---------------------
6763 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6765 -- N_Subunit
6766 -- Sloc points to SEPARATE
6767 -- Name (Node2) is the name of the parent unit
6768 -- Proper_Body (Node1) is the subunit body
6769 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6771 ---------------------------------
6772 -- 11.1 Exception Declaration --
6773 ---------------------------------
6775 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6776 -- [ASPECT_SPECIFICATIONS];
6778 -- For consistency with object declarations etc., the parser converts
6779 -- the case of multiple identifiers being declared to a series of
6780 -- declarations in which the expression is copied, using the More_Ids
6781 -- and Prev_Ids flags to remember the source form as described in the
6782 -- section on "Handling of Defining Identifier Lists".
6784 -- N_Exception_Declaration
6785 -- Sloc points to EXCEPTION
6786 -- Defining_Identifier (Node1)
6787 -- Expression (Node3-Sem)
6788 -- Renaming_Exception (Node2-Sem)
6789 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6790 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6792 ------------------------------------------
6793 -- 11.2 Handled Sequence Of Statements --
6794 ------------------------------------------
6796 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6797 -- SEQUENCE_OF_STATEMENTS
6798 -- [exception
6799 -- EXCEPTION_HANDLER
6800 -- {EXCEPTION_HANDLER}]
6801 -- [at end
6802 -- cleanup_procedure_call (param, param, param, ...);]
6804 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6805 -- used only internally currently, but is considered to be syntactic.
6806 -- At the moment, the only cleanup action allowed is a single call to
6807 -- a parameterless procedure, and the Identifier field of the node is
6808 -- the procedure to be called. The cleanup action occurs whenever the
6809 -- sequence of statements is left for any reason. The possible reasons
6810 -- are:
6811 -- 1. reaching the end of the sequence
6812 -- 2. exit, return, or goto
6813 -- 3. exception or abort
6814 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6815 -- entirely in the back end. In this case, a handled sequence of
6816 -- statements with an "at end" cannot also have exception handlers.
6817 -- For other back ends, such as gcc with front-end SJLJ, the
6818 -- implementation is split between the front end and back end; the front
6819 -- end implements 3, and the back end implements 1 and 2. In this case,
6820 -- if there is an "at end", the front end inserts the appropriate
6821 -- exception handler, and this handler takes precedence over "at end"
6822 -- in case of exception.
6824 -- The inserted exception handler is of the form:
6826 -- when all others =>
6827 -- cleanup;
6828 -- raise;
6830 -- where cleanup is the procedure to be called. The reason we do this is
6831 -- so that the front end can handle the necessary entries in the
6832 -- exception tables, and other exception handler actions required as
6833 -- part of the normal handling for exception handlers.
6835 -- The AT END cleanup handler protects only the sequence of statements
6836 -- (not the associated declarations of the parent), just like exception
6837 -- handlers. The big difference is that the cleanup procedure is called
6838 -- on either a normal or an abnormal exit from the statement sequence.
6840 -- Note: the list of Exception_Handlers can contain pragmas as well
6841 -- as actual handlers. In practice these pragmas can only occur at
6842 -- the start of the list, since any pragmas occurring later on will
6843 -- be included in the statement list of the corresponding handler.
6845 -- Note: although in the Ada syntax, the sequence of statements in
6846 -- a handled sequence of statements can only contain statements, we
6847 -- allow free mixing of declarations and statements in the resulting
6848 -- expanded tree. This is for example used to deal with the case of
6849 -- a cleanup procedure that must handle declarations as well as the
6850 -- statements of a block.
6852 -- Note: the cleanup_procedure_call does not go through the common
6853 -- processing for calls, which in particular means that it will not be
6854 -- automatically inlined in all cases, even though the procedure to be
6855 -- called is marked inline. More specifically, if the procedure comes
6856 -- from another unit than the main source unit, for example a run-time
6857 -- unit, then it needs to be manually added to the list of bodies to be
6858 -- inlined by invoking Add_Inlined_Body on it.
6860 -- N_Handled_Sequence_Of_Statements
6861 -- Sloc points to first token of first statement
6862 -- Statements (List3)
6863 -- End_Label (Node4) (set to Empty if expander generated)
6864 -- Exception_Handlers (List5) (set to No_List if none present)
6865 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6866 -- First_Real_Statement (Node2-Sem)
6868 -- Note: the parent always contains a Declarations field which contains
6869 -- declarations associated with the handled sequence of statements. This
6870 -- is true even in the case of an accept statement (see description of
6871 -- the N_Accept_Statement node).
6873 -- End_Label refers to the containing construct
6875 -----------------------------
6876 -- 11.2 Exception Handler --
6877 -----------------------------
6879 -- EXCEPTION_HANDLER ::=
6880 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6881 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6882 -- SEQUENCE_OF_STATEMENTS
6884 -- Note: choice parameter specification is not allowed in Ada 83 mode
6886 -- N_Exception_Handler
6887 -- Sloc points to WHEN
6888 -- Choice_Parameter (Node2) (set to Empty if not present)
6889 -- Exception_Choices (List4)
6890 -- Statements (List3)
6891 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6892 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6893 -- Local_Raise_Not_OK (Flag7-Sem)
6894 -- Has_Local_Raise (Flag8-Sem)
6896 ------------------------------------------
6897 -- 11.2 Choice parameter specification --
6898 ------------------------------------------
6900 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6902 ----------------------------
6903 -- 11.2 Exception Choice --
6904 ----------------------------
6906 -- EXCEPTION_CHOICE ::= exception_NAME | others
6908 -- Except in the case of OTHERS, no explicit node appears in the tree
6909 -- for exception choice. Instead the exception name appears directly.
6910 -- An OTHERS choice is represented by a N_Others_Choice node (see
6911 -- section 3.8.1.
6913 -- Note: for the exception choice created for an at end handler, the
6914 -- exception choice is an N_Others_Choice node with All_Others set.
6916 ---------------------------
6917 -- 11.3 Raise Statement --
6918 ---------------------------
6920 -- RAISE_STATEMENT ::= raise [exception_NAME];
6922 -- In Ada 2005, we have
6924 -- RAISE_STATEMENT ::=
6925 -- raise; | raise exception_NAME [with string_EXPRESSION];
6927 -- N_Raise_Statement
6928 -- Sloc points to RAISE
6929 -- Name (Node2) (set to Empty if no exception name present)
6930 -- Expression (Node3) (set to Empty if no expression present)
6931 -- From_At_End (Flag4-Sem)
6933 ----------------------------
6934 -- 11.3 Raise Expression --
6935 ----------------------------
6937 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6939 -- N_Raise_Expression
6940 -- Sloc points to RAISE
6941 -- Name (Node2) (always present)
6942 -- Expression (Node3) (set to Empty if no expression present)
6943 -- Convert_To_Return_False (Flag13-Sem)
6944 -- plus fields for expression
6946 -------------------------------
6947 -- 12.1 Generic Declaration --
6948 -------------------------------
6950 -- GENERIC_DECLARATION ::=
6951 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6953 ------------------------------------------
6954 -- 12.1 Generic Subprogram Declaration --
6955 ------------------------------------------
6957 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6958 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6959 -- [ASPECT_SPECIFICATIONS];
6961 -- Note: Generic_Formal_Declarations can include pragmas
6963 -- N_Generic_Subprogram_Declaration
6964 -- Sloc points to GENERIC
6965 -- Specification (Node1) subprogram specification
6966 -- Corresponding_Body (Node5-Sem)
6967 -- Generic_Formal_Declarations (List2) from generic formal part
6968 -- Parent_Spec (Node4-Sem)
6970 ---------------------------------------
6971 -- 12.1 Generic Package Declaration --
6972 ---------------------------------------
6974 -- GENERIC_PACKAGE_DECLARATION ::=
6975 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6976 -- [ASPECT_SPECIFICATIONS];
6978 -- Note: when we do generics right, the Activation_Chain_Entity entry
6979 -- for this node can be removed (since the expander won't see generic
6980 -- units any more)???.
6982 -- Note: Generic_Formal_Declarations can include pragmas
6984 -- N_Generic_Package_Declaration
6985 -- Sloc points to GENERIC
6986 -- Specification (Node1) package specification
6987 -- Corresponding_Body (Node5-Sem)
6988 -- Generic_Formal_Declarations (List2) from generic formal part
6989 -- Parent_Spec (Node4-Sem)
6990 -- Activation_Chain_Entity (Node3-Sem)
6992 -------------------------------
6993 -- 12.1 Generic Formal Part --
6994 -------------------------------
6996 -- GENERIC_FORMAL_PART ::=
6997 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6999 ------------------------------------------------
7000 -- 12.1 Generic Formal Parameter Declaration --
7001 ------------------------------------------------
7003 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
7004 -- FORMAL_OBJECT_DECLARATION
7005 -- | FORMAL_TYPE_DECLARATION
7006 -- | FORMAL_SUBPROGRAM_DECLARATION
7007 -- | FORMAL_PACKAGE_DECLARATION
7009 ---------------------------------
7010 -- 12.3 Generic Instantiation --
7011 ---------------------------------
7013 -- GENERIC_INSTANTIATION ::=
7014 -- package DEFINING_PROGRAM_UNIT_NAME is
7015 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
7016 -- [ASPECT_SPECIFICATIONS];
7017 -- | [[not] overriding]
7018 -- procedure DEFINING_PROGRAM_UNIT_NAME is
7019 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
7020 -- [ASPECT_SPECIFICATIONS];
7021 -- | [[not] overriding]
7022 -- function DEFINING_DESIGNATOR is
7023 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
7024 -- [ASPECT_SPECIFICATIONS];
7026 -- N_Package_Instantiation
7027 -- Sloc points to PACKAGE
7028 -- Defining_Unit_Name (Node1)
7029 -- Name (Node2)
7030 -- Generic_Associations (List3) (set to No_List if no
7031 -- generic actual part)
7032 -- Parent_Spec (Node4-Sem)
7033 -- Instance_Spec (Node5-Sem)
7034 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7035 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7036 -- Is_Declaration_Level_Node (Flag5-Sem)
7037 -- Is_Recorded_Scenario (Flag6-Sem)
7038 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7040 -- N_Procedure_Instantiation
7041 -- Sloc points to PROCEDURE
7042 -- Defining_Unit_Name (Node1)
7043 -- Name (Node2)
7044 -- Parent_Spec (Node4-Sem)
7045 -- Generic_Associations (List3) (set to No_List if no
7046 -- generic actual part)
7047 -- Instance_Spec (Node5-Sem)
7048 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7049 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7050 -- Is_Declaration_Level_Node (Flag5-Sem)
7051 -- Is_Recorded_Scenario (Flag6-Sem)
7052 -- Must_Override (Flag14) set if overriding indicator present
7053 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7054 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7056 -- N_Function_Instantiation
7057 -- Sloc points to FUNCTION
7058 -- Defining_Unit_Name (Node1)
7059 -- Name (Node2)
7060 -- Generic_Associations (List3) (set to No_List if no
7061 -- generic actual part)
7062 -- Parent_Spec (Node4-Sem)
7063 -- Instance_Spec (Node5-Sem)
7064 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7065 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7066 -- Is_Declaration_Level_Node (Flag5-Sem)
7067 -- Is_Recorded_Scenario (Flag6-Sem)
7068 -- Must_Override (Flag14) set if overriding indicator present
7069 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7070 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7072 -- Note: overriding indicator is an Ada 2005 feature
7074 -------------------------------
7075 -- 12.3 Generic Actual Part --
7076 -------------------------------
7078 -- GENERIC_ACTUAL_PART ::=
7079 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
7081 -------------------------------
7082 -- 12.3 Generic Association --
7083 -------------------------------
7085 -- GENERIC_ASSOCIATION ::=
7086 -- [generic_formal_parameter_SELECTOR_NAME =>]
7088 -- Note: unlike the procedure call case, a generic association node
7089 -- is generated for every association, even if no formal parameter
7090 -- selector name is present. In this case the parser will leave the
7091 -- Selector_Name field set to Empty, to be filled in later by the
7092 -- semantic pass.
7094 -- In Ada 2005, a formal may be associated with a box, if the
7095 -- association is part of the list of actuals for a formal package.
7096 -- If the association is given by OTHERS => <>, the association is
7097 -- an N_Others_Choice.
7099 -- N_Generic_Association
7100 -- Sloc points to first token of generic association
7101 -- Selector_Name (Node2) (set to Empty if no formal
7102 -- parameter selector name)
7103 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
7104 -- Box_Present (Flag15) (for formal_package associations with a box)
7106 ---------------------------------------------
7107 -- 12.3 Explicit Generic Actual Parameter --
7108 ---------------------------------------------
7110 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
7111 -- EXPRESSION | variable_NAME | subprogram_NAME
7112 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7114 -------------------------------------
7115 -- 12.4 Formal Object Declaration --
7116 -------------------------------------
7118 -- FORMAL_OBJECT_DECLARATION ::=
7119 -- DEFINING_IDENTIFIER_LIST :
7120 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7121 -- [ASPECT_SPECIFICATIONS];
7122 -- | DEFINING_IDENTIFIER_LIST :
7123 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7124 -- [ASPECT_SPECIFICATIONS];
7126 -- Although the syntax allows multiple identifiers in the list, the
7127 -- semantics is as though successive declarations were given with
7128 -- identical type definition and expression components. To simplify
7129 -- semantic processing, the parser represents a multiple declaration
7130 -- case as a sequence of single declarations, using the More_Ids and
7131 -- Prev_Ids flags to preserve the original source form as described
7132 -- in the section on "Handling of Defining Identifier Lists".
7134 -- N_Formal_Object_Declaration
7135 -- Sloc points to first identifier
7136 -- Defining_Identifier (Node1)
7137 -- In_Present (Flag15)
7138 -- Out_Present (Flag17)
7139 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7140 -- Subtype_Mark (Node4) (set to Empty if not present)
7141 -- Access_Definition (Node3) (set to Empty if not present)
7142 -- Default_Expression (Node5) (set to Empty if no default expression)
7143 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7144 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7146 -----------------------------------
7147 -- 12.5 Formal Type Declaration --
7148 -----------------------------------
7150 -- FORMAL_TYPE_DECLARATION ::=
7151 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7152 -- is FORMAL_TYPE_DEFINITION
7153 -- [ASPECT_SPECIFICATIONS];
7154 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7156 -- N_Formal_Type_Declaration
7157 -- Sloc points to TYPE
7158 -- Defining_Identifier (Node1)
7159 -- Formal_Type_Definition (Node3)
7160 -- Discriminant_Specifications (List4) (set to No_List if no
7161 -- discriminant part)
7162 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7164 ----------------------------------
7165 -- 12.5 Formal type definition --
7166 ----------------------------------
7168 -- FORMAL_TYPE_DEFINITION ::=
7169 -- FORMAL_PRIVATE_TYPE_DEFINITION
7170 -- | FORMAL_DERIVED_TYPE_DEFINITION
7171 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7172 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7173 -- | FORMAL_MODULAR_TYPE_DEFINITION
7174 -- | FORMAL_FLOATING_POINT_DEFINITION
7175 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7176 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7177 -- | FORMAL_ARRAY_TYPE_DEFINITION
7178 -- | FORMAL_ACCESS_TYPE_DEFINITION
7179 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7180 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7182 -- The Ada 2012 syntax introduces two new non-terminals:
7183 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7184 -- the latter category. Here we introduce an incomplete type definition
7185 -- in order to preserve as much as possible the existing structure.
7187 ---------------------------------------------
7188 -- 12.5.1 Formal Private Type Definition --
7189 ---------------------------------------------
7191 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7192 -- [[abstract] tagged] [limited] private
7194 -- Note: TAGGED is not allowed in Ada 83 mode
7196 -- N_Formal_Private_Type_Definition
7197 -- Sloc points to PRIVATE
7198 -- Uninitialized_Variable (Node3-Sem)
7199 -- Abstract_Present (Flag4)
7200 -- Tagged_Present (Flag15)
7201 -- Limited_Present (Flag17)
7203 --------------------------------------------
7204 -- 12.5.1 Formal Derived Type Definition --
7205 --------------------------------------------
7207 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7208 -- [abstract] [limited | synchronized]
7209 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7210 -- Note: this construct is not allowed in Ada 83 mode
7212 -- N_Formal_Derived_Type_Definition
7213 -- Sloc points to NEW
7214 -- Subtype_Mark (Node4)
7215 -- Private_Present (Flag15)
7216 -- Abstract_Present (Flag4)
7217 -- Limited_Present (Flag17)
7218 -- Synchronized_Present (Flag7)
7219 -- Interface_List (List2) (set to No_List if none)
7221 -----------------------------------------------
7222 -- 12.5.1 Formal Incomplete Type Definition --
7223 -----------------------------------------------
7225 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7227 -- N_Formal_Incomplete_Type_Definition
7228 -- Sloc points to identifier of parent
7229 -- Tagged_Present (Flag15)
7231 ---------------------------------------------
7232 -- 12.5.2 Formal Discrete Type Definition --
7233 ---------------------------------------------
7235 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7237 -- N_Formal_Discrete_Type_Definition
7238 -- Sloc points to (
7240 ---------------------------------------------------
7241 -- 12.5.2 Formal Signed Integer Type Definition --
7242 ---------------------------------------------------
7244 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7246 -- N_Formal_Signed_Integer_Type_Definition
7247 -- Sloc points to RANGE
7249 --------------------------------------------
7250 -- 12.5.2 Formal Modular Type Definition --
7251 --------------------------------------------
7253 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7255 -- N_Formal_Modular_Type_Definition
7256 -- Sloc points to MOD
7258 ----------------------------------------------
7259 -- 12.5.2 Formal Floating Point Definition --
7260 ----------------------------------------------
7262 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7264 -- N_Formal_Floating_Point_Definition
7265 -- Sloc points to DIGITS
7267 ----------------------------------------------------
7268 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7269 ----------------------------------------------------
7271 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7273 -- N_Formal_Ordinary_Fixed_Point_Definition
7274 -- Sloc points to DELTA
7276 ---------------------------------------------------
7277 -- 12.5.2 Formal Decimal Fixed Point Definition --
7278 ---------------------------------------------------
7280 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7282 -- Note: formal decimal fixed point definition not allowed in Ada 83
7284 -- N_Formal_Decimal_Fixed_Point_Definition
7285 -- Sloc points to DELTA
7287 ------------------------------------------
7288 -- 12.5.3 Formal Array Type Definition --
7289 ------------------------------------------
7291 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7293 -------------------------------------------
7294 -- 12.5.4 Formal Access Type Definition --
7295 -------------------------------------------
7297 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7299 ----------------------------------------------
7300 -- 12.5.5 Formal Interface Type Definition --
7301 ----------------------------------------------
7303 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7305 -----------------------------------------
7306 -- 12.6 Formal Subprogram Declaration --
7307 -----------------------------------------
7309 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7310 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7311 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7313 --------------------------------------------------
7314 -- 12.6 Formal Concrete Subprogram Declaration --
7315 --------------------------------------------------
7317 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7318 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7319 -- [ASPECT_SPECIFICATIONS];
7321 -- N_Formal_Concrete_Subprogram_Declaration
7322 -- Sloc points to WITH
7323 -- Specification (Node1)
7324 -- Default_Name (Node2) (set to Empty if no subprogram default)
7325 -- Box_Present (Flag15)
7327 -- Note: if no subprogram default is present, then Name is set
7328 -- to Empty, and Box_Present is False.
7330 --------------------------------------------------
7331 -- 12.6 Formal Abstract Subprogram Declaration --
7332 --------------------------------------------------
7334 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7335 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7336 -- [ASPECT_SPECIFICATIONS];
7338 -- N_Formal_Abstract_Subprogram_Declaration
7339 -- Sloc points to WITH
7340 -- Specification (Node1)
7341 -- Default_Name (Node2) (set to Empty if no subprogram default)
7342 -- Box_Present (Flag15)
7344 -- Note: if no subprogram default is present, then Name is set
7345 -- to Empty, and Box_Present is False.
7347 ------------------------------
7348 -- 12.6 Subprogram Default --
7349 ------------------------------
7351 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7353 -- There is no separate node in the tree for a subprogram default.
7354 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7355 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7356 -- default name or box indication, as needed.
7358 ------------------------
7359 -- 12.6 Default Name --
7360 ------------------------
7362 -- DEFAULT_NAME ::= NAME
7364 --------------------------------------
7365 -- 12.7 Formal Package Declaration --
7366 --------------------------------------
7368 -- FORMAL_PACKAGE_DECLARATION ::=
7369 -- with package DEFINING_IDENTIFIER
7370 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7371 -- [ASPECT_SPECIFICATIONS];
7373 -- Note: formal package declarations not allowed in Ada 83 mode
7375 -- N_Formal_Package_Declaration
7376 -- Sloc points to WITH
7377 -- Defining_Identifier (Node1)
7378 -- Name (Node2)
7379 -- Generic_Associations (List3) (set to No_List if (<>) case or
7380 -- empty generic actual part)
7381 -- Box_Present (Flag15)
7382 -- Instance_Spec (Node5-Sem)
7384 --------------------------------------
7385 -- 12.7 Formal Package Actual Part --
7386 --------------------------------------
7388 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7389 -- ([OTHERS] => <>)
7390 -- | [GENERIC_ACTUAL_PART]
7391 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7393 -- FORMAL_PACKAGE_ASSOCIATION ::=
7394 -- GENERIC_ASSOCIATION
7395 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7397 -- There is no explicit node in the tree for a formal package actual
7398 -- part. Instead the information appears in the parent node (i.e. the
7399 -- formal package declaration node itself).
7401 -- There is no explicit node for a formal package association. All of
7402 -- them are represented either by a generic association, possibly with
7403 -- Box_Present, or by an N_Others_Choice.
7405 ---------------------------------
7406 -- 13.1 Representation clause --
7407 ---------------------------------
7409 -- REPRESENTATION_CLAUSE ::=
7410 -- ATTRIBUTE_DEFINITION_CLAUSE
7411 -- | ENUMERATION_REPRESENTATION_CLAUSE
7412 -- | RECORD_REPRESENTATION_CLAUSE
7413 -- | AT_CLAUSE
7415 ----------------------
7416 -- 13.1 Local Name --
7417 ----------------------
7419 -- LOCAL_NAME :=
7420 -- DIRECT_NAME
7421 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7422 -- | library_unit_NAME
7424 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7425 -- as an attribute reference, which has essentially the same form.
7427 ---------------------------------------
7428 -- 13.3 Attribute definition clause --
7429 ---------------------------------------
7431 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7432 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7433 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7435 -- In Ada 83, the expression must be a simple expression and the
7436 -- local name must be a direct name.
7438 -- Note: the only attribute definition clause that is processed by
7439 -- gigi is an address clause. For all other cases, the information
7440 -- is extracted by the front end and either results in setting entity
7441 -- information, e.g. Esize for the Size clause, or in appropriate
7442 -- expansion actions (e.g. in the case of Storage_Size).
7444 -- For an address clause, Gigi constructs the appropriate addressing
7445 -- code. It also ensures that no aliasing optimizations are made
7446 -- for the object for which the address clause appears.
7448 -- Note: for an address clause used to achieve an overlay:
7450 -- A : Integer;
7451 -- B : Integer;
7452 -- for B'Address use A'Address;
7454 -- the above rule means that Gigi will ensure that no optimizations
7455 -- will be made for B that would violate the implementation advice
7456 -- of RM 13.3(19). However, this advice applies only to B and not
7457 -- to A, which seems unfortunate. The GNAT front end will mark the
7458 -- object A as volatile to also prevent unwanted optimization
7459 -- assumptions based on no aliasing being made for B.
7461 -- N_Attribute_Definition_Clause
7462 -- Sloc points to FOR
7463 -- Name (Node2) the local name
7464 -- Chars (Name1) the identifier name from the attribute designator
7465 -- Expression (Node3) the expression or name
7466 -- Entity (Node4-Sem)
7467 -- Next_Rep_Item (Node5-Sem)
7468 -- From_At_Mod (Flag4-Sem)
7469 -- Check_Address_Alignment (Flag11-Sem)
7470 -- From_Aspect_Specification (Flag13-Sem)
7471 -- Is_Delayed_Aspect (Flag14-Sem)
7472 -- Address_Warning_Posted (Flag18-Sem)
7474 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7475 -- aspect name, and Entity is resolved already to reference the entity
7476 -- to which the aspect applies.
7478 -----------------------------------
7479 -- 13.3.1 Aspect Specifications --
7480 -----------------------------------
7482 -- We modify the RM grammar here, the RM grammar is:
7484 -- ASPECT_SPECIFICATION ::=
7485 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7486 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7488 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7490 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7492 -- That's inconvenient, since there is no non-terminal name for a single
7493 -- entry in the list of aspects. So we use this grammar instead:
7495 -- ASPECT_SPECIFICATIONS ::=
7496 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7498 -- ASPECT_SPECIFICATION =>
7499 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7501 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7503 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7505 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7506 -- aggregate with the elements of the aggregate corresponding to the
7507 -- successive arguments of the corresponding pragma.
7509 -- See separate package Aspects for details on the incorporation of
7510 -- these nodes into the tree, and how aspect specifications for a given
7511 -- declaration node are associated with that node.
7513 -- N_Aspect_Specification
7514 -- Sloc points to aspect identifier
7515 -- Identifier (Node1) aspect identifier
7516 -- Aspect_Rep_Item (Node2-Sem)
7517 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7518 -- Entity (Node4-Sem) entity to which the aspect applies
7519 -- Next_Rep_Item (Node5-Sem)
7520 -- Class_Present (Flag6) Set if 'Class present
7521 -- Is_Ignored (Flag9-Sem)
7522 -- Is_Checked (Flag11-Sem)
7523 -- Is_Delayed_Aspect (Flag14-Sem)
7524 -- Is_Disabled (Flag15-Sem)
7525 -- Is_Boolean_Aspect (Flag16-Sem)
7526 -- Split_PPC (Flag17) Set if split pre/post attribute
7528 -- Note: Aspect_Specification is an Ada 2012 feature
7530 -- Note: The Identifier serves to identify the aspect involved (it
7531 -- is the aspect whose name corresponds to the Chars field). This
7532 -- means that the other fields of this identifier are unused, and
7533 -- in particular we use the Entity field of this identifier to save
7534 -- a copy of the expression for visibility analysis, see spec of
7535 -- Sem_Ch13 for full details of this usage.
7537 -- In the case of aspects of the form xxx'Class, the aspect identifier
7538 -- is for xxx, and Class_Present is set to True.
7540 -- Note: When a Pre or Post aspect specification is processed, it is
7541 -- broken into AND THEN sections. The left most section has Split_PPC
7542 -- set to False, indicating that it is the original specification (e.g.
7543 -- for posting errors). For the other sections, Split_PPC is set True.
7545 ---------------------------------------------
7546 -- 13.4 Enumeration representation clause --
7547 ---------------------------------------------
7549 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7550 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7552 -- In Ada 83, the name must be a direct name
7554 -- N_Enumeration_Representation_Clause
7555 -- Sloc points to FOR
7556 -- Identifier (Node1) direct name
7557 -- Array_Aggregate (Node3)
7558 -- Next_Rep_Item (Node5-Sem)
7560 ---------------------------------
7561 -- 13.4 Enumeration aggregate --
7562 ---------------------------------
7564 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7566 ------------------------------------------
7567 -- 13.5.1 Record representation clause --
7568 ------------------------------------------
7570 -- RECORD_REPRESENTATION_CLAUSE ::=
7571 -- for first_subtype_LOCAL_NAME use
7572 -- record [MOD_CLAUSE]
7573 -- {COMPONENT_CLAUSE}
7574 -- end record;
7576 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7577 -- replaced by a corresponding Alignment attribute definition clause).
7579 -- Note: Component_Clauses can include pragmas
7581 -- N_Record_Representation_Clause
7582 -- Sloc points to FOR
7583 -- Identifier (Node1) direct name
7584 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7585 -- Component_Clauses (List3)
7586 -- Next_Rep_Item (Node5-Sem)
7588 ------------------------------
7589 -- 13.5.1 Component clause --
7590 ------------------------------
7592 -- COMPONENT_CLAUSE ::=
7593 -- component_LOCAL_NAME at POSITION
7594 -- range FIRST_BIT .. LAST_BIT;
7596 -- N_Component_Clause
7597 -- Sloc points to AT
7598 -- Component_Name (Node1) points to Name or Attribute_Reference
7599 -- Position (Node2)
7600 -- First_Bit (Node3)
7601 -- Last_Bit (Node4)
7603 ----------------------
7604 -- 13.5.1 Position --
7605 ----------------------
7607 -- POSITION ::= static_EXPRESSION
7609 -----------------------
7610 -- 13.5.1 First_Bit --
7611 -----------------------
7613 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7615 ----------------------
7616 -- 13.5.1 Last_Bit --
7617 ----------------------
7619 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7621 --------------------------
7622 -- 13.8 Code statement --
7623 --------------------------
7625 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7627 -- Note: in GNAT, the qualified expression has the form
7629 -- Asm_Insn'(Asm (...));
7631 -- See package System.Machine_Code in file s-maccod.ads for details on
7632 -- the allowed parameters to Asm. There are two ways this node can
7633 -- arise, as a code statement, in which case the expression is the
7634 -- qualified expression, or as a result of the expansion of an intrinsic
7635 -- call to the Asm or Asm_Input procedure.
7637 -- N_Code_Statement
7638 -- Sloc points to first token of the expression
7639 -- Expression (Node3)
7641 -- Note: package Exp_Code contains an abstract functional interface
7642 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7644 ------------------------
7645 -- 13.12 Restriction --
7646 ------------------------
7648 -- RESTRICTION ::=
7649 -- restriction_IDENTIFIER
7650 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7652 -- There is no explicit node for restrictions. Instead the restriction
7653 -- appears in normal pragma syntax as a pragma argument association,
7654 -- which has the same syntactic form.
7656 --------------------------
7657 -- B.2 Shift Operators --
7658 --------------------------
7660 -- Calls to the intrinsic shift functions are converted to one of
7661 -- the following shift nodes, which have the form of normal binary
7662 -- operator names. Note that for a given shift operation, one node
7663 -- covers all possible types, as for normal operators.
7665 -- Note: it is perfectly permissible for the expander to generate
7666 -- shift operation nodes directly, in which case they will be analyzed
7667 -- and parsed in the usual manner.
7669 -- Sprint syntax: shift-function-name!(expr, count)
7671 -- Note: the Left_Opnd field holds the first argument (the value to
7672 -- be shifted). The Right_Opnd field holds the second argument (the
7673 -- shift count). The Chars field is the name of the intrinsic function.
7675 -- N_Op_Rotate_Left
7676 -- Sloc points to the function name
7677 -- plus fields for binary operator
7678 -- plus fields for expression
7679 -- Shift_Count_OK (Flag4-Sem)
7681 -- N_Op_Rotate_Right
7682 -- Sloc points to the function name
7683 -- plus fields for binary operator
7684 -- plus fields for expression
7685 -- Shift_Count_OK (Flag4-Sem)
7687 -- N_Op_Shift_Left
7688 -- Sloc points to the function name
7689 -- plus fields for binary operator
7690 -- plus fields for expression
7691 -- Shift_Count_OK (Flag4-Sem)
7693 -- N_Op_Shift_Right_Arithmetic
7694 -- Sloc points to the function name
7695 -- plus fields for binary operator
7696 -- plus fields for expression
7697 -- Shift_Count_OK (Flag4-Sem)
7699 -- N_Op_Shift_Right
7700 -- Sloc points to the function name
7701 -- plus fields for binary operator
7702 -- plus fields for expression
7703 -- Shift_Count_OK (Flag4-Sem)
7705 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7706 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7708 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7709 -- always less than the word size if Modify_Tree_For_C mode is set.
7711 --------------------------
7712 -- Obsolescent Features --
7713 --------------------------
7715 -- The syntax descriptions and tree nodes for obsolescent features are
7716 -- grouped together, corresponding to their location in appendix I in
7717 -- the RM. However, parsing and semantic analysis for these constructs
7718 -- is located in an appropriate chapter (see individual notes).
7720 ---------------------------
7721 -- J.3 Delta Constraint --
7722 ---------------------------
7724 -- Note: the parse routine for this construct is located in section
7725 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7726 -- where delta constraint logically belongs.
7728 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7730 -- N_Delta_Constraint
7731 -- Sloc points to DELTA
7732 -- Delta_Expression (Node3)
7733 -- Range_Constraint (Node4) (set to Empty if not present)
7735 --------------------
7736 -- J.7 At Clause --
7737 --------------------
7739 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7741 -- Note: the parse routine for this construct is located in Par-Ch13,
7742 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7743 -- belongs if it were not obsolescent.
7745 -- Note: in Ada 83 the expression must be a simple expression
7747 -- Gigi restriction: This node never appears, it is rewritten as an
7748 -- address attribute definition clause.
7750 -- N_At_Clause
7751 -- Sloc points to FOR
7752 -- Identifier (Node1)
7753 -- Expression (Node3)
7755 ---------------------
7756 -- J.8 Mod clause --
7757 ---------------------
7759 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7761 -- Note: the parse routine for this construct is located in Par-Ch13,
7762 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7763 -- belongs if it were not obsolescent.
7765 -- Note: in Ada 83, the expression must be a simple expression
7767 -- Gigi restriction: this node never appears. It is replaced
7768 -- by a corresponding Alignment attribute definition clause.
7770 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7771 -- its name has "clause" in it. This is rather strange, but is quite
7772 -- definitely specified. The pragmas before are collected in the
7773 -- Pragmas_Before field of the mod clause node itself, and pragmas
7774 -- after are simply swallowed up in the list of component clauses.
7776 -- N_Mod_Clause
7777 -- Sloc points to AT
7778 -- Expression (Node3)
7779 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7781 --------------------
7782 -- Semantic Nodes --
7783 --------------------
7785 -- These semantic nodes are used to hold additional semantic information.
7786 -- They are inserted into the tree as a result of semantic processing.
7787 -- Although there are no legitimate source syntax constructions that
7788 -- correspond directly to these nodes, we need a source syntax for the
7789 -- reconstructed tree printed by Sprint, and the node descriptions here
7790 -- show this syntax.
7792 -----------------
7793 -- Call_Marker --
7794 -----------------
7796 -- This node is created during the analysis/resolution of entry calls,
7797 -- requeues, and subprogram calls. It performs several functions:
7799 -- * Call markers provide a uniform model for handling calls by the
7800 -- ABE mechanism, regardless of whether expansion took place.
7802 -- * The call marker captures the target of the related call along
7803 -- with other attributes which are either unavailabe or expensive
7804 -- to recompute once analysis, resolution, and expansion are over.
7806 -- * The call marker aids the ABE Processing phase by signaling the
7807 -- presence of a call in case the original call was transformed by
7808 -- expansion.
7810 -- * The call marker acts as a reference point for the insertion of
7811 -- run-time conditional ABE checks or guaranteed ABE failures.
7813 -- Sprint syntax: #target#
7815 -- The Sprint syntax shown above is not enabled by default
7817 -- N_Call_Marker
7818 -- Sloc points to Sloc of original call
7819 -- Target (Node1-Sem)
7820 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7821 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7822 -- Is_Dispatching_Call (Flag3-Sem)
7823 -- Is_Source_Call (Flag4-Sem)
7824 -- Is_Declaration_Level_Node (Flag5-Sem)
7825 -- Is_Recorded_Scenario (Flag6-Sem)
7826 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7828 ------------------------
7829 -- Compound Statement --
7830 ------------------------
7832 -- This node is created by the analyzer/expander to handle some
7833 -- expansion cases where a sequence of actions needs to be captured
7834 -- within a single node (which acts as a container and allows the
7835 -- entire list of actions to be moved around as a whole) appearing
7836 -- in a sequence of statements.
7838 -- This is the statement counterpart to the expression node
7839 -- N_Expression_With_Actions.
7841 -- The required semantics is that the set of actions is executed in
7842 -- the order in which it appears, as though they appeared by themselves
7843 -- in the enclosing list of declarations of statements. Unlike what
7844 -- happens when using an N_Block_Statement, no new scope is introduced.
7846 -- Note: for the time being, this is used only as a transient
7847 -- representation during expansion, and all compound statement nodes
7848 -- must be exploded back to their constituent statements before handing
7849 -- the tree to the back end.
7851 -- Sprint syntax: do
7852 -- action;
7853 -- action;
7854 -- ...
7855 -- action;
7856 -- end;
7858 -- N_Compound_Statement
7859 -- Actions (List1)
7861 --------------
7862 -- Contract --
7863 --------------
7865 -- This node is used to hold the various parts of an entry, subprogram
7866 -- [body] or package [body] contract, in particular:
7867 -- Abstract states declared by a package declaration
7868 -- Contract cases that apply to a subprogram
7869 -- Dependency relations of inputs and output of a subprogram
7870 -- Global annotations classifying data as input or output
7871 -- Initialization sequences for a package declaration
7872 -- Pre- and postconditions that apply to a subprogram
7874 -- The node appears in an entry and [generic] subprogram [body] entity.
7876 -- Sprint syntax: <none> as the node should not appear in the tree, but
7877 -- only attached to an entry or [generic] subprogram
7878 -- entity.
7880 -- N_Contract
7881 -- Sloc points to the subprogram's name
7882 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7883 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7884 -- Classifications (Node3-Sem) (set to Empty if none)
7885 -- Is_Expanded_Contract (Flag1-Sem)
7887 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7888 -- to pre- and postconditions associated with an entry or a subprogram
7889 -- [body or stub]. The pragmas can either come from source or be the
7890 -- byproduct of aspect expansion. Currently the following pragmas appear
7891 -- in this list:
7892 -- Post
7893 -- Postcondition
7894 -- Pre
7895 -- Precondition
7896 -- Refined_Post
7897 -- The ordering in the list is in LIFO fashion.
7899 -- Note that there might be multiple preconditions or postconditions
7900 -- in this list, either because they come from separate pragmas in the
7901 -- source, or because a Pre (resp. Post) aspect specification has been
7902 -- broken into AND THEN sections. See Split_PPC for details.
7904 -- In GNATprove mode, the inherited classwide pre- and postconditions
7905 -- (suitably specialized for the specific type of the overriding
7906 -- operation) are also in this list.
7908 -- Contract_Test_Cases contains a collection of pragmas that correspond
7909 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7910 -- list is in LIFO fashion.
7912 -- Classifications contains pragmas that either declare, categorize or
7913 -- establish dependencies between subprogram or package inputs and
7914 -- outputs. Currently the following pragmas appear in this list:
7915 -- Abstract_States
7916 -- Async_Readers
7917 -- Async_Writers
7918 -- Constant_After_Elaboration
7919 -- Depends
7920 -- Effective_Reads
7921 -- Effective_Writes
7922 -- Extensions_Visible
7923 -- Global
7924 -- Initial_Condition
7925 -- Initializes
7926 -- Part_Of
7927 -- Refined_Depends
7928 -- Refined_Global
7929 -- Refined_States
7930 -- Volatile_Function
7931 -- The ordering is in LIFO fashion.
7933 -------------------
7934 -- Expanded Name --
7935 -------------------
7937 -- The N_Expanded_Name node is used to represent a selected component
7938 -- name that has been resolved to an expanded name. The semantic phase
7939 -- replaces N_Selected_Component nodes that represent names by the use
7940 -- of this node, leaving the N_Selected_Component node used only when
7941 -- the prefix is a record or protected type.
7943 -- The fields of the N_Expanded_Name node are layed out identically
7944 -- to those of the N_Selected_Component node, allowing conversion of
7945 -- an expanded name node to a selected component node to be done
7946 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7948 -- There is no special sprint syntax for an expanded name
7950 -- N_Expanded_Name
7951 -- Sloc points to the period
7952 -- Chars (Name1) copy of Chars field of selector name
7953 -- Prefix (Node3)
7954 -- Selector_Name (Node2)
7955 -- Entity (Node4-Sem)
7956 -- Associated_Node (Node4-Sem)
7957 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7958 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7959 -- Has_Private_View (Flag11-Sem) set in generic units
7960 -- Redundant_Use (Flag13-Sem)
7961 -- Atomic_Sync_Required (Flag14-Sem)
7962 -- plus fields for expression
7964 -----------------------------
7965 -- Expression With Actions --
7966 -----------------------------
7968 -- This node is created by the analyzer/expander to handle some
7969 -- expansion cases, notably short-circuit forms where there are
7970 -- actions associated with the right-hand side operand.
7972 -- The N_Expression_With_Actions node represents an expression with
7973 -- an associated set of actions (which are executable statements and
7974 -- declarations, as might occur in a handled statement sequence).
7976 -- The required semantics is that the set of actions is executed in
7977 -- the order in which it appears just before the expression is
7978 -- evaluated (and these actions must only be executed if the value
7979 -- of the expression is evaluated). The node is considered to be
7980 -- a subexpression, whose value is the value of the Expression after
7981 -- executing all the actions.
7983 -- If the actions contain declarations, then these declarations may
7984 -- be referenced within the expression. However note that there is
7985 -- no proper scope associated with the expression-with-action, so the
7986 -- back-end will elaborate them in the context of the enclosing scope.
7988 -- Sprint syntax: do
7989 -- action;
7990 -- action;
7991 -- ...
7992 -- action;
7993 -- in expression end
7995 -- N_Expression_With_Actions
7996 -- Actions (List1)
7997 -- Expression (Node3)
7998 -- plus fields for expression
8000 -- Note: In the final generated tree presented to the code generator,
8001 -- the actions list is always non-null, since there is no point in this
8002 -- node if the actions are Empty. During semantic analysis there are
8003 -- cases where it is convenient to temporarily generate an empty actions
8004 -- list. This arises in cases where we create such an empty actions
8005 -- list, and it may or may not end up being a place where additional
8006 -- actions are inserted. The expander removes such empty cases after
8007 -- the expression of the node is fully analyzed and expanded, at which
8008 -- point it is safe to remove it, since no more actions can be inserted.
8010 -- Note: In Modify_Tree_For_C, we never generate any declarations in
8011 -- the action list, which can contain only non-declarative statements.
8013 --------------------
8014 -- Free Statement --
8015 --------------------
8017 -- The N_Free_Statement node is generated as a result of a call to an
8018 -- instantiation of Unchecked_Deallocation. The instantiation of this
8019 -- generic is handled specially and generates this node directly.
8021 -- Sprint syntax: free expression
8023 -- N_Free_Statement
8024 -- Sloc is copied from the unchecked deallocation call
8025 -- Expression (Node3) argument to unchecked deallocation call
8026 -- Storage_Pool (Node1-Sem)
8027 -- Procedure_To_Call (Node2-Sem)
8028 -- Actual_Designated_Subtype (Node4-Sem)
8030 -- Note: in the case where a debug source file is generated, the Sloc
8031 -- for this node points to the FREE keyword in the Sprint file output.
8033 -------------------
8034 -- Freeze Entity --
8035 -------------------
8037 -- This node marks the point in a declarative part at which an entity
8038 -- declared therein becomes frozen. The expander places initialization
8039 -- procedures for types at those points. Gigi uses the freezing point
8040 -- to elaborate entities that may depend on previous private types.
8042 -- See the section in Einfo "Delayed Freezing and Elaboration" for
8043 -- a full description of the use of this node.
8045 -- The Entity field points back to the entity for the type (whose
8046 -- Freeze_Node field points back to this freeze node).
8048 -- The Actions field contains a list of declarations and statements
8049 -- generated by the expander which are associated with the freeze
8050 -- node, and are elaborated as though the freeze node were replaced
8051 -- by this sequence of actions.
8053 -- Note: the Sloc field in the freeze node references a construct
8054 -- associated with the freezing point. This is used for posting
8055 -- messages in some error/warning situations, e.g. the case where
8056 -- a primitive operation of a tagged type is declared too late.
8058 -- Sprint syntax: freeze entity-name [
8059 -- freeze actions
8060 -- ]
8062 -- N_Freeze_Entity
8063 -- Sloc points near freeze point (see above special note)
8064 -- Entity (Node4-Sem)
8065 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
8066 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
8067 -- Actions (List1) (set to No_List if no freeze actions)
8068 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
8070 -- The Actions field holds actions associated with the freeze. These
8071 -- actions are elaborated at the point where the type is frozen.
8073 -- Note: in the case where a debug source file is generated, the Sloc
8074 -- for this node points to the FREEZE keyword in the Sprint file output.
8076 ---------------------------
8077 -- Freeze Generic Entity --
8078 ---------------------------
8080 -- The freeze point of an entity indicates the point at which the
8081 -- information needed to generate code for the entity is complete.
8082 -- The freeze node for an entity triggers expander activities, such as
8083 -- build initialization procedures, and backend activities, such as
8084 -- completing the elaboration of packages.
8086 -- For entities declared within a generic unit, for which no code is
8087 -- generated, the freeze point is not equally meaningful. However, in
8088 -- Ada 2012 several semantic checks on declarations must be delayed to
8089 -- the freeze point, and we need to include such a mark in the tree to
8090 -- trigger these checks. The Freeze_Generic_Entity node plays no other
8091 -- role, and is ignored by the expander and the back-end.
8093 -- Sprint syntax: freeze_generic entity-name
8095 -- N_Freeze_Generic_Entity
8096 -- Sloc points near freeze point
8097 -- Entity (Node4-Sem)
8099 --------------------------------
8100 -- Implicit Label Declaration --
8101 --------------------------------
8103 -- An implicit label declaration is created for every occurrence of a
8104 -- label on a statement or a label on a block or loop. It is chained
8105 -- in the declarations of the innermost enclosing block as specified
8106 -- in RM section 5.1 (3).
8108 -- The Defining_Identifier is the actual identifier for the statement
8109 -- identifier. Note that the occurrence of the label is a reference, NOT
8110 -- the defining occurrence. The defining occurrence occurs at the head
8111 -- of the innermost enclosing block, and is represented by this node.
8113 -- Note: from the grammar, this might better be called an implicit
8114 -- statement identifier declaration, but the term we choose seems
8115 -- friendlier, since at least informally statement identifiers are
8116 -- called labels in both cases (i.e. when used in labels, and when
8117 -- used as the identifiers of blocks and loops).
8119 -- Note: although this is logically a semantic node, since it does not
8120 -- correspond directly to a source syntax construction, these nodes are
8121 -- actually created by the parser in a post pass done just after parsing
8122 -- is complete, before semantic analysis is started (see Par.Labl).
8124 -- Sprint syntax: labelname : label;
8126 -- N_Implicit_Label_Declaration
8127 -- Sloc points to the << token for a statement identifier, or to the
8128 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
8129 -- Defining_Identifier (Node1)
8130 -- Label_Construct (Node2-Sem)
8132 -- Note: in the case where a debug source file is generated, the Sloc
8133 -- for this node points to the label name in the generated declaration.
8135 ---------------------
8136 -- Itype Reference --
8137 ---------------------
8139 -- This node is used to create a reference to an Itype. The only purpose
8140 -- is to make sure the Itype is defined if this is the first reference.
8142 -- A typical use of this node is when an Itype is to be referenced in
8143 -- two branches of an IF statement. In this case it is important that
8144 -- the first use of the Itype not be inside the conditional, since then
8145 -- it might not be defined if the other branch of the IF is taken, in
8146 -- the case where the definition generates elaboration code.
8148 -- The Itype field points to the referenced Itype
8150 -- Sprint syntax: reference itype-name
8152 -- N_Itype_Reference
8153 -- Sloc points to the node generating the reference
8154 -- Itype (Node1-Sem)
8156 -- Note: in the case where a debug source file is generated, the Sloc
8157 -- for this node points to the REFERENCE keyword in the file output.
8159 ---------------------
8160 -- Raise xxx Error --
8161 ---------------------
8163 -- One of these nodes is created during semantic analysis to replace
8164 -- a node for an expression that is determined to definitely raise
8165 -- the corresponding exception.
8167 -- The N_Raise_xxx_Error node may also stand alone in place
8168 -- of a declaration or statement, in which case it simply causes
8169 -- the exception to be raised (i.e. it is equivalent to a raise
8170 -- statement that raises the corresponding exception). This use
8171 -- is distinguished by the fact that the Etype in this case is
8172 -- Standard_Void_Type; in the subexpression case, the Etype is the
8173 -- same as the type of the subexpression which it replaces.
8175 -- If Condition is empty, then the raise is unconditional. If the
8176 -- Condition field is non-empty, it is a boolean expression which is
8177 -- first evaluated, and the exception is raised only if the value of the
8178 -- expression is True. In the unconditional case, the creation of this
8179 -- node is usually accompanied by a warning message (unless it appears
8180 -- within the right operand of a short-circuit form whose left argument
8181 -- is static and decisively eliminates elaboration of the raise
8182 -- operation). The condition field can ONLY be present when the node is
8183 -- used as a statement form; it must NOT be present in the case where
8184 -- the node appears within an expression.
8186 -- The exception is generated with a message that contains the
8187 -- file name and line number, and then appended text. The Reason
8188 -- code shows the text to be added. The Reason code is an element
8189 -- of the type Types.RT_Exception_Code, and indicates both the
8190 -- message to be added, and the exception to be raised (which must
8191 -- match the node type). The value is stored by storing a Uint which
8192 -- is the Pos value of the enumeration element in this type.
8194 -- Gigi restriction: This expander ensures that the type of the
8195 -- Condition field is always Standard.Boolean, even if the type
8196 -- in the source is some non-standard boolean type.
8198 -- Sprint syntax: [xxx_error "msg"]
8199 -- or: [xxx_error when condition "msg"]
8201 -- N_Raise_Constraint_Error
8202 -- Sloc references related construct
8203 -- Condition (Node1) (set to Empty if no condition)
8204 -- Reason (Uint3)
8205 -- plus fields for expression
8207 -- N_Raise_Program_Error
8208 -- Sloc references related construct
8209 -- Condition (Node1) (set to Empty if no condition)
8210 -- Reason (Uint3)
8211 -- plus fields for expression
8213 -- N_Raise_Storage_Error
8214 -- Sloc references related construct
8215 -- Condition (Node1) (set to Empty if no condition)
8216 -- Reason (Uint3)
8217 -- plus fields for expression
8219 -- Note: Sloc is copied from the expression generating the exception.
8220 -- In the case where a debug source file is generated, the Sloc for
8221 -- this node points to the left bracket in the Sprint file output.
8223 -- Note: the back end may be required to translate these nodes into
8224 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8226 ---------------------------------------------
8227 -- Optimization of Exception Raise to Goto --
8228 ---------------------------------------------
8230 -- In some cases, the front end will determine that any exception raised
8231 -- by the back end for a certain exception should be transformed into a
8232 -- goto statement.
8234 -- There are three kinds of exceptions raised by the back end (note that
8235 -- for this purpose we consider gigi to be part of the back end in the
8236 -- gcc case):
8238 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8239 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8240 -- 3. Other cases not specifically marked by the front end
8242 -- Normally all such exceptions are translated into calls to the proper
8243 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8244 -- and the exception message.
8246 -- The front end may determine that for a particular sequence of code,
8247 -- exceptions in any of these three categories for a particular builtin
8248 -- exception should result in a goto, rather than a call to Rcheck_xx.
8249 -- The exact sequence to be generated is:
8251 -- Local_Raise (exception'Identity);
8252 -- goto Label
8254 -- The front end marks such a sequence of code by bracketing it with
8255 -- push and pop nodes:
8257 -- N_Push_xxx_Label (referencing the label)
8258 -- ...
8259 -- (code where transformation is expected for exception xxx)
8260 -- ...
8261 -- N_Pop_xxx_Label
8263 -- The use of push/pop reflects the fact that such regions can properly
8264 -- nest, and one special case is a subregion in which no transformation
8265 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8266 -- Exception_Label field is Empty.
8268 -- N_Push_Constraint_Error_Label
8269 -- Sloc references first statement in region covered
8270 -- Exception_Label (Node5-Sem)
8272 -- N_Push_Program_Error_Label
8273 -- Sloc references first statement in region covered
8274 -- Exception_Label (Node5-Sem)
8276 -- N_Push_Storage_Error_Label
8277 -- Sloc references first statement in region covered
8278 -- Exception_Label (Node5-Sem)
8280 -- N_Pop_Constraint_Error_Label
8281 -- Sloc references last statement in region covered
8283 -- N_Pop_Program_Error_Label
8284 -- Sloc references last statement in region covered
8286 -- N_Pop_Storage_Error_Label
8287 -- Sloc references last statement in region covered
8289 ---------------
8290 -- Reference --
8291 ---------------
8293 -- For a number of purposes, we need to construct references to objects.
8294 -- These references are subsequently treated as normal access values.
8295 -- An example is the construction of the parameter block passed to a
8296 -- task entry. The N_Reference node is provided for this purpose. It is
8297 -- similar in effect to the use of the Unrestricted_Access attribute,
8298 -- and like Unrestricted_Access can be applied to objects which would
8299 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8300 -- objects which are not aliased, and slices). In addition it can be
8301 -- applied to composite type values as well as objects, including string
8302 -- values and aggregates.
8304 -- Note: we use the Prefix field for this expression so that the
8305 -- resulting node can be treated using common code with the attribute
8306 -- nodes for the 'Access and related attributes. Logically it would make
8307 -- more sense to call it an Expression field, but then we would have to
8308 -- special case the treatment of the N_Reference node.
8310 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8311 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8312 -- a temporary initialized to a N_Reference node in order to eliminate
8313 -- superfluous access checks.
8315 -- Sprint syntax: prefix'reference
8317 -- N_Reference
8318 -- Sloc is copied from the expression
8319 -- Prefix (Node3)
8320 -- plus fields for expression
8322 -- Note: in the case where a debug source file is generated, the Sloc
8323 -- for this node points to the quote in the Sprint file output.
8325 ----------------
8326 -- SCIL Nodes --
8327 ----------------
8329 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8330 -- is active. They are only generated if SCIL generation is enabled.
8331 -- A standard tree-walk will not encounter these nodes even if they
8332 -- are present; these nodes are only accessible via the function
8333 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8334 -- semantics.
8336 -- Sprint syntax: [ <node kind> ]
8337 -- No semantic field values are displayed.
8339 -- N_SCIL_Dispatch_Table_Tag_Init
8340 -- Sloc references a node for a tag initialization
8341 -- SCIL_Entity (Node4-Sem)
8343 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8344 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8345 -- the declaration of the dispatch table for a tagged type.
8347 -- N_SCIL_Dispatching_Call
8348 -- Sloc references the node of a dispatching call
8349 -- SCIL_Target_Prim (Node2-Sem)
8350 -- SCIL_Entity (Node4-Sem)
8351 -- SCIL_Controlling_Tag (Node5-Sem)
8353 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8354 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8355 -- rewriting thereof) corresponding to a dispatching call.
8357 -- N_SCIL_Membership_Test
8358 -- Sloc references the node of a membership test
8359 -- SCIL_Tag_Value (Node5-Sem)
8360 -- SCIL_Entity (Node4-Sem)
8362 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8363 -- with the N_In node (or a rewriting thereof) corresponding to a
8364 -- classwide membership test.
8366 --------------------------
8367 -- Unchecked Expression --
8368 --------------------------
8370 -- An unchecked expression is one that must be analyzed and resolved
8371 -- with all checks off, regardless of the current setting of scope
8372 -- suppress flags.
8374 -- Sprint syntax: `(expression)
8376 -- Note: this node is always removed from the tree (and replaced by
8377 -- its constituent expression) on completion of analysis, so it only
8378 -- appears in intermediate trees, and will never be seen by Gigi.
8380 -- N_Unchecked_Expression
8381 -- Sloc is a copy of the Sloc of the expression
8382 -- Expression (Node3)
8383 -- plus fields for expression
8385 -- Note: in the case where a debug source file is generated, the Sloc
8386 -- for this node points to the back quote in the Sprint file output.
8388 -------------------------------
8389 -- Unchecked Type Conversion --
8390 -------------------------------
8392 -- An unchecked type conversion node represents the semantic action
8393 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8394 -- It is generated as a result of actual use of Unchecked_Conversion
8395 -- and also the expander generates unchecked type conversion nodes
8396 -- directly for expansion of complex semantic actions.
8398 -- Note: an unchecked type conversion is a variable as far as the
8399 -- semantics are concerned, which is convenient for the expander.
8400 -- This does not change what Ada source programs are legal, since
8401 -- clearly a function call to an instantiation of Unchecked_Conversion
8402 -- is not a variable in any case.
8404 -- Sprint syntax: subtype-mark!(expression)
8406 -- N_Unchecked_Type_Conversion
8407 -- Sloc points to related node in source
8408 -- Subtype_Mark (Node4)
8409 -- Expression (Node3)
8410 -- Kill_Range_Check (Flag11-Sem)
8411 -- No_Truncation (Flag17-Sem)
8412 -- plus fields for expression
8414 -- Note: in the case where a debug source file is generated, the Sloc
8415 -- for this node points to the exclamation in the Sprint file output.
8417 -----------------------------------
8418 -- Validate_Unchecked_Conversion --
8419 -----------------------------------
8421 -- The front end does most of the validation of unchecked conversion,
8422 -- including checking sizes (this is done after the back end is called
8423 -- to take advantage of back-annotation of calculated sizes).
8425 -- The front end also deals with specific cases that are not allowed
8426 -- e.g. involving unconstrained array types.
8428 -- For the case of the standard gigi backend, this means that all
8429 -- checks are done in the front end.
8431 -- However, in the case of specialized back-ends, in particular the JVM
8432 -- backend in the past, additional requirements and restrictions may
8433 -- apply to unchecked conversion, and these are most conveniently
8434 -- performed in the specialized back-end.
8436 -- To accommodate this requirement, for such back ends, the following
8437 -- special node is generated recording an unchecked conversion that
8438 -- needs to be validated. The back end should post an appropriate
8439 -- error message if the unchecked conversion is invalid or warrants
8440 -- a special warning message.
8442 -- Source_Type and Target_Type point to the entities for the two
8443 -- types involved in the unchecked conversion instantiation that
8444 -- is to be validated.
8446 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8448 -- N_Validate_Unchecked_Conversion
8449 -- Sloc points to instantiation (location for warning message)
8450 -- Source_Type (Node1-Sem)
8451 -- Target_Type (Node2-Sem)
8453 -- Note: in the case where a debug source file is generated, the Sloc
8454 -- for this node points to the VALIDATE keyword in the file output.
8456 -----------
8457 -- Empty --
8458 -----------
8460 -- Used as the contents of the Nkind field of the dummy Empty node and in
8461 -- some other situations to indicate an uninitialized value.
8463 -- N_Empty
8464 -- Chars (Name1) is set to No_Name
8466 -----------
8467 -- Error --
8468 -----------
8470 -- Used as the contents of the Nkind field of the dummy Error node.
8471 -- Has an Etype field, which gets set to Any_Type later on, to help
8472 -- error recovery (Error_Posted is also set in the Error node).
8474 -- N_Error
8475 -- Chars (Name1) is set to Error_Name
8476 -- Etype (Node5-Sem)
8478 --------------------------
8479 -- Node Type Definition --
8480 --------------------------
8482 -- The following is the definition of the Node_Kind type. As previously
8483 -- discussed, this is separated off to allow rearrangement of the order to
8484 -- facilitate definition of subtype ranges. The comments show the subtype
8485 -- classes which apply to each set of node kinds. The first entry in the
8486 -- comment characterizes the following list of nodes.
8488 type Node_Kind is (
8489 N_Unused_At_Start,
8491 -- N_Representation_Clause
8493 N_At_Clause,
8494 N_Component_Clause,
8495 N_Enumeration_Representation_Clause,
8496 N_Mod_Clause,
8497 N_Record_Representation_Clause,
8499 -- N_Representation_Clause, N_Has_Chars
8501 N_Attribute_Definition_Clause,
8503 -- N_Has_Chars
8505 N_Empty,
8506 N_Pragma_Argument_Association,
8508 -- N_Has_Etype, N_Has_Chars
8510 -- Note: of course N_Error does not really have Etype or Chars fields,
8511 -- and any attempt to access these fields in N_Error will cause an
8512 -- error, but historically this always has been positioned so that an
8513 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8514 -- Most likely this makes coding easier somewhere but still seems
8515 -- undesirable. To be investigated some time ???
8517 N_Error,
8519 -- N_Entity, N_Has_Etype, N_Has_Chars
8521 N_Defining_Character_Literal,
8522 N_Defining_Identifier,
8523 N_Defining_Operator_Symbol,
8525 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8527 N_Expanded_Name,
8529 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8530 -- N_Has_Chars, N_Has_Entity
8532 N_Identifier,
8533 N_Operator_Symbol,
8535 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8536 -- N_Has_Chars, N_Has_Entity
8538 N_Character_Literal,
8540 -- N_Binary_Op, N_Op, N_Subexpr,
8541 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8543 N_Op_Add,
8544 N_Op_Concat,
8545 N_Op_Expon,
8546 N_Op_Subtract,
8548 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8549 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8551 N_Op_Divide,
8552 N_Op_Mod,
8553 N_Op_Multiply,
8554 N_Op_Rem,
8556 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8557 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8559 N_Op_And,
8561 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8562 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8564 N_Op_Eq,
8565 N_Op_Ge,
8566 N_Op_Gt,
8567 N_Op_Le,
8568 N_Op_Lt,
8569 N_Op_Ne,
8571 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8572 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8574 N_Op_Or,
8575 N_Op_Xor,
8577 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8578 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8580 N_Op_Rotate_Left,
8581 N_Op_Rotate_Right,
8582 N_Op_Shift_Left,
8583 N_Op_Shift_Right,
8584 N_Op_Shift_Right_Arithmetic,
8586 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8587 -- N_Has_Chars, N_Has_Entity
8589 N_Op_Abs,
8590 N_Op_Minus,
8591 N_Op_Not,
8592 N_Op_Plus,
8594 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8596 N_Attribute_Reference,
8598 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8600 N_In,
8601 N_Not_In,
8603 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8605 N_And_Then,
8606 N_Or_Else,
8608 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8610 N_Function_Call,
8611 N_Procedure_Call_Statement,
8613 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8615 N_Raise_Constraint_Error,
8616 N_Raise_Program_Error,
8617 N_Raise_Storage_Error,
8619 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8621 N_Integer_Literal,
8622 N_Real_Literal,
8623 N_String_Literal,
8625 -- N_Subexpr, N_Has_Etype
8627 N_Explicit_Dereference,
8628 N_Expression_With_Actions,
8629 N_If_Expression,
8630 N_Indexed_Component,
8631 N_Null,
8632 N_Qualified_Expression,
8633 N_Quantified_Expression,
8634 N_Aggregate,
8635 N_Allocator,
8636 N_Case_Expression,
8637 N_Delta_Aggregate,
8638 N_Extension_Aggregate,
8639 N_Raise_Expression,
8640 N_Range,
8641 N_Reference,
8642 N_Selected_Component,
8643 N_Slice,
8644 N_Target_Name,
8645 N_Type_Conversion,
8646 N_Unchecked_Expression,
8647 N_Unchecked_Type_Conversion,
8649 -- N_Has_Etype
8651 N_Subtype_Indication,
8653 -- N_Declaration
8655 N_Component_Declaration,
8656 N_Entry_Declaration,
8657 N_Expression_Function,
8658 N_Formal_Object_Declaration,
8659 N_Formal_Type_Declaration,
8660 N_Full_Type_Declaration,
8661 N_Incomplete_Type_Declaration,
8662 N_Iterator_Specification,
8663 N_Loop_Parameter_Specification,
8664 N_Object_Declaration,
8665 N_Protected_Type_Declaration,
8666 N_Private_Extension_Declaration,
8667 N_Private_Type_Declaration,
8668 N_Subtype_Declaration,
8670 -- N_Subprogram_Specification, N_Declaration
8672 N_Function_Specification,
8673 N_Procedure_Specification,
8675 -- N_Access_To_Subprogram_Definition
8677 N_Access_Function_Definition,
8678 N_Access_Procedure_Definition,
8680 -- N_Later_Decl_Item
8682 N_Task_Type_Declaration,
8684 -- N_Body_Stub, N_Later_Decl_Item
8686 N_Package_Body_Stub,
8687 N_Protected_Body_Stub,
8688 N_Subprogram_Body_Stub,
8689 N_Task_Body_Stub,
8691 -- N_Generic_Instantiation, N_Later_Decl_Item
8692 -- N_Subprogram_Instantiation
8694 N_Function_Instantiation,
8695 N_Procedure_Instantiation,
8697 -- N_Generic_Instantiation, N_Later_Decl_Item
8699 N_Package_Instantiation,
8701 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8703 N_Package_Body,
8704 N_Subprogram_Body,
8706 -- N_Later_Decl_Item, N_Proper_Body
8708 N_Protected_Body,
8709 N_Task_Body,
8711 -- N_Later_Decl_Item
8713 N_Implicit_Label_Declaration,
8714 N_Package_Declaration,
8715 N_Single_Task_Declaration,
8716 N_Subprogram_Declaration,
8717 N_Use_Package_Clause,
8719 -- N_Generic_Declaration, N_Later_Decl_Item
8721 N_Generic_Package_Declaration,
8722 N_Generic_Subprogram_Declaration,
8724 -- N_Array_Type_Definition
8726 N_Constrained_Array_Definition,
8727 N_Unconstrained_Array_Definition,
8729 -- N_Renaming_Declaration
8731 N_Exception_Renaming_Declaration,
8732 N_Object_Renaming_Declaration,
8733 N_Package_Renaming_Declaration,
8734 N_Subprogram_Renaming_Declaration,
8736 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8738 N_Generic_Function_Renaming_Declaration,
8739 N_Generic_Package_Renaming_Declaration,
8740 N_Generic_Procedure_Renaming_Declaration,
8742 -- N_Statement_Other_Than_Procedure_Call
8744 N_Abort_Statement,
8745 N_Accept_Statement,
8746 N_Assignment_Statement,
8747 N_Asynchronous_Select,
8748 N_Block_Statement,
8749 N_Case_Statement,
8750 N_Code_Statement,
8751 N_Compound_Statement,
8752 N_Conditional_Entry_Call,
8754 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8756 N_Delay_Relative_Statement,
8757 N_Delay_Until_Statement,
8759 -- N_Statement_Other_Than_Procedure_Call
8761 N_Entry_Call_Statement,
8762 N_Free_Statement,
8763 N_Goto_Statement,
8764 N_Loop_Statement,
8765 N_Null_Statement,
8766 N_Raise_Statement,
8767 N_Requeue_Statement,
8768 N_Simple_Return_Statement,
8769 N_Extended_Return_Statement,
8770 N_Selective_Accept,
8771 N_Timed_Entry_Call,
8773 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8775 N_Exit_Statement,
8776 N_If_Statement,
8778 -- N_Has_Condition
8780 N_Accept_Alternative,
8781 N_Delay_Alternative,
8782 N_Elsif_Part,
8783 N_Entry_Body_Formal_Part,
8784 N_Iteration_Scheme,
8785 N_Terminate_Alternative,
8787 -- N_Formal_Subprogram_Declaration
8789 N_Formal_Abstract_Subprogram_Declaration,
8790 N_Formal_Concrete_Subprogram_Declaration,
8792 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8794 N_Push_Constraint_Error_Label,
8795 N_Push_Program_Error_Label,
8796 N_Push_Storage_Error_Label,
8798 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8800 N_Pop_Constraint_Error_Label,
8801 N_Pop_Program_Error_Label,
8802 N_Pop_Storage_Error_Label,
8804 -- SCIL nodes
8806 N_SCIL_Dispatch_Table_Tag_Init,
8807 N_SCIL_Dispatching_Call,
8808 N_SCIL_Membership_Test,
8810 -- Other nodes (not part of any subtype class)
8812 N_Abortable_Part,
8813 N_Abstract_Subprogram_Declaration,
8814 N_Access_Definition,
8815 N_Access_To_Object_Definition,
8816 N_Aspect_Specification,
8817 N_Call_Marker,
8818 N_Case_Expression_Alternative,
8819 N_Case_Statement_Alternative,
8820 N_Compilation_Unit,
8821 N_Compilation_Unit_Aux,
8822 N_Component_Association,
8823 N_Component_Definition,
8824 N_Component_List,
8825 N_Contract,
8826 N_Derived_Type_Definition,
8827 N_Decimal_Fixed_Point_Definition,
8828 N_Defining_Program_Unit_Name,
8829 N_Delta_Constraint,
8830 N_Designator,
8831 N_Digits_Constraint,
8832 N_Discriminant_Association,
8833 N_Discriminant_Specification,
8834 N_Enumeration_Type_Definition,
8835 N_Entry_Body,
8836 N_Entry_Call_Alternative,
8837 N_Entry_Index_Specification,
8838 N_Exception_Declaration,
8839 N_Exception_Handler,
8840 N_Floating_Point_Definition,
8841 N_Formal_Decimal_Fixed_Point_Definition,
8842 N_Formal_Derived_Type_Definition,
8843 N_Formal_Discrete_Type_Definition,
8844 N_Formal_Floating_Point_Definition,
8845 N_Formal_Modular_Type_Definition,
8846 N_Formal_Ordinary_Fixed_Point_Definition,
8847 N_Formal_Package_Declaration,
8848 N_Formal_Private_Type_Definition,
8849 N_Formal_Incomplete_Type_Definition,
8850 N_Formal_Signed_Integer_Type_Definition,
8851 N_Freeze_Entity,
8852 N_Freeze_Generic_Entity,
8853 N_Generic_Association,
8854 N_Handled_Sequence_Of_Statements,
8855 N_Index_Or_Discriminant_Constraint,
8856 N_Iterated_Component_Association,
8857 N_Itype_Reference,
8858 N_Label,
8859 N_Modular_Type_Definition,
8860 N_Number_Declaration,
8861 N_Ordinary_Fixed_Point_Definition,
8862 N_Others_Choice,
8863 N_Package_Specification,
8864 N_Parameter_Association,
8865 N_Parameter_Specification,
8866 N_Pragma,
8867 N_Protected_Definition,
8868 N_Range_Constraint,
8869 N_Real_Range_Specification,
8870 N_Record_Definition,
8871 N_Signed_Integer_Type_Definition,
8872 N_Single_Protected_Declaration,
8873 N_Subunit,
8874 N_Task_Definition,
8875 N_Triggering_Alternative,
8876 N_Use_Type_Clause,
8877 N_Validate_Unchecked_Conversion,
8878 N_Variant,
8879 N_Variant_Part,
8880 N_With_Clause,
8881 N_Unused_At_End);
8883 for Node_Kind'Size use 8;
8884 -- The data structures in Atree assume this
8886 ----------------------------
8887 -- Node Class Definitions --
8888 ----------------------------
8890 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8891 N_Access_Function_Definition ..
8892 N_Access_Procedure_Definition;
8894 subtype N_Array_Type_Definition is Node_Kind range
8895 N_Constrained_Array_Definition ..
8896 N_Unconstrained_Array_Definition;
8898 subtype N_Binary_Op is Node_Kind range
8899 N_Op_Add ..
8900 N_Op_Shift_Right_Arithmetic;
8902 subtype N_Body_Stub is Node_Kind range
8903 N_Package_Body_Stub ..
8904 N_Task_Body_Stub;
8906 subtype N_Declaration is Node_Kind range
8907 N_Component_Declaration ..
8908 N_Procedure_Specification;
8909 -- Note: this includes all constructs normally thought of as declarations
8910 -- except those which are separately grouped as later declarations.
8912 subtype N_Delay_Statement is Node_Kind range
8913 N_Delay_Relative_Statement ..
8914 N_Delay_Until_Statement;
8916 subtype N_Direct_Name is Node_Kind range
8917 N_Identifier ..
8918 N_Character_Literal;
8920 subtype N_Entity is Node_Kind range
8921 N_Defining_Character_Literal ..
8922 N_Defining_Operator_Symbol;
8924 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8925 N_Formal_Abstract_Subprogram_Declaration ..
8926 N_Formal_Concrete_Subprogram_Declaration;
8928 subtype N_Generic_Declaration is Node_Kind range
8929 N_Generic_Package_Declaration ..
8930 N_Generic_Subprogram_Declaration;
8932 subtype N_Generic_Instantiation is Node_Kind range
8933 N_Function_Instantiation ..
8934 N_Package_Instantiation;
8936 subtype N_Generic_Renaming_Declaration is Node_Kind range
8937 N_Generic_Function_Renaming_Declaration ..
8938 N_Generic_Procedure_Renaming_Declaration;
8940 subtype N_Has_Chars is Node_Kind range
8941 N_Attribute_Definition_Clause ..
8942 N_Op_Plus;
8944 subtype N_Has_Entity is Node_Kind range
8945 N_Expanded_Name ..
8946 N_Attribute_Reference;
8947 -- Nodes that have Entity fields
8948 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8949 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8951 subtype N_Has_Etype is Node_Kind range
8952 N_Error ..
8953 N_Subtype_Indication;
8955 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8956 N_Op_Divide ..
8957 N_Op_Rem;
8959 subtype N_Multiplying_Operator is Node_Kind range
8960 N_Op_Divide ..
8961 N_Op_Rem;
8963 subtype N_Later_Decl_Item is Node_Kind range
8964 N_Task_Type_Declaration ..
8965 N_Generic_Subprogram_Declaration;
8966 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8967 -- only those items which can appear as later declarative items. This also
8968 -- includes N_Implicit_Label_Declaration which is not specifically in the
8969 -- grammar but may appear as a valid later declarative items. It does NOT
8970 -- include N_Pragma which can also appear among later declarative items.
8971 -- It does however include N_Protected_Body, which is a bit peculiar, but
8972 -- harmless since this cannot appear in Ada 83 mode anyway.
8974 subtype N_Membership_Test is Node_Kind range
8975 N_In ..
8976 N_Not_In;
8978 subtype N_Numeric_Or_String_Literal is Node_Kind range
8979 N_Integer_Literal ..
8980 N_String_Literal;
8982 subtype N_Op is Node_Kind range
8983 N_Op_Add ..
8984 N_Op_Plus;
8986 subtype N_Op_Boolean is Node_Kind range
8987 N_Op_And ..
8988 N_Op_Xor;
8989 -- Binary operators which take operands of a boolean type, and yield
8990 -- a result of a boolean type.
8992 subtype N_Op_Compare is Node_Kind range
8993 N_Op_Eq ..
8994 N_Op_Ne;
8996 subtype N_Op_Shift is Node_Kind range
8997 N_Op_Rotate_Left ..
8998 N_Op_Shift_Right_Arithmetic;
9000 subtype N_Proper_Body is Node_Kind range
9001 N_Package_Body ..
9002 N_Task_Body;
9004 subtype N_Push_xxx_Label is Node_Kind range
9005 N_Push_Constraint_Error_Label ..
9006 N_Push_Storage_Error_Label;
9008 subtype N_Pop_xxx_Label is Node_Kind range
9009 N_Pop_Constraint_Error_Label ..
9010 N_Pop_Storage_Error_Label;
9012 subtype N_Push_Pop_xxx_Label is Node_Kind range
9013 N_Push_Constraint_Error_Label ..
9014 N_Pop_Storage_Error_Label;
9016 subtype N_Raise_xxx_Error is Node_Kind range
9017 N_Raise_Constraint_Error ..
9018 N_Raise_Storage_Error;
9020 subtype N_Renaming_Declaration is Node_Kind range
9021 N_Exception_Renaming_Declaration ..
9022 N_Generic_Procedure_Renaming_Declaration;
9024 subtype N_Representation_Clause is Node_Kind range
9025 N_At_Clause ..
9026 N_Attribute_Definition_Clause;
9028 subtype N_Short_Circuit is Node_Kind range
9029 N_And_Then ..
9030 N_Or_Else;
9032 subtype N_SCIL_Node is Node_Kind range
9033 N_SCIL_Dispatch_Table_Tag_Init ..
9034 N_SCIL_Membership_Test;
9036 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
9037 N_Abort_Statement ..
9038 N_If_Statement;
9039 -- Note that this includes all statement types except for the cases of the
9040 -- N_Procedure_Call_Statement which is considered to be a subexpression
9041 -- (since overloading is possible, so it needs to go through the normal
9042 -- overloading resolution for expressions).
9044 subtype N_Subprogram_Call is Node_Kind range
9045 N_Function_Call ..
9046 N_Procedure_Call_Statement;
9048 subtype N_Subprogram_Instantiation is Node_Kind range
9049 N_Function_Instantiation ..
9050 N_Procedure_Instantiation;
9052 subtype N_Has_Condition is Node_Kind range
9053 N_Exit_Statement ..
9054 N_Terminate_Alternative;
9055 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
9057 subtype N_Subexpr is Node_Kind range
9058 N_Expanded_Name ..
9059 N_Unchecked_Type_Conversion;
9060 -- Nodes with expression fields
9062 subtype N_Subprogram_Specification is Node_Kind range
9063 N_Function_Specification ..
9064 N_Procedure_Specification;
9066 subtype N_Unary_Op is Node_Kind range
9067 N_Op_Abs ..
9068 N_Op_Plus;
9070 subtype N_Unit_Body is Node_Kind range
9071 N_Package_Body ..
9072 N_Subprogram_Body;
9074 ---------------------------
9075 -- Node Access Functions --
9076 ---------------------------
9078 -- The following functions return the contents of the indicated field of
9079 -- the node referenced by the argument, which is a Node_Id. They provide
9080 -- logical access to fields in the node which could be accessed using the
9081 -- Atree.Unchecked_Access package, but the idea is always to use these
9082 -- higher level routines which preserve strong typing. In debug mode,
9083 -- these routines check that they are being applied to an appropriate
9084 -- node, as well as checking that the node is in range.
9086 function Abort_Present
9087 (N : Node_Id) return Boolean; -- Flag15
9089 function Abortable_Part
9090 (N : Node_Id) return Node_Id; -- Node2
9092 function Abstract_Present
9093 (N : Node_Id) return Boolean; -- Flag4
9095 function Accept_Handler_Records
9096 (N : Node_Id) return List_Id; -- List5
9098 function Accept_Statement
9099 (N : Node_Id) return Node_Id; -- Node2
9101 function Access_Definition
9102 (N : Node_Id) return Node_Id; -- Node3
9104 function Access_To_Subprogram_Definition
9105 (N : Node_Id) return Node_Id; -- Node3
9107 function Access_Types_To_Process
9108 (N : Node_Id) return Elist_Id; -- Elist2
9110 function Actions
9111 (N : Node_Id) return List_Id; -- List1
9113 function Activation_Chain_Entity
9114 (N : Node_Id) return Node_Id; -- Node3
9116 function Acts_As_Spec
9117 (N : Node_Id) return Boolean; -- Flag4
9119 function Actual_Designated_Subtype
9120 (N : Node_Id) return Node_Id; -- Node4
9122 function Address_Warning_Posted
9123 (N : Node_Id) return Boolean; -- Flag18
9125 function Aggregate_Bounds
9126 (N : Node_Id) return Node_Id; -- Node3
9128 function Aliased_Present
9129 (N : Node_Id) return Boolean; -- Flag4
9131 function All_Others
9132 (N : Node_Id) return Boolean; -- Flag11
9134 function All_Present
9135 (N : Node_Id) return Boolean; -- Flag15
9137 function Alternatives
9138 (N : Node_Id) return List_Id; -- List4
9140 function Ancestor_Part
9141 (N : Node_Id) return Node_Id; -- Node3
9143 function Atomic_Sync_Required
9144 (N : Node_Id) return Boolean; -- Flag14
9146 function Array_Aggregate
9147 (N : Node_Id) return Node_Id; -- Node3
9149 function Aspect_Rep_Item
9150 (N : Node_Id) return Node_Id; -- Node2
9152 function Assignment_OK
9153 (N : Node_Id) return Boolean; -- Flag15
9155 function Associated_Node
9156 (N : Node_Id) return Node_Id; -- Node4
9158 function At_End_Proc
9159 (N : Node_Id) return Node_Id; -- Node1
9161 function Attribute_Name
9162 (N : Node_Id) return Name_Id; -- Name2
9164 function Aux_Decls_Node
9165 (N : Node_Id) return Node_Id; -- Node5
9167 function Backwards_OK
9168 (N : Node_Id) return Boolean; -- Flag6
9170 function Bad_Is_Detected
9171 (N : Node_Id) return Boolean; -- Flag15
9173 function By_Ref
9174 (N : Node_Id) return Boolean; -- Flag5
9176 function Body_Required
9177 (N : Node_Id) return Boolean; -- Flag13
9179 function Body_To_Inline
9180 (N : Node_Id) return Node_Id; -- Node3
9182 function Box_Present
9183 (N : Node_Id) return Boolean; -- Flag15
9185 function Char_Literal_Value
9186 (N : Node_Id) return Uint; -- Uint2
9188 function Chars
9189 (N : Node_Id) return Name_Id; -- Name1
9191 function Check_Address_Alignment
9192 (N : Node_Id) return Boolean; -- Flag11
9194 function Choice_Parameter
9195 (N : Node_Id) return Node_Id; -- Node2
9197 function Choices
9198 (N : Node_Id) return List_Id; -- List1
9200 function Class_Present
9201 (N : Node_Id) return Boolean; -- Flag6
9203 function Classifications
9204 (N : Node_Id) return Node_Id; -- Node3
9206 function Cleanup_Actions
9207 (N : Node_Id) return List_Id; -- List5
9209 function Comes_From_Extended_Return_Statement
9210 (N : Node_Id) return Boolean; -- Flag18
9212 function Compile_Time_Known_Aggregate
9213 (N : Node_Id) return Boolean; -- Flag18
9215 function Component_Associations
9216 (N : Node_Id) return List_Id; -- List2
9218 function Component_Clauses
9219 (N : Node_Id) return List_Id; -- List3
9221 function Component_Definition
9222 (N : Node_Id) return Node_Id; -- Node4
9224 function Component_Items
9225 (N : Node_Id) return List_Id; -- List3
9227 function Component_List
9228 (N : Node_Id) return Node_Id; -- Node1
9230 function Component_Name
9231 (N : Node_Id) return Node_Id; -- Node1
9233 function Componentwise_Assignment
9234 (N : Node_Id) return Boolean; -- Flag14
9236 function Condition
9237 (N : Node_Id) return Node_Id; -- Node1
9239 function Condition_Actions
9240 (N : Node_Id) return List_Id; -- List3
9242 function Config_Pragmas
9243 (N : Node_Id) return List_Id; -- List4
9245 function Constant_Present
9246 (N : Node_Id) return Boolean; -- Flag17
9248 function Constraint
9249 (N : Node_Id) return Node_Id; -- Node3
9251 function Constraints
9252 (N : Node_Id) return List_Id; -- List1
9254 function Context_Installed
9255 (N : Node_Id) return Boolean; -- Flag13
9257 function Context_Pending
9258 (N : Node_Id) return Boolean; -- Flag16
9260 function Context_Items
9261 (N : Node_Id) return List_Id; -- List1
9263 function Contract_Test_Cases
9264 (N : Node_Id) return Node_Id; -- Node2
9266 function Controlling_Argument
9267 (N : Node_Id) return Node_Id; -- Node1
9269 function Conversion_OK
9270 (N : Node_Id) return Boolean; -- Flag14
9272 function Convert_To_Return_False
9273 (N : Node_Id) return Boolean; -- Flag13
9275 function Corresponding_Aspect
9276 (N : Node_Id) return Node_Id; -- Node3
9278 function Corresponding_Body
9279 (N : Node_Id) return Node_Id; -- Node5
9281 function Corresponding_Formal_Spec
9282 (N : Node_Id) return Node_Id; -- Node3
9284 function Corresponding_Generic_Association
9285 (N : Node_Id) return Node_Id; -- Node5
9287 function Corresponding_Integer_Value
9288 (N : Node_Id) return Uint; -- Uint4
9290 function Corresponding_Spec
9291 (N : Node_Id) return Entity_Id; -- Node5
9293 function Corresponding_Spec_Of_Stub
9294 (N : Node_Id) return Node_Id; -- Node2
9296 function Corresponding_Stub
9297 (N : Node_Id) return Node_Id; -- Node3
9299 function Dcheck_Function
9300 (N : Node_Id) return Entity_Id; -- Node5
9302 function Declarations
9303 (N : Node_Id) return List_Id; -- List2
9305 function Default_Expression
9306 (N : Node_Id) return Node_Id; -- Node5
9308 function Default_Storage_Pool
9309 (N : Node_Id) return Node_Id; -- Node3
9311 function Default_Name
9312 (N : Node_Id) return Node_Id; -- Node2
9314 function Defining_Identifier
9315 (N : Node_Id) return Entity_Id; -- Node1
9317 function Defining_Unit_Name
9318 (N : Node_Id) return Node_Id; -- Node1
9320 function Delay_Alternative
9321 (N : Node_Id) return Node_Id; -- Node4
9323 function Delay_Statement
9324 (N : Node_Id) return Node_Id; -- Node2
9326 function Delta_Expression
9327 (N : Node_Id) return Node_Id; -- Node3
9329 function Digits_Expression
9330 (N : Node_Id) return Node_Id; -- Node2
9332 function Discr_Check_Funcs_Built
9333 (N : Node_Id) return Boolean; -- Flag11
9335 function Discrete_Choices
9336 (N : Node_Id) return List_Id; -- List4
9338 function Discrete_Range
9339 (N : Node_Id) return Node_Id; -- Node4
9341 function Discrete_Subtype_Definition
9342 (N : Node_Id) return Node_Id; -- Node4
9344 function Discrete_Subtype_Definitions
9345 (N : Node_Id) return List_Id; -- List2
9347 function Discriminant_Specifications
9348 (N : Node_Id) return List_Id; -- List4
9350 function Discriminant_Type
9351 (N : Node_Id) return Node_Id; -- Node5
9353 function Do_Accessibility_Check
9354 (N : Node_Id) return Boolean; -- Flag13
9356 function Do_Discriminant_Check
9357 (N : Node_Id) return Boolean; -- Flag3
9359 function Do_Division_Check
9360 (N : Node_Id) return Boolean; -- Flag13
9362 function Do_Length_Check
9363 (N : Node_Id) return Boolean; -- Flag4
9365 function Do_Overflow_Check
9366 (N : Node_Id) return Boolean; -- Flag17
9368 function Do_Range_Check
9369 (N : Node_Id) return Boolean; -- Flag9
9371 function Do_Storage_Check
9372 (N : Node_Id) return Boolean; -- Flag17
9374 function Do_Tag_Check
9375 (N : Node_Id) return Boolean; -- Flag13
9377 function Elaborate_All_Desirable
9378 (N : Node_Id) return Boolean; -- Flag9
9380 function Elaborate_All_Present
9381 (N : Node_Id) return Boolean; -- Flag14
9383 function Elaborate_Desirable
9384 (N : Node_Id) return Boolean; -- Flag11
9386 function Elaborate_Present
9387 (N : Node_Id) return Boolean; -- Flag4
9389 function Else_Actions
9390 (N : Node_Id) return List_Id; -- List3
9392 function Else_Statements
9393 (N : Node_Id) return List_Id; -- List4
9395 function Elsif_Parts
9396 (N : Node_Id) return List_Id; -- List3
9398 function Enclosing_Variant
9399 (N : Node_Id) return Node_Id; -- Node2
9401 function End_Label
9402 (N : Node_Id) return Node_Id; -- Node4
9404 function End_Span
9405 (N : Node_Id) return Uint; -- Uint5
9407 function Entity
9408 (N : Node_Id) return Node_Id; -- Node4
9410 function Entity_Or_Associated_Node
9411 (N : Node_Id) return Node_Id; -- Node4
9413 function Entry_Body_Formal_Part
9414 (N : Node_Id) return Node_Id; -- Node5
9416 function Entry_Call_Alternative
9417 (N : Node_Id) return Node_Id; -- Node1
9419 function Entry_Call_Statement
9420 (N : Node_Id) return Node_Id; -- Node1
9422 function Entry_Direct_Name
9423 (N : Node_Id) return Node_Id; -- Node1
9425 function Entry_Index
9426 (N : Node_Id) return Node_Id; -- Node5
9428 function Entry_Index_Specification
9429 (N : Node_Id) return Node_Id; -- Node4
9431 function Etype
9432 (N : Node_Id) return Node_Id; -- Node5
9434 function Exception_Choices
9435 (N : Node_Id) return List_Id; -- List4
9437 function Exception_Handlers
9438 (N : Node_Id) return List_Id; -- List5
9440 function Exception_Junk
9441 (N : Node_Id) return Boolean; -- Flag8
9443 function Exception_Label
9444 (N : Node_Id) return Node_Id; -- Node5
9446 function Explicit_Actual_Parameter
9447 (N : Node_Id) return Node_Id; -- Node3
9449 function Expansion_Delayed
9450 (N : Node_Id) return Boolean; -- Flag11
9452 function Explicit_Generic_Actual_Parameter
9453 (N : Node_Id) return Node_Id; -- Node1
9455 function Expression
9456 (N : Node_Id) return Node_Id; -- Node3
9458 function Expression_Copy
9459 (N : Node_Id) return Node_Id; -- Node2
9461 function Expressions
9462 (N : Node_Id) return List_Id; -- List1
9464 function First_Bit
9465 (N : Node_Id) return Node_Id; -- Node3
9467 function First_Inlined_Subprogram
9468 (N : Node_Id) return Entity_Id; -- Node3
9470 function First_Name
9471 (N : Node_Id) return Boolean; -- Flag5
9473 function First_Named_Actual
9474 (N : Node_Id) return Node_Id; -- Node4
9476 function First_Real_Statement
9477 (N : Node_Id) return Node_Id; -- Node2
9479 function First_Subtype_Link
9480 (N : Node_Id) return Entity_Id; -- Node5
9482 function Float_Truncate
9483 (N : Node_Id) return Boolean; -- Flag11
9485 function Formal_Type_Definition
9486 (N : Node_Id) return Node_Id; -- Node3
9488 function Forwards_OK
9489 (N : Node_Id) return Boolean; -- Flag5
9491 function From_Aspect_Specification
9492 (N : Node_Id) return Boolean; -- Flag13
9494 function From_At_End
9495 (N : Node_Id) return Boolean; -- Flag4
9497 function From_At_Mod
9498 (N : Node_Id) return Boolean; -- Flag4
9500 function From_Conditional_Expression
9501 (N : Node_Id) return Boolean; -- Flag1
9503 function From_Default
9504 (N : Node_Id) return Boolean; -- Flag6
9506 function Generalized_Indexing
9507 (N : Node_Id) return Node_Id; -- Node4
9509 function Generic_Associations
9510 (N : Node_Id) return List_Id; -- List3
9512 function Generic_Formal_Declarations
9513 (N : Node_Id) return List_Id; -- List2
9515 function Generic_Parent
9516 (N : Node_Id) return Node_Id; -- Node5
9518 function Generic_Parent_Type
9519 (N : Node_Id) return Node_Id; -- Node4
9521 function Handled_Statement_Sequence
9522 (N : Node_Id) return Node_Id; -- Node4
9524 function Handler_List_Entry
9525 (N : Node_Id) return Node_Id; -- Node2
9527 function Has_Created_Identifier
9528 (N : Node_Id) return Boolean; -- Flag15
9530 function Has_Dereference_Action
9531 (N : Node_Id) return Boolean; -- Flag13
9533 function Has_Dynamic_Length_Check
9534 (N : Node_Id) return Boolean; -- Flag10
9536 function Has_Dynamic_Range_Check
9537 (N : Node_Id) return Boolean; -- Flag12
9539 function Has_Init_Expression
9540 (N : Node_Id) return Boolean; -- Flag14
9542 function Has_Local_Raise
9543 (N : Node_Id) return Boolean; -- Flag8
9545 function Has_No_Elaboration_Code
9546 (N : Node_Id) return Boolean; -- Flag17
9548 function Has_Pragma_Suppress_All
9549 (N : Node_Id) return Boolean; -- Flag14
9551 function Has_Private_View
9552 (N : Node_Id) return Boolean; -- Flag11
9554 function Has_Relative_Deadline_Pragma
9555 (N : Node_Id) return Boolean; -- Flag9
9557 function Has_Self_Reference
9558 (N : Node_Id) return Boolean; -- Flag13
9560 function Has_SP_Choice
9561 (N : Node_Id) return Boolean; -- Flag15
9563 function Has_Storage_Size_Pragma
9564 (N : Node_Id) return Boolean; -- Flag5
9566 function Has_Target_Names
9567 (N : Node_Id) return Boolean; -- Flag8
9569 function Has_Wide_Character
9570 (N : Node_Id) return Boolean; -- Flag11
9572 function Has_Wide_Wide_Character
9573 (N : Node_Id) return Boolean; -- Flag13
9575 function Header_Size_Added
9576 (N : Node_Id) return Boolean; -- Flag11
9578 function Hidden_By_Use_Clause
9579 (N : Node_Id) return Elist_Id; -- Elist5
9581 function High_Bound
9582 (N : Node_Id) return Node_Id; -- Node2
9584 function Identifier
9585 (N : Node_Id) return Node_Id; -- Node1
9587 function Interface_List
9588 (N : Node_Id) return List_Id; -- List2
9590 function Interface_Present
9591 (N : Node_Id) return Boolean; -- Flag16
9593 function Implicit_With
9594 (N : Node_Id) return Boolean; -- Flag16
9596 function Implicit_With_From_Instantiation
9597 (N : Node_Id) return Boolean; -- Flag12
9599 function Import_Interface_Present
9600 (N : Node_Id) return Boolean; -- Flag16
9602 function In_Present
9603 (N : Node_Id) return Boolean; -- Flag15
9605 function Includes_Infinities
9606 (N : Node_Id) return Boolean; -- Flag11
9608 function Incomplete_View
9609 (N : Node_Id) return Node_Id; -- Node2
9611 function Inherited_Discriminant
9612 (N : Node_Id) return Boolean; -- Flag13
9614 function Instance_Spec
9615 (N : Node_Id) return Node_Id; -- Node5
9617 function Intval
9618 (N : Node_Id) return Uint; -- Uint3
9620 function Is_Abort_Block
9621 (N : Node_Id) return Boolean; -- Flag4
9623 function Is_Accessibility_Actual
9624 (N : Node_Id) return Boolean; -- Flag13
9626 function Is_Analyzed_Pragma
9627 (N : Node_Id) return Boolean; -- Flag5
9629 function Is_Asynchronous_Call_Block
9630 (N : Node_Id) return Boolean; -- Flag7
9632 function Is_Boolean_Aspect
9633 (N : Node_Id) return Boolean; -- Flag16
9635 function Is_Checked
9636 (N : Node_Id) return Boolean; -- Flag11
9638 function Is_Checked_Ghost_Pragma
9639 (N : Node_Id) return Boolean; -- Flag3
9641 function Is_Component_Left_Opnd
9642 (N : Node_Id) return Boolean; -- Flag13
9644 function Is_Component_Right_Opnd
9645 (N : Node_Id) return Boolean; -- Flag14
9647 function Is_Controlling_Actual
9648 (N : Node_Id) return Boolean; -- Flag16
9650 function Is_Declaration_Level_Node
9651 (N : Node_Id) return Boolean; -- Flag5
9653 function Is_Delayed_Aspect
9654 (N : Node_Id) return Boolean; -- Flag14
9656 function Is_Disabled
9657 (N : Node_Id) return Boolean; -- Flag15
9659 function Is_Dispatching_Call
9660 (N : Node_Id) return Boolean; -- Flag3
9662 function Is_Dynamic_Coextension
9663 (N : Node_Id) return Boolean; -- Flag18
9665 function Is_Effective_Use_Clause
9666 (N : Node_Id) return Boolean; -- Flag1
9668 function Is_Elaboration_Checks_OK_Node
9669 (N : Node_Id) return Boolean; -- Flag1
9671 function Is_Elsif
9672 (N : Node_Id) return Boolean; -- Flag13
9674 function Is_Entry_Barrier_Function
9675 (N : Node_Id) return Boolean; -- Flag8
9677 function Is_Expanded_Build_In_Place_Call
9678 (N : Node_Id) return Boolean; -- Flag11
9680 function Is_Expanded_Contract
9681 (N : Node_Id) return Boolean; -- Flag1
9683 function Is_Finalization_Wrapper
9684 (N : Node_Id) return Boolean; -- Flag9
9686 function Is_Folded_In_Parser
9687 (N : Node_Id) return Boolean; -- Flag4
9689 function Is_Generic_Contract_Pragma
9690 (N : Node_Id) return Boolean; -- Flag2
9692 function Is_Ignored
9693 (N : Node_Id) return Boolean; -- Flag9
9695 function Is_Ignored_Ghost_Pragma
9696 (N : Node_Id) return Boolean; -- Flag8
9698 function Is_In_Discriminant_Check
9699 (N : Node_Id) return Boolean; -- Flag11
9701 function Is_Inherited_Pragma
9702 (N : Node_Id) return Boolean; -- Flag4
9704 function Is_Initialization_Block
9705 (N : Node_Id) return Boolean; -- Flag1
9707 function Is_Known_Guaranteed_ABE
9708 (N : Node_Id) return Boolean; -- Flag18
9710 function Is_Machine_Number
9711 (N : Node_Id) return Boolean; -- Flag11
9713 function Is_Null_Loop
9714 (N : Node_Id) return Boolean; -- Flag16
9716 function Is_Overloaded
9717 (N : Node_Id) return Boolean; -- Flag5
9719 function Is_Power_Of_2_For_Shift
9720 (N : Node_Id) return Boolean; -- Flag13
9722 function Is_Prefixed_Call
9723 (N : Node_Id) return Boolean; -- Flag17
9725 function Is_Protected_Subprogram_Body
9726 (N : Node_Id) return Boolean; -- Flag7
9728 function Is_Qualified_Universal_Literal
9729 (N : Node_Id) return Boolean; -- Flag4
9731 function Is_Recorded_Scenario
9732 (N : Node_Id) return Boolean; -- Flag6
9734 function Is_Source_Call
9735 (N : Node_Id) return Boolean; -- Flag4
9737 function Is_SPARK_Mode_On_Node
9738 (N : Node_Id) return Boolean; -- Flag2
9740 function Is_Static_Coextension
9741 (N : Node_Id) return Boolean; -- Flag14
9743 function Is_Static_Expression
9744 (N : Node_Id) return Boolean; -- Flag6
9746 function Is_Subprogram_Descriptor
9747 (N : Node_Id) return Boolean; -- Flag16
9749 function Is_Task_Allocation_Block
9750 (N : Node_Id) return Boolean; -- Flag6
9752 function Is_Task_Body_Procedure
9753 (N : Node_Id) return Boolean; -- Flag1
9755 function Is_Task_Master
9756 (N : Node_Id) return Boolean; -- Flag5
9758 function Iteration_Scheme
9759 (N : Node_Id) return Node_Id; -- Node2
9761 function Iterator_Specification
9762 (N : Node_Id) return Node_Id; -- Node2
9764 function Itype
9765 (N : Node_Id) return Entity_Id; -- Node1
9767 function Kill_Range_Check
9768 (N : Node_Id) return Boolean; -- Flag11
9770 function Label_Construct
9771 (N : Node_Id) return Node_Id; -- Node2
9773 function Left_Opnd
9774 (N : Node_Id) return Node_Id; -- Node2
9776 function Last_Bit
9777 (N : Node_Id) return Node_Id; -- Node4
9779 function Last_Name
9780 (N : Node_Id) return Boolean; -- Flag6
9782 function Library_Unit
9783 (N : Node_Id) return Node_Id; -- Node4
9785 function Limited_View_Installed
9786 (N : Node_Id) return Boolean; -- Flag18
9788 function Limited_Present
9789 (N : Node_Id) return Boolean; -- Flag17
9791 function Literals
9792 (N : Node_Id) return List_Id; -- List1
9794 function Local_Raise_Not_OK
9795 (N : Node_Id) return Boolean; -- Flag7
9797 function Local_Raise_Statements
9798 (N : Node_Id) return Elist_Id; -- Elist1
9800 function Loop_Actions
9801 (N : Node_Id) return List_Id; -- List2
9803 function Loop_Parameter_Specification
9804 (N : Node_Id) return Node_Id; -- Node4
9806 function Low_Bound
9807 (N : Node_Id) return Node_Id; -- Node1
9809 function Mod_Clause
9810 (N : Node_Id) return Node_Id; -- Node2
9812 function More_Ids
9813 (N : Node_Id) return Boolean; -- Flag5
9815 function Must_Be_Byte_Aligned
9816 (N : Node_Id) return Boolean; -- Flag14
9818 function Must_Not_Freeze
9819 (N : Node_Id) return Boolean; -- Flag8
9821 function Must_Not_Override
9822 (N : Node_Id) return Boolean; -- Flag15
9824 function Must_Override
9825 (N : Node_Id) return Boolean; -- Flag14
9827 function Name
9828 (N : Node_Id) return Node_Id; -- Node2
9830 function Names
9831 (N : Node_Id) return List_Id; -- List2
9833 function Next_Entity
9834 (N : Node_Id) return Node_Id; -- Node2
9836 function Next_Exit_Statement
9837 (N : Node_Id) return Node_Id; -- Node3
9839 function Next_Implicit_With
9840 (N : Node_Id) return Node_Id; -- Node3
9842 function Next_Named_Actual
9843 (N : Node_Id) return Node_Id; -- Node4
9845 function Next_Pragma
9846 (N : Node_Id) return Node_Id; -- Node1
9848 function Next_Rep_Item
9849 (N : Node_Id) return Node_Id; -- Node5
9851 function Next_Use_Clause
9852 (N : Node_Id) return Node_Id; -- Node3
9854 function No_Ctrl_Actions
9855 (N : Node_Id) return Boolean; -- Flag7
9857 function No_Entities_Ref_In_Spec
9858 (N : Node_Id) return Boolean; -- Flag8
9860 function No_Initialization
9861 (N : Node_Id) return Boolean; -- Flag13
9863 function No_Minimize_Eliminate
9864 (N : Node_Id) return Boolean; -- Flag17
9866 function No_Side_Effect_Removal
9867 (N : Node_Id) return Boolean; -- Flag17
9869 function No_Truncation
9870 (N : Node_Id) return Boolean; -- Flag17
9872 function Null_Excluding_Subtype
9873 (N : Node_Id) return Boolean; -- Flag16
9875 function Null_Exclusion_Present
9876 (N : Node_Id) return Boolean; -- Flag11
9878 function Null_Exclusion_In_Return_Present
9879 (N : Node_Id) return Boolean; -- Flag14
9881 function Null_Present
9882 (N : Node_Id) return Boolean; -- Flag13
9884 function Null_Record_Present
9885 (N : Node_Id) return Boolean; -- Flag17
9887 function Null_Statement
9888 (N : Node_Id) return Node_Id; -- Node2
9890 function Object_Definition
9891 (N : Node_Id) return Node_Id; -- Node4
9893 function Of_Present
9894 (N : Node_Id) return Boolean; -- Flag16
9896 function Original_Discriminant
9897 (N : Node_Id) return Node_Id; -- Node2
9899 function Original_Entity
9900 (N : Node_Id) return Entity_Id; -- Node2
9902 function Others_Discrete_Choices
9903 (N : Node_Id) return List_Id; -- List1
9905 function Out_Present
9906 (N : Node_Id) return Boolean; -- Flag17
9908 function Parameter_Associations
9909 (N : Node_Id) return List_Id; -- List3
9911 function Parameter_Specifications
9912 (N : Node_Id) return List_Id; -- List3
9914 function Parameter_Type
9915 (N : Node_Id) return Node_Id; -- Node2
9917 function Parent_Spec
9918 (N : Node_Id) return Node_Id; -- Node4
9920 function Position
9921 (N : Node_Id) return Node_Id; -- Node2
9923 function Pragma_Argument_Associations
9924 (N : Node_Id) return List_Id; -- List2
9926 function Pragma_Identifier
9927 (N : Node_Id) return Node_Id; -- Node4
9929 function Pragmas_After
9930 (N : Node_Id) return List_Id; -- List5
9932 function Pragmas_Before
9933 (N : Node_Id) return List_Id; -- List4
9935 function Pre_Post_Conditions
9936 (N : Node_Id) return Node_Id; -- Node1
9938 function Prefix
9939 (N : Node_Id) return Node_Id; -- Node3
9941 function Premature_Use
9942 (N : Node_Id) return Node_Id; -- Node5
9944 function Present_Expr
9945 (N : Node_Id) return Uint; -- Uint3
9947 function Prev_Ids
9948 (N : Node_Id) return Boolean; -- Flag6
9950 function Prev_Use_Clause
9951 (N : Node_Id) return Node_Id; -- Node1
9953 function Print_In_Hex
9954 (N : Node_Id) return Boolean; -- Flag13
9956 function Private_Declarations
9957 (N : Node_Id) return List_Id; -- List3
9959 function Private_Present
9960 (N : Node_Id) return Boolean; -- Flag15
9962 function Procedure_To_Call
9963 (N : Node_Id) return Node_Id; -- Node2
9965 function Proper_Body
9966 (N : Node_Id) return Node_Id; -- Node1
9968 function Protected_Definition
9969 (N : Node_Id) return Node_Id; -- Node3
9971 function Protected_Present
9972 (N : Node_Id) return Boolean; -- Flag6
9974 function Raises_Constraint_Error
9975 (N : Node_Id) return Boolean; -- Flag7
9977 function Range_Constraint
9978 (N : Node_Id) return Node_Id; -- Node4
9980 function Range_Expression
9981 (N : Node_Id) return Node_Id; -- Node4
9983 function Real_Range_Specification
9984 (N : Node_Id) return Node_Id; -- Node4
9986 function Realval
9987 (N : Node_Id) return Ureal; -- Ureal3
9989 function Reason
9990 (N : Node_Id) return Uint; -- Uint3
9992 function Record_Extension_Part
9993 (N : Node_Id) return Node_Id; -- Node3
9995 function Redundant_Use
9996 (N : Node_Id) return Boolean; -- Flag13
9998 function Renaming_Exception
9999 (N : Node_Id) return Node_Id; -- Node2
10001 function Result_Definition
10002 (N : Node_Id) return Node_Id; -- Node4
10004 function Return_Object_Declarations
10005 (N : Node_Id) return List_Id; -- List3
10007 function Return_Statement_Entity
10008 (N : Node_Id) return Node_Id; -- Node5
10010 function Reverse_Present
10011 (N : Node_Id) return Boolean; -- Flag15
10013 function Right_Opnd
10014 (N : Node_Id) return Node_Id; -- Node3
10016 function Rounded_Result
10017 (N : Node_Id) return Boolean; -- Flag18
10019 function SCIL_Controlling_Tag
10020 (N : Node_Id) return Node_Id; -- Node5
10022 function SCIL_Entity
10023 (N : Node_Id) return Node_Id; -- Node4
10025 function SCIL_Tag_Value
10026 (N : Node_Id) return Node_Id; -- Node5
10028 function SCIL_Target_Prim
10029 (N : Node_Id) return Node_Id; -- Node2
10031 function Scope
10032 (N : Node_Id) return Node_Id; -- Node3
10034 function Select_Alternatives
10035 (N : Node_Id) return List_Id; -- List1
10037 function Selector_Name
10038 (N : Node_Id) return Node_Id; -- Node2
10040 function Selector_Names
10041 (N : Node_Id) return List_Id; -- List1
10043 function Shift_Count_OK
10044 (N : Node_Id) return Boolean; -- Flag4
10046 function Source_Type
10047 (N : Node_Id) return Entity_Id; -- Node1
10049 function Specification
10050 (N : Node_Id) return Node_Id; -- Node1
10052 function Split_PPC
10053 (N : Node_Id) return Boolean; -- Flag17
10055 function Statements
10056 (N : Node_Id) return List_Id; -- List3
10058 function Storage_Pool
10059 (N : Node_Id) return Node_Id; -- Node1
10061 function Subpool_Handle_Name
10062 (N : Node_Id) return Node_Id; -- Node4
10064 function Strval
10065 (N : Node_Id) return String_Id; -- Str3
10067 function Subtype_Indication
10068 (N : Node_Id) return Node_Id; -- Node5
10070 function Subtype_Mark
10071 (N : Node_Id) return Node_Id; -- Node4
10073 function Subtype_Marks
10074 (N : Node_Id) return List_Id; -- List2
10076 function Suppress_Assignment_Checks
10077 (N : Node_Id) return Boolean; -- Flag18
10079 function Suppress_Loop_Warnings
10080 (N : Node_Id) return Boolean; -- Flag17
10082 function Synchronized_Present
10083 (N : Node_Id) return Boolean; -- Flag7
10085 function Tagged_Present
10086 (N : Node_Id) return Boolean; -- Flag15
10088 function Target
10089 (N : Node_Id) return Entity_Id; -- Node1
10091 function Target_Type
10092 (N : Node_Id) return Entity_Id; -- Node2
10094 function Task_Definition
10095 (N : Node_Id) return Node_Id; -- Node3
10097 function Task_Present
10098 (N : Node_Id) return Boolean; -- Flag5
10100 function Then_Actions
10101 (N : Node_Id) return List_Id; -- List2
10103 function Then_Statements
10104 (N : Node_Id) return List_Id; -- List2
10106 function Treat_Fixed_As_Integer
10107 (N : Node_Id) return Boolean; -- Flag14
10109 function Triggering_Alternative
10110 (N : Node_Id) return Node_Id; -- Node1
10112 function Triggering_Statement
10113 (N : Node_Id) return Node_Id; -- Node1
10115 function TSS_Elist
10116 (N : Node_Id) return Elist_Id; -- Elist3
10118 function Type_Definition
10119 (N : Node_Id) return Node_Id; -- Node3
10121 function Uneval_Old_Accept
10122 (N : Node_Id) return Boolean; -- Flag7
10124 function Uneval_Old_Warn
10125 (N : Node_Id) return Boolean; -- Flag18
10127 function Unit
10128 (N : Node_Id) return Node_Id; -- Node2
10130 function Unknown_Discriminants_Present
10131 (N : Node_Id) return Boolean; -- Flag13
10133 function Unreferenced_In_Spec
10134 (N : Node_Id) return Boolean; -- Flag7
10136 function Variant_Part
10137 (N : Node_Id) return Node_Id; -- Node4
10139 function Variants
10140 (N : Node_Id) return List_Id; -- List1
10142 function Visible_Declarations
10143 (N : Node_Id) return List_Id; -- List2
10145 function Uninitialized_Variable
10146 (N : Node_Id) return Node_Id; -- Node3
10148 function Used_Operations
10149 (N : Node_Id) return Elist_Id; -- Elist2
10151 function Was_Attribute_Reference
10152 (N : Node_Id) return Boolean; -- Flag2
10154 function Was_Expression_Function
10155 (N : Node_Id) return Boolean; -- Flag18
10157 function Was_Originally_Stub
10158 (N : Node_Id) return Boolean; -- Flag13
10160 function Withed_Body
10161 (N : Node_Id) return Node_Id; -- Node1
10163 -- End functions (note used by xsinfo utility program to end processing)
10165 ----------------------------
10166 -- Node Update Procedures --
10167 ----------------------------
10169 -- These are the corresponding node update routines, which again provide
10170 -- a high level logical access with type checking. In addition to setting
10171 -- the indicated field of the node N to the given Val, in the case of
10172 -- tree pointers (List1-4), the parent pointer of the Val node is set to
10173 -- point back to node N. This automates the setting of the parent pointer.
10175 procedure Set_Abort_Present
10176 (N : Node_Id; Val : Boolean := True); -- Flag15
10178 procedure Set_Abortable_Part
10179 (N : Node_Id; Val : Node_Id); -- Node2
10181 procedure Set_Abstract_Present
10182 (N : Node_Id; Val : Boolean := True); -- Flag4
10184 procedure Set_Accept_Handler_Records
10185 (N : Node_Id; Val : List_Id); -- List5
10187 procedure Set_Accept_Statement
10188 (N : Node_Id; Val : Node_Id); -- Node2
10190 procedure Set_Access_Definition
10191 (N : Node_Id; Val : Node_Id); -- Node3
10193 procedure Set_Access_To_Subprogram_Definition
10194 (N : Node_Id; Val : Node_Id); -- Node3
10196 procedure Set_Access_Types_To_Process
10197 (N : Node_Id; Val : Elist_Id); -- Elist2
10199 procedure Set_Actions
10200 (N : Node_Id; Val : List_Id); -- List1
10202 procedure Set_Activation_Chain_Entity
10203 (N : Node_Id; Val : Node_Id); -- Node3
10205 procedure Set_Acts_As_Spec
10206 (N : Node_Id; Val : Boolean := True); -- Flag4
10208 procedure Set_Actual_Designated_Subtype
10209 (N : Node_Id; Val : Node_Id); -- Node4
10211 procedure Set_Address_Warning_Posted
10212 (N : Node_Id; Val : Boolean := True); -- Flag18
10214 procedure Set_Aggregate_Bounds
10215 (N : Node_Id; Val : Node_Id); -- Node3
10217 procedure Set_Aliased_Present
10218 (N : Node_Id; Val : Boolean := True); -- Flag4
10220 procedure Set_All_Others
10221 (N : Node_Id; Val : Boolean := True); -- Flag11
10223 procedure Set_All_Present
10224 (N : Node_Id; Val : Boolean := True); -- Flag15
10226 procedure Set_Alternatives
10227 (N : Node_Id; Val : List_Id); -- List4
10229 procedure Set_Ancestor_Part
10230 (N : Node_Id; Val : Node_Id); -- Node3
10232 procedure Set_Atomic_Sync_Required
10233 (N : Node_Id; Val : Boolean := True); -- Flag14
10235 procedure Set_Array_Aggregate
10236 (N : Node_Id; Val : Node_Id); -- Node3
10238 procedure Set_Aspect_Rep_Item
10239 (N : Node_Id; Val : Node_Id); -- Node2
10241 procedure Set_Assignment_OK
10242 (N : Node_Id; Val : Boolean := True); -- Flag15
10244 procedure Set_Associated_Node
10245 (N : Node_Id; Val : Node_Id); -- Node4
10247 procedure Set_Attribute_Name
10248 (N : Node_Id; Val : Name_Id); -- Name2
10250 procedure Set_At_End_Proc
10251 (N : Node_Id; Val : Node_Id); -- Node1
10253 procedure Set_Aux_Decls_Node
10254 (N : Node_Id; Val : Node_Id); -- Node5
10256 procedure Set_Backwards_OK
10257 (N : Node_Id; Val : Boolean := True); -- Flag6
10259 procedure Set_Bad_Is_Detected
10260 (N : Node_Id; Val : Boolean := True); -- Flag15
10262 procedure Set_Body_Required
10263 (N : Node_Id; Val : Boolean := True); -- Flag13
10265 procedure Set_Body_To_Inline
10266 (N : Node_Id; Val : Node_Id); -- Node3
10268 procedure Set_Box_Present
10269 (N : Node_Id; Val : Boolean := True); -- Flag15
10271 procedure Set_By_Ref
10272 (N : Node_Id; Val : Boolean := True); -- Flag5
10274 procedure Set_Char_Literal_Value
10275 (N : Node_Id; Val : Uint); -- Uint2
10277 procedure Set_Chars
10278 (N : Node_Id; Val : Name_Id); -- Name1
10280 procedure Set_Check_Address_Alignment
10281 (N : Node_Id; Val : Boolean := True); -- Flag11
10283 procedure Set_Choice_Parameter
10284 (N : Node_Id; Val : Node_Id); -- Node2
10286 procedure Set_Choices
10287 (N : Node_Id; Val : List_Id); -- List1
10289 procedure Set_Class_Present
10290 (N : Node_Id; Val : Boolean := True); -- Flag6
10292 procedure Set_Classifications
10293 (N : Node_Id; Val : Node_Id); -- Node3
10295 procedure Set_Cleanup_Actions
10296 (N : Node_Id; Val : List_Id); -- List5
10298 procedure Set_Comes_From_Extended_Return_Statement
10299 (N : Node_Id; Val : Boolean := True); -- Flag18
10301 procedure Set_Compile_Time_Known_Aggregate
10302 (N : Node_Id; Val : Boolean := True); -- Flag18
10304 procedure Set_Component_Associations
10305 (N : Node_Id; Val : List_Id); -- List2
10307 procedure Set_Component_Clauses
10308 (N : Node_Id; Val : List_Id); -- List3
10310 procedure Set_Component_Definition
10311 (N : Node_Id; Val : Node_Id); -- Node4
10313 procedure Set_Component_Items
10314 (N : Node_Id; Val : List_Id); -- List3
10316 procedure Set_Component_List
10317 (N : Node_Id; Val : Node_Id); -- Node1
10319 procedure Set_Component_Name
10320 (N : Node_Id; Val : Node_Id); -- Node1
10322 procedure Set_Componentwise_Assignment
10323 (N : Node_Id; Val : Boolean := True); -- Flag14
10325 procedure Set_Condition
10326 (N : Node_Id; Val : Node_Id); -- Node1
10328 procedure Set_Condition_Actions
10329 (N : Node_Id; Val : List_Id); -- List3
10331 procedure Set_Config_Pragmas
10332 (N : Node_Id; Val : List_Id); -- List4
10334 procedure Set_Constant_Present
10335 (N : Node_Id; Val : Boolean := True); -- Flag17
10337 procedure Set_Constraint
10338 (N : Node_Id; Val : Node_Id); -- Node3
10340 procedure Set_Constraints
10341 (N : Node_Id; Val : List_Id); -- List1
10343 procedure Set_Context_Installed
10344 (N : Node_Id; Val : Boolean := True); -- Flag13
10346 procedure Set_Context_Items
10347 (N : Node_Id; Val : List_Id); -- List1
10349 procedure Set_Context_Pending
10350 (N : Node_Id; Val : Boolean := True); -- Flag16
10352 procedure Set_Contract_Test_Cases
10353 (N : Node_Id; Val : Node_Id); -- Node2
10355 procedure Set_Controlling_Argument
10356 (N : Node_Id; Val : Node_Id); -- Node1
10358 procedure Set_Conversion_OK
10359 (N : Node_Id; Val : Boolean := True); -- Flag14
10361 procedure Set_Convert_To_Return_False
10362 (N : Node_Id; Val : Boolean := True); -- Flag13
10364 procedure Set_Corresponding_Aspect
10365 (N : Node_Id; Val : Node_Id); -- Node3
10367 procedure Set_Corresponding_Body
10368 (N : Node_Id; Val : Node_Id); -- Node5
10370 procedure Set_Corresponding_Formal_Spec
10371 (N : Node_Id; Val : Node_Id); -- Node3
10373 procedure Set_Corresponding_Generic_Association
10374 (N : Node_Id; Val : Node_Id); -- Node5
10376 procedure Set_Corresponding_Integer_Value
10377 (N : Node_Id; Val : Uint); -- Uint4
10379 procedure Set_Corresponding_Spec
10380 (N : Node_Id; Val : Entity_Id); -- Node5
10382 procedure Set_Corresponding_Spec_Of_Stub
10383 (N : Node_Id; Val : Node_Id); -- Node2
10385 procedure Set_Corresponding_Stub
10386 (N : Node_Id; Val : Node_Id); -- Node3
10388 procedure Set_Dcheck_Function
10389 (N : Node_Id; Val : Entity_Id); -- Node5
10391 procedure Set_Declarations
10392 (N : Node_Id; Val : List_Id); -- List2
10394 procedure Set_Default_Expression
10395 (N : Node_Id; Val : Node_Id); -- Node5
10397 procedure Set_Default_Storage_Pool
10398 (N : Node_Id; Val : Node_Id); -- Node3
10400 procedure Set_Default_Name
10401 (N : Node_Id; Val : Node_Id); -- Node2
10403 procedure Set_Defining_Identifier
10404 (N : Node_Id; Val : Entity_Id); -- Node1
10406 procedure Set_Defining_Unit_Name
10407 (N : Node_Id; Val : Node_Id); -- Node1
10409 procedure Set_Delay_Alternative
10410 (N : Node_Id; Val : Node_Id); -- Node4
10412 procedure Set_Delay_Statement
10413 (N : Node_Id; Val : Node_Id); -- Node2
10415 procedure Set_Delta_Expression
10416 (N : Node_Id; Val : Node_Id); -- Node3
10418 procedure Set_Digits_Expression
10419 (N : Node_Id; Val : Node_Id); -- Node2
10421 procedure Set_Discr_Check_Funcs_Built
10422 (N : Node_Id; Val : Boolean := True); -- Flag11
10424 procedure Set_Discrete_Choices
10425 (N : Node_Id; Val : List_Id); -- List4
10427 procedure Set_Discrete_Range
10428 (N : Node_Id; Val : Node_Id); -- Node4
10430 procedure Set_Discrete_Subtype_Definition
10431 (N : Node_Id; Val : Node_Id); -- Node4
10433 procedure Set_Discrete_Subtype_Definitions
10434 (N : Node_Id; Val : List_Id); -- List2
10436 procedure Set_Discriminant_Specifications
10437 (N : Node_Id; Val : List_Id); -- List4
10439 procedure Set_Discriminant_Type
10440 (N : Node_Id; Val : Node_Id); -- Node5
10442 procedure Set_Do_Accessibility_Check
10443 (N : Node_Id; Val : Boolean := True); -- Flag13
10445 procedure Set_Do_Discriminant_Check
10446 (N : Node_Id; Val : Boolean := True); -- Flag3
10448 procedure Set_Do_Division_Check
10449 (N : Node_Id; Val : Boolean := True); -- Flag13
10451 procedure Set_Do_Length_Check
10452 (N : Node_Id; Val : Boolean := True); -- Flag4
10454 procedure Set_Do_Overflow_Check
10455 (N : Node_Id; Val : Boolean := True); -- Flag17
10457 procedure Set_Do_Range_Check
10458 (N : Node_Id; Val : Boolean := True); -- Flag9
10460 procedure Set_Do_Storage_Check
10461 (N : Node_Id; Val : Boolean := True); -- Flag17
10463 procedure Set_Do_Tag_Check
10464 (N : Node_Id; Val : Boolean := True); -- Flag13
10466 procedure Set_Elaborate_All_Desirable
10467 (N : Node_Id; Val : Boolean := True); -- Flag9
10469 procedure Set_Elaborate_All_Present
10470 (N : Node_Id; Val : Boolean := True); -- Flag14
10472 procedure Set_Elaborate_Desirable
10473 (N : Node_Id; Val : Boolean := True); -- Flag11
10475 procedure Set_Elaborate_Present
10476 (N : Node_Id; Val : Boolean := True); -- Flag4
10478 procedure Set_Else_Actions
10479 (N : Node_Id; Val : List_Id); -- List3
10481 procedure Set_Else_Statements
10482 (N : Node_Id; Val : List_Id); -- List4
10484 procedure Set_Elsif_Parts
10485 (N : Node_Id; Val : List_Id); -- List3
10487 procedure Set_Enclosing_Variant
10488 (N : Node_Id; Val : Node_Id); -- Node2
10490 procedure Set_End_Label
10491 (N : Node_Id; Val : Node_Id); -- Node4
10493 procedure Set_End_Span
10494 (N : Node_Id; Val : Uint); -- Uint5
10496 procedure Set_Entity
10497 (N : Node_Id; Val : Node_Id); -- Node4
10499 procedure Set_Entry_Body_Formal_Part
10500 (N : Node_Id; Val : Node_Id); -- Node5
10502 procedure Set_Entry_Call_Alternative
10503 (N : Node_Id; Val : Node_Id); -- Node1
10505 procedure Set_Entry_Call_Statement
10506 (N : Node_Id; Val : Node_Id); -- Node1
10508 procedure Set_Entry_Direct_Name
10509 (N : Node_Id; Val : Node_Id); -- Node1
10511 procedure Set_Entry_Index
10512 (N : Node_Id; Val : Node_Id); -- Node5
10514 procedure Set_Entry_Index_Specification
10515 (N : Node_Id; Val : Node_Id); -- Node4
10517 procedure Set_Etype
10518 (N : Node_Id; Val : Node_Id); -- Node5
10520 procedure Set_Exception_Choices
10521 (N : Node_Id; Val : List_Id); -- List4
10523 procedure Set_Exception_Handlers
10524 (N : Node_Id; Val : List_Id); -- List5
10526 procedure Set_Exception_Junk
10527 (N : Node_Id; Val : Boolean := True); -- Flag8
10529 procedure Set_Exception_Label
10530 (N : Node_Id; Val : Node_Id); -- Node5
10532 procedure Set_Expansion_Delayed
10533 (N : Node_Id; Val : Boolean := True); -- Flag11
10535 procedure Set_Explicit_Actual_Parameter
10536 (N : Node_Id; Val : Node_Id); -- Node3
10538 procedure Set_Explicit_Generic_Actual_Parameter
10539 (N : Node_Id; Val : Node_Id); -- Node1
10541 procedure Set_Expression
10542 (N : Node_Id; Val : Node_Id); -- Node3
10544 procedure Set_Expression_Copy
10545 (N : Node_Id; Val : Node_Id); -- Node2
10547 procedure Set_Expressions
10548 (N : Node_Id; Val : List_Id); -- List1
10550 procedure Set_First_Bit
10551 (N : Node_Id; Val : Node_Id); -- Node3
10553 procedure Set_First_Inlined_Subprogram
10554 (N : Node_Id; Val : Entity_Id); -- Node3
10556 procedure Set_First_Name
10557 (N : Node_Id; Val : Boolean := True); -- Flag5
10559 procedure Set_First_Named_Actual
10560 (N : Node_Id; Val : Node_Id); -- Node4
10562 procedure Set_First_Real_Statement
10563 (N : Node_Id; Val : Node_Id); -- Node2
10565 procedure Set_First_Subtype_Link
10566 (N : Node_Id; Val : Entity_Id); -- Node5
10568 procedure Set_Float_Truncate
10569 (N : Node_Id; Val : Boolean := True); -- Flag11
10571 procedure Set_Formal_Type_Definition
10572 (N : Node_Id; Val : Node_Id); -- Node3
10574 procedure Set_Forwards_OK
10575 (N : Node_Id; Val : Boolean := True); -- Flag5
10577 procedure Set_From_Aspect_Specification
10578 (N : Node_Id; Val : Boolean := True); -- Flag13
10580 procedure Set_From_At_End
10581 (N : Node_Id; Val : Boolean := True); -- Flag4
10583 procedure Set_From_At_Mod
10584 (N : Node_Id; Val : Boolean := True); -- Flag4
10586 procedure Set_From_Conditional_Expression
10587 (N : Node_Id; Val : Boolean := True); -- Flag1
10589 procedure Set_From_Default
10590 (N : Node_Id; Val : Boolean := True); -- Flag6
10592 procedure Set_Generalized_Indexing
10593 (N : Node_Id; Val : Node_Id); -- Node4
10595 procedure Set_Generic_Associations
10596 (N : Node_Id; Val : List_Id); -- List3
10598 procedure Set_Generic_Formal_Declarations
10599 (N : Node_Id; Val : List_Id); -- List2
10601 procedure Set_Generic_Parent
10602 (N : Node_Id; Val : Node_Id); -- Node5
10604 procedure Set_Generic_Parent_Type
10605 (N : Node_Id; Val : Node_Id); -- Node4
10607 procedure Set_Handled_Statement_Sequence
10608 (N : Node_Id; Val : Node_Id); -- Node4
10610 procedure Set_Handler_List_Entry
10611 (N : Node_Id; Val : Node_Id); -- Node2
10613 procedure Set_Has_Created_Identifier
10614 (N : Node_Id; Val : Boolean := True); -- Flag15
10616 procedure Set_Has_Dereference_Action
10617 (N : Node_Id; Val : Boolean := True); -- Flag13
10619 procedure Set_Has_Dynamic_Length_Check
10620 (N : Node_Id; Val : Boolean := True); -- Flag10
10622 procedure Set_Has_Dynamic_Range_Check
10623 (N : Node_Id; Val : Boolean := True); -- Flag12
10625 procedure Set_Has_Init_Expression
10626 (N : Node_Id; Val : Boolean := True); -- Flag14
10628 procedure Set_Has_Local_Raise
10629 (N : Node_Id; Val : Boolean := True); -- Flag8
10631 procedure Set_Has_No_Elaboration_Code
10632 (N : Node_Id; Val : Boolean := True); -- Flag17
10634 procedure Set_Has_Pragma_Suppress_All
10635 (N : Node_Id; Val : Boolean := True); -- Flag14
10637 procedure Set_Has_Private_View
10638 (N : Node_Id; Val : Boolean := True); -- Flag11
10640 procedure Set_Has_Relative_Deadline_Pragma
10641 (N : Node_Id; Val : Boolean := True); -- Flag9
10643 procedure Set_Has_Self_Reference
10644 (N : Node_Id; Val : Boolean := True); -- Flag13
10646 procedure Set_Has_SP_Choice
10647 (N : Node_Id; Val : Boolean := True); -- Flag15
10649 procedure Set_Has_Storage_Size_Pragma
10650 (N : Node_Id; Val : Boolean := True); -- Flag5
10652 procedure Set_Has_Target_Names
10653 (N : Node_Id; Val : Boolean := True); -- Flag8
10655 procedure Set_Has_Wide_Character
10656 (N : Node_Id; Val : Boolean := True); -- Flag11
10658 procedure Set_Has_Wide_Wide_Character
10659 (N : Node_Id; Val : Boolean := True); -- Flag13
10661 procedure Set_Header_Size_Added
10662 (N : Node_Id; Val : Boolean := True); -- Flag11
10664 procedure Set_Hidden_By_Use_Clause
10665 (N : Node_Id; Val : Elist_Id); -- Elist5
10667 procedure Set_High_Bound
10668 (N : Node_Id; Val : Node_Id); -- Node2
10670 procedure Set_Identifier
10671 (N : Node_Id; Val : Node_Id); -- Node1
10673 procedure Set_Interface_List
10674 (N : Node_Id; Val : List_Id); -- List2
10676 procedure Set_Interface_Present
10677 (N : Node_Id; Val : Boolean := True); -- Flag16
10679 procedure Set_Implicit_With
10680 (N : Node_Id; Val : Boolean := True); -- Flag16
10682 procedure Set_Implicit_With_From_Instantiation
10683 (N : Node_Id; Val : Boolean := True); -- Flag12
10685 procedure Set_Import_Interface_Present
10686 (N : Node_Id; Val : Boolean := True); -- Flag16
10688 procedure Set_In_Present
10689 (N : Node_Id; Val : Boolean := True); -- Flag15
10691 procedure Set_Includes_Infinities
10692 (N : Node_Id; Val : Boolean := True); -- Flag11
10694 procedure Set_Incomplete_View
10695 (N : Node_Id; Val : Node_Id); -- Node2
10697 procedure Set_Inherited_Discriminant
10698 (N : Node_Id; Val : Boolean := True); -- Flag13
10700 procedure Set_Instance_Spec
10701 (N : Node_Id; Val : Node_Id); -- Node5
10703 procedure Set_Intval
10704 (N : Node_Id; Val : Uint); -- Uint3
10706 procedure Set_Is_Abort_Block
10707 (N : Node_Id; Val : Boolean := True); -- Flag4
10709 procedure Set_Is_Accessibility_Actual
10710 (N : Node_Id; Val : Boolean := True); -- Flag13
10712 procedure Set_Is_Analyzed_Pragma
10713 (N : Node_Id; Val : Boolean := True); -- Flag5
10715 procedure Set_Is_Asynchronous_Call_Block
10716 (N : Node_Id; Val : Boolean := True); -- Flag7
10718 procedure Set_Is_Boolean_Aspect
10719 (N : Node_Id; Val : Boolean := True); -- Flag16
10721 procedure Set_Is_Checked
10722 (N : Node_Id; Val : Boolean := True); -- Flag11
10724 procedure Set_Is_Checked_Ghost_Pragma
10725 (N : Node_Id; Val : Boolean := True); -- Flag3
10727 procedure Set_Is_Component_Left_Opnd
10728 (N : Node_Id; Val : Boolean := True); -- Flag13
10730 procedure Set_Is_Component_Right_Opnd
10731 (N : Node_Id; Val : Boolean := True); -- Flag14
10733 procedure Set_Is_Controlling_Actual
10734 (N : Node_Id; Val : Boolean := True); -- Flag16
10736 procedure Set_Is_Declaration_Level_Node
10737 (N : Node_Id; Val : Boolean := True); -- Flag5
10739 procedure Set_Is_Delayed_Aspect
10740 (N : Node_Id; Val : Boolean := True); -- Flag14
10742 procedure Set_Is_Disabled
10743 (N : Node_Id; Val : Boolean := True); -- Flag15
10745 procedure Set_Is_Dispatching_Call
10746 (N : Node_Id; Val : Boolean := True); -- Flag3
10748 procedure Set_Is_Dynamic_Coextension
10749 (N : Node_Id; Val : Boolean := True); -- Flag18
10751 procedure Set_Is_Effective_Use_Clause
10752 (N : Node_Id; Val : Boolean := True); -- Flag1
10754 procedure Set_Is_Elaboration_Checks_OK_Node
10755 (N : Node_Id; Val : Boolean := True); -- Flag1
10757 procedure Set_Is_Elsif
10758 (N : Node_Id; Val : Boolean := True); -- Flag13
10760 procedure Set_Is_Entry_Barrier_Function
10761 (N : Node_Id; Val : Boolean := True); -- Flag8
10763 procedure Set_Is_Expanded_Build_In_Place_Call
10764 (N : Node_Id; Val : Boolean := True); -- Flag11
10766 procedure Set_Is_Expanded_Contract
10767 (N : Node_Id; Val : Boolean := True); -- Flag1
10769 procedure Set_Is_Finalization_Wrapper
10770 (N : Node_Id; Val : Boolean := True); -- Flag9
10772 procedure Set_Is_Folded_In_Parser
10773 (N : Node_Id; Val : Boolean := True); -- Flag4
10775 procedure Set_Is_Generic_Contract_Pragma
10776 (N : Node_Id; Val : Boolean := True); -- Flag2
10778 procedure Set_Is_Ignored
10779 (N : Node_Id; Val : Boolean := True); -- Flag9
10781 procedure Set_Is_Ignored_Ghost_Pragma
10782 (N : Node_Id; Val : Boolean := True); -- Flag8
10784 procedure Set_Is_In_Discriminant_Check
10785 (N : Node_Id; Val : Boolean := True); -- Flag11
10787 procedure Set_Is_Inherited_Pragma
10788 (N : Node_Id; Val : Boolean := True); -- Flag4
10790 procedure Set_Is_Initialization_Block
10791 (N : Node_Id; Val : Boolean := True); -- Flag1
10793 procedure Set_Is_Known_Guaranteed_ABE
10794 (N : Node_Id; Val : Boolean := True); -- Flag18
10796 procedure Set_Is_Machine_Number
10797 (N : Node_Id; Val : Boolean := True); -- Flag11
10799 procedure Set_Is_Null_Loop
10800 (N : Node_Id; Val : Boolean := True); -- Flag16
10802 procedure Set_Is_Overloaded
10803 (N : Node_Id; Val : Boolean := True); -- Flag5
10805 procedure Set_Is_Power_Of_2_For_Shift
10806 (N : Node_Id; Val : Boolean := True); -- Flag13
10808 procedure Set_Is_Prefixed_Call
10809 (N : Node_Id; Val : Boolean := True); -- Flag17
10811 procedure Set_Is_Protected_Subprogram_Body
10812 (N : Node_Id; Val : Boolean := True); -- Flag7
10814 procedure Set_Is_Qualified_Universal_Literal
10815 (N : Node_Id; Val : Boolean := True); -- Flag4
10817 procedure Set_Is_Recorded_Scenario
10818 (N : Node_Id; Val : Boolean := True); -- Flag6
10820 procedure Set_Is_Source_Call
10821 (N : Node_Id; Val : Boolean := True); -- Flag4
10823 procedure Set_Is_SPARK_Mode_On_Node
10824 (N : Node_Id; Val : Boolean := True); -- Flag2
10826 procedure Set_Is_Static_Coextension
10827 (N : Node_Id; Val : Boolean := True); -- Flag14
10829 procedure Set_Is_Static_Expression
10830 (N : Node_Id; Val : Boolean := True); -- Flag6
10832 procedure Set_Is_Subprogram_Descriptor
10833 (N : Node_Id; Val : Boolean := True); -- Flag16
10835 procedure Set_Is_Task_Allocation_Block
10836 (N : Node_Id; Val : Boolean := True); -- Flag6
10838 procedure Set_Is_Task_Body_Procedure
10839 (N : Node_Id; Val : Boolean := True); -- Flag1
10841 procedure Set_Is_Task_Master
10842 (N : Node_Id; Val : Boolean := True); -- Flag5
10844 procedure Set_Iteration_Scheme
10845 (N : Node_Id; Val : Node_Id); -- Node2
10847 procedure Set_Iterator_Specification
10848 (N : Node_Id; Val : Node_Id); -- Node2
10850 procedure Set_Itype
10851 (N : Node_Id; Val : Entity_Id); -- Node1
10853 procedure Set_Kill_Range_Check
10854 (N : Node_Id; Val : Boolean := True); -- Flag11
10856 procedure Set_Last_Bit
10857 (N : Node_Id; Val : Node_Id); -- Node4
10859 procedure Set_Last_Name
10860 (N : Node_Id; Val : Boolean := True); -- Flag6
10862 procedure Set_Library_Unit
10863 (N : Node_Id; Val : Node_Id); -- Node4
10865 procedure Set_Label_Construct
10866 (N : Node_Id; Val : Node_Id); -- Node2
10868 procedure Set_Left_Opnd
10869 (N : Node_Id; Val : Node_Id); -- Node2
10871 procedure Set_Limited_View_Installed
10872 (N : Node_Id; Val : Boolean := True); -- Flag18
10874 procedure Set_Limited_Present
10875 (N : Node_Id; Val : Boolean := True); -- Flag17
10877 procedure Set_Literals
10878 (N : Node_Id; Val : List_Id); -- List1
10880 procedure Set_Local_Raise_Not_OK
10881 (N : Node_Id; Val : Boolean := True); -- Flag7
10883 procedure Set_Local_Raise_Statements
10884 (N : Node_Id; Val : Elist_Id); -- Elist1
10886 procedure Set_Loop_Actions
10887 (N : Node_Id; Val : List_Id); -- List2
10889 procedure Set_Loop_Parameter_Specification
10890 (N : Node_Id; Val : Node_Id); -- Node4
10892 procedure Set_Low_Bound
10893 (N : Node_Id; Val : Node_Id); -- Node1
10895 procedure Set_Mod_Clause
10896 (N : Node_Id; Val : Node_Id); -- Node2
10898 procedure Set_More_Ids
10899 (N : Node_Id; Val : Boolean := True); -- Flag5
10901 procedure Set_Must_Be_Byte_Aligned
10902 (N : Node_Id; Val : Boolean := True); -- Flag14
10904 procedure Set_Must_Not_Freeze
10905 (N : Node_Id; Val : Boolean := True); -- Flag8
10907 procedure Set_Must_Not_Override
10908 (N : Node_Id; Val : Boolean := True); -- Flag15
10910 procedure Set_Must_Override
10911 (N : Node_Id; Val : Boolean := True); -- Flag14
10913 procedure Set_Name
10914 (N : Node_Id; Val : Node_Id); -- Node2
10916 procedure Set_Names
10917 (N : Node_Id; Val : List_Id); -- List2
10919 procedure Set_Next_Entity
10920 (N : Node_Id; Val : Node_Id); -- Node2
10922 procedure Set_Next_Exit_Statement
10923 (N : Node_Id; Val : Node_Id); -- Node3
10925 procedure Set_Next_Implicit_With
10926 (N : Node_Id; Val : Node_Id); -- Node3
10928 procedure Set_Next_Named_Actual
10929 (N : Node_Id; Val : Node_Id); -- Node4
10931 procedure Set_Next_Pragma
10932 (N : Node_Id; Val : Node_Id); -- Node1
10934 procedure Set_Next_Rep_Item
10935 (N : Node_Id; Val : Node_Id); -- Node5
10937 procedure Set_Next_Use_Clause
10938 (N : Node_Id; Val : Node_Id); -- Node3
10940 procedure Set_No_Ctrl_Actions
10941 (N : Node_Id; Val : Boolean := True); -- Flag7
10943 procedure Set_No_Entities_Ref_In_Spec
10944 (N : Node_Id; Val : Boolean := True); -- Flag8
10946 procedure Set_No_Initialization
10947 (N : Node_Id; Val : Boolean := True); -- Flag13
10949 procedure Set_No_Minimize_Eliminate
10950 (N : Node_Id; Val : Boolean := True); -- Flag17
10952 procedure Set_No_Side_Effect_Removal
10953 (N : Node_Id; Val : Boolean := True); -- Flag17
10955 procedure Set_No_Truncation
10956 (N : Node_Id; Val : Boolean := True); -- Flag17
10958 procedure Set_Null_Excluding_Subtype
10959 (N : Node_Id; Val : Boolean := True); -- Flag16
10961 procedure Set_Null_Exclusion_Present
10962 (N : Node_Id; Val : Boolean := True); -- Flag11
10964 procedure Set_Null_Exclusion_In_Return_Present
10965 (N : Node_Id; Val : Boolean := True); -- Flag14
10967 procedure Set_Null_Present
10968 (N : Node_Id; Val : Boolean := True); -- Flag13
10970 procedure Set_Null_Record_Present
10971 (N : Node_Id; Val : Boolean := True); -- Flag17
10973 procedure Set_Null_Statement
10974 (N : Node_Id; Val : Node_Id); -- Node2
10976 procedure Set_Object_Definition
10977 (N : Node_Id; Val : Node_Id); -- Node4
10979 procedure Set_Of_Present
10980 (N : Node_Id; Val : Boolean := True); -- Flag16
10982 procedure Set_Original_Discriminant
10983 (N : Node_Id; Val : Node_Id); -- Node2
10985 procedure Set_Original_Entity
10986 (N : Node_Id; Val : Entity_Id); -- Node2
10988 procedure Set_Others_Discrete_Choices
10989 (N : Node_Id; Val : List_Id); -- List1
10991 procedure Set_Out_Present
10992 (N : Node_Id; Val : Boolean := True); -- Flag17
10994 procedure Set_Parameter_Associations
10995 (N : Node_Id; Val : List_Id); -- List3
10997 procedure Set_Parameter_Specifications
10998 (N : Node_Id; Val : List_Id); -- List3
11000 procedure Set_Parameter_Type
11001 (N : Node_Id; Val : Node_Id); -- Node2
11003 procedure Set_Parent_Spec
11004 (N : Node_Id; Val : Node_Id); -- Node4
11006 procedure Set_Position
11007 (N : Node_Id; Val : Node_Id); -- Node2
11009 procedure Set_Pragma_Argument_Associations
11010 (N : Node_Id; Val : List_Id); -- List2
11012 procedure Set_Pragma_Identifier
11013 (N : Node_Id; Val : Node_Id); -- Node4
11015 procedure Set_Pragmas_After
11016 (N : Node_Id; Val : List_Id); -- List5
11018 procedure Set_Pragmas_Before
11019 (N : Node_Id; Val : List_Id); -- List4
11021 procedure Set_Pre_Post_Conditions
11022 (N : Node_Id; Val : Node_Id); -- Node1
11024 procedure Set_Prefix
11025 (N : Node_Id; Val : Node_Id); -- Node3
11027 procedure Set_Premature_Use
11028 (N : Node_Id; Val : Node_Id); -- Node5
11030 procedure Set_Present_Expr
11031 (N : Node_Id; Val : Uint); -- Uint3
11033 procedure Set_Prev_Ids
11034 (N : Node_Id; Val : Boolean := True); -- Flag6
11036 procedure Set_Prev_Use_Clause
11037 (N : Node_Id; Val : Node_Id); -- Node1
11039 procedure Set_Print_In_Hex
11040 (N : Node_Id; Val : Boolean := True); -- Flag13
11042 procedure Set_Private_Declarations
11043 (N : Node_Id; Val : List_Id); -- List3
11045 procedure Set_Private_Present
11046 (N : Node_Id; Val : Boolean := True); -- Flag15
11048 procedure Set_Procedure_To_Call
11049 (N : Node_Id; Val : Node_Id); -- Node2
11051 procedure Set_Proper_Body
11052 (N : Node_Id; Val : Node_Id); -- Node1
11054 procedure Set_Protected_Definition
11055 (N : Node_Id; Val : Node_Id); -- Node3
11057 procedure Set_Protected_Present
11058 (N : Node_Id; Val : Boolean := True); -- Flag6
11060 procedure Set_Raises_Constraint_Error
11061 (N : Node_Id; Val : Boolean := True); -- Flag7
11063 procedure Set_Range_Constraint
11064 (N : Node_Id; Val : Node_Id); -- Node4
11066 procedure Set_Range_Expression
11067 (N : Node_Id; Val : Node_Id); -- Node4
11069 procedure Set_Real_Range_Specification
11070 (N : Node_Id; Val : Node_Id); -- Node4
11072 procedure Set_Realval
11073 (N : Node_Id; Val : Ureal); -- Ureal3
11075 procedure Set_Reason
11076 (N : Node_Id; Val : Uint); -- Uint3
11078 procedure Set_Record_Extension_Part
11079 (N : Node_Id; Val : Node_Id); -- Node3
11081 procedure Set_Redundant_Use
11082 (N : Node_Id; Val : Boolean := True); -- Flag13
11084 procedure Set_Renaming_Exception
11085 (N : Node_Id; Val : Node_Id); -- Node2
11087 procedure Set_Result_Definition
11088 (N : Node_Id; Val : Node_Id); -- Node4
11090 procedure Set_Return_Object_Declarations
11091 (N : Node_Id; Val : List_Id); -- List3
11093 procedure Set_Return_Statement_Entity
11094 (N : Node_Id; Val : Node_Id); -- Node5
11096 procedure Set_Reverse_Present
11097 (N : Node_Id; Val : Boolean := True); -- Flag15
11099 procedure Set_Right_Opnd
11100 (N : Node_Id; Val : Node_Id); -- Node3
11102 procedure Set_Rounded_Result
11103 (N : Node_Id; Val : Boolean := True); -- Flag18
11105 procedure Set_SCIL_Controlling_Tag
11106 (N : Node_Id; Val : Node_Id); -- Node5
11108 procedure Set_SCIL_Entity
11109 (N : Node_Id; Val : Node_Id); -- Node4
11111 procedure Set_SCIL_Tag_Value
11112 (N : Node_Id; Val : Node_Id); -- Node5
11114 procedure Set_SCIL_Target_Prim
11115 (N : Node_Id; Val : Node_Id); -- Node2
11117 procedure Set_Scope
11118 (N : Node_Id; Val : Node_Id); -- Node3
11120 procedure Set_Select_Alternatives
11121 (N : Node_Id; Val : List_Id); -- List1
11123 procedure Set_Selector_Name
11124 (N : Node_Id; Val : Node_Id); -- Node2
11126 procedure Set_Selector_Names
11127 (N : Node_Id; Val : List_Id); -- List1
11129 procedure Set_Shift_Count_OK
11130 (N : Node_Id; Val : Boolean := True); -- Flag4
11132 procedure Set_Source_Type
11133 (N : Node_Id; Val : Entity_Id); -- Node1
11135 procedure Set_Specification
11136 (N : Node_Id; Val : Node_Id); -- Node1
11138 procedure Set_Split_PPC
11139 (N : Node_Id; Val : Boolean); -- Flag17
11141 procedure Set_Statements
11142 (N : Node_Id; Val : List_Id); -- List3
11144 procedure Set_Storage_Pool
11145 (N : Node_Id; Val : Node_Id); -- Node1
11147 procedure Set_Subpool_Handle_Name
11148 (N : Node_Id; Val : Node_Id); -- Node4
11150 procedure Set_Strval
11151 (N : Node_Id; Val : String_Id); -- Str3
11153 procedure Set_Subtype_Indication
11154 (N : Node_Id; Val : Node_Id); -- Node5
11156 procedure Set_Subtype_Mark
11157 (N : Node_Id; Val : Node_Id); -- Node4
11159 procedure Set_Subtype_Marks
11160 (N : Node_Id; Val : List_Id); -- List2
11162 procedure Set_Suppress_Assignment_Checks
11163 (N : Node_Id; Val : Boolean := True); -- Flag18
11165 procedure Set_Suppress_Loop_Warnings
11166 (N : Node_Id; Val : Boolean := True); -- Flag17
11168 procedure Set_Synchronized_Present
11169 (N : Node_Id; Val : Boolean := True); -- Flag7
11171 procedure Set_Tagged_Present
11172 (N : Node_Id; Val : Boolean := True); -- Flag15
11174 procedure Set_Target
11175 (N : Node_Id; Val : Entity_Id); -- Node1
11177 procedure Set_Target_Type
11178 (N : Node_Id; Val : Entity_Id); -- Node2
11180 procedure Set_Task_Definition
11181 (N : Node_Id; Val : Node_Id); -- Node3
11183 procedure Set_Task_Present
11184 (N : Node_Id; Val : Boolean := True); -- Flag5
11186 procedure Set_Then_Actions
11187 (N : Node_Id; Val : List_Id); -- List2
11189 procedure Set_Then_Statements
11190 (N : Node_Id; Val : List_Id); -- List2
11192 procedure Set_Treat_Fixed_As_Integer
11193 (N : Node_Id; Val : Boolean := True); -- Flag14
11195 procedure Set_Triggering_Alternative
11196 (N : Node_Id; Val : Node_Id); -- Node1
11198 procedure Set_Triggering_Statement
11199 (N : Node_Id; Val : Node_Id); -- Node1
11201 procedure Set_TSS_Elist
11202 (N : Node_Id; Val : Elist_Id); -- Elist3
11204 procedure Set_Type_Definition
11205 (N : Node_Id; Val : Node_Id); -- Node3
11207 procedure Set_Uneval_Old_Accept
11208 (N : Node_Id; Val : Boolean := True); -- Flag7
11210 procedure Set_Uneval_Old_Warn
11211 (N : Node_Id; Val : Boolean := True); -- Flag18
11213 procedure Set_Unit
11214 (N : Node_Id; Val : Node_Id); -- Node2
11216 procedure Set_Unknown_Discriminants_Present
11217 (N : Node_Id; Val : Boolean := True); -- Flag13
11219 procedure Set_Unreferenced_In_Spec
11220 (N : Node_Id; Val : Boolean := True); -- Flag7
11222 procedure Set_Variant_Part
11223 (N : Node_Id; Val : Node_Id); -- Node4
11225 procedure Set_Variants
11226 (N : Node_Id; Val : List_Id); -- List1
11228 procedure Set_Visible_Declarations
11229 (N : Node_Id; Val : List_Id); -- List2
11231 procedure Set_Uninitialized_Variable
11232 (N : Node_Id; Val : Node_Id); -- Node3
11234 procedure Set_Used_Operations
11235 (N : Node_Id; Val : Elist_Id); -- Elist2
11237 procedure Set_Was_Attribute_Reference
11238 (N : Node_Id; Val : Boolean := True); -- Flag2
11240 procedure Set_Was_Expression_Function
11241 (N : Node_Id; Val : Boolean := True); -- Flag18
11243 procedure Set_Was_Originally_Stub
11244 (N : Node_Id; Val : Boolean := True); -- Flag13
11246 procedure Set_Withed_Body
11247 (N : Node_Id; Val : Node_Id); -- Node1
11249 -------------------------
11250 -- Iterator Procedures --
11251 -------------------------
11253 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11255 procedure Next_Entity (N : in out Node_Id);
11256 procedure Next_Named_Actual (N : in out Node_Id);
11257 procedure Next_Rep_Item (N : in out Node_Id);
11258 procedure Next_Use_Clause (N : in out Node_Id);
11260 -------------------------------------------
11261 -- Miscellaneous Tree Access Subprograms --
11262 -------------------------------------------
11264 function End_Location (N : Node_Id) return Source_Ptr;
11265 -- N is an N_If_Statement or N_Case_Statement node, and this function
11266 -- returns the location of the IF token in the END IF sequence by
11267 -- translating the value of the End_Span field.
11269 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11270 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11271 -- the End_Span field to correspond to the given value S. In other words,
11272 -- End_Span is set to the difference between S and Sloc (N), the starting
11273 -- location.
11275 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11276 -- Given an argument to a pragma Arg, this function returns the expression
11277 -- for the argument. This is Arg itself, or, in the case where Arg is a
11278 -- pragma argument association node, the expression from this node.
11280 --------------------------------
11281 -- Node_Kind Membership Tests --
11282 --------------------------------
11284 -- The following functions allow a convenient notation for testing whether
11285 -- a Node_Kind value matches any one of a list of possible values. In each
11286 -- case True is returned if the given T argument is equal to any of the V
11287 -- arguments. Note that there is a similar set of functions defined in
11288 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11290 function Nkind_In
11291 (T : Node_Kind;
11292 V1 : Node_Kind;
11293 V2 : Node_Kind) return Boolean;
11295 function Nkind_In
11296 (T : Node_Kind;
11297 V1 : Node_Kind;
11298 V2 : Node_Kind;
11299 V3 : Node_Kind) return Boolean;
11301 function Nkind_In
11302 (T : Node_Kind;
11303 V1 : Node_Kind;
11304 V2 : Node_Kind;
11305 V3 : Node_Kind;
11306 V4 : Node_Kind) return Boolean;
11308 function Nkind_In
11309 (T : Node_Kind;
11310 V1 : Node_Kind;
11311 V2 : Node_Kind;
11312 V3 : Node_Kind;
11313 V4 : Node_Kind;
11314 V5 : Node_Kind) return Boolean;
11316 function Nkind_In
11317 (T : Node_Kind;
11318 V1 : Node_Kind;
11319 V2 : Node_Kind;
11320 V3 : Node_Kind;
11321 V4 : Node_Kind;
11322 V5 : Node_Kind;
11323 V6 : Node_Kind) return Boolean;
11325 function Nkind_In
11326 (T : Node_Kind;
11327 V1 : Node_Kind;
11328 V2 : Node_Kind;
11329 V3 : Node_Kind;
11330 V4 : Node_Kind;
11331 V5 : Node_Kind;
11332 V6 : Node_Kind;
11333 V7 : Node_Kind) return Boolean;
11335 function Nkind_In
11336 (T : Node_Kind;
11337 V1 : Node_Kind;
11338 V2 : Node_Kind;
11339 V3 : Node_Kind;
11340 V4 : Node_Kind;
11341 V5 : Node_Kind;
11342 V6 : Node_Kind;
11343 V7 : Node_Kind;
11344 V8 : Node_Kind) return Boolean;
11346 function Nkind_In
11347 (T : Node_Kind;
11348 V1 : Node_Kind;
11349 V2 : Node_Kind;
11350 V3 : Node_Kind;
11351 V4 : Node_Kind;
11352 V5 : Node_Kind;
11353 V6 : Node_Kind;
11354 V7 : Node_Kind;
11355 V8 : Node_Kind;
11356 V9 : Node_Kind) return Boolean;
11358 pragma Inline (Nkind_In);
11359 -- Inline all above functions
11361 -----------------------
11362 -- Utility Functions --
11363 -----------------------
11365 procedure Map_Pragma_Name (From, To : Name_Id);
11366 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11367 -- From to pragma name To, so From can be used as a synonym for To.
11369 Too_Many_Pragma_Mappings : exception;
11370 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11371 -- programs will use it at all, and those that do will use it approximately
11372 -- once or twice.
11374 function Pragma_Name (N : Node_Id) return Name_Id;
11375 -- Obtain the name of pragma N from the Chars field of its identifier. If
11376 -- the pragma has been renamed using Rename_Pragma, this routine returns
11377 -- the name of the renaming.
11379 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11380 -- Obtain the name of pragma N from the Chars field of its identifier. This
11381 -- form of name extraction does not take into account renamings performed
11382 -- by Rename_Pragma.
11384 -----------------------------
11385 -- Syntactic Parent Tables --
11386 -----------------------------
11388 -- These tables show for each node, and for each of the five fields,
11389 -- whether the corresponding field is syntactic (True) or semantic (False).
11390 -- Unused entries are also set to False.
11392 subtype Field_Num is Natural range 1 .. 5;
11394 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11396 -- Following entries can be built automatically from the sinfo sources
11397 -- using the makeisf utility (currently this program is in spitbol).
11399 N_Identifier =>
11400 (1 => True, -- Chars (Name1)
11401 2 => False, -- Original_Discriminant (Node2-Sem)
11402 3 => False, -- unused
11403 4 => False, -- Entity (Node4-Sem)
11404 5 => False), -- Etype (Node5-Sem)
11406 N_Integer_Literal =>
11407 (1 => False, -- unused
11408 2 => False, -- Original_Entity (Node2-Sem)
11409 3 => True, -- Intval (Uint3)
11410 4 => False, -- unused
11411 5 => False), -- Etype (Node5-Sem)
11413 N_Real_Literal =>
11414 (1 => False, -- unused
11415 2 => False, -- Original_Entity (Node2-Sem)
11416 3 => True, -- Realval (Ureal3)
11417 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11418 5 => False), -- Etype (Node5-Sem)
11420 N_Character_Literal =>
11421 (1 => True, -- Chars (Name1)
11422 2 => True, -- Char_Literal_Value (Uint2)
11423 3 => False, -- unused
11424 4 => False, -- Entity (Node4-Sem)
11425 5 => False), -- Etype (Node5-Sem)
11427 N_String_Literal =>
11428 (1 => False, -- unused
11429 2 => False, -- unused
11430 3 => True, -- Strval (Str3)
11431 4 => False, -- unused
11432 5 => False), -- Etype (Node5-Sem)
11434 N_Pragma =>
11435 (1 => False, -- Next_Pragma (Node1-Sem)
11436 2 => True, -- Pragma_Argument_Associations (List2)
11437 3 => False, -- Corresponding_Aspect (Node3-Sem)
11438 4 => True, -- Pragma_Identifier (Node4)
11439 5 => False), -- Next_Rep_Item (Node5-Sem)
11441 N_Pragma_Argument_Association =>
11442 (1 => True, -- Chars (Name1)
11443 2 => False, -- Expression_Copy (Node2-Sem)
11444 3 => True, -- Expression (Node3)
11445 4 => False, -- unused
11446 5 => False), -- unused
11448 N_Defining_Identifier =>
11449 (1 => True, -- Chars (Name1)
11450 2 => False, -- Next_Entity (Node2-Sem)
11451 3 => False, -- Scope (Node3-Sem)
11452 4 => False, -- unused
11453 5 => False), -- Etype (Node5-Sem)
11455 N_Full_Type_Declaration =>
11456 (1 => True, -- Defining_Identifier (Node1)
11457 2 => False, -- Incomplete_View (Node2-Sem)
11458 3 => True, -- Type_Definition (Node3)
11459 4 => True, -- Discriminant_Specifications (List4)
11460 5 => False), -- unused
11462 N_Subtype_Declaration =>
11463 (1 => True, -- Defining_Identifier (Node1)
11464 2 => False, -- unused
11465 3 => False, -- unused
11466 4 => False, -- Generic_Parent_Type (Node4-Sem)
11467 5 => True), -- Subtype_Indication (Node5)
11469 N_Subtype_Indication =>
11470 (1 => False, -- unused
11471 2 => False, -- unused
11472 3 => True, -- Constraint (Node3)
11473 4 => True, -- Subtype_Mark (Node4)
11474 5 => False), -- Etype (Node5-Sem)
11476 N_Object_Declaration =>
11477 (1 => True, -- Defining_Identifier (Node1)
11478 2 => False, -- Handler_List_Entry (Node2-Sem)
11479 3 => True, -- Expression (Node3)
11480 4 => True, -- Object_Definition (Node4)
11481 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11483 N_Number_Declaration =>
11484 (1 => True, -- Defining_Identifier (Node1)
11485 2 => False, -- unused
11486 3 => True, -- Expression (Node3)
11487 4 => False, -- unused
11488 5 => False), -- unused
11490 N_Derived_Type_Definition =>
11491 (1 => False, -- unused
11492 2 => True, -- Interface_List (List2)
11493 3 => True, -- Record_Extension_Part (Node3)
11494 4 => False, -- unused
11495 5 => True), -- Subtype_Indication (Node5)
11497 N_Range_Constraint =>
11498 (1 => False, -- unused
11499 2 => False, -- unused
11500 3 => False, -- unused
11501 4 => True, -- Range_Expression (Node4)
11502 5 => False), -- unused
11504 N_Range =>
11505 (1 => True, -- Low_Bound (Node1)
11506 2 => True, -- High_Bound (Node2)
11507 3 => False, -- unused
11508 4 => False, -- unused
11509 5 => False), -- Etype (Node5-Sem)
11511 N_Enumeration_Type_Definition =>
11512 (1 => True, -- Literals (List1)
11513 2 => False, -- unused
11514 3 => False, -- unused
11515 4 => True, -- End_Label (Node4)
11516 5 => False), -- unused
11518 N_Defining_Character_Literal =>
11519 (1 => True, -- Chars (Name1)
11520 2 => False, -- Next_Entity (Node2-Sem)
11521 3 => False, -- Scope (Node3-Sem)
11522 4 => False, -- unused
11523 5 => False), -- Etype (Node5-Sem)
11525 N_Signed_Integer_Type_Definition =>
11526 (1 => True, -- Low_Bound (Node1)
11527 2 => True, -- High_Bound (Node2)
11528 3 => False, -- unused
11529 4 => False, -- unused
11530 5 => False), -- unused
11532 N_Modular_Type_Definition =>
11533 (1 => False, -- unused
11534 2 => False, -- unused
11535 3 => True, -- Expression (Node3)
11536 4 => False, -- unused
11537 5 => False), -- unused
11539 N_Floating_Point_Definition =>
11540 (1 => False, -- unused
11541 2 => True, -- Digits_Expression (Node2)
11542 3 => False, -- unused
11543 4 => True, -- Real_Range_Specification (Node4)
11544 5 => False), -- unused
11546 N_Real_Range_Specification =>
11547 (1 => True, -- Low_Bound (Node1)
11548 2 => True, -- High_Bound (Node2)
11549 3 => False, -- unused
11550 4 => False, -- unused
11551 5 => False), -- unused
11553 N_Ordinary_Fixed_Point_Definition =>
11554 (1 => False, -- unused
11555 2 => False, -- unused
11556 3 => True, -- Delta_Expression (Node3)
11557 4 => True, -- Real_Range_Specification (Node4)
11558 5 => False), -- unused
11560 N_Decimal_Fixed_Point_Definition =>
11561 (1 => False, -- unused
11562 2 => True, -- Digits_Expression (Node2)
11563 3 => True, -- Delta_Expression (Node3)
11564 4 => True, -- Real_Range_Specification (Node4)
11565 5 => False), -- unused
11567 N_Digits_Constraint =>
11568 (1 => False, -- unused
11569 2 => True, -- Digits_Expression (Node2)
11570 3 => False, -- unused
11571 4 => True, -- Range_Constraint (Node4)
11572 5 => False), -- unused
11574 N_Unconstrained_Array_Definition =>
11575 (1 => False, -- unused
11576 2 => True, -- Subtype_Marks (List2)
11577 3 => False, -- unused
11578 4 => True, -- Component_Definition (Node4)
11579 5 => False), -- unused
11581 N_Constrained_Array_Definition =>
11582 (1 => False, -- unused
11583 2 => True, -- Discrete_Subtype_Definitions (List2)
11584 3 => False, -- unused
11585 4 => True, -- Component_Definition (Node4)
11586 5 => False), -- unused
11588 N_Component_Definition =>
11589 (1 => False, -- unused
11590 2 => False, -- unused
11591 3 => True, -- Access_Definition (Node3)
11592 4 => False, -- unused
11593 5 => True), -- Subtype_Indication (Node5)
11595 N_Discriminant_Specification =>
11596 (1 => True, -- Defining_Identifier (Node1)
11597 2 => False, -- unused
11598 3 => True, -- Expression (Node3)
11599 4 => False, -- unused
11600 5 => True), -- Discriminant_Type (Node5)
11602 N_Index_Or_Discriminant_Constraint =>
11603 (1 => True, -- Constraints (List1)
11604 2 => False, -- unused
11605 3 => False, -- unused
11606 4 => False, -- unused
11607 5 => False), -- unused
11609 N_Discriminant_Association =>
11610 (1 => True, -- Selector_Names (List1)
11611 2 => False, -- unused
11612 3 => True, -- Expression (Node3)
11613 4 => False, -- unused
11614 5 => False), -- unused
11616 N_Record_Definition =>
11617 (1 => True, -- Component_List (Node1)
11618 2 => True, -- Interface_List (List2)
11619 3 => False, -- unused
11620 4 => True, -- End_Label (Node4)
11621 5 => False), -- unused
11623 N_Component_List =>
11624 (1 => False, -- unused
11625 2 => False, -- unused
11626 3 => True, -- Component_Items (List3)
11627 4 => True, -- Variant_Part (Node4)
11628 5 => False), -- unused
11630 N_Component_Declaration =>
11631 (1 => True, -- Defining_Identifier (Node1)
11632 2 => False, -- unused
11633 3 => True, -- Expression (Node3)
11634 4 => True, -- Component_Definition (Node4)
11635 5 => False), -- unused
11637 N_Variant_Part =>
11638 (1 => True, -- Variants (List1)
11639 2 => True, -- Name (Node2)
11640 3 => False, -- unused
11641 4 => False, -- unused
11642 5 => False), -- unused
11644 N_Variant =>
11645 (1 => True, -- Component_List (Node1)
11646 2 => False, -- Enclosing_Variant (Node2-Sem)
11647 3 => False, -- Present_Expr (Uint3-Sem)
11648 4 => True, -- Discrete_Choices (List4)
11649 5 => False), -- Dcheck_Function (Node5-Sem)
11651 N_Others_Choice =>
11652 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11653 2 => False, -- unused
11654 3 => False, -- unused
11655 4 => False, -- unused
11656 5 => False), -- unused
11658 N_Access_To_Object_Definition =>
11659 (1 => False, -- unused
11660 2 => False, -- unused
11661 3 => False, -- unused
11662 4 => False, -- unused
11663 5 => True), -- Subtype_Indication (Node5)
11665 N_Access_Function_Definition =>
11666 (1 => False, -- unused
11667 2 => False, -- unused
11668 3 => True, -- Parameter_Specifications (List3)
11669 4 => True, -- Result_Definition (Node4)
11670 5 => False), -- unused
11672 N_Access_Procedure_Definition =>
11673 (1 => False, -- unused
11674 2 => False, -- unused
11675 3 => True, -- Parameter_Specifications (List3)
11676 4 => False, -- unused
11677 5 => False), -- unused
11679 N_Access_Definition =>
11680 (1 => False, -- unused
11681 2 => False, -- unused
11682 3 => True, -- Access_To_Subprogram_Definition (Node3)
11683 4 => True, -- Subtype_Mark (Node4)
11684 5 => False), -- unused
11686 N_Incomplete_Type_Declaration =>
11687 (1 => True, -- Defining_Identifier (Node1)
11688 2 => False, -- unused
11689 3 => False, -- unused
11690 4 => True, -- Discriminant_Specifications (List4)
11691 5 => False), -- Premature_Use
11693 N_Explicit_Dereference =>
11694 (1 => False, -- unused
11695 2 => False, -- unused
11696 3 => True, -- Prefix (Node3)
11697 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11698 5 => False), -- Etype (Node5-Sem)
11700 N_Indexed_Component =>
11701 (1 => True, -- Expressions (List1)
11702 2 => False, -- unused
11703 3 => True, -- Prefix (Node3)
11704 4 => False, -- Generalized_Indexing (Node4-Sem)
11705 5 => False), -- Etype (Node5-Sem)
11707 N_Slice =>
11708 (1 => False, -- unused
11709 2 => False, -- unused
11710 3 => True, -- Prefix (Node3)
11711 4 => True, -- Discrete_Range (Node4)
11712 5 => False), -- Etype (Node5-Sem)
11714 N_Selected_Component =>
11715 (1 => False, -- unused
11716 2 => True, -- Selector_Name (Node2)
11717 3 => True, -- Prefix (Node3)
11718 4 => False, -- unused
11719 5 => False), -- Etype (Node5-Sem)
11721 N_Attribute_Reference =>
11722 (1 => True, -- Expressions (List1)
11723 2 => True, -- Attribute_Name (Name2)
11724 3 => True, -- Prefix (Node3)
11725 4 => False, -- Entity (Node4-Sem)
11726 5 => False), -- Etype (Node5-Sem)
11728 N_Aggregate =>
11729 (1 => True, -- Expressions (List1)
11730 2 => True, -- Component_Associations (List2)
11731 3 => False, -- Aggregate_Bounds (Node3-Sem)
11732 4 => False, -- unused
11733 5 => False), -- Etype (Node5-Sem)
11735 N_Component_Association =>
11736 (1 => True, -- Choices (List1)
11737 2 => False, -- Loop_Actions (List2-Sem)
11738 3 => True, -- Expression (Node3)
11739 4 => False, -- unused
11740 5 => False), -- unused
11742 N_Iterated_Component_Association =>
11743 (1 => True, -- Defining_Identifier (Node1)
11744 2 => False, -- unused
11745 3 => True, -- Expression (Node3)
11746 4 => True, -- Discrete_Choices (List4)
11747 5 => False), -- unused
11749 N_Delta_Aggregate =>
11750 (1 => False, -- Expressions (List1)
11751 2 => True, -- Component_Associations (List2)
11752 3 => True, -- Expression (Node3)
11753 4 => False, -- Unused
11754 5 => False), -- Etype (Node5-Sem)
11756 N_Extension_Aggregate =>
11757 (1 => True, -- Expressions (List1)
11758 2 => True, -- Component_Associations (List2)
11759 3 => True, -- Ancestor_Part (Node3)
11760 4 => False, -- unused
11761 5 => False), -- Etype (Node5-Sem)
11763 N_Null =>
11764 (1 => False, -- unused
11765 2 => False, -- unused
11766 3 => False, -- unused
11767 4 => False, -- unused
11768 5 => False), -- Etype (Node5-Sem)
11770 N_And_Then =>
11771 (1 => False, -- Actions (List1-Sem)
11772 2 => True, -- Left_Opnd (Node2)
11773 3 => True, -- Right_Opnd (Node3)
11774 4 => False, -- unused
11775 5 => False), -- Etype (Node5-Sem)
11777 N_Or_Else =>
11778 (1 => False, -- Actions (List1-Sem)
11779 2 => True, -- Left_Opnd (Node2)
11780 3 => True, -- Right_Opnd (Node3)
11781 4 => False, -- unused
11782 5 => False), -- Etype (Node5-Sem)
11784 N_In =>
11785 (1 => False, -- unused
11786 2 => True, -- Left_Opnd (Node2)
11787 3 => True, -- Right_Opnd (Node3)
11788 4 => True, -- Alternatives (List4)
11789 5 => False), -- Etype (Node5-Sem)
11791 N_Not_In =>
11792 (1 => False, -- unused
11793 2 => True, -- Left_Opnd (Node2)
11794 3 => True, -- Right_Opnd (Node3)
11795 4 => True, -- Alternatives (List4)
11796 5 => False), -- Etype (Node5-Sem)
11798 N_Op_And =>
11799 (1 => True, -- Chars (Name1)
11800 2 => True, -- Left_Opnd (Node2)
11801 3 => True, -- Right_Opnd (Node3)
11802 4 => False, -- Entity (Node4-Sem)
11803 5 => False), -- Etype (Node5-Sem)
11805 N_Op_Or =>
11806 (1 => True, -- Chars (Name1)
11807 2 => True, -- Left_Opnd (Node2)
11808 3 => True, -- Right_Opnd (Node3)
11809 4 => False, -- Entity (Node4-Sem)
11810 5 => False), -- Etype (Node5-Sem)
11812 N_Op_Xor =>
11813 (1 => True, -- Chars (Name1)
11814 2 => True, -- Left_Opnd (Node2)
11815 3 => True, -- Right_Opnd (Node3)
11816 4 => False, -- Entity (Node4-Sem)
11817 5 => False), -- Etype (Node5-Sem)
11819 N_Op_Eq =>
11820 (1 => True, -- Chars (Name1)
11821 2 => True, -- Left_Opnd (Node2)
11822 3 => True, -- Right_Opnd (Node3)
11823 4 => False, -- Entity (Node4-Sem)
11824 5 => False), -- Etype (Node5-Sem)
11826 N_Op_Ne =>
11827 (1 => True, -- Chars (Name1)
11828 2 => True, -- Left_Opnd (Node2)
11829 3 => True, -- Right_Opnd (Node3)
11830 4 => False, -- Entity (Node4-Sem)
11831 5 => False), -- Etype (Node5-Sem)
11833 N_Op_Lt =>
11834 (1 => True, -- Chars (Name1)
11835 2 => True, -- Left_Opnd (Node2)
11836 3 => True, -- Right_Opnd (Node3)
11837 4 => False, -- Entity (Node4-Sem)
11838 5 => False), -- Etype (Node5-Sem)
11840 N_Op_Le =>
11841 (1 => True, -- Chars (Name1)
11842 2 => True, -- Left_Opnd (Node2)
11843 3 => True, -- Right_Opnd (Node3)
11844 4 => False, -- Entity (Node4-Sem)
11845 5 => False), -- Etype (Node5-Sem)
11847 N_Op_Gt =>
11848 (1 => True, -- Chars (Name1)
11849 2 => True, -- Left_Opnd (Node2)
11850 3 => True, -- Right_Opnd (Node3)
11851 4 => False, -- Entity (Node4-Sem)
11852 5 => False), -- Etype (Node5-Sem)
11854 N_Op_Ge =>
11855 (1 => True, -- Chars (Name1)
11856 2 => True, -- Left_Opnd (Node2)
11857 3 => True, -- Right_Opnd (Node3)
11858 4 => False, -- Entity (Node4-Sem)
11859 5 => False), -- Etype (Node5-Sem)
11861 N_Op_Add =>
11862 (1 => True, -- Chars (Name1)
11863 2 => True, -- Left_Opnd (Node2)
11864 3 => True, -- Right_Opnd (Node3)
11865 4 => False, -- Entity (Node4-Sem)
11866 5 => False), -- Etype (Node5-Sem)
11868 N_Op_Subtract =>
11869 (1 => True, -- Chars (Name1)
11870 2 => True, -- Left_Opnd (Node2)
11871 3 => True, -- Right_Opnd (Node3)
11872 4 => False, -- Entity (Node4-Sem)
11873 5 => False), -- Etype (Node5-Sem)
11875 N_Op_Concat =>
11876 (1 => True, -- Chars (Name1)
11877 2 => True, -- Left_Opnd (Node2)
11878 3 => True, -- Right_Opnd (Node3)
11879 4 => False, -- Entity (Node4-Sem)
11880 5 => False), -- Etype (Node5-Sem)
11882 N_Op_Multiply =>
11883 (1 => True, -- Chars (Name1)
11884 2 => True, -- Left_Opnd (Node2)
11885 3 => True, -- Right_Opnd (Node3)
11886 4 => False, -- Entity (Node4-Sem)
11887 5 => False), -- Etype (Node5-Sem)
11889 N_Op_Divide =>
11890 (1 => True, -- Chars (Name1)
11891 2 => True, -- Left_Opnd (Node2)
11892 3 => True, -- Right_Opnd (Node3)
11893 4 => False, -- Entity (Node4-Sem)
11894 5 => False), -- Etype (Node5-Sem)
11896 N_Op_Mod =>
11897 (1 => True, -- Chars (Name1)
11898 2 => True, -- Left_Opnd (Node2)
11899 3 => True, -- Right_Opnd (Node3)
11900 4 => False, -- Entity (Node4-Sem)
11901 5 => False), -- Etype (Node5-Sem)
11903 N_Op_Rem =>
11904 (1 => True, -- Chars (Name1)
11905 2 => True, -- Left_Opnd (Node2)
11906 3 => True, -- Right_Opnd (Node3)
11907 4 => False, -- Entity (Node4-Sem)
11908 5 => False), -- Etype (Node5-Sem)
11910 N_Op_Expon =>
11911 (1 => True, -- Chars (Name1)
11912 2 => True, -- Left_Opnd (Node2)
11913 3 => True, -- Right_Opnd (Node3)
11914 4 => False, -- Entity (Node4-Sem)
11915 5 => False), -- Etype (Node5-Sem)
11917 N_Op_Plus =>
11918 (1 => True, -- Chars (Name1)
11919 2 => False, -- unused
11920 3 => True, -- Right_Opnd (Node3)
11921 4 => False, -- Entity (Node4-Sem)
11922 5 => False), -- Etype (Node5-Sem)
11924 N_Op_Minus =>
11925 (1 => True, -- Chars (Name1)
11926 2 => False, -- unused
11927 3 => True, -- Right_Opnd (Node3)
11928 4 => False, -- Entity (Node4-Sem)
11929 5 => False), -- Etype (Node5-Sem)
11931 N_Op_Abs =>
11932 (1 => True, -- Chars (Name1)
11933 2 => False, -- unused
11934 3 => True, -- Right_Opnd (Node3)
11935 4 => False, -- Entity (Node4-Sem)
11936 5 => False), -- Etype (Node5-Sem)
11938 N_Op_Not =>
11939 (1 => True, -- Chars (Name1)
11940 2 => False, -- unused
11941 3 => True, -- Right_Opnd (Node3)
11942 4 => False, -- Entity (Node4-Sem)
11943 5 => False), -- Etype (Node5-Sem)
11945 N_Type_Conversion =>
11946 (1 => False, -- unused
11947 2 => False, -- unused
11948 3 => True, -- Expression (Node3)
11949 4 => True, -- Subtype_Mark (Node4)
11950 5 => False), -- Etype (Node5-Sem)
11952 N_Qualified_Expression =>
11953 (1 => False, -- unused
11954 2 => False, -- unused
11955 3 => True, -- Expression (Node3)
11956 4 => True, -- Subtype_Mark (Node4)
11957 5 => False), -- Etype (Node5-Sem)
11959 N_Quantified_Expression =>
11960 (1 => True, -- Condition (Node1)
11961 2 => True, -- Iterator_Specification
11962 3 => False, -- unused
11963 4 => True, -- Loop_Parameter_Specification (Node4)
11964 5 => False), -- Etype (Node5-Sem)
11966 N_Allocator =>
11967 (1 => False, -- Storage_Pool (Node1-Sem)
11968 2 => False, -- Procedure_To_Call (Node2-Sem)
11969 3 => True, -- Expression (Node3)
11970 4 => True, -- Subpool_Handle_Name (Node4)
11971 5 => False), -- Etype (Node5-Sem)
11973 N_Null_Statement =>
11974 (1 => False, -- unused
11975 2 => False, -- unused
11976 3 => False, -- unused
11977 4 => False, -- unused
11978 5 => False), -- unused
11980 N_Label =>
11981 (1 => True, -- Identifier (Node1)
11982 2 => False, -- unused
11983 3 => False, -- unused
11984 4 => False, -- unused
11985 5 => False), -- unused
11987 N_Assignment_Statement =>
11988 (1 => False, -- unused
11989 2 => True, -- Name (Node2)
11990 3 => True, -- Expression (Node3)
11991 4 => False, -- unused
11992 5 => False), -- unused
11994 N_Target_Name =>
11995 (1 => False, -- unused
11996 2 => False, -- unused
11997 3 => False, -- unused
11998 4 => False, -- unused
11999 5 => False), -- Etype (Node5-Sem)
12001 N_If_Statement =>
12002 (1 => True, -- Condition (Node1)
12003 2 => True, -- Then_Statements (List2)
12004 3 => True, -- Elsif_Parts (List3)
12005 4 => True, -- Else_Statements (List4)
12006 5 => True), -- End_Span (Uint5)
12008 N_Elsif_Part =>
12009 (1 => True, -- Condition (Node1)
12010 2 => True, -- Then_Statements (List2)
12011 3 => False, -- Condition_Actions (List3-Sem)
12012 4 => False, -- unused
12013 5 => False), -- unused
12015 N_Case_Expression =>
12016 (1 => False, -- unused
12017 2 => False, -- unused
12018 3 => True, -- Expression (Node3)
12019 4 => True, -- Alternatives (List4)
12020 5 => False), -- unused
12022 N_Case_Expression_Alternative =>
12023 (1 => False, -- Actions (List1-Sem)
12024 2 => False, -- unused
12025 3 => True, -- Expression (Node3)
12026 4 => True, -- Discrete_Choices (List4)
12027 5 => False), -- unused
12029 N_Case_Statement =>
12030 (1 => False, -- unused
12031 2 => False, -- unused
12032 3 => True, -- Expression (Node3)
12033 4 => True, -- Alternatives (List4)
12034 5 => True), -- End_Span (Uint5)
12036 N_Case_Statement_Alternative =>
12037 (1 => False, -- unused
12038 2 => False, -- unused
12039 3 => True, -- Statements (List3)
12040 4 => True, -- Discrete_Choices (List4)
12041 5 => False), -- unused
12043 N_Loop_Statement =>
12044 (1 => True, -- Identifier (Node1)
12045 2 => True, -- Iteration_Scheme (Node2)
12046 3 => True, -- Statements (List3)
12047 4 => True, -- End_Label (Node4)
12048 5 => False), -- unused
12050 N_Iteration_Scheme =>
12051 (1 => True, -- Condition (Node1)
12052 2 => True, -- Iterator_Specification (Node2)
12053 3 => False, -- Condition_Actions (List3-Sem)
12054 4 => True, -- Loop_Parameter_Specification (Node4)
12055 5 => False), -- unused
12057 N_Loop_Parameter_Specification =>
12058 (1 => True, -- Defining_Identifier (Node1)
12059 2 => False, -- unused
12060 3 => False, -- unused
12061 4 => True, -- Discrete_Subtype_Definition (Node4)
12062 5 => False), -- unused
12064 N_Iterator_Specification =>
12065 (1 => True, -- Defining_Identifier (Node1)
12066 2 => True, -- Name (Node2)
12067 3 => False, -- Unused
12068 4 => False, -- Unused
12069 5 => True), -- Subtype_Indication (Node5)
12071 N_Block_Statement =>
12072 (1 => True, -- Identifier (Node1)
12073 2 => True, -- Declarations (List2)
12074 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12075 4 => True, -- Handled_Statement_Sequence (Node4)
12076 5 => False), -- unused
12078 N_Exit_Statement =>
12079 (1 => True, -- Condition (Node1)
12080 2 => True, -- Name (Node2)
12081 3 => False, -- unused
12082 4 => False, -- unused
12083 5 => False), -- unused
12085 N_Goto_Statement =>
12086 (1 => False, -- unused
12087 2 => True, -- Name (Node2)
12088 3 => False, -- unused
12089 4 => False, -- unused
12090 5 => False), -- unused
12092 N_Subprogram_Declaration =>
12093 (1 => True, -- Specification (Node1)
12094 2 => False, -- unused
12095 3 => False, -- Body_To_Inline (Node3-Sem)
12096 4 => False, -- Parent_Spec (Node4-Sem)
12097 5 => False), -- Corresponding_Body (Node5-Sem)
12099 N_Abstract_Subprogram_Declaration =>
12100 (1 => True, -- Specification (Node1)
12101 2 => False, -- unused
12102 3 => False, -- unused
12103 4 => False, -- unused
12104 5 => False), -- unused
12106 N_Function_Specification =>
12107 (1 => True, -- Defining_Unit_Name (Node1)
12108 2 => False, -- unused
12109 3 => True, -- Parameter_Specifications (List3)
12110 4 => True, -- Result_Definition (Node4)
12111 5 => False), -- Generic_Parent (Node5-Sem)
12113 N_Procedure_Specification =>
12114 (1 => True, -- Defining_Unit_Name (Node1)
12115 2 => False, -- Null_Statement (Node2-Sem)
12116 3 => True, -- Parameter_Specifications (List3)
12117 4 => False, -- unused
12118 5 => False), -- Generic_Parent (Node5-Sem)
12120 N_Designator =>
12121 (1 => True, -- Identifier (Node1)
12122 2 => True, -- Name (Node2)
12123 3 => False, -- unused
12124 4 => False, -- unused
12125 5 => False), -- unused
12127 N_Defining_Program_Unit_Name =>
12128 (1 => True, -- Defining_Identifier (Node1)
12129 2 => True, -- Name (Node2)
12130 3 => False, -- unused
12131 4 => False, -- unused
12132 5 => False), -- unused
12134 N_Operator_Symbol =>
12135 (1 => True, -- Chars (Name1)
12136 2 => False, -- unused
12137 3 => True, -- Strval (Str3)
12138 4 => False, -- Entity (Node4-Sem)
12139 5 => False), -- Etype (Node5-Sem)
12141 N_Defining_Operator_Symbol =>
12142 (1 => True, -- Chars (Name1)
12143 2 => False, -- Next_Entity (Node2-Sem)
12144 3 => False, -- Scope (Node3-Sem)
12145 4 => False, -- unused
12146 5 => False), -- Etype (Node5-Sem)
12148 N_Parameter_Specification =>
12149 (1 => True, -- Defining_Identifier (Node1)
12150 2 => True, -- Parameter_Type (Node2)
12151 3 => True, -- Expression (Node3)
12152 4 => False, -- unused
12153 5 => False), -- Default_Expression (Node5-Sem)
12155 N_Subprogram_Body =>
12156 (1 => True, -- Specification (Node1)
12157 2 => True, -- Declarations (List2)
12158 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12159 4 => True, -- Handled_Statement_Sequence (Node4)
12160 5 => False), -- Corresponding_Spec (Node5-Sem)
12162 N_Expression_Function =>
12163 (1 => True, -- Specification (Node1)
12164 2 => False, -- unused
12165 3 => True, -- Expression (Node3)
12166 4 => False, -- unused
12167 5 => False), -- unused
12169 N_Procedure_Call_Statement =>
12170 (1 => False, -- Controlling_Argument (Node1-Sem)
12171 2 => True, -- Name (Node2)
12172 3 => True, -- Parameter_Associations (List3)
12173 4 => False, -- First_Named_Actual (Node4-Sem)
12174 5 => False), -- Etype (Node5-Sem)
12176 N_Function_Call =>
12177 (1 => False, -- Controlling_Argument (Node1-Sem)
12178 2 => True, -- Name (Node2)
12179 3 => True, -- Parameter_Associations (List3)
12180 4 => False, -- First_Named_Actual (Node4-Sem)
12181 5 => False), -- Etype (Node5-Sem)
12183 N_Parameter_Association =>
12184 (1 => False, -- unused
12185 2 => True, -- Selector_Name (Node2)
12186 3 => True, -- Explicit_Actual_Parameter (Node3)
12187 4 => False, -- Next_Named_Actual (Node4-Sem)
12188 5 => False), -- unused
12190 N_Simple_Return_Statement =>
12191 (1 => False, -- Storage_Pool (Node1-Sem)
12192 2 => False, -- Procedure_To_Call (Node2-Sem)
12193 3 => True, -- Expression (Node3)
12194 4 => False, -- unused
12195 5 => False), -- Return_Statement_Entity (Node5-Sem)
12197 N_Extended_Return_Statement =>
12198 (1 => False, -- Storage_Pool (Node1-Sem)
12199 2 => False, -- Procedure_To_Call (Node2-Sem)
12200 3 => True, -- Return_Object_Declarations (List3)
12201 4 => True, -- Handled_Statement_Sequence (Node4)
12202 5 => False), -- Return_Statement_Entity (Node5-Sem)
12204 N_Package_Declaration =>
12205 (1 => True, -- Specification (Node1)
12206 2 => False, -- unused
12207 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12208 4 => False, -- Parent_Spec (Node4-Sem)
12209 5 => False), -- Corresponding_Body (Node5-Sem)
12211 N_Package_Specification =>
12212 (1 => True, -- Defining_Unit_Name (Node1)
12213 2 => True, -- Visible_Declarations (List2)
12214 3 => True, -- Private_Declarations (List3)
12215 4 => True, -- End_Label (Node4)
12216 5 => False), -- Generic_Parent (Node5-Sem)
12218 N_Package_Body =>
12219 (1 => True, -- Defining_Unit_Name (Node1)
12220 2 => True, -- Declarations (List2)
12221 3 => False, -- unused
12222 4 => True, -- Handled_Statement_Sequence (Node4)
12223 5 => False), -- Corresponding_Spec (Node5-Sem)
12225 N_Private_Type_Declaration =>
12226 (1 => True, -- Defining_Identifier (Node1)
12227 2 => False, -- unused
12228 3 => False, -- unused
12229 4 => True, -- Discriminant_Specifications (List4)
12230 5 => False), -- unused
12232 N_Private_Extension_Declaration =>
12233 (1 => True, -- Defining_Identifier (Node1)
12234 2 => True, -- Interface_List (List2)
12235 3 => False, -- unused
12236 4 => True, -- Discriminant_Specifications (List4)
12237 5 => True), -- Subtype_Indication (Node5)
12239 N_Use_Package_Clause =>
12240 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12241 2 => True, -- Name (Node2)
12242 3 => False, -- Next_Use_Clause (Node3-Sem)
12243 4 => False, -- Associated_Node (Node4-Sem)
12244 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12246 N_Use_Type_Clause =>
12247 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12248 2 => False, -- Used_Operations (Elist2-Sem)
12249 3 => False, -- Next_Use_Clause (Node3-Sem)
12250 4 => True, -- Subtype_Mark (Node4)
12251 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12253 N_Object_Renaming_Declaration =>
12254 (1 => True, -- Defining_Identifier (Node1)
12255 2 => True, -- Name (Node2)
12256 3 => True, -- Access_Definition (Node3)
12257 4 => True, -- Subtype_Mark (Node4)
12258 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12260 N_Exception_Renaming_Declaration =>
12261 (1 => True, -- Defining_Identifier (Node1)
12262 2 => True, -- Name (Node2)
12263 3 => False, -- unused
12264 4 => False, -- unused
12265 5 => False), -- unused
12267 N_Package_Renaming_Declaration =>
12268 (1 => True, -- Defining_Unit_Name (Node1)
12269 2 => True, -- Name (Node2)
12270 3 => False, -- unused
12271 4 => False, -- Parent_Spec (Node4-Sem)
12272 5 => False), -- unused
12274 N_Subprogram_Renaming_Declaration =>
12275 (1 => True, -- Specification (Node1)
12276 2 => True, -- Name (Node2)
12277 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12278 4 => False, -- Parent_Spec (Node4-Sem)
12279 5 => False), -- Corresponding_Spec (Node5-Sem)
12281 N_Generic_Package_Renaming_Declaration =>
12282 (1 => True, -- Defining_Unit_Name (Node1)
12283 2 => True, -- Name (Node2)
12284 3 => False, -- unused
12285 4 => False, -- Parent_Spec (Node4-Sem)
12286 5 => False), -- unused
12288 N_Generic_Procedure_Renaming_Declaration =>
12289 (1 => True, -- Defining_Unit_Name (Node1)
12290 2 => True, -- Name (Node2)
12291 3 => False, -- unused
12292 4 => False, -- Parent_Spec (Node4-Sem)
12293 5 => False), -- unused
12295 N_Generic_Function_Renaming_Declaration =>
12296 (1 => True, -- Defining_Unit_Name (Node1)
12297 2 => True, -- Name (Node2)
12298 3 => False, -- unused
12299 4 => False, -- Parent_Spec (Node4-Sem)
12300 5 => False), -- unused
12302 N_Task_Type_Declaration =>
12303 (1 => True, -- Defining_Identifier (Node1)
12304 2 => True, -- Interface_List (List2)
12305 3 => True, -- Task_Definition (Node3)
12306 4 => True, -- Discriminant_Specifications (List4)
12307 5 => False), -- Corresponding_Body (Node5-Sem)
12309 N_Single_Task_Declaration =>
12310 (1 => True, -- Defining_Identifier (Node1)
12311 2 => True, -- Interface_List (List2)
12312 3 => True, -- Task_Definition (Node3)
12313 4 => False, -- unused
12314 5 => False), -- unused
12316 N_Task_Definition =>
12317 (1 => False, -- unused
12318 2 => True, -- Visible_Declarations (List2)
12319 3 => True, -- Private_Declarations (List3)
12320 4 => True, -- End_Label (Node4)
12321 5 => False), -- unused
12323 N_Task_Body =>
12324 (1 => True, -- Defining_Identifier (Node1)
12325 2 => True, -- Declarations (List2)
12326 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12327 4 => True, -- Handled_Statement_Sequence (Node4)
12328 5 => False), -- Corresponding_Spec (Node5-Sem)
12330 N_Protected_Type_Declaration =>
12331 (1 => True, -- Defining_Identifier (Node1)
12332 2 => True, -- Interface_List (List2)
12333 3 => True, -- Protected_Definition (Node3)
12334 4 => True, -- Discriminant_Specifications (List4)
12335 5 => False), -- Corresponding_Body (Node5-Sem)
12337 N_Single_Protected_Declaration =>
12338 (1 => True, -- Defining_Identifier (Node1)
12339 2 => True, -- Interface_List (List2)
12340 3 => True, -- Protected_Definition (Node3)
12341 4 => False, -- unused
12342 5 => False), -- unused
12344 N_Protected_Definition =>
12345 (1 => False, -- unused
12346 2 => True, -- Visible_Declarations (List2)
12347 3 => True, -- Private_Declarations (List3)
12348 4 => True, -- End_Label (Node4)
12349 5 => False), -- unused
12351 N_Protected_Body =>
12352 (1 => True, -- Defining_Identifier (Node1)
12353 2 => True, -- Declarations (List2)
12354 3 => False, -- unused
12355 4 => True, -- End_Label (Node4)
12356 5 => False), -- Corresponding_Spec (Node5-Sem)
12358 N_Entry_Declaration =>
12359 (1 => True, -- Defining_Identifier (Node1)
12360 2 => False, -- unused
12361 3 => True, -- Parameter_Specifications (List3)
12362 4 => True, -- Discrete_Subtype_Definition (Node4)
12363 5 => False), -- Corresponding_Body (Node5-Sem)
12365 N_Accept_Statement =>
12366 (1 => True, -- Entry_Direct_Name (Node1)
12367 2 => True, -- Declarations (List2)
12368 3 => True, -- Parameter_Specifications (List3)
12369 4 => True, -- Handled_Statement_Sequence (Node4)
12370 5 => True), -- Entry_Index (Node5)
12372 N_Entry_Body =>
12373 (1 => True, -- Defining_Identifier (Node1)
12374 2 => True, -- Declarations (List2)
12375 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12376 4 => True, -- Handled_Statement_Sequence (Node4)
12377 5 => True), -- Entry_Body_Formal_Part (Node5)
12379 N_Entry_Body_Formal_Part =>
12380 (1 => True, -- Condition (Node1)
12381 2 => False, -- unused
12382 3 => True, -- Parameter_Specifications (List3)
12383 4 => True, -- Entry_Index_Specification (Node4)
12384 5 => False), -- unused
12386 N_Entry_Index_Specification =>
12387 (1 => True, -- Defining_Identifier (Node1)
12388 2 => False, -- unused
12389 3 => False, -- unused
12390 4 => True, -- Discrete_Subtype_Definition (Node4)
12391 5 => False), -- unused
12393 N_Entry_Call_Statement =>
12394 (1 => False, -- unused
12395 2 => True, -- Name (Node2)
12396 3 => True, -- Parameter_Associations (List3)
12397 4 => False, -- First_Named_Actual (Node4-Sem)
12398 5 => False), -- unused
12400 N_Requeue_Statement =>
12401 (1 => False, -- unused
12402 2 => True, -- Name (Node2)
12403 3 => False, -- unused
12404 4 => False, -- unused
12405 5 => False), -- unused
12407 N_Delay_Until_Statement =>
12408 (1 => False, -- unused
12409 2 => False, -- unused
12410 3 => True, -- Expression (Node3)
12411 4 => False, -- unused
12412 5 => False), -- unused
12414 N_Delay_Relative_Statement =>
12415 (1 => False, -- unused
12416 2 => False, -- unused
12417 3 => True, -- Expression (Node3)
12418 4 => False, -- unused
12419 5 => False), -- unused
12421 N_Selective_Accept =>
12422 (1 => True, -- Select_Alternatives (List1)
12423 2 => False, -- unused
12424 3 => False, -- unused
12425 4 => True, -- Else_Statements (List4)
12426 5 => False), -- unused
12428 N_Accept_Alternative =>
12429 (1 => True, -- Condition (Node1)
12430 2 => True, -- Accept_Statement (Node2)
12431 3 => True, -- Statements (List3)
12432 4 => True, -- Pragmas_Before (List4)
12433 5 => False), -- Accept_Handler_Records (List5-Sem)
12435 N_Delay_Alternative =>
12436 (1 => True, -- Condition (Node1)
12437 2 => True, -- Delay_Statement (Node2)
12438 3 => True, -- Statements (List3)
12439 4 => True, -- Pragmas_Before (List4)
12440 5 => False), -- unused
12442 N_Terminate_Alternative =>
12443 (1 => True, -- Condition (Node1)
12444 2 => False, -- unused
12445 3 => False, -- unused
12446 4 => True, -- Pragmas_Before (List4)
12447 5 => True), -- Pragmas_After (List5)
12449 N_Timed_Entry_Call =>
12450 (1 => True, -- Entry_Call_Alternative (Node1)
12451 2 => False, -- unused
12452 3 => False, -- unused
12453 4 => True, -- Delay_Alternative (Node4)
12454 5 => False), -- unused
12456 N_Entry_Call_Alternative =>
12457 (1 => True, -- Entry_Call_Statement (Node1)
12458 2 => False, -- unused
12459 3 => True, -- Statements (List3)
12460 4 => True, -- Pragmas_Before (List4)
12461 5 => False), -- unused
12463 N_Conditional_Entry_Call =>
12464 (1 => True, -- Entry_Call_Alternative (Node1)
12465 2 => False, -- unused
12466 3 => False, -- unused
12467 4 => True, -- Else_Statements (List4)
12468 5 => False), -- unused
12470 N_Asynchronous_Select =>
12471 (1 => True, -- Triggering_Alternative (Node1)
12472 2 => True, -- Abortable_Part (Node2)
12473 3 => False, -- unused
12474 4 => False, -- unused
12475 5 => False), -- unused
12477 N_Triggering_Alternative =>
12478 (1 => True, -- Triggering_Statement (Node1)
12479 2 => False, -- unused
12480 3 => True, -- Statements (List3)
12481 4 => True, -- Pragmas_Before (List4)
12482 5 => False), -- unused
12484 N_Abortable_Part =>
12485 (1 => False, -- unused
12486 2 => False, -- unused
12487 3 => True, -- Statements (List3)
12488 4 => False, -- unused
12489 5 => False), -- unused
12491 N_Abort_Statement =>
12492 (1 => False, -- unused
12493 2 => True, -- Names (List2)
12494 3 => False, -- unused
12495 4 => False, -- unused
12496 5 => False), -- unused
12498 N_Compilation_Unit =>
12499 (1 => True, -- Context_Items (List1)
12500 2 => True, -- Unit (Node2)
12501 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12502 4 => False, -- Library_Unit (Node4-Sem)
12503 5 => True), -- Aux_Decls_Node (Node5)
12505 N_Compilation_Unit_Aux =>
12506 (1 => True, -- Actions (List1)
12507 2 => True, -- Declarations (List2)
12508 3 => False, -- Default_Storage_Pool (Node3)
12509 4 => True, -- Config_Pragmas (List4)
12510 5 => True), -- Pragmas_After (List5)
12512 N_With_Clause =>
12513 (1 => False, -- unused
12514 2 => True, -- Name (Node2)
12515 3 => False, -- unused
12516 4 => False, -- Library_Unit (Node4-Sem)
12517 5 => False), -- Corresponding_Spec (Node5-Sem)
12519 N_Subprogram_Body_Stub =>
12520 (1 => True, -- Specification (Node1)
12521 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12522 3 => False, -- unused
12523 4 => False, -- Library_Unit (Node4-Sem)
12524 5 => False), -- Corresponding_Body (Node5-Sem)
12526 N_Package_Body_Stub =>
12527 (1 => True, -- Defining_Identifier (Node1)
12528 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12529 3 => False, -- unused
12530 4 => False, -- Library_Unit (Node4-Sem)
12531 5 => False), -- Corresponding_Body (Node5-Sem)
12533 N_Task_Body_Stub =>
12534 (1 => True, -- Defining_Identifier (Node1)
12535 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12536 3 => False, -- unused
12537 4 => False, -- Library_Unit (Node4-Sem)
12538 5 => False), -- Corresponding_Body (Node5-Sem)
12540 N_Protected_Body_Stub =>
12541 (1 => True, -- Defining_Identifier (Node1)
12542 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12543 3 => False, -- unused
12544 4 => False, -- Library_Unit (Node4-Sem)
12545 5 => False), -- Corresponding_Body (Node5-Sem)
12547 N_Subunit =>
12548 (1 => True, -- Proper_Body (Node1)
12549 2 => True, -- Name (Node2)
12550 3 => False, -- Corresponding_Stub (Node3-Sem)
12551 4 => False, -- unused
12552 5 => False), -- unused
12554 N_Exception_Declaration =>
12555 (1 => True, -- Defining_Identifier (Node1)
12556 2 => False, -- unused
12557 3 => False, -- Expression (Node3-Sem)
12558 4 => False, -- unused
12559 5 => False), -- unused
12561 N_Handled_Sequence_Of_Statements =>
12562 (1 => True, -- At_End_Proc (Node1)
12563 2 => False, -- First_Real_Statement (Node2-Sem)
12564 3 => True, -- Statements (List3)
12565 4 => True, -- End_Label (Node4)
12566 5 => True), -- Exception_Handlers (List5)
12568 N_Exception_Handler =>
12569 (1 => False, -- Local_Raise_Statements (Elist1)
12570 2 => True, -- Choice_Parameter (Node2)
12571 3 => True, -- Statements (List3)
12572 4 => True, -- Exception_Choices (List4)
12573 5 => False), -- Exception_Label (Node5)
12575 N_Raise_Statement =>
12576 (1 => False, -- unused
12577 2 => True, -- Name (Node2)
12578 3 => True, -- Expression (Node3)
12579 4 => False, -- unused
12580 5 => False), -- unused
12582 N_Raise_Expression =>
12583 (1 => False, -- unused
12584 2 => True, -- Name (Node2)
12585 3 => True, -- Expression (Node3)
12586 4 => False, -- unused
12587 5 => False), -- Etype (Node5-Sem)
12589 N_Generic_Subprogram_Declaration =>
12590 (1 => True, -- Specification (Node1)
12591 2 => True, -- Generic_Formal_Declarations (List2)
12592 3 => False, -- unused
12593 4 => False, -- Parent_Spec (Node4-Sem)
12594 5 => False), -- Corresponding_Body (Node5-Sem)
12596 N_Generic_Package_Declaration =>
12597 (1 => True, -- Specification (Node1)
12598 2 => True, -- Generic_Formal_Declarations (List2)
12599 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12600 4 => False, -- Parent_Spec (Node4-Sem)
12601 5 => False), -- Corresponding_Body (Node5-Sem)
12603 N_Package_Instantiation =>
12604 (1 => True, -- Defining_Unit_Name (Node1)
12605 2 => True, -- Name (Node2)
12606 3 => True, -- Generic_Associations (List3)
12607 4 => False, -- Parent_Spec (Node4-Sem)
12608 5 => False), -- Instance_Spec (Node5-Sem)
12610 N_Procedure_Instantiation =>
12611 (1 => True, -- Defining_Unit_Name (Node1)
12612 2 => True, -- Name (Node2)
12613 3 => True, -- Generic_Associations (List3)
12614 4 => False, -- Parent_Spec (Node4-Sem)
12615 5 => False), -- Instance_Spec (Node5-Sem)
12617 N_Function_Instantiation =>
12618 (1 => True, -- Defining_Unit_Name (Node1)
12619 2 => True, -- Name (Node2)
12620 3 => True, -- Generic_Associations (List3)
12621 4 => False, -- Parent_Spec (Node4-Sem)
12622 5 => False), -- Instance_Spec (Node5-Sem)
12624 N_Generic_Association =>
12625 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12626 2 => True, -- Selector_Name (Node2)
12627 3 => False, -- unused
12628 4 => False, -- unused
12629 5 => False), -- unused
12631 N_Formal_Object_Declaration =>
12632 (1 => True, -- Defining_Identifier (Node1)
12633 2 => False, -- unused
12634 3 => True, -- Access_Definition (Node3)
12635 4 => True, -- Subtype_Mark (Node4)
12636 5 => True), -- Default_Expression (Node5)
12638 N_Formal_Type_Declaration =>
12639 (1 => True, -- Defining_Identifier (Node1)
12640 2 => False, -- unused
12641 3 => True, -- Formal_Type_Definition (Node3)
12642 4 => True, -- Discriminant_Specifications (List4)
12643 5 => False), -- unused
12645 N_Formal_Private_Type_Definition =>
12646 (1 => False, -- unused
12647 2 => False, -- unused
12648 3 => False, -- unused
12649 4 => False, -- unused
12650 5 => False), -- unused
12652 N_Formal_Incomplete_Type_Definition =>
12653 (1 => False, -- unused
12654 2 => False, -- unused
12655 3 => False, -- unused
12656 4 => False, -- unused
12657 5 => False), -- unused
12659 N_Formal_Derived_Type_Definition =>
12660 (1 => False, -- unused
12661 2 => True, -- Interface_List (List2)
12662 3 => False, -- unused
12663 4 => True, -- Subtype_Mark (Node4)
12664 5 => False), -- unused
12666 N_Formal_Discrete_Type_Definition =>
12667 (1 => False, -- unused
12668 2 => False, -- unused
12669 3 => False, -- unused
12670 4 => False, -- unused
12671 5 => False), -- unused
12673 N_Formal_Signed_Integer_Type_Definition =>
12674 (1 => False, -- unused
12675 2 => False, -- unused
12676 3 => False, -- unused
12677 4 => False, -- unused
12678 5 => False), -- unused
12680 N_Formal_Modular_Type_Definition =>
12681 (1 => False, -- unused
12682 2 => False, -- unused
12683 3 => False, -- unused
12684 4 => False, -- unused
12685 5 => False), -- unused
12687 N_Formal_Floating_Point_Definition =>
12688 (1 => False, -- unused
12689 2 => False, -- unused
12690 3 => False, -- unused
12691 4 => False, -- unused
12692 5 => False), -- unused
12694 N_Formal_Ordinary_Fixed_Point_Definition =>
12695 (1 => False, -- unused
12696 2 => False, -- unused
12697 3 => False, -- unused
12698 4 => False, -- unused
12699 5 => False), -- unused
12701 N_Formal_Decimal_Fixed_Point_Definition =>
12702 (1 => False, -- unused
12703 2 => False, -- unused
12704 3 => False, -- unused
12705 4 => False, -- unused
12706 5 => False), -- unused
12708 N_Formal_Concrete_Subprogram_Declaration =>
12709 (1 => True, -- Specification (Node1)
12710 2 => True, -- Default_Name (Node2)
12711 3 => False, -- unused
12712 4 => False, -- unused
12713 5 => False), -- unused
12715 N_Formal_Abstract_Subprogram_Declaration =>
12716 (1 => True, -- Specification (Node1)
12717 2 => True, -- Default_Name (Node2)
12718 3 => False, -- unused
12719 4 => False, -- unused
12720 5 => False), -- unused
12722 N_Formal_Package_Declaration =>
12723 (1 => True, -- Defining_Identifier (Node1)
12724 2 => True, -- Name (Node2)
12725 3 => True, -- Generic_Associations (List3)
12726 4 => False, -- unused
12727 5 => False), -- Instance_Spec (Node5-Sem)
12729 N_Attribute_Definition_Clause =>
12730 (1 => True, -- Chars (Name1)
12731 2 => True, -- Name (Node2)
12732 3 => True, -- Expression (Node3)
12733 4 => False, -- unused
12734 5 => False), -- Next_Rep_Item (Node5-Sem)
12736 N_Aspect_Specification =>
12737 (1 => True, -- Identifier (Node1)
12738 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12739 3 => True, -- Expression (Node3)
12740 4 => False, -- Entity (Node4-Sem)
12741 5 => False), -- Next_Rep_Item (Node5-Sem)
12743 N_Enumeration_Representation_Clause =>
12744 (1 => True, -- Identifier (Node1)
12745 2 => False, -- unused
12746 3 => True, -- Array_Aggregate (Node3)
12747 4 => False, -- unused
12748 5 => False), -- Next_Rep_Item (Node5-Sem)
12750 N_Record_Representation_Clause =>
12751 (1 => True, -- Identifier (Node1)
12752 2 => True, -- Mod_Clause (Node2)
12753 3 => True, -- Component_Clauses (List3)
12754 4 => False, -- unused
12755 5 => False), -- Next_Rep_Item (Node5-Sem)
12757 N_Component_Clause =>
12758 (1 => True, -- Component_Name (Node1)
12759 2 => True, -- Position (Node2)
12760 3 => True, -- First_Bit (Node3)
12761 4 => True, -- Last_Bit (Node4)
12762 5 => False), -- unused
12764 N_Code_Statement =>
12765 (1 => False, -- unused
12766 2 => False, -- unused
12767 3 => True, -- Expression (Node3)
12768 4 => False, -- unused
12769 5 => False), -- unused
12771 N_Op_Rotate_Left =>
12772 (1 => True, -- Chars (Name1)
12773 2 => True, -- Left_Opnd (Node2)
12774 3 => True, -- Right_Opnd (Node3)
12775 4 => False, -- Entity (Node4-Sem)
12776 5 => False), -- Etype (Node5-Sem)
12778 N_Op_Rotate_Right =>
12779 (1 => True, -- Chars (Name1)
12780 2 => True, -- Left_Opnd (Node2)
12781 3 => True, -- Right_Opnd (Node3)
12782 4 => False, -- Entity (Node4-Sem)
12783 5 => False), -- Etype (Node5-Sem)
12785 N_Op_Shift_Left =>
12786 (1 => True, -- Chars (Name1)
12787 2 => True, -- Left_Opnd (Node2)
12788 3 => True, -- Right_Opnd (Node3)
12789 4 => False, -- Entity (Node4-Sem)
12790 5 => False), -- Etype (Node5-Sem)
12792 N_Op_Shift_Right_Arithmetic =>
12793 (1 => True, -- Chars (Name1)
12794 2 => True, -- Left_Opnd (Node2)
12795 3 => True, -- Right_Opnd (Node3)
12796 4 => False, -- Entity (Node4-Sem)
12797 5 => False), -- Etype (Node5-Sem)
12799 N_Op_Shift_Right =>
12800 (1 => True, -- Chars (Name1)
12801 2 => True, -- Left_Opnd (Node2)
12802 3 => True, -- Right_Opnd (Node3)
12803 4 => False, -- Entity (Node4-Sem)
12804 5 => False), -- Etype (Node5-Sem)
12806 N_Delta_Constraint =>
12807 (1 => False, -- unused
12808 2 => False, -- unused
12809 3 => True, -- Delta_Expression (Node3)
12810 4 => True, -- Range_Constraint (Node4)
12811 5 => False), -- unused
12813 N_At_Clause =>
12814 (1 => True, -- Identifier (Node1)
12815 2 => False, -- unused
12816 3 => True, -- Expression (Node3)
12817 4 => False, -- unused
12818 5 => False), -- unused
12820 N_Mod_Clause =>
12821 (1 => False, -- unused
12822 2 => False, -- unused
12823 3 => True, -- Expression (Node3)
12824 4 => True, -- Pragmas_Before (List4)
12825 5 => False), -- unused
12827 N_If_Expression =>
12828 (1 => True, -- Expressions (List1)
12829 2 => False, -- Then_Actions (List2-Sem)
12830 3 => False, -- Else_Actions (List3-Sem)
12831 4 => False, -- unused
12832 5 => False), -- Etype (Node5-Sem)
12834 N_Compound_Statement =>
12835 (1 => True, -- Actions (List1)
12836 2 => False, -- unused
12837 3 => False, -- unused
12838 4 => False, -- unused
12839 5 => False), -- unused
12841 N_Contract =>
12842 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
12843 2 => False, -- Contract_Test_Cases (Node2-Sem)
12844 3 => False, -- Classifications (Node3-Sem)
12845 4 => False, -- unused
12846 5 => False), -- unused
12848 N_Expanded_Name =>
12849 (1 => True, -- Chars (Name1)
12850 2 => True, -- Selector_Name (Node2)
12851 3 => True, -- Prefix (Node3)
12852 4 => False, -- Entity (Node4-Sem)
12853 5 => False), -- Etype (Node5-Sem)
12855 N_Expression_With_Actions =>
12856 (1 => True, -- Actions (List1)
12857 2 => False, -- unused
12858 3 => True, -- Expression (Node3)
12859 4 => False, -- unused
12860 5 => False), -- unused
12862 N_Free_Statement =>
12863 (1 => False, -- Storage_Pool (Node1-Sem)
12864 2 => False, -- Procedure_To_Call (Node2-Sem)
12865 3 => True, -- Expression (Node3)
12866 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12867 5 => False), -- unused
12869 N_Freeze_Entity =>
12870 (1 => True, -- Actions (List1)
12871 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12872 3 => False, -- TSS_Elist (Elist3-Sem)
12873 4 => False, -- Entity (Node4-Sem)
12874 5 => False), -- First_Subtype_Link (Node5-Sem)
12876 N_Freeze_Generic_Entity =>
12877 (1 => False, -- unused
12878 2 => False, -- unused
12879 3 => False, -- unused
12880 4 => False, -- Entity (Node4-Sem)
12881 5 => False), -- unused
12883 N_Implicit_Label_Declaration =>
12884 (1 => True, -- Defining_Identifier (Node1)
12885 2 => False, -- Label_Construct (Node2-Sem)
12886 3 => False, -- unused
12887 4 => False, -- unused
12888 5 => False), -- unused
12890 N_Itype_Reference =>
12891 (1 => False, -- Itype (Node1-Sem)
12892 2 => False, -- unused
12893 3 => False, -- unused
12894 4 => False, -- unused
12895 5 => False), -- unused
12897 N_Raise_Constraint_Error =>
12898 (1 => True, -- Condition (Node1)
12899 2 => False, -- unused
12900 3 => True, -- Reason (Uint3)
12901 4 => False, -- unused
12902 5 => False), -- Etype (Node5-Sem)
12904 N_Raise_Program_Error =>
12905 (1 => True, -- Condition (Node1)
12906 2 => False, -- unused
12907 3 => True, -- Reason (Uint3)
12908 4 => False, -- unused
12909 5 => False), -- Etype (Node5-Sem)
12911 N_Raise_Storage_Error =>
12912 (1 => True, -- Condition (Node1)
12913 2 => False, -- unused
12914 3 => True, -- Reason (Uint3)
12915 4 => False, -- unused
12916 5 => False), -- Etype (Node5-Sem)
12918 N_Push_Constraint_Error_Label =>
12919 (1 => False, -- unused
12920 2 => False, -- unused
12921 3 => False, -- unused
12922 4 => False, -- unused
12923 5 => False), -- unused
12925 N_Push_Program_Error_Label =>
12926 (1 => False, -- unused
12927 2 => False, -- unused
12928 3 => False, -- unused
12929 4 => False, -- unused
12930 5 => False), -- Exception_Label
12932 N_Push_Storage_Error_Label =>
12933 (1 => False, -- unused
12934 2 => False, -- unused
12935 3 => False, -- unused
12936 4 => False, -- unused
12937 5 => False), -- Exception_Label
12939 N_Pop_Constraint_Error_Label =>
12940 (1 => False, -- unused
12941 2 => False, -- unused
12942 3 => False, -- unused
12943 4 => False, -- unused
12944 5 => False), -- unused
12946 N_Pop_Program_Error_Label =>
12947 (1 => False, -- unused
12948 2 => False, -- unused
12949 3 => False, -- unused
12950 4 => False, -- unused
12951 5 => False), -- unused
12953 N_Pop_Storage_Error_Label =>
12954 (1 => False, -- unused
12955 2 => False, -- unused
12956 3 => False, -- unused
12957 4 => False, -- unused
12958 5 => False), -- unused
12960 N_Reference =>
12961 (1 => False, -- unused
12962 2 => False, -- unused
12963 3 => True, -- Prefix (Node3)
12964 4 => False, -- unused
12965 5 => False), -- Etype (Node5-Sem)
12967 N_Unchecked_Expression =>
12968 (1 => False, -- unused
12969 2 => False, -- unused
12970 3 => True, -- Expression (Node3)
12971 4 => False, -- unused
12972 5 => False), -- Etype (Node5-Sem)
12974 N_Unchecked_Type_Conversion =>
12975 (1 => False, -- unused
12976 2 => False, -- unused
12977 3 => True, -- Expression (Node3)
12978 4 => True, -- Subtype_Mark (Node4)
12979 5 => False), -- Etype (Node5-Sem)
12981 N_Validate_Unchecked_Conversion =>
12982 (1 => False, -- Source_Type (Node1-Sem)
12983 2 => False, -- Target_Type (Node2-Sem)
12984 3 => False, -- unused
12985 4 => False, -- unused
12986 5 => False), -- unused
12988 -- Entries for SCIL nodes
12990 N_SCIL_Dispatch_Table_Tag_Init =>
12991 (1 => False, -- unused
12992 2 => False, -- unused
12993 3 => False, -- unused
12994 4 => False, -- SCIL_Entity (Node4-Sem)
12995 5 => False), -- unused
12997 N_SCIL_Dispatching_Call =>
12998 (1 => False, -- unused
12999 2 => False, -- SCIL_Target_Prim (Node2-Sem)
13000 3 => False, -- unused
13001 4 => False, -- SCIL_Entity (Node4-Sem)
13002 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
13004 N_SCIL_Membership_Test =>
13005 (1 => False, -- unused
13006 2 => False, -- unused
13007 3 => False, -- unused
13008 4 => False, -- SCIL_Entity (Node4-Sem)
13009 5 => False), -- SCIL_Tag_Value (Node5-Sem)
13011 N_Call_Marker =>
13012 (1 => False, -- Target (Node1-Sem)
13013 2 => False, -- unused
13014 3 => False, -- unused
13015 4 => False, -- unused
13016 5 => False), -- unused
13018 -- Entries for Empty, Error and Unused. Even thought these have a Chars
13019 -- field for debugging purposes, they are not really syntactic fields, so
13020 -- we mark all fields as unused.
13022 N_Empty =>
13023 (1 => False, -- unused
13024 2 => False, -- unused
13025 3 => False, -- unused
13026 4 => False, -- unused
13027 5 => False), -- unused
13029 N_Error =>
13030 (1 => False, -- unused
13031 2 => False, -- unused
13032 3 => False, -- unused
13033 4 => False, -- unused
13034 5 => False), -- unused
13036 N_Unused_At_Start =>
13037 (1 => False, -- unused
13038 2 => False, -- unused
13039 3 => False, -- unused
13040 4 => False, -- unused
13041 5 => False), -- unused
13043 N_Unused_At_End =>
13044 (1 => False, -- unused
13045 2 => False, -- unused
13046 3 => False, -- unused
13047 4 => False, -- unused
13048 5 => False)); -- unused
13050 --------------------
13051 -- Inline Pragmas --
13052 --------------------
13054 pragma Inline (Abort_Present);
13055 pragma Inline (Abortable_Part);
13056 pragma Inline (Abstract_Present);
13057 pragma Inline (Accept_Handler_Records);
13058 pragma Inline (Accept_Statement);
13059 pragma Inline (Access_Definition);
13060 pragma Inline (Access_To_Subprogram_Definition);
13061 pragma Inline (Access_Types_To_Process);
13062 pragma Inline (Actions);
13063 pragma Inline (Activation_Chain_Entity);
13064 pragma Inline (Acts_As_Spec);
13065 pragma Inline (Actual_Designated_Subtype);
13066 pragma Inline (Address_Warning_Posted);
13067 pragma Inline (Aggregate_Bounds);
13068 pragma Inline (Aliased_Present);
13069 pragma Inline (All_Others);
13070 pragma Inline (All_Present);
13071 pragma Inline (Alternatives);
13072 pragma Inline (Ancestor_Part);
13073 pragma Inline (Atomic_Sync_Required);
13074 pragma Inline (Array_Aggregate);
13075 pragma Inline (Aspect_Rep_Item);
13076 pragma Inline (Assignment_OK);
13077 pragma Inline (Associated_Node);
13078 pragma Inline (At_End_Proc);
13079 pragma Inline (Attribute_Name);
13080 pragma Inline (Aux_Decls_Node);
13081 pragma Inline (Backwards_OK);
13082 pragma Inline (Bad_Is_Detected);
13083 pragma Inline (Body_To_Inline);
13084 pragma Inline (Body_Required);
13085 pragma Inline (By_Ref);
13086 pragma Inline (Box_Present);
13087 pragma Inline (Char_Literal_Value);
13088 pragma Inline (Chars);
13089 pragma Inline (Check_Address_Alignment);
13090 pragma Inline (Choice_Parameter);
13091 pragma Inline (Choices);
13092 pragma Inline (Class_Present);
13093 pragma Inline (Classifications);
13094 pragma Inline (Cleanup_Actions);
13095 pragma Inline (Comes_From_Extended_Return_Statement);
13096 pragma Inline (Compile_Time_Known_Aggregate);
13097 pragma Inline (Component_Associations);
13098 pragma Inline (Component_Clauses);
13099 pragma Inline (Component_Definition);
13100 pragma Inline (Component_Items);
13101 pragma Inline (Component_List);
13102 pragma Inline (Component_Name);
13103 pragma Inline (Componentwise_Assignment);
13104 pragma Inline (Condition);
13105 pragma Inline (Condition_Actions);
13106 pragma Inline (Config_Pragmas);
13107 pragma Inline (Constant_Present);
13108 pragma Inline (Constraint);
13109 pragma Inline (Constraints);
13110 pragma Inline (Context_Installed);
13111 pragma Inline (Context_Items);
13112 pragma Inline (Context_Pending);
13113 pragma Inline (Contract_Test_Cases);
13114 pragma Inline (Controlling_Argument);
13115 pragma Inline (Convert_To_Return_False);
13116 pragma Inline (Conversion_OK);
13117 pragma Inline (Corresponding_Aspect);
13118 pragma Inline (Corresponding_Body);
13119 pragma Inline (Corresponding_Formal_Spec);
13120 pragma Inline (Corresponding_Generic_Association);
13121 pragma Inline (Corresponding_Integer_Value);
13122 pragma Inline (Corresponding_Spec);
13123 pragma Inline (Corresponding_Spec_Of_Stub);
13124 pragma Inline (Corresponding_Stub);
13125 pragma Inline (Dcheck_Function);
13126 pragma Inline (Declarations);
13127 pragma Inline (Default_Expression);
13128 pragma Inline (Default_Storage_Pool);
13129 pragma Inline (Default_Name);
13130 pragma Inline (Defining_Identifier);
13131 pragma Inline (Defining_Unit_Name);
13132 pragma Inline (Delay_Alternative);
13133 pragma Inline (Delay_Statement);
13134 pragma Inline (Delta_Expression);
13135 pragma Inline (Digits_Expression);
13136 pragma Inline (Discr_Check_Funcs_Built);
13137 pragma Inline (Discrete_Choices);
13138 pragma Inline (Discrete_Range);
13139 pragma Inline (Discrete_Subtype_Definition);
13140 pragma Inline (Discrete_Subtype_Definitions);
13141 pragma Inline (Discriminant_Specifications);
13142 pragma Inline (Discriminant_Type);
13143 pragma Inline (Do_Accessibility_Check);
13144 pragma Inline (Do_Discriminant_Check);
13145 pragma Inline (Do_Length_Check);
13146 pragma Inline (Do_Division_Check);
13147 pragma Inline (Do_Overflow_Check);
13148 pragma Inline (Do_Range_Check);
13149 pragma Inline (Do_Storage_Check);
13150 pragma Inline (Do_Tag_Check);
13151 pragma Inline (Elaborate_All_Desirable);
13152 pragma Inline (Elaborate_All_Present);
13153 pragma Inline (Elaborate_Desirable);
13154 pragma Inline (Elaborate_Present);
13155 pragma Inline (Else_Actions);
13156 pragma Inline (Else_Statements);
13157 pragma Inline (Elsif_Parts);
13158 pragma Inline (Enclosing_Variant);
13159 pragma Inline (End_Label);
13160 pragma Inline (End_Span);
13161 pragma Inline (Entity);
13162 pragma Inline (Entity_Or_Associated_Node);
13163 pragma Inline (Entry_Body_Formal_Part);
13164 pragma Inline (Entry_Call_Alternative);
13165 pragma Inline (Entry_Call_Statement);
13166 pragma Inline (Entry_Direct_Name);
13167 pragma Inline (Entry_Index);
13168 pragma Inline (Entry_Index_Specification);
13169 pragma Inline (Etype);
13170 pragma Inline (Exception_Choices);
13171 pragma Inline (Exception_Handlers);
13172 pragma Inline (Exception_Junk);
13173 pragma Inline (Exception_Label);
13174 pragma Inline (Expansion_Delayed);
13175 pragma Inline (Explicit_Actual_Parameter);
13176 pragma Inline (Explicit_Generic_Actual_Parameter);
13177 pragma Inline (Expression);
13178 pragma Inline (Expression_Copy);
13179 pragma Inline (Expressions);
13180 pragma Inline (First_Bit);
13181 pragma Inline (First_Inlined_Subprogram);
13182 pragma Inline (First_Name);
13183 pragma Inline (First_Named_Actual);
13184 pragma Inline (First_Real_Statement);
13185 pragma Inline (First_Subtype_Link);
13186 pragma Inline (Float_Truncate);
13187 pragma Inline (Formal_Type_Definition);
13188 pragma Inline (Forwards_OK);
13189 pragma Inline (From_Aspect_Specification);
13190 pragma Inline (From_At_End);
13191 pragma Inline (From_At_Mod);
13192 pragma Inline (From_Conditional_Expression);
13193 pragma Inline (From_Default);
13194 pragma Inline (Generalized_Indexing);
13195 pragma Inline (Generic_Associations);
13196 pragma Inline (Generic_Formal_Declarations);
13197 pragma Inline (Generic_Parent);
13198 pragma Inline (Generic_Parent_Type);
13199 pragma Inline (Handled_Statement_Sequence);
13200 pragma Inline (Handler_List_Entry);
13201 pragma Inline (Has_Created_Identifier);
13202 pragma Inline (Has_Dereference_Action);
13203 pragma Inline (Has_Dynamic_Length_Check);
13204 pragma Inline (Has_Dynamic_Range_Check);
13205 pragma Inline (Has_Init_Expression);
13206 pragma Inline (Has_Local_Raise);
13207 pragma Inline (Has_Self_Reference);
13208 pragma Inline (Has_SP_Choice);
13209 pragma Inline (Has_No_Elaboration_Code);
13210 pragma Inline (Has_Pragma_Suppress_All);
13211 pragma Inline (Has_Private_View);
13212 pragma Inline (Has_Relative_Deadline_Pragma);
13213 pragma Inline (Has_Storage_Size_Pragma);
13214 pragma Inline (Has_Target_Names);
13215 pragma Inline (Has_Wide_Character);
13216 pragma Inline (Has_Wide_Wide_Character);
13217 pragma Inline (Header_Size_Added);
13218 pragma Inline (Hidden_By_Use_Clause);
13219 pragma Inline (High_Bound);
13220 pragma Inline (Identifier);
13221 pragma Inline (Implicit_With);
13222 pragma Inline (Implicit_With_From_Instantiation);
13223 pragma Inline (Interface_List);
13224 pragma Inline (Interface_Present);
13225 pragma Inline (Includes_Infinities);
13226 pragma Inline (Import_Interface_Present);
13227 pragma Inline (In_Present);
13228 pragma Inline (Incomplete_View);
13229 pragma Inline (Inherited_Discriminant);
13230 pragma Inline (Instance_Spec);
13231 pragma Inline (Intval);
13232 pragma Inline (Iterator_Specification);
13233 pragma Inline (Is_Abort_Block);
13234 pragma Inline (Is_Accessibility_Actual);
13235 pragma Inline (Is_Analyzed_Pragma);
13236 pragma Inline (Is_Asynchronous_Call_Block);
13237 pragma Inline (Is_Boolean_Aspect);
13238 pragma Inline (Is_Checked);
13239 pragma Inline (Is_Checked_Ghost_Pragma);
13240 pragma Inline (Is_Component_Left_Opnd);
13241 pragma Inline (Is_Component_Right_Opnd);
13242 pragma Inline (Is_Controlling_Actual);
13243 pragma Inline (Is_Declaration_Level_Node);
13244 pragma Inline (Is_Delayed_Aspect);
13245 pragma Inline (Is_Disabled);
13246 pragma Inline (Is_Dispatching_Call);
13247 pragma Inline (Is_Dynamic_Coextension);
13248 pragma Inline (Is_Effective_Use_Clause);
13249 pragma Inline (Is_Elaboration_Checks_OK_Node);
13250 pragma Inline (Is_Elsif);
13251 pragma Inline (Is_Entry_Barrier_Function);
13252 pragma Inline (Is_Expanded_Build_In_Place_Call);
13253 pragma Inline (Is_Expanded_Contract);
13254 pragma Inline (Is_Finalization_Wrapper);
13255 pragma Inline (Is_Folded_In_Parser);
13256 pragma Inline (Is_Generic_Contract_Pragma);
13257 pragma Inline (Is_Ignored);
13258 pragma Inline (Is_Ignored_Ghost_Pragma);
13259 pragma Inline (Is_In_Discriminant_Check);
13260 pragma Inline (Is_Inherited_Pragma);
13261 pragma Inline (Is_Initialization_Block);
13262 pragma Inline (Is_Known_Guaranteed_ABE);
13263 pragma Inline (Is_Machine_Number);
13264 pragma Inline (Is_Null_Loop);
13265 pragma Inline (Is_Overloaded);
13266 pragma Inline (Is_Power_Of_2_For_Shift);
13267 pragma Inline (Is_Prefixed_Call);
13268 pragma Inline (Is_Protected_Subprogram_Body);
13269 pragma Inline (Is_Qualified_Universal_Literal);
13270 pragma Inline (Is_Recorded_Scenario);
13271 pragma Inline (Is_Source_Call);
13272 pragma Inline (Is_SPARK_Mode_On_Node);
13273 pragma Inline (Is_Static_Coextension);
13274 pragma Inline (Is_Static_Expression);
13275 pragma Inline (Is_Subprogram_Descriptor);
13276 pragma Inline (Is_Task_Allocation_Block);
13277 pragma Inline (Is_Task_Body_Procedure);
13278 pragma Inline (Is_Task_Master);
13279 pragma Inline (Iteration_Scheme);
13280 pragma Inline (Itype);
13281 pragma Inline (Kill_Range_Check);
13282 pragma Inline (Last_Bit);
13283 pragma Inline (Last_Name);
13284 pragma Inline (Library_Unit);
13285 pragma Inline (Label_Construct);
13286 pragma Inline (Left_Opnd);
13287 pragma Inline (Limited_View_Installed);
13288 pragma Inline (Limited_Present);
13289 pragma Inline (Literals);
13290 pragma Inline (Local_Raise_Not_OK);
13291 pragma Inline (Local_Raise_Statements);
13292 pragma Inline (Loop_Actions);
13293 pragma Inline (Loop_Parameter_Specification);
13294 pragma Inline (Low_Bound);
13295 pragma Inline (Mod_Clause);
13296 pragma Inline (More_Ids);
13297 pragma Inline (Must_Be_Byte_Aligned);
13298 pragma Inline (Must_Not_Freeze);
13299 pragma Inline (Must_Not_Override);
13300 pragma Inline (Must_Override);
13301 pragma Inline (Name);
13302 pragma Inline (Names);
13303 pragma Inline (Next_Entity);
13304 pragma Inline (Next_Exit_Statement);
13305 pragma Inline (Next_Implicit_With);
13306 pragma Inline (Next_Named_Actual);
13307 pragma Inline (Next_Pragma);
13308 pragma Inline (Next_Rep_Item);
13309 pragma Inline (Next_Use_Clause);
13310 pragma Inline (No_Ctrl_Actions);
13311 pragma Inline (No_Entities_Ref_In_Spec);
13312 pragma Inline (No_Initialization);
13313 pragma Inline (No_Minimize_Eliminate);
13314 pragma Inline (No_Side_Effect_Removal);
13315 pragma Inline (No_Truncation);
13316 pragma Inline (Null_Excluding_Subtype);
13317 pragma Inline (Null_Exclusion_Present);
13318 pragma Inline (Null_Exclusion_In_Return_Present);
13319 pragma Inline (Null_Present);
13320 pragma Inline (Null_Record_Present);
13321 pragma Inline (Null_Statement);
13322 pragma Inline (Object_Definition);
13323 pragma Inline (Of_Present);
13324 pragma Inline (Original_Discriminant);
13325 pragma Inline (Original_Entity);
13326 pragma Inline (Others_Discrete_Choices);
13327 pragma Inline (Out_Present);
13328 pragma Inline (Parameter_Associations);
13329 pragma Inline (Parameter_Specifications);
13330 pragma Inline (Parameter_Type);
13331 pragma Inline (Parent_Spec);
13332 pragma Inline (Position);
13333 pragma Inline (Pragma_Argument_Associations);
13334 pragma Inline (Pragma_Identifier);
13335 pragma Inline (Pragmas_After);
13336 pragma Inline (Pragmas_Before);
13337 pragma Inline (Pre_Post_Conditions);
13338 pragma Inline (Prefix);
13339 pragma Inline (Premature_Use);
13340 pragma Inline (Present_Expr);
13341 pragma Inline (Prev_Ids);
13342 pragma Inline (Prev_Use_Clause);
13343 pragma Inline (Print_In_Hex);
13344 pragma Inline (Private_Declarations);
13345 pragma Inline (Private_Present);
13346 pragma Inline (Procedure_To_Call);
13347 pragma Inline (Proper_Body);
13348 pragma Inline (Protected_Definition);
13349 pragma Inline (Protected_Present);
13350 pragma Inline (Raises_Constraint_Error);
13351 pragma Inline (Range_Constraint);
13352 pragma Inline (Range_Expression);
13353 pragma Inline (Real_Range_Specification);
13354 pragma Inline (Realval);
13355 pragma Inline (Reason);
13356 pragma Inline (Record_Extension_Part);
13357 pragma Inline (Redundant_Use);
13358 pragma Inline (Renaming_Exception);
13359 pragma Inline (Result_Definition);
13360 pragma Inline (Return_Object_Declarations);
13361 pragma Inline (Return_Statement_Entity);
13362 pragma Inline (Reverse_Present);
13363 pragma Inline (Right_Opnd);
13364 pragma Inline (Rounded_Result);
13365 pragma Inline (SCIL_Controlling_Tag);
13366 pragma Inline (SCIL_Entity);
13367 pragma Inline (SCIL_Tag_Value);
13368 pragma Inline (SCIL_Target_Prim);
13369 pragma Inline (Scope);
13370 pragma Inline (Select_Alternatives);
13371 pragma Inline (Selector_Name);
13372 pragma Inline (Selector_Names);
13373 pragma Inline (Shift_Count_OK);
13374 pragma Inline (Source_Type);
13375 pragma Inline (Specification);
13376 pragma Inline (Split_PPC);
13377 pragma Inline (Statements);
13378 pragma Inline (Storage_Pool);
13379 pragma Inline (Subpool_Handle_Name);
13380 pragma Inline (Strval);
13381 pragma Inline (Subtype_Indication);
13382 pragma Inline (Subtype_Mark);
13383 pragma Inline (Subtype_Marks);
13384 pragma Inline (Suppress_Assignment_Checks);
13385 pragma Inline (Suppress_Loop_Warnings);
13386 pragma Inline (Synchronized_Present);
13387 pragma Inline (Tagged_Present);
13388 pragma Inline (Target);
13389 pragma Inline (Target_Type);
13390 pragma Inline (Task_Definition);
13391 pragma Inline (Task_Present);
13392 pragma Inline (Then_Actions);
13393 pragma Inline (Then_Statements);
13394 pragma Inline (Triggering_Alternative);
13395 pragma Inline (Triggering_Statement);
13396 pragma Inline (Treat_Fixed_As_Integer);
13397 pragma Inline (TSS_Elist);
13398 pragma Inline (Type_Definition);
13399 pragma Inline (Uneval_Old_Accept);
13400 pragma Inline (Uneval_Old_Warn);
13401 pragma Inline (Unit);
13402 pragma Inline (Uninitialized_Variable);
13403 pragma Inline (Unknown_Discriminants_Present);
13404 pragma Inline (Unreferenced_In_Spec);
13405 pragma Inline (Variant_Part);
13406 pragma Inline (Variants);
13407 pragma Inline (Visible_Declarations);
13408 pragma Inline (Used_Operations);
13409 pragma Inline (Was_Attribute_Reference);
13410 pragma Inline (Was_Expression_Function);
13411 pragma Inline (Was_Originally_Stub);
13412 pragma Inline (Withed_Body);
13414 pragma Inline (Set_Abort_Present);
13415 pragma Inline (Set_Abortable_Part);
13416 pragma Inline (Set_Abstract_Present);
13417 pragma Inline (Set_Accept_Handler_Records);
13418 pragma Inline (Set_Accept_Statement);
13419 pragma Inline (Set_Access_Definition);
13420 pragma Inline (Set_Access_To_Subprogram_Definition);
13421 pragma Inline (Set_Access_Types_To_Process);
13422 pragma Inline (Set_Actions);
13423 pragma Inline (Set_Activation_Chain_Entity);
13424 pragma Inline (Set_Acts_As_Spec);
13425 pragma Inline (Set_Actual_Designated_Subtype);
13426 pragma Inline (Set_Address_Warning_Posted);
13427 pragma Inline (Set_Aggregate_Bounds);
13428 pragma Inline (Set_Aliased_Present);
13429 pragma Inline (Set_All_Others);
13430 pragma Inline (Set_All_Present);
13431 pragma Inline (Set_Alternatives);
13432 pragma Inline (Set_Ancestor_Part);
13433 pragma Inline (Set_Array_Aggregate);
13434 pragma Inline (Set_Aspect_Rep_Item);
13435 pragma Inline (Set_Assignment_OK);
13436 pragma Inline (Set_Associated_Node);
13437 pragma Inline (Set_At_End_Proc);
13438 pragma Inline (Set_Atomic_Sync_Required);
13439 pragma Inline (Set_Attribute_Name);
13440 pragma Inline (Set_Aux_Decls_Node);
13441 pragma Inline (Set_Backwards_OK);
13442 pragma Inline (Set_Bad_Is_Detected);
13443 pragma Inline (Set_Body_Required);
13444 pragma Inline (Set_Body_To_Inline);
13445 pragma Inline (Set_Box_Present);
13446 pragma Inline (Set_By_Ref);
13447 pragma Inline (Set_Char_Literal_Value);
13448 pragma Inline (Set_Chars);
13449 pragma Inline (Set_Check_Address_Alignment);
13450 pragma Inline (Set_Choice_Parameter);
13451 pragma Inline (Set_Choices);
13452 pragma Inline (Set_Class_Present);
13453 pragma Inline (Set_Classifications);
13454 pragma Inline (Set_Cleanup_Actions);
13455 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13456 pragma Inline (Set_Compile_Time_Known_Aggregate);
13457 pragma Inline (Set_Component_Associations);
13458 pragma Inline (Set_Component_Clauses);
13459 pragma Inline (Set_Component_Definition);
13460 pragma Inline (Set_Component_Items);
13461 pragma Inline (Set_Component_List);
13462 pragma Inline (Set_Component_Name);
13463 pragma Inline (Set_Componentwise_Assignment);
13464 pragma Inline (Set_Condition);
13465 pragma Inline (Set_Condition_Actions);
13466 pragma Inline (Set_Config_Pragmas);
13467 pragma Inline (Set_Constant_Present);
13468 pragma Inline (Set_Constraint);
13469 pragma Inline (Set_Constraints);
13470 pragma Inline (Set_Context_Installed);
13471 pragma Inline (Set_Context_Items);
13472 pragma Inline (Set_Context_Pending);
13473 pragma Inline (Set_Contract_Test_Cases);
13474 pragma Inline (Set_Controlling_Argument);
13475 pragma Inline (Set_Conversion_OK);
13476 pragma Inline (Set_Convert_To_Return_False);
13477 pragma Inline (Set_Corresponding_Aspect);
13478 pragma Inline (Set_Corresponding_Body);
13479 pragma Inline (Set_Corresponding_Formal_Spec);
13480 pragma Inline (Set_Corresponding_Generic_Association);
13481 pragma Inline (Set_Corresponding_Integer_Value);
13482 pragma Inline (Set_Corresponding_Spec);
13483 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13484 pragma Inline (Set_Corresponding_Stub);
13485 pragma Inline (Set_Dcheck_Function);
13486 pragma Inline (Set_Declarations);
13487 pragma Inline (Set_Default_Expression);
13488 pragma Inline (Set_Default_Name);
13489 pragma Inline (Set_Default_Storage_Pool);
13490 pragma Inline (Set_Defining_Identifier);
13491 pragma Inline (Set_Defining_Unit_Name);
13492 pragma Inline (Set_Delay_Alternative);
13493 pragma Inline (Set_Delay_Statement);
13494 pragma Inline (Set_Delta_Expression);
13495 pragma Inline (Set_Digits_Expression);
13496 pragma Inline (Set_Discr_Check_Funcs_Built);
13497 pragma Inline (Set_Discrete_Choices);
13498 pragma Inline (Set_Discrete_Range);
13499 pragma Inline (Set_Discrete_Subtype_Definition);
13500 pragma Inline (Set_Discrete_Subtype_Definitions);
13501 pragma Inline (Set_Discriminant_Specifications);
13502 pragma Inline (Set_Discriminant_Type);
13503 pragma Inline (Set_Do_Accessibility_Check);
13504 pragma Inline (Set_Do_Discriminant_Check);
13505 pragma Inline (Set_Do_Division_Check);
13506 pragma Inline (Set_Do_Length_Check);
13507 pragma Inline (Set_Do_Overflow_Check);
13508 pragma Inline (Set_Do_Range_Check);
13509 pragma Inline (Set_Do_Storage_Check);
13510 pragma Inline (Set_Do_Tag_Check);
13511 pragma Inline (Set_Elaborate_All_Desirable);
13512 pragma Inline (Set_Elaborate_All_Present);
13513 pragma Inline (Set_Elaborate_Desirable);
13514 pragma Inline (Set_Elaborate_Present);
13515 pragma Inline (Set_Else_Actions);
13516 pragma Inline (Set_Else_Statements);
13517 pragma Inline (Set_Elsif_Parts);
13518 pragma Inline (Set_Enclosing_Variant);
13519 pragma Inline (Set_End_Label);
13520 pragma Inline (Set_End_Span);
13521 pragma Inline (Set_Entity);
13522 pragma Inline (Set_Entry_Body_Formal_Part);
13523 pragma Inline (Set_Entry_Call_Alternative);
13524 pragma Inline (Set_Entry_Call_Statement);
13525 pragma Inline (Set_Entry_Direct_Name);
13526 pragma Inline (Set_Entry_Index);
13527 pragma Inline (Set_Entry_Index_Specification);
13528 pragma Inline (Set_Etype);
13529 pragma Inline (Set_Exception_Choices);
13530 pragma Inline (Set_Exception_Handlers);
13531 pragma Inline (Set_Exception_Junk);
13532 pragma Inline (Set_Exception_Label);
13533 pragma Inline (Set_Expansion_Delayed);
13534 pragma Inline (Set_Explicit_Actual_Parameter);
13535 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13536 pragma Inline (Set_Expression);
13537 pragma Inline (Set_Expression_Copy);
13538 pragma Inline (Set_Expressions);
13539 pragma Inline (Set_First_Bit);
13540 pragma Inline (Set_First_Inlined_Subprogram);
13541 pragma Inline (Set_First_Name);
13542 pragma Inline (Set_First_Named_Actual);
13543 pragma Inline (Set_First_Real_Statement);
13544 pragma Inline (Set_First_Subtype_Link);
13545 pragma Inline (Set_Float_Truncate);
13546 pragma Inline (Set_Formal_Type_Definition);
13547 pragma Inline (Set_Forwards_OK);
13548 pragma Inline (Set_From_Aspect_Specification);
13549 pragma Inline (Set_From_At_End);
13550 pragma Inline (Set_From_At_Mod);
13551 pragma Inline (Set_From_Conditional_Expression);
13552 pragma Inline (Set_From_Default);
13553 pragma Inline (Set_Generalized_Indexing);
13554 pragma Inline (Set_Generic_Associations);
13555 pragma Inline (Set_Generic_Formal_Declarations);
13556 pragma Inline (Set_Generic_Parent);
13557 pragma Inline (Set_Generic_Parent_Type);
13558 pragma Inline (Set_Handled_Statement_Sequence);
13559 pragma Inline (Set_Handler_List_Entry);
13560 pragma Inline (Set_Has_Created_Identifier);
13561 pragma Inline (Set_Has_Dereference_Action);
13562 pragma Inline (Set_Has_Dynamic_Length_Check);
13563 pragma Inline (Set_Has_Dynamic_Range_Check);
13564 pragma Inline (Set_Has_Init_Expression);
13565 pragma Inline (Set_Has_Local_Raise);
13566 pragma Inline (Set_Has_No_Elaboration_Code);
13567 pragma Inline (Set_Has_Pragma_Suppress_All);
13568 pragma Inline (Set_Has_Private_View);
13569 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13570 pragma Inline (Set_Has_Self_Reference);
13571 pragma Inline (Set_Has_SP_Choice);
13572 pragma Inline (Set_Has_Storage_Size_Pragma);
13573 pragma Inline (Set_Has_Target_Names);
13574 pragma Inline (Set_Has_Wide_Character);
13575 pragma Inline (Set_Has_Wide_Wide_Character);
13576 pragma Inline (Set_Header_Size_Added);
13577 pragma Inline (Set_Hidden_By_Use_Clause);
13578 pragma Inline (Set_High_Bound);
13579 pragma Inline (Set_Identifier);
13580 pragma Inline (Set_Implicit_With);
13581 pragma Inline (Set_Import_Interface_Present);
13582 pragma Inline (Set_In_Present);
13583 pragma Inline (Set_Includes_Infinities);
13584 pragma Inline (Set_Incomplete_View);
13585 pragma Inline (Set_Inherited_Discriminant);
13586 pragma Inline (Set_Instance_Spec);
13587 pragma Inline (Set_Interface_List);
13588 pragma Inline (Set_Interface_Present);
13589 pragma Inline (Set_Intval);
13590 pragma Inline (Set_Is_Abort_Block);
13591 pragma Inline (Set_Is_Accessibility_Actual);
13592 pragma Inline (Set_Is_Analyzed_Pragma);
13593 pragma Inline (Set_Is_Asynchronous_Call_Block);
13594 pragma Inline (Set_Is_Boolean_Aspect);
13595 pragma Inline (Set_Is_Checked);
13596 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13597 pragma Inline (Set_Is_Component_Left_Opnd);
13598 pragma Inline (Set_Is_Component_Right_Opnd);
13599 pragma Inline (Set_Is_Controlling_Actual);
13600 pragma Inline (Set_Is_Declaration_Level_Node);
13601 pragma Inline (Set_Is_Delayed_Aspect);
13602 pragma Inline (Set_Is_Disabled);
13603 pragma Inline (Set_Is_Dispatching_Call);
13604 pragma Inline (Set_Is_Dynamic_Coextension);
13605 pragma Inline (Set_Is_Effective_Use_Clause);
13606 pragma Inline (Set_Is_Elaboration_Checks_OK_Node);
13607 pragma Inline (Set_Is_Elsif);
13608 pragma Inline (Set_Is_Entry_Barrier_Function);
13609 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13610 pragma Inline (Set_Is_Expanded_Contract);
13611 pragma Inline (Set_Is_Finalization_Wrapper);
13612 pragma Inline (Set_Is_Folded_In_Parser);
13613 pragma Inline (Set_Is_Generic_Contract_Pragma);
13614 pragma Inline (Set_Is_Ignored);
13615 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13616 pragma Inline (Set_Is_In_Discriminant_Check);
13617 pragma Inline (Set_Is_Inherited_Pragma);
13618 pragma Inline (Set_Is_Initialization_Block);
13619 pragma Inline (Set_Is_Known_Guaranteed_ABE);
13620 pragma Inline (Set_Is_Machine_Number);
13621 pragma Inline (Set_Is_Null_Loop);
13622 pragma Inline (Set_Is_Overloaded);
13623 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13624 pragma Inline (Set_Is_Prefixed_Call);
13625 pragma Inline (Set_Is_Protected_Subprogram_Body);
13626 pragma Inline (Set_Is_Qualified_Universal_Literal);
13627 pragma Inline (Set_Is_Recorded_Scenario);
13628 pragma Inline (Set_Is_Source_Call);
13629 pragma Inline (Set_Is_SPARK_Mode_On_Node);
13630 pragma Inline (Set_Is_Static_Coextension);
13631 pragma Inline (Set_Is_Static_Expression);
13632 pragma Inline (Set_Is_Subprogram_Descriptor);
13633 pragma Inline (Set_Is_Task_Allocation_Block);
13634 pragma Inline (Set_Is_Task_Body_Procedure);
13635 pragma Inline (Set_Is_Task_Master);
13636 pragma Inline (Set_Iteration_Scheme);
13637 pragma Inline (Set_Iterator_Specification);
13638 pragma Inline (Set_Itype);
13639 pragma Inline (Set_Kill_Range_Check);
13640 pragma Inline (Set_Label_Construct);
13641 pragma Inline (Set_Last_Bit);
13642 pragma Inline (Set_Last_Name);
13643 pragma Inline (Set_Left_Opnd);
13644 pragma Inline (Set_Library_Unit);
13645 pragma Inline (Set_Limited_Present);
13646 pragma Inline (Set_Limited_View_Installed);
13647 pragma Inline (Set_Literals);
13648 pragma Inline (Set_Local_Raise_Not_OK);
13649 pragma Inline (Set_Local_Raise_Statements);
13650 pragma Inline (Set_Loop_Actions);
13651 pragma Inline (Set_Loop_Parameter_Specification);
13652 pragma Inline (Set_Low_Bound);
13653 pragma Inline (Set_Mod_Clause);
13654 pragma Inline (Set_More_Ids);
13655 pragma Inline (Set_Must_Be_Byte_Aligned);
13656 pragma Inline (Set_Must_Not_Freeze);
13657 pragma Inline (Set_Must_Not_Override);
13658 pragma Inline (Set_Must_Override);
13659 pragma Inline (Set_Name);
13660 pragma Inline (Set_Names);
13661 pragma Inline (Set_Next_Entity);
13662 pragma Inline (Set_Next_Exit_Statement);
13663 pragma Inline (Set_Next_Implicit_With);
13664 pragma Inline (Set_Next_Named_Actual);
13665 pragma Inline (Set_Next_Pragma);
13666 pragma Inline (Set_Next_Rep_Item);
13667 pragma Inline (Set_Next_Use_Clause);
13668 pragma Inline (Set_No_Ctrl_Actions);
13669 pragma Inline (Set_No_Entities_Ref_In_Spec);
13670 pragma Inline (Set_No_Initialization);
13671 pragma Inline (Set_No_Minimize_Eliminate);
13672 pragma Inline (Set_No_Side_Effect_Removal);
13673 pragma Inline (Set_No_Truncation);
13674 pragma Inline (Set_Null_Excluding_Subtype);
13675 pragma Inline (Set_Null_Exclusion_Present);
13676 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13677 pragma Inline (Set_Null_Present);
13678 pragma Inline (Set_Null_Record_Present);
13679 pragma Inline (Set_Null_Statement);
13680 pragma Inline (Set_Object_Definition);
13681 pragma Inline (Set_Of_Present);
13682 pragma Inline (Set_Original_Discriminant);
13683 pragma Inline (Set_Original_Entity);
13684 pragma Inline (Set_Others_Discrete_Choices);
13685 pragma Inline (Set_Out_Present);
13686 pragma Inline (Set_Parameter_Associations);
13687 pragma Inline (Set_Parameter_Specifications);
13688 pragma Inline (Set_Parameter_Type);
13689 pragma Inline (Set_Parent_Spec);
13690 pragma Inline (Set_Position);
13691 pragma Inline (Set_Pragma_Argument_Associations);
13692 pragma Inline (Set_Pragma_Identifier);
13693 pragma Inline (Set_Pragmas_After);
13694 pragma Inline (Set_Pragmas_Before);
13695 pragma Inline (Set_Pre_Post_Conditions);
13696 pragma Inline (Set_Prefix);
13697 pragma Inline (Set_Premature_Use);
13698 pragma Inline (Set_Present_Expr);
13699 pragma Inline (Set_Prev_Ids);
13700 pragma Inline (Set_Prev_Use_Clause);
13701 pragma Inline (Set_Print_In_Hex);
13702 pragma Inline (Set_Private_Declarations);
13703 pragma Inline (Set_Private_Present);
13704 pragma Inline (Set_Procedure_To_Call);
13705 pragma Inline (Set_Proper_Body);
13706 pragma Inline (Set_Protected_Definition);
13707 pragma Inline (Set_Protected_Present);
13708 pragma Inline (Set_Raises_Constraint_Error);
13709 pragma Inline (Set_Range_Constraint);
13710 pragma Inline (Set_Range_Expression);
13711 pragma Inline (Set_Real_Range_Specification);
13712 pragma Inline (Set_Realval);
13713 pragma Inline (Set_Reason);
13714 pragma Inline (Set_Record_Extension_Part);
13715 pragma Inline (Set_Redundant_Use);
13716 pragma Inline (Set_Renaming_Exception);
13717 pragma Inline (Set_Result_Definition);
13718 pragma Inline (Set_Return_Object_Declarations);
13719 pragma Inline (Set_Reverse_Present);
13720 pragma Inline (Set_Right_Opnd);
13721 pragma Inline (Set_Rounded_Result);
13722 pragma Inline (Set_SCIL_Controlling_Tag);
13723 pragma Inline (Set_SCIL_Entity);
13724 pragma Inline (Set_SCIL_Tag_Value);
13725 pragma Inline (Set_SCIL_Target_Prim);
13726 pragma Inline (Set_Scope);
13727 pragma Inline (Set_Select_Alternatives);
13728 pragma Inline (Set_Selector_Name);
13729 pragma Inline (Set_Selector_Names);
13730 pragma Inline (Set_Shift_Count_OK);
13731 pragma Inline (Set_Source_Type);
13732 pragma Inline (Set_Split_PPC);
13733 pragma Inline (Set_Statements);
13734 pragma Inline (Set_Storage_Pool);
13735 pragma Inline (Set_Strval);
13736 pragma Inline (Set_Subpool_Handle_Name);
13737 pragma Inline (Set_Subtype_Indication);
13738 pragma Inline (Set_Subtype_Mark);
13739 pragma Inline (Set_Subtype_Marks);
13740 pragma Inline (Set_Suppress_Assignment_Checks);
13741 pragma Inline (Set_Suppress_Loop_Warnings);
13742 pragma Inline (Set_Synchronized_Present);
13743 pragma Inline (Set_TSS_Elist);
13744 pragma Inline (Set_Tagged_Present);
13745 pragma Inline (Set_Target);
13746 pragma Inline (Set_Target_Type);
13747 pragma Inline (Set_Task_Definition);
13748 pragma Inline (Set_Task_Present);
13749 pragma Inline (Set_Then_Actions);
13750 pragma Inline (Set_Then_Statements);
13751 pragma Inline (Set_Treat_Fixed_As_Integer);
13752 pragma Inline (Set_Triggering_Alternative);
13753 pragma Inline (Set_Triggering_Statement);
13754 pragma Inline (Set_Type_Definition);
13755 pragma Inline (Set_Uneval_Old_Accept);
13756 pragma Inline (Set_Uneval_Old_Warn);
13757 pragma Inline (Set_Unit);
13758 pragma Inline (Set_Uninitialized_Variable);
13759 pragma Inline (Set_Unknown_Discriminants_Present);
13760 pragma Inline (Set_Unreferenced_In_Spec);
13761 pragma Inline (Set_Used_Operations);
13762 pragma Inline (Set_Variant_Part);
13763 pragma Inline (Set_Variants);
13764 pragma Inline (Set_Visible_Declarations);
13765 pragma Inline (Set_Was_Attribute_Reference);
13766 pragma Inline (Set_Was_Expression_Function);
13767 pragma Inline (Set_Was_Originally_Stub);
13768 pragma Inline (Set_Withed_Body);
13770 end Sinfo;