Small ChangeLog tweak.
[official-gcc.git] / gcc / ada / sinfo.ads
blob93b0653e719aa604cc09ed6e9eeead1bad6a1915
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 -- ABE_Is_Certain (Flag18-Sem)
849 -- This flag is set in an instantiation node or a call node is determined
850 -- to be sure to raise an ABE. This is used to trigger special handling
851 -- of such cases, particularly in the instantiation case where we avoid
852 -- instantiating the body if this flag is set. This flag is also present
853 -- in an N_Formal_Package_Declaration node since formal package
854 -- declarations are treated like instantiations, but it is always set to
855 -- False in this context.
857 -- Accept_Handler_Records (List5-Sem)
858 -- This field is present only in an N_Accept_Alternative node. It is used
859 -- to temporarily hold the exception handler records from an accept
860 -- statement in a selective accept. These exception handlers will
861 -- eventually be placed in the Handler_Records list of the procedure
862 -- built for this accept (see Expand_N_Selective_Accept procedure in
863 -- Exp_Ch9 for further details).
865 -- Access_Types_To_Process (Elist2-Sem)
866 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
867 -- Contains the list of access types which may require specific treatment
868 -- when the nature of the type completion is completely known. An example
869 -- of such treatment is the generation of the associated_final_chain.
871 -- Actions (List1-Sem)
872 -- This field contains a sequence of actions that are associated with the
873 -- node holding the field. See the individual node types for details of
874 -- how this field is used, as well as the description of the specific use
875 -- for a particular node type.
877 -- Activation_Chain_Entity (Node3-Sem)
878 -- This is used in tree nodes representing task activators (blocks,
879 -- subprogram bodies, package declarations, and task bodies). It is
880 -- initially Empty, and then gets set to point to the entity for the
881 -- declared Activation_Chain variable when the first task is declared.
882 -- When tasks are declared in the corresponding declarative region this
883 -- entity is located by name (its name is always _Chain) and the declared
884 -- tasks are added to the chain. Note that N_Extended_Return_Statement
885 -- does not have this attribute, although it does have an activation
886 -- chain. This chain is used to store the tasks temporarily, and is not
887 -- used for activating them. On successful completion of the return
888 -- statement, the tasks are moved to the caller's chain, and the caller
889 -- activates them.
891 -- Acts_As_Spec (Flag4-Sem)
892 -- A flag set in the N_Subprogram_Body node for a subprogram body which
893 -- is acting as its own spec. In the case of a library-level subprogram
894 -- the flag is set as well on the parent compilation unit node.
896 -- Actual_Designated_Subtype (Node4-Sem)
897 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
898 -- needs to known the dynamic constrained subtype of the designated
899 -- object, this attribute is set to that type. This is done for
900 -- N_Free_Statements for access-to-classwide types and access to
901 -- unconstrained packed array types, and for N_Explicit_Dereference when
902 -- the designated type is an unconstrained packed array and the
903 -- dereference is the prefix of a 'Size attribute reference.
905 -- Address_Warning_Posted (Flag18-Sem)
906 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
907 -- posted a warning for the address clause regarding size or alignment
908 -- issues. Used to inhibit multiple redundant messages.
910 -- Aggregate_Bounds (Node3-Sem)
911 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
912 -- known at compile time, this field points to an N_Range node with those
913 -- bounds. Otherwise Empty.
915 -- All_Others (Flag11-Sem)
916 -- Present in an N_Others_Choice node. This flag is set for an others
917 -- exception where all exceptions are to be caught, even those that are
918 -- not normally handled (in particular the tasking abort signal). This
919 -- is used for translation of the at end handler into a normal exception
920 -- handler.
922 -- Aspect_Rep_Item (Node2-Sem)
923 -- Present in N_Aspect_Specification nodes. Points to the corresponding
924 -- pragma/attribute definition node used to process the aspect.
926 -- Assignment_OK (Flag15-Sem)
927 -- This flag is set in a subexpression node for an object, indicating
928 -- that the associated object can be modified, even if this would not
929 -- normally be permissible (either by direct assignment, or by being
930 -- passed as an out or in-out parameter). This is used by the expander
931 -- for a number of purposes, including initialization of constants and
932 -- limited type objects (such as tasks), setting discriminant fields,
933 -- setting tag values, etc. N_Object_Declaration nodes also have this
934 -- flag defined. Here it is used to indicate that an initialization
935 -- expression is valid, even where it would normally not be allowed
936 -- (e.g. where the type involved is limited). It is also used to stop
937 -- a Force_Evaluation call for an unchecked conversion, but this usage
938 -- is unclear and not documented ???
940 -- Associated_Node (Node4-Sem)
941 -- Present in nodes that can denote an entity: identifiers, character
942 -- literals, operator symbols, expanded names, operator nodes, and
943 -- attribute reference nodes (all these nodes have an Entity field).
944 -- This field is also present in N_Aggregate, N_Selected_Component, and
945 -- N_Extension_Aggregate nodes. This field is used in generic processing
946 -- to create links between the generic template and the generic copy.
947 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
948 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
949 -- the normal function of Entity is not required at the point where the
950 -- Associated_Node is set. Note also, that in generic templates, this
951 -- means that the Entity field does not necessarily point to an Entity.
952 -- Since the back end is expected to ignore generic templates, this is
953 -- harmless.
955 -- Atomic_Sync_Required (Flag14-Sem)
956 -- This flag is set on a node for which atomic synchronization is
957 -- required for the corresponding reference or modification.
959 -- At_End_Proc (Node1)
960 -- This field is present in an N_Handled_Sequence_Of_Statements node.
961 -- It contains an identifier reference for the cleanup procedure to be
962 -- called. See description of this node for further details.
964 -- Backwards_OK (Flag6-Sem)
965 -- A flag present in the N_Assignment_Statement node. It is used only
966 -- if the type being assigned is an array type, and is set if analysis
967 -- determines that it is definitely safe to do the copy backwards, i.e.
968 -- starting at the highest addressed element. This is the case if either
969 -- the operands do not overlap, or they may overlap, but if they do,
970 -- then the left operand is at a higher address than the right operand.
972 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
973 -- means that the front end could not determine that either direction is
974 -- definitely safe, and a runtime check may be required if the backend
975 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
976 -- set, it means that the front end can assure no overlap of operands.
978 -- Body_To_Inline (Node3-Sem)
979 -- Present in subprogram declarations. Denotes analyzed but unexpanded
980 -- body of subprogram, to be used when inlining calls. Present when the
981 -- subprogram has an Inline pragma and inlining is enabled. If the
982 -- declaration is completed by a renaming_as_body, and the renamed entity
983 -- is a subprogram, the Body_To_Inline is the name of that entity, which
984 -- is used directly in later calls to the original subprogram.
986 -- Body_Required (Flag13-Sem)
987 -- A flag that appears in the N_Compilation_Unit node indicating that
988 -- the corresponding unit requires a body. For the package case, this
989 -- indicates that a completion is required. In Ada 95, if the flag is not
990 -- set for the package case, then a body may not be present. In Ada 83,
991 -- if the flag is not set for the package case, then body is optional.
992 -- For a subprogram declaration, the flag is set except in the case where
993 -- a pragma Import or Interface applies, in which case no body is
994 -- permitted (in Ada 83 or Ada 95).
996 -- By_Ref (Flag5-Sem)
997 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
998 -- this flag is set when the returned expression is already allocated on
999 -- the secondary stack and thus the result is passed by reference rather
1000 -- than copied another time.
1002 -- Cleanup_Actions (List5-Sem)
1003 -- Present in block statements created for transient blocks, contains
1004 -- additional cleanup actions carried over from the transient scope.
1006 -- Check_Address_Alignment (Flag11-Sem)
1007 -- A flag present in N_Attribute_Definition clause for a 'Address
1008 -- attribute definition. This flag is set if a dynamic check should be
1009 -- generated at the freeze point for the entity to which this address
1010 -- clause applies. The reason that we need this flag is that we want to
1011 -- check for range checks being suppressed at the point where the
1012 -- attribute definition clause is given, rather than testing this at the
1013 -- freeze point.
1015 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
1016 -- Present in N_Simple_Return_Statement nodes. True if this node was
1017 -- constructed as part of the N_Extended_Return_Statement expansion.
1019 -- Compile_Time_Known_Aggregate (Flag18-Sem)
1020 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
1021 -- evaluated at compile time without raising constraint error. Such
1022 -- aggregates can be passed as is to the back end without any expansion.
1023 -- See Exp_Aggr for specific conditions under which this flag gets set.
1025 -- Componentwise_Assignment (Flag14-Sem)
1026 -- Present in N_Assignment_Statement nodes. Set for a record assignment
1027 -- where all that needs doing is to expand it into component-by-component
1028 -- assignments. This is used internally for the case of tagged types with
1029 -- rep clauses, where we need to avoid recursion (we don't want to try to
1030 -- generate a call to the primitive operation, because this is the case
1031 -- where we are compiling the primitive operation). Note that when we are
1032 -- expanding component assignments in this case, we never assign the _tag
1033 -- field, but we recursively assign components of the parent type.
1035 -- Condition_Actions (List3-Sem)
1036 -- This field appears in else-if nodes and in the iteration scheme node
1037 -- for while loops. This field is only used during semantic processing to
1038 -- temporarily hold actions inserted into the tree. In the tree passed
1039 -- to gigi, the condition actions field is always set to No_List. For
1040 -- details on how this field is used, see the routine Insert_Actions in
1041 -- package Exp_Util, and also the expansion routines for the relevant
1042 -- nodes.
1044 -- Context_Pending (Flag16-Sem)
1045 -- This field appears in Compilation_Unit nodes, to indicate that the
1046 -- context of the unit is being compiled. Used to detect circularities
1047 -- that are not otherwise detected by the loading mechanism. Such
1048 -- circularities can occur in the presence of limited and non-limited
1049 -- with_clauses that mention the same units.
1051 -- Controlling_Argument (Node1-Sem)
1052 -- This field is set in procedure and function call nodes if the call
1053 -- is a dispatching call (it is Empty for a non-dispatching call). It
1054 -- indicates the source of the call's controlling tag. For procedure
1055 -- calls, the Controlling_Argument is one of the actuals. For function
1056 -- that has a dispatching result, it is an entity in the context of the
1057 -- call that can provide a tag, or else it is the tag of the root type
1058 -- of the class. It can also specify a tag directly rather than being a
1059 -- tagged object. The latter is needed by the implementations of AI-239
1060 -- and AI-260.
1062 -- Conversion_OK (Flag14-Sem)
1063 -- A flag set on type conversion nodes to indicate that the conversion
1064 -- is to be considered as being valid, even though it is the case that
1065 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1066 -- Fixed_Value and Integer_Value, for internal conversions done for
1067 -- fixed-point operations, and for certain conversions for calls to
1068 -- initialization procedures. If Conversion_OK is set, then Etype must be
1069 -- set (the analyzer assumes that Etype has been set). For the case of
1070 -- fixed-point operands, it also indicates that the conversion is to be
1071 -- direct conversion of the underlying integer result, with no regard to
1072 -- the small operand.
1074 -- Convert_To_Return_False (Flag13-Sem)
1075 -- Present in N_Raise_Expression nodes that appear in the body of the
1076 -- special predicateM function used to test a predicate in the context
1077 -- of a membership test, where raise expression results in returning a
1078 -- value of False rather than raising an exception.
1080 -- Corresponding_Aspect (Node3-Sem)
1081 -- Present in N_Pragma node. Used to point back to the source aspect from
1082 -- the corresponding pragma. This field is Empty for source pragmas.
1084 -- Corresponding_Body (Node5-Sem)
1085 -- This field is set in subprogram declarations, package declarations,
1086 -- entry declarations of protected types, and in generic units. It points
1087 -- to the defining entity for the corresponding body (NOT the node for
1088 -- the body itself).
1090 -- Corresponding_Formal_Spec (Node3-Sem)
1091 -- This field is set in subprogram renaming declarations, where it points
1092 -- to the defining entity for a formal subprogram in the case where the
1093 -- renaming corresponds to a generic formal subprogram association in an
1094 -- instantiation. The field is Empty if the renaming does not correspond
1095 -- to such a formal association.
1097 -- Corresponding_Generic_Association (Node5-Sem)
1098 -- This field is defined for object declarations and object renaming
1099 -- declarations. It is set for the declarations within an instance that
1100 -- map generic formals to their actuals. If set, the field points to
1101 -- a generic_association which is the original parent of the expression
1102 -- or name appearing in the declaration. This simplifies ASIS queries.
1104 -- Corresponding_Integer_Value (Uint4-Sem)
1105 -- This field is set in real literals of fixed-point types (it is not
1106 -- used for floating-point types). It contains the integer value used
1107 -- to represent the fixed-point value. It is also set on the universal
1108 -- real literals used to represent bounds of fixed-point base types
1109 -- and their first named subtypes.
1111 -- Corresponding_Spec (Node5-Sem)
1112 -- This field is set in subprogram, package, task, and protected body
1113 -- nodes, where it points to the defining entity in the corresponding
1114 -- spec. The attribute is also set in N_With_Clause nodes where it points
1115 -- to the defining entity for the with'ed spec, and in a subprogram
1116 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1117 -- if there is no corresponding spec, as in the case of a subprogram body
1118 -- that serves as its own spec.
1120 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1121 -- complete a subprogram declaration.
1123 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1124 -- This field is present in subprogram, package, task and protected body
1125 -- stubs where it points to the corresponding spec of the stub. Due to
1126 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1128 -- Corresponding_Stub (Node3-Sem)
1129 -- This field is present in an N_Subunit node. It holds the node in
1130 -- the parent unit that is the stub declaration for the subunit. It is
1131 -- set when analysis of the stub forces loading of the proper body. If
1132 -- expansion of the proper body creates new declarative nodes, they are
1133 -- inserted at the point of the corresponding_stub.
1135 -- Dcheck_Function (Node5-Sem)
1136 -- This field is present in an N_Variant node, It references the entity
1137 -- for the discriminant checking function for the variant.
1139 -- Default_Expression (Node5-Sem)
1140 -- This field is Empty if there is no default expression. If there is a
1141 -- simple default expression (one with no side effects), then this field
1142 -- simply contains a copy of the Expression field (both point to the tree
1143 -- for the default expression). Default_Expression is used for
1144 -- conformance checking.
1146 -- Default_Storage_Pool (Node3-Sem)
1147 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1148 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1149 -- package Opt for details. This is used for inheriting the
1150 -- Default_Storage_Pool in child units.
1152 -- Discr_Check_Funcs_Built (Flag11-Sem)
1153 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1154 -- discriminant checking functions are constructed. The purpose is to
1155 -- avoid attempting to set these functions more than once.
1157 -- Do_Accessibility_Check (Flag13-Sem)
1158 -- This flag is set on N_Parameter_Specification nodes to indicate
1159 -- that an accessibility check is required for the parameter. It is
1160 -- not yet decided who takes care of this check (TBD ???).
1162 -- Do_Discriminant_Check (Flag1-Sem)
1163 -- This flag is set on N_Selected_Component nodes to indicate that a
1164 -- discriminant check is required using the discriminant check routine
1165 -- associated with the selector. The actual check is generated by the
1166 -- expander when processing selected components. In the case of
1167 -- Unchecked_Union, the flag is also set, but no discriminant check
1168 -- routine is associated with the selector, and the expander does not
1169 -- generate a check. This flag is also present in assignment statements
1170 -- (and set if the assignment requires a discriminant check), and in type
1171 -- conversion nodes (and set if the conversion requires a check).
1173 -- Do_Division_Check (Flag13-Sem)
1174 -- This flag is set on a division operator (/ mod rem) to indicate
1175 -- that a zero divide check is required. The actual check is dealt
1176 -- with by the backend (all the front end does is to set the flag).
1178 -- Do_Length_Check (Flag4-Sem)
1179 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1180 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1181 -- is required. It is not determined who deals with this flag (???).
1183 -- Do_Overflow_Check (Flag17-Sem)
1184 -- This flag is set on an operator where an overflow check is required on
1185 -- the operation. The actual check is dealt with by the backend (all the
1186 -- front end does is to set the flag). The other cases where this flag is
1187 -- used is on a Type_Conversion node and for attribute reference nodes.
1188 -- For a type conversion, it means that the conversion is from one base
1189 -- type to another, and the value may not fit in the target base type.
1190 -- See also the description of Do_Range_Check for this case. The only
1191 -- attribute references which use this flag are Pred and Succ, where it
1192 -- means that the result should be checked for going outside the base
1193 -- range. Note that this flag is not set for modular types. This flag is
1194 -- also set on if and case expression nodes if we are operating in either
1195 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1196 -- properly process overflow checking for dependent expressions).
1198 -- Do_Range_Check (Flag9-Sem)
1199 -- This flag is set on an expression which appears in a context where a
1200 -- range check is required. The target type is clear from the context.
1201 -- The contexts in which this flag can appear are the following:
1203 -- Right side of an assignment. In this case the target type is
1204 -- taken from the left side of the assignment, which is referenced
1205 -- by the Name of the N_Assignment_Statement node.
1207 -- Subscript expressions in an indexed component. In this case the
1208 -- target type is determined from the type of the array, which is
1209 -- referenced by the Prefix of the N_Indexed_Component node.
1211 -- Argument expression for a parameter, appearing either directly in
1212 -- the Parameter_Associations list of a call or as the Expression of an
1213 -- N_Parameter_Association node that appears in this list. In either
1214 -- case, the check is against the type of the formal. Note that the
1215 -- flag is relevant only in IN and IN OUT parameters, and will be
1216 -- ignored for OUT parameters, where no check is required in the call,
1217 -- and if a check is required on the return, it is generated explicitly
1218 -- with a type conversion.
1220 -- Initialization expression for the initial value in an object
1221 -- declaration. In this case the Do_Range_Check flag is set on
1222 -- the initialization expression, and the check is against the
1223 -- range of the type of the object being declared. This includes the
1224 -- cases of expressions providing default discriminant values, and
1225 -- expressions used to initialize record components.
1227 -- The expression of a type conversion. In this case the range check is
1228 -- against the target type of the conversion. See also the use of
1229 -- Do_Overflow_Check on a type conversion. The distinction is that the
1230 -- overflow check protects against a value that is outside the range of
1231 -- the target base type, whereas a range check checks that the
1232 -- resulting value (which is a value of the base type of the target
1233 -- type), satisfies the range constraint of the target type.
1235 -- Note: when a range check is required in contexts other than those
1236 -- listed above (e.g. in a return statement), an additional type
1237 -- conversion node is introduced to represent the required check.
1239 -- A special case arises for the arguments of the Pred/Succ attributes.
1240 -- Here the range check needed is against First + 1 .. Last (Pred) or
1241 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1242 -- these checks are what would be performed within the implicit body of
1243 -- the functions that correspond to these attributes. In these cases,
1244 -- the Do_Range check flag is set on the argument to the attribute
1245 -- function, and the back end must special case the appropriate range
1246 -- to check against.
1248 -- Do_Storage_Check (Flag17-Sem)
1249 -- This flag is set in an N_Allocator node to indicate that a storage
1250 -- check is required for the allocation, or in an N_Subprogram_Body node
1251 -- to indicate that a stack check is required in the subprogram prologue.
1252 -- The N_Allocator case is handled by the routine that expands the call
1253 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1254 -- backend, and all the semantics does is set the flag.
1256 -- Do_Tag_Check (Flag13-Sem)
1257 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1258 -- N_Procedure_Call_Statement, N_Type_Conversion,
1259 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1260 -- node to indicate that the tag check can be suppressed. It is not
1261 -- yet decided how this flag is used (TBD ???).
1263 -- Elaborate_Present (Flag4-Sem)
1264 -- This flag is set in the N_With_Clause node to indicate that pragma
1265 -- Elaborate pragma appears for the with'ed units.
1267 -- Elaborate_All_Desirable (Flag9-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_All pragma is
1270 -- desirable for correct elaboration for this unit.
1272 -- Elaborate_All_Present (Flag14-Sem)
1273 -- This flag is set in the N_With_Clause node to indicate that a
1274 -- pragma Elaborate_All pragma appears for the with'ed units.
1276 -- Elaborate_Desirable (Flag11-Sem)
1277 -- This flag is set in the N_With_Clause mode to indicate that the static
1278 -- elaboration processing has determined that an Elaborate pragma is
1279 -- desirable for correct elaboration for this unit.
1281 -- Else_Actions (List3-Sem)
1282 -- This field is present in if expression nodes. During code
1283 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1284 -- actions at an appropriate place in the tree to get elaborated at the
1285 -- right time. For if expressions, we have to be sure that the actions
1286 -- for the Else branch are only elaborated if the condition is False.
1287 -- The Else_Actions field is used as a temporary parking place for
1288 -- these actions. The final tree is always rewritten to eliminate the
1289 -- need for this field, so in the tree passed to Gigi, this field is
1290 -- always set to No_List.
1292 -- Enclosing_Variant (Node2-Sem)
1293 -- This field is present in the N_Variant node and identifies the Node_Id
1294 -- corresponding to the immediately enclosing variant when the variant is
1295 -- nested, and N_Empty otherwise. Set during semantic processing of the
1296 -- variant part of a record type.
1298 -- Entity (Node4-Sem)
1299 -- Appears in all direct names (identifiers, character literals, and
1300 -- operator symbols), as well as expanded names, and attributes that
1301 -- denote entities, such as 'Class. Points to entity for corresponding
1302 -- defining occurrence. Set after name resolution. For identifiers in a
1303 -- WITH list, the corresponding defining occurrence is in a separately
1304 -- compiled file, and Entity must be set by the library Load procedure.
1306 -- Note: During name resolution, the value in Entity may be temporarily
1307 -- incorrect (e.g. during overload resolution, Entity is initially set to
1308 -- the first possible correct interpretation, and then later modified if
1309 -- necessary to contain the correct value after resolution).
1311 -- Note: This field overlaps Associated_Node, which is used during
1312 -- generic processing (see Sem_Ch12 for details). Note also that in
1313 -- generic templates, this means that the Entity field does not always
1314 -- point to an Entity. Since the back end is expected to ignore generic
1315 -- templates, this is harmless.
1317 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1318 -- It is used only for stream attributes definition clauses. In this
1319 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1320 -- conceptually at the point of the clause. Thus the visibility of the
1321 -- attribute definition clause (in the sense of 8.3(23) as amended by
1322 -- AI-195) can be checked by testing the visibility of that subprogram.
1324 -- Note: Normally the Entity field of an identifier points to the entity
1325 -- for the corresponding defining identifier, and hence the Chars field
1326 -- of an identifier will match the Chars field of the entity. However,
1327 -- there is no requirement that these match, and there are obscure cases
1328 -- of generated code where they do not match.
1330 -- Note: Ada 2012 aspect specifications require additional links between
1331 -- identifiers and various attributes. These attributes can be of
1332 -- arbitrary types, and the entity field of identifiers that denote
1333 -- aspects must be used to store arbitrary expressions for later semantic
1334 -- checks. See section on aspect specifications for details.
1336 -- Entity_Or_Associated_Node (Node4-Sem)
1337 -- A synonym for both Entity and Associated_Node. Used by convention in
1338 -- the code when referencing this field in cases where it is not known
1339 -- whether the field contains an Entity or an Associated_Node.
1341 -- Etype (Node5-Sem)
1342 -- Appears in all expression nodes, all direct names, and all entities.
1343 -- Points to the entity for the related type. Set after type resolution.
1344 -- Normally this is the actual subtype of the expression. However, in
1345 -- certain contexts such as the right side of an assignment, subscripts,
1346 -- arguments to calls, returned value in a function, initial value etc.
1347 -- it is the desired target type. In the event that this is different
1348 -- from the actual type, the Do_Range_Check flag will be set if a range
1349 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1350 -- points to an essentially arbitrary choice from the possible set of
1351 -- types.
1353 -- Exception_Junk (Flag8-Sem)
1354 -- This flag is set in a various nodes appearing in a statement sequence
1355 -- to indicate that the corresponding node is an artifact of the
1356 -- generated code for exception handling, and should be ignored when
1357 -- analyzing the control flow of the relevant sequence of statements
1358 -- (e.g. to check that it does not end with a bad return statement).
1360 -- Exception_Label (Node5-Sem)
1361 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1362 -- to be used for transforming the corresponding exception into a goto,
1363 -- or contains Empty, if this exception is not to be transformed. Also
1364 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1365 -- that there may be a local raise for the handler, so that expansion
1366 -- to allow a goto is required (and this field contains the label for
1367 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1369 -- Expansion_Delayed (Flag11-Sem)
1370 -- Set on aggregates and extension aggregates that need a top-down rather
1371 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1372 -- up. For nested aggregates the expansion is delayed until the enclosing
1373 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1374 -- delay it we set this flag. This is done to avoid creating a temporary
1375 -- for each level of a nested aggregates, and also to prevent the
1376 -- premature generation of constraint checks. This is also a requirement
1377 -- if we want to generate the proper attachment to the internal
1378 -- finalization lists (for record with controlled components). Top down
1379 -- expansion of aggregates is also used for in-place array aggregate
1380 -- assignment or initialization. When the full context is known, the
1381 -- target of the assignment or initialization is used to generate the
1382 -- left-hand side of individual assignment to each sub-component.
1384 -- Expression_Copy (Node2-Sem)
1385 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1386 -- original expression. This field is best used to store pragma-dependent
1387 -- modifications performed on the original expression such as replacement
1388 -- of the current type instance or substitutions of primitives.
1390 -- First_Inlined_Subprogram (Node3-Sem)
1391 -- Present in the N_Compilation_Unit node for the main program. Points
1392 -- to a chain of entities for subprograms that are to be inlined. The
1393 -- Next_Inlined_Subprogram field of these entities is used as a link
1394 -- pointer with Empty marking the end of the list. This field is Empty
1395 -- if there are no inlined subprograms or inlining is not active.
1397 -- First_Named_Actual (Node4-Sem)
1398 -- Present in procedure call statement and function call nodes, and also
1399 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1400 -- named parameter where parameters are ordered by declaration order (as
1401 -- opposed to the actual order in the call which may be different due to
1402 -- named associations). Note: this field points to the explicit actual
1403 -- parameter itself, not the N_Parameter_Association node (its parent).
1405 -- First_Real_Statement (Node2-Sem)
1406 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1407 -- Empty. Used only when declarations are moved into the statement part
1408 -- of a construct as a result of wrapping an AT END handler that is
1409 -- required to cover the declarations. In this case, this field is used
1410 -- to remember the location in the statements list of the first real
1411 -- statement, i.e. the statement that used to be first in the statement
1412 -- list before the declarations were prepended.
1414 -- First_Subtype_Link (Node5-Sem)
1415 -- Present in N_Freeze_Entity node for an anonymous base type that is
1416 -- implicitly created by the declaration of a first subtype. It points
1417 -- to the entity for the first subtype.
1419 -- Float_Truncate (Flag11-Sem)
1420 -- A flag present in type conversion nodes. This is used for float to
1421 -- integer conversions where truncation is required rather than rounding.
1423 -- Forwards_OK (Flag5-Sem)
1424 -- A flag present in the N_Assignment_Statement node. It is used only
1425 -- if the type being assigned is an array type, and is set if analysis
1426 -- determines that it is definitely safe to do the copy forwards, i.e.
1427 -- starting at the lowest addressed element. This is the case if either
1428 -- the operands do not overlap, or they may overlap, but if they do,
1429 -- then the left operand is at a lower address than the right operand.
1431 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1432 -- means that the front end could not determine that either direction is
1433 -- definitely safe, and a runtime check may be required if the backend
1434 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1435 -- set, it means that the front end can assure no overlap of operands.
1437 -- From_Aspect_Specification (Flag13-Sem)
1438 -- Processing of aspect specifications typically results in insertion in
1439 -- the tree of corresponding pragma or attribute definition clause nodes.
1440 -- These generated nodes have the From_Aspect_Specification flag set to
1441 -- indicate that they came from aspect specifications originally.
1443 -- From_At_End (Flag4-Sem)
1444 -- This flag is set on an N_Raise_Statement node if it corresponds to
1445 -- the reraise statement generated as the last statement of an AT END
1446 -- handler when SJLJ exception handling is active. It is used to stop
1447 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1448 -- because if the restriction is set, the reraise is not generated.
1450 -- From_At_Mod (Flag4-Sem)
1451 -- This flag is set on the attribute definition clause node that is
1452 -- generated by a transformation of an at mod phrase in a record
1453 -- representation clause. This is used to give slightly different (Ada 83
1454 -- compatible) semantics to such a clause, namely it is used to specify a
1455 -- minimum acceptable alignment for the base type and all subtypes. In
1456 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1457 -- must be a multiple of the given value, and the representation clause
1458 -- is considered to be type specific instead of subtype specific.
1460 -- From_Conditional_Expression (Flag1-Sem)
1461 -- This flag is set on if and case statements generated by the expansion
1462 -- of if and case expressions respectively. The flag is used to suppress
1463 -- any finalization of controlled objects found within these statements.
1465 -- From_Default (Flag6-Sem)
1466 -- This flag is set on the subprogram renaming declaration created in an
1467 -- instance for a formal subprogram, when the formal is declared with a
1468 -- box, and there is no explicit actual. If the flag is present, the
1469 -- declaration is treated as an implicit reference to the formal in the
1470 -- ali file.
1472 -- Generalized_Indexing (Node4-Sem)
1473 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1474 -- that are Ada 2012 container indexing operations. The value of the
1475 -- attribute is a function call (possibly dereferenced) that corresponds
1476 -- to the proper expansion of the source indexing operation. Before
1477 -- expansion, the source node is rewritten as the resolved generalized
1478 -- indexing. In ASIS mode, the expansion does not take place, so that
1479 -- the source is preserved and properly annotated with types.
1481 -- Generic_Parent (Node5-Sem)
1482 -- Generic_Parent is defined on declaration nodes that are instances. The
1483 -- value of Generic_Parent is the generic entity from which the instance
1484 -- is obtained. Generic_Parent is also defined for the renaming
1485 -- declarations and object declarations created for the actuals in an
1486 -- instantiation. The generic parent of such a declaration is the
1487 -- corresponding generic association in the Instantiation node.
1489 -- Generic_Parent_Type (Node4-Sem)
1490 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1491 -- actuals of formal private and derived types. Within the instance, the
1492 -- operations on the actual are those inherited from the parent. For a
1493 -- formal private type, the parent type is the generic type itself. The
1494 -- Generic_Parent_Type is also used in an instance to determine whether a
1495 -- private operation overrides an inherited one.
1497 -- Handler_List_Entry (Node2-Sem)
1498 -- This field is present in N_Object_Declaration nodes. It is set only
1499 -- for the Handler_Record entry generated for an exception in zero cost
1500 -- exception handling mode. It references the corresponding item in the
1501 -- handler list, and is used to delete this entry if the corresponding
1502 -- handler is deleted during optimization. For further details on why
1503 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1505 -- Has_Dereference_Action (Flag13-Sem)
1506 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1507 -- indicate that the expansion has aready produced a call to primitive
1508 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1509 -- Such dereference actions are produced for debugging purposes.
1511 -- Has_Dynamic_Length_Check (Flag10-Sem)
1512 -- This flag is present in all expression nodes. It is set to indicate
1513 -- that one of the routines in unit Checks has generated a length check
1514 -- action which has been inserted at the flagged node. This is used to
1515 -- avoid the generation of duplicate checks.
1517 -- Has_Dynamic_Range_Check (Flag12-Sem)
1518 -- This flag is present in N_Subtype_Declaration nodes and on all
1519 -- expression nodes. It is set to indicate that one of the routines in
1520 -- unit Checks has generated a range check action which has been inserted
1521 -- at the flagged node. This is used to avoid the generation of duplicate
1522 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1523 -- it mean in that context???
1525 -- Has_Local_Raise (Flag8-Sem)
1526 -- Present in exception handler nodes. Set if the handler can be entered
1527 -- via a local raise that gets transformed to a goto statement. This will
1528 -- always be set if Local_Raise_Statements is non-empty, but can also be
1529 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1530 -- nodes requiring generation of back end checks.
1532 -- Has_No_Elaboration_Code (Flag17-Sem)
1533 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1534 -- or not elaboration code is present for this unit. It is initially set
1535 -- true for subprogram specs and bodies and for all generic units and
1536 -- false for non-generic package specs and bodies. Gigi may set the flag
1537 -- in the non-generic package case if it determines that no elaboration
1538 -- code is generated. Note that this flag is not related to the
1539 -- Is_Preelaborated status, there can be preelaborated packages that
1540 -- generate elaboration code, and non-preelaborated packages which do
1541 -- not generate elaboration code.
1543 -- Has_Pragma_Suppress_All (Flag14-Sem)
1544 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1545 -- pragma appears anywhere in the unit. This accommodates the rather
1546 -- strange placement rules of other compilers (DEC permits it at the
1547 -- end of a unit, and Rational allows it as a program unit pragma). We
1548 -- allow it anywhere at all, and consider it equivalent to a pragma
1549 -- Suppress (All_Checks) appearing at the start of the configuration
1550 -- pragmas for the unit.
1552 -- Has_Private_View (Flag11-Sem)
1553 -- A flag present in generic nodes that have an entity, to indicate that
1554 -- the node has a private type. Used to exchange private and full
1555 -- declarations if the visibility at instantiation is different from the
1556 -- visibility at generic definition.
1558 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1559 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1560 -- flag the presence of a pragma Relative_Deadline.
1562 -- Has_Self_Reference (Flag13-Sem)
1563 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1564 -- of the expressions contains an access attribute reference to the
1565 -- enclosing type. Such a self-reference can only appear in default-
1566 -- initialized aggregate for a record type.
1568 -- Has_SP_Choice (Flag15-Sem)
1569 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1570 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1571 -- True if the Discrete_Choices list has at least one occurrence of a
1572 -- statically predicated subtype.
1574 -- Has_Storage_Size_Pragma (Flag5-Sem)
1575 -- A flag present in an N_Task_Definition node to flag the presence of a
1576 -- Storage_Size pragma.
1578 -- Has_Target_Names (Flag8-Sem)
1579 -- Present in assignment statements. Indicates that the RHS contains
1580 -- target names (see AI12-0125-3) and must be expanded accordingly.
1582 -- Has_Wide_Character (Flag11-Sem)
1583 -- Present in string literals, set if any wide character (i.e. character
1584 -- code outside the Character range but within Wide_Character range)
1585 -- appears in the string. Used to implement pragma preference rules.
1587 -- Has_Wide_Wide_Character (Flag13-Sem)
1588 -- Present in string literals, set if any wide character (i.e. character
1589 -- code outside the Wide_Character range) appears in the string. Used to
1590 -- implement pragma preference rules.
1592 -- Header_Size_Added (Flag11-Sem)
1593 -- Present in N_Attribute_Reference nodes, set only for attribute
1594 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1595 -- hidden list header used by the runtime finalization support has been
1596 -- added to the size of the prefix. The flag also prevents the infinite
1597 -- expansion of the same attribute in the said context.
1599 -- Hidden_By_Use_Clause (Elist4-Sem)
1600 -- An entity list present in use clauses that appear within
1601 -- instantiations. For the resolution of local entities, entities
1602 -- introduced by these use clauses have priority over global ones, and
1603 -- outer entities must be explicitly hidden/restored on exit.
1605 -- Implicit_With (Flag16-Sem)
1606 -- This flag is set in the N_With_Clause node that is implicitly
1607 -- generated for runtime units that are loaded by the expander or in
1608 -- GNATprove mode, and also for package System, if it is loaded
1609 -- implicitly by a use of the 'Address or 'Tag attribute.
1610 -- ??? There are other implicit with clauses as well.
1612 -- Implicit_With_From_Instantiation (Flag12-Sem)
1613 -- Set in N_With_Clause nodes from generic instantiations.
1615 -- Import_Interface_Present (Flag16-Sem)
1616 -- This flag is set in an Interface or Import pragma if a matching
1617 -- pragma of the other kind is also present. This is used to avoid
1618 -- generating some unwanted error messages.
1620 -- Includes_Infinities (Flag11-Sem)
1621 -- This flag is present in N_Range nodes. It is set for the range of
1622 -- unconstrained float types defined in Standard, which include not only
1623 -- the given range of values, but also legitimately can include infinite
1624 -- values. This flag is false for any float type for which an explicit
1625 -- range is given by the programmer, even if that range is identical to
1626 -- the range for Float.
1628 -- Incomplete_View (Node2-Sem)
1629 -- Present in full type declarations that are completions of incomplete
1630 -- type declarations. Denotes the corresponding incomplete type
1631 -- declaration. Used to simplify the retrieval of primitive operations
1632 -- that may be declared between the partial and the full view of an
1633 -- untagged type.
1635 -- Inherited_Discriminant (Flag13-Sem)
1636 -- This flag is present in N_Component_Association nodes. It indicates
1637 -- that a given component association in an extension aggregate is the
1638 -- value obtained from a constraint on an ancestor. Used to prevent
1639 -- double expansion when the aggregate has expansion delayed.
1641 -- Instance_Spec (Node5-Sem)
1642 -- This field is present in generic instantiation nodes, and also in
1643 -- formal package declaration nodes (formal package declarations are
1644 -- treated in a manner very similar to package instantiations). It points
1645 -- to the node for the spec of the instance, inserted as part of the
1646 -- semantic processing for instantiations in Sem_Ch12.
1648 -- Is_Abort_Block (Flag4-Sem)
1649 -- Present in N_Block_Statement nodes. True if the block protects a list
1650 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1652 -- Is_Accessibility_Actual (Flag13-Sem)
1653 -- Present in N_Parameter_Association nodes. True if the parameter is
1654 -- an extra actual that carries the accessibility level of the actual
1655 -- for an access parameter, in a function that dispatches on result and
1656 -- is called in a dispatching context. Used to prevent a formal/actual
1657 -- mismatch when the call is rewritten as a dispatching call.
1659 -- Is_Analyzed_Pragma (Flag5-Sem)
1660 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1661 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1662 -- and verifies the overall legality of the pragma. The second step takes
1663 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1664 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1666 -- Is_Expanded_Contract (Flag1-Sem)
1667 -- Present in N_Contract nodes. Set if the contract has already undergone
1668 -- expansion activities.
1670 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1671 -- A flag set in a Block_Statement node to indicate that it is the
1672 -- expansion of an asynchronous entry call. Such a block needs cleanup
1673 -- handler to assure that the call is cancelled.
1675 -- Is_Boolean_Aspect (Flag16-Sem)
1676 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1677 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1679 -- Is_Checked (Flag11-Sem)
1680 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1681 -- assertion aspect or pragma, or check pragma for an assertion, that
1682 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1683 -- is set (they cannot both be set), then this means that the status of
1684 -- the pragma has been checked at the appropriate point and should not
1685 -- be further modified (in some cases these flags are copied when a
1686 -- pragma is rewritten).
1688 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1689 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1690 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1691 -- This flag has no relation to Is_Checked.
1693 -- Is_Component_Left_Opnd (Flag13-Sem)
1694 -- Is_Component_Right_Opnd (Flag14-Sem)
1695 -- Present in concatenation nodes, to indicate that the corresponding
1696 -- operand is of the component type of the result. Used in resolving
1697 -- concatenation nodes in instances.
1699 -- Is_Controlling_Actual (Flag16-Sem)
1700 -- This flag is set on an expression that is a controlling argument in
1701 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1702 -- details of its use.
1704 -- Is_Delayed_Aspect (Flag14-Sem)
1705 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1706 -- come from aspect specifications, where the evaluation of the aspect
1707 -- must be delayed to the freeze point. This flag is also set True in
1708 -- the corresponding N_Aspect_Specification node.
1710 -- Is_Disabled (Flag15-Sem)
1711 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1712 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1713 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1714 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1715 -- If this flag is set, the aspect or policy is not analyzed for semantic
1716 -- correctness, so any expressions etc will not be marked as analyzed.
1718 -- Is_Dynamic_Coextension (Flag18-Sem)
1719 -- Present in allocator nodes, to indicate that this is an allocator
1720 -- for an access discriminant of a dynamically allocated object. The
1721 -- coextension must be deallocated and finalized at the same time as
1722 -- the enclosing object.
1724 -- Is_Entry_Barrier_Function (Flag8-Sem)
1725 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1726 -- nodes which emulate the barrier function of a protected entry body.
1727 -- The flag is used when checking for incorrect use of Current_Task.
1729 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1730 -- This flag is set in an N_Function_Call node to indicate that the extra
1731 -- actuals to support a build-in-place style of call have been added to
1732 -- the call.
1734 -- Is_Finalization_Wrapper (Flag9-Sem)
1735 -- This flag is present in N_Block_Statement nodes. It is set when the
1736 -- block acts as a wrapper of a handled construct which has controlled
1737 -- objects. The wrapper prevents interference between exception handlers
1738 -- and At_End handlers.
1740 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1741 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1742 -- a source construct, applies to a generic unit or its body and denotes
1743 -- one of the following contract-related annotations:
1744 -- Abstract_State
1745 -- Contract_Cases
1746 -- Depends
1747 -- Extensions_Visible
1748 -- Global
1749 -- Initial_Condition
1750 -- Initializes
1751 -- Post
1752 -- Post_Class
1753 -- Postcondition
1754 -- Pre
1755 -- Pre_Class
1756 -- Precondition
1757 -- Refined_Depends
1758 -- Refined_Global
1759 -- Refined_Post
1760 -- Refined_State
1761 -- Test_Case
1763 -- Is_Ignored (Flag9-Sem)
1764 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1765 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1766 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1767 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1768 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1769 -- gives a policy for the aspect or pragma, then there are two cases. For
1770 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1771 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1772 -- ignored because of the absence of a -gnata switch. For any other
1773 -- aspects or pragmas, the flag is off. If this flag is set, the
1774 -- aspect/pragma is fully analyzed and checked for other syntactic
1775 -- and semantic errors, but it does not have any semantic effect.
1777 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1778 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1779 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1780 -- This flag has no relation to Is_Ignored.
1782 -- Is_In_Discriminant_Check (Flag11-Sem)
1783 -- This flag is present in a selected component, and is used to indicate
1784 -- that the reference occurs within a discriminant check. The
1785 -- significance is that optimizations based on assuming that the
1786 -- discriminant check has a correct value cannot be performed in this
1787 -- case (or the discriminant check may be optimized away).
1789 -- Is_Inherited_Pragma (Flag4-Sem)
1790 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1791 -- to indicate that the pragma has been inherited from a parent context.
1793 -- Is_Machine_Number (Flag11-Sem)
1794 -- This flag is set in an N_Real_Literal node to indicate that the value
1795 -- is a machine number. This avoids some unnecessary cases of converting
1796 -- real literals to machine numbers.
1798 -- Is_Null_Loop (Flag16-Sem)
1799 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1800 -- can be determined to be null at compile time. This is used to remove
1801 -- the loop entirely at expansion time.
1803 -- Is_Overloaded (Flag5-Sem)
1804 -- A flag present in all expression nodes. Used temporarily during
1805 -- overloading determination. The setting of this flag is not relevant
1806 -- once overloading analysis is complete.
1808 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1809 -- A flag present only in N_Op_Expon nodes. It is set when the
1810 -- exponentiation is of the form 2 ** N, where the type of N is an
1811 -- unsigned integral subtype whose size does not exceed the size of
1812 -- Standard_Integer (i.e. a type that can be safely converted to
1813 -- Natural), and the exponentiation appears as the right operand of an
1814 -- integer multiplication or an integer division where the dividend is
1815 -- unsigned. It is also required that overflow checking is off for both
1816 -- the exponentiation and the multiply/divide node. If this set of
1817 -- conditions holds, and the flag is set, then the division or
1818 -- multiplication can be (and is) converted to a shift.
1820 -- Is_Prefixed_Call (Flag17-Sem)
1821 -- This flag is set in a selected component within a generic unit, if
1822 -- it resolves to a prefixed call to a primitive operation. The flag
1823 -- is used to prevent accidental overloadings in an instance, when a
1824 -- primitive operation and a private record component may be homographs.
1826 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1827 -- A flag set in a Subprogram_Body block to indicate that it is the
1828 -- implementation of a protected subprogram. Such a body needs cleanup
1829 -- handler to make sure that the associated protected object is unlocked
1830 -- when the subprogram completes.
1832 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1833 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1834 -- converting a universal literal to a specific type. Such qualifiers aid
1835 -- the resolution of accidental overloading of binary or unary operators
1836 -- which may occur in instances.
1838 -- Is_Static_Coextension (Flag14-Sem)
1839 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1840 -- of an object allocated on the stack rather than the heap.
1842 -- Is_Static_Expression (Flag6-Sem)
1843 -- Indicates that an expression is a static expression according to the
1844 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1845 -- when Raises_Constraint_Error is also set. In practice almost all cases
1846 -- where a static expression is required do not allow an expression which
1847 -- raises Constraint_Error, so almost always, callers should call the
1848 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1849 -- spec of package Sem_Eval for full details on the use of this flag.
1851 -- Is_Subprogram_Descriptor (Flag16-Sem)
1852 -- Present in N_Object_Declaration, and set only for the object
1853 -- declaration generated for a subprogram descriptor in fast exception
1854 -- mode. See Exp_Ch11 for details of use.
1856 -- Is_Task_Allocation_Block (Flag6-Sem)
1857 -- A flag set in a Block_Statement node to indicate that it is the
1858 -- expansion of a task allocator, or the allocator of an object
1859 -- containing tasks. Such a block requires a cleanup handler to call
1860 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1861 -- allocated but not activated when the allocator completes abnormally.
1863 -- Is_Task_Body_Procedure (Flag1-Sem)
1864 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1865 -- nodes which emulate the body of a task unit.
1867 -- Is_Task_Master (Flag5-Sem)
1868 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1869 -- indicate that the construct is a task master (i.e. has declared tasks
1870 -- or declares an access to a task type).
1872 -- Itype (Node1-Sem)
1873 -- Used in N_Itype_Reference node to reference an itype for which it is
1874 -- important to ensure that it is defined. See description of this node
1875 -- for further details.
1877 -- Kill_Range_Check (Flag11-Sem)
1878 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1879 -- result should not be subjected to range checks. This is used for the
1880 -- implementation of Normalize_Scalars.
1882 -- Label_Construct (Node2-Sem)
1883 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1884 -- N_Block_Statement or N_Loop_Statement node to which the label
1885 -- declaration applies. This attribute is used both in the compiler and
1886 -- in the implementation of ASIS queries. The field is left empty for the
1887 -- special labels generated as part of expanding raise statements with a
1888 -- local exception handler.
1890 -- Library_Unit (Node4-Sem)
1891 -- In a stub node, Library_Unit points to the compilation unit node of
1892 -- the corresponding subunit.
1894 -- In a with clause node, Library_Unit points to the spec of the with'ed
1895 -- unit.
1897 -- In a compilation unit node, the usage depends on the unit type:
1899 -- For a library unit body, Library_Unit points to the compilation unit
1900 -- node of the corresponding spec, unless it's a subprogram body with
1901 -- Acts_As_Spec set, in which case it points to itself.
1903 -- For a spec, Library_Unit points to the compilation unit node of the
1904 -- corresponding body, if present. The body will be present if the spec
1905 -- is or contains generics that we needed to instantiate. Similarly, the
1906 -- body will be present if we needed it for inlining purposes. Thus, if
1907 -- we have a spec/body pair, both of which are present, they point to
1908 -- each other via Library_Unit.
1910 -- For a subunit, Library_Unit points to the compilation unit node of
1911 -- the parent body.
1912 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1913 -- to the corresponding spec for the parent body.
1915 -- Note that this field is not used to hold the parent pointer for child
1916 -- unit (which might in any case need to use it for some other purpose as
1917 -- described above). Instead for a child unit, implicit with's are
1918 -- generated for all parents.
1920 -- Local_Raise_Statements (Elist1)
1921 -- This field is present in exception handler nodes. It is set to
1922 -- No_Elist in the normal case. If there is at least one raise statement
1923 -- which can potentially be handled as a local raise, then this field
1924 -- points to a list of raise nodes, which are calls to a routine to raise
1925 -- an exception. These are raise nodes which can be optimized into gotos
1926 -- if the handler turns out to meet the conditions which permit this
1927 -- transformation. Note that this does NOT include instances of the
1928 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1929 -- handled by the back end (using the N_Push/N_Pop mechanism).
1931 -- Loop_Actions (List2-Sem)
1932 -- A list present in Component_Association nodes in array aggregates.
1933 -- Used to collect actions that must be executed within the loop because
1934 -- they may need to be evaluated anew each time through.
1936 -- Limited_View_Installed (Flag18-Sem)
1937 -- Present in With_Clauses and in package specifications. If set on
1938 -- with_clause, it indicates that this clause has created the current
1939 -- limited view of the designated package. On a package specification, it
1940 -- indicates that the limited view has already been created because the
1941 -- package is mentioned in a limited_with_clause in the closure of the
1942 -- unit being compiled.
1944 -- Local_Raise_Not_OK (Flag7-Sem)
1945 -- Present in N_Exception_Handler nodes. Set if the handler contains
1946 -- a construct (reraise statement, or call to subprogram in package
1947 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1948 -- for a local raise (one that could otherwise be converted to a goto).
1950 -- Must_Be_Byte_Aligned (Flag14-Sem)
1951 -- This flag is present in N_Attribute_Reference nodes. It can be set
1952 -- only for the Address and Unrestricted_Access attributes. If set it
1953 -- means that the object for which the address/access is given must be on
1954 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1955 -- of the object is to be made before taking the address (this copy is in
1956 -- the current scope on the stack frame). This is used for certain cases
1957 -- of code generated by the expander that passes parameters by address.
1959 -- The reason the copy is not made by the front end is that the back end
1960 -- has more information about type layout and may be able to (but is not
1961 -- guaranteed to) prevent making unnecessary copies.
1963 -- Must_Not_Freeze (Flag8-Sem)
1964 -- A flag present in all expression nodes. Normally expressions cause
1965 -- freezing as described in the RM. If this flag is set, then this is
1966 -- inhibited. This is used by the analyzer and expander to label nodes
1967 -- that are created by semantic analysis or expansion and which must not
1968 -- cause freezing even though they normally would. This flag is also
1969 -- present in an N_Subtype_Indication node, since we also use these in
1970 -- calls to Freeze_Expression.
1972 -- Next_Entity (Node2-Sem)
1973 -- Present in defining identifiers, defining character literals and
1974 -- defining operator symbols (i.e. in all entities). The entities of a
1975 -- scope are chained, and this field is used as the forward pointer for
1976 -- this list. See Einfo for further details.
1978 -- Next_Exit_Statement (Node3-Sem)
1979 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1980 -- chained (in reverse order of appearance) from the First_Exit_Statement
1981 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1982 -- the next entry on this chain (Empty = end of list).
1984 -- Next_Implicit_With (Node3-Sem)
1985 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1986 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1987 -- to prevent multiple with_clauses for the same unit in a given context.
1988 -- A postorder traversal of the tree whose nodes are units and whose
1989 -- links are with_clauses defines the order in which CodePeer must
1990 -- examine a compiled unit and its full context. This ordering ensures
1991 -- that any subprogram call is examined after the subprogram declaration
1992 -- has been seen.
1994 -- Next_Named_Actual (Node4-Sem)
1995 -- Present in parameter association nodes. Set during semantic analysis
1996 -- to point to the next named parameter, where parameters are ordered by
1997 -- declaration order (as opposed to the actual order in the call, which
1998 -- may be different due to named associations). Not that this field
1999 -- points to the explicit actual parameter itself, not to the
2000 -- N_Parameter_Association node (its parent).
2002 -- Next_Pragma (Node1-Sem)
2003 -- Present in N_Pragma nodes. Used to create a linked list of pragma
2004 -- nodes. Currently used for two purposes:
2006 -- Create a list of linked Check_Policy pragmas. The head of this list
2007 -- is stored in Opt.Check_Policy_List (which has further details).
2009 -- Used by processing for Pre/Postcondition pragmas to store a list of
2010 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
2011 -- details).
2013 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
2014 -- the apply to the same construct. These are visible/private mode for
2015 -- a package spec and declarative/statement mode for package body.
2017 -- Next_Rep_Item (Node5-Sem)
2018 -- Present in pragma nodes, attribute definition nodes, enumeration rep
2019 -- clauses, record rep clauses, aspect specification nodes. Used to link
2020 -- representation items that apply to an entity. See full description of
2021 -- First_Rep_Item field in Einfo for further details.
2023 -- Next_Use_Clause (Node3-Sem)
2024 -- While use clauses are active during semantic processing, they are
2025 -- chained from the scope stack entry, using Next_Use_Clause as a link
2026 -- pointer, with Empty marking the end of the list. The head pointer is
2027 -- in the scope stack entry (First_Use_Clause). At the end of semantic
2028 -- processing (i.e. when Gigi sees the tree, the contents of this field
2029 -- is undefined and should not be read).
2031 -- No_Ctrl_Actions (Flag7-Sem)
2032 -- Present in N_Assignment_Statement to indicate that no Finalize nor
2033 -- Adjust should take place on this assignment even though the RHS is
2034 -- controlled. Also indicates that the primitive _assign should not be
2035 -- used for a tagged assignment. This is used in init procs and aggregate
2036 -- expansions where the generated assignments are initializations, not
2037 -- real assignments.
2039 -- No_Elaboration_Check (Flag14-Sem)
2040 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
2041 -- that no elaboration check is needed on the call, because it appears in
2042 -- the context of a local Suppress pragma. This is used on calls within
2043 -- task bodies, where the actual elaboration checks are applied after
2044 -- analysis, when the local scope stack is not present.
2046 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2047 -- Present in N_With_Clause nodes. Set if the with clause is on the
2048 -- package or subprogram spec where the main unit is the corresponding
2049 -- body, and no entities of the with'ed unit are referenced by the spec
2050 -- (an entity may still be referenced in the body, so this flag is used
2051 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2052 -- full details).
2054 -- No_Initialization (Flag13-Sem)
2055 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2056 -- object must not be initialized (by Initialize or call to an init
2057 -- proc). This is needed for controlled aggregates. When the Object
2058 -- declaration has an expression, this flag means that this expression
2059 -- should not be taken into account (needed for in place initialization
2060 -- with aggregates, and for object with an address clause, which are
2061 -- initialized with an assignment at freeze time).
2063 -- No_Minimize_Eliminate (Flag17-Sem)
2064 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2065 -- It is used to indicate that processing for extended overflow checking
2066 -- modes is not required (this is used to prevent infinite recursion).
2068 -- No_Side_Effect_Removal (Flag1-Sem)
2069 -- Present in N_Function_Call nodes. Set when a function call does not
2070 -- require side effect removal. This attribute suppresses the generation
2071 -- of a temporary to capture the result of the function which eventually
2072 -- replaces the function call.
2074 -- No_Truncation (Flag17-Sem)
2075 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2076 -- only if the RM_Size of the source is greater than the RM_Size of the
2077 -- target for scalar operands. Normally in such a case we truncate some
2078 -- higher order bits of the source, and then sign/zero extend the result
2079 -- to form the output value. But if this flag is set, then we do not do
2080 -- any truncation, so for example, if an 8 bit input is converted to 5
2081 -- bit result which is in fact stored in 8 bits, then the high order
2082 -- three bits of the target result will be copied from the source. This
2083 -- is used for properly setting out of range values for use by pragmas
2084 -- Initialize_Scalars and Normalize_Scalars.
2086 -- Non_Aliased_Prefix (Flag18-Sem)
2087 -- Present in N_Attribute_Reference nodes. Set only for the case of an
2088 -- Unrestricted_Access reference whose prefix is non-aliased, which is
2089 -- the case that is permitted for Unrestricted_Access except when the
2090 -- expected type is a thin pointer to unconstrained array. This flag is
2091 -- to assist in detecting this illegal use of Unrestricted_Access.
2093 -- Null_Excluding_Subtype (Flag16)
2094 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2095 -- indication carries a null-exclusion indicator, which is distinct from
2096 -- the null-exclusion indicator that may precede the access keyword.
2098 -- Original_Discriminant (Node2-Sem)
2099 -- Present in identifiers. Used in references to discriminants that
2100 -- appear in generic units. Because the names of the discriminants may be
2101 -- different in an instance, we use this field to recover the position of
2102 -- the discriminant in the original type, and replace it with the
2103 -- discriminant at the same position in the instantiated type.
2105 -- Original_Entity (Node2-Sem)
2106 -- Present in numeric literals. Used to denote the named number that has
2107 -- been constant-folded into the given literal. If literal is from
2108 -- source, or the result of some other constant-folding operation, then
2109 -- Original_Entity is empty. This field is needed to handle properly
2110 -- named numbers in generic units, where the Associated_Node field
2111 -- interferes with the Entity field, making it impossible to preserve the
2112 -- original entity at the point of instantiation (ASIS problem).
2114 -- Others_Discrete_Choices (List1-Sem)
2115 -- When a case statement or variant is analyzed, the semantic checks
2116 -- determine the actual list of choices that correspond to an others
2117 -- choice. This list is materialized for later use by the expander and
2118 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2119 -- this materialized list of choices, which is in standard format for a
2120 -- list of discrete choices, except that of course it cannot contain an
2121 -- N_Others_Choice entry.
2123 -- Parent_Spec (Node4-Sem)
2124 -- For a library unit that is a child unit spec (package or subprogram
2125 -- declaration, generic declaration or instantiation, or library level
2126 -- rename) this field points to the compilation unit node for the parent
2127 -- package specification. This field is Empty for library bodies (the
2128 -- parent spec in this case can be found from the corresponding spec).
2130 -- Premature_Use (Node5-Sem)
2131 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2132 -- error diagnostics: if there is a premature usage of an incomplete
2133 -- type, a subsequently generated error message indicates the position
2134 -- of its full declaration.
2136 -- Present_Expr (Uint3-Sem)
2137 -- Present in an N_Variant node. This has a meaningful value only after
2138 -- Gigi has back annotated the tree with representation information. At
2139 -- this point, it contains a reference to a gcc expression that depends
2140 -- on the values of one or more discriminants. Give a set of discriminant
2141 -- values, this expression evaluates to False (zero) if variant is not
2142 -- present, and True (non-zero) if it is present. See unit Repinfo for
2143 -- further details on gigi back annotation. This field is used during
2144 -- ASIS processing (data decomposition annex) to determine if a field is
2145 -- present or not.
2147 -- Print_In_Hex (Flag13-Sem)
2148 -- Set on an N_Integer_Literal node to indicate that the value should be
2149 -- printed in hexadecimal in the sprint listing. Has no effect on
2150 -- legality or semantics of program, only on the displayed output. This
2151 -- is used to clarify output from the packed array cases.
2153 -- Procedure_To_Call (Node2-Sem)
2154 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2155 -- and N_Extended_Return_Statement nodes. References the entity for the
2156 -- declaration of the procedure to be called to accomplish the required
2157 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2158 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2159 -- allocating the return value), and for the Deallocate procedure in the
2160 -- case of N_Free_Statement.
2162 -- Raises_Constraint_Error (Flag7-Sem)
2163 -- Set on an expression whose evaluation will definitely fail constraint
2164 -- error check. In the case of static expressions, this flag must be set
2165 -- accurately (and if it is set, the expression is typically illegal
2166 -- unless it appears as a non-elaborated branch of a short-circuit form).
2167 -- For a non-static expression, this flag may be set whenever an
2168 -- expression (e.g. an aggregate) is known to raise constraint error. If
2169 -- set, the expression definitely will raise CE if elaborated at runtime.
2170 -- If not set, the expression may or may not raise CE. In other words, on
2171 -- static expressions, the flag is set accurately, on non-static
2172 -- expressions it is set conservatively.
2174 -- Redundant_Use (Flag13-Sem)
2175 -- Present in nodes that can appear as an operand in a use clause or use
2176 -- type clause (identifiers, expanded names, attribute references). Set
2177 -- to indicate that a use is redundant (and therefore need not be undone
2178 -- on scope exit).
2180 -- Renaming_Exception (Node2-Sem)
2181 -- Present in N_Exception_Declaration node. Used to point back to the
2182 -- exception renaming for an exception declared within a subprogram.
2183 -- What happens is that an exception declared in a subprogram is moved
2184 -- to the library level with a unique name, and the original exception
2185 -- becomes a renaming. This link from the library level exception to the
2186 -- renaming declaration allows registering of the proper exception name.
2188 -- Return_Statement_Entity (Node5-Sem)
2189 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2190 -- Points to an E_Return_Statement representing the return statement.
2192 -- Return_Object_Declarations (List3)
2193 -- Present in N_Extended_Return_Statement. Points to a list initially
2194 -- containing a single N_Object_Declaration representing the return
2195 -- object. We use a list (instead of just a pointer to the object decl)
2196 -- because Analyze wants to insert extra actions on this list.
2198 -- Rounded_Result (Flag18-Sem)
2199 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2200 -- Used in the fixed-point cases to indicate that the result must be
2201 -- rounded as a result of the use of the 'Round attribute. Also used for
2202 -- integer N_Op_Divide nodes to indicate that the result should be
2203 -- rounded to the nearest integer (breaking ties away from zero), rather
2204 -- than truncated towards zero as usual. These rounded integer operations
2205 -- are the result of expansion of rounded fixed-point divide, conversion
2206 -- and multiplication operations.
2208 -- SCIL_Entity (Node4-Sem)
2209 -- Present in SCIL nodes. References the specific tagged type associated
2210 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2211 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2212 -- generated as part of testing membership in T'Class, this is T; for an
2213 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2215 -- SCIL_Controlling_Tag (Node5-Sem)
2216 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2217 -- tag of a dispatching call. This is usually an N_Selected_Component
2218 -- node (for a _tag component), but may be an N_Object_Declaration or
2219 -- N_Parameter_Specification node in some cases (e.g., for a call to
2220 -- a classwide streaming operation or a call to an instance of
2221 -- Ada.Tags.Generic_Dispatching_Constructor).
2223 -- SCIL_Tag_Value (Node5-Sem)
2224 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2225 -- of the value that is being tested.
2227 -- SCIL_Target_Prim (Node2-Sem)
2228 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2229 -- operation named (statically) in a dispatching call.
2231 -- Scope (Node3-Sem)
2232 -- Present in defining identifiers, defining character literals and
2233 -- defining operator symbols (i.e. in all entities). The entities of a
2234 -- scope all use this field to reference the corresponding scope entity.
2235 -- See Einfo for further details.
2237 -- Shift_Count_OK (Flag4-Sem)
2238 -- A flag present in shift nodes to indicate that the shift count is
2239 -- known to be in range, i.e. is in the range from zero to word length
2240 -- minus one. If this flag is not set, then the shift count may be
2241 -- outside this range, i.e. larger than the word length, and the code
2242 -- must ensure that such shift counts give the appropriate result.
2244 -- Source_Type (Node1-Sem)
2245 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2246 -- source type entity for the unchecked conversion instantiation
2247 -- which gigi must do size validation for.
2249 -- Split_PPC (Flag17)
2250 -- When a Pre or Post aspect specification is processed, it is broken
2251 -- into AND THEN sections. The left most section has Split_PPC set to
2252 -- False, indicating that it is the original specification (e.g. for
2253 -- posting errors). For other sections, Split_PPC is set to True.
2254 -- This flag is set in both the N_Aspect_Specification node itself,
2255 -- and in the pragma which is generated from this node.
2257 -- Storage_Pool (Node1-Sem)
2258 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2259 -- and N_Extended_Return_Statement nodes. References the entity for the
2260 -- storage pool to be used for the allocate or free call or for the
2261 -- allocation of the returned value from function. Empty indicates that
2262 -- the global default pool is to be used. Note that in the case
2263 -- of a return statement, this field is set only if the function returns
2264 -- value of a type whose size is not known at compile time on the
2265 -- secondary stack.
2267 -- Suppress_Assignment_Checks (Flag18-Sem)
2268 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2269 -- and range checks in cases where the generated code knows that the
2270 -- value being assigned is in range and satisfies any predicate. Also
2271 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2272 -- checks on the initializing value. In assignment statements it also
2273 -- suppresses access checks in the generated code for out- and in-out
2274 -- parameters in entry calls.
2276 -- Suppress_Loop_Warnings (Flag17-Sem)
2277 -- Used in N_Loop_Statement node to indicate that warnings within the
2278 -- body of the loop should be suppressed. This is set when the range
2279 -- of a FOR loop is known to be null, or is probably null (loop would
2280 -- only execute if invalid values are present).
2282 -- Target_Type (Node2-Sem)
2283 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2284 -- type entity for the unchecked conversion instantiation which gigi must
2285 -- do size validation for.
2287 -- Then_Actions (List3-Sem)
2288 -- This field is present in if expression nodes. During code expansion
2289 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2290 -- at an appropriate place in the tree to get elaborated at the right
2291 -- time. For if expressions, we have to be sure that the actions for
2292 -- for the Then branch are only elaborated if the condition is True.
2293 -- The Then_Actions field is used as a temporary parking place for
2294 -- these actions. The final tree is always rewritten to eliminate the
2295 -- need for this field, so in the tree passed to Gigi, this field is
2296 -- always set to No_List.
2298 -- Treat_Fixed_As_Integer (Flag14-Sem)
2299 -- This flag appears in operator nodes for divide, multiply, mod and rem
2300 -- on fixed-point operands. It indicates that the operands are to be
2301 -- treated as integer values, ignoring small values. This flag is only
2302 -- set as a result of expansion of fixed-point operations. Typically a
2303 -- fixed-point multiplication in the source generates subsidiary
2304 -- multiplication and division operations that work with the underlying
2305 -- integer values and have this flag set. Note that this flag is not
2306 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2307 -- in these cases it is always the case that fixed is treated as integer.
2308 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2309 -- leave such nodes alone, and whoever makes them must set the correct
2310 -- Etype value.
2312 -- TSS_Elist (Elist3-Sem)
2313 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2314 -- entries for each TSS (type support subprogram) associated with the
2315 -- frozen type. The elements of the list are the entities for the
2316 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2317 -- if there are no type support subprograms for the type or if the freeze
2318 -- node is not for a type.
2320 -- Uneval_Old_Accept (Flag7-Sem)
2321 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2322 -- (accept) at the point where the pragma is encountered (including the
2323 -- case of a pragma generated from an aspect specification). It is this
2324 -- setting that is relevant, rather than the setting at the point where
2325 -- a contract is finally analyzed after the delay till the freeze point.
2327 -- Uneval_Old_Warn (Flag18-Sem)
2328 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2329 -- (warn) at the point where the pragma is encountered (including the
2330 -- case of a pragma generated from an aspect specification). It is this
2331 -- setting that is relevant, rather than the setting at the point where
2332 -- a contract is finally analyzed after the delay till the freeze point.
2334 -- Unreferenced_In_Spec (Flag7-Sem)
2335 -- Present in N_With_Clause nodes. Set if the with clause is on the
2336 -- package or subprogram spec where the main unit is the corresponding
2337 -- body, and is not referenced by the spec (it may still be referenced by
2338 -- the body, so this flag is used to generate the proper message (see
2339 -- Sem_Util.Check_Unused_Withs for details)
2341 -- Uninitialized_Variable (Node3-Sem)
2342 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2343 -- Extension_Declarations. Indicates that a variable in a generic unit
2344 -- whose type is a formal private or derived type is read without being
2345 -- initialized. Used to warn if the corresponding actual type is not
2346 -- a fully initialized type.
2348 -- Used_Operations (Elist5-Sem)
2349 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2350 -- are made potentially use-visible by the clause. Simplifies processing
2351 -- on exit from the scope of the use_type_clause, in particular in the
2352 -- case of Use_All_Type, when those operations several scopes.
2354 -- Was_Expression_Function (Flag18-Sem)
2355 -- Present in N_Subprogram_Body. True if the original source had an
2356 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2357 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2358 -- recreate the expression function (for the instance body) when the
2359 -- completion of a generic function declaration is an expression
2360 -- function.
2362 -- Was_Originally_Stub (Flag13-Sem)
2363 -- This flag is set in the node for a proper body that replaces stub.
2364 -- During the analysis procedure, stubs in some situations get rewritten
2365 -- by the corresponding bodies, and we set this flag to remember that
2366 -- this happened. Note that it is not good enough to rely on the use of
2367 -- Original_Node here because of the case of nested instantiations where
2368 -- the substituted node can be copied.
2370 -- Withed_Body (Node1-Sem)
2371 -- Present in N_With_Clause nodes. Set if the unit in whose context
2372 -- the with_clause appears instantiates a generic contained in the
2373 -- library unit of the with_clause and as a result loads its body.
2374 -- Used for a more precise unit traversal for CodePeer.
2376 --------------------------------------------------
2377 -- Note on Use of End_Label and End_Span Fields --
2378 --------------------------------------------------
2380 -- Several constructs have end lines:
2382 -- Loop Statement end loop [loop_IDENTIFIER];
2383 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2384 -- Task Definition end [task_IDENTIFIER]
2385 -- Protected Definition end [protected_IDENTIFIER]
2386 -- Protected Body end [protected_IDENTIFIER]
2388 -- Block Statement end [block_IDENTIFIER];
2389 -- Subprogram Body end [DESIGNATOR];
2390 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2391 -- Task Body end [task_IDENTIFIER];
2392 -- Accept Statement end [entry_IDENTIFIER]];
2393 -- Entry Body end [entry_IDENTIFIER];
2395 -- If Statement end if;
2396 -- Case Statement end case;
2398 -- Record Definition end record;
2399 -- Enumeration Definition );
2401 -- The End_Label and End_Span fields are used to mark the locations of
2402 -- these lines, and also keep track of the label in the case where a label
2403 -- is present.
2405 -- For the first group above, the End_Label field of the corresponding node
2406 -- is used to point to the label identifier. In the case where there is no
2407 -- label in the source, the parser supplies a dummy identifier (with
2408 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2409 -- marks the location of the token following the END token.
2411 -- For the second group, the use of End_Label is similar, but the End_Label
2412 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2413 -- simply because in some cases there is no room in the parent node.
2415 -- For the third group, there is never any label, and instead of using
2416 -- End_Label, we use the End_Span field which gives the location of the
2417 -- token following END, relative to the starting Sloc of the construct,
2418 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2419 -- following the End_Label.
2421 -- The record definition case is handled specially, we treat it as though
2422 -- it required an optional label which is never present, and so the parser
2423 -- always builds a dummy identifier with Comes From Source set False. The
2424 -- reason we do this, rather than using End_Span in this case, is that we
2425 -- want to generate a cross-ref entry for the end of a record, since it
2426 -- represents a scope for name declaration purposes.
2428 -- The enumeration definition case is handled in an exactly similar manner,
2429 -- building a dummy identifier to get a cross-reference.
2431 -- Note: the reason we store the difference as a Uint, instead of storing
2432 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2433 -- distinguished from other types of values, and we count on all general
2434 -- use fields being self describing. To make things easier for clients,
2435 -- note that we provide function End_Location, and procedure
2436 -- Set_End_Location to allow access to the logical value (which is the
2437 -- Source_Ptr value for the end token).
2439 ---------------------
2440 -- Syntactic Nodes --
2441 ---------------------
2443 ---------------------
2444 -- 2.3 Identifier --
2445 ---------------------
2447 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2448 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2450 -- An IDENTIFIER shall not be a reserved word
2452 -- In the Ada grammar identifiers are the bottom level tokens which have
2453 -- very few semantics. Actual program identifiers are direct names. If
2454 -- we were being 100% honest with the grammar, then we would have a node
2455 -- called N_Direct_Name which would point to an identifier. However,
2456 -- that's too many extra nodes, so we just use the N_Identifier node
2457 -- directly as a direct name, and it contains the expression fields and
2458 -- Entity field that correspond to its use as a direct name. In those
2459 -- few cases where identifiers appear in contexts where they are not
2460 -- direct names (pragmas, pragma argument associations, attribute
2461 -- references and attribute definition clauses), the Chars field of the
2462 -- node contains the Name_Id for the identifier name.
2464 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2465 -- cases. First, an incorrect use of a reserved word as an identifier is
2466 -- diagnosed and then treated as a normal identifier. Second, an
2467 -- attribute designator of the form of a reserved word (access, delta,
2468 -- digits, range) is treated as an identifier.
2470 -- Note: The set of letters that is permitted in an identifier depends
2471 -- on the character set in use. See package Csets for full details.
2473 -- N_Identifier
2474 -- Sloc points to identifier
2475 -- Chars (Name1) contains the Name_Id for the identifier
2476 -- Entity (Node4-Sem)
2477 -- Associated_Node (Node4-Sem)
2478 -- Original_Discriminant (Node2-Sem)
2479 -- Redundant_Use (Flag13-Sem)
2480 -- Atomic_Sync_Required (Flag14-Sem)
2481 -- Has_Private_View (Flag11-Sem) (set in generic units)
2482 -- plus fields for expression
2484 --------------------------
2485 -- 2.4 Numeric Literal --
2486 --------------------------
2488 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2490 ----------------------------
2491 -- 2.4.1 Decimal Literal --
2492 ----------------------------
2494 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2496 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2498 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2500 -- Decimal literals appear in the tree as either integer literal nodes
2501 -- or real literal nodes, depending on whether a period is present.
2503 -- Note: literal nodes appear as a result of direct use of literals
2504 -- in the source program, and also as the result of evaluating
2505 -- expressions at compile time. In the latter case, it is possible
2506 -- to construct real literals that have no syntactic representation
2507 -- using the standard literal format. Such literals are listed by
2508 -- Sprint using the notation [numerator / denominator].
2510 -- Note: the value of an integer literal node created by the front end
2511 -- is never outside the range of values of the base type. However, it
2512 -- can be the case that the created value is outside the range of the
2513 -- particular subtype. This happens in the case of integer overflows
2514 -- with checks suppressed.
2516 -- N_Integer_Literal
2517 -- Sloc points to literal
2518 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2519 -- has been constant-folded into its literal value.
2520 -- Intval (Uint3) contains integer value of literal
2521 -- Print_In_Hex (Flag13-Sem)
2522 -- plus fields for expression
2524 -- N_Real_Literal
2525 -- Sloc points to literal
2526 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2527 -- has been constant-folded into its literal value.
2528 -- Realval (Ureal3) contains real value of literal
2529 -- Corresponding_Integer_Value (Uint4-Sem)
2530 -- Is_Machine_Number (Flag11-Sem)
2531 -- plus fields for expression
2533 --------------------------
2534 -- 2.4.2 Based Literal --
2535 --------------------------
2537 -- BASED_LITERAL ::=
2538 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2540 -- BASE ::= NUMERAL
2542 -- BASED_NUMERAL ::=
2543 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2545 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2547 -- Based literals appear in the tree as either integer literal nodes
2548 -- or real literal nodes, depending on whether a period is present.
2550 ----------------------------
2551 -- 2.5 Character Literal --
2552 ----------------------------
2554 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2556 -- N_Character_Literal
2557 -- Sloc points to literal
2558 -- Chars (Name1) contains the Name_Id for the identifier
2559 -- Char_Literal_Value (Uint2) contains the literal value
2560 -- Entity (Node4-Sem)
2561 -- Associated_Node (Node4-Sem)
2562 -- Has_Private_View (Flag11-Sem) set in generic units.
2563 -- plus fields for expression
2565 -- Note: the Entity field will be missing (set to Empty) for character
2566 -- literals whose type is Standard.Wide_Character or Standard.Character
2567 -- or a type derived from one of these two. In this case the character
2568 -- literal stands for its own coding. The reason we take this irregular
2569 -- short cut is to avoid the need to build lots of junk defining
2570 -- character literal nodes.
2572 -------------------------
2573 -- 2.6 String Literal --
2574 -------------------------
2576 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2578 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2579 -- single GRAPHIC_CHARACTER other than a quotation mark.
2581 -- Is_Folded_In_Parser is True if the parser created this literal by
2582 -- folding a sequence of "&" operators. For example, if the source code
2583 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2584 -- is set. This flag is needed because the parser doesn't know about
2585 -- visibility, so the folded result might be wrong, and semantic
2586 -- analysis needs to check for that.
2588 -- N_String_Literal
2589 -- Sloc points to literal
2590 -- Strval (Str3) contains Id of string value
2591 -- Has_Wide_Character (Flag11-Sem)
2592 -- Has_Wide_Wide_Character (Flag13-Sem)
2593 -- Is_Folded_In_Parser (Flag4)
2594 -- plus fields for expression
2596 ------------------
2597 -- 2.7 Comment --
2598 ------------------
2600 -- A COMMENT starts with two adjacent hyphens and extends up to the
2601 -- end of the line. A COMMENT may appear on any line of a program.
2603 -- Comments are skipped by the scanner and do not appear in the tree.
2604 -- It is possible to reconstruct the position of comments with respect
2605 -- to the elements of the tree by using the source position (Sloc)
2606 -- pointers that appear in every tree node.
2608 -----------------
2609 -- 2.8 Pragma --
2610 -----------------
2612 -- PRAGMA ::= pragma IDENTIFIER
2613 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2615 -- Note that a pragma may appear in the tree anywhere a declaration
2616 -- or a statement may appear, as well as in some other situations
2617 -- which are explicitly documented.
2619 -- N_Pragma
2620 -- Sloc points to PRAGMA
2621 -- Next_Pragma (Node1-Sem)
2622 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2623 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2624 -- Pragma_Identifier (Node4)
2625 -- Next_Rep_Item (Node5-Sem)
2626 -- Class_Present (Flag6) set if from Aspect with 'Class
2627 -- From_Aspect_Specification (Flag13-Sem)
2628 -- Import_Interface_Present (Flag16-Sem)
2629 -- Is_Analyzed_Pragma (Flag5-Sem)
2630 -- Is_Checked (Flag11-Sem)
2631 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2632 -- Is_Delayed_Aspect (Flag14-Sem)
2633 -- Is_Disabled (Flag15-Sem)
2634 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2635 -- Is_Ignored (Flag9-Sem)
2636 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2637 -- Is_Inherited_Pragma (Flag4-Sem)
2638 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2639 -- Uneval_Old_Accept (Flag7-Sem)
2640 -- Uneval_Old_Warn (Flag18-Sem)
2642 -- Note: we should have a section on what pragmas are passed on to
2643 -- the back end to be processed. This section should note that pragma
2644 -- Psect_Object is always converted to Common_Object, but there are
2645 -- undoubtedly many other similar notes required ???
2647 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2648 -- applied to pragma nodes to obtain the Chars or its mapped version.
2650 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2651 -- aspect name, as does the Pragma_Identifier. In this case if the
2652 -- pragma has a local name argument (such as pragma Inline), it is
2653 -- resolved to point to the specific entity affected by the pragma.
2655 --------------------------------------
2656 -- 2.8 Pragma Argument Association --
2657 --------------------------------------
2659 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2660 -- [pragma_argument_IDENTIFIER =>] NAME
2661 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2663 -- In Ada 2012, there are two more possibilities:
2665 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2666 -- [pragma_argument_ASPECT_MARK =>] NAME
2667 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2669 -- where the interesting allowed cases (which do not fit the syntax of
2670 -- the first alternative above) are
2672 -- ASPECT_MARK => Pre'Class |
2673 -- Post'Class |
2674 -- Type_Invariant'Class |
2675 -- Invariant'Class
2677 -- We allow this special usage in all Ada modes, but it would be a
2678 -- pain to allow these aspects to pervade the pragma syntax, and the
2679 -- representation of pragma nodes internally. So what we do is to
2680 -- replace these ASPECT_MARK forms with identifiers whose name is one
2681 -- of the special internal names _Pre, _Post or _Type_Invariant.
2683 -- We do a similar replacement of these Aspect_Mark forms in the
2684 -- Expression of a pragma argument association for the cases of
2685 -- the first arguments of any Check pragmas and Check_Policy pragmas
2687 -- N_Pragma_Argument_Association
2688 -- Sloc points to first token in association
2689 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2690 -- Expression_Copy (Node2-Sem)
2691 -- Expression (Node3)
2693 ------------------------
2694 -- 2.9 Reserved Word --
2695 ------------------------
2697 -- Reserved words are parsed by the scanner, and returned as the
2698 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2700 ----------------------------
2701 -- 3.1 Basic Declaration --
2702 ----------------------------
2704 -- BASIC_DECLARATION ::=
2705 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2706 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2707 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2708 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2709 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2710 -- | GENERIC_INSTANTIATION
2712 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2713 -- see further description in section on semantic nodes.
2715 -- Also, in the tree that is constructed, a pragma may appear
2716 -- anywhere that a declaration may appear.
2718 ------------------------------
2719 -- 3.1 Defining Identifier --
2720 ------------------------------
2722 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2724 -- A defining identifier is an entity, which has additional fields
2725 -- depending on the setting of the Ekind field. These additional
2726 -- fields are defined (and access subprograms declared) in package
2727 -- Einfo.
2729 -- Note: N_Defining_Identifier is an extended node whose fields are
2730 -- deliberate layed out to match the layout of fields in an ordinary
2731 -- N_Identifier node allowing for easy alteration of an identifier
2732 -- node into a defining identifier node. For details, see procedure
2733 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2735 -- N_Defining_Identifier
2736 -- Sloc points to identifier
2737 -- Chars (Name1) contains the Name_Id for the identifier
2738 -- Next_Entity (Node2-Sem)
2739 -- Scope (Node3-Sem)
2740 -- Etype (Node5-Sem)
2742 -----------------------------
2743 -- 3.2.1 Type Declaration --
2744 -----------------------------
2746 -- TYPE_DECLARATION ::=
2747 -- FULL_TYPE_DECLARATION
2748 -- | INCOMPLETE_TYPE_DECLARATION
2749 -- | PRIVATE_TYPE_DECLARATION
2750 -- | PRIVATE_EXTENSION_DECLARATION
2752 ----------------------------------
2753 -- 3.2.1 Full Type Declaration --
2754 ----------------------------------
2756 -- FULL_TYPE_DECLARATION ::=
2757 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2758 -- is TYPE_DEFINITION
2759 -- [ASPECT_SPECIFICATIONS];
2760 -- | TASK_TYPE_DECLARATION
2761 -- | PROTECTED_TYPE_DECLARATION
2763 -- The full type declaration node is used only for the first case. The
2764 -- second case (concurrent type declaration), is represented directly
2765 -- by a task type declaration or a protected type declaration.
2767 -- N_Full_Type_Declaration
2768 -- Sloc points to TYPE
2769 -- Defining_Identifier (Node1)
2770 -- Incomplete_View (Node2-Sem)
2771 -- Discriminant_Specifications (List4) (set to No_List if none)
2772 -- Type_Definition (Node3)
2773 -- Discr_Check_Funcs_Built (Flag11-Sem)
2775 ----------------------------
2776 -- 3.2.1 Type Definition --
2777 ----------------------------
2779 -- TYPE_DEFINITION ::=
2780 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2781 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2782 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2783 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2785 --------------------------------
2786 -- 3.2.2 Subtype Declaration --
2787 --------------------------------
2789 -- SUBTYPE_DECLARATION ::=
2790 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2791 -- [ASPECT_SPECIFICATIONS];
2793 -- The subtype indication field is set to Empty for subtypes
2794 -- declared in package Standard (Positive, Natural).
2796 -- N_Subtype_Declaration
2797 -- Sloc points to SUBTYPE
2798 -- Defining_Identifier (Node1)
2799 -- Null_Exclusion_Present (Flag11)
2800 -- Subtype_Indication (Node5)
2801 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2802 -- Exception_Junk (Flag8-Sem)
2803 -- Has_Dynamic_Range_Check (Flag12-Sem)
2805 -------------------------------
2806 -- 3.2.2 Subtype Indication --
2807 -------------------------------
2809 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2811 -- Note: if no constraint is present, the subtype indication appears
2812 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2813 -- node is used only if a constraint is present.
2815 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2816 -- with the null-exclusion part (see AI-231), we had to introduce a new
2817 -- attribute in all the parents of subtype_indication nodes to indicate
2818 -- if the null-exclusion is present.
2820 -- Note: the reason that this node has expression fields is that a
2821 -- subtype indication can appear as an operand of a membership test.
2823 -- N_Subtype_Indication
2824 -- Sloc points to first token of subtype mark
2825 -- Subtype_Mark (Node4)
2826 -- Constraint (Node3)
2827 -- Etype (Node5-Sem)
2828 -- Must_Not_Freeze (Flag8-Sem)
2830 -- Note: Depending on context, the Etype is either the entity of the
2831 -- Subtype_Mark field, or it is an itype constructed to reify the
2832 -- subtype indication. In particular, such itypes are created for a
2833 -- subtype indication that appears in an array type declaration. This
2834 -- simplifies constraint checking in indexed components.
2836 -- For subtype indications that appear in scalar type and subtype
2837 -- declarations, the Etype is the entity of the subtype mark.
2839 -------------------------
2840 -- 3.2.2 Subtype Mark --
2841 -------------------------
2843 -- SUBTYPE_MARK ::= subtype_NAME
2845 -----------------------
2846 -- 3.2.2 Constraint --
2847 -----------------------
2849 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2851 ------------------------------
2852 -- 3.2.2 Scalar Constraint --
2853 ------------------------------
2855 -- SCALAR_CONSTRAINT ::=
2856 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2858 ---------------------------------
2859 -- 3.2.2 Composite Constraint --
2860 ---------------------------------
2862 -- COMPOSITE_CONSTRAINT ::=
2863 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2865 -------------------------------
2866 -- 3.3.1 Object Declaration --
2867 -------------------------------
2869 -- OBJECT_DECLARATION ::=
2870 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2871 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2872 -- [ASPECT_SPECIFICATIONS];
2873 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2874 -- ACCESS_DEFINITION [:= EXPRESSION]
2875 -- [ASPECT_SPECIFICATIONS];
2876 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2877 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2878 -- [ASPECT_SPECIFICATIONS];
2879 -- | SINGLE_TASK_DECLARATION
2880 -- | SINGLE_PROTECTED_DECLARATION
2882 -- Note: aliased is not permitted in Ada 83 mode
2884 -- The N_Object_Declaration node is only for the first three cases.
2885 -- Single task declaration is handled by P_Task (9.1)
2886 -- Single protected declaration is handled by P_protected (9.5)
2888 -- Although the syntax allows multiple identifiers in the list, the
2889 -- semantics is as though successive declarations were given with
2890 -- identical type definition and expression components. To simplify
2891 -- semantic processing, the parser represents a multiple declaration
2892 -- case as a sequence of single declarations, using the More_Ids and
2893 -- Prev_Ids flags to preserve the original source form as described
2894 -- in the section on "Handling of Defining Identifier Lists".
2896 -- The flag Has_Init_Expression is set if an initializing expression
2897 -- is present. Normally it is set if and only if Expression contains
2898 -- a non-empty value, but there is an exception to this. When the
2899 -- initializing expression is an aggregate which requires explicit
2900 -- assignments, the Expression field gets set to Empty, but this flag
2901 -- is still set, so we don't forget we had an initializing expression.
2903 -- Note: if a range check is required for the initialization
2904 -- expression then the Do_Range_Check flag is set in the Expression,
2905 -- with the check being done against the type given by the object
2906 -- definition, which is also the Etype of the defining identifier.
2908 -- Note: the contents of the Expression field must be ignored (i.e.
2909 -- treated as though it were Empty) if No_Initialization is set True.
2911 -- Note: the back end places some restrictions on the form of the
2912 -- Expression field. If the object being declared is Atomic, then
2913 -- the Expression may not have the form of an aggregate (since this
2914 -- might cause the back end to generate separate assignments). In this
2915 -- case the front end must generate an extra temporary and initialize
2916 -- this temporary as required (the temporary itself is not atomic).
2918 -- Note: there is not node kind for object definition. Instead, the
2919 -- corresponding field holds a subtype indication, an array type
2920 -- definition, or (Ada 2005, AI-406) an access definition.
2922 -- N_Object_Declaration
2923 -- Sloc points to first identifier
2924 -- Defining_Identifier (Node1)
2925 -- Aliased_Present (Flag4)
2926 -- Constant_Present (Flag17) set if CONSTANT appears
2927 -- Null_Exclusion_Present (Flag11)
2928 -- Object_Definition (Node4) subtype indic./array type def./access def.
2929 -- Expression (Node3) (set to Empty if not present)
2930 -- Handler_List_Entry (Node2-Sem)
2931 -- Corresponding_Generic_Association (Node5-Sem)
2932 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2933 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2934 -- No_Initialization (Flag13-Sem)
2935 -- Assignment_OK (Flag15-Sem)
2936 -- Exception_Junk (Flag8-Sem)
2937 -- Is_Subprogram_Descriptor (Flag16-Sem)
2938 -- Has_Init_Expression (Flag14)
2939 -- Suppress_Assignment_Checks (Flag18-Sem)
2941 -------------------------------------
2942 -- 3.3.1 Defining Identifier List --
2943 -------------------------------------
2945 -- DEFINING_IDENTIFIER_LIST ::=
2946 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2948 -------------------------------
2949 -- 3.3.2 Number Declaration --
2950 -------------------------------
2952 -- NUMBER_DECLARATION ::=
2953 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2955 -- Although the syntax allows multiple identifiers in the list, the
2956 -- semantics is as though successive declarations were given with
2957 -- identical expressions. To simplify semantic processing, the parser
2958 -- represents a multiple declaration case as a sequence of single
2959 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2960 -- the original source form as described in the section on "Handling
2961 -- of Defining Identifier Lists".
2963 -- N_Number_Declaration
2964 -- Sloc points to first identifier
2965 -- Defining_Identifier (Node1)
2966 -- Expression (Node3)
2967 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2968 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2970 ----------------------------------
2971 -- 3.4 Derived Type Definition --
2972 ----------------------------------
2974 -- DERIVED_TYPE_DEFINITION ::=
2975 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2976 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2978 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2979 -- in Ada 83 mode
2981 -- Note: a record extension part is required if ABSTRACT is present
2983 -- N_Derived_Type_Definition
2984 -- Sloc points to NEW
2985 -- Abstract_Present (Flag4)
2986 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2987 -- Subtype_Indication (Node5)
2988 -- Record_Extension_Part (Node3) (set to Empty if not present)
2989 -- Limited_Present (Flag17)
2990 -- Task_Present (Flag5) set in task interfaces
2991 -- Protected_Present (Flag6) set in protected interfaces
2992 -- Synchronized_Present (Flag7) set in interfaces
2993 -- Interface_List (List2) (set to No_List if none)
2994 -- Interface_Present (Flag16) set in abstract interfaces
2996 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2997 -- Interface_List, and Interface_Present are used for abstract
2998 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3000 ---------------------------
3001 -- 3.5 Range Constraint --
3002 ---------------------------
3004 -- RANGE_CONSTRAINT ::= range RANGE
3006 -- N_Range_Constraint
3007 -- Sloc points to RANGE
3008 -- Range_Expression (Node4)
3010 ----------------
3011 -- 3.5 Range --
3012 ----------------
3014 -- RANGE ::=
3015 -- RANGE_ATTRIBUTE_REFERENCE
3016 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
3018 -- Note: the case of a range given as a range attribute reference
3019 -- appears directly in the tree as an attribute reference.
3021 -- Note: the field name for a reference to a range is Range_Expression
3022 -- rather than Range, because range is a reserved keyword in Ada.
3024 -- Note: the reason that this node has expression fields is that a
3025 -- range can appear as an operand of a membership test. The Etype
3026 -- field is the type of the range (we do NOT construct an implicit
3027 -- subtype to represent the range exactly).
3029 -- N_Range
3030 -- Sloc points to ..
3031 -- Low_Bound (Node1)
3032 -- High_Bound (Node2)
3033 -- Includes_Infinities (Flag11)
3034 -- plus fields for expression
3036 -- Note: if the range appears in a context, such as a subtype
3037 -- declaration, where range checks are required on one or both of
3038 -- the expression fields, then type conversion nodes are inserted
3039 -- to represent the required checks.
3041 ----------------------------------------
3042 -- 3.5.1 Enumeration Type Definition --
3043 ----------------------------------------
3045 -- ENUMERATION_TYPE_DEFINITION ::=
3046 -- (ENUMERATION_LITERAL_SPECIFICATION
3047 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3049 -- Note: the Literals field in the node described below is null for
3050 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3051 -- which special processing handles these types as special cases.
3053 -- N_Enumeration_Type_Definition
3054 -- Sloc points to left parenthesis
3055 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3056 -- End_Label (Node4) (set to Empty if internally generated record)
3058 ----------------------------------------------
3059 -- 3.5.1 Enumeration Literal Specification --
3060 ----------------------------------------------
3062 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3063 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3065 ---------------------------------------
3066 -- 3.5.1 Defining Character Literal --
3067 ---------------------------------------
3069 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3071 -- A defining character literal is an entity, which has additional
3072 -- fields depending on the setting of the Ekind field. These
3073 -- additional fields are defined (and access subprograms declared)
3074 -- in package Einfo.
3076 -- Note: N_Defining_Character_Literal is an extended node whose fields
3077 -- are deliberate layed out to match the layout of fields in an ordinary
3078 -- N_Character_Literal node allowing for easy alteration of a character
3079 -- literal node into a defining character literal node. For details, see
3080 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3082 -- N_Defining_Character_Literal
3083 -- Sloc points to literal
3084 -- Chars (Name1) contains the Name_Id for the identifier
3085 -- Next_Entity (Node2-Sem)
3086 -- Scope (Node3-Sem)
3087 -- Etype (Node5-Sem)
3089 ------------------------------------
3090 -- 3.5.4 Integer Type Definition --
3091 ------------------------------------
3093 -- Note: there is an error in this rule in the latest version of the
3094 -- grammar, so we have retained the old rule pending clarification.
3096 -- INTEGER_TYPE_DEFINITION ::=
3097 -- SIGNED_INTEGER_TYPE_DEFINITION
3098 -- | MODULAR_TYPE_DEFINITION
3100 -------------------------------------------
3101 -- 3.5.4 Signed Integer Type Definition --
3102 -------------------------------------------
3104 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3105 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3107 -- Note: the Low_Bound and High_Bound fields are set to Empty
3108 -- for integer types defined in package Standard.
3110 -- N_Signed_Integer_Type_Definition
3111 -- Sloc points to RANGE
3112 -- Low_Bound (Node1)
3113 -- High_Bound (Node2)
3115 ------------------------------------
3116 -- 3.5.4 Modular Type Definition --
3117 ------------------------------------
3119 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3121 -- N_Modular_Type_Definition
3122 -- Sloc points to MOD
3123 -- Expression (Node3)
3125 ---------------------------------
3126 -- 3.5.6 Real Type Definition --
3127 ---------------------------------
3129 -- REAL_TYPE_DEFINITION ::=
3130 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3132 --------------------------------------
3133 -- 3.5.7 Floating Point Definition --
3134 --------------------------------------
3136 -- FLOATING_POINT_DEFINITION ::=
3137 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3139 -- Note: The Digits_Expression and Real_Range_Specifications fields
3140 -- are set to Empty for floating-point types declared in Standard.
3142 -- N_Floating_Point_Definition
3143 -- Sloc points to DIGITS
3144 -- Digits_Expression (Node2)
3145 -- Real_Range_Specification (Node4) (set to Empty if not present)
3147 -------------------------------------
3148 -- 3.5.7 Real Range Specification --
3149 -------------------------------------
3151 -- REAL_RANGE_SPECIFICATION ::=
3152 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3154 -- N_Real_Range_Specification
3155 -- Sloc points to RANGE
3156 -- Low_Bound (Node1)
3157 -- High_Bound (Node2)
3159 -----------------------------------
3160 -- 3.5.9 Fixed Point Definition --
3161 -----------------------------------
3163 -- FIXED_POINT_DEFINITION ::=
3164 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3166 --------------------------------------------
3167 -- 3.5.9 Ordinary Fixed Point Definition --
3168 --------------------------------------------
3170 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3171 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3173 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3175 -- N_Ordinary_Fixed_Point_Definition
3176 -- Sloc points to DELTA
3177 -- Delta_Expression (Node3)
3178 -- Real_Range_Specification (Node4)
3180 -------------------------------------------
3181 -- 3.5.9 Decimal Fixed Point Definition --
3182 -------------------------------------------
3184 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3185 -- delta static_EXPRESSION
3186 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3188 -- Note: decimal types are not permitted in Ada 83 mode
3190 -- N_Decimal_Fixed_Point_Definition
3191 -- Sloc points to DELTA
3192 -- Delta_Expression (Node3)
3193 -- Digits_Expression (Node2)
3194 -- Real_Range_Specification (Node4) (set to Empty if not present)
3196 ------------------------------
3197 -- 3.5.9 Digits Constraint --
3198 ------------------------------
3200 -- DIGITS_CONSTRAINT ::=
3201 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3203 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3204 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3206 -- N_Digits_Constraint
3207 -- Sloc points to DIGITS
3208 -- Digits_Expression (Node2)
3209 -- Range_Constraint (Node4) (set to Empty if not present)
3211 --------------------------------
3212 -- 3.6 Array Type Definition --
3213 --------------------------------
3215 -- ARRAY_TYPE_DEFINITION ::=
3216 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3218 -----------------------------------------
3219 -- 3.6 Unconstrained Array Definition --
3220 -----------------------------------------
3222 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3223 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3224 -- COMPONENT_DEFINITION
3226 -- Note: dimensionality of array is indicated by number of entries in
3227 -- the Subtype_Marks list, which has one entry for each dimension.
3229 -- N_Unconstrained_Array_Definition
3230 -- Sloc points to ARRAY
3231 -- Subtype_Marks (List2)
3232 -- Component_Definition (Node4)
3234 -----------------------------------
3235 -- 3.6 Index Subtype Definition --
3236 -----------------------------------
3238 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3240 -- There is no explicit node in the tree for an index subtype
3241 -- definition since the N_Unconstrained_Array_Definition node
3242 -- incorporates the type marks which appear in this context.
3244 ---------------------------------------
3245 -- 3.6 Constrained Array Definition --
3246 ---------------------------------------
3248 -- CONSTRAINED_ARRAY_DEFINITION ::=
3249 -- array (DISCRETE_SUBTYPE_DEFINITION
3250 -- {, DISCRETE_SUBTYPE_DEFINITION})
3251 -- of COMPONENT_DEFINITION
3253 -- Note: dimensionality of array is indicated by number of entries
3254 -- in the Discrete_Subtype_Definitions list, which has one entry
3255 -- for each dimension.
3257 -- N_Constrained_Array_Definition
3258 -- Sloc points to ARRAY
3259 -- Discrete_Subtype_Definitions (List2)
3260 -- Component_Definition (Node4)
3262 -- Note: although the language allows the full syntax for discrete
3263 -- subtype definitions (i.e. a discrete subtype indication or a range),
3264 -- in the generated tree, we always rewrite these as N_Range nodes.
3266 --------------------------------------
3267 -- 3.6 Discrete Subtype Definition --
3268 --------------------------------------
3270 -- DISCRETE_SUBTYPE_DEFINITION ::=
3271 -- discrete_SUBTYPE_INDICATION | RANGE
3273 -------------------------------
3274 -- 3.6 Component Definition --
3275 -------------------------------
3277 -- COMPONENT_DEFINITION ::=
3278 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3280 -- Note: although the syntax does not permit a component definition to
3281 -- be an anonymous array (and the parser will diagnose such an attempt
3282 -- with an appropriate message), it is possible for anonymous arrays
3283 -- to appear as component definitions. The semantics and back end handle
3284 -- this case properly, and the expander in fact generates such cases.
3285 -- Access_Definition is an optional field that gives support to
3286 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3287 -- Subtype_Indication field or else the Access_Definition field.
3289 -- N_Component_Definition
3290 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3291 -- Aliased_Present (Flag4)
3292 -- Null_Exclusion_Present (Flag11)
3293 -- Subtype_Indication (Node5) (set to Empty if not present)
3294 -- Access_Definition (Node3) (set to Empty if not present)
3296 -----------------------------
3297 -- 3.6.1 Index Constraint --
3298 -----------------------------
3300 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3302 -- It is not in general possible to distinguish between discriminant
3303 -- constraints and index constraints at parse time, since a simple
3304 -- name could be either the subtype mark of a discrete range, or an
3305 -- expression in a discriminant association with no name. Either
3306 -- entry appears simply as the name, and the semantic parse must
3307 -- distinguish between the two cases. Thus we use a common tree
3308 -- node format for both of these constraint types.
3310 -- See Discriminant_Constraint for format of node
3312 ---------------------------
3313 -- 3.6.1 Discrete Range --
3314 ---------------------------
3316 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3318 ----------------------------
3319 -- 3.7 Discriminant Part --
3320 ----------------------------
3322 -- DISCRIMINANT_PART ::=
3323 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3325 ------------------------------------
3326 -- 3.7 Unknown Discriminant Part --
3327 ------------------------------------
3329 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3331 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3333 -- There is no explicit node in the tree for an unknown discriminant
3334 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3335 -- parent node.
3337 ----------------------------------
3338 -- 3.7 Known Discriminant Part --
3339 ----------------------------------
3341 -- KNOWN_DISCRIMINANT_PART ::=
3342 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3344 -------------------------------------
3345 -- 3.7 Discriminant Specification --
3346 -------------------------------------
3348 -- DISCRIMINANT_SPECIFICATION ::=
3349 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3350 -- [:= DEFAULT_EXPRESSION]
3351 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3352 -- [:= DEFAULT_EXPRESSION]
3354 -- Although the syntax allows multiple identifiers in the list, the
3355 -- semantics is as though successive specifications were given with
3356 -- identical type definition and expression components. To simplify
3357 -- semantic processing, the parser represents a multiple declaration
3358 -- case as a sequence of single specifications, using the More_Ids and
3359 -- Prev_Ids flags to preserve the original source form as described
3360 -- in the section on "Handling of Defining Identifier Lists".
3362 -- N_Discriminant_Specification
3363 -- Sloc points to first identifier
3364 -- Defining_Identifier (Node1)
3365 -- Null_Exclusion_Present (Flag11)
3366 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3367 -- Expression (Node3) (set to Empty if no default expression)
3368 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3369 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3371 -----------------------------
3372 -- 3.7 Default Expression --
3373 -----------------------------
3375 -- DEFAULT_EXPRESSION ::= EXPRESSION
3377 ------------------------------------
3378 -- 3.7.1 Discriminant Constraint --
3379 ------------------------------------
3381 -- DISCRIMINANT_CONSTRAINT ::=
3382 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3384 -- It is not in general possible to distinguish between discriminant
3385 -- constraints and index constraints at parse time, since a simple
3386 -- name could be either the subtype mark of a discrete range, or an
3387 -- expression in a discriminant association with no name. Either
3388 -- entry appears simply as the name, and the semantic parse must
3389 -- distinguish between the two cases. Thus we use a common tree
3390 -- node format for both of these constraint types.
3392 -- N_Index_Or_Discriminant_Constraint
3393 -- Sloc points to left paren
3394 -- Constraints (List1) points to list of discrete ranges or
3395 -- discriminant associations
3397 -------------------------------------
3398 -- 3.7.1 Discriminant Association --
3399 -------------------------------------
3401 -- DISCRIMINANT_ASSOCIATION ::=
3402 -- [discriminant_SELECTOR_NAME
3403 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3405 -- Note: a discriminant association that has no selector name list
3406 -- appears directly as an expression in the tree.
3408 -- N_Discriminant_Association
3409 -- Sloc points to first token of discriminant association
3410 -- Selector_Names (List1) (always non-empty, since if no selector
3411 -- names are present, this node is not used, see comment above)
3412 -- Expression (Node3)
3414 ---------------------------------
3415 -- 3.8 Record Type Definition --
3416 ---------------------------------
3418 -- RECORD_TYPE_DEFINITION ::=
3419 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3421 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3423 -- There is no explicit node in the tree for a record type definition.
3424 -- Instead the flags for Tagged_Present and Limited_Present appear in
3425 -- the N_Record_Definition node for a record definition appearing in
3426 -- the context of a record type definition.
3428 ----------------------------
3429 -- 3.8 Record Definition --
3430 ----------------------------
3432 -- RECORD_DEFINITION ::=
3433 -- record
3434 -- COMPONENT_LIST
3435 -- end record
3436 -- | null record
3438 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3439 -- flags appear only for a record definition appearing in a record
3440 -- type definition.
3442 -- Note: the NULL RECORD case is not permitted in Ada 83
3444 -- N_Record_Definition
3445 -- Sloc points to RECORD or NULL
3446 -- End_Label (Node4) (set to Empty if internally generated record)
3447 -- Abstract_Present (Flag4)
3448 -- Tagged_Present (Flag15)
3449 -- Limited_Present (Flag17)
3450 -- Component_List (Node1) empty in null record case
3451 -- Null_Present (Flag13) set in null record case
3452 -- Task_Present (Flag5) set in task interfaces
3453 -- Protected_Present (Flag6) set in protected interfaces
3454 -- Synchronized_Present (Flag7) set in interfaces
3455 -- Interface_Present (Flag16) set in abstract interfaces
3456 -- Interface_List (List2) (set to No_List if none)
3458 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3459 -- Interface_List and Interface_Present are used for abstract
3460 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3462 -------------------------
3463 -- 3.8 Component List --
3464 -------------------------
3466 -- COMPONENT_LIST ::=
3467 -- COMPONENT_ITEM {COMPONENT_ITEM}
3468 -- | {COMPONENT_ITEM} VARIANT_PART
3469 -- | null;
3471 -- N_Component_List
3472 -- Sloc points to first token of component list
3473 -- Component_Items (List3)
3474 -- Variant_Part (Node4) (set to Empty if no variant part)
3475 -- Null_Present (Flag13)
3477 -------------------------
3478 -- 3.8 Component Item --
3479 -------------------------
3481 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3483 -- Note: A component item can also be a pragma, and in the tree
3484 -- that is obtained after semantic processing, a component item
3485 -- can be an N_Null node resulting from a non-recognized pragma.
3487 --------------------------------
3488 -- 3.8 Component Declaration --
3489 --------------------------------
3491 -- COMPONENT_DECLARATION ::=
3492 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3493 -- [:= DEFAULT_EXPRESSION]
3494 -- [ASPECT_SPECIFICATIONS];
3496 -- Note: although the syntax does not permit a component definition to
3497 -- be an anonymous array (and the parser will diagnose such an attempt
3498 -- with an appropriate message), it is possible for anonymous arrays
3499 -- to appear as component definitions. The semantics and back end handle
3500 -- this case properly, and the expander in fact generates such cases.
3502 -- Although the syntax allows multiple identifiers in the list, the
3503 -- semantics is as though successive declarations were given with the
3504 -- same component definition and expression components. To simplify
3505 -- semantic processing, the parser represents a multiple declaration
3506 -- case as a sequence of single declarations, using the More_Ids and
3507 -- Prev_Ids flags to preserve the original source form as described
3508 -- in the section on "Handling of Defining Identifier Lists".
3510 -- N_Component_Declaration
3511 -- Sloc points to first identifier
3512 -- Defining_Identifier (Node1)
3513 -- Component_Definition (Node4)
3514 -- Expression (Node3) (set to Empty if no default expression)
3515 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3516 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3518 -------------------------
3519 -- 3.8.1 Variant Part --
3520 -------------------------
3522 -- VARIANT_PART ::=
3523 -- case discriminant_DIRECT_NAME is
3524 -- VARIANT {VARIANT}
3525 -- end case;
3527 -- Note: the variants list can contain pragmas as well as variants.
3528 -- In a properly formed program there is at least one variant.
3530 -- N_Variant_Part
3531 -- Sloc points to CASE
3532 -- Name (Node2)
3533 -- Variants (List1)
3535 --------------------
3536 -- 3.8.1 Variant --
3537 --------------------
3539 -- VARIANT ::=
3540 -- when DISCRETE_CHOICE_LIST =>
3541 -- COMPONENT_LIST
3543 -- N_Variant
3544 -- Sloc points to WHEN
3545 -- Discrete_Choices (List4)
3546 -- Component_List (Node1)
3547 -- Enclosing_Variant (Node2-Sem)
3548 -- Present_Expr (Uint3-Sem)
3549 -- Dcheck_Function (Node5-Sem)
3550 -- Has_SP_Choice (Flag15-Sem)
3552 -- Note: in the list of Discrete_Choices, the tree passed to the back
3553 -- end does not have choice entries corresponding to names of statically
3554 -- predicated subtypes. Such entries are always expanded out to the list
3555 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3556 -- mode also has this expansion, but done with a proper Rewrite call on
3557 -- the N_Variant node so that ASIS can properly retrieve the original.
3559 ---------------------------------
3560 -- 3.8.1 Discrete Choice List --
3561 ---------------------------------
3563 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3565 ----------------------------
3566 -- 3.8.1 Discrete Choice --
3567 ----------------------------
3569 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3571 -- Note: in Ada 83 mode, the expression must be a simple expression
3573 -- The only choice that appears explicitly is the OTHERS choice, as
3574 -- defined here. Other cases of discrete choice (expression and
3575 -- discrete range) appear directly. This production is also used
3576 -- for the OTHERS possibility of an exception choice.
3578 -- Note: in accordance with the syntax, the parser does not check that
3579 -- OTHERS appears at the end on its own in a choice list context. This
3580 -- is a semantic check.
3582 -- N_Others_Choice
3583 -- Sloc points to OTHERS
3584 -- Others_Discrete_Choices (List1-Sem)
3585 -- All_Others (Flag11-Sem)
3587 ----------------------------------
3588 -- 3.9.1 Record Extension Part --
3589 ----------------------------------
3591 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3593 -- Note: record extension parts are not permitted in Ada 83 mode
3595 --------------------------------------
3596 -- 3.9.4 Interface Type Definition --
3597 --------------------------------------
3599 -- INTERFACE_TYPE_DEFINITION ::=
3600 -- [limited | task | protected | synchronized]
3601 -- interface [interface_list]
3603 -- Note: Interfaces are implemented with N_Record_Definition and
3604 -- N_Derived_Type_Definition nodes because most of the support
3605 -- for the analysis of abstract types has been reused to
3606 -- analyze abstract interfaces.
3608 ----------------------------------
3609 -- 3.10 Access Type Definition --
3610 ----------------------------------
3612 -- ACCESS_TYPE_DEFINITION ::=
3613 -- ACCESS_TO_OBJECT_DEFINITION
3614 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3616 --------------------------
3617 -- 3.10 Null Exclusion --
3618 --------------------------
3620 -- NULL_EXCLUSION ::= not null
3622 ---------------------------------------
3623 -- 3.10 Access To Object Definition --
3624 ---------------------------------------
3626 -- ACCESS_TO_OBJECT_DEFINITION ::=
3627 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3628 -- SUBTYPE_INDICATION
3630 -- N_Access_To_Object_Definition
3631 -- Sloc points to ACCESS
3632 -- All_Present (Flag15)
3633 -- Null_Exclusion_Present (Flag11)
3634 -- Null_Excluding_Subtype (Flag16)
3635 -- Subtype_Indication (Node5)
3636 -- Constant_Present (Flag17)
3638 -----------------------------------
3639 -- 3.10 General Access Modifier --
3640 -----------------------------------
3642 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3644 -- Note: general access modifiers are not permitted in Ada 83 mode
3646 -- There is no explicit node in the tree for general access modifier.
3647 -- Instead the All_Present or Constant_Present flags are set in the
3648 -- parent node.
3650 -------------------------------------------
3651 -- 3.10 Access To Subprogram Definition --
3652 -------------------------------------------
3654 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3655 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3656 -- | [NULL_EXCLUSION] access [protected] function
3657 -- PARAMETER_AND_RESULT_PROFILE
3659 -- Note: access to subprograms are not permitted in Ada 83 mode
3661 -- N_Access_Function_Definition
3662 -- Sloc points to ACCESS
3663 -- Null_Exclusion_Present (Flag11)
3664 -- Null_Exclusion_In_Return_Present (Flag14)
3665 -- Protected_Present (Flag6)
3666 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3667 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3669 -- N_Access_Procedure_Definition
3670 -- Sloc points to ACCESS
3671 -- Null_Exclusion_Present (Flag11)
3672 -- Protected_Present (Flag6)
3673 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3675 -----------------------------
3676 -- 3.10 Access Definition --
3677 -----------------------------
3679 -- ACCESS_DEFINITION ::=
3680 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3681 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3683 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3685 -- N_Access_Definition
3686 -- Sloc points to ACCESS
3687 -- Null_Exclusion_Present (Flag11)
3688 -- All_Present (Flag15)
3689 -- Constant_Present (Flag17)
3690 -- Subtype_Mark (Node4)
3691 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3693 -----------------------------------------
3694 -- 3.10.1 Incomplete Type Declaration --
3695 -----------------------------------------
3697 -- INCOMPLETE_TYPE_DECLARATION ::=
3698 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3700 -- N_Incomplete_Type_Declaration
3701 -- Sloc points to TYPE
3702 -- Defining_Identifier (Node1)
3703 -- Discriminant_Specifications (List4) (set to No_List if no
3704 -- discriminant part, or if the discriminant part is an
3705 -- unknown discriminant part)
3706 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3707 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3708 -- Tagged_Present (Flag15)
3710 ----------------------------
3711 -- 3.11 Declarative Part --
3712 ----------------------------
3714 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3716 -- Note: although the parser enforces the syntactic requirement that
3717 -- a declarative part can contain only declarations, the semantic
3718 -- processing may add statements to the list of actions in a
3719 -- declarative part, so the code generator should be prepared
3720 -- to accept a statement in this position.
3722 ----------------------------
3723 -- 3.11 Declarative Item --
3724 ----------------------------
3726 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3728 ----------------------------------
3729 -- 3.11 Basic Declarative Item --
3730 ----------------------------------
3732 -- BASIC_DECLARATIVE_ITEM ::=
3733 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3735 ----------------
3736 -- 3.11 Body --
3737 ----------------
3739 -- BODY ::= PROPER_BODY | BODY_STUB
3741 -----------------------
3742 -- 3.11 Proper Body --
3743 -----------------------
3745 -- PROPER_BODY ::=
3746 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3748 ---------------
3749 -- 4.1 Name --
3750 ---------------
3752 -- NAME ::=
3753 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3754 -- | INDEXED_COMPONENT | SLICE
3755 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3756 -- | TYPE_CONVERSION | FUNCTION_CALL
3757 -- | CHARACTER_LITERAL
3759 ----------------------
3760 -- 4.1 Direct Name --
3761 ----------------------
3763 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3765 -----------------
3766 -- 4.1 Prefix --
3767 -----------------
3769 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3771 -------------------------------
3772 -- 4.1 Explicit Dereference --
3773 -------------------------------
3775 -- EXPLICIT_DEREFERENCE ::= NAME . all
3777 -- N_Explicit_Dereference
3778 -- Sloc points to ALL
3779 -- Prefix (Node3)
3780 -- Actual_Designated_Subtype (Node4-Sem)
3781 -- Atomic_Sync_Required (Flag14-Sem)
3782 -- Has_Dereference_Action (Flag13-Sem)
3783 -- plus fields for expression
3785 -------------------------------
3786 -- 4.1 Implicit Dereference --
3787 -------------------------------
3789 -- IMPLICIT_DEREFERENCE ::= NAME
3791 ------------------------------
3792 -- 4.1.1 Indexed Component --
3793 ------------------------------
3795 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3797 -- Note: the parser may generate this node in some situations where it
3798 -- should be a function call. The semantic pass must correct this
3799 -- misidentification (which is inevitable at the parser level).
3801 -- N_Indexed_Component
3802 -- Sloc contains a copy of the Sloc value of the Prefix
3803 -- Prefix (Node3)
3804 -- Expressions (List1)
3805 -- Generalized_Indexing (Node4-Sem)
3806 -- Atomic_Sync_Required (Flag14-Sem)
3807 -- plus fields for expression
3809 -- Note: if any of the subscripts requires a range check, then the
3810 -- Do_Range_Check flag is set on the corresponding expression, with
3811 -- the index type being determined from the type of the Prefix, which
3812 -- references the array being indexed.
3814 -- Note: in a fully analyzed and expanded indexed component node, and
3815 -- hence in any such node that gigi sees, if the prefix is an access
3816 -- type, then an explicit dereference operation has been inserted.
3818 ------------------
3819 -- 4.1.2 Slice --
3820 ------------------
3822 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3824 -- Note: an implicit subtype is created to describe the resulting
3825 -- type, so that the bounds of this type are the bounds of the slice.
3827 -- N_Slice
3828 -- Sloc points to first token of prefix
3829 -- Prefix (Node3)
3830 -- Discrete_Range (Node4)
3831 -- plus fields for expression
3833 -------------------------------
3834 -- 4.1.3 Selected Component --
3835 -------------------------------
3837 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3839 -- Note: selected components that are semantically expanded names get
3840 -- changed during semantic processing into the separate N_Expanded_Name
3841 -- node. See description of this node in the section on semantic nodes.
3843 -- N_Selected_Component
3844 -- Sloc points to the period
3845 -- Prefix (Node3)
3846 -- Selector_Name (Node2)
3847 -- Associated_Node (Node4-Sem)
3848 -- Do_Discriminant_Check (Flag1-Sem)
3849 -- Is_In_Discriminant_Check (Flag11-Sem)
3850 -- Is_Prefixed_Call (Flag17-Sem)
3851 -- Atomic_Sync_Required (Flag14-Sem)
3852 -- plus fields for expression
3854 --------------------------
3855 -- 4.1.3 Selector Name --
3856 --------------------------
3858 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3860 --------------------------------
3861 -- 4.1.4 Attribute Reference --
3862 --------------------------------
3864 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3866 -- Note: the syntax is quite ambiguous at this point. Consider:
3868 -- A'Length (X) X is part of the attribute designator
3869 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3870 -- A'Class (X) X is the expression of a type conversion
3872 -- It would be possible for the parser to distinguish these cases
3873 -- by looking at the attribute identifier. However, that would mean
3874 -- more work in introducing new implementation defined attributes,
3875 -- and also it would mean that special processing for attributes
3876 -- would be scattered around, instead of being centralized in the
3877 -- semantic routine that handles an N_Attribute_Reference node.
3878 -- Consequently, the parser in all the above cases stores the
3879 -- expression (X in these examples) as a single element list in
3880 -- in the Expressions field of the N_Attribute_Reference node.
3882 -- Similarly, for attributes like Max which take two arguments,
3883 -- we store the two arguments as a two element list in the
3884 -- Expressions field. Of course it is clear at parse time that
3885 -- this case is really a function call with an attribute as the
3886 -- prefix, but it turns out to be convenient to handle the two
3887 -- argument case in a similar manner to the one argument case,
3888 -- and indeed in general the parser will accept any number of
3889 -- expressions in this position and store them as a list in the
3890 -- attribute reference node. This allows for future addition of
3891 -- attributes that take more than two arguments.
3893 -- Note: named associates are not permitted in function calls where
3894 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3895 -- to skip the normal subprogram argument processing.
3897 -- Note: for the attributes whose designators are technically keywords,
3898 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3899 -- the corresponding name, even though no identifier is involved.
3901 -- Note: the generated code may contain stream attributes applied to
3902 -- limited types for which no stream routines exist officially. In such
3903 -- case, the result is to use the stream attribute for the underlying
3904 -- full type, or in the case of a protected type, the components
3905 -- (including any discriminants) are merely streamed in order.
3907 -- See Exp_Attr for a complete description of which attributes are
3908 -- passed onto Gigi, and which are handled entirely by the front end.
3910 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3911 -- a non-standard enumeration type or a nonzero/zero semantics
3912 -- boolean type, so the value is simply the stored representation.
3914 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3915 -- references a subprogram that is a renaming, then the front end must
3916 -- rewrite the attribute to refer directly to the renamed entity.
3918 -- Note: syntactically the prefix of an attribute reference must be a
3919 -- name, and this (somewhat artificial) requirement is enforced by the
3920 -- parser. However, for many attributes, such as 'Valid, it is quite
3921 -- reasonable to apply the attribute to any value, and hence to any
3922 -- expression. Internally in the tree, the prefix is an expression which
3923 -- does not have to be a name, and this is handled fine by the semantic
3924 -- analysis and expansion, and back ends. This arises for the case of
3925 -- attribute references built by the expander (e.g. 'Valid for the case
3926 -- of an implicit validity check).
3928 -- Note: In generated code, the Address and Unrestricted_Access
3929 -- attributes can be applied to any expression, and the meaning is
3930 -- to create an object containing the value (the object is in the
3931 -- current stack frame), and pass the address of this value. If the
3932 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3933 -- is taken must be on a byte (storage unit) boundary, and if it is
3934 -- not (or may not be), then the generated code must create a copy
3935 -- that is byte aligned, and pass the address of this copy.
3937 -- N_Attribute_Reference
3938 -- Sloc points to apostrophe
3939 -- Prefix (Node3) (general expression, see note above)
3940 -- Attribute_Name (Name2) identifier name from attribute designator
3941 -- Expressions (List1) (set to No_List if no associated expressions)
3942 -- Entity (Node4-Sem) used if the attribute yields a type
3943 -- Associated_Node (Node4-Sem)
3944 -- Do_Overflow_Check (Flag17-Sem)
3945 -- Header_Size_Added (Flag11-Sem)
3946 -- Must_Be_Byte_Aligned (Flag14-Sem)
3947 -- Non_Aliased_Prefix (Flag18-Sem)
3948 -- Redundant_Use (Flag13-Sem)
3949 -- plus fields for expression
3951 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3952 -- into equivalent if expressions, properly taking care of side effects.
3954 ---------------------------------
3955 -- 4.1.4 Attribute Designator --
3956 ---------------------------------
3958 -- ATTRIBUTE_DESIGNATOR ::=
3959 -- IDENTIFIER [(static_EXPRESSION)]
3960 -- | access | delta | digits
3962 -- There is no explicit node in the tree for an attribute designator.
3963 -- Instead the Attribute_Name and Expressions fields of the parent
3964 -- node (N_Attribute_Reference node) hold the information.
3966 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3967 -- designator, then they are treated as identifiers internally
3968 -- rather than the keywords of the same name.
3970 --------------------------------------
3971 -- 4.1.4 Range Attribute Reference --
3972 --------------------------------------
3974 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3976 -- A range attribute reference is represented in the tree using the
3977 -- normal N_Attribute_Reference node.
3979 ---------------------------------------
3980 -- 4.1.4 Range Attribute Designator --
3981 ---------------------------------------
3983 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3985 -- A range attribute designator is represented in the tree using the
3986 -- normal N_Attribute_Reference node.
3988 --------------------
3989 -- 4.3 Aggregate --
3990 --------------------
3992 -- AGGREGATE ::=
3993 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3995 -----------------------------
3996 -- 4.3.1 Record Aggregate --
3997 -----------------------------
3999 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
4001 -- N_Aggregate
4002 -- Sloc points to left parenthesis
4003 -- Expressions (List1) (set to No_List if none or null record case)
4004 -- Component_Associations (List2) (set to No_List if none)
4005 -- Null_Record_Present (Flag17)
4006 -- Aggregate_Bounds (Node3-Sem)
4007 -- Associated_Node (Node4-Sem)
4008 -- Compile_Time_Known_Aggregate (Flag18-Sem)
4009 -- Expansion_Delayed (Flag11-Sem)
4010 -- Has_Self_Reference (Flag13-Sem)
4011 -- plus fields for expression
4013 -- Note: this structure is used for both record and array aggregates
4014 -- since the two cases are not separable by the parser. The parser
4015 -- makes no attempt to enforce consistency here, so it is up to the
4016 -- semantic phase to make sure that the aggregate is consistent (i.e.
4017 -- that it is not a "half-and-half" case that mixes record and array
4018 -- syntax. In particular, for a record aggregate, the expressions
4019 -- field will be set if there are positional associations.
4021 -- Note: N_Aggregate is not used for all aggregates; in particular,
4022 -- there is a separate node kind for extension aggregates.
4024 -- Note: gigi/gcc can handle array aggregates correctly providing that
4025 -- they are entirely positional, and the array subtype involved has a
4026 -- known at compile time length and is not bit packed, or a convention
4027 -- Fortran array with more than one dimension. If these conditions
4028 -- are not met, then the front end must translate the aggregate into
4029 -- an appropriate set of assignments into a temporary.
4031 -- Note: for the record aggregate case, gigi/gcc can handle most cases
4032 -- of record aggregates, including those for packed, and rep-claused
4033 -- records, and also variant records, providing that there are no
4034 -- variable length fields whose size is not known at compile time,
4035 -- and providing that the aggregate is presented in fully named form.
4037 -- The other situation in which array aggregates and record aggregates
4038 -- cannot be passed to the back end is if assignment to one or more
4039 -- components itself needs expansion, e.g. in the case of an assignment
4040 -- of an object of a controlled type. In such cases, the front end
4041 -- must expand the aggregate to a series of assignments, and apply
4042 -- the required expansion to the individual assignment statements.
4044 ----------------------------------------------
4045 -- 4.3.1 Record Component Association List --
4046 ----------------------------------------------
4048 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4049 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4050 -- | null record
4052 -- There is no explicit node in the tree for a record component
4053 -- association list. Instead the Null_Record_Present flag is set in
4054 -- the parent node for the NULL RECORD case.
4056 ------------------------------------------------------
4057 -- 4.3.1 Record Component Association (also 4.3.3) --
4058 ------------------------------------------------------
4060 -- RECORD_COMPONENT_ASSOCIATION ::=
4061 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4063 -- N_Component_Association
4064 -- Sloc points to first selector name
4065 -- Choices (List1)
4066 -- Loop_Actions (List2-Sem)
4067 -- Expression (Node3) (empty if Box_Present)
4068 -- Box_Present (Flag15)
4069 -- Inherited_Discriminant (Flag13)
4071 -- Note: this structure is used for both record component associations
4072 -- and array component associations, since the two cases aren't always
4073 -- separable by the parser. The choices list may represent either a
4074 -- list of selector names in the record aggregate case, or a list of
4075 -- discrete choices in the array aggregate case or an N_Others_Choice
4076 -- node (which appears as a singleton list). Box_Present gives support
4077 -- to Ada 2005 (AI-287).
4079 ----------------------------------
4080 -- 4.3.1 Component Choice List --
4081 ----------------------------------
4083 -- COMPONENT_CHOICE_LIST ::=
4084 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4085 -- | others
4087 -- The entries of a component choice list appear in the Choices list of
4088 -- the associated N_Component_Association, as either selector names, or
4089 -- as an N_Others_Choice node.
4091 --------------------------------
4092 -- 4.3.2 Extension Aggregate --
4093 --------------------------------
4095 -- EXTENSION_AGGREGATE ::=
4096 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4098 -- Note: extension aggregates are not permitted in Ada 83 mode
4100 -- N_Extension_Aggregate
4101 -- Sloc points to left parenthesis
4102 -- Ancestor_Part (Node3)
4103 -- Associated_Node (Node4-Sem)
4104 -- Expressions (List1) (set to No_List if none or null record case)
4105 -- Component_Associations (List2) (set to No_List if none)
4106 -- Null_Record_Present (Flag17)
4107 -- Expansion_Delayed (Flag11-Sem)
4108 -- Has_Self_Reference (Flag13-Sem)
4109 -- plus fields for expression
4111 --------------------------
4112 -- 4.3.2 Ancestor Part --
4113 --------------------------
4115 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4117 ----------------------------
4118 -- 4.3.3 Array Aggregate --
4119 ----------------------------
4121 -- ARRAY_AGGREGATE ::=
4122 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4124 ---------------------------------------
4125 -- 4.3.3 Positional Array Aggregate --
4126 ---------------------------------------
4128 -- POSITIONAL_ARRAY_AGGREGATE ::=
4129 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4130 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4132 -- See Record_Aggregate (4.3.1) for node structure
4134 ----------------------------------
4135 -- 4.3.3 Named Array Aggregate --
4136 ----------------------------------
4138 -- NAMED_ARRAY_AGGREGATE ::=
4139 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4141 -- See Record_Aggregate (4.3.1) for node structure
4143 ----------------------------------------
4144 -- 4.3.3 Array Component Association --
4145 ----------------------------------------
4147 -- ARRAY_COMPONENT_ASSOCIATION ::=
4148 -- DISCRETE_CHOICE_LIST => EXPRESSION
4149 -- | ITERATED_COMPONENT_ASSOCIATION
4151 -- See Record_Component_Association (4.3.1) for node structure
4152 -- The iterated_component_association is introduced into the
4153 -- Corrigendum of Ada_2012 by AI12-061.
4155 ------------------------------------------
4156 -- 4.3.3 Iterated component Association --
4157 ------------------------------------------
4159 -- ITERATED_COMPONENT_ASSOCIATION ::=
4160 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4162 -- N_Iterated_Component_Association
4163 -- Sloc points to FOR
4164 -- Defining_Identifier (Node1)
4165 -- Loop_Actions (List2-Sem)
4166 -- Expression (Node3)
4167 -- Discrete_Choices (List4)
4168 -- Box_Present (Flag15)
4170 -- Note that Box_Present is always False, but it is intentionally added
4171 -- for completeness.
4173 ----------------------------
4174 -- 4.3.4 Delta Aggregate --
4175 ----------------------------
4177 -- N_Delta_Aggregate
4178 -- Sloc points to left parenthesis
4179 -- Expression (Node3)
4180 -- Component_Associations (List2)
4182 --------------------------------------------------
4183 -- 4.4 Expression/Relation/Term/Factor/Primary --
4184 --------------------------------------------------
4186 -- EXPRESSION ::=
4187 -- RELATION {LOGICAL_OPERATOR RELATION}
4189 -- CHOICE_EXPRESSION ::=
4190 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4192 -- CHOICE_RELATION ::=
4193 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4195 -- RELATION ::=
4196 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4197 -- | RAISE_EXPRESSION
4199 -- MEMBERSHIP_CHOICE_LIST ::=
4200 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4202 -- MEMBERSHIP_CHOICE ::=
4203 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4205 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4207 -- SIMPLE_EXPRESSION ::=
4208 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4210 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4212 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4214 -- No nodes are generated for any of these constructs. Instead, the
4215 -- node for the operator appears directly. When we refer to an
4216 -- expression in this description, we mean any of the possible
4217 -- constituent components of an expression (e.g. identifier is
4218 -- an example of an expression).
4220 -- Note: the above syntax is that Ada 2012 syntax which restricts
4221 -- choice relations to simple expressions to avoid ambiguities in
4222 -- some contexts with set membership notation. It has been decided
4223 -- that in retrospect, the Ada 95 change allowing general expressions
4224 -- in this context was a mistake, so we have reverted to the above
4225 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4226 -- expressions was there in Ada 83 from the start).
4228 ------------------
4229 -- 4.4 Primary --
4230 ------------------
4232 -- PRIMARY ::=
4233 -- NUMERIC_LITERAL | null
4234 -- | STRING_LITERAL | AGGREGATE
4235 -- | NAME | QUALIFIED_EXPRESSION
4236 -- | ALLOCATOR | (EXPRESSION)
4238 -- Usually there is no explicit node in the tree for primary. Instead
4239 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4240 -- exceptions. First, there is an explicit node for a null primary.
4242 -- N_Null
4243 -- Sloc points to NULL
4244 -- plus fields for expression
4246 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4247 -- that the parser keep track of which subexpressions are enclosed
4248 -- in parentheses, and how many levels of parentheses are used. This
4249 -- information is required for optimization purposes, and also for
4250 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4251 -- conform with ((((1)))) in the body).
4253 -- The parentheses are recorded by keeping a Paren_Count field in every
4254 -- subexpression node (it is actually present in all nodes, but only
4255 -- used in subexpression nodes). This count records the number of
4256 -- levels of parentheses. If the number of levels in the source exceeds
4257 -- the maximum accommodated by this count, then the count is simply left
4258 -- at the maximum value. This means that there are some pathological
4259 -- cases of failure to detect conformance failures (e.g. an expression
4260 -- with 500 levels of parens will conform with one with 501 levels),
4261 -- but we do not need to lose sleep over this.
4263 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4264 -- type N_Parenthesized_Expression used to accurately record unlimited
4265 -- numbers of levels of parentheses. However, it turned out to be a
4266 -- real nuisance to have to take into account the possible presence of
4267 -- this node during semantic analysis, since basically parentheses have
4268 -- zero relevance to semantic analysis.
4270 -- Note: the level of parentheses always present in things like
4271 -- aggregates does not count, only the parentheses in the primary
4272 -- (EXPRESSION) affect the setting of the Paren_Count field.
4274 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4275 -- treated as though it were Empty) if No_Initialization is set True.
4277 --------------------------------------
4278 -- 4.5 Short-Circuit Control Forms --
4279 --------------------------------------
4281 -- EXPRESSION ::=
4282 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4284 -- Gigi restriction: For both these control forms, the operand and
4285 -- result types are always Standard.Boolean. The expander inserts the
4286 -- required conversion operations where needed to ensure this is the
4287 -- case.
4289 -- N_And_Then
4290 -- Sloc points to AND of AND THEN
4291 -- Left_Opnd (Node2)
4292 -- Right_Opnd (Node3)
4293 -- Actions (List1-Sem)
4294 -- plus fields for expression
4296 -- N_Or_Else
4297 -- Sloc points to OR of OR ELSE
4298 -- Left_Opnd (Node2)
4299 -- Right_Opnd (Node3)
4300 -- Actions (List1-Sem)
4301 -- plus fields for expression
4303 -- Note: The Actions field is used to hold actions associated with
4304 -- the right hand operand. These have to be treated specially since
4305 -- they are not unconditionally executed. See Insert_Actions for a
4306 -- more detailed description of how these actions are handled.
4308 ---------------------------
4309 -- 4.5 Membership Tests --
4310 ---------------------------
4312 -- RELATION ::=
4313 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4315 -- MEMBERSHIP_CHOICE_LIST ::=
4316 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4318 -- MEMBERSHIP_CHOICE ::=
4319 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4321 -- Note: although the grammar above allows only a range or a subtype
4322 -- mark, the parser in fact will accept any simple expression in place
4323 -- of a subtype mark. This means that the semantic analyzer must be able
4324 -- to deal with, and diagnose a simple expression other than a name for
4325 -- the right operand. This simplifies error recovery in the parser.
4327 -- The Alternatives field below is present only if there is more than
4328 -- one Membership_Choice present (which is legitimate only in Ada 2012
4329 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4330 -- the list of choices. In the tree passed to the back end, Alternatives
4331 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4332 -- expands out the complex set membership case using simple membership
4333 -- and equality operations).
4335 -- Should we rename Alternatives here to Membership_Choices ???
4337 -- N_In
4338 -- Sloc points to IN
4339 -- Left_Opnd (Node2)
4340 -- Right_Opnd (Node3)
4341 -- Alternatives (List4) (set to No_List if only one set alternative)
4342 -- No_Minimize_Eliminate (Flag17)
4343 -- plus fields for expression
4345 -- N_Not_In
4346 -- Sloc points to NOT of NOT IN
4347 -- Left_Opnd (Node2)
4348 -- Right_Opnd (Node3)
4349 -- Alternatives (List4) (set to No_List if only one set alternative)
4350 -- No_Minimize_Eliminate (Flag17)
4351 -- plus fields for expression
4353 --------------------
4354 -- 4.5 Operators --
4355 --------------------
4357 -- LOGICAL_OPERATOR ::= and | or | xor
4359 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4361 -- BINARY_ADDING_OPERATOR ::= + | - | &
4363 -- UNARY_ADDING_OPERATOR ::= + | -
4365 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4367 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4369 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4371 -- x #* y
4372 -- x #/ y
4373 -- x #mod y
4374 -- x #rem y
4376 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4377 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4378 -- All handling of smalls for multiplication and division is handled
4379 -- by the front end (mod and rem result only from expansion). Gigi
4380 -- thus never needs to worry about small values (for other operators
4381 -- operating on fixed-point, e.g. addition, the small value does not
4382 -- have any semantic effect anyway, these are always integer operations.
4384 -- Gigi restriction: For all operators taking Boolean operands, the
4385 -- type is always Standard.Boolean. The expander inserts the required
4386 -- conversion operations where needed to ensure this is the case.
4388 -- N_Op_And
4389 -- Sloc points to AND
4390 -- Do_Length_Check (Flag4-Sem)
4391 -- plus fields for binary operator
4392 -- plus fields for expression
4394 -- N_Op_Or
4395 -- Sloc points to OR
4396 -- Do_Length_Check (Flag4-Sem)
4397 -- plus fields for binary operator
4398 -- plus fields for expression
4400 -- N_Op_Xor
4401 -- Sloc points to XOR
4402 -- Do_Length_Check (Flag4-Sem)
4403 -- plus fields for binary operator
4404 -- plus fields for expression
4406 -- N_Op_Eq
4407 -- Sloc points to =
4408 -- plus fields for binary operator
4409 -- plus fields for expression
4411 -- N_Op_Ne
4412 -- Sloc points to /=
4413 -- plus fields for binary operator
4414 -- plus fields for expression
4416 -- N_Op_Lt
4417 -- Sloc points to <
4418 -- plus fields for binary operator
4419 -- plus fields for expression
4421 -- N_Op_Le
4422 -- Sloc points to <=
4423 -- plus fields for binary operator
4424 -- plus fields for expression
4426 -- N_Op_Gt
4427 -- Sloc points to >
4428 -- plus fields for binary operator
4429 -- plus fields for expression
4431 -- N_Op_Ge
4432 -- Sloc points to >=
4433 -- plus fields for binary operator
4434 -- plus fields for expression
4436 -- N_Op_Add
4437 -- Sloc points to + (binary)
4438 -- plus fields for binary operator
4439 -- plus fields for expression
4441 -- N_Op_Subtract
4442 -- Sloc points to - (binary)
4443 -- plus fields for binary operator
4444 -- plus fields for expression
4446 -- N_Op_Concat
4447 -- Sloc points to &
4448 -- Is_Component_Left_Opnd (Flag13-Sem)
4449 -- Is_Component_Right_Opnd (Flag14-Sem)
4450 -- plus fields for binary operator
4451 -- plus fields for expression
4453 -- N_Op_Multiply
4454 -- Sloc points to *
4455 -- Treat_Fixed_As_Integer (Flag14-Sem)
4456 -- Rounded_Result (Flag18-Sem)
4457 -- plus fields for binary operator
4458 -- plus fields for expression
4460 -- N_Op_Divide
4461 -- Sloc points to /
4462 -- Treat_Fixed_As_Integer (Flag14-Sem)
4463 -- Do_Division_Check (Flag13-Sem)
4464 -- Rounded_Result (Flag18-Sem)
4465 -- plus fields for binary operator
4466 -- plus fields for expression
4468 -- N_Op_Mod
4469 -- Sloc points to MOD
4470 -- Treat_Fixed_As_Integer (Flag14-Sem)
4471 -- Do_Division_Check (Flag13-Sem)
4472 -- plus fields for binary operator
4473 -- plus fields for expression
4475 -- N_Op_Rem
4476 -- Sloc points to REM
4477 -- Treat_Fixed_As_Integer (Flag14-Sem)
4478 -- Do_Division_Check (Flag13-Sem)
4479 -- plus fields for binary operator
4480 -- plus fields for expression
4482 -- N_Op_Expon
4483 -- Sloc points to **
4484 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4485 -- plus fields for binary operator
4486 -- plus fields for expression
4488 -- N_Op_Plus
4489 -- Sloc points to + (unary)
4490 -- plus fields for unary operator
4491 -- plus fields for expression
4493 -- N_Op_Minus
4494 -- Sloc points to - (unary)
4495 -- plus fields for unary operator
4496 -- plus fields for expression
4498 -- N_Op_Abs
4499 -- Sloc points to ABS
4500 -- plus fields for unary operator
4501 -- plus fields for expression
4503 -- N_Op_Not
4504 -- Sloc points to NOT
4505 -- plus fields for unary operator
4506 -- plus fields for expression
4508 -- See also shift operators in section B.2
4510 -- Note on fixed-point operations passed to Gigi: For adding operators,
4511 -- the semantics is to treat these simply as integer operations, with
4512 -- the small values being ignored (the bounds are already stored in
4513 -- units of small, so that constraint checking works as usual). For the
4514 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4515 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4516 -- thus treat these nodes in identical manner, ignoring small values.
4518 -- Note on equality/inequality tests for records. In the expanded tree,
4519 -- record comparisons are always expanded to be a series of component
4520 -- comparisons, so the back end will never see an equality or inequality
4521 -- operation with operands of a record type.
4523 -- Note on overflow handling: When the overflow checking mode is set to
4524 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4525 -- be modified to use a larger type for the operands and result. In
4526 -- the case where the computed range exceeds that of Long_Long_Integer,
4527 -- and we are running in ELIMINATED mode, the operator node will be
4528 -- changed to be a call to the appropriate routine in System.Bignums.
4530 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4531 -- for signed integer types (since there is no equivalent operator in
4532 -- C). Instead we rewrite such an operation in terms of REM (which is
4533 -- % in C) and other C-available operators.
4535 ------------------------------------
4536 -- 4.5.7 Conditional Expressions --
4537 ------------------------------------
4539 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4541 --------------------------
4542 -- 4.5.7 If Expression --
4543 ----------------------------
4545 -- IF_EXPRESSION ::=
4546 -- if CONDITION then DEPENDENT_EXPRESSION
4547 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4548 -- [else DEPENDENT_EXPRESSION]
4550 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4552 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4553 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4554 -- the Is_Elsif flag is set on the inner if expression.
4556 -- N_If_Expression
4557 -- Sloc points to IF or ELSIF keyword
4558 -- Expressions (List1)
4559 -- Then_Actions (List2-Sem)
4560 -- Else_Actions (List3-Sem)
4561 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4562 -- Do_Overflow_Check (Flag17-Sem)
4563 -- plus fields for expression
4565 -- Expressions here is a three-element list, whose first element is the
4566 -- condition, the second element is the dependent expression after THEN
4567 -- and the third element is the dependent expression after the ELSE
4568 -- (explicitly set to True if missing).
4570 -- Note: the Then_Actions and Else_Actions fields are always set to
4571 -- No_List in the tree passed to the back end. These are used only
4572 -- for temporary processing purposes in the expander. Even though they
4573 -- are semantic fields, their parent pointers are set because analysis
4574 -- of actions nodes in those lists may generate additional actions that
4575 -- need to know their insertion point (for example for the creation of
4576 -- transient scopes).
4578 -- Note: in the tree passed to the back end, if the result type is
4579 -- an unconstrained array, the if expression can only appears in the
4580 -- initializing expression of an object declaration (this avoids the
4581 -- back end having to create a variable length temporary on the fly).
4583 ----------------------------
4584 -- 4.5.7 Case Expression --
4585 ----------------------------
4587 -- CASE_EXPRESSION ::=
4588 -- case SELECTING_EXPRESSION is
4589 -- CASE_EXPRESSION_ALTERNATIVE
4590 -- {,CASE_EXPRESSION_ALTERNATIVE}
4592 -- Note that the Alternatives cannot include pragmas (this contrasts
4593 -- with the situation of case statements where pragmas are allowed).
4595 -- N_Case_Expression
4596 -- Sloc points to CASE
4597 -- Expression (Node3) (the selecting expression)
4598 -- Alternatives (List4) (the case expression alternatives)
4599 -- Do_Overflow_Check (Flag17-Sem)
4601 ----------------------------------------
4602 -- 4.5.7 Case Expression Alternative --
4603 ----------------------------------------
4605 -- CASE_EXPRESSION_ALTERNATIVE ::=
4606 -- when DISCRETE_CHOICE_LIST =>
4607 -- DEPENDENT_EXPRESSION
4609 -- N_Case_Expression_Alternative
4610 -- Sloc points to WHEN
4611 -- Actions (List1)
4612 -- Discrete_Choices (List4)
4613 -- Expression (Node3)
4614 -- Has_SP_Choice (Flag15-Sem)
4616 -- Note: The Actions field temporarily holds any actions associated with
4617 -- evaluation of the Expression. During expansion of the case expression
4618 -- these actions are wrapped into an N_Expressions_With_Actions node
4619 -- replacing the original expression.
4621 -- Note: this node never appears in the tree passed to the back end,
4622 -- since the expander converts case expressions into case statements.
4624 ---------------------------------
4625 -- 4.5.9 Quantified Expression --
4626 ---------------------------------
4628 -- QUANTIFIED_EXPRESSION ::=
4629 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4630 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4632 -- QUANTIFIER ::= all | some
4634 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4635 -- is present at a time, in which case the other one is empty.
4637 -- N_Quantified_Expression
4638 -- Sloc points to FOR
4639 -- Iterator_Specification (Node2)
4640 -- Loop_Parameter_Specification (Node4)
4641 -- Condition (Node1)
4642 -- All_Present (Flag15)
4644 --------------------------
4645 -- 4.6 Type Conversion --
4646 --------------------------
4648 -- TYPE_CONVERSION ::=
4649 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4651 -- In the (NAME) case, the name is stored as the expression
4653 -- Note: the parser never generates a type conversion node, since it
4654 -- looks like an indexed component which is generated by preference.
4655 -- The semantic pass must correct this misidentification.
4657 -- Gigi handles conversions that involve no change in the root type,
4658 -- and also all conversions from integer to floating-point types.
4659 -- Conversions from floating-point to integer are only handled in
4660 -- the case where Float_Truncate flag set. Other conversions from
4661 -- floating-point to integer (involving rounding) and all conversions
4662 -- involving fixed-point types are handled by the expander.
4664 -- Sprint syntax if Float_Truncate set: X^(Y)
4665 -- Sprint syntax if Conversion_OK set X?(Y)
4666 -- Sprint syntax if both flags set X?^(Y)
4668 -- Note: If either the operand or result type is fixed-point, Gigi will
4669 -- only see a type conversion node with Conversion_OK set. The front end
4670 -- takes care of all handling of small's for fixed-point conversions.
4672 -- N_Type_Conversion
4673 -- Sloc points to first token of subtype mark
4674 -- Subtype_Mark (Node4)
4675 -- Expression (Node3)
4676 -- Do_Discriminant_Check (Flag1-Sem)
4677 -- Do_Length_Check (Flag4-Sem)
4678 -- Float_Truncate (Flag11-Sem)
4679 -- Do_Tag_Check (Flag13-Sem)
4680 -- Conversion_OK (Flag14-Sem)
4681 -- Do_Overflow_Check (Flag17-Sem)
4682 -- Rounded_Result (Flag18-Sem)
4683 -- plus fields for expression
4685 -- Note: if a range check is required, then the Do_Range_Check flag
4686 -- is set in the Expression with the check being done against the
4687 -- target type range (after the base type conversion, if any).
4689 -------------------------------
4690 -- 4.7 Qualified Expression --
4691 -------------------------------
4693 -- QUALIFIED_EXPRESSION ::=
4694 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4696 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4697 -- the expression, so the Expression field of this node always points
4698 -- to a parenthesized expression in this case (i.e. Paren_Count will
4699 -- always be non-zero for the referenced expression if it is not an
4700 -- aggregate).
4702 -- N_Qualified_Expression
4703 -- Sloc points to apostrophe
4704 -- Subtype_Mark (Node4)
4705 -- Expression (Node3) expression or aggregate
4706 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4707 -- plus fields for expression
4709 --------------------
4710 -- 4.8 Allocator --
4711 --------------------
4713 -- ALLOCATOR ::=
4714 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4715 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4717 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4719 -- Sprint syntax (when storage pool present)
4720 -- new xxx (storage_pool = pool)
4721 -- or
4722 -- new (subpool) xxx (storage_pool = pool)
4724 -- N_Allocator
4725 -- Sloc points to NEW
4726 -- Expression (Node3) subtype indication or qualified expression
4727 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4728 -- Storage_Pool (Node1-Sem)
4729 -- Procedure_To_Call (Node2-Sem)
4730 -- Null_Exclusion_Present (Flag11)
4731 -- No_Initialization (Flag13-Sem)
4732 -- Is_Static_Coextension (Flag14-Sem)
4733 -- Do_Storage_Check (Flag17-Sem)
4734 -- Is_Dynamic_Coextension (Flag18-Sem)
4735 -- plus fields for expression
4737 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4738 -- This flag has a special function in conjunction with the restriction
4739 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4740 -- is not set. This means that if a source allocator is replaced with
4741 -- a constructed allocator, the Comes_From_Source flag should be copied
4742 -- to the newly created allocator.
4744 ---------------------------------
4745 -- 5.1 Sequence Of Statements --
4746 ---------------------------------
4748 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4750 -- Note: Although the parser will not accept a declaration as a
4751 -- statement, the semantic analyzer may insert declarations (e.g.
4752 -- declarations of implicit types needed for execution of other
4753 -- statements) into a sequence of statements, so the code generator
4754 -- should be prepared to accept a declaration where a statement is
4755 -- expected. Note also that pragmas can appear as statements.
4757 --------------------
4758 -- 5.1 Statement --
4759 --------------------
4761 -- STATEMENT ::=
4762 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4764 -- There is no explicit node in the tree for a statement. Instead, the
4765 -- individual statement appears directly. Labels are treated as a
4766 -- kind of statement, i.e. they are linked into a statement list at
4767 -- the point they appear, so the labeled statement appears following
4768 -- the label or labels in the statement list.
4770 ---------------------------
4771 -- 5.1 Simple Statement --
4772 ---------------------------
4774 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4775 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4776 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4777 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4778 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4779 -- | ABORT_STATEMENT | RAISE_STATEMENT
4780 -- | CODE_STATEMENT
4782 -----------------------------
4783 -- 5.1 Compound Statement --
4784 -----------------------------
4786 -- COMPOUND_STATEMENT ::=
4787 -- IF_STATEMENT | CASE_STATEMENT
4788 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4789 -- | EXTENDED_RETURN_STATEMENT
4790 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4792 -------------------------
4793 -- 5.1 Null Statement --
4794 -------------------------
4796 -- NULL_STATEMENT ::= null;
4798 -- N_Null_Statement
4799 -- Sloc points to NULL
4801 ----------------
4802 -- 5.1 Label --
4803 ----------------
4805 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4807 -- Note that the occurrence of a label is not a defining identifier,
4808 -- but rather a referencing occurrence. The defining occurrence is
4809 -- in the implicit label declaration which occurs in the innermost
4810 -- enclosing block.
4812 -- N_Label
4813 -- Sloc points to <<
4814 -- Identifier (Node1) direct name of statement identifier
4815 -- Exception_Junk (Flag8-Sem)
4817 -- Note: Before Ada 2012, a label is always followed by a statement,
4818 -- and this is true in the tree even in Ada 2012 mode (the parser
4819 -- inserts a null statement marked with Comes_From_Source False).
4821 -------------------------------
4822 -- 5.1 Statement Identifier --
4823 -------------------------------
4825 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4827 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4828 -- (not an OPERATOR_SYMBOL)
4830 -------------------------------
4831 -- 5.2 Assignment Statement --
4832 -------------------------------
4834 -- ASSIGNMENT_STATEMENT ::=
4835 -- variable_NAME := EXPRESSION;
4837 -- N_Assignment_Statement
4838 -- Sloc points to :=
4839 -- Name (Node2)
4840 -- Expression (Node3)
4841 -- Do_Discriminant_Check (Flag1-Sem)
4842 -- Do_Tag_Check (Flag13-Sem)
4843 -- Do_Length_Check (Flag4-Sem)
4844 -- Forwards_OK (Flag5-Sem)
4845 -- Backwards_OK (Flag6-Sem)
4846 -- No_Ctrl_Actions (Flag7-Sem)
4847 -- Has_Target_Names (Flag8-Sem)
4848 -- Componentwise_Assignment (Flag14-Sem)
4849 -- Suppress_Assignment_Checks (Flag18-Sem)
4851 -- Note: if a range check is required, then the Do_Range_Check flag
4852 -- is set in the Expression (right hand side), with the check being
4853 -- done against the type of the Name (left hand side).
4855 -- Note: the back end places some restrictions on the form of the
4856 -- Expression field. If the object being assigned to is Atomic, then
4857 -- the Expression may not have the form of an aggregate (since this
4858 -- might cause the back end to generate separate assignments). In this
4859 -- case the front end must generate an extra temporary and initialize
4860 -- this temporary as required (the temporary itself is not atomic).
4862 ------------------
4863 -- Target_Name --
4864 ------------------
4866 -- N_Target_Name
4867 -- Sloc points to @
4868 -- Etype (Node5-Sem)
4870 -- Note (Ada 2020): node is used during analysis as a placeholder for
4871 -- the value of the LHS of the enclosing assignment statement. Node is
4872 -- eventually rewritten together with enclosing assignment, and backends
4873 -- are not aware of it.
4875 -----------------------
4876 -- 5.3 If Statement --
4877 -----------------------
4879 -- IF_STATEMENT ::=
4880 -- if CONDITION then
4881 -- SEQUENCE_OF_STATEMENTS
4882 -- {elsif CONDITION then
4883 -- SEQUENCE_OF_STATEMENTS}
4884 -- [else
4885 -- SEQUENCE_OF_STATEMENTS]
4886 -- end if;
4888 -- Gigi restriction: This expander ensures that the type of the
4889 -- Condition fields is always Standard.Boolean, even if the type
4890 -- in the source is some non-standard boolean type.
4892 -- N_If_Statement
4893 -- Sloc points to IF
4894 -- Condition (Node1)
4895 -- Then_Statements (List2)
4896 -- Elsif_Parts (List3) (set to No_List if none present)
4897 -- Else_Statements (List4) (set to No_List if no else part present)
4898 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4899 -- From_Conditional_Expression (Flag1-Sem)
4901 -- N_Elsif_Part
4902 -- Sloc points to ELSIF
4903 -- Condition (Node1)
4904 -- Then_Statements (List2)
4905 -- Condition_Actions (List3-Sem)
4907 --------------------
4908 -- 5.3 Condition --
4909 --------------------
4911 -- CONDITION ::= boolean_EXPRESSION
4913 -------------------------
4914 -- 5.4 Case Statement --
4915 -------------------------
4917 -- CASE_STATEMENT ::=
4918 -- case EXPRESSION is
4919 -- CASE_STATEMENT_ALTERNATIVE
4920 -- {CASE_STATEMENT_ALTERNATIVE}
4921 -- end case;
4923 -- Note: the Alternatives can contain pragmas. These only occur at
4924 -- the start of the list, since any pragmas occurring after the first
4925 -- alternative are absorbed into the corresponding statement sequence.
4927 -- N_Case_Statement
4928 -- Sloc points to CASE
4929 -- Expression (Node3)
4930 -- Alternatives (List4)
4931 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4932 -- From_Conditional_Expression (Flag1-Sem)
4934 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4935 -- followed by a statement, and this is true in the tree even in Ada
4936 -- 2012 mode (the parser inserts a null statement marked with the flag
4937 -- Comes_From_Source False).
4939 -------------------------------------
4940 -- 5.4 Case Statement Alternative --
4941 -------------------------------------
4943 -- CASE_STATEMENT_ALTERNATIVE ::=
4944 -- when DISCRETE_CHOICE_LIST =>
4945 -- SEQUENCE_OF_STATEMENTS
4947 -- N_Case_Statement_Alternative
4948 -- Sloc points to WHEN
4949 -- Discrete_Choices (List4)
4950 -- Statements (List3)
4951 -- Has_SP_Choice (Flag15-Sem)
4953 -- Note: in the list of Discrete_Choices, the tree passed to the back
4954 -- end does not have choice entries corresponding to names of statically
4955 -- predicated subtypes. Such entries are always expanded out to the list
4956 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4957 -- mode does not have this expansion, and has the original choices.
4959 -------------------------
4960 -- 5.5 Loop Statement --
4961 -------------------------
4963 -- LOOP_STATEMENT ::=
4964 -- [loop_STATEMENT_IDENTIFIER :]
4965 -- [ITERATION_SCHEME] loop
4966 -- SEQUENCE_OF_STATEMENTS
4967 -- end loop [loop_IDENTIFIER];
4969 -- Note: The occurrence of a loop label is not a defining identifier
4970 -- but rather a referencing occurrence. The defining occurrence is in
4971 -- the implicit label declaration which occurs in the innermost
4972 -- enclosing block.
4974 -- Note: there is always a loop statement identifier present in the
4975 -- tree, even if none was given in the source. In the case where no loop
4976 -- identifier is given in the source, the parser creates a name of the
4977 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4978 -- that the loop names created in this manner do not conflict with any
4979 -- user defined identifiers), and the flag Has_Created_Identifier is set
4980 -- to True. The only exception to the rule that all loop statement nodes
4981 -- have identifiers occurs for loops constructed by the expander, and
4982 -- the semantic analyzer will create and supply dummy loop identifiers
4983 -- in these cases.
4985 -- N_Loop_Statement
4986 -- Sloc points to LOOP
4987 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4988 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4989 -- Statements (List3)
4990 -- End_Label (Node4)
4991 -- Has_Created_Identifier (Flag15)
4992 -- Is_Null_Loop (Flag16)
4993 -- Suppress_Loop_Warnings (Flag17)
4995 -- Note: the parser fills in the Identifier field if there is an
4996 -- explicit loop identifier. Otherwise the parser leaves this field
4997 -- set to Empty, and then the semantic processing for a loop statement
4998 -- creates an identifier, setting the Has_Created_Identifier flag to
4999 -- True. So after semantic analysis, the Identifier is always set,
5000 -- referencing an identifier whose entity has an Ekind of E_Loop.
5002 ---------------------------
5003 -- 5.5 Iteration Scheme --
5004 ---------------------------
5006 -- ITERATION_SCHEME ::=
5007 -- while CONDITION
5008 -- | for LOOP_PARAMETER_SPECIFICATION
5009 -- | for ITERATOR_SPECIFICATION
5011 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
5012 -- is present at a time, in which case the other one is empty. Both are
5013 -- empty in the case of a WHILE loop.
5015 -- Gigi restriction: The expander ensures that the type of the Condition
5016 -- field is always Standard.Boolean, even if the type in the source is
5017 -- some non-standard boolean type.
5019 -- N_Iteration_Scheme
5020 -- Sloc points to WHILE or FOR
5021 -- Condition (Node1) (set to Empty if FOR case)
5022 -- Condition_Actions (List3-Sem)
5023 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
5024 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
5026 ---------------------------------------
5027 -- 5.5 Loop Parameter Specification --
5028 ---------------------------------------
5030 -- LOOP_PARAMETER_SPECIFICATION ::=
5031 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
5033 -- N_Loop_Parameter_Specification
5034 -- Sloc points to first identifier
5035 -- Defining_Identifier (Node1)
5036 -- Reverse_Present (Flag15)
5037 -- Discrete_Subtype_Definition (Node4)
5039 -----------------------------------
5040 -- 5.5.1 Iterator Specification --
5041 -----------------------------------
5043 -- ITERATOR_SPECIFICATION ::=
5044 -- DEFINING_IDENTIFIER in [reverse] NAME
5045 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5047 -- N_Iterator_Specification
5048 -- Sloc points to defining identifier
5049 -- Defining_Identifier (Node1)
5050 -- Name (Node2)
5051 -- Reverse_Present (Flag15)
5052 -- Of_Present (Flag16)
5053 -- Subtype_Indication (Node5)
5055 -- Note: The Of_Present flag distinguishes the two forms
5057 --------------------------
5058 -- 5.6 Block Statement --
5059 --------------------------
5061 -- BLOCK_STATEMENT ::=
5062 -- [block_STATEMENT_IDENTIFIER:]
5063 -- [declare
5064 -- DECLARATIVE_PART]
5065 -- begin
5066 -- HANDLED_SEQUENCE_OF_STATEMENTS
5067 -- end [block_IDENTIFIER];
5069 -- Note that the occurrence of a block identifier is not a defining
5070 -- identifier, but rather a referencing occurrence. The defining
5071 -- occurrence is an E_Block entity declared by the implicit label
5072 -- declaration which occurs in the innermost enclosing block statement
5073 -- or body; the block identifier denotes that E_Block.
5075 -- For block statements that come from source code, there is always a
5076 -- block statement identifier present in the tree, denoting an E_Block.
5077 -- In the case where no block identifier is given in the source,
5078 -- the parser creates a name of the form B_n, where n is a decimal
5079 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5080 -- constructed by the expander usually have no identifier, and no
5081 -- corresponding entity.
5083 -- Note: the block statement created for an extended return statement
5084 -- has an entity, and this entity is an E_Return_Statement, rather than
5085 -- the usual E_Block.
5087 -- Note: Exception_Junk is set for the wrapping blocks created during
5088 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5090 -- Note: from a control flow viewpoint, a block statement defines an
5091 -- extended basic block, i.e. the entry of the block dominates every
5092 -- statement in the sequence. When generating new statements with
5093 -- exception handlers in the expander at the end of a sequence that
5094 -- comes from source code, it can be necessary to wrap them all in a
5095 -- block statement in order to expose the implicit control flow to
5096 -- gigi and thus prevent it from issuing bogus control flow warnings.
5098 -- N_Block_Statement
5099 -- Sloc points to DECLARE or BEGIN
5100 -- Identifier (Node1) block direct name (set to Empty if not present)
5101 -- Declarations (List2) (set to No_List if no DECLARE part)
5102 -- Handled_Statement_Sequence (Node4)
5103 -- Cleanup_Actions (List5-Sem)
5104 -- Is_Abort_Block (Flag4-Sem)
5105 -- Is_Task_Master (Flag5-Sem)
5106 -- Activation_Chain_Entity (Node3-Sem)
5107 -- Has_Created_Identifier (Flag15)
5108 -- Is_Task_Allocation_Block (Flag6)
5109 -- Is_Asynchronous_Call_Block (Flag7)
5110 -- Exception_Junk (Flag8-Sem)
5111 -- Is_Finalization_Wrapper (Flag9-Sem)
5113 -------------------------
5114 -- 5.7 Exit Statement --
5115 -------------------------
5117 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5119 -- Gigi restriction: The expander ensures that the type of the Condition
5120 -- field is always Standard.Boolean, even if the type in the source is
5121 -- some non-standard boolean type.
5123 -- N_Exit_Statement
5124 -- Sloc points to EXIT
5125 -- Name (Node2) (set to Empty if no loop name present)
5126 -- Condition (Node1) (set to Empty if no WHEN part present)
5127 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5129 -------------------------
5130 -- 5.9 Goto Statement --
5131 -------------------------
5133 -- GOTO_STATEMENT ::= goto label_NAME;
5135 -- N_Goto_Statement
5136 -- Sloc points to GOTO
5137 -- Name (Node2)
5138 -- Exception_Junk (Flag8-Sem)
5140 ---------------------------------
5141 -- 6.1 Subprogram Declaration --
5142 ---------------------------------
5144 -- SUBPROGRAM_DECLARATION ::=
5145 -- SUBPROGRAM_SPECIFICATION
5146 -- [ASPECT_SPECIFICATIONS];
5148 -- N_Subprogram_Declaration
5149 -- Sloc points to FUNCTION or PROCEDURE
5150 -- Specification (Node1)
5151 -- Body_To_Inline (Node3-Sem)
5152 -- Corresponding_Body (Node5-Sem)
5153 -- Parent_Spec (Node4-Sem)
5154 -- Is_Entry_Barrier_Function (Flag8-Sem)
5155 -- Is_Task_Body_Procedure (Flag1-Sem)
5157 ------------------------------------------
5158 -- 6.1 Abstract Subprogram Declaration --
5159 ------------------------------------------
5161 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5162 -- SUBPROGRAM_SPECIFICATION is abstract
5163 -- [ASPECT_SPECIFICATIONS];
5165 -- N_Abstract_Subprogram_Declaration
5166 -- Sloc points to ABSTRACT
5167 -- Specification (Node1)
5169 -----------------------------------
5170 -- 6.1 Subprogram Specification --
5171 -----------------------------------
5173 -- SUBPROGRAM_SPECIFICATION ::=
5174 -- [[not] overriding]
5175 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5176 -- | [[not] overriding]
5177 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5179 -- Note: there are no separate nodes for the profiles, instead the
5180 -- information appears directly in the following nodes.
5182 -- N_Function_Specification
5183 -- Sloc points to FUNCTION
5184 -- Defining_Unit_Name (Node1) (the designator)
5185 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5186 -- Null_Exclusion_Present (Flag11)
5187 -- Result_Definition (Node4) for result subtype
5188 -- Generic_Parent (Node5-Sem)
5189 -- Must_Override (Flag14) set if overriding indicator present
5190 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5192 -- N_Procedure_Specification
5193 -- Sloc points to PROCEDURE
5194 -- Defining_Unit_Name (Node1)
5195 -- Null_Statement (Node2-Sem) NULL statement for body, if Null_Present
5196 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5197 -- Generic_Parent (Node5-Sem)
5198 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5199 -- Must_Override (Flag14) set if overriding indicator present
5200 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5202 -- Note: overriding indicator is an Ada 2005 feature
5204 ---------------------
5205 -- 6.1 Designator --
5206 ---------------------
5208 -- DESIGNATOR ::=
5209 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5211 -- Designators that are simply identifiers or operator symbols appear
5212 -- directly in the tree in this form. The following node is used only
5213 -- in the case where the designator has a parent unit name component.
5215 -- N_Designator
5216 -- Sloc points to period
5217 -- Name (Node2) holds the parent unit name
5218 -- Identifier (Node1)
5220 -- Note: Name is always non-Empty, since this node is only used for the
5221 -- case where a parent library unit package name is present.
5223 -- Note that the identifier can also be an operator symbol here
5225 ------------------------------
5226 -- 6.1 Defining Designator --
5227 ------------------------------
5229 -- DEFINING_DESIGNATOR ::=
5230 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5232 -------------------------------------
5233 -- 6.1 Defining Program Unit Name --
5234 -------------------------------------
5236 -- DEFINING_PROGRAM_UNIT_NAME ::=
5237 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5239 -- The parent unit name is present only in the case of a child unit name
5240 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5241 -- at scope level one). If no such name is present, the defining program
5242 -- unit name is represented simply as the defining identifier. In the
5243 -- child unit case, the following node is used to represent the child
5244 -- unit name.
5246 -- N_Defining_Program_Unit_Name
5247 -- Sloc points to period
5248 -- Name (Node2) holds the parent unit name
5249 -- Defining_Identifier (Node1)
5251 -- Note: Name is always non-Empty, since this node is only used for the
5252 -- case where a parent unit name is present.
5254 --------------------------
5255 -- 6.1 Operator Symbol --
5256 --------------------------
5258 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5260 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5261 -- the corresponding fields of an N_Character_Literal node. This allows
5262 -- easy conversion of the operator symbol node into a character literal
5263 -- node in the case where a string constant of the form of an operator
5264 -- symbol is scanned out as such, but turns out semantically to be a
5265 -- string literal that is not an operator. For details see Sinfo.CN.
5266 -- Change_Operator_Symbol_To_String_Literal.
5268 -- N_Operator_Symbol
5269 -- Sloc points to literal
5270 -- Chars (Name1) contains the Name_Id for the operator symbol
5271 -- Strval (Str3) Id of string value. This is used if the operator
5272 -- symbol turns out to be a normal string after all.
5273 -- Entity (Node4-Sem)
5274 -- Associated_Node (Node4-Sem)
5275 -- Has_Private_View (Flag11-Sem) set in generic units.
5276 -- Etype (Node5-Sem)
5278 -- Note: the Strval field may be set to No_String for generated
5279 -- operator symbols that are known not to be string literals
5280 -- semantically.
5282 -----------------------------------
5283 -- 6.1 Defining Operator Symbol --
5284 -----------------------------------
5286 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5288 -- A defining operator symbol is an entity, which has additional
5289 -- fields depending on the setting of the Ekind field. These
5290 -- additional fields are defined (and access subprograms declared)
5291 -- in package Einfo.
5293 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5294 -- are deliberately layed out to match the layout of fields in an
5295 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5296 -- an operator symbol node into a defining operator symbol node.
5297 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5298 -- for further details.
5300 -- N_Defining_Operator_Symbol
5301 -- Sloc points to literal
5302 -- Chars (Name1) contains the Name_Id for the operator symbol
5303 -- Next_Entity (Node2-Sem)
5304 -- Scope (Node3-Sem)
5305 -- Etype (Node5-Sem)
5307 ----------------------------
5308 -- 6.1 Parameter Profile --
5309 ----------------------------
5311 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5313 ---------------------------------------
5314 -- 6.1 Parameter and Result Profile --
5315 ---------------------------------------
5317 -- PARAMETER_AND_RESULT_PROFILE ::=
5318 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5319 -- | [FORMAL_PART] return ACCESS_DEFINITION
5321 -- There is no explicit node in the tree for a parameter and result
5322 -- profile. Instead the information appears directly in the parent.
5324 ----------------------
5325 -- 6.1 Formal Part --
5326 ----------------------
5328 -- FORMAL_PART ::=
5329 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5331 ----------------------------------
5332 -- 6.1 Parameter Specification --
5333 ----------------------------------
5335 -- PARAMETER_SPECIFICATION ::=
5336 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5337 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5338 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5339 -- [:= DEFAULT_EXPRESSION]
5341 -- Although the syntax allows multiple identifiers in the list, the
5342 -- semantics is as though successive specifications were given with
5343 -- identical type definition and expression components. To simplify
5344 -- semantic processing, the parser represents a multiple declaration
5345 -- case as a sequence of single Specifications, using the More_Ids and
5346 -- Prev_Ids flags to preserve the original source form as described
5347 -- in the section on "Handling of Defining Identifier Lists".
5349 -- ALIASED can only be present in Ada 2012 mode
5351 -- N_Parameter_Specification
5352 -- Sloc points to first identifier
5353 -- Defining_Identifier (Node1)
5354 -- Aliased_Present (Flag4)
5355 -- In_Present (Flag15)
5356 -- Out_Present (Flag17)
5357 -- Null_Exclusion_Present (Flag11)
5358 -- Parameter_Type (Node2) subtype mark or access definition
5359 -- Expression (Node3) (set to Empty if no default expression present)
5360 -- Do_Accessibility_Check (Flag13-Sem)
5361 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5362 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5363 -- Default_Expression (Node5-Sem)
5365 ---------------
5366 -- 6.1 Mode --
5367 ---------------
5369 -- MODE ::= [in] | in out | out
5371 -- There is no explicit node in the tree for the Mode. Instead the
5372 -- In_Present and Out_Present flags are set in the parent node to
5373 -- record the presence of keywords specifying the mode.
5375 --------------------------
5376 -- 6.3 Subprogram Body --
5377 --------------------------
5379 -- SUBPROGRAM_BODY ::=
5380 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5381 -- DECLARATIVE_PART
5382 -- begin
5383 -- HANDLED_SEQUENCE_OF_STATEMENTS
5384 -- end [DESIGNATOR];
5386 -- N_Subprogram_Body
5387 -- Sloc points to FUNCTION or PROCEDURE
5388 -- Specification (Node1)
5389 -- Declarations (List2)
5390 -- Handled_Statement_Sequence (Node4)
5391 -- Activation_Chain_Entity (Node3-Sem)
5392 -- Corresponding_Spec (Node5-Sem)
5393 -- Acts_As_Spec (Flag4-Sem)
5394 -- Bad_Is_Detected (Flag15) used only by parser
5395 -- Do_Storage_Check (Flag17-Sem)
5396 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5397 -- Is_Entry_Barrier_Function (Flag8-Sem)
5398 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5399 -- Is_Task_Body_Procedure (Flag1-Sem)
5400 -- Is_Task_Master (Flag5-Sem)
5401 -- Was_Expression_Function (Flag18-Sem)
5402 -- Was_Originally_Stub (Flag13-Sem)
5404 -----------------------------------
5405 -- 6.4 Procedure Call Statement --
5406 -----------------------------------
5408 -- PROCEDURE_CALL_STATEMENT ::=
5409 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5411 -- Note: the reason that a procedure call has expression fields is that
5412 -- it semantically resembles an expression, e.g. overloading is allowed
5413 -- and a type is concocted for semantic processing purposes. Certain of
5414 -- these fields, such as Parens are not relevant, but it is easier to
5415 -- just supply all of them together.
5417 -- N_Procedure_Call_Statement
5418 -- Sloc points to first token of name or prefix
5419 -- Name (Node2) stores name or prefix
5420 -- Parameter_Associations (List3) (set to No_List if no
5421 -- actual parameter part)
5422 -- First_Named_Actual (Node4-Sem)
5423 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5424 -- Do_Tag_Check (Flag13-Sem)
5425 -- No_Elaboration_Check (Flag14-Sem)
5426 -- ABE_Is_Certain (Flag18-Sem)
5427 -- plus fields for expression
5429 -- If any IN parameter requires a range check, then the corresponding
5430 -- argument expression has the Do_Range_Check flag set, and the range
5431 -- check is done against the formal type. Note that this argument
5432 -- expression may appear directly in the Parameter_Associations list,
5433 -- or may be a descendant of an N_Parameter_Association node that
5434 -- appears in this list.
5436 ------------------------
5437 -- 6.4 Function Call --
5438 ------------------------
5440 -- FUNCTION_CALL ::=
5441 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5443 -- Note: the parser may generate an indexed component node or simply
5444 -- a name node instead of a function call node. The semantic pass must
5445 -- correct this misidentification.
5447 -- N_Function_Call
5448 -- Sloc points to first token of name or prefix
5449 -- Name (Node2) stores name or prefix
5450 -- Parameter_Associations (List3) (set to No_List if no
5451 -- actual parameter part)
5452 -- First_Named_Actual (Node4-Sem)
5453 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5454 -- No_Side_Effect_Removal (Flag1-Sem)
5455 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5456 -- Do_Tag_Check (Flag13-Sem)
5457 -- No_Elaboration_Check (Flag14-Sem)
5458 -- ABE_Is_Certain (Flag18-Sem)
5459 -- plus fields for expression
5461 --------------------------------
5462 -- 6.4 Actual Parameter Part --
5463 --------------------------------
5465 -- ACTUAL_PARAMETER_PART ::=
5466 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5468 --------------------------------
5469 -- 6.4 Parameter Association --
5470 --------------------------------
5472 -- PARAMETER_ASSOCIATION ::=
5473 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5475 -- Note: the N_Parameter_Association node is built only if a formal
5476 -- parameter selector name is present, otherwise the parameter
5477 -- association appears in the tree simply as the node for the
5478 -- explicit actual parameter.
5480 -- N_Parameter_Association
5481 -- Sloc points to formal parameter
5482 -- Selector_Name (Node2) (always non-Empty)
5483 -- Explicit_Actual_Parameter (Node3)
5484 -- Next_Named_Actual (Node4-Sem)
5485 -- Is_Accessibility_Actual (Flag13-Sem)
5487 ---------------------------
5488 -- 6.4 Actual Parameter --
5489 ---------------------------
5491 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5493 ---------------------------
5494 -- 6.5 Return Statement --
5495 ---------------------------
5497 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5499 -- EXTENDED_RETURN_STATEMENT ::=
5500 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5501 -- [:= EXPRESSION] [do
5502 -- HANDLED_SEQUENCE_OF_STATEMENTS
5503 -- end return];
5505 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5507 -- The term "return statement" is defined in 6.5 to mean either a
5508 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5509 -- the use of this term, since it used to mean someting else in earlier
5510 -- versions of Ada.
5512 -- N_Simple_Return_Statement
5513 -- Sloc points to RETURN
5514 -- Return_Statement_Entity (Node5-Sem)
5515 -- Expression (Node3) (set to Empty if no expression present)
5516 -- Storage_Pool (Node1-Sem)
5517 -- Procedure_To_Call (Node2-Sem)
5518 -- Do_Tag_Check (Flag13-Sem)
5519 -- By_Ref (Flag5-Sem)
5520 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5522 -- Note: Return_Statement_Entity points to an E_Return_Statement
5524 -- If a range check is required, then Do_Range_Check is set on the
5525 -- Expression. The check is against the return subtype of the function.
5527 -- N_Extended_Return_Statement
5528 -- Sloc points to RETURN
5529 -- Return_Statement_Entity (Node5-Sem)
5530 -- Return_Object_Declarations (List3)
5531 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5532 -- Storage_Pool (Node1-Sem)
5533 -- Procedure_To_Call (Node2-Sem)
5534 -- Do_Tag_Check (Flag13-Sem)
5535 -- By_Ref (Flag5-Sem)
5537 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5539 -- Note that Return_Object_Declarations is a list containing the
5540 -- N_Object_Declaration -- see comment on this field above.
5542 -- The declared object will have Is_Return_Object = True.
5544 -- There is no such syntactic category as return_object_declaration
5545 -- in the RM. Return_Object_Declarations represents this portion of
5546 -- the syntax for EXTENDED_RETURN_STATEMENT:
5547 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5548 -- [:= EXPRESSION]
5550 -- There are two entities associated with an extended_return_statement:
5551 -- the Return_Statement_Entity represents the statement itself,
5552 -- and the Defining_Identifier of the Object_Declaration in
5553 -- Return_Object_Declarations represents the object being
5554 -- returned. N_Simple_Return_Statement has only the former.
5556 ------------------------------
5557 -- 6.8 Expression Function --
5558 ------------------------------
5560 -- EXPRESSION_FUNCTION ::=
5561 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5562 -- [ASPECT_SPECIFICATIONS];
5564 -- N_Expression_Function
5565 -- Sloc points to FUNCTION
5566 -- Specification (Node1)
5567 -- Expression (Node3)
5568 -- Corresponding_Spec (Node5-Sem)
5570 ------------------------------
5571 -- 7.1 Package Declaration --
5572 ------------------------------
5574 -- PACKAGE_DECLARATION ::=
5575 -- PACKAGE_SPECIFICATION;
5577 -- Note: the activation chain entity for a package spec is used for
5578 -- all tasks declared in the package spec, or in the package body.
5580 -- N_Package_Declaration
5581 -- Sloc points to PACKAGE
5582 -- Specification (Node1)
5583 -- Corresponding_Body (Node5-Sem)
5584 -- Parent_Spec (Node4-Sem)
5585 -- Activation_Chain_Entity (Node3-Sem)
5587 --------------------------------
5588 -- 7.1 Package Specification --
5589 --------------------------------
5591 -- PACKAGE_SPECIFICATION ::=
5592 -- package DEFINING_PROGRAM_UNIT_NAME
5593 -- [ASPECT_SPECIFICATIONS]
5594 -- is
5595 -- {BASIC_DECLARATIVE_ITEM}
5596 -- [private
5597 -- {BASIC_DECLARATIVE_ITEM}]
5598 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5600 -- N_Package_Specification
5601 -- Sloc points to PACKAGE
5602 -- Defining_Unit_Name (Node1)
5603 -- Visible_Declarations (List2)
5604 -- Private_Declarations (List3) (set to No_List if no private
5605 -- part present)
5606 -- End_Label (Node4)
5607 -- Generic_Parent (Node5-Sem)
5608 -- Limited_View_Installed (Flag18-Sem)
5610 -----------------------
5611 -- 7.1 Package Body --
5612 -----------------------
5614 -- PACKAGE_BODY ::=
5615 -- package body DEFINING_PROGRAM_UNIT_NAME
5616 -- [ASPECT_SPECIFICATIONS]
5617 -- is
5618 -- DECLARATIVE_PART
5619 -- [begin
5620 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5621 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5623 -- N_Package_Body
5624 -- Sloc points to PACKAGE
5625 -- Defining_Unit_Name (Node1)
5626 -- Declarations (List2)
5627 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5628 -- Corresponding_Spec (Node5-Sem)
5629 -- Was_Originally_Stub (Flag13-Sem)
5631 -- Note: if a source level package does not contain a handled sequence
5632 -- of statements, then the parser supplies a dummy one with a null
5633 -- sequence of statements. Comes_From_Source will be False in this
5634 -- constructed sequence. The reason we need this is for the End_Label
5635 -- field in the HSS.
5637 -----------------------------------
5638 -- 7.4 Private Type Declaration --
5639 -----------------------------------
5641 -- PRIVATE_TYPE_DECLARATION ::=
5642 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5643 -- is [[abstract] tagged] [limited] private
5644 -- [ASPECT_SPECIFICATIONS];
5646 -- Note: TAGGED is not permitted in Ada 83 mode
5648 -- N_Private_Type_Declaration
5649 -- Sloc points to TYPE
5650 -- Defining_Identifier (Node1)
5651 -- Discriminant_Specifications (List4) (set to No_List if no
5652 -- discriminant part)
5653 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5654 -- Abstract_Present (Flag4)
5655 -- Tagged_Present (Flag15)
5656 -- Limited_Present (Flag17)
5658 ----------------------------------------
5659 -- 7.4 Private Extension Declaration --
5660 ----------------------------------------
5662 -- PRIVATE_EXTENSION_DECLARATION ::=
5663 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5664 -- [abstract] [limited | synchronized]
5665 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5666 -- with private [ASPECT_SPECIFICATIONS];
5668 -- Note: LIMITED, and private extension declarations are not allowed
5669 -- in Ada 83 mode.
5671 -- N_Private_Extension_Declaration
5672 -- Sloc points to TYPE
5673 -- Defining_Identifier (Node1)
5674 -- Uninitialized_Variable (Node3-Sem)
5675 -- Discriminant_Specifications (List4) (set to No_List if no
5676 -- discriminant part)
5677 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5678 -- Abstract_Present (Flag4)
5679 -- Limited_Present (Flag17)
5680 -- Synchronized_Present (Flag7)
5681 -- Subtype_Indication (Node5)
5682 -- Interface_List (List2) (set to No_List if none)
5684 ---------------------
5685 -- 8.4 Use Clause --
5686 ---------------------
5688 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5690 -----------------------------
5691 -- 8.4 Use Package Clause --
5692 -----------------------------
5694 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5696 -- N_Use_Package_Clause
5697 -- Sloc points to USE
5698 -- Names (List2)
5699 -- Next_Use_Clause (Node3-Sem)
5700 -- Hidden_By_Use_Clause (Elist4-Sem)
5702 --------------------------
5703 -- 8.4 Use Type Clause --
5704 --------------------------
5706 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5708 -- Note: use type clause is not permitted in Ada 83 mode
5710 -- Note: the ALL keyword can appear only in Ada 2012 mode
5712 -- N_Use_Type_Clause
5713 -- Sloc points to USE
5714 -- Subtype_Marks (List2)
5715 -- Next_Use_Clause (Node3-Sem)
5716 -- Hidden_By_Use_Clause (Elist4-Sem)
5717 -- Used_Operations (Elist5-Sem)
5718 -- All_Present (Flag15)
5720 -------------------------------
5721 -- 8.5 Renaming Declaration --
5722 -------------------------------
5724 -- RENAMING_DECLARATION ::=
5725 -- OBJECT_RENAMING_DECLARATION
5726 -- | EXCEPTION_RENAMING_DECLARATION
5727 -- | PACKAGE_RENAMING_DECLARATION
5728 -- | SUBPROGRAM_RENAMING_DECLARATION
5729 -- | GENERIC_RENAMING_DECLARATION
5731 --------------------------------------
5732 -- 8.5 Object Renaming Declaration --
5733 --------------------------------------
5735 -- OBJECT_RENAMING_DECLARATION ::=
5736 -- DEFINING_IDENTIFIER :
5737 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5738 -- [ASPECT_SPECIFICATIONS];
5739 -- | DEFINING_IDENTIFIER :
5740 -- ACCESS_DEFINITION renames object_NAME
5741 -- [ASPECT_SPECIFICATIONS];
5743 -- Note: Access_Definition is an optional field that gives support to
5744 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5745 -- Subtype_Indication field or else the Access_Definition field.
5747 -- N_Object_Renaming_Declaration
5748 -- Sloc points to first identifier
5749 -- Defining_Identifier (Node1)
5750 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5751 -- Subtype_Mark (Node4) (set to Empty if not present)
5752 -- Access_Definition (Node3) (set to Empty if not present)
5753 -- Name (Node2)
5754 -- Corresponding_Generic_Association (Node5-Sem)
5756 -----------------------------------------
5757 -- 8.5 Exception Renaming Declaration --
5758 -----------------------------------------
5760 -- EXCEPTION_RENAMING_DECLARATION ::=
5761 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5762 -- [ASPECT_SPECIFICATIONS];
5764 -- N_Exception_Renaming_Declaration
5765 -- Sloc points to first identifier
5766 -- Defining_Identifier (Node1)
5767 -- Name (Node2)
5769 ---------------------------------------
5770 -- 8.5 Package Renaming Declaration --
5771 ---------------------------------------
5773 -- PACKAGE_RENAMING_DECLARATION ::=
5774 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5775 -- [ASPECT_SPECIFICATIONS];
5777 -- N_Package_Renaming_Declaration
5778 -- Sloc points to PACKAGE
5779 -- Defining_Unit_Name (Node1)
5780 -- Name (Node2)
5781 -- Parent_Spec (Node4-Sem)
5783 ------------------------------------------
5784 -- 8.5 Subprogram Renaming Declaration --
5785 ------------------------------------------
5787 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5788 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5789 -- [ASPECT_SPECIFICATIONS];
5791 -- N_Subprogram_Renaming_Declaration
5792 -- Sloc points to RENAMES
5793 -- Specification (Node1)
5794 -- Name (Node2)
5795 -- Parent_Spec (Node4-Sem)
5796 -- Corresponding_Spec (Node5-Sem)
5797 -- Corresponding_Formal_Spec (Node3-Sem)
5798 -- From_Default (Flag6-Sem)
5800 -----------------------------------------
5801 -- 8.5.5 Generic Renaming Declaration --
5802 -----------------------------------------
5804 -- GENERIC_RENAMING_DECLARATION ::=
5805 -- generic package DEFINING_PROGRAM_UNIT_NAME
5806 -- renames generic_package_NAME
5807 -- [ASPECT_SPECIFICATIONS];
5808 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5809 -- renames generic_procedure_NAME
5810 -- [ASPECT_SPECIFICATIONS];
5811 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5812 -- renames generic_function_NAME
5813 -- [ASPECT_SPECIFICATIONS];
5815 -- N_Generic_Package_Renaming_Declaration
5816 -- Sloc points to GENERIC
5817 -- Defining_Unit_Name (Node1)
5818 -- Name (Node2)
5819 -- Parent_Spec (Node4-Sem)
5821 -- N_Generic_Procedure_Renaming_Declaration
5822 -- Sloc points to GENERIC
5823 -- Defining_Unit_Name (Node1)
5824 -- Name (Node2)
5825 -- Parent_Spec (Node4-Sem)
5827 -- N_Generic_Function_Renaming_Declaration
5828 -- Sloc points to GENERIC
5829 -- Defining_Unit_Name (Node1)
5830 -- Name (Node2)
5831 -- Parent_Spec (Node4-Sem)
5833 --------------------------------
5834 -- 9.1 Task Type Declaration --
5835 --------------------------------
5837 -- TASK_TYPE_DECLARATION ::=
5838 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5839 -- [ASPECT_SPECIFICATIONS]
5840 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5842 -- N_Task_Type_Declaration
5843 -- Sloc points to TASK
5844 -- Defining_Identifier (Node1)
5845 -- Discriminant_Specifications (List4) (set to No_List if no
5846 -- discriminant part)
5847 -- Interface_List (List2) (set to No_List if none)
5848 -- Task_Definition (Node3) (set to Empty if not present)
5849 -- Corresponding_Body (Node5-Sem)
5851 ----------------------------------
5852 -- 9.1 Single Task Declaration --
5853 ----------------------------------
5855 -- SINGLE_TASK_DECLARATION ::=
5856 -- task DEFINING_IDENTIFIER
5857 -- [ASPECT_SPECIFICATIONS]
5858 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5860 -- N_Single_Task_Declaration
5861 -- Sloc points to TASK
5862 -- Defining_Identifier (Node1)
5863 -- Interface_List (List2) (set to No_List if none)
5864 -- Task_Definition (Node3) (set to Empty if not present)
5866 --------------------------
5867 -- 9.1 Task Definition --
5868 --------------------------
5870 -- TASK_DEFINITION ::=
5871 -- {TASK_ITEM}
5872 -- [private
5873 -- {TASK_ITEM}]
5874 -- end [task_IDENTIFIER]
5876 -- Note: as a result of semantic analysis, the list of task items can
5877 -- include implicit type declarations resulting from entry families.
5879 -- N_Task_Definition
5880 -- Sloc points to first token of task definition
5881 -- Visible_Declarations (List2)
5882 -- Private_Declarations (List3) (set to No_List if no private part)
5883 -- End_Label (Node4)
5884 -- Has_Storage_Size_Pragma (Flag5-Sem)
5885 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5887 --------------------
5888 -- 9.1 Task Item --
5889 --------------------
5891 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5893 --------------------
5894 -- 9.1 Task Body --
5895 --------------------
5897 -- TASK_BODY ::=
5898 -- task body task_DEFINING_IDENTIFIER
5899 -- [ASPECT_SPECIFICATIONS]
5900 -- is
5901 -- DECLARATIVE_PART
5902 -- begin
5903 -- HANDLED_SEQUENCE_OF_STATEMENTS
5904 -- end [task_IDENTIFIER];
5906 -- Gigi restriction: This node never appears
5908 -- N_Task_Body
5909 -- Sloc points to TASK
5910 -- Defining_Identifier (Node1)
5911 -- Declarations (List2)
5912 -- Handled_Statement_Sequence (Node4)
5913 -- Is_Task_Master (Flag5-Sem)
5914 -- Activation_Chain_Entity (Node3-Sem)
5915 -- Corresponding_Spec (Node5-Sem)
5916 -- Was_Originally_Stub (Flag13-Sem)
5918 -------------------------------------
5919 -- 9.4 Protected Type Declaration --
5920 -------------------------------------
5922 -- PROTECTED_TYPE_DECLARATION ::=
5923 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5924 -- [ASPECT_SPECIFICATIONS]
5925 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5927 -- Note: protected type declarations are not permitted in Ada 83 mode
5929 -- N_Protected_Type_Declaration
5930 -- Sloc points to PROTECTED
5931 -- Defining_Identifier (Node1)
5932 -- Discriminant_Specifications (List4) (set to No_List if no
5933 -- discriminant part)
5934 -- Interface_List (List2) (set to No_List if none)
5935 -- Protected_Definition (Node3)
5936 -- Corresponding_Body (Node5-Sem)
5938 ---------------------------------------
5939 -- 9.4 Single Protected Declaration --
5940 ---------------------------------------
5942 -- SINGLE_PROTECTED_DECLARATION ::=
5943 -- protected DEFINING_IDENTIFIER
5944 -- [ASPECT_SPECIFICATIONS]
5945 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5947 -- Note: single protected declarations are not allowed in Ada 83 mode
5949 -- N_Single_Protected_Declaration
5950 -- Sloc points to PROTECTED
5951 -- Defining_Identifier (Node1)
5952 -- Interface_List (List2) (set to No_List if none)
5953 -- Protected_Definition (Node3)
5955 -------------------------------
5956 -- 9.4 Protected Definition --
5957 -------------------------------
5959 -- PROTECTED_DEFINITION ::=
5960 -- {PROTECTED_OPERATION_DECLARATION}
5961 -- [private
5962 -- {PROTECTED_ELEMENT_DECLARATION}]
5963 -- end [protected_IDENTIFIER]
5965 -- N_Protected_Definition
5966 -- Sloc points to first token of protected definition
5967 -- Visible_Declarations (List2)
5968 -- Private_Declarations (List3) (set to No_List if no private part)
5969 -- End_Label (Node4)
5971 ------------------------------------------
5972 -- 9.4 Protected Operation Declaration --
5973 ------------------------------------------
5975 -- PROTECTED_OPERATION_DECLARATION ::=
5976 -- SUBPROGRAM_DECLARATION
5977 -- | ENTRY_DECLARATION
5978 -- | REPRESENTATION_CLAUSE
5980 ----------------------------------------
5981 -- 9.4 Protected Element Declaration --
5982 ----------------------------------------
5984 -- PROTECTED_ELEMENT_DECLARATION ::=
5985 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5987 -------------------------
5988 -- 9.4 Protected Body --
5989 -------------------------
5991 -- PROTECTED_BODY ::=
5992 -- protected body DEFINING_IDENTIFIER
5993 -- [ASPECT_SPECIFICATIONS];
5994 -- is
5995 -- {PROTECTED_OPERATION_ITEM}
5996 -- end [protected_IDENTIFIER];
5998 -- Note: protected bodies are not allowed in Ada 83 mode
6000 -- Gigi restriction: This node never appears
6002 -- N_Protected_Body
6003 -- Sloc points to PROTECTED
6004 -- Defining_Identifier (Node1)
6005 -- Declarations (List2) protected operation items (and pragmas)
6006 -- End_Label (Node4)
6007 -- Corresponding_Spec (Node5-Sem)
6008 -- Was_Originally_Stub (Flag13-Sem)
6010 -----------------------------------
6011 -- 9.4 Protected Operation Item --
6012 -----------------------------------
6014 -- PROTECTED_OPERATION_ITEM ::=
6015 -- SUBPROGRAM_DECLARATION
6016 -- | SUBPROGRAM_BODY
6017 -- | ENTRY_BODY
6018 -- | REPRESENTATION_CLAUSE
6020 ------------------------------
6021 -- 9.5.2 Entry Declaration --
6022 ------------------------------
6024 -- ENTRY_DECLARATION ::=
6025 -- [[not] overriding]
6026 -- entry DEFINING_IDENTIFIER
6027 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
6028 -- [ASPECT_SPECIFICATIONS];
6030 -- N_Entry_Declaration
6031 -- Sloc points to ENTRY
6032 -- Defining_Identifier (Node1)
6033 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
6034 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6035 -- Corresponding_Body (Node5-Sem)
6036 -- Must_Override (Flag14) set if overriding indicator present
6037 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6039 -- Note: overriding indicator is an Ada 2005 feature
6041 -----------------------------
6042 -- 9.5.2 Accept statement --
6043 -----------------------------
6045 -- ACCEPT_STATEMENT ::=
6046 -- accept entry_DIRECT_NAME
6047 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6048 -- HANDLED_SEQUENCE_OF_STATEMENTS
6049 -- end [entry_IDENTIFIER]];
6051 -- Gigi restriction: This node never appears
6053 -- Note: there are no explicit declarations allowed in an accept
6054 -- statement. However, the implicit declarations for any statement
6055 -- identifiers (labels and block/loop identifiers) are declarations
6056 -- that belong logically to the accept statement, and that is why
6057 -- there is a Declarations field in this node.
6059 -- N_Accept_Statement
6060 -- Sloc points to ACCEPT
6061 -- Entry_Direct_Name (Node1)
6062 -- Entry_Index (Node5) (set to Empty if not present)
6063 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6064 -- Handled_Statement_Sequence (Node4)
6065 -- Declarations (List2) (set to No_List if no declarations)
6067 ------------------------
6068 -- 9.5.2 Entry Index --
6069 ------------------------
6071 -- ENTRY_INDEX ::= EXPRESSION
6073 -----------------------
6074 -- 9.5.2 Entry Body --
6075 -----------------------
6077 -- ENTRY_BODY ::=
6078 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6079 -- DECLARATIVE_PART
6080 -- begin
6081 -- HANDLED_SEQUENCE_OF_STATEMENTS
6082 -- end [entry_IDENTIFIER];
6084 -- ENTRY_BARRIER ::= when CONDITION
6086 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6087 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6088 -- too full (it would otherwise have too many fields)
6090 -- Gigi restriction: This node never appears
6092 -- N_Entry_Body
6093 -- Sloc points to ENTRY
6094 -- Defining_Identifier (Node1)
6095 -- Entry_Body_Formal_Part (Node5)
6096 -- Declarations (List2)
6097 -- Handled_Statement_Sequence (Node4)
6098 -- Activation_Chain_Entity (Node3-Sem)
6100 -----------------------------------
6101 -- 9.5.2 Entry Body Formal Part --
6102 -----------------------------------
6104 -- ENTRY_BODY_FORMAL_PART ::=
6105 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6107 -- Note that an entry body formal part node is present even if it is
6108 -- empty. This reflects the grammar, in which it is the components of
6109 -- the entry body formal part that are optional, not the entry body
6110 -- formal part itself. Also this means that the barrier condition
6111 -- always has somewhere to be stored.
6113 -- Gigi restriction: This node never appears
6115 -- N_Entry_Body_Formal_Part
6116 -- Sloc points to first token
6117 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6118 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6119 -- Condition (Node1) from entry barrier of entry body
6121 --------------------------
6122 -- 9.5.2 Entry Barrier --
6123 --------------------------
6125 -- ENTRY_BARRIER ::= when CONDITION
6127 --------------------------------------
6128 -- 9.5.2 Entry Index Specification --
6129 --------------------------------------
6131 -- ENTRY_INDEX_SPECIFICATION ::=
6132 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6134 -- Gigi restriction: This node never appears
6136 -- N_Entry_Index_Specification
6137 -- Sloc points to FOR
6138 -- Defining_Identifier (Node1)
6139 -- Discrete_Subtype_Definition (Node4)
6141 ---------------------------------
6142 -- 9.5.3 Entry Call Statement --
6143 ---------------------------------
6145 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6147 -- The parser may generate a procedure call for this construct. The
6148 -- semantic pass must correct this misidentification where needed.
6150 -- Gigi restriction: This node never appears
6152 -- N_Entry_Call_Statement
6153 -- Sloc points to first token of name
6154 -- Name (Node2)
6155 -- Parameter_Associations (List3) (set to No_List if no
6156 -- actual parameter part)
6157 -- First_Named_Actual (Node4-Sem)
6159 ------------------------------
6160 -- 9.5.4 Requeue Statement --
6161 ------------------------------
6163 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6165 -- Note: requeue statements are not permitted in Ada 83 mode
6167 -- Gigi restriction: This node never appears
6169 -- N_Requeue_Statement
6170 -- Sloc points to REQUEUE
6171 -- Name (Node2)
6172 -- Abort_Present (Flag15)
6174 --------------------------
6175 -- 9.6 Delay Statement --
6176 --------------------------
6178 -- DELAY_STATEMENT ::=
6179 -- DELAY_UNTIL_STATEMENT
6180 -- | DELAY_RELATIVE_STATEMENT
6182 --------------------------------
6183 -- 9.6 Delay Until Statement --
6184 --------------------------------
6186 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6188 -- Note: delay until statements are not permitted in Ada 83 mode
6190 -- Gigi restriction: This node never appears
6192 -- N_Delay_Until_Statement
6193 -- Sloc points to DELAY
6194 -- Expression (Node3)
6196 -----------------------------------
6197 -- 9.6 Delay Relative Statement --
6198 -----------------------------------
6200 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6202 -- Gigi restriction: This node never appears
6204 -- N_Delay_Relative_Statement
6205 -- Sloc points to DELAY
6206 -- Expression (Node3)
6208 ---------------------------
6209 -- 9.7 Select Statement --
6210 ---------------------------
6212 -- SELECT_STATEMENT ::=
6213 -- SELECTIVE_ACCEPT
6214 -- | TIMED_ENTRY_CALL
6215 -- | CONDITIONAL_ENTRY_CALL
6216 -- | ASYNCHRONOUS_SELECT
6218 -----------------------------
6219 -- 9.7.1 Selective Accept --
6220 -----------------------------
6222 -- SELECTIVE_ACCEPT ::=
6223 -- select
6224 -- [GUARD]
6225 -- SELECT_ALTERNATIVE
6226 -- {or
6227 -- [GUARD]
6228 -- SELECT_ALTERNATIVE}
6229 -- [else
6230 -- SEQUENCE_OF_STATEMENTS]
6231 -- end select;
6233 -- Gigi restriction: This node never appears
6235 -- Note: the guard expression, if present, appears in the node for
6236 -- the select alternative.
6238 -- N_Selective_Accept
6239 -- Sloc points to SELECT
6240 -- Select_Alternatives (List1)
6241 -- Else_Statements (List4) (set to No_List if no else part)
6243 ------------------
6244 -- 9.7.1 Guard --
6245 ------------------
6247 -- GUARD ::= when CONDITION =>
6249 -- As noted above, the CONDITION that is part of a GUARD is included
6250 -- in the node for the select alternative for convenience.
6252 -------------------------------
6253 -- 9.7.1 Select Alternative --
6254 -------------------------------
6256 -- SELECT_ALTERNATIVE ::=
6257 -- ACCEPT_ALTERNATIVE
6258 -- | DELAY_ALTERNATIVE
6259 -- | TERMINATE_ALTERNATIVE
6261 -------------------------------
6262 -- 9.7.1 Accept Alternative --
6263 -------------------------------
6265 -- ACCEPT_ALTERNATIVE ::=
6266 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6268 -- Gigi restriction: This node never appears
6270 -- N_Accept_Alternative
6271 -- Sloc points to ACCEPT
6272 -- Accept_Statement (Node2)
6273 -- Condition (Node1) from the guard (set to Empty if no guard present)
6274 -- Statements (List3) (set to Empty_List if no statements)
6275 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6276 -- Accept_Handler_Records (List5-Sem)
6278 ------------------------------
6279 -- 9.7.1 Delay Alternative --
6280 ------------------------------
6282 -- DELAY_ALTERNATIVE ::=
6283 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6285 -- Gigi restriction: This node never appears
6287 -- N_Delay_Alternative
6288 -- Sloc points to DELAY
6289 -- Delay_Statement (Node2)
6290 -- Condition (Node1) from the guard (set to Empty if no guard present)
6291 -- Statements (List3) (set to Empty_List if no statements)
6292 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6294 ----------------------------------
6295 -- 9.7.1 Terminate Alternative --
6296 ----------------------------------
6298 -- TERMINATE_ALTERNATIVE ::= terminate;
6300 -- Gigi restriction: This node never appears
6302 -- N_Terminate_Alternative
6303 -- Sloc points to TERMINATE
6304 -- Condition (Node1) from the guard (set to Empty if no guard present)
6305 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6306 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6308 -----------------------------
6309 -- 9.7.2 Timed Entry Call --
6310 -----------------------------
6312 -- TIMED_ENTRY_CALL ::=
6313 -- select
6314 -- ENTRY_CALL_ALTERNATIVE
6315 -- or
6316 -- DELAY_ALTERNATIVE
6317 -- end select;
6319 -- Gigi restriction: This node never appears
6321 -- N_Timed_Entry_Call
6322 -- Sloc points to SELECT
6323 -- Entry_Call_Alternative (Node1)
6324 -- Delay_Alternative (Node4)
6326 -----------------------------------
6327 -- 9.7.2 Entry Call Alternative --
6328 -----------------------------------
6330 -- ENTRY_CALL_ALTERNATIVE ::=
6331 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6333 -- PROCEDURE_OR_ENTRY_CALL ::=
6334 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6336 -- Gigi restriction: This node never appears
6338 -- N_Entry_Call_Alternative
6339 -- Sloc points to first token of entry call statement
6340 -- Entry_Call_Statement (Node1)
6341 -- Statements (List3) (set to Empty_List if no statements)
6342 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6344 -----------------------------------
6345 -- 9.7.3 Conditional Entry Call --
6346 -----------------------------------
6348 -- CONDITIONAL_ENTRY_CALL ::=
6349 -- select
6350 -- ENTRY_CALL_ALTERNATIVE
6351 -- else
6352 -- SEQUENCE_OF_STATEMENTS
6353 -- end select;
6355 -- Gigi restriction: This node never appears
6357 -- N_Conditional_Entry_Call
6358 -- Sloc points to SELECT
6359 -- Entry_Call_Alternative (Node1)
6360 -- Else_Statements (List4)
6362 --------------------------------
6363 -- 9.7.4 Asynchronous Select --
6364 --------------------------------
6366 -- ASYNCHRONOUS_SELECT ::=
6367 -- select
6368 -- TRIGGERING_ALTERNATIVE
6369 -- then abort
6370 -- ABORTABLE_PART
6371 -- end select;
6373 -- Note: asynchronous select is not permitted in Ada 83 mode
6375 -- Gigi restriction: This node never appears
6377 -- N_Asynchronous_Select
6378 -- Sloc points to SELECT
6379 -- Triggering_Alternative (Node1)
6380 -- Abortable_Part (Node2)
6382 -----------------------------------
6383 -- 9.7.4 Triggering Alternative --
6384 -----------------------------------
6386 -- TRIGGERING_ALTERNATIVE ::=
6387 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6389 -- Gigi restriction: This node never appears
6391 -- N_Triggering_Alternative
6392 -- Sloc points to first token of triggering statement
6393 -- Triggering_Statement (Node1)
6394 -- Statements (List3) (set to Empty_List if no statements)
6395 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6397 ---------------------------------
6398 -- 9.7.4 Triggering Statement --
6399 ---------------------------------
6401 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6403 ---------------------------
6404 -- 9.7.4 Abortable Part --
6405 ---------------------------
6407 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6409 -- Gigi restriction: This node never appears
6411 -- N_Abortable_Part
6412 -- Sloc points to ABORT
6413 -- Statements (List3)
6415 --------------------------
6416 -- 9.8 Abort Statement --
6417 --------------------------
6419 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6421 -- Gigi restriction: This node never appears
6423 -- N_Abort_Statement
6424 -- Sloc points to ABORT
6425 -- Names (List2)
6427 -------------------------
6428 -- 10.1.1 Compilation --
6429 -------------------------
6431 -- COMPILATION ::= {COMPILATION_UNIT}
6433 -- There is no explicit node in the tree for a compilation, since in
6434 -- general the compiler is processing only a single compilation unit
6435 -- at a time. It is possible to parse multiple units in syntax check
6436 -- only mode, but the trees are discarded in that case.
6438 ------------------------------
6439 -- 10.1.1 Compilation Unit --
6440 ------------------------------
6442 -- COMPILATION_UNIT ::=
6443 -- CONTEXT_CLAUSE LIBRARY_ITEM
6444 -- | CONTEXT_CLAUSE SUBUNIT
6446 -- The N_Compilation_Unit node itself represents the above syntax.
6447 -- However, there are two additional items not reflected in the above
6448 -- syntax. First we have the global declarations that are added by the
6449 -- code generator. These are outer level declarations (so they cannot
6450 -- be represented as being inside the units). An example is the wrapper
6451 -- subprograms that are created to do ABE checking. As always a list of
6452 -- declarations can contain actions as well (i.e. statements), and such
6453 -- statements are executed as part of the elaboration of the unit. Note
6454 -- that all such declarations are elaborated before the library unit.
6456 -- Similarly, certain actions need to be elaborated at the completion
6457 -- of elaboration of the library unit (notably the statement that sets
6458 -- the Boolean flag indicating that elaboration is complete).
6460 -- The third item not reflected in the syntax is pragmas that appear
6461 -- after the compilation unit. As always pragmas are a problem since
6462 -- they are not part of the formal syntax, but can be stuck into the
6463 -- source following a set of ad hoc rules, and we have to find an ad
6464 -- hoc way of sticking them into the tree. For pragmas that appear
6465 -- before the library unit, we just consider them to be part of the
6466 -- context clause, and pragmas can appear in the Context_Items list
6467 -- of the compilation unit. However, pragmas can also appear after
6468 -- the library item.
6470 -- To deal with all these problems, we create an auxiliary node for
6471 -- a compilation unit, referenced from the N_Compilation_Unit node,
6472 -- that contains these items.
6474 -- N_Compilation_Unit
6475 -- Sloc points to first token of defining unit name
6476 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6477 -- Context_Items (List1) context items and pragmas preceding unit
6478 -- Private_Present (Flag15) set if library unit has private keyword
6479 -- Unit (Node2) library item or subunit
6480 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6481 -- Has_No_Elaboration_Code (Flag17-Sem)
6482 -- Body_Required (Flag13-Sem) set for spec if body is required
6483 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6484 -- Context_Pending (Flag16-Sem)
6485 -- First_Inlined_Subprogram (Node3-Sem)
6486 -- Has_Pragma_Suppress_All (Flag14-Sem)
6488 -- N_Compilation_Unit_Aux
6489 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6490 -- Declarations (List2) (set to No_List if no global declarations)
6491 -- Actions (List1) (set to No_List if no actions)
6492 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6493 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6494 -- Default_Storage_Pool (Node3-Sem)
6496 --------------------------
6497 -- 10.1.1 Library Item --
6498 --------------------------
6500 -- LIBRARY_ITEM ::=
6501 -- [private] LIBRARY_UNIT_DECLARATION
6502 -- | LIBRARY_UNIT_BODY
6503 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6505 -- Note: PRIVATE is not allowed in Ada 83 mode
6507 -- There is no explicit node in the tree for library item, instead
6508 -- the declaration or body, and the flag for private if present,
6509 -- appear in the N_Compilation_Unit node.
6511 --------------------------------------
6512 -- 10.1.1 Library Unit Declaration --
6513 --------------------------------------
6515 -- LIBRARY_UNIT_DECLARATION ::=
6516 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6517 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6519 -----------------------------------------------
6520 -- 10.1.1 Library Unit Renaming Declaration --
6521 -----------------------------------------------
6523 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6524 -- PACKAGE_RENAMING_DECLARATION
6525 -- | GENERIC_RENAMING_DECLARATION
6526 -- | SUBPROGRAM_RENAMING_DECLARATION
6528 -------------------------------
6529 -- 10.1.1 Library unit body --
6530 -------------------------------
6532 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6534 ------------------------------
6535 -- 10.1.1 Parent Unit Name --
6536 ------------------------------
6538 -- PARENT_UNIT_NAME ::= NAME
6540 ----------------------------
6541 -- 10.1.2 Context clause --
6542 ----------------------------
6544 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6546 -- The context clause can include pragmas, and any pragmas that appear
6547 -- before the context clause proper (i.e. all configuration pragmas,
6548 -- also appear at the front of this list).
6550 --------------------------
6551 -- 10.1.2 Context_Item --
6552 --------------------------
6554 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6556 -------------------------
6557 -- 10.1.2 With clause --
6558 -------------------------
6560 -- WITH_CLAUSE ::=
6561 -- with library_unit_NAME {,library_unit_NAME};
6563 -- A separate With clause is built for each name, so that we have
6564 -- a Corresponding_Spec field for each with'ed spec. The flags
6565 -- First_Name and Last_Name are used to reconstruct the exact
6566 -- source form. When a list of names appears in one with clause,
6567 -- the first name in the list has First_Name set, and the last
6568 -- has Last_Name set. If the with clause has only one name, then
6569 -- both of the flags First_Name and Last_Name are set in this name.
6571 -- Note: in the case of implicit with's that are installed by the
6572 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6573 -- set to Standard_Location, but it is incorrect to test the Sloc
6574 -- to find out if a with clause is implicit, test the flag instead.
6576 -- N_With_Clause
6577 -- Sloc points to first token of library unit name
6578 -- Withed_Body (Node1-Sem)
6579 -- Name (Node2)
6580 -- Next_Implicit_With (Node3-Sem)
6581 -- Library_Unit (Node4-Sem)
6582 -- Corresponding_Spec (Node5-Sem)
6583 -- First_Name (Flag5) (set to True if first name or only one name)
6584 -- Last_Name (Flag6) (set to True if last name or only one name)
6585 -- Context_Installed (Flag13-Sem)
6586 -- Elaborate_Present (Flag4-Sem)
6587 -- Elaborate_All_Present (Flag14-Sem)
6588 -- Elaborate_All_Desirable (Flag9-Sem)
6589 -- Elaborate_Desirable (Flag11-Sem)
6590 -- Private_Present (Flag15) set if with_clause has private keyword
6591 -- Implicit_With (Flag16-Sem)
6592 -- Implicit_With_From_Instantiation (Flag12-Sem)
6593 -- Limited_Present (Flag17) set if LIMITED is present
6594 -- Limited_View_Installed (Flag18-Sem)
6595 -- Unreferenced_In_Spec (Flag7-Sem)
6596 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6598 -- Note: Limited_Present and Limited_View_Installed are used to support
6599 -- the implementation of Ada 2005 (AI-50217).
6601 -- Similarly, Private_Present is used to support the implementation of
6602 -- Ada 2005 (AI-50262).
6604 -- Note: if the WITH clause refers to a standard library unit, then a
6605 -- limited with clause is changed into a normal with clause, because we
6606 -- are not prepared to deal with limited with in the context of Rtsfind.
6607 -- So in this case, the Limited_Present flag will be False in the final
6608 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6609 -- ASIS the flag will remain set in this situation.
6611 ----------------------
6612 -- With_Type clause --
6613 ----------------------
6615 -- This is a GNAT extension, used to implement mutually recursive
6616 -- types declared in different packages.
6618 -- Note: this is now obsolete. The functionality of this construct
6619 -- is now implemented by the Ada 2005 limited_with_clause.
6621 ---------------------
6622 -- 10.2 Body stub --
6623 ---------------------
6625 -- BODY_STUB ::=
6626 -- SUBPROGRAM_BODY_STUB
6627 -- | PACKAGE_BODY_STUB
6628 -- | TASK_BODY_STUB
6629 -- | PROTECTED_BODY_STUB
6631 ----------------------------------
6632 -- 10.1.3 Subprogram Body Stub --
6633 ----------------------------------
6635 -- SUBPROGRAM_BODY_STUB ::=
6636 -- SUBPROGRAM_SPECIFICATION is separate
6637 -- [ASPECT_SPECIFICATION];
6639 -- N_Subprogram_Body_Stub
6640 -- Sloc points to FUNCTION or PROCEDURE
6641 -- Specification (Node1)
6642 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6643 -- Library_Unit (Node4-Sem) points to the subunit
6644 -- Corresponding_Body (Node5-Sem)
6646 -------------------------------
6647 -- 10.1.3 Package Body Stub --
6648 -------------------------------
6650 -- PACKAGE_BODY_STUB ::=
6651 -- package body DEFINING_IDENTIFIER is separate
6652 -- [ASPECT_SPECIFICATION];
6654 -- N_Package_Body_Stub
6655 -- Sloc points to PACKAGE
6656 -- Defining_Identifier (Node1)
6657 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6658 -- Library_Unit (Node4-Sem) points to the subunit
6659 -- Corresponding_Body (Node5-Sem)
6661 ----------------------------
6662 -- 10.1.3 Task Body Stub --
6663 ----------------------------
6665 -- TASK_BODY_STUB ::=
6666 -- task body DEFINING_IDENTIFIER is separate
6667 -- [ASPECT_SPECIFICATION];
6669 -- N_Task_Body_Stub
6670 -- Sloc points to TASK
6671 -- Defining_Identifier (Node1)
6672 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6673 -- Library_Unit (Node4-Sem) points to the subunit
6674 -- Corresponding_Body (Node5-Sem)
6676 ---------------------------------
6677 -- 10.1.3 Protected Body Stub --
6678 ---------------------------------
6680 -- PROTECTED_BODY_STUB ::=
6681 -- protected body DEFINING_IDENTIFIER is separate
6682 -- [ASPECT_SPECIFICATION];
6684 -- Note: protected body stubs are not allowed in Ada 83 mode
6686 -- N_Protected_Body_Stub
6687 -- Sloc points to PROTECTED
6688 -- Defining_Identifier (Node1)
6689 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6690 -- Library_Unit (Node4-Sem) points to the subunit
6691 -- Corresponding_Body (Node5-Sem)
6693 ---------------------
6694 -- 10.1.3 Subunit --
6695 ---------------------
6697 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6699 -- N_Subunit
6700 -- Sloc points to SEPARATE
6701 -- Name (Node2) is the name of the parent unit
6702 -- Proper_Body (Node1) is the subunit body
6703 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6705 ---------------------------------
6706 -- 11.1 Exception Declaration --
6707 ---------------------------------
6709 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6710 -- [ASPECT_SPECIFICATIONS];
6712 -- For consistency with object declarations etc., the parser converts
6713 -- the case of multiple identifiers being declared to a series of
6714 -- declarations in which the expression is copied, using the More_Ids
6715 -- and Prev_Ids flags to remember the source form as described in the
6716 -- section on "Handling of Defining Identifier Lists".
6718 -- N_Exception_Declaration
6719 -- Sloc points to EXCEPTION
6720 -- Defining_Identifier (Node1)
6721 -- Expression (Node3-Sem)
6722 -- Renaming_Exception (Node2-Sem)
6723 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6724 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6726 ------------------------------------------
6727 -- 11.2 Handled Sequence Of Statements --
6728 ------------------------------------------
6730 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6731 -- SEQUENCE_OF_STATEMENTS
6732 -- [exception
6733 -- EXCEPTION_HANDLER
6734 -- {EXCEPTION_HANDLER}]
6735 -- [at end
6736 -- cleanup_procedure_call (param, param, param, ...);]
6738 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6739 -- used only internally currently, but is considered to be syntactic.
6740 -- At the moment, the only cleanup action allowed is a single call to
6741 -- a parameterless procedure, and the Identifier field of the node is
6742 -- the procedure to be called. The cleanup action occurs whenever the
6743 -- sequence of statements is left for any reason. The possible reasons
6744 -- are:
6745 -- 1. reaching the end of the sequence
6746 -- 2. exit, return, or goto
6747 -- 3. exception or abort
6748 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6749 -- entirely in the back end. In this case, a handled sequence of
6750 -- statements with an "at end" cannot also have exception handlers.
6751 -- For other back ends, such as gcc with front-end SJLJ, the
6752 -- implementation is split between the front end and back end; the front
6753 -- end implements 3, and the back end implements 1 and 2. In this case,
6754 -- if there is an "at end", the front end inserts the appropriate
6755 -- exception handler, and this handler takes precedence over "at end"
6756 -- in case of exception.
6758 -- The inserted exception handler is of the form:
6760 -- when all others =>
6761 -- cleanup;
6762 -- raise;
6764 -- where cleanup is the procedure to be called. The reason we do this is
6765 -- so that the front end can handle the necessary entries in the
6766 -- exception tables, and other exception handler actions required as
6767 -- part of the normal handling for exception handlers.
6769 -- The AT END cleanup handler protects only the sequence of statements
6770 -- (not the associated declarations of the parent), just like exception
6771 -- handlers. The big difference is that the cleanup procedure is called
6772 -- on either a normal or an abnormal exit from the statement sequence.
6774 -- Note: the list of Exception_Handlers can contain pragmas as well
6775 -- as actual handlers. In practice these pragmas can only occur at
6776 -- the start of the list, since any pragmas occurring later on will
6777 -- be included in the statement list of the corresponding handler.
6779 -- Note: although in the Ada syntax, the sequence of statements in
6780 -- a handled sequence of statements can only contain statements, we
6781 -- allow free mixing of declarations and statements in the resulting
6782 -- expanded tree. This is for example used to deal with the case of
6783 -- a cleanup procedure that must handle declarations as well as the
6784 -- statements of a block.
6786 -- Note: the cleanup_procedure_call does not go through the common
6787 -- processing for calls, which in particular means that it will not be
6788 -- automatically inlined in all cases, even though the procedure to be
6789 -- called is marked inline. More specifically, if the procedure comes
6790 -- from another unit than the main source unit, for example a run-time
6791 -- unit, then it needs to be manually added to the list of bodies to be
6792 -- inlined by invoking Add_Inlined_Body on it.
6794 -- N_Handled_Sequence_Of_Statements
6795 -- Sloc points to first token of first statement
6796 -- Statements (List3)
6797 -- End_Label (Node4) (set to Empty if expander generated)
6798 -- Exception_Handlers (List5) (set to No_List if none present)
6799 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6800 -- First_Real_Statement (Node2-Sem)
6802 -- Note: the parent always contains a Declarations field which contains
6803 -- declarations associated with the handled sequence of statements. This
6804 -- is true even in the case of an accept statement (see description of
6805 -- the N_Accept_Statement node).
6807 -- End_Label refers to the containing construct
6809 -----------------------------
6810 -- 11.2 Exception Handler --
6811 -----------------------------
6813 -- EXCEPTION_HANDLER ::=
6814 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6815 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6816 -- SEQUENCE_OF_STATEMENTS
6818 -- Note: choice parameter specification is not allowed in Ada 83 mode
6820 -- N_Exception_Handler
6821 -- Sloc points to WHEN
6822 -- Choice_Parameter (Node2) (set to Empty if not present)
6823 -- Exception_Choices (List4)
6824 -- Statements (List3)
6825 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6826 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6827 -- Local_Raise_Not_OK (Flag7-Sem)
6828 -- Has_Local_Raise (Flag8-Sem)
6830 ------------------------------------------
6831 -- 11.2 Choice parameter specification --
6832 ------------------------------------------
6834 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6836 ----------------------------
6837 -- 11.2 Exception Choice --
6838 ----------------------------
6840 -- EXCEPTION_CHOICE ::= exception_NAME | others
6842 -- Except in the case of OTHERS, no explicit node appears in the tree
6843 -- for exception choice. Instead the exception name appears directly.
6844 -- An OTHERS choice is represented by a N_Others_Choice node (see
6845 -- section 3.8.1.
6847 -- Note: for the exception choice created for an at end handler, the
6848 -- exception choice is an N_Others_Choice node with All_Others set.
6850 ---------------------------
6851 -- 11.3 Raise Statement --
6852 ---------------------------
6854 -- RAISE_STATEMENT ::= raise [exception_NAME];
6856 -- In Ada 2005, we have
6858 -- RAISE_STATEMENT ::=
6859 -- raise; | raise exception_NAME [with string_EXPRESSION];
6861 -- N_Raise_Statement
6862 -- Sloc points to RAISE
6863 -- Name (Node2) (set to Empty if no exception name present)
6864 -- Expression (Node3) (set to Empty if no expression present)
6865 -- From_At_End (Flag4-Sem)
6867 ----------------------------
6868 -- 11.3 Raise Expression --
6869 ----------------------------
6871 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6873 -- N_Raise_Expression
6874 -- Sloc points to RAISE
6875 -- Name (Node2) (always present)
6876 -- Expression (Node3) (set to Empty if no expression present)
6877 -- Convert_To_Return_False (Flag13-Sem)
6878 -- plus fields for expression
6880 -------------------------------
6881 -- 12.1 Generic Declaration --
6882 -------------------------------
6884 -- GENERIC_DECLARATION ::=
6885 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6887 ------------------------------------------
6888 -- 12.1 Generic Subprogram Declaration --
6889 ------------------------------------------
6891 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6892 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6893 -- [ASPECT_SPECIFICATIONS];
6895 -- Note: Generic_Formal_Declarations can include pragmas
6897 -- N_Generic_Subprogram_Declaration
6898 -- Sloc points to GENERIC
6899 -- Specification (Node1) subprogram specification
6900 -- Corresponding_Body (Node5-Sem)
6901 -- Generic_Formal_Declarations (List2) from generic formal part
6902 -- Parent_Spec (Node4-Sem)
6904 ---------------------------------------
6905 -- 12.1 Generic Package Declaration --
6906 ---------------------------------------
6908 -- GENERIC_PACKAGE_DECLARATION ::=
6909 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6910 -- [ASPECT_SPECIFICATIONS];
6912 -- Note: when we do generics right, the Activation_Chain_Entity entry
6913 -- for this node can be removed (since the expander won't see generic
6914 -- units any more)???.
6916 -- Note: Generic_Formal_Declarations can include pragmas
6918 -- N_Generic_Package_Declaration
6919 -- Sloc points to GENERIC
6920 -- Specification (Node1) package specification
6921 -- Corresponding_Body (Node5-Sem)
6922 -- Generic_Formal_Declarations (List2) from generic formal part
6923 -- Parent_Spec (Node4-Sem)
6924 -- Activation_Chain_Entity (Node3-Sem)
6926 -------------------------------
6927 -- 12.1 Generic Formal Part --
6928 -------------------------------
6930 -- GENERIC_FORMAL_PART ::=
6931 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6933 ------------------------------------------------
6934 -- 12.1 Generic Formal Parameter Declaration --
6935 ------------------------------------------------
6937 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6938 -- FORMAL_OBJECT_DECLARATION
6939 -- | FORMAL_TYPE_DECLARATION
6940 -- | FORMAL_SUBPROGRAM_DECLARATION
6941 -- | FORMAL_PACKAGE_DECLARATION
6943 ---------------------------------
6944 -- 12.3 Generic Instantiation --
6945 ---------------------------------
6947 -- GENERIC_INSTANTIATION ::=
6948 -- package DEFINING_PROGRAM_UNIT_NAME is
6949 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6950 -- [ASPECT_SPECIFICATIONS];
6951 -- | [[not] overriding]
6952 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6953 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6954 -- [ASPECT_SPECIFICATIONS];
6955 -- | [[not] overriding]
6956 -- function DEFINING_DESIGNATOR is
6957 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6958 -- [ASPECT_SPECIFICATIONS];
6960 -- N_Package_Instantiation
6961 -- Sloc points to PACKAGE
6962 -- Defining_Unit_Name (Node1)
6963 -- Name (Node2)
6964 -- Generic_Associations (List3) (set to No_List if no
6965 -- generic actual part)
6966 -- Parent_Spec (Node4-Sem)
6967 -- Instance_Spec (Node5-Sem)
6968 -- ABE_Is_Certain (Flag18-Sem)
6970 -- N_Procedure_Instantiation
6971 -- Sloc points to PROCEDURE
6972 -- Defining_Unit_Name (Node1)
6973 -- Name (Node2)
6974 -- Parent_Spec (Node4-Sem)
6975 -- Generic_Associations (List3) (set to No_List if no
6976 -- generic actual part)
6977 -- Instance_Spec (Node5-Sem)
6978 -- Must_Override (Flag14) set if overriding indicator present
6979 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6980 -- ABE_Is_Certain (Flag18-Sem)
6982 -- N_Function_Instantiation
6983 -- Sloc points to FUNCTION
6984 -- Defining_Unit_Name (Node1)
6985 -- Name (Node2)
6986 -- Generic_Associations (List3) (set to No_List if no
6987 -- generic actual part)
6988 -- Parent_Spec (Node4-Sem)
6989 -- Instance_Spec (Node5-Sem)
6990 -- Must_Override (Flag14) set if overriding indicator present
6991 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6992 -- ABE_Is_Certain (Flag18-Sem)
6994 -- Note: overriding indicator is an Ada 2005 feature
6996 -------------------------------
6997 -- 12.3 Generic Actual Part --
6998 -------------------------------
7000 -- GENERIC_ACTUAL_PART ::=
7001 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
7003 -------------------------------
7004 -- 12.3 Generic Association --
7005 -------------------------------
7007 -- GENERIC_ASSOCIATION ::=
7008 -- [generic_formal_parameter_SELECTOR_NAME =>]
7010 -- Note: unlike the procedure call case, a generic association node
7011 -- is generated for every association, even if no formal parameter
7012 -- selector name is present. In this case the parser will leave the
7013 -- Selector_Name field set to Empty, to be filled in later by the
7014 -- semantic pass.
7016 -- In Ada 2005, a formal may be associated with a box, if the
7017 -- association is part of the list of actuals for a formal package.
7018 -- If the association is given by OTHERS => <>, the association is
7019 -- an N_Others_Choice.
7021 -- N_Generic_Association
7022 -- Sloc points to first token of generic association
7023 -- Selector_Name (Node2) (set to Empty if no formal
7024 -- parameter selector name)
7025 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
7026 -- Box_Present (Flag15) (for formal_package associations with a box)
7028 ---------------------------------------------
7029 -- 12.3 Explicit Generic Actual Parameter --
7030 ---------------------------------------------
7032 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
7033 -- EXPRESSION | variable_NAME | subprogram_NAME
7034 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7036 -------------------------------------
7037 -- 12.4 Formal Object Declaration --
7038 -------------------------------------
7040 -- FORMAL_OBJECT_DECLARATION ::=
7041 -- DEFINING_IDENTIFIER_LIST :
7042 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7043 -- [ASPECT_SPECIFICATIONS];
7044 -- | DEFINING_IDENTIFIER_LIST :
7045 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7046 -- [ASPECT_SPECIFICATIONS];
7048 -- Although the syntax allows multiple identifiers in the list, the
7049 -- semantics is as though successive declarations were given with
7050 -- identical type definition and expression components. To simplify
7051 -- semantic processing, the parser represents a multiple declaration
7052 -- case as a sequence of single declarations, using the More_Ids and
7053 -- Prev_Ids flags to preserve the original source form as described
7054 -- in the section on "Handling of Defining Identifier Lists".
7056 -- N_Formal_Object_Declaration
7057 -- Sloc points to first identifier
7058 -- Defining_Identifier (Node1)
7059 -- In_Present (Flag15)
7060 -- Out_Present (Flag17)
7061 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7062 -- Subtype_Mark (Node4) (set to Empty if not present)
7063 -- Access_Definition (Node3) (set to Empty if not present)
7064 -- Default_Expression (Node5) (set to Empty if no default expression)
7065 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7066 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7068 -----------------------------------
7069 -- 12.5 Formal Type Declaration --
7070 -----------------------------------
7072 -- FORMAL_TYPE_DECLARATION ::=
7073 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7074 -- is FORMAL_TYPE_DEFINITION
7075 -- [ASPECT_SPECIFICATIONS];
7076 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7078 -- N_Formal_Type_Declaration
7079 -- Sloc points to TYPE
7080 -- Defining_Identifier (Node1)
7081 -- Formal_Type_Definition (Node3)
7082 -- Discriminant_Specifications (List4) (set to No_List if no
7083 -- discriminant part)
7084 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7086 ----------------------------------
7087 -- 12.5 Formal type definition --
7088 ----------------------------------
7090 -- FORMAL_TYPE_DEFINITION ::=
7091 -- FORMAL_PRIVATE_TYPE_DEFINITION
7092 -- | FORMAL_DERIVED_TYPE_DEFINITION
7093 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7094 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7095 -- | FORMAL_MODULAR_TYPE_DEFINITION
7096 -- | FORMAL_FLOATING_POINT_DEFINITION
7097 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7098 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7099 -- | FORMAL_ARRAY_TYPE_DEFINITION
7100 -- | FORMAL_ACCESS_TYPE_DEFINITION
7101 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7102 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7104 -- The Ada 2012 syntax introduces two new non-terminals:
7105 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7106 -- the latter category. Here we introduce an incomplete type definition
7107 -- in order to preserve as much as possible the existing structure.
7109 ---------------------------------------------
7110 -- 12.5.1 Formal Private Type Definition --
7111 ---------------------------------------------
7113 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7114 -- [[abstract] tagged] [limited] private
7116 -- Note: TAGGED is not allowed in Ada 83 mode
7118 -- N_Formal_Private_Type_Definition
7119 -- Sloc points to PRIVATE
7120 -- Uninitialized_Variable (Node3-Sem)
7121 -- Abstract_Present (Flag4)
7122 -- Tagged_Present (Flag15)
7123 -- Limited_Present (Flag17)
7125 --------------------------------------------
7126 -- 12.5.1 Formal Derived Type Definition --
7127 --------------------------------------------
7129 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7130 -- [abstract] [limited | synchronized]
7131 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7132 -- Note: this construct is not allowed in Ada 83 mode
7134 -- N_Formal_Derived_Type_Definition
7135 -- Sloc points to NEW
7136 -- Subtype_Mark (Node4)
7137 -- Private_Present (Flag15)
7138 -- Abstract_Present (Flag4)
7139 -- Limited_Present (Flag17)
7140 -- Synchronized_Present (Flag7)
7141 -- Interface_List (List2) (set to No_List if none)
7143 -----------------------------------------------
7144 -- 12.5.1 Formal Incomplete Type Definition --
7145 -----------------------------------------------
7147 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7149 -- N_Formal_Incomplete_Type_Definition
7150 -- Sloc points to identifier of parent
7151 -- Tagged_Present (Flag15)
7153 ---------------------------------------------
7154 -- 12.5.2 Formal Discrete Type Definition --
7155 ---------------------------------------------
7157 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7159 -- N_Formal_Discrete_Type_Definition
7160 -- Sloc points to (
7162 ---------------------------------------------------
7163 -- 12.5.2 Formal Signed Integer Type Definition --
7164 ---------------------------------------------------
7166 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7168 -- N_Formal_Signed_Integer_Type_Definition
7169 -- Sloc points to RANGE
7171 --------------------------------------------
7172 -- 12.5.2 Formal Modular Type Definition --
7173 --------------------------------------------
7175 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7177 -- N_Formal_Modular_Type_Definition
7178 -- Sloc points to MOD
7180 ----------------------------------------------
7181 -- 12.5.2 Formal Floating Point Definition --
7182 ----------------------------------------------
7184 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7186 -- N_Formal_Floating_Point_Definition
7187 -- Sloc points to DIGITS
7189 ----------------------------------------------------
7190 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7191 ----------------------------------------------------
7193 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7195 -- N_Formal_Ordinary_Fixed_Point_Definition
7196 -- Sloc points to DELTA
7198 ---------------------------------------------------
7199 -- 12.5.2 Formal Decimal Fixed Point Definition --
7200 ---------------------------------------------------
7202 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7204 -- Note: formal decimal fixed point definition not allowed in Ada 83
7206 -- N_Formal_Decimal_Fixed_Point_Definition
7207 -- Sloc points to DELTA
7209 ------------------------------------------
7210 -- 12.5.3 Formal Array Type Definition --
7211 ------------------------------------------
7213 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7215 -------------------------------------------
7216 -- 12.5.4 Formal Access Type Definition --
7217 -------------------------------------------
7219 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7221 ----------------------------------------------
7222 -- 12.5.5 Formal Interface Type Definition --
7223 ----------------------------------------------
7225 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7227 -----------------------------------------
7228 -- 12.6 Formal Subprogram Declaration --
7229 -----------------------------------------
7231 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7232 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7233 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7235 --------------------------------------------------
7236 -- 12.6 Formal Concrete Subprogram Declaration --
7237 --------------------------------------------------
7239 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7240 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7241 -- [ASPECT_SPECIFICATIONS];
7243 -- N_Formal_Concrete_Subprogram_Declaration
7244 -- Sloc points to WITH
7245 -- Specification (Node1)
7246 -- Default_Name (Node2) (set to Empty if no subprogram default)
7247 -- Box_Present (Flag15)
7249 -- Note: if no subprogram default is present, then Name is set
7250 -- to Empty, and Box_Present is False.
7252 --------------------------------------------------
7253 -- 12.6 Formal Abstract Subprogram Declaration --
7254 --------------------------------------------------
7256 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7257 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7258 -- [ASPECT_SPECIFICATIONS];
7260 -- N_Formal_Abstract_Subprogram_Declaration
7261 -- Sloc points to WITH
7262 -- Specification (Node1)
7263 -- Default_Name (Node2) (set to Empty if no subprogram default)
7264 -- Box_Present (Flag15)
7266 -- Note: if no subprogram default is present, then Name is set
7267 -- to Empty, and Box_Present is False.
7269 ------------------------------
7270 -- 12.6 Subprogram Default --
7271 ------------------------------
7273 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7275 -- There is no separate node in the tree for a subprogram default.
7276 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7277 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7278 -- default name or box indication, as needed.
7280 ------------------------
7281 -- 12.6 Default Name --
7282 ------------------------
7284 -- DEFAULT_NAME ::= NAME
7286 --------------------------------------
7287 -- 12.7 Formal Package Declaration --
7288 --------------------------------------
7290 -- FORMAL_PACKAGE_DECLARATION ::=
7291 -- with package DEFINING_IDENTIFIER
7292 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7293 -- [ASPECT_SPECIFICATIONS];
7295 -- Note: formal package declarations not allowed in Ada 83 mode
7297 -- N_Formal_Package_Declaration
7298 -- Sloc points to WITH
7299 -- Defining_Identifier (Node1)
7300 -- Name (Node2)
7301 -- Generic_Associations (List3) (set to No_List if (<>) case or
7302 -- empty generic actual part)
7303 -- Box_Present (Flag15)
7304 -- Instance_Spec (Node5-Sem)
7305 -- ABE_Is_Certain (Flag18-Sem)
7307 --------------------------------------
7308 -- 12.7 Formal Package Actual Part --
7309 --------------------------------------
7311 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7312 -- ([OTHERS] => <>)
7313 -- | [GENERIC_ACTUAL_PART]
7314 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7316 -- FORMAL_PACKAGE_ASSOCIATION ::=
7317 -- GENERIC_ASSOCIATION
7318 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7320 -- There is no explicit node in the tree for a formal package actual
7321 -- part. Instead the information appears in the parent node (i.e. the
7322 -- formal package declaration node itself).
7324 -- There is no explicit node for a formal package association. All of
7325 -- them are represented either by a generic association, possibly with
7326 -- Box_Present, or by an N_Others_Choice.
7328 ---------------------------------
7329 -- 13.1 Representation clause --
7330 ---------------------------------
7332 -- REPRESENTATION_CLAUSE ::=
7333 -- ATTRIBUTE_DEFINITION_CLAUSE
7334 -- | ENUMERATION_REPRESENTATION_CLAUSE
7335 -- | RECORD_REPRESENTATION_CLAUSE
7336 -- | AT_CLAUSE
7338 ----------------------
7339 -- 13.1 Local Name --
7340 ----------------------
7342 -- LOCAL_NAME :=
7343 -- DIRECT_NAME
7344 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7345 -- | library_unit_NAME
7347 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7348 -- as an attribute reference, which has essentially the same form.
7350 ---------------------------------------
7351 -- 13.3 Attribute definition clause --
7352 ---------------------------------------
7354 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7355 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7356 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7358 -- In Ada 83, the expression must be a simple expression and the
7359 -- local name must be a direct name.
7361 -- Note: the only attribute definition clause that is processed by
7362 -- gigi is an address clause. For all other cases, the information
7363 -- is extracted by the front end and either results in setting entity
7364 -- information, e.g. Esize for the Size clause, or in appropriate
7365 -- expansion actions (e.g. in the case of Storage_Size).
7367 -- For an address clause, Gigi constructs the appropriate addressing
7368 -- code. It also ensures that no aliasing optimizations are made
7369 -- for the object for which the address clause appears.
7371 -- Note: for an address clause used to achieve an overlay:
7373 -- A : Integer;
7374 -- B : Integer;
7375 -- for B'Address use A'Address;
7377 -- the above rule means that Gigi will ensure that no optimizations
7378 -- will be made for B that would violate the implementation advice
7379 -- of RM 13.3(19). However, this advice applies only to B and not
7380 -- to A, which seems unfortunate. The GNAT front end will mark the
7381 -- object A as volatile to also prevent unwanted optimization
7382 -- assumptions based on no aliasing being made for B.
7384 -- N_Attribute_Definition_Clause
7385 -- Sloc points to FOR
7386 -- Name (Node2) the local name
7387 -- Chars (Name1) the identifier name from the attribute designator
7388 -- Expression (Node3) the expression or name
7389 -- Entity (Node4-Sem)
7390 -- Next_Rep_Item (Node5-Sem)
7391 -- From_At_Mod (Flag4-Sem)
7392 -- Check_Address_Alignment (Flag11-Sem)
7393 -- From_Aspect_Specification (Flag13-Sem)
7394 -- Is_Delayed_Aspect (Flag14-Sem)
7395 -- Address_Warning_Posted (Flag18-Sem)
7397 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7398 -- aspect name, and Entity is resolved already to reference the entity
7399 -- to which the aspect applies.
7401 -----------------------------------
7402 -- 13.3.1 Aspect Specifications --
7403 -----------------------------------
7405 -- We modify the RM grammar here, the RM grammar is:
7407 -- ASPECT_SPECIFICATION ::=
7408 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7409 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7411 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7413 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7415 -- That's inconvenient, since there is no non-terminal name for a single
7416 -- entry in the list of aspects. So we use this grammar instead:
7418 -- ASPECT_SPECIFICATIONS ::=
7419 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7421 -- ASPECT_SPECIFICATION =>
7422 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7424 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7426 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7428 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7429 -- aggregate with the elements of the aggregate corresponding to the
7430 -- successive arguments of the corresponding pragma.
7432 -- See separate package Aspects for details on the incorporation of
7433 -- these nodes into the tree, and how aspect specifications for a given
7434 -- declaration node are associated with that node.
7436 -- N_Aspect_Specification
7437 -- Sloc points to aspect identifier
7438 -- Identifier (Node1) aspect identifier
7439 -- Aspect_Rep_Item (Node2-Sem)
7440 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7441 -- Entity (Node4-Sem) entity to which the aspect applies
7442 -- Next_Rep_Item (Node5-Sem)
7443 -- Class_Present (Flag6) Set if 'Class present
7444 -- Is_Ignored (Flag9-Sem)
7445 -- Is_Checked (Flag11-Sem)
7446 -- Is_Delayed_Aspect (Flag14-Sem)
7447 -- Is_Disabled (Flag15-Sem)
7448 -- Is_Boolean_Aspect (Flag16-Sem)
7449 -- Split_PPC (Flag17) Set if split pre/post attribute
7451 -- Note: Aspect_Specification is an Ada 2012 feature
7453 -- Note: The Identifier serves to identify the aspect involved (it
7454 -- is the aspect whose name corresponds to the Chars field). This
7455 -- means that the other fields of this identifier are unused, and
7456 -- in particular we use the Entity field of this identifier to save
7457 -- a copy of the expression for visibility analysis, see spec of
7458 -- Sem_Ch13 for full details of this usage.
7460 -- In the case of aspects of the form xxx'Class, the aspect identifier
7461 -- is for xxx, and Class_Present is set to True.
7463 -- Note: When a Pre or Post aspect specification is processed, it is
7464 -- broken into AND THEN sections. The left most section has Split_PPC
7465 -- set to False, indicating that it is the original specification (e.g.
7466 -- for posting errors). For the other sections, Split_PPC is set True.
7468 ---------------------------------------------
7469 -- 13.4 Enumeration representation clause --
7470 ---------------------------------------------
7472 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7473 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7475 -- In Ada 83, the name must be a direct name
7477 -- N_Enumeration_Representation_Clause
7478 -- Sloc points to FOR
7479 -- Identifier (Node1) direct name
7480 -- Array_Aggregate (Node3)
7481 -- Next_Rep_Item (Node5-Sem)
7483 ---------------------------------
7484 -- 13.4 Enumeration aggregate --
7485 ---------------------------------
7487 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7489 ------------------------------------------
7490 -- 13.5.1 Record representation clause --
7491 ------------------------------------------
7493 -- RECORD_REPRESENTATION_CLAUSE ::=
7494 -- for first_subtype_LOCAL_NAME use
7495 -- record [MOD_CLAUSE]
7496 -- {COMPONENT_CLAUSE}
7497 -- end record;
7499 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7500 -- replaced by a corresponding Alignment attribute definition clause).
7502 -- Note: Component_Clauses can include pragmas
7504 -- N_Record_Representation_Clause
7505 -- Sloc points to FOR
7506 -- Identifier (Node1) direct name
7507 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7508 -- Component_Clauses (List3)
7509 -- Next_Rep_Item (Node5-Sem)
7511 ------------------------------
7512 -- 13.5.1 Component clause --
7513 ------------------------------
7515 -- COMPONENT_CLAUSE ::=
7516 -- component_LOCAL_NAME at POSITION
7517 -- range FIRST_BIT .. LAST_BIT;
7519 -- N_Component_Clause
7520 -- Sloc points to AT
7521 -- Component_Name (Node1) points to Name or Attribute_Reference
7522 -- Position (Node2)
7523 -- First_Bit (Node3)
7524 -- Last_Bit (Node4)
7526 ----------------------
7527 -- 13.5.1 Position --
7528 ----------------------
7530 -- POSITION ::= static_EXPRESSION
7532 -----------------------
7533 -- 13.5.1 First_Bit --
7534 -----------------------
7536 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7538 ----------------------
7539 -- 13.5.1 Last_Bit --
7540 ----------------------
7542 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7544 --------------------------
7545 -- 13.8 Code statement --
7546 --------------------------
7548 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7550 -- Note: in GNAT, the qualified expression has the form
7552 -- Asm_Insn'(Asm (...));
7554 -- See package System.Machine_Code in file s-maccod.ads for details on
7555 -- the allowed parameters to Asm. There are two ways this node can
7556 -- arise, as a code statement, in which case the expression is the
7557 -- qualified expression, or as a result of the expansion of an intrinsic
7558 -- call to the Asm or Asm_Input procedure.
7560 -- N_Code_Statement
7561 -- Sloc points to first token of the expression
7562 -- Expression (Node3)
7564 -- Note: package Exp_Code contains an abstract functional interface
7565 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7567 ------------------------
7568 -- 13.12 Restriction --
7569 ------------------------
7571 -- RESTRICTION ::=
7572 -- restriction_IDENTIFIER
7573 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7575 -- There is no explicit node for restrictions. Instead the restriction
7576 -- appears in normal pragma syntax as a pragma argument association,
7577 -- which has the same syntactic form.
7579 --------------------------
7580 -- B.2 Shift Operators --
7581 --------------------------
7583 -- Calls to the intrinsic shift functions are converted to one of
7584 -- the following shift nodes, which have the form of normal binary
7585 -- operator names. Note that for a given shift operation, one node
7586 -- covers all possible types, as for normal operators.
7588 -- Note: it is perfectly permissible for the expander to generate
7589 -- shift operation nodes directly, in which case they will be analyzed
7590 -- and parsed in the usual manner.
7592 -- Sprint syntax: shift-function-name!(expr, count)
7594 -- Note: the Left_Opnd field holds the first argument (the value to
7595 -- be shifted). The Right_Opnd field holds the second argument (the
7596 -- shift count). The Chars field is the name of the intrinsic function.
7598 -- N_Op_Rotate_Left
7599 -- Sloc points to the function name
7600 -- plus fields for binary operator
7601 -- plus fields for expression
7602 -- Shift_Count_OK (Flag4-Sem)
7604 -- N_Op_Rotate_Right
7605 -- Sloc points to the function name
7606 -- plus fields for binary operator
7607 -- plus fields for expression
7608 -- Shift_Count_OK (Flag4-Sem)
7610 -- N_Op_Shift_Left
7611 -- Sloc points to the function name
7612 -- plus fields for binary operator
7613 -- plus fields for expression
7614 -- Shift_Count_OK (Flag4-Sem)
7616 -- N_Op_Shift_Right_Arithmetic
7617 -- Sloc points to the function name
7618 -- plus fields for binary operator
7619 -- plus fields for expression
7620 -- Shift_Count_OK (Flag4-Sem)
7622 -- N_Op_Shift_Right
7623 -- Sloc points to the function name
7624 -- plus fields for binary operator
7625 -- plus fields for expression
7626 -- Shift_Count_OK (Flag4-Sem)
7628 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7629 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7631 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7632 -- always less than the word size if Modify_Tree_For_C mode is set.
7634 --------------------------
7635 -- Obsolescent Features --
7636 --------------------------
7638 -- The syntax descriptions and tree nodes for obsolescent features are
7639 -- grouped together, corresponding to their location in appendix I in
7640 -- the RM. However, parsing and semantic analysis for these constructs
7641 -- is located in an appropriate chapter (see individual notes).
7643 ---------------------------
7644 -- J.3 Delta Constraint --
7645 ---------------------------
7647 -- Note: the parse routine for this construct is located in section
7648 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7649 -- where delta constraint logically belongs.
7651 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7653 -- N_Delta_Constraint
7654 -- Sloc points to DELTA
7655 -- Delta_Expression (Node3)
7656 -- Range_Constraint (Node4) (set to Empty if not present)
7658 --------------------
7659 -- J.7 At Clause --
7660 --------------------
7662 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7664 -- Note: the parse routine for this construct is located in Par-Ch13,
7665 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7666 -- belongs if it were not obsolescent.
7668 -- Note: in Ada 83 the expression must be a simple expression
7670 -- Gigi restriction: This node never appears, it is rewritten as an
7671 -- address attribute definition clause.
7673 -- N_At_Clause
7674 -- Sloc points to FOR
7675 -- Identifier (Node1)
7676 -- Expression (Node3)
7678 ---------------------
7679 -- J.8 Mod clause --
7680 ---------------------
7682 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7684 -- Note: the parse routine for this construct is located in Par-Ch13,
7685 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7686 -- belongs if it were not obsolescent.
7688 -- Note: in Ada 83, the expression must be a simple expression
7690 -- Gigi restriction: this node never appears. It is replaced
7691 -- by a corresponding Alignment attribute definition clause.
7693 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7694 -- its name has "clause" in it. This is rather strange, but is quite
7695 -- definitely specified. The pragmas before are collected in the
7696 -- Pragmas_Before field of the mod clause node itself, and pragmas
7697 -- after are simply swallowed up in the list of component clauses.
7699 -- N_Mod_Clause
7700 -- Sloc points to AT
7701 -- Expression (Node3)
7702 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7704 --------------------
7705 -- Semantic Nodes --
7706 --------------------
7708 -- These semantic nodes are used to hold additional semantic information.
7709 -- They are inserted into the tree as a result of semantic processing.
7710 -- Although there are no legitimate source syntax constructions that
7711 -- correspond directly to these nodes, we need a source syntax for the
7712 -- reconstructed tree printed by Sprint, and the node descriptions here
7713 -- show this syntax.
7715 ------------------------
7716 -- Compound Statement --
7717 ------------------------
7719 -- This node is created by the analyzer/expander to handle some
7720 -- expansion cases where a sequence of actions needs to be captured
7721 -- within a single node (which acts as a container and allows the
7722 -- entire list of actions to be moved around as a whole) appearing
7723 -- in a sequence of statements.
7725 -- This is the statement counterpart to the expression node
7726 -- N_Expression_With_Actions.
7728 -- The required semantics is that the set of actions is executed in
7729 -- the order in which it appears, as though they appeared by themselves
7730 -- in the enclosing list of declarations of statements. Unlike what
7731 -- happens when using an N_Block_Statement, no new scope is introduced.
7733 -- Note: for the time being, this is used only as a transient
7734 -- representation during expansion, and all compound statement nodes
7735 -- must be exploded back to their constituent statements before handing
7736 -- the tree to the back end.
7738 -- Sprint syntax: do
7739 -- action;
7740 -- action;
7741 -- ...
7742 -- action;
7743 -- end;
7745 -- N_Compound_Statement
7746 -- Actions (List1)
7748 --------------
7749 -- Contract --
7750 --------------
7752 -- This node is used to hold the various parts of an entry, subprogram
7753 -- [body] or package [body] contract, in particular:
7754 -- Abstract states declared by a package declaration
7755 -- Contract cases that apply to a subprogram
7756 -- Dependency relations of inputs and output of a subprogram
7757 -- Global annotations classifying data as input or output
7758 -- Initialization sequences for a package declaration
7759 -- Pre- and postconditions that apply to a subprogram
7761 -- The node appears in an entry and [generic] subprogram [body] entity.
7763 -- Sprint syntax: <none> as the node should not appear in the tree, but
7764 -- only attached to an entry or [generic] subprogram
7765 -- entity.
7767 -- N_Contract
7768 -- Sloc points to the subprogram's name
7769 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7770 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7771 -- Classifications (Node3-Sem) (set to Empty if none)
7772 -- Is_Expanded_Contract (Flag1-Sem)
7774 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7775 -- to pre- and postconditions associated with an entry or a subprogram
7776 -- [body or stub]. The pragmas can either come from source or be the
7777 -- byproduct of aspect expansion. Currently the following pragmas appear
7778 -- in this list:
7779 -- Post
7780 -- Postcondition
7781 -- Pre
7782 -- Precondition
7783 -- Refined_Post
7784 -- The ordering in the list is in LIFO fashion.
7786 -- Note that there might be multiple preconditions or postconditions
7787 -- in this list, either because they come from separate pragmas in the
7788 -- source, or because a Pre (resp. Post) aspect specification has been
7789 -- broken into AND THEN sections. See Split_PPC for details.
7791 -- In GNATprove mode, the inherited classwide pre- and postconditions
7792 -- (suitably specialized for the specific type of the overriding
7793 -- operation) are also in this list.
7795 -- Contract_Test_Cases contains a collection of pragmas that correspond
7796 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7797 -- list is in LIFO fashion.
7799 -- Classifications contains pragmas that either declare, categorize or
7800 -- establish dependencies between subprogram or package inputs and
7801 -- outputs. Currently the following pragmas appear in this list:
7802 -- Abstract_States
7803 -- Async_Readers
7804 -- Async_Writers
7805 -- Constant_After_Elaboration
7806 -- Depends
7807 -- Effective_Reads
7808 -- Effective_Writes
7809 -- Extensions_Visible
7810 -- Global
7811 -- Initial_Condition
7812 -- Initializes
7813 -- Part_Of
7814 -- Refined_Depends
7815 -- Refined_Global
7816 -- Refined_States
7817 -- Volatile_Function
7818 -- The ordering is in LIFO fashion.
7820 -------------------
7821 -- Expanded Name --
7822 -------------------
7824 -- The N_Expanded_Name node is used to represent a selected component
7825 -- name that has been resolved to an expanded name. The semantic phase
7826 -- replaces N_Selected_Component nodes that represent names by the use
7827 -- of this node, leaving the N_Selected_Component node used only when
7828 -- the prefix is a record or protected type.
7830 -- The fields of the N_Expanded_Name node are layed out identically
7831 -- to those of the N_Selected_Component node, allowing conversion of
7832 -- an expanded name node to a selected component node to be done
7833 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7835 -- There is no special sprint syntax for an expanded name
7837 -- N_Expanded_Name
7838 -- Sloc points to the period
7839 -- Chars (Name1) copy of Chars field of selector name
7840 -- Prefix (Node3)
7841 -- Selector_Name (Node2)
7842 -- Entity (Node4-Sem)
7843 -- Associated_Node (Node4-Sem)
7844 -- Has_Private_View (Flag11-Sem) set in generic units.
7845 -- Redundant_Use (Flag13-Sem)
7846 -- Atomic_Sync_Required (Flag14-Sem)
7847 -- plus fields for expression
7849 -----------------------------
7850 -- Expression With Actions --
7851 -----------------------------
7853 -- This node is created by the analyzer/expander to handle some
7854 -- expansion cases, notably short-circuit forms where there are
7855 -- actions associated with the right-hand side operand.
7857 -- The N_Expression_With_Actions node represents an expression with
7858 -- an associated set of actions (which are executable statements and
7859 -- declarations, as might occur in a handled statement sequence).
7861 -- The required semantics is that the set of actions is executed in
7862 -- the order in which it appears just before the expression is
7863 -- evaluated (and these actions must only be executed if the value
7864 -- of the expression is evaluated). The node is considered to be
7865 -- a subexpression, whose value is the value of the Expression after
7866 -- executing all the actions.
7868 -- If the actions contain declarations, then these declarations may
7869 -- be referenced within the expression. However note that there is
7870 -- no proper scope associated with the expression-with-action, so the
7871 -- back-end will elaborate them in the context of the enclosing scope.
7873 -- Sprint syntax: do
7874 -- action;
7875 -- action;
7876 -- ...
7877 -- action;
7878 -- in expression end
7880 -- N_Expression_With_Actions
7881 -- Actions (List1)
7882 -- Expression (Node3)
7883 -- plus fields for expression
7885 -- Note: In the final generated tree presented to the code generator,
7886 -- the actions list is always non-null, since there is no point in this
7887 -- node if the actions are Empty. During semantic analysis there are
7888 -- cases where it is convenient to temporarily generate an empty actions
7889 -- list. This arises in cases where we create such an empty actions
7890 -- list, and it may or may not end up being a place where additional
7891 -- actions are inserted. The expander removes such empty cases after
7892 -- the expression of the node is fully analyzed and expanded, at which
7893 -- point it is safe to remove it, since no more actions can be inserted.
7895 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7896 -- the action list, which can contain only non-declarative statements.
7898 --------------------
7899 -- Free Statement --
7900 --------------------
7902 -- The N_Free_Statement node is generated as a result of a call to an
7903 -- instantiation of Unchecked_Deallocation. The instantiation of this
7904 -- generic is handled specially and generates this node directly.
7906 -- Sprint syntax: free expression
7908 -- N_Free_Statement
7909 -- Sloc is copied from the unchecked deallocation call
7910 -- Expression (Node3) argument to unchecked deallocation call
7911 -- Storage_Pool (Node1-Sem)
7912 -- Procedure_To_Call (Node2-Sem)
7913 -- Actual_Designated_Subtype (Node4-Sem)
7915 -- Note: in the case where a debug source file is generated, the Sloc
7916 -- for this node points to the FREE keyword in the Sprint file output.
7918 -------------------
7919 -- Freeze Entity --
7920 -------------------
7922 -- This node marks the point in a declarative part at which an entity
7923 -- declared therein becomes frozen. The expander places initialization
7924 -- procedures for types at those points. Gigi uses the freezing point
7925 -- to elaborate entities that may depend on previous private types.
7927 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7928 -- a full description of the use of this node.
7930 -- The Entity field points back to the entity for the type (whose
7931 -- Freeze_Node field points back to this freeze node).
7933 -- The Actions field contains a list of declarations and statements
7934 -- generated by the expander which are associated with the freeze
7935 -- node, and are elaborated as though the freeze node were replaced
7936 -- by this sequence of actions.
7938 -- Note: the Sloc field in the freeze node references a construct
7939 -- associated with the freezing point. This is used for posting
7940 -- messages in some error/warning situations, e.g. the case where
7941 -- a primitive operation of a tagged type is declared too late.
7943 -- Sprint syntax: freeze entity-name [
7944 -- freeze actions
7945 -- ]
7947 -- N_Freeze_Entity
7948 -- Sloc points near freeze point (see above special note)
7949 -- Entity (Node4-Sem)
7950 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7951 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7952 -- Actions (List1) (set to No_List if no freeze actions)
7953 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7955 -- The Actions field holds actions associated with the freeze. These
7956 -- actions are elaborated at the point where the type is frozen.
7958 -- Note: in the case where a debug source file is generated, the Sloc
7959 -- for this node points to the FREEZE keyword in the Sprint file output.
7961 ---------------------------
7962 -- Freeze Generic Entity --
7963 ---------------------------
7965 -- The freeze point of an entity indicates the point at which the
7966 -- information needed to generate code for the entity is complete.
7967 -- The freeze node for an entity triggers expander activities, such as
7968 -- build initialization procedures, and backend activities, such as
7969 -- completing the elaboration of packages.
7971 -- For entities declared within a generic unit, for which no code is
7972 -- generated, the freeze point is not equally meaningful. However, in
7973 -- Ada 2012 several semantic checks on declarations must be delayed to
7974 -- the freeze point, and we need to include such a mark in the tree to
7975 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7976 -- role, and is ignored by the expander and the back-end.
7978 -- Sprint syntax: freeze_generic entity-name
7980 -- N_Freeze_Generic_Entity
7981 -- Sloc points near freeze point
7982 -- Entity (Node4-Sem)
7984 --------------------------------
7985 -- Implicit Label Declaration --
7986 --------------------------------
7988 -- An implicit label declaration is created for every occurrence of a
7989 -- label on a statement or a label on a block or loop. It is chained
7990 -- in the declarations of the innermost enclosing block as specified
7991 -- in RM section 5.1 (3).
7993 -- The Defining_Identifier is the actual identifier for the statement
7994 -- identifier. Note that the occurrence of the label is a reference, NOT
7995 -- the defining occurrence. The defining occurrence occurs at the head
7996 -- of the innermost enclosing block, and is represented by this node.
7998 -- Note: from the grammar, this might better be called an implicit
7999 -- statement identifier declaration, but the term we choose seems
8000 -- friendlier, since at least informally statement identifiers are
8001 -- called labels in both cases (i.e. when used in labels, and when
8002 -- used as the identifiers of blocks and loops).
8004 -- Note: although this is logically a semantic node, since it does not
8005 -- correspond directly to a source syntax construction, these nodes are
8006 -- actually created by the parser in a post pass done just after parsing
8007 -- is complete, before semantic analysis is started (see Par.Labl).
8009 -- Sprint syntax: labelname : label;
8011 -- N_Implicit_Label_Declaration
8012 -- Sloc points to the << token for a statement identifier, or to the
8013 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
8014 -- Defining_Identifier (Node1)
8015 -- Label_Construct (Node2-Sem)
8017 -- Note: in the case where a debug source file is generated, the Sloc
8018 -- for this node points to the label name in the generated declaration.
8020 ---------------------
8021 -- Itype Reference --
8022 ---------------------
8024 -- This node is used to create a reference to an Itype. The only purpose
8025 -- is to make sure the Itype is defined if this is the first reference.
8027 -- A typical use of this node is when an Itype is to be referenced in
8028 -- two branches of an IF statement. In this case it is important that
8029 -- the first use of the Itype not be inside the conditional, since then
8030 -- it might not be defined if the other branch of the IF is taken, in
8031 -- the case where the definition generates elaboration code.
8033 -- The Itype field points to the referenced Itype
8035 -- Sprint syntax: reference itype-name
8037 -- N_Itype_Reference
8038 -- Sloc points to the node generating the reference
8039 -- Itype (Node1-Sem)
8041 -- Note: in the case where a debug source file is generated, the Sloc
8042 -- for this node points to the REFERENCE keyword in the file output.
8044 ---------------------
8045 -- Raise xxx Error --
8046 ---------------------
8048 -- One of these nodes is created during semantic analysis to replace
8049 -- a node for an expression that is determined to definitely raise
8050 -- the corresponding exception.
8052 -- The N_Raise_xxx_Error node may also stand alone in place
8053 -- of a declaration or statement, in which case it simply causes
8054 -- the exception to be raised (i.e. it is equivalent to a raise
8055 -- statement that raises the corresponding exception). This use
8056 -- is distinguished by the fact that the Etype in this case is
8057 -- Standard_Void_Type; in the subexpression case, the Etype is the
8058 -- same as the type of the subexpression which it replaces.
8060 -- If Condition is empty, then the raise is unconditional. If the
8061 -- Condition field is non-empty, it is a boolean expression which is
8062 -- first evaluated, and the exception is raised only if the value of the
8063 -- expression is True. In the unconditional case, the creation of this
8064 -- node is usually accompanied by a warning message (unless it appears
8065 -- within the right operand of a short-circuit form whose left argument
8066 -- is static and decisively eliminates elaboration of the raise
8067 -- operation). The condition field can ONLY be present when the node is
8068 -- used as a statement form; it must NOT be present in the case where
8069 -- the node appears within an expression.
8071 -- The exception is generated with a message that contains the
8072 -- file name and line number, and then appended text. The Reason
8073 -- code shows the text to be added. The Reason code is an element
8074 -- of the type Types.RT_Exception_Code, and indicates both the
8075 -- message to be added, and the exception to be raised (which must
8076 -- match the node type). The value is stored by storing a Uint which
8077 -- is the Pos value of the enumeration element in this type.
8079 -- Gigi restriction: This expander ensures that the type of the
8080 -- Condition field is always Standard.Boolean, even if the type
8081 -- in the source is some non-standard boolean type.
8083 -- Sprint syntax: [xxx_error "msg"]
8084 -- or: [xxx_error when condition "msg"]
8086 -- N_Raise_Constraint_Error
8087 -- Sloc references related construct
8088 -- Condition (Node1) (set to Empty if no condition)
8089 -- Reason (Uint3)
8090 -- plus fields for expression
8092 -- N_Raise_Program_Error
8093 -- Sloc references related construct
8094 -- Condition (Node1) (set to Empty if no condition)
8095 -- Reason (Uint3)
8096 -- plus fields for expression
8098 -- N_Raise_Storage_Error
8099 -- Sloc references related construct
8100 -- Condition (Node1) (set to Empty if no condition)
8101 -- Reason (Uint3)
8102 -- plus fields for expression
8104 -- Note: Sloc is copied from the expression generating the exception.
8105 -- In the case where a debug source file is generated, the Sloc for
8106 -- this node points to the left bracket in the Sprint file output.
8108 -- Note: the back end may be required to translate these nodes into
8109 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8111 ---------------------------------------------
8112 -- Optimization of Exception Raise to Goto --
8113 ---------------------------------------------
8115 -- In some cases, the front end will determine that any exception raised
8116 -- by the back end for a certain exception should be transformed into a
8117 -- goto statement.
8119 -- There are three kinds of exceptions raised by the back end (note that
8120 -- for this purpose we consider gigi to be part of the back end in the
8121 -- gcc case):
8123 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8124 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8125 -- 3. Other cases not specifically marked by the front end
8127 -- Normally all such exceptions are translated into calls to the proper
8128 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8129 -- and the exception message.
8131 -- The front end may determine that for a particular sequence of code,
8132 -- exceptions in any of these three categories for a particular builtin
8133 -- exception should result in a goto, rather than a call to Rcheck_xx.
8134 -- The exact sequence to be generated is:
8136 -- Local_Raise (exception'Identity);
8137 -- goto Label
8139 -- The front end marks such a sequence of code by bracketing it with
8140 -- push and pop nodes:
8142 -- N_Push_xxx_Label (referencing the label)
8143 -- ...
8144 -- (code where transformation is expected for exception xxx)
8145 -- ...
8146 -- N_Pop_xxx_Label
8148 -- The use of push/pop reflects the fact that such regions can properly
8149 -- nest, and one special case is a subregion in which no transformation
8150 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8151 -- Exception_Label field is Empty.
8153 -- N_Push_Constraint_Error_Label
8154 -- Sloc references first statement in region covered
8155 -- Exception_Label (Node5-Sem)
8157 -- N_Push_Program_Error_Label
8158 -- Sloc references first statement in region covered
8159 -- Exception_Label (Node5-Sem)
8161 -- N_Push_Storage_Error_Label
8162 -- Sloc references first statement in region covered
8163 -- Exception_Label (Node5-Sem)
8165 -- N_Pop_Constraint_Error_Label
8166 -- Sloc references last statement in region covered
8168 -- N_Pop_Program_Error_Label
8169 -- Sloc references last statement in region covered
8171 -- N_Pop_Storage_Error_Label
8172 -- Sloc references last statement in region covered
8174 ---------------
8175 -- Reference --
8176 ---------------
8178 -- For a number of purposes, we need to construct references to objects.
8179 -- These references are subsequently treated as normal access values.
8180 -- An example is the construction of the parameter block passed to a
8181 -- task entry. The N_Reference node is provided for this purpose. It is
8182 -- similar in effect to the use of the Unrestricted_Access attribute,
8183 -- and like Unrestricted_Access can be applied to objects which would
8184 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8185 -- objects which are not aliased, and slices). In addition it can be
8186 -- applied to composite type values as well as objects, including string
8187 -- values and aggregates.
8189 -- Note: we use the Prefix field for this expression so that the
8190 -- resulting node can be treated using common code with the attribute
8191 -- nodes for the 'Access and related attributes. Logically it would make
8192 -- more sense to call it an Expression field, but then we would have to
8193 -- special case the treatment of the N_Reference node.
8195 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8196 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8197 -- a temporary initialized to a N_Reference node in order to eliminate
8198 -- superfluous access checks.
8200 -- Sprint syntax: prefix'reference
8202 -- N_Reference
8203 -- Sloc is copied from the expression
8204 -- Prefix (Node3)
8205 -- plus fields for expression
8207 -- Note: in the case where a debug source file is generated, the Sloc
8208 -- for this node points to the quote in the Sprint file output.
8210 ----------------
8211 -- SCIL Nodes --
8212 ----------------
8214 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8215 -- is active. They are only generated if SCIL generation is enabled.
8216 -- A standard tree-walk will not encounter these nodes even if they
8217 -- are present; these nodes are only accessible via the function
8218 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8219 -- semantics.
8221 -- Sprint syntax: [ <node kind> ]
8222 -- No semantic field values are displayed.
8224 -- N_SCIL_Dispatch_Table_Tag_Init
8225 -- Sloc references a node for a tag initialization
8226 -- SCIL_Entity (Node4-Sem)
8228 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8229 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8230 -- the declaration of the dispatch table for a tagged type.
8232 -- N_SCIL_Dispatching_Call
8233 -- Sloc references the node of a dispatching call
8234 -- SCIL_Target_Prim (Node2-Sem)
8235 -- SCIL_Entity (Node4-Sem)
8236 -- SCIL_Controlling_Tag (Node5-Sem)
8238 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8239 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8240 -- rewriting thereof) corresponding to a dispatching call.
8242 -- N_SCIL_Membership_Test
8243 -- Sloc references the node of a membership test
8244 -- SCIL_Tag_Value (Node5-Sem)
8245 -- SCIL_Entity (Node4-Sem)
8247 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8248 -- with the N_In node (or a rewriting thereof) corresponding to a
8249 -- classwide membership test.
8251 --------------------------
8252 -- Unchecked Expression --
8253 --------------------------
8255 -- An unchecked expression is one that must be analyzed and resolved
8256 -- with all checks off, regardless of the current setting of scope
8257 -- suppress flags.
8259 -- Sprint syntax: `(expression)
8261 -- Note: this node is always removed from the tree (and replaced by
8262 -- its constituent expression) on completion of analysis, so it only
8263 -- appears in intermediate trees, and will never be seen by Gigi.
8265 -- N_Unchecked_Expression
8266 -- Sloc is a copy of the Sloc of the expression
8267 -- Expression (Node3)
8268 -- plus fields for expression
8270 -- Note: in the case where a debug source file is generated, the Sloc
8271 -- for this node points to the back quote in the Sprint file output.
8273 -------------------------------
8274 -- Unchecked Type Conversion --
8275 -------------------------------
8277 -- An unchecked type conversion node represents the semantic action
8278 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8279 -- It is generated as a result of actual use of Unchecked_Conversion
8280 -- and also the expander generates unchecked type conversion nodes
8281 -- directly for expansion of complex semantic actions.
8283 -- Note: an unchecked type conversion is a variable as far as the
8284 -- semantics are concerned, which is convenient for the expander.
8285 -- This does not change what Ada source programs are legal, since
8286 -- clearly a function call to an instantiation of Unchecked_Conversion
8287 -- is not a variable in any case.
8289 -- Sprint syntax: subtype-mark!(expression)
8291 -- N_Unchecked_Type_Conversion
8292 -- Sloc points to related node in source
8293 -- Subtype_Mark (Node4)
8294 -- Expression (Node3)
8295 -- Kill_Range_Check (Flag11-Sem)
8296 -- No_Truncation (Flag17-Sem)
8297 -- plus fields for expression
8299 -- Note: in the case where a debug source file is generated, the Sloc
8300 -- for this node points to the exclamation in the Sprint file output.
8302 -----------------------------------
8303 -- Validate_Unchecked_Conversion --
8304 -----------------------------------
8306 -- The front end does most of the validation of unchecked conversion,
8307 -- including checking sizes (this is done after the back end is called
8308 -- to take advantage of back-annotation of calculated sizes).
8310 -- The front end also deals with specific cases that are not allowed
8311 -- e.g. involving unconstrained array types.
8313 -- For the case of the standard gigi backend, this means that all
8314 -- checks are done in the front end.
8316 -- However, in the case of specialized back-ends, in particular the JVM
8317 -- backend in the past, additional requirements and restrictions may
8318 -- apply to unchecked conversion, and these are most conveniently
8319 -- performed in the specialized back-end.
8321 -- To accommodate this requirement, for such back ends, the following
8322 -- special node is generated recording an unchecked conversion that
8323 -- needs to be validated. The back end should post an appropriate
8324 -- error message if the unchecked conversion is invalid or warrants
8325 -- a special warning message.
8327 -- Source_Type and Target_Type point to the entities for the two
8328 -- types involved in the unchecked conversion instantiation that
8329 -- is to be validated.
8331 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8333 -- N_Validate_Unchecked_Conversion
8334 -- Sloc points to instantiation (location for warning message)
8335 -- Source_Type (Node1-Sem)
8336 -- Target_Type (Node2-Sem)
8338 -- Note: in the case where a debug source file is generated, the Sloc
8339 -- for this node points to the VALIDATE keyword in the file output.
8341 -----------
8342 -- Empty --
8343 -----------
8345 -- Used as the contents of the Nkind field of the dummy Empty node
8346 -- and in some other situations to indicate an uninitialized value.
8348 -- N_Empty
8349 -- Chars (Name1) is set to No_Name
8351 -----------
8352 -- Error --
8353 -----------
8355 -- Used as the contents of the Nkind field of the dummy Error node.
8356 -- Has an Etype field, which gets set to Any_Type later on, to help
8357 -- error recovery (Error_Posted is also set in the Error node).
8359 -- N_Error
8360 -- Chars (Name1) is set to Error_Name
8361 -- Etype (Node5-Sem)
8363 --------------------------
8364 -- Node Type Definition --
8365 --------------------------
8367 -- The following is the definition of the Node_Kind type. As previously
8368 -- discussed, this is separated off to allow rearrangement of the order to
8369 -- facilitate definition of subtype ranges. The comments show the subtype
8370 -- classes which apply to each set of node kinds. The first entry in the
8371 -- comment characterizes the following list of nodes.
8373 type Node_Kind is (
8374 N_Unused_At_Start,
8376 -- N_Representation_Clause
8378 N_At_Clause,
8379 N_Component_Clause,
8380 N_Enumeration_Representation_Clause,
8381 N_Mod_Clause,
8382 N_Record_Representation_Clause,
8384 -- N_Representation_Clause, N_Has_Chars
8386 N_Attribute_Definition_Clause,
8388 -- N_Has_Chars
8390 N_Empty,
8391 N_Pragma_Argument_Association,
8393 -- N_Has_Etype, N_Has_Chars
8395 -- Note: of course N_Error does not really have Etype or Chars fields,
8396 -- and any attempt to access these fields in N_Error will cause an
8397 -- error, but historically this always has been positioned so that an
8398 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8399 -- Most likely this makes coding easier somewhere but still seems
8400 -- undesirable. To be investigated some time ???
8402 N_Error,
8404 -- N_Entity, N_Has_Etype, N_Has_Chars
8406 N_Defining_Character_Literal,
8407 N_Defining_Identifier,
8408 N_Defining_Operator_Symbol,
8410 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8412 N_Expanded_Name,
8414 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8415 -- N_Has_Chars, N_Has_Entity
8417 N_Identifier,
8418 N_Operator_Symbol,
8420 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8421 -- N_Has_Chars, N_Has_Entity
8423 N_Character_Literal,
8425 -- N_Binary_Op, N_Op, N_Subexpr,
8426 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8428 N_Op_Add,
8429 N_Op_Concat,
8430 N_Op_Expon,
8431 N_Op_Subtract,
8433 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8434 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8436 N_Op_Divide,
8437 N_Op_Mod,
8438 N_Op_Multiply,
8439 N_Op_Rem,
8441 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8442 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8444 N_Op_And,
8446 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8447 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8449 N_Op_Eq,
8450 N_Op_Ge,
8451 N_Op_Gt,
8452 N_Op_Le,
8453 N_Op_Lt,
8454 N_Op_Ne,
8456 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8457 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8459 N_Op_Or,
8460 N_Op_Xor,
8462 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8463 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8465 N_Op_Rotate_Left,
8466 N_Op_Rotate_Right,
8467 N_Op_Shift_Left,
8468 N_Op_Shift_Right,
8469 N_Op_Shift_Right_Arithmetic,
8471 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8472 -- N_Has_Chars, N_Has_Entity
8474 N_Op_Abs,
8475 N_Op_Minus,
8476 N_Op_Not,
8477 N_Op_Plus,
8479 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8481 N_Attribute_Reference,
8483 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8485 N_In,
8486 N_Not_In,
8488 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8490 N_And_Then,
8491 N_Or_Else,
8493 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8495 N_Function_Call,
8496 N_Procedure_Call_Statement,
8498 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8500 N_Raise_Constraint_Error,
8501 N_Raise_Program_Error,
8502 N_Raise_Storage_Error,
8504 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8506 N_Integer_Literal,
8507 N_Real_Literal,
8508 N_String_Literal,
8510 -- N_Subexpr, N_Has_Etype
8512 N_Explicit_Dereference,
8513 N_Expression_With_Actions,
8514 N_If_Expression,
8515 N_Indexed_Component,
8516 N_Null,
8517 N_Qualified_Expression,
8518 N_Quantified_Expression,
8519 N_Aggregate,
8520 N_Allocator,
8521 N_Case_Expression,
8522 N_Delta_Aggregate,
8523 N_Extension_Aggregate,
8524 N_Raise_Expression,
8525 N_Range,
8526 N_Reference,
8527 N_Selected_Component,
8528 N_Slice,
8529 N_Target_Name,
8530 N_Type_Conversion,
8531 N_Unchecked_Expression,
8532 N_Unchecked_Type_Conversion,
8534 -- N_Has_Etype
8536 N_Subtype_Indication,
8538 -- N_Declaration
8540 N_Component_Declaration,
8541 N_Entry_Declaration,
8542 N_Expression_Function,
8543 N_Formal_Object_Declaration,
8544 N_Formal_Type_Declaration,
8545 N_Full_Type_Declaration,
8546 N_Incomplete_Type_Declaration,
8547 N_Iterator_Specification,
8548 N_Loop_Parameter_Specification,
8549 N_Object_Declaration,
8550 N_Protected_Type_Declaration,
8551 N_Private_Extension_Declaration,
8552 N_Private_Type_Declaration,
8553 N_Subtype_Declaration,
8555 -- N_Subprogram_Specification, N_Declaration
8557 N_Function_Specification,
8558 N_Procedure_Specification,
8560 -- N_Access_To_Subprogram_Definition
8562 N_Access_Function_Definition,
8563 N_Access_Procedure_Definition,
8565 -- N_Later_Decl_Item
8567 N_Task_Type_Declaration,
8569 -- N_Body_Stub, N_Later_Decl_Item
8571 N_Package_Body_Stub,
8572 N_Protected_Body_Stub,
8573 N_Subprogram_Body_Stub,
8574 N_Task_Body_Stub,
8576 -- N_Generic_Instantiation, N_Later_Decl_Item
8577 -- N_Subprogram_Instantiation
8579 N_Function_Instantiation,
8580 N_Procedure_Instantiation,
8582 -- N_Generic_Instantiation, N_Later_Decl_Item
8584 N_Package_Instantiation,
8586 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8588 N_Package_Body,
8589 N_Subprogram_Body,
8591 -- N_Later_Decl_Item, N_Proper_Body
8593 N_Protected_Body,
8594 N_Task_Body,
8596 -- N_Later_Decl_Item
8598 N_Implicit_Label_Declaration,
8599 N_Package_Declaration,
8600 N_Single_Task_Declaration,
8601 N_Subprogram_Declaration,
8602 N_Use_Package_Clause,
8604 -- N_Generic_Declaration, N_Later_Decl_Item
8606 N_Generic_Package_Declaration,
8607 N_Generic_Subprogram_Declaration,
8609 -- N_Array_Type_Definition
8611 N_Constrained_Array_Definition,
8612 N_Unconstrained_Array_Definition,
8614 -- N_Renaming_Declaration
8616 N_Exception_Renaming_Declaration,
8617 N_Object_Renaming_Declaration,
8618 N_Package_Renaming_Declaration,
8619 N_Subprogram_Renaming_Declaration,
8621 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8623 N_Generic_Function_Renaming_Declaration,
8624 N_Generic_Package_Renaming_Declaration,
8625 N_Generic_Procedure_Renaming_Declaration,
8627 -- N_Statement_Other_Than_Procedure_Call
8629 N_Abort_Statement,
8630 N_Accept_Statement,
8631 N_Assignment_Statement,
8632 N_Asynchronous_Select,
8633 N_Block_Statement,
8634 N_Case_Statement,
8635 N_Code_Statement,
8636 N_Compound_Statement,
8637 N_Conditional_Entry_Call,
8639 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8641 N_Delay_Relative_Statement,
8642 N_Delay_Until_Statement,
8644 -- N_Statement_Other_Than_Procedure_Call
8646 N_Entry_Call_Statement,
8647 N_Free_Statement,
8648 N_Goto_Statement,
8649 N_Loop_Statement,
8650 N_Null_Statement,
8651 N_Raise_Statement,
8652 N_Requeue_Statement,
8653 N_Simple_Return_Statement,
8654 N_Extended_Return_Statement,
8655 N_Selective_Accept,
8656 N_Timed_Entry_Call,
8658 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8660 N_Exit_Statement,
8661 N_If_Statement,
8663 -- N_Has_Condition
8665 N_Accept_Alternative,
8666 N_Delay_Alternative,
8667 N_Elsif_Part,
8668 N_Entry_Body_Formal_Part,
8669 N_Iteration_Scheme,
8670 N_Terminate_Alternative,
8672 -- N_Formal_Subprogram_Declaration
8674 N_Formal_Abstract_Subprogram_Declaration,
8675 N_Formal_Concrete_Subprogram_Declaration,
8677 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8679 N_Push_Constraint_Error_Label,
8680 N_Push_Program_Error_Label,
8681 N_Push_Storage_Error_Label,
8683 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8685 N_Pop_Constraint_Error_Label,
8686 N_Pop_Program_Error_Label,
8687 N_Pop_Storage_Error_Label,
8689 -- SCIL nodes
8691 N_SCIL_Dispatch_Table_Tag_Init,
8692 N_SCIL_Dispatching_Call,
8693 N_SCIL_Membership_Test,
8695 -- Other nodes (not part of any subtype class)
8697 N_Abortable_Part,
8698 N_Abstract_Subprogram_Declaration,
8699 N_Access_Definition,
8700 N_Access_To_Object_Definition,
8701 N_Aspect_Specification,
8702 N_Case_Expression_Alternative,
8703 N_Case_Statement_Alternative,
8704 N_Compilation_Unit,
8705 N_Compilation_Unit_Aux,
8706 N_Component_Association,
8707 N_Component_Definition,
8708 N_Component_List,
8709 N_Contract,
8710 N_Derived_Type_Definition,
8711 N_Decimal_Fixed_Point_Definition,
8712 N_Defining_Program_Unit_Name,
8713 N_Delta_Constraint,
8714 N_Designator,
8715 N_Digits_Constraint,
8716 N_Discriminant_Association,
8717 N_Discriminant_Specification,
8718 N_Enumeration_Type_Definition,
8719 N_Entry_Body,
8720 N_Entry_Call_Alternative,
8721 N_Entry_Index_Specification,
8722 N_Exception_Declaration,
8723 N_Exception_Handler,
8724 N_Floating_Point_Definition,
8725 N_Formal_Decimal_Fixed_Point_Definition,
8726 N_Formal_Derived_Type_Definition,
8727 N_Formal_Discrete_Type_Definition,
8728 N_Formal_Floating_Point_Definition,
8729 N_Formal_Modular_Type_Definition,
8730 N_Formal_Ordinary_Fixed_Point_Definition,
8731 N_Formal_Package_Declaration,
8732 N_Formal_Private_Type_Definition,
8733 N_Formal_Incomplete_Type_Definition,
8734 N_Formal_Signed_Integer_Type_Definition,
8735 N_Freeze_Entity,
8736 N_Freeze_Generic_Entity,
8737 N_Generic_Association,
8738 N_Handled_Sequence_Of_Statements,
8739 N_Index_Or_Discriminant_Constraint,
8740 N_Iterated_Component_Association,
8741 N_Itype_Reference,
8742 N_Label,
8743 N_Modular_Type_Definition,
8744 N_Number_Declaration,
8745 N_Ordinary_Fixed_Point_Definition,
8746 N_Others_Choice,
8747 N_Package_Specification,
8748 N_Parameter_Association,
8749 N_Parameter_Specification,
8750 N_Pragma,
8751 N_Protected_Definition,
8752 N_Range_Constraint,
8753 N_Real_Range_Specification,
8754 N_Record_Definition,
8755 N_Signed_Integer_Type_Definition,
8756 N_Single_Protected_Declaration,
8757 N_Subunit,
8758 N_Task_Definition,
8759 N_Triggering_Alternative,
8760 N_Use_Type_Clause,
8761 N_Validate_Unchecked_Conversion,
8762 N_Variant,
8763 N_Variant_Part,
8764 N_With_Clause,
8765 N_Unused_At_End);
8767 for Node_Kind'Size use 8;
8768 -- The data structures in Atree assume this
8770 ----------------------------
8771 -- Node Class Definitions --
8772 ----------------------------
8774 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8775 N_Access_Function_Definition ..
8776 N_Access_Procedure_Definition;
8778 subtype N_Array_Type_Definition is Node_Kind range
8779 N_Constrained_Array_Definition ..
8780 N_Unconstrained_Array_Definition;
8782 subtype N_Binary_Op is Node_Kind range
8783 N_Op_Add ..
8784 N_Op_Shift_Right_Arithmetic;
8786 subtype N_Body_Stub is Node_Kind range
8787 N_Package_Body_Stub ..
8788 N_Task_Body_Stub;
8790 subtype N_Declaration is Node_Kind range
8791 N_Component_Declaration ..
8792 N_Procedure_Specification;
8793 -- Note: this includes all constructs normally thought of as declarations
8794 -- except those which are separately grouped as later declarations.
8796 subtype N_Delay_Statement is Node_Kind range
8797 N_Delay_Relative_Statement ..
8798 N_Delay_Until_Statement;
8800 subtype N_Direct_Name is Node_Kind range
8801 N_Identifier ..
8802 N_Character_Literal;
8804 subtype N_Entity is Node_Kind range
8805 N_Defining_Character_Literal ..
8806 N_Defining_Operator_Symbol;
8808 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8809 N_Formal_Abstract_Subprogram_Declaration ..
8810 N_Formal_Concrete_Subprogram_Declaration;
8812 subtype N_Generic_Declaration is Node_Kind range
8813 N_Generic_Package_Declaration ..
8814 N_Generic_Subprogram_Declaration;
8816 subtype N_Generic_Instantiation is Node_Kind range
8817 N_Function_Instantiation ..
8818 N_Package_Instantiation;
8820 subtype N_Generic_Renaming_Declaration is Node_Kind range
8821 N_Generic_Function_Renaming_Declaration ..
8822 N_Generic_Procedure_Renaming_Declaration;
8824 subtype N_Has_Chars is Node_Kind range
8825 N_Attribute_Definition_Clause ..
8826 N_Op_Plus;
8828 subtype N_Has_Entity is Node_Kind range
8829 N_Expanded_Name ..
8830 N_Attribute_Reference;
8831 -- Nodes that have Entity fields
8832 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8833 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8835 subtype N_Has_Etype is Node_Kind range
8836 N_Error ..
8837 N_Subtype_Indication;
8839 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8840 N_Op_Divide ..
8841 N_Op_Rem;
8843 subtype N_Multiplying_Operator is Node_Kind range
8844 N_Op_Divide ..
8845 N_Op_Rem;
8847 subtype N_Later_Decl_Item is Node_Kind range
8848 N_Task_Type_Declaration ..
8849 N_Generic_Subprogram_Declaration;
8850 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8851 -- only those items which can appear as later declarative items. This also
8852 -- includes N_Implicit_Label_Declaration which is not specifically in the
8853 -- grammar but may appear as a valid later declarative items. It does NOT
8854 -- include N_Pragma which can also appear among later declarative items.
8855 -- It does however include N_Protected_Body, which is a bit peculiar, but
8856 -- harmless since this cannot appear in Ada 83 mode anyway.
8858 subtype N_Membership_Test is Node_Kind range
8859 N_In ..
8860 N_Not_In;
8862 subtype N_Numeric_Or_String_Literal is Node_Kind range
8863 N_Integer_Literal ..
8864 N_String_Literal;
8866 subtype N_Op is Node_Kind range
8867 N_Op_Add ..
8868 N_Op_Plus;
8870 subtype N_Op_Boolean is Node_Kind range
8871 N_Op_And ..
8872 N_Op_Xor;
8873 -- Binary operators which take operands of a boolean type, and yield
8874 -- a result of a boolean type.
8876 subtype N_Op_Compare is Node_Kind range
8877 N_Op_Eq ..
8878 N_Op_Ne;
8880 subtype N_Op_Shift is Node_Kind range
8881 N_Op_Rotate_Left ..
8882 N_Op_Shift_Right_Arithmetic;
8884 subtype N_Proper_Body is Node_Kind range
8885 N_Package_Body ..
8886 N_Task_Body;
8888 subtype N_Push_xxx_Label is Node_Kind range
8889 N_Push_Constraint_Error_Label ..
8890 N_Push_Storage_Error_Label;
8892 subtype N_Pop_xxx_Label is Node_Kind range
8893 N_Pop_Constraint_Error_Label ..
8894 N_Pop_Storage_Error_Label;
8896 subtype N_Push_Pop_xxx_Label is Node_Kind range
8897 N_Push_Constraint_Error_Label ..
8898 N_Pop_Storage_Error_Label;
8900 subtype N_Raise_xxx_Error is Node_Kind range
8901 N_Raise_Constraint_Error ..
8902 N_Raise_Storage_Error;
8904 subtype N_Renaming_Declaration is Node_Kind range
8905 N_Exception_Renaming_Declaration ..
8906 N_Generic_Procedure_Renaming_Declaration;
8908 subtype N_Representation_Clause is Node_Kind range
8909 N_At_Clause ..
8910 N_Attribute_Definition_Clause;
8912 subtype N_Short_Circuit is Node_Kind range
8913 N_And_Then ..
8914 N_Or_Else;
8916 subtype N_SCIL_Node is Node_Kind range
8917 N_SCIL_Dispatch_Table_Tag_Init ..
8918 N_SCIL_Membership_Test;
8920 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8921 N_Abort_Statement ..
8922 N_If_Statement;
8923 -- Note that this includes all statement types except for the cases of the
8924 -- N_Procedure_Call_Statement which is considered to be a subexpression
8925 -- (since overloading is possible, so it needs to go through the normal
8926 -- overloading resolution for expressions).
8928 subtype N_Subprogram_Call is Node_Kind range
8929 N_Function_Call ..
8930 N_Procedure_Call_Statement;
8932 subtype N_Subprogram_Instantiation is Node_Kind range
8933 N_Function_Instantiation ..
8934 N_Procedure_Instantiation;
8936 subtype N_Has_Condition is Node_Kind range
8937 N_Exit_Statement ..
8938 N_Terminate_Alternative;
8939 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8941 subtype N_Subexpr is Node_Kind range
8942 N_Expanded_Name ..
8943 N_Unchecked_Type_Conversion;
8944 -- Nodes with expression fields
8946 subtype N_Subprogram_Specification is Node_Kind range
8947 N_Function_Specification ..
8948 N_Procedure_Specification;
8950 subtype N_Unary_Op is Node_Kind range
8951 N_Op_Abs ..
8952 N_Op_Plus;
8954 subtype N_Unit_Body is Node_Kind range
8955 N_Package_Body ..
8956 N_Subprogram_Body;
8958 ---------------------------
8959 -- Node Access Functions --
8960 ---------------------------
8962 -- The following functions return the contents of the indicated field of
8963 -- the node referenced by the argument, which is a Node_Id. They provide
8964 -- logical access to fields in the node which could be accessed using the
8965 -- Atree.Unchecked_Access package, but the idea is always to use these
8966 -- higher level routines which preserve strong typing. In debug mode,
8967 -- these routines check that they are being applied to an appropriate
8968 -- node, as well as checking that the node is in range.
8970 function ABE_Is_Certain
8971 (N : Node_Id) return Boolean; -- Flag18
8973 function Abort_Present
8974 (N : Node_Id) return Boolean; -- Flag15
8976 function Abortable_Part
8977 (N : Node_Id) return Node_Id; -- Node2
8979 function Abstract_Present
8980 (N : Node_Id) return Boolean; -- Flag4
8982 function Accept_Handler_Records
8983 (N : Node_Id) return List_Id; -- List5
8985 function Accept_Statement
8986 (N : Node_Id) return Node_Id; -- Node2
8988 function Access_Definition
8989 (N : Node_Id) return Node_Id; -- Node3
8991 function Access_To_Subprogram_Definition
8992 (N : Node_Id) return Node_Id; -- Node3
8994 function Access_Types_To_Process
8995 (N : Node_Id) return Elist_Id; -- Elist2
8997 function Actions
8998 (N : Node_Id) return List_Id; -- List1
9000 function Activation_Chain_Entity
9001 (N : Node_Id) return Node_Id; -- Node3
9003 function Acts_As_Spec
9004 (N : Node_Id) return Boolean; -- Flag4
9006 function Actual_Designated_Subtype
9007 (N : Node_Id) return Node_Id; -- Node4
9009 function Address_Warning_Posted
9010 (N : Node_Id) return Boolean; -- Flag18
9012 function Aggregate_Bounds
9013 (N : Node_Id) return Node_Id; -- Node3
9015 function Aliased_Present
9016 (N : Node_Id) return Boolean; -- Flag4
9018 function All_Others
9019 (N : Node_Id) return Boolean; -- Flag11
9021 function All_Present
9022 (N : Node_Id) return Boolean; -- Flag15
9024 function Alternatives
9025 (N : Node_Id) return List_Id; -- List4
9027 function Ancestor_Part
9028 (N : Node_Id) return Node_Id; -- Node3
9030 function Atomic_Sync_Required
9031 (N : Node_Id) return Boolean; -- Flag14
9033 function Array_Aggregate
9034 (N : Node_Id) return Node_Id; -- Node3
9036 function Aspect_Rep_Item
9037 (N : Node_Id) return Node_Id; -- Node2
9039 function Assignment_OK
9040 (N : Node_Id) return Boolean; -- Flag15
9042 function Associated_Node
9043 (N : Node_Id) return Node_Id; -- Node4
9045 function At_End_Proc
9046 (N : Node_Id) return Node_Id; -- Node1
9048 function Attribute_Name
9049 (N : Node_Id) return Name_Id; -- Name2
9051 function Aux_Decls_Node
9052 (N : Node_Id) return Node_Id; -- Node5
9054 function Backwards_OK
9055 (N : Node_Id) return Boolean; -- Flag6
9057 function Bad_Is_Detected
9058 (N : Node_Id) return Boolean; -- Flag15
9060 function By_Ref
9061 (N : Node_Id) return Boolean; -- Flag5
9063 function Body_Required
9064 (N : Node_Id) return Boolean; -- Flag13
9066 function Body_To_Inline
9067 (N : Node_Id) return Node_Id; -- Node3
9069 function Box_Present
9070 (N : Node_Id) return Boolean; -- Flag15
9072 function Char_Literal_Value
9073 (N : Node_Id) return Uint; -- Uint2
9075 function Chars
9076 (N : Node_Id) return Name_Id; -- Name1
9078 function Check_Address_Alignment
9079 (N : Node_Id) return Boolean; -- Flag11
9081 function Choice_Parameter
9082 (N : Node_Id) return Node_Id; -- Node2
9084 function Choices
9085 (N : Node_Id) return List_Id; -- List1
9087 function Class_Present
9088 (N : Node_Id) return Boolean; -- Flag6
9090 function Classifications
9091 (N : Node_Id) return Node_Id; -- Node3
9093 function Cleanup_Actions
9094 (N : Node_Id) return List_Id; -- List5
9096 function Comes_From_Extended_Return_Statement
9097 (N : Node_Id) return Boolean; -- Flag18
9099 function Compile_Time_Known_Aggregate
9100 (N : Node_Id) return Boolean; -- Flag18
9102 function Component_Associations
9103 (N : Node_Id) return List_Id; -- List2
9105 function Component_Clauses
9106 (N : Node_Id) return List_Id; -- List3
9108 function Component_Definition
9109 (N : Node_Id) return Node_Id; -- Node4
9111 function Component_Items
9112 (N : Node_Id) return List_Id; -- List3
9114 function Component_List
9115 (N : Node_Id) return Node_Id; -- Node1
9117 function Component_Name
9118 (N : Node_Id) return Node_Id; -- Node1
9120 function Componentwise_Assignment
9121 (N : Node_Id) return Boolean; -- Flag14
9123 function Condition
9124 (N : Node_Id) return Node_Id; -- Node1
9126 function Condition_Actions
9127 (N : Node_Id) return List_Id; -- List3
9129 function Config_Pragmas
9130 (N : Node_Id) return List_Id; -- List4
9132 function Constant_Present
9133 (N : Node_Id) return Boolean; -- Flag17
9135 function Constraint
9136 (N : Node_Id) return Node_Id; -- Node3
9138 function Constraints
9139 (N : Node_Id) return List_Id; -- List1
9141 function Context_Installed
9142 (N : Node_Id) return Boolean; -- Flag13
9144 function Context_Pending
9145 (N : Node_Id) return Boolean; -- Flag16
9147 function Context_Items
9148 (N : Node_Id) return List_Id; -- List1
9150 function Contract_Test_Cases
9151 (N : Node_Id) return Node_Id; -- Node2
9153 function Controlling_Argument
9154 (N : Node_Id) return Node_Id; -- Node1
9156 function Conversion_OK
9157 (N : Node_Id) return Boolean; -- Flag14
9159 function Convert_To_Return_False
9160 (N : Node_Id) return Boolean; -- Flag13
9162 function Corresponding_Aspect
9163 (N : Node_Id) return Node_Id; -- Node3
9165 function Corresponding_Body
9166 (N : Node_Id) return Node_Id; -- Node5
9168 function Corresponding_Formal_Spec
9169 (N : Node_Id) return Node_Id; -- Node3
9171 function Corresponding_Generic_Association
9172 (N : Node_Id) return Node_Id; -- Node5
9174 function Corresponding_Integer_Value
9175 (N : Node_Id) return Uint; -- Uint4
9177 function Corresponding_Spec
9178 (N : Node_Id) return Entity_Id; -- Node5
9180 function Corresponding_Spec_Of_Stub
9181 (N : Node_Id) return Node_Id; -- Node2
9183 function Corresponding_Stub
9184 (N : Node_Id) return Node_Id; -- Node3
9186 function Dcheck_Function
9187 (N : Node_Id) return Entity_Id; -- Node5
9189 function Declarations
9190 (N : Node_Id) return List_Id; -- List2
9192 function Default_Expression
9193 (N : Node_Id) return Node_Id; -- Node5
9195 function Default_Storage_Pool
9196 (N : Node_Id) return Node_Id; -- Node3
9198 function Default_Name
9199 (N : Node_Id) return Node_Id; -- Node2
9201 function Defining_Identifier
9202 (N : Node_Id) return Entity_Id; -- Node1
9204 function Defining_Unit_Name
9205 (N : Node_Id) return Node_Id; -- Node1
9207 function Delay_Alternative
9208 (N : Node_Id) return Node_Id; -- Node4
9210 function Delay_Statement
9211 (N : Node_Id) return Node_Id; -- Node2
9213 function Delta_Expression
9214 (N : Node_Id) return Node_Id; -- Node3
9216 function Digits_Expression
9217 (N : Node_Id) return Node_Id; -- Node2
9219 function Discr_Check_Funcs_Built
9220 (N : Node_Id) return Boolean; -- Flag11
9222 function Discrete_Choices
9223 (N : Node_Id) return List_Id; -- List4
9225 function Discrete_Range
9226 (N : Node_Id) return Node_Id; -- Node4
9228 function Discrete_Subtype_Definition
9229 (N : Node_Id) return Node_Id; -- Node4
9231 function Discrete_Subtype_Definitions
9232 (N : Node_Id) return List_Id; -- List2
9234 function Discriminant_Specifications
9235 (N : Node_Id) return List_Id; -- List4
9237 function Discriminant_Type
9238 (N : Node_Id) return Node_Id; -- Node5
9240 function Do_Accessibility_Check
9241 (N : Node_Id) return Boolean; -- Flag13
9243 function Do_Discriminant_Check
9244 (N : Node_Id) return Boolean; -- Flag1
9246 function Do_Division_Check
9247 (N : Node_Id) return Boolean; -- Flag13
9249 function Do_Length_Check
9250 (N : Node_Id) return Boolean; -- Flag4
9252 function Do_Overflow_Check
9253 (N : Node_Id) return Boolean; -- Flag17
9255 function Do_Range_Check
9256 (N : Node_Id) return Boolean; -- Flag9
9258 function Do_Storage_Check
9259 (N : Node_Id) return Boolean; -- Flag17
9261 function Do_Tag_Check
9262 (N : Node_Id) return Boolean; -- Flag13
9264 function Elaborate_All_Desirable
9265 (N : Node_Id) return Boolean; -- Flag9
9267 function Elaborate_All_Present
9268 (N : Node_Id) return Boolean; -- Flag14
9270 function Elaborate_Desirable
9271 (N : Node_Id) return Boolean; -- Flag11
9273 function Elaborate_Present
9274 (N : Node_Id) return Boolean; -- Flag4
9276 function Else_Actions
9277 (N : Node_Id) return List_Id; -- List3
9279 function Else_Statements
9280 (N : Node_Id) return List_Id; -- List4
9282 function Elsif_Parts
9283 (N : Node_Id) return List_Id; -- List3
9285 function Enclosing_Variant
9286 (N : Node_Id) return Node_Id; -- Node2
9288 function End_Label
9289 (N : Node_Id) return Node_Id; -- Node4
9291 function End_Span
9292 (N : Node_Id) return Uint; -- Uint5
9294 function Entity
9295 (N : Node_Id) return Node_Id; -- Node4
9297 function Entity_Or_Associated_Node
9298 (N : Node_Id) return Node_Id; -- Node4
9300 function Entry_Body_Formal_Part
9301 (N : Node_Id) return Node_Id; -- Node5
9303 function Entry_Call_Alternative
9304 (N : Node_Id) return Node_Id; -- Node1
9306 function Entry_Call_Statement
9307 (N : Node_Id) return Node_Id; -- Node1
9309 function Entry_Direct_Name
9310 (N : Node_Id) return Node_Id; -- Node1
9312 function Entry_Index
9313 (N : Node_Id) return Node_Id; -- Node5
9315 function Entry_Index_Specification
9316 (N : Node_Id) return Node_Id; -- Node4
9318 function Etype
9319 (N : Node_Id) return Node_Id; -- Node5
9321 function Exception_Choices
9322 (N : Node_Id) return List_Id; -- List4
9324 function Exception_Handlers
9325 (N : Node_Id) return List_Id; -- List5
9327 function Exception_Junk
9328 (N : Node_Id) return Boolean; -- Flag8
9330 function Exception_Label
9331 (N : Node_Id) return Node_Id; -- Node5
9333 function Explicit_Actual_Parameter
9334 (N : Node_Id) return Node_Id; -- Node3
9336 function Expansion_Delayed
9337 (N : Node_Id) return Boolean; -- Flag11
9339 function Explicit_Generic_Actual_Parameter
9340 (N : Node_Id) return Node_Id; -- Node1
9342 function Expression
9343 (N : Node_Id) return Node_Id; -- Node3
9345 function Expression_Copy
9346 (N : Node_Id) return Node_Id; -- Node2
9348 function Expressions
9349 (N : Node_Id) return List_Id; -- List1
9351 function First_Bit
9352 (N : Node_Id) return Node_Id; -- Node3
9354 function First_Inlined_Subprogram
9355 (N : Node_Id) return Entity_Id; -- Node3
9357 function First_Name
9358 (N : Node_Id) return Boolean; -- Flag5
9360 function First_Named_Actual
9361 (N : Node_Id) return Node_Id; -- Node4
9363 function First_Real_Statement
9364 (N : Node_Id) return Node_Id; -- Node2
9366 function First_Subtype_Link
9367 (N : Node_Id) return Entity_Id; -- Node5
9369 function Float_Truncate
9370 (N : Node_Id) return Boolean; -- Flag11
9372 function Formal_Type_Definition
9373 (N : Node_Id) return Node_Id; -- Node3
9375 function Forwards_OK
9376 (N : Node_Id) return Boolean; -- Flag5
9378 function From_Aspect_Specification
9379 (N : Node_Id) return Boolean; -- Flag13
9381 function From_At_End
9382 (N : Node_Id) return Boolean; -- Flag4
9384 function From_At_Mod
9385 (N : Node_Id) return Boolean; -- Flag4
9387 function From_Conditional_Expression
9388 (N : Node_Id) return Boolean; -- Flag1
9390 function From_Default
9391 (N : Node_Id) return Boolean; -- Flag6
9393 function Generalized_Indexing
9394 (N : Node_Id) return Node_Id; -- Node4
9396 function Generic_Associations
9397 (N : Node_Id) return List_Id; -- List3
9399 function Generic_Formal_Declarations
9400 (N : Node_Id) return List_Id; -- List2
9402 function Generic_Parent
9403 (N : Node_Id) return Node_Id; -- Node5
9405 function Generic_Parent_Type
9406 (N : Node_Id) return Node_Id; -- Node4
9408 function Handled_Statement_Sequence
9409 (N : Node_Id) return Node_Id; -- Node4
9411 function Handler_List_Entry
9412 (N : Node_Id) return Node_Id; -- Node2
9414 function Has_Created_Identifier
9415 (N : Node_Id) return Boolean; -- Flag15
9417 function Has_Dereference_Action
9418 (N : Node_Id) return Boolean; -- Flag13
9420 function Has_Dynamic_Length_Check
9421 (N : Node_Id) return Boolean; -- Flag10
9423 function Has_Dynamic_Range_Check
9424 (N : Node_Id) return Boolean; -- Flag12
9426 function Has_Init_Expression
9427 (N : Node_Id) return Boolean; -- Flag14
9429 function Has_Local_Raise
9430 (N : Node_Id) return Boolean; -- Flag8
9432 function Has_No_Elaboration_Code
9433 (N : Node_Id) return Boolean; -- Flag17
9435 function Has_Pragma_Suppress_All
9436 (N : Node_Id) return Boolean; -- Flag14
9438 function Has_Private_View
9439 (N : Node_Id) return Boolean; -- Flag11
9441 function Has_Relative_Deadline_Pragma
9442 (N : Node_Id) return Boolean; -- Flag9
9444 function Has_Self_Reference
9445 (N : Node_Id) return Boolean; -- Flag13
9447 function Has_SP_Choice
9448 (N : Node_Id) return Boolean; -- Flag15
9450 function Has_Storage_Size_Pragma
9451 (N : Node_Id) return Boolean; -- Flag5
9453 function Has_Target_Names
9454 (N : Node_Id) return Boolean; -- Flag8
9456 function Has_Wide_Character
9457 (N : Node_Id) return Boolean; -- Flag11
9459 function Has_Wide_Wide_Character
9460 (N : Node_Id) return Boolean; -- Flag13
9462 function Header_Size_Added
9463 (N : Node_Id) return Boolean; -- Flag11
9465 function Hidden_By_Use_Clause
9466 (N : Node_Id) return Elist_Id; -- Elist4
9468 function High_Bound
9469 (N : Node_Id) return Node_Id; -- Node2
9471 function Identifier
9472 (N : Node_Id) return Node_Id; -- Node1
9474 function Interface_List
9475 (N : Node_Id) return List_Id; -- List2
9477 function Interface_Present
9478 (N : Node_Id) return Boolean; -- Flag16
9480 function Implicit_With
9481 (N : Node_Id) return Boolean; -- Flag16
9483 function Implicit_With_From_Instantiation
9484 (N : Node_Id) return Boolean; -- Flag12
9486 function Import_Interface_Present
9487 (N : Node_Id) return Boolean; -- Flag16
9489 function In_Present
9490 (N : Node_Id) return Boolean; -- Flag15
9492 function Includes_Infinities
9493 (N : Node_Id) return Boolean; -- Flag11
9495 function Incomplete_View
9496 (N : Node_Id) return Node_Id; -- Node2
9498 function Inherited_Discriminant
9499 (N : Node_Id) return Boolean; -- Flag13
9501 function Instance_Spec
9502 (N : Node_Id) return Node_Id; -- Node5
9504 function Intval
9505 (N : Node_Id) return Uint; -- Uint3
9507 function Is_Abort_Block
9508 (N : Node_Id) return Boolean; -- Flag4
9510 function Is_Accessibility_Actual
9511 (N : Node_Id) return Boolean; -- Flag13
9513 function Is_Analyzed_Pragma
9514 (N : Node_Id) return Boolean; -- Flag5
9516 function Is_Asynchronous_Call_Block
9517 (N : Node_Id) return Boolean; -- Flag7
9519 function Is_Boolean_Aspect
9520 (N : Node_Id) return Boolean; -- Flag16
9522 function Is_Checked
9523 (N : Node_Id) return Boolean; -- Flag11
9525 function Is_Checked_Ghost_Pragma
9526 (N : Node_Id) return Boolean; -- Flag3
9528 function Is_Component_Left_Opnd
9529 (N : Node_Id) return Boolean; -- Flag13
9531 function Is_Component_Right_Opnd
9532 (N : Node_Id) return Boolean; -- Flag14
9534 function Is_Controlling_Actual
9535 (N : Node_Id) return Boolean; -- Flag16
9537 function Is_Delayed_Aspect
9538 (N : Node_Id) return Boolean; -- Flag14
9540 function Is_Disabled
9541 (N : Node_Id) return Boolean; -- Flag15
9543 function Is_Dynamic_Coextension
9544 (N : Node_Id) return Boolean; -- Flag18
9546 function Is_Elsif
9547 (N : Node_Id) return Boolean; -- Flag13
9549 function Is_Entry_Barrier_Function
9550 (N : Node_Id) return Boolean; -- Flag8
9552 function Is_Expanded_Build_In_Place_Call
9553 (N : Node_Id) return Boolean; -- Flag11
9555 function Is_Expanded_Contract
9556 (N : Node_Id) return Boolean; -- Flag1
9558 function Is_Finalization_Wrapper
9559 (N : Node_Id) return Boolean; -- Flag9
9561 function Is_Folded_In_Parser
9562 (N : Node_Id) return Boolean; -- Flag4
9564 function Is_Generic_Contract_Pragma
9565 (N : Node_Id) return Boolean; -- Flag2
9567 function Is_Ignored
9568 (N : Node_Id) return Boolean; -- Flag9
9570 function Is_Ignored_Ghost_Pragma
9571 (N : Node_Id) return Boolean; -- Flag8
9573 function Is_In_Discriminant_Check
9574 (N : Node_Id) return Boolean; -- Flag11
9576 function Is_Inherited_Pragma
9577 (N : Node_Id) return Boolean; -- Flag4
9579 function Is_Machine_Number
9580 (N : Node_Id) return Boolean; -- Flag11
9582 function Is_Null_Loop
9583 (N : Node_Id) return Boolean; -- Flag16
9585 function Is_Overloaded
9586 (N : Node_Id) return Boolean; -- Flag5
9588 function Is_Power_Of_2_For_Shift
9589 (N : Node_Id) return Boolean; -- Flag13
9591 function Is_Prefixed_Call
9592 (N : Node_Id) return Boolean; -- Flag17
9594 function Is_Protected_Subprogram_Body
9595 (N : Node_Id) return Boolean; -- Flag7
9597 function Is_Qualified_Universal_Literal
9598 (N : Node_Id) return Boolean; -- Flag4
9600 function Is_Static_Coextension
9601 (N : Node_Id) return Boolean; -- Flag14
9603 function Is_Static_Expression
9604 (N : Node_Id) return Boolean; -- Flag6
9606 function Is_Subprogram_Descriptor
9607 (N : Node_Id) return Boolean; -- Flag16
9609 function Is_Task_Allocation_Block
9610 (N : Node_Id) return Boolean; -- Flag6
9612 function Is_Task_Body_Procedure
9613 (N : Node_Id) return Boolean; -- Flag1
9615 function Is_Task_Master
9616 (N : Node_Id) return Boolean; -- Flag5
9618 function Iteration_Scheme
9619 (N : Node_Id) return Node_Id; -- Node2
9621 function Iterator_Specification
9622 (N : Node_Id) return Node_Id; -- Node2
9624 function Itype
9625 (N : Node_Id) return Entity_Id; -- Node1
9627 function Kill_Range_Check
9628 (N : Node_Id) return Boolean; -- Flag11
9630 function Label_Construct
9631 (N : Node_Id) return Node_Id; -- Node2
9633 function Left_Opnd
9634 (N : Node_Id) return Node_Id; -- Node2
9636 function Last_Bit
9637 (N : Node_Id) return Node_Id; -- Node4
9639 function Last_Name
9640 (N : Node_Id) return Boolean; -- Flag6
9642 function Library_Unit
9643 (N : Node_Id) return Node_Id; -- Node4
9645 function Limited_View_Installed
9646 (N : Node_Id) return Boolean; -- Flag18
9648 function Limited_Present
9649 (N : Node_Id) return Boolean; -- Flag17
9651 function Literals
9652 (N : Node_Id) return List_Id; -- List1
9654 function Local_Raise_Not_OK
9655 (N : Node_Id) return Boolean; -- Flag7
9657 function Local_Raise_Statements
9658 (N : Node_Id) return Elist_Id; -- Elist1
9660 function Loop_Actions
9661 (N : Node_Id) return List_Id; -- List2
9663 function Loop_Parameter_Specification
9664 (N : Node_Id) return Node_Id; -- Node4
9666 function Low_Bound
9667 (N : Node_Id) return Node_Id; -- Node1
9669 function Mod_Clause
9670 (N : Node_Id) return Node_Id; -- Node2
9672 function More_Ids
9673 (N : Node_Id) return Boolean; -- Flag5
9675 function Must_Be_Byte_Aligned
9676 (N : Node_Id) return Boolean; -- Flag14
9678 function Must_Not_Freeze
9679 (N : Node_Id) return Boolean; -- Flag8
9681 function Must_Not_Override
9682 (N : Node_Id) return Boolean; -- Flag15
9684 function Must_Override
9685 (N : Node_Id) return Boolean; -- Flag14
9687 function Name
9688 (N : Node_Id) return Node_Id; -- Node2
9690 function Names
9691 (N : Node_Id) return List_Id; -- List2
9693 function Next_Entity
9694 (N : Node_Id) return Node_Id; -- Node2
9696 function Next_Exit_Statement
9697 (N : Node_Id) return Node_Id; -- Node3
9699 function Next_Implicit_With
9700 (N : Node_Id) return Node_Id; -- Node3
9702 function Next_Named_Actual
9703 (N : Node_Id) return Node_Id; -- Node4
9705 function Next_Pragma
9706 (N : Node_Id) return Node_Id; -- Node1
9708 function Next_Rep_Item
9709 (N : Node_Id) return Node_Id; -- Node5
9711 function Next_Use_Clause
9712 (N : Node_Id) return Node_Id; -- Node3
9714 function No_Ctrl_Actions
9715 (N : Node_Id) return Boolean; -- Flag7
9717 function No_Elaboration_Check
9718 (N : Node_Id) return Boolean; -- Flag14
9720 function No_Entities_Ref_In_Spec
9721 (N : Node_Id) return Boolean; -- Flag8
9723 function No_Initialization
9724 (N : Node_Id) return Boolean; -- Flag13
9726 function No_Minimize_Eliminate
9727 (N : Node_Id) return Boolean; -- Flag17
9729 function No_Side_Effect_Removal
9730 (N : Node_Id) return Boolean; -- Flag1
9732 function No_Truncation
9733 (N : Node_Id) return Boolean; -- Flag17
9735 function Non_Aliased_Prefix
9736 (N : Node_Id) return Boolean; -- Flag18
9738 function Null_Excluding_Subtype
9739 (N : Node_Id) return Boolean; -- Flag16
9741 function Null_Exclusion_Present
9742 (N : Node_Id) return Boolean; -- Flag11
9744 function Null_Exclusion_In_Return_Present
9745 (N : Node_Id) return Boolean; -- Flag14
9747 function Null_Present
9748 (N : Node_Id) return Boolean; -- Flag13
9750 function Null_Record_Present
9751 (N : Node_Id) return Boolean; -- Flag17
9753 function Null_Statement
9754 (N : Node_Id) return Node_Id; -- Node2
9756 function Object_Definition
9757 (N : Node_Id) return Node_Id; -- Node4
9759 function Of_Present
9760 (N : Node_Id) return Boolean; -- Flag16
9762 function Original_Discriminant
9763 (N : Node_Id) return Node_Id; -- Node2
9765 function Original_Entity
9766 (N : Node_Id) return Entity_Id; -- Node2
9768 function Others_Discrete_Choices
9769 (N : Node_Id) return List_Id; -- List1
9771 function Out_Present
9772 (N : Node_Id) return Boolean; -- Flag17
9774 function Parameter_Associations
9775 (N : Node_Id) return List_Id; -- List3
9777 function Parameter_Specifications
9778 (N : Node_Id) return List_Id; -- List3
9780 function Parameter_Type
9781 (N : Node_Id) return Node_Id; -- Node2
9783 function Parent_Spec
9784 (N : Node_Id) return Node_Id; -- Node4
9786 function Position
9787 (N : Node_Id) return Node_Id; -- Node2
9789 function Pragma_Argument_Associations
9790 (N : Node_Id) return List_Id; -- List2
9792 function Pragma_Identifier
9793 (N : Node_Id) return Node_Id; -- Node4
9795 function Pragmas_After
9796 (N : Node_Id) return List_Id; -- List5
9798 function Pragmas_Before
9799 (N : Node_Id) return List_Id; -- List4
9801 function Pre_Post_Conditions
9802 (N : Node_Id) return Node_Id; -- Node1
9804 function Prefix
9805 (N : Node_Id) return Node_Id; -- Node3
9807 function Premature_Use
9808 (N : Node_Id) return Node_Id; -- Node5
9810 function Present_Expr
9811 (N : Node_Id) return Uint; -- Uint3
9813 function Prev_Ids
9814 (N : Node_Id) return Boolean; -- Flag6
9816 function Print_In_Hex
9817 (N : Node_Id) return Boolean; -- Flag13
9819 function Private_Declarations
9820 (N : Node_Id) return List_Id; -- List3
9822 function Private_Present
9823 (N : Node_Id) return Boolean; -- Flag15
9825 function Procedure_To_Call
9826 (N : Node_Id) return Node_Id; -- Node2
9828 function Proper_Body
9829 (N : Node_Id) return Node_Id; -- Node1
9831 function Protected_Definition
9832 (N : Node_Id) return Node_Id; -- Node3
9834 function Protected_Present
9835 (N : Node_Id) return Boolean; -- Flag6
9837 function Raises_Constraint_Error
9838 (N : Node_Id) return Boolean; -- Flag7
9840 function Range_Constraint
9841 (N : Node_Id) return Node_Id; -- Node4
9843 function Range_Expression
9844 (N : Node_Id) return Node_Id; -- Node4
9846 function Real_Range_Specification
9847 (N : Node_Id) return Node_Id; -- Node4
9849 function Realval
9850 (N : Node_Id) return Ureal; -- Ureal3
9852 function Reason
9853 (N : Node_Id) return Uint; -- Uint3
9855 function Record_Extension_Part
9856 (N : Node_Id) return Node_Id; -- Node3
9858 function Redundant_Use
9859 (N : Node_Id) return Boolean; -- Flag13
9861 function Renaming_Exception
9862 (N : Node_Id) return Node_Id; -- Node2
9864 function Result_Definition
9865 (N : Node_Id) return Node_Id; -- Node4
9867 function Return_Object_Declarations
9868 (N : Node_Id) return List_Id; -- List3
9870 function Return_Statement_Entity
9871 (N : Node_Id) return Node_Id; -- Node5
9873 function Reverse_Present
9874 (N : Node_Id) return Boolean; -- Flag15
9876 function Right_Opnd
9877 (N : Node_Id) return Node_Id; -- Node3
9879 function Rounded_Result
9880 (N : Node_Id) return Boolean; -- Flag18
9882 function SCIL_Controlling_Tag
9883 (N : Node_Id) return Node_Id; -- Node5
9885 function SCIL_Entity
9886 (N : Node_Id) return Node_Id; -- Node4
9888 function SCIL_Tag_Value
9889 (N : Node_Id) return Node_Id; -- Node5
9891 function SCIL_Target_Prim
9892 (N : Node_Id) return Node_Id; -- Node2
9894 function Scope
9895 (N : Node_Id) return Node_Id; -- Node3
9897 function Select_Alternatives
9898 (N : Node_Id) return List_Id; -- List1
9900 function Selector_Name
9901 (N : Node_Id) return Node_Id; -- Node2
9903 function Selector_Names
9904 (N : Node_Id) return List_Id; -- List1
9906 function Shift_Count_OK
9907 (N : Node_Id) return Boolean; -- Flag4
9909 function Source_Type
9910 (N : Node_Id) return Entity_Id; -- Node1
9912 function Specification
9913 (N : Node_Id) return Node_Id; -- Node1
9915 function Split_PPC
9916 (N : Node_Id) return Boolean; -- Flag17
9918 function Statements
9919 (N : Node_Id) return List_Id; -- List3
9921 function Storage_Pool
9922 (N : Node_Id) return Node_Id; -- Node1
9924 function Subpool_Handle_Name
9925 (N : Node_Id) return Node_Id; -- Node4
9927 function Strval
9928 (N : Node_Id) return String_Id; -- Str3
9930 function Subtype_Indication
9931 (N : Node_Id) return Node_Id; -- Node5
9933 function Subtype_Mark
9934 (N : Node_Id) return Node_Id; -- Node4
9936 function Subtype_Marks
9937 (N : Node_Id) return List_Id; -- List2
9939 function Suppress_Assignment_Checks
9940 (N : Node_Id) return Boolean; -- Flag18
9942 function Suppress_Loop_Warnings
9943 (N : Node_Id) return Boolean; -- Flag17
9945 function Synchronized_Present
9946 (N : Node_Id) return Boolean; -- Flag7
9948 function Tagged_Present
9949 (N : Node_Id) return Boolean; -- Flag15
9951 function Target_Type
9952 (N : Node_Id) return Entity_Id; -- Node2
9954 function Task_Definition
9955 (N : Node_Id) return Node_Id; -- Node3
9957 function Task_Present
9958 (N : Node_Id) return Boolean; -- Flag5
9960 function Then_Actions
9961 (N : Node_Id) return List_Id; -- List2
9963 function Then_Statements
9964 (N : Node_Id) return List_Id; -- List2
9966 function Treat_Fixed_As_Integer
9967 (N : Node_Id) return Boolean; -- Flag14
9969 function Triggering_Alternative
9970 (N : Node_Id) return Node_Id; -- Node1
9972 function Triggering_Statement
9973 (N : Node_Id) return Node_Id; -- Node1
9975 function TSS_Elist
9976 (N : Node_Id) return Elist_Id; -- Elist3
9978 function Type_Definition
9979 (N : Node_Id) return Node_Id; -- Node3
9981 function Uneval_Old_Accept
9982 (N : Node_Id) return Boolean; -- Flag7
9984 function Uneval_Old_Warn
9985 (N : Node_Id) return Boolean; -- Flag18
9987 function Unit
9988 (N : Node_Id) return Node_Id; -- Node2
9990 function Unknown_Discriminants_Present
9991 (N : Node_Id) return Boolean; -- Flag13
9993 function Unreferenced_In_Spec
9994 (N : Node_Id) return Boolean; -- Flag7
9996 function Variant_Part
9997 (N : Node_Id) return Node_Id; -- Node4
9999 function Variants
10000 (N : Node_Id) return List_Id; -- List1
10002 function Visible_Declarations
10003 (N : Node_Id) return List_Id; -- List2
10005 function Uninitialized_Variable
10006 (N : Node_Id) return Node_Id; -- Node3
10008 function Used_Operations
10009 (N : Node_Id) return Elist_Id; -- Elist5
10011 function Was_Expression_Function
10012 (N : Node_Id) return Boolean; -- Flag18
10014 function Was_Originally_Stub
10015 (N : Node_Id) return Boolean; -- Flag13
10017 function Withed_Body
10018 (N : Node_Id) return Node_Id; -- Node1
10020 -- End functions (note used by xsinfo utility program to end processing)
10022 ----------------------------
10023 -- Node Update Procedures --
10024 ----------------------------
10026 -- These are the corresponding node update routines, which again provide
10027 -- a high level logical access with type checking. In addition to setting
10028 -- the indicated field of the node N to the given Val, in the case of
10029 -- tree pointers (List1-4), the parent pointer of the Val node is set to
10030 -- point back to node N. This automates the setting of the parent pointer.
10032 procedure Set_ABE_Is_Certain
10033 (N : Node_Id; Val : Boolean := True); -- Flag18
10035 procedure Set_Abort_Present
10036 (N : Node_Id; Val : Boolean := True); -- Flag15
10038 procedure Set_Abortable_Part
10039 (N : Node_Id; Val : Node_Id); -- Node2
10041 procedure Set_Abstract_Present
10042 (N : Node_Id; Val : Boolean := True); -- Flag4
10044 procedure Set_Accept_Handler_Records
10045 (N : Node_Id; Val : List_Id); -- List5
10047 procedure Set_Accept_Statement
10048 (N : Node_Id; Val : Node_Id); -- Node2
10050 procedure Set_Access_Definition
10051 (N : Node_Id; Val : Node_Id); -- Node3
10053 procedure Set_Access_To_Subprogram_Definition
10054 (N : Node_Id; Val : Node_Id); -- Node3
10056 procedure Set_Access_Types_To_Process
10057 (N : Node_Id; Val : Elist_Id); -- Elist2
10059 procedure Set_Actions
10060 (N : Node_Id; Val : List_Id); -- List1
10062 procedure Set_Activation_Chain_Entity
10063 (N : Node_Id; Val : Node_Id); -- Node3
10065 procedure Set_Acts_As_Spec
10066 (N : Node_Id; Val : Boolean := True); -- Flag4
10068 procedure Set_Actual_Designated_Subtype
10069 (N : Node_Id; Val : Node_Id); -- Node4
10071 procedure Set_Address_Warning_Posted
10072 (N : Node_Id; Val : Boolean := True); -- Flag18
10074 procedure Set_Aggregate_Bounds
10075 (N : Node_Id; Val : Node_Id); -- Node3
10077 procedure Set_Aliased_Present
10078 (N : Node_Id; Val : Boolean := True); -- Flag4
10080 procedure Set_All_Others
10081 (N : Node_Id; Val : Boolean := True); -- Flag11
10083 procedure Set_All_Present
10084 (N : Node_Id; Val : Boolean := True); -- Flag15
10086 procedure Set_Alternatives
10087 (N : Node_Id; Val : List_Id); -- List4
10089 procedure Set_Ancestor_Part
10090 (N : Node_Id; Val : Node_Id); -- Node3
10092 procedure Set_Atomic_Sync_Required
10093 (N : Node_Id; Val : Boolean := True); -- Flag14
10095 procedure Set_Array_Aggregate
10096 (N : Node_Id; Val : Node_Id); -- Node3
10098 procedure Set_Aspect_Rep_Item
10099 (N : Node_Id; Val : Node_Id); -- Node2
10101 procedure Set_Assignment_OK
10102 (N : Node_Id; Val : Boolean := True); -- Flag15
10104 procedure Set_Associated_Node
10105 (N : Node_Id; Val : Node_Id); -- Node4
10107 procedure Set_Attribute_Name
10108 (N : Node_Id; Val : Name_Id); -- Name2
10110 procedure Set_At_End_Proc
10111 (N : Node_Id; Val : Node_Id); -- Node1
10113 procedure Set_Aux_Decls_Node
10114 (N : Node_Id; Val : Node_Id); -- Node5
10116 procedure Set_Backwards_OK
10117 (N : Node_Id; Val : Boolean := True); -- Flag6
10119 procedure Set_Bad_Is_Detected
10120 (N : Node_Id; Val : Boolean := True); -- Flag15
10122 procedure Set_Body_Required
10123 (N : Node_Id; Val : Boolean := True); -- Flag13
10125 procedure Set_Body_To_Inline
10126 (N : Node_Id; Val : Node_Id); -- Node3
10128 procedure Set_Box_Present
10129 (N : Node_Id; Val : Boolean := True); -- Flag15
10131 procedure Set_By_Ref
10132 (N : Node_Id; Val : Boolean := True); -- Flag5
10134 procedure Set_Char_Literal_Value
10135 (N : Node_Id; Val : Uint); -- Uint2
10137 procedure Set_Chars
10138 (N : Node_Id; Val : Name_Id); -- Name1
10140 procedure Set_Check_Address_Alignment
10141 (N : Node_Id; Val : Boolean := True); -- Flag11
10143 procedure Set_Choice_Parameter
10144 (N : Node_Id; Val : Node_Id); -- Node2
10146 procedure Set_Choices
10147 (N : Node_Id; Val : List_Id); -- List1
10149 procedure Set_Class_Present
10150 (N : Node_Id; Val : Boolean := True); -- Flag6
10152 procedure Set_Classifications
10153 (N : Node_Id; Val : Node_Id); -- Node3
10155 procedure Set_Cleanup_Actions
10156 (N : Node_Id; Val : List_Id); -- List5
10158 procedure Set_Comes_From_Extended_Return_Statement
10159 (N : Node_Id; Val : Boolean := True); -- Flag18
10161 procedure Set_Compile_Time_Known_Aggregate
10162 (N : Node_Id; Val : Boolean := True); -- Flag18
10164 procedure Set_Component_Associations
10165 (N : Node_Id; Val : List_Id); -- List2
10167 procedure Set_Component_Clauses
10168 (N : Node_Id; Val : List_Id); -- List3
10170 procedure Set_Component_Definition
10171 (N : Node_Id; Val : Node_Id); -- Node4
10173 procedure Set_Component_Items
10174 (N : Node_Id; Val : List_Id); -- List3
10176 procedure Set_Component_List
10177 (N : Node_Id; Val : Node_Id); -- Node1
10179 procedure Set_Component_Name
10180 (N : Node_Id; Val : Node_Id); -- Node1
10182 procedure Set_Componentwise_Assignment
10183 (N : Node_Id; Val : Boolean := True); -- Flag14
10185 procedure Set_Condition
10186 (N : Node_Id; Val : Node_Id); -- Node1
10188 procedure Set_Condition_Actions
10189 (N : Node_Id; Val : List_Id); -- List3
10191 procedure Set_Config_Pragmas
10192 (N : Node_Id; Val : List_Id); -- List4
10194 procedure Set_Constant_Present
10195 (N : Node_Id; Val : Boolean := True); -- Flag17
10197 procedure Set_Constraint
10198 (N : Node_Id; Val : Node_Id); -- Node3
10200 procedure Set_Constraints
10201 (N : Node_Id; Val : List_Id); -- List1
10203 procedure Set_Context_Installed
10204 (N : Node_Id; Val : Boolean := True); -- Flag13
10206 procedure Set_Context_Items
10207 (N : Node_Id; Val : List_Id); -- List1
10209 procedure Set_Context_Pending
10210 (N : Node_Id; Val : Boolean := True); -- Flag16
10212 procedure Set_Contract_Test_Cases
10213 (N : Node_Id; Val : Node_Id); -- Node2
10215 procedure Set_Controlling_Argument
10216 (N : Node_Id; Val : Node_Id); -- Node1
10218 procedure Set_Conversion_OK
10219 (N : Node_Id; Val : Boolean := True); -- Flag14
10221 procedure Set_Convert_To_Return_False
10222 (N : Node_Id; Val : Boolean := True); -- Flag13
10224 procedure Set_Corresponding_Aspect
10225 (N : Node_Id; Val : Node_Id); -- Node3
10227 procedure Set_Corresponding_Body
10228 (N : Node_Id; Val : Node_Id); -- Node5
10230 procedure Set_Corresponding_Formal_Spec
10231 (N : Node_Id; Val : Node_Id); -- Node3
10233 procedure Set_Corresponding_Generic_Association
10234 (N : Node_Id; Val : Node_Id); -- Node5
10236 procedure Set_Corresponding_Integer_Value
10237 (N : Node_Id; Val : Uint); -- Uint4
10239 procedure Set_Corresponding_Spec
10240 (N : Node_Id; Val : Entity_Id); -- Node5
10242 procedure Set_Corresponding_Spec_Of_Stub
10243 (N : Node_Id; Val : Node_Id); -- Node2
10245 procedure Set_Corresponding_Stub
10246 (N : Node_Id; Val : Node_Id); -- Node3
10248 procedure Set_Dcheck_Function
10249 (N : Node_Id; Val : Entity_Id); -- Node5
10251 procedure Set_Declarations
10252 (N : Node_Id; Val : List_Id); -- List2
10254 procedure Set_Default_Expression
10255 (N : Node_Id; Val : Node_Id); -- Node5
10257 procedure Set_Default_Storage_Pool
10258 (N : Node_Id; Val : Node_Id); -- Node3
10260 procedure Set_Default_Name
10261 (N : Node_Id; Val : Node_Id); -- Node2
10263 procedure Set_Defining_Identifier
10264 (N : Node_Id; Val : Entity_Id); -- Node1
10266 procedure Set_Defining_Unit_Name
10267 (N : Node_Id; Val : Node_Id); -- Node1
10269 procedure Set_Delay_Alternative
10270 (N : Node_Id; Val : Node_Id); -- Node4
10272 procedure Set_Delay_Statement
10273 (N : Node_Id; Val : Node_Id); -- Node2
10275 procedure Set_Delta_Expression
10276 (N : Node_Id; Val : Node_Id); -- Node3
10278 procedure Set_Digits_Expression
10279 (N : Node_Id; Val : Node_Id); -- Node2
10281 procedure Set_Discr_Check_Funcs_Built
10282 (N : Node_Id; Val : Boolean := True); -- Flag11
10284 procedure Set_Discrete_Choices
10285 (N : Node_Id; Val : List_Id); -- List4
10287 procedure Set_Discrete_Range
10288 (N : Node_Id; Val : Node_Id); -- Node4
10290 procedure Set_Discrete_Subtype_Definition
10291 (N : Node_Id; Val : Node_Id); -- Node4
10293 procedure Set_Discrete_Subtype_Definitions
10294 (N : Node_Id; Val : List_Id); -- List2
10296 procedure Set_Discriminant_Specifications
10297 (N : Node_Id; Val : List_Id); -- List4
10299 procedure Set_Discriminant_Type
10300 (N : Node_Id; Val : Node_Id); -- Node5
10302 procedure Set_Do_Accessibility_Check
10303 (N : Node_Id; Val : Boolean := True); -- Flag13
10305 procedure Set_Do_Discriminant_Check
10306 (N : Node_Id; Val : Boolean := True); -- Flag1
10308 procedure Set_Do_Division_Check
10309 (N : Node_Id; Val : Boolean := True); -- Flag13
10311 procedure Set_Do_Length_Check
10312 (N : Node_Id; Val : Boolean := True); -- Flag4
10314 procedure Set_Do_Overflow_Check
10315 (N : Node_Id; Val : Boolean := True); -- Flag17
10317 procedure Set_Do_Range_Check
10318 (N : Node_Id; Val : Boolean := True); -- Flag9
10320 procedure Set_Do_Storage_Check
10321 (N : Node_Id; Val : Boolean := True); -- Flag17
10323 procedure Set_Do_Tag_Check
10324 (N : Node_Id; Val : Boolean := True); -- Flag13
10326 procedure Set_Elaborate_All_Desirable
10327 (N : Node_Id; Val : Boolean := True); -- Flag9
10329 procedure Set_Elaborate_All_Present
10330 (N : Node_Id; Val : Boolean := True); -- Flag14
10332 procedure Set_Elaborate_Desirable
10333 (N : Node_Id; Val : Boolean := True); -- Flag11
10335 procedure Set_Elaborate_Present
10336 (N : Node_Id; Val : Boolean := True); -- Flag4
10338 procedure Set_Else_Actions
10339 (N : Node_Id; Val : List_Id); -- List3
10341 procedure Set_Else_Statements
10342 (N : Node_Id; Val : List_Id); -- List4
10344 procedure Set_Elsif_Parts
10345 (N : Node_Id; Val : List_Id); -- List3
10347 procedure Set_Enclosing_Variant
10348 (N : Node_Id; Val : Node_Id); -- Node2
10350 procedure Set_End_Label
10351 (N : Node_Id; Val : Node_Id); -- Node4
10353 procedure Set_End_Span
10354 (N : Node_Id; Val : Uint); -- Uint5
10356 procedure Set_Entity
10357 (N : Node_Id; Val : Node_Id); -- Node4
10359 procedure Set_Entry_Body_Formal_Part
10360 (N : Node_Id; Val : Node_Id); -- Node5
10362 procedure Set_Entry_Call_Alternative
10363 (N : Node_Id; Val : Node_Id); -- Node1
10365 procedure Set_Entry_Call_Statement
10366 (N : Node_Id; Val : Node_Id); -- Node1
10368 procedure Set_Entry_Direct_Name
10369 (N : Node_Id; Val : Node_Id); -- Node1
10371 procedure Set_Entry_Index
10372 (N : Node_Id; Val : Node_Id); -- Node5
10374 procedure Set_Entry_Index_Specification
10375 (N : Node_Id; Val : Node_Id); -- Node4
10377 procedure Set_Etype
10378 (N : Node_Id; Val : Node_Id); -- Node5
10380 procedure Set_Exception_Choices
10381 (N : Node_Id; Val : List_Id); -- List4
10383 procedure Set_Exception_Handlers
10384 (N : Node_Id; Val : List_Id); -- List5
10386 procedure Set_Exception_Junk
10387 (N : Node_Id; Val : Boolean := True); -- Flag8
10389 procedure Set_Exception_Label
10390 (N : Node_Id; Val : Node_Id); -- Node5
10392 procedure Set_Expansion_Delayed
10393 (N : Node_Id; Val : Boolean := True); -- Flag11
10395 procedure Set_Explicit_Actual_Parameter
10396 (N : Node_Id; Val : Node_Id); -- Node3
10398 procedure Set_Explicit_Generic_Actual_Parameter
10399 (N : Node_Id; Val : Node_Id); -- Node1
10401 procedure Set_Expression
10402 (N : Node_Id; Val : Node_Id); -- Node3
10404 procedure Set_Expression_Copy
10405 (N : Node_Id; Val : Node_Id); -- Node2
10407 procedure Set_Expressions
10408 (N : Node_Id; Val : List_Id); -- List1
10410 procedure Set_First_Bit
10411 (N : Node_Id; Val : Node_Id); -- Node3
10413 procedure Set_First_Inlined_Subprogram
10414 (N : Node_Id; Val : Entity_Id); -- Node3
10416 procedure Set_First_Name
10417 (N : Node_Id; Val : Boolean := True); -- Flag5
10419 procedure Set_First_Named_Actual
10420 (N : Node_Id; Val : Node_Id); -- Node4
10422 procedure Set_First_Real_Statement
10423 (N : Node_Id; Val : Node_Id); -- Node2
10425 procedure Set_First_Subtype_Link
10426 (N : Node_Id; Val : Entity_Id); -- Node5
10428 procedure Set_Float_Truncate
10429 (N : Node_Id; Val : Boolean := True); -- Flag11
10431 procedure Set_Formal_Type_Definition
10432 (N : Node_Id; Val : Node_Id); -- Node3
10434 procedure Set_Forwards_OK
10435 (N : Node_Id; Val : Boolean := True); -- Flag5
10437 procedure Set_From_Aspect_Specification
10438 (N : Node_Id; Val : Boolean := True); -- Flag13
10440 procedure Set_From_At_End
10441 (N : Node_Id; Val : Boolean := True); -- Flag4
10443 procedure Set_From_At_Mod
10444 (N : Node_Id; Val : Boolean := True); -- Flag4
10446 procedure Set_From_Conditional_Expression
10447 (N : Node_Id; Val : Boolean := True); -- Flag1
10449 procedure Set_From_Default
10450 (N : Node_Id; Val : Boolean := True); -- Flag6
10452 procedure Set_Generalized_Indexing
10453 (N : Node_Id; Val : Node_Id); -- Node4
10455 procedure Set_Generic_Associations
10456 (N : Node_Id; Val : List_Id); -- List3
10458 procedure Set_Generic_Formal_Declarations
10459 (N : Node_Id; Val : List_Id); -- List2
10461 procedure Set_Generic_Parent
10462 (N : Node_Id; Val : Node_Id); -- Node5
10464 procedure Set_Generic_Parent_Type
10465 (N : Node_Id; Val : Node_Id); -- Node4
10467 procedure Set_Handled_Statement_Sequence
10468 (N : Node_Id; Val : Node_Id); -- Node4
10470 procedure Set_Handler_List_Entry
10471 (N : Node_Id; Val : Node_Id); -- Node2
10473 procedure Set_Has_Created_Identifier
10474 (N : Node_Id; Val : Boolean := True); -- Flag15
10476 procedure Set_Has_Dereference_Action
10477 (N : Node_Id; Val : Boolean := True); -- Flag13
10479 procedure Set_Has_Dynamic_Length_Check
10480 (N : Node_Id; Val : Boolean := True); -- Flag10
10482 procedure Set_Has_Dynamic_Range_Check
10483 (N : Node_Id; Val : Boolean := True); -- Flag12
10485 procedure Set_Has_Init_Expression
10486 (N : Node_Id; Val : Boolean := True); -- Flag14
10488 procedure Set_Has_Local_Raise
10489 (N : Node_Id; Val : Boolean := True); -- Flag8
10491 procedure Set_Has_No_Elaboration_Code
10492 (N : Node_Id; Val : Boolean := True); -- Flag17
10494 procedure Set_Has_Pragma_Suppress_All
10495 (N : Node_Id; Val : Boolean := True); -- Flag14
10497 procedure Set_Has_Private_View
10498 (N : Node_Id; Val : Boolean := True); -- Flag11
10500 procedure Set_Has_Relative_Deadline_Pragma
10501 (N : Node_Id; Val : Boolean := True); -- Flag9
10503 procedure Set_Has_Self_Reference
10504 (N : Node_Id; Val : Boolean := True); -- Flag13
10506 procedure Set_Has_SP_Choice
10507 (N : Node_Id; Val : Boolean := True); -- Flag15
10509 procedure Set_Has_Storage_Size_Pragma
10510 (N : Node_Id; Val : Boolean := True); -- Flag5
10512 procedure Set_Has_Target_Names
10513 (N : Node_Id; Val : Boolean := True); -- Flag8
10515 procedure Set_Has_Wide_Character
10516 (N : Node_Id; Val : Boolean := True); -- Flag11
10518 procedure Set_Has_Wide_Wide_Character
10519 (N : Node_Id; Val : Boolean := True); -- Flag13
10521 procedure Set_Header_Size_Added
10522 (N : Node_Id; Val : Boolean := True); -- Flag11
10524 procedure Set_Hidden_By_Use_Clause
10525 (N : Node_Id; Val : Elist_Id); -- Elist4
10527 procedure Set_High_Bound
10528 (N : Node_Id; Val : Node_Id); -- Node2
10530 procedure Set_Identifier
10531 (N : Node_Id; Val : Node_Id); -- Node1
10533 procedure Set_Interface_List
10534 (N : Node_Id; Val : List_Id); -- List2
10536 procedure Set_Interface_Present
10537 (N : Node_Id; Val : Boolean := True); -- Flag16
10539 procedure Set_Implicit_With
10540 (N : Node_Id; Val : Boolean := True); -- Flag16
10542 procedure Set_Implicit_With_From_Instantiation
10543 (N : Node_Id; Val : Boolean := True); -- Flag12
10545 procedure Set_Import_Interface_Present
10546 (N : Node_Id; Val : Boolean := True); -- Flag16
10548 procedure Set_In_Present
10549 (N : Node_Id; Val : Boolean := True); -- Flag15
10551 procedure Set_Includes_Infinities
10552 (N : Node_Id; Val : Boolean := True); -- Flag11
10554 procedure Set_Incomplete_View
10555 (N : Node_Id; Val : Node_Id); -- Node2
10557 procedure Set_Inherited_Discriminant
10558 (N : Node_Id; Val : Boolean := True); -- Flag13
10560 procedure Set_Instance_Spec
10561 (N : Node_Id; Val : Node_Id); -- Node5
10563 procedure Set_Intval
10564 (N : Node_Id; Val : Uint); -- Uint3
10566 procedure Set_Is_Abort_Block
10567 (N : Node_Id; Val : Boolean := True); -- Flag4
10569 procedure Set_Is_Accessibility_Actual
10570 (N : Node_Id; Val : Boolean := True); -- Flag13
10572 procedure Set_Is_Analyzed_Pragma
10573 (N : Node_Id; Val : Boolean := True); -- Flag5
10575 procedure Set_Is_Asynchronous_Call_Block
10576 (N : Node_Id; Val : Boolean := True); -- Flag7
10578 procedure Set_Is_Boolean_Aspect
10579 (N : Node_Id; Val : Boolean := True); -- Flag16
10581 procedure Set_Is_Checked
10582 (N : Node_Id; Val : Boolean := True); -- Flag11
10584 procedure Set_Is_Checked_Ghost_Pragma
10585 (N : Node_Id; Val : Boolean := True); -- Flag3
10587 procedure Set_Is_Component_Left_Opnd
10588 (N : Node_Id; Val : Boolean := True); -- Flag13
10590 procedure Set_Is_Component_Right_Opnd
10591 (N : Node_Id; Val : Boolean := True); -- Flag14
10593 procedure Set_Is_Controlling_Actual
10594 (N : Node_Id; Val : Boolean := True); -- Flag16
10596 procedure Set_Is_Delayed_Aspect
10597 (N : Node_Id; Val : Boolean := True); -- Flag14
10599 procedure Set_Is_Disabled
10600 (N : Node_Id; Val : Boolean := True); -- Flag15
10602 procedure Set_Is_Dynamic_Coextension
10603 (N : Node_Id; Val : Boolean := True); -- Flag18
10605 procedure Set_Is_Elsif
10606 (N : Node_Id; Val : Boolean := True); -- Flag13
10608 procedure Set_Is_Entry_Barrier_Function
10609 (N : Node_Id; Val : Boolean := True); -- Flag8
10611 procedure Set_Is_Expanded_Build_In_Place_Call
10612 (N : Node_Id; Val : Boolean := True); -- Flag11
10614 procedure Set_Is_Expanded_Contract
10615 (N : Node_Id; Val : Boolean := True); -- Flag1
10617 procedure Set_Is_Finalization_Wrapper
10618 (N : Node_Id; Val : Boolean := True); -- Flag9
10620 procedure Set_Is_Folded_In_Parser
10621 (N : Node_Id; Val : Boolean := True); -- Flag4
10623 procedure Set_Is_Generic_Contract_Pragma
10624 (N : Node_Id; Val : Boolean := True); -- Flag2
10626 procedure Set_Is_Ignored
10627 (N : Node_Id; Val : Boolean := True); -- Flag9
10629 procedure Set_Is_Ignored_Ghost_Pragma
10630 (N : Node_Id; Val : Boolean := True); -- Flag8
10632 procedure Set_Is_In_Discriminant_Check
10633 (N : Node_Id; Val : Boolean := True); -- Flag11
10635 procedure Set_Is_Inherited_Pragma
10636 (N : Node_Id; Val : Boolean := True); -- Flag4
10638 procedure Set_Is_Machine_Number
10639 (N : Node_Id; Val : Boolean := True); -- Flag11
10641 procedure Set_Is_Null_Loop
10642 (N : Node_Id; Val : Boolean := True); -- Flag16
10644 procedure Set_Is_Overloaded
10645 (N : Node_Id; Val : Boolean := True); -- Flag5
10647 procedure Set_Is_Power_Of_2_For_Shift
10648 (N : Node_Id; Val : Boolean := True); -- Flag13
10650 procedure Set_Is_Prefixed_Call
10651 (N : Node_Id; Val : Boolean := True); -- Flag17
10653 procedure Set_Is_Protected_Subprogram_Body
10654 (N : Node_Id; Val : Boolean := True); -- Flag7
10656 procedure Set_Is_Qualified_Universal_Literal
10657 (N : Node_Id; Val : Boolean := True); -- Flag4
10659 procedure Set_Is_Static_Coextension
10660 (N : Node_Id; Val : Boolean := True); -- Flag14
10662 procedure Set_Is_Static_Expression
10663 (N : Node_Id; Val : Boolean := True); -- Flag6
10665 procedure Set_Is_Subprogram_Descriptor
10666 (N : Node_Id; Val : Boolean := True); -- Flag16
10668 procedure Set_Is_Task_Allocation_Block
10669 (N : Node_Id; Val : Boolean := True); -- Flag6
10671 procedure Set_Is_Task_Body_Procedure
10672 (N : Node_Id; Val : Boolean := True); -- Flag1
10674 procedure Set_Is_Task_Master
10675 (N : Node_Id; Val : Boolean := True); -- Flag5
10677 procedure Set_Iteration_Scheme
10678 (N : Node_Id; Val : Node_Id); -- Node2
10680 procedure Set_Iterator_Specification
10681 (N : Node_Id; Val : Node_Id); -- Node2
10683 procedure Set_Itype
10684 (N : Node_Id; Val : Entity_Id); -- Node1
10686 procedure Set_Kill_Range_Check
10687 (N : Node_Id; Val : Boolean := True); -- Flag11
10689 procedure Set_Last_Bit
10690 (N : Node_Id; Val : Node_Id); -- Node4
10692 procedure Set_Last_Name
10693 (N : Node_Id; Val : Boolean := True); -- Flag6
10695 procedure Set_Library_Unit
10696 (N : Node_Id; Val : Node_Id); -- Node4
10698 procedure Set_Label_Construct
10699 (N : Node_Id; Val : Node_Id); -- Node2
10701 procedure Set_Left_Opnd
10702 (N : Node_Id; Val : Node_Id); -- Node2
10704 procedure Set_Limited_View_Installed
10705 (N : Node_Id; Val : Boolean := True); -- Flag18
10707 procedure Set_Limited_Present
10708 (N : Node_Id; Val : Boolean := True); -- Flag17
10710 procedure Set_Literals
10711 (N : Node_Id; Val : List_Id); -- List1
10713 procedure Set_Local_Raise_Not_OK
10714 (N : Node_Id; Val : Boolean := True); -- Flag7
10716 procedure Set_Local_Raise_Statements
10717 (N : Node_Id; Val : Elist_Id); -- Elist1
10719 procedure Set_Loop_Actions
10720 (N : Node_Id; Val : List_Id); -- List2
10722 procedure Set_Loop_Parameter_Specification
10723 (N : Node_Id; Val : Node_Id); -- Node4
10725 procedure Set_Low_Bound
10726 (N : Node_Id; Val : Node_Id); -- Node1
10728 procedure Set_Mod_Clause
10729 (N : Node_Id; Val : Node_Id); -- Node2
10731 procedure Set_More_Ids
10732 (N : Node_Id; Val : Boolean := True); -- Flag5
10734 procedure Set_Must_Be_Byte_Aligned
10735 (N : Node_Id; Val : Boolean := True); -- Flag14
10737 procedure Set_Must_Not_Freeze
10738 (N : Node_Id; Val : Boolean := True); -- Flag8
10740 procedure Set_Must_Not_Override
10741 (N : Node_Id; Val : Boolean := True); -- Flag15
10743 procedure Set_Must_Override
10744 (N : Node_Id; Val : Boolean := True); -- Flag14
10746 procedure Set_Name
10747 (N : Node_Id; Val : Node_Id); -- Node2
10749 procedure Set_Names
10750 (N : Node_Id; Val : List_Id); -- List2
10752 procedure Set_Next_Entity
10753 (N : Node_Id; Val : Node_Id); -- Node2
10755 procedure Set_Next_Exit_Statement
10756 (N : Node_Id; Val : Node_Id); -- Node3
10758 procedure Set_Next_Implicit_With
10759 (N : Node_Id; Val : Node_Id); -- Node3
10761 procedure Set_Next_Named_Actual
10762 (N : Node_Id; Val : Node_Id); -- Node4
10764 procedure Set_Next_Pragma
10765 (N : Node_Id; Val : Node_Id); -- Node1
10767 procedure Set_Next_Rep_Item
10768 (N : Node_Id; Val : Node_Id); -- Node5
10770 procedure Set_Next_Use_Clause
10771 (N : Node_Id; Val : Node_Id); -- Node3
10773 procedure Set_No_Ctrl_Actions
10774 (N : Node_Id; Val : Boolean := True); -- Flag7
10776 procedure Set_No_Elaboration_Check
10777 (N : Node_Id; Val : Boolean := True); -- Flag14
10779 procedure Set_No_Entities_Ref_In_Spec
10780 (N : Node_Id; Val : Boolean := True); -- Flag8
10782 procedure Set_No_Initialization
10783 (N : Node_Id; Val : Boolean := True); -- Flag13
10785 procedure Set_No_Minimize_Eliminate
10786 (N : Node_Id; Val : Boolean := True); -- Flag17
10788 procedure Set_No_Side_Effect_Removal
10789 (N : Node_Id; Val : Boolean := True); -- Flag1
10791 procedure Set_No_Truncation
10792 (N : Node_Id; Val : Boolean := True); -- Flag17
10794 procedure Set_Non_Aliased_Prefix
10795 (N : Node_Id; Val : Boolean := True); -- Flag18
10797 procedure Set_Null_Excluding_Subtype
10798 (N : Node_Id; Val : Boolean := True); -- Flag16
10800 procedure Set_Null_Exclusion_Present
10801 (N : Node_Id; Val : Boolean := True); -- Flag11
10803 procedure Set_Null_Exclusion_In_Return_Present
10804 (N : Node_Id; Val : Boolean := True); -- Flag14
10806 procedure Set_Null_Present
10807 (N : Node_Id; Val : Boolean := True); -- Flag13
10809 procedure Set_Null_Record_Present
10810 (N : Node_Id; Val : Boolean := True); -- Flag17
10812 procedure Set_Null_Statement
10813 (N : Node_Id; Val : Node_Id); -- Node2
10815 procedure Set_Object_Definition
10816 (N : Node_Id; Val : Node_Id); -- Node4
10818 procedure Set_Of_Present
10819 (N : Node_Id; Val : Boolean := True); -- Flag16
10821 procedure Set_Original_Discriminant
10822 (N : Node_Id; Val : Node_Id); -- Node2
10824 procedure Set_Original_Entity
10825 (N : Node_Id; Val : Entity_Id); -- Node2
10827 procedure Set_Others_Discrete_Choices
10828 (N : Node_Id; Val : List_Id); -- List1
10830 procedure Set_Out_Present
10831 (N : Node_Id; Val : Boolean := True); -- Flag17
10833 procedure Set_Parameter_Associations
10834 (N : Node_Id; Val : List_Id); -- List3
10836 procedure Set_Parameter_Specifications
10837 (N : Node_Id; Val : List_Id); -- List3
10839 procedure Set_Parameter_Type
10840 (N : Node_Id; Val : Node_Id); -- Node2
10842 procedure Set_Parent_Spec
10843 (N : Node_Id; Val : Node_Id); -- Node4
10845 procedure Set_Position
10846 (N : Node_Id; Val : Node_Id); -- Node2
10848 procedure Set_Pragma_Argument_Associations
10849 (N : Node_Id; Val : List_Id); -- List2
10851 procedure Set_Pragma_Identifier
10852 (N : Node_Id; Val : Node_Id); -- Node4
10854 procedure Set_Pragmas_After
10855 (N : Node_Id; Val : List_Id); -- List5
10857 procedure Set_Pragmas_Before
10858 (N : Node_Id; Val : List_Id); -- List4
10860 procedure Set_Pre_Post_Conditions
10861 (N : Node_Id; Val : Node_Id); -- Node1
10863 procedure Set_Prefix
10864 (N : Node_Id; Val : Node_Id); -- Node3
10866 procedure Set_Premature_Use
10867 (N : Node_Id; Val : Node_Id); -- Node5
10869 procedure Set_Present_Expr
10870 (N : Node_Id; Val : Uint); -- Uint3
10872 procedure Set_Prev_Ids
10873 (N : Node_Id; Val : Boolean := True); -- Flag6
10875 procedure Set_Print_In_Hex
10876 (N : Node_Id; Val : Boolean := True); -- Flag13
10878 procedure Set_Private_Declarations
10879 (N : Node_Id; Val : List_Id); -- List3
10881 procedure Set_Private_Present
10882 (N : Node_Id; Val : Boolean := True); -- Flag15
10884 procedure Set_Procedure_To_Call
10885 (N : Node_Id; Val : Node_Id); -- Node2
10887 procedure Set_Proper_Body
10888 (N : Node_Id; Val : Node_Id); -- Node1
10890 procedure Set_Protected_Definition
10891 (N : Node_Id; Val : Node_Id); -- Node3
10893 procedure Set_Protected_Present
10894 (N : Node_Id; Val : Boolean := True); -- Flag6
10896 procedure Set_Raises_Constraint_Error
10897 (N : Node_Id; Val : Boolean := True); -- Flag7
10899 procedure Set_Range_Constraint
10900 (N : Node_Id; Val : Node_Id); -- Node4
10902 procedure Set_Range_Expression
10903 (N : Node_Id; Val : Node_Id); -- Node4
10905 procedure Set_Real_Range_Specification
10906 (N : Node_Id; Val : Node_Id); -- Node4
10908 procedure Set_Realval
10909 (N : Node_Id; Val : Ureal); -- Ureal3
10911 procedure Set_Reason
10912 (N : Node_Id; Val : Uint); -- Uint3
10914 procedure Set_Record_Extension_Part
10915 (N : Node_Id; Val : Node_Id); -- Node3
10917 procedure Set_Redundant_Use
10918 (N : Node_Id; Val : Boolean := True); -- Flag13
10920 procedure Set_Renaming_Exception
10921 (N : Node_Id; Val : Node_Id); -- Node2
10923 procedure Set_Result_Definition
10924 (N : Node_Id; Val : Node_Id); -- Node4
10926 procedure Set_Return_Object_Declarations
10927 (N : Node_Id; Val : List_Id); -- List3
10929 procedure Set_Return_Statement_Entity
10930 (N : Node_Id; Val : Node_Id); -- Node5
10932 procedure Set_Reverse_Present
10933 (N : Node_Id; Val : Boolean := True); -- Flag15
10935 procedure Set_Right_Opnd
10936 (N : Node_Id; Val : Node_Id); -- Node3
10938 procedure Set_Rounded_Result
10939 (N : Node_Id; Val : Boolean := True); -- Flag18
10941 procedure Set_SCIL_Controlling_Tag
10942 (N : Node_Id; Val : Node_Id); -- Node5
10944 procedure Set_SCIL_Entity
10945 (N : Node_Id; Val : Node_Id); -- Node4
10947 procedure Set_SCIL_Tag_Value
10948 (N : Node_Id; Val : Node_Id); -- Node5
10950 procedure Set_SCIL_Target_Prim
10951 (N : Node_Id; Val : Node_Id); -- Node2
10953 procedure Set_Scope
10954 (N : Node_Id; Val : Node_Id); -- Node3
10956 procedure Set_Select_Alternatives
10957 (N : Node_Id; Val : List_Id); -- List1
10959 procedure Set_Selector_Name
10960 (N : Node_Id; Val : Node_Id); -- Node2
10962 procedure Set_Selector_Names
10963 (N : Node_Id; Val : List_Id); -- List1
10965 procedure Set_Shift_Count_OK
10966 (N : Node_Id; Val : Boolean := True); -- Flag4
10968 procedure Set_Source_Type
10969 (N : Node_Id; Val : Entity_Id); -- Node1
10971 procedure Set_Specification
10972 (N : Node_Id; Val : Node_Id); -- Node1
10974 procedure Set_Split_PPC
10975 (N : Node_Id; Val : Boolean); -- Flag17
10977 procedure Set_Statements
10978 (N : Node_Id; Val : List_Id); -- List3
10980 procedure Set_Storage_Pool
10981 (N : Node_Id; Val : Node_Id); -- Node1
10983 procedure Set_Subpool_Handle_Name
10984 (N : Node_Id; Val : Node_Id); -- Node4
10986 procedure Set_Strval
10987 (N : Node_Id; Val : String_Id); -- Str3
10989 procedure Set_Subtype_Indication
10990 (N : Node_Id; Val : Node_Id); -- Node5
10992 procedure Set_Subtype_Mark
10993 (N : Node_Id; Val : Node_Id); -- Node4
10995 procedure Set_Subtype_Marks
10996 (N : Node_Id; Val : List_Id); -- List2
10998 procedure Set_Suppress_Assignment_Checks
10999 (N : Node_Id; Val : Boolean := True); -- Flag18
11001 procedure Set_Suppress_Loop_Warnings
11002 (N : Node_Id; Val : Boolean := True); -- Flag17
11004 procedure Set_Synchronized_Present
11005 (N : Node_Id; Val : Boolean := True); -- Flag7
11007 procedure Set_Tagged_Present
11008 (N : Node_Id; Val : Boolean := True); -- Flag15
11010 procedure Set_Target_Type
11011 (N : Node_Id; Val : Entity_Id); -- Node2
11013 procedure Set_Task_Definition
11014 (N : Node_Id; Val : Node_Id); -- Node3
11016 procedure Set_Task_Present
11017 (N : Node_Id; Val : Boolean := True); -- Flag5
11019 procedure Set_Then_Actions
11020 (N : Node_Id; Val : List_Id); -- List2
11022 procedure Set_Then_Statements
11023 (N : Node_Id; Val : List_Id); -- List2
11025 procedure Set_Treat_Fixed_As_Integer
11026 (N : Node_Id; Val : Boolean := True); -- Flag14
11028 procedure Set_Triggering_Alternative
11029 (N : Node_Id; Val : Node_Id); -- Node1
11031 procedure Set_Triggering_Statement
11032 (N : Node_Id; Val : Node_Id); -- Node1
11034 procedure Set_TSS_Elist
11035 (N : Node_Id; Val : Elist_Id); -- Elist3
11037 procedure Set_Type_Definition
11038 (N : Node_Id; Val : Node_Id); -- Node3
11040 procedure Set_Uneval_Old_Accept
11041 (N : Node_Id; Val : Boolean := True); -- Flag7
11043 procedure Set_Uneval_Old_Warn
11044 (N : Node_Id; Val : Boolean := True); -- Flag18
11046 procedure Set_Unit
11047 (N : Node_Id; Val : Node_Id); -- Node2
11049 procedure Set_Unknown_Discriminants_Present
11050 (N : Node_Id; Val : Boolean := True); -- Flag13
11052 procedure Set_Unreferenced_In_Spec
11053 (N : Node_Id; Val : Boolean := True); -- Flag7
11055 procedure Set_Variant_Part
11056 (N : Node_Id; Val : Node_Id); -- Node4
11058 procedure Set_Variants
11059 (N : Node_Id; Val : List_Id); -- List1
11061 procedure Set_Visible_Declarations
11062 (N : Node_Id; Val : List_Id); -- List2
11064 procedure Set_Uninitialized_Variable
11065 (N : Node_Id; Val : Node_Id); -- Node3
11067 procedure Set_Used_Operations
11068 (N : Node_Id; Val : Elist_Id); -- Elist5
11070 procedure Set_Was_Expression_Function
11071 (N : Node_Id; Val : Boolean := True); -- Flag18
11073 procedure Set_Was_Originally_Stub
11074 (N : Node_Id; Val : Boolean := True); -- Flag13
11076 procedure Set_Withed_Body
11077 (N : Node_Id; Val : Node_Id); -- Node1
11079 -------------------------
11080 -- Iterator Procedures --
11081 -------------------------
11083 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11085 procedure Next_Entity (N : in out Node_Id);
11086 procedure Next_Named_Actual (N : in out Node_Id);
11087 procedure Next_Rep_Item (N : in out Node_Id);
11088 procedure Next_Use_Clause (N : in out Node_Id);
11090 -------------------------------------------
11091 -- Miscellaneous Tree Access Subprograms --
11092 -------------------------------------------
11094 function End_Location (N : Node_Id) return Source_Ptr;
11095 -- N is an N_If_Statement or N_Case_Statement node, and this function
11096 -- returns the location of the IF token in the END IF sequence by
11097 -- translating the value of the End_Span field.
11099 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11100 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11101 -- the End_Span field to correspond to the given value S. In other words,
11102 -- End_Span is set to the difference between S and Sloc (N), the starting
11103 -- location.
11105 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11106 -- Given an argument to a pragma Arg, this function returns the expression
11107 -- for the argument. This is Arg itself, or, in the case where Arg is a
11108 -- pragma argument association node, the expression from this node.
11110 --------------------------------
11111 -- Node_Kind Membership Tests --
11112 --------------------------------
11114 -- The following functions allow a convenient notation for testing whether
11115 -- a Node_Kind value matches any one of a list of possible values. In each
11116 -- case True is returned if the given T argument is equal to any of the V
11117 -- arguments. Note that there is a similar set of functions defined in
11118 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11120 function Nkind_In
11121 (T : Node_Kind;
11122 V1 : Node_Kind;
11123 V2 : Node_Kind) return Boolean;
11125 function Nkind_In
11126 (T : Node_Kind;
11127 V1 : Node_Kind;
11128 V2 : Node_Kind;
11129 V3 : Node_Kind) return Boolean;
11131 function Nkind_In
11132 (T : Node_Kind;
11133 V1 : Node_Kind;
11134 V2 : Node_Kind;
11135 V3 : Node_Kind;
11136 V4 : Node_Kind) return Boolean;
11138 function Nkind_In
11139 (T : Node_Kind;
11140 V1 : Node_Kind;
11141 V2 : Node_Kind;
11142 V3 : Node_Kind;
11143 V4 : Node_Kind;
11144 V5 : Node_Kind) return Boolean;
11146 function Nkind_In
11147 (T : Node_Kind;
11148 V1 : Node_Kind;
11149 V2 : Node_Kind;
11150 V3 : Node_Kind;
11151 V4 : Node_Kind;
11152 V5 : Node_Kind;
11153 V6 : Node_Kind) return Boolean;
11155 function Nkind_In
11156 (T : Node_Kind;
11157 V1 : Node_Kind;
11158 V2 : Node_Kind;
11159 V3 : Node_Kind;
11160 V4 : Node_Kind;
11161 V5 : Node_Kind;
11162 V6 : Node_Kind;
11163 V7 : Node_Kind) return Boolean;
11165 function Nkind_In
11166 (T : Node_Kind;
11167 V1 : Node_Kind;
11168 V2 : Node_Kind;
11169 V3 : Node_Kind;
11170 V4 : Node_Kind;
11171 V5 : Node_Kind;
11172 V6 : Node_Kind;
11173 V7 : Node_Kind;
11174 V8 : Node_Kind) return Boolean;
11176 function Nkind_In
11177 (T : Node_Kind;
11178 V1 : Node_Kind;
11179 V2 : Node_Kind;
11180 V3 : Node_Kind;
11181 V4 : Node_Kind;
11182 V5 : Node_Kind;
11183 V6 : Node_Kind;
11184 V7 : Node_Kind;
11185 V8 : Node_Kind;
11186 V9 : Node_Kind) return Boolean;
11188 pragma Inline (Nkind_In);
11189 -- Inline all above functions
11191 -----------------------
11192 -- Utility Functions --
11193 -----------------------
11195 procedure Map_Pragma_Name (From, To : Name_Id);
11196 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11197 -- From to pragma name To, so From can be used as a synonym for To.
11199 Too_Many_Pragma_Mappings : exception;
11200 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11201 -- programs will use it at all, and those that do will use it approximately
11202 -- once or twice.
11204 function Pragma_Name (N : Node_Id) return Name_Id;
11205 -- Obtain the name of pragma N from the Chars field of its identifier. If
11206 -- the pragma has been renamed using Rename_Pragma, this routine returns
11207 -- the name of the renaming.
11209 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11210 -- Obtain the name of pragma N from the Chars field of its identifier. This
11211 -- form of name extraction does not take into account renamings performed
11212 -- by Rename_Pragma.
11214 -----------------------------
11215 -- Syntactic Parent Tables --
11216 -----------------------------
11218 -- These tables show for each node, and for each of the five fields,
11219 -- whether the corresponding field is syntactic (True) or semantic (False).
11220 -- Unused entries are also set to False.
11222 subtype Field_Num is Natural range 1 .. 5;
11224 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11226 -- Following entries can be built automatically from the sinfo sources
11227 -- using the makeisf utility (currently this program is in spitbol).
11229 N_Identifier =>
11230 (1 => True, -- Chars (Name1)
11231 2 => False, -- Original_Discriminant (Node2-Sem)
11232 3 => False, -- unused
11233 4 => False, -- Entity (Node4-Sem)
11234 5 => False), -- Etype (Node5-Sem)
11236 N_Integer_Literal =>
11237 (1 => False, -- unused
11238 2 => False, -- Original_Entity (Node2-Sem)
11239 3 => True, -- Intval (Uint3)
11240 4 => False, -- unused
11241 5 => False), -- Etype (Node5-Sem)
11243 N_Real_Literal =>
11244 (1 => False, -- unused
11245 2 => False, -- Original_Entity (Node2-Sem)
11246 3 => True, -- Realval (Ureal3)
11247 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11248 5 => False), -- Etype (Node5-Sem)
11250 N_Character_Literal =>
11251 (1 => True, -- Chars (Name1)
11252 2 => True, -- Char_Literal_Value (Uint2)
11253 3 => False, -- unused
11254 4 => False, -- Entity (Node4-Sem)
11255 5 => False), -- Etype (Node5-Sem)
11257 N_String_Literal =>
11258 (1 => False, -- unused
11259 2 => False, -- unused
11260 3 => True, -- Strval (Str3)
11261 4 => False, -- unused
11262 5 => False), -- Etype (Node5-Sem)
11264 N_Pragma =>
11265 (1 => False, -- Next_Pragma (Node1-Sem)
11266 2 => True, -- Pragma_Argument_Associations (List2)
11267 3 => False, -- Corresponding_Aspect (Node3-Sem)
11268 4 => True, -- Pragma_Identifier (Node4)
11269 5 => False), -- Next_Rep_Item (Node5-Sem)
11271 N_Pragma_Argument_Association =>
11272 (1 => True, -- Chars (Name1)
11273 2 => False, -- Expression_Copy (Node2-Sem)
11274 3 => True, -- Expression (Node3)
11275 4 => False, -- unused
11276 5 => False), -- unused
11278 N_Defining_Identifier =>
11279 (1 => True, -- Chars (Name1)
11280 2 => False, -- Next_Entity (Node2-Sem)
11281 3 => False, -- Scope (Node3-Sem)
11282 4 => False, -- unused
11283 5 => False), -- Etype (Node5-Sem)
11285 N_Full_Type_Declaration =>
11286 (1 => True, -- Defining_Identifier (Node1)
11287 2 => False, -- Incomplete_View (Node2-Sem)
11288 3 => True, -- Type_Definition (Node3)
11289 4 => True, -- Discriminant_Specifications (List4)
11290 5 => False), -- unused
11292 N_Subtype_Declaration =>
11293 (1 => True, -- Defining_Identifier (Node1)
11294 2 => False, -- unused
11295 3 => False, -- unused
11296 4 => False, -- Generic_Parent_Type (Node4-Sem)
11297 5 => True), -- Subtype_Indication (Node5)
11299 N_Subtype_Indication =>
11300 (1 => False, -- unused
11301 2 => False, -- unused
11302 3 => True, -- Constraint (Node3)
11303 4 => True, -- Subtype_Mark (Node4)
11304 5 => False), -- Etype (Node5-Sem)
11306 N_Object_Declaration =>
11307 (1 => True, -- Defining_Identifier (Node1)
11308 2 => False, -- Handler_List_Entry (Node2-Sem)
11309 3 => True, -- Expression (Node3)
11310 4 => True, -- Object_Definition (Node4)
11311 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11313 N_Number_Declaration =>
11314 (1 => True, -- Defining_Identifier (Node1)
11315 2 => False, -- unused
11316 3 => True, -- Expression (Node3)
11317 4 => False, -- unused
11318 5 => False), -- unused
11320 N_Derived_Type_Definition =>
11321 (1 => False, -- unused
11322 2 => True, -- Interface_List (List2)
11323 3 => True, -- Record_Extension_Part (Node3)
11324 4 => False, -- unused
11325 5 => True), -- Subtype_Indication (Node5)
11327 N_Range_Constraint =>
11328 (1 => False, -- unused
11329 2 => False, -- unused
11330 3 => False, -- unused
11331 4 => True, -- Range_Expression (Node4)
11332 5 => False), -- unused
11334 N_Range =>
11335 (1 => True, -- Low_Bound (Node1)
11336 2 => True, -- High_Bound (Node2)
11337 3 => False, -- unused
11338 4 => False, -- unused
11339 5 => False), -- Etype (Node5-Sem)
11341 N_Enumeration_Type_Definition =>
11342 (1 => True, -- Literals (List1)
11343 2 => False, -- unused
11344 3 => False, -- unused
11345 4 => True, -- End_Label (Node4)
11346 5 => False), -- unused
11348 N_Defining_Character_Literal =>
11349 (1 => True, -- Chars (Name1)
11350 2 => False, -- Next_Entity (Node2-Sem)
11351 3 => False, -- Scope (Node3-Sem)
11352 4 => False, -- unused
11353 5 => False), -- Etype (Node5-Sem)
11355 N_Signed_Integer_Type_Definition =>
11356 (1 => True, -- Low_Bound (Node1)
11357 2 => True, -- High_Bound (Node2)
11358 3 => False, -- unused
11359 4 => False, -- unused
11360 5 => False), -- unused
11362 N_Modular_Type_Definition =>
11363 (1 => False, -- unused
11364 2 => False, -- unused
11365 3 => True, -- Expression (Node3)
11366 4 => False, -- unused
11367 5 => False), -- unused
11369 N_Floating_Point_Definition =>
11370 (1 => False, -- unused
11371 2 => True, -- Digits_Expression (Node2)
11372 3 => False, -- unused
11373 4 => True, -- Real_Range_Specification (Node4)
11374 5 => False), -- unused
11376 N_Real_Range_Specification =>
11377 (1 => True, -- Low_Bound (Node1)
11378 2 => True, -- High_Bound (Node2)
11379 3 => False, -- unused
11380 4 => False, -- unused
11381 5 => False), -- unused
11383 N_Ordinary_Fixed_Point_Definition =>
11384 (1 => False, -- unused
11385 2 => False, -- unused
11386 3 => True, -- Delta_Expression (Node3)
11387 4 => True, -- Real_Range_Specification (Node4)
11388 5 => False), -- unused
11390 N_Decimal_Fixed_Point_Definition =>
11391 (1 => False, -- unused
11392 2 => True, -- Digits_Expression (Node2)
11393 3 => True, -- Delta_Expression (Node3)
11394 4 => True, -- Real_Range_Specification (Node4)
11395 5 => False), -- unused
11397 N_Digits_Constraint =>
11398 (1 => False, -- unused
11399 2 => True, -- Digits_Expression (Node2)
11400 3 => False, -- unused
11401 4 => True, -- Range_Constraint (Node4)
11402 5 => False), -- unused
11404 N_Unconstrained_Array_Definition =>
11405 (1 => False, -- unused
11406 2 => True, -- Subtype_Marks (List2)
11407 3 => False, -- unused
11408 4 => True, -- Component_Definition (Node4)
11409 5 => False), -- unused
11411 N_Constrained_Array_Definition =>
11412 (1 => False, -- unused
11413 2 => True, -- Discrete_Subtype_Definitions (List2)
11414 3 => False, -- unused
11415 4 => True, -- Component_Definition (Node4)
11416 5 => False), -- unused
11418 N_Component_Definition =>
11419 (1 => False, -- unused
11420 2 => False, -- unused
11421 3 => True, -- Access_Definition (Node3)
11422 4 => False, -- unused
11423 5 => True), -- Subtype_Indication (Node5)
11425 N_Discriminant_Specification =>
11426 (1 => True, -- Defining_Identifier (Node1)
11427 2 => False, -- unused
11428 3 => True, -- Expression (Node3)
11429 4 => False, -- unused
11430 5 => True), -- Discriminant_Type (Node5)
11432 N_Index_Or_Discriminant_Constraint =>
11433 (1 => True, -- Constraints (List1)
11434 2 => False, -- unused
11435 3 => False, -- unused
11436 4 => False, -- unused
11437 5 => False), -- unused
11439 N_Discriminant_Association =>
11440 (1 => True, -- Selector_Names (List1)
11441 2 => False, -- unused
11442 3 => True, -- Expression (Node3)
11443 4 => False, -- unused
11444 5 => False), -- unused
11446 N_Record_Definition =>
11447 (1 => True, -- Component_List (Node1)
11448 2 => True, -- Interface_List (List2)
11449 3 => False, -- unused
11450 4 => True, -- End_Label (Node4)
11451 5 => False), -- unused
11453 N_Component_List =>
11454 (1 => False, -- unused
11455 2 => False, -- unused
11456 3 => True, -- Component_Items (List3)
11457 4 => True, -- Variant_Part (Node4)
11458 5 => False), -- unused
11460 N_Component_Declaration =>
11461 (1 => True, -- Defining_Identifier (Node1)
11462 2 => False, -- unused
11463 3 => True, -- Expression (Node3)
11464 4 => True, -- Component_Definition (Node4)
11465 5 => False), -- unused
11467 N_Variant_Part =>
11468 (1 => True, -- Variants (List1)
11469 2 => True, -- Name (Node2)
11470 3 => False, -- unused
11471 4 => False, -- unused
11472 5 => False), -- unused
11474 N_Variant =>
11475 (1 => True, -- Component_List (Node1)
11476 2 => False, -- Enclosing_Variant (Node2-Sem)
11477 3 => False, -- Present_Expr (Uint3-Sem)
11478 4 => True, -- Discrete_Choices (List4)
11479 5 => False), -- Dcheck_Function (Node5-Sem)
11481 N_Others_Choice =>
11482 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11483 2 => False, -- unused
11484 3 => False, -- unused
11485 4 => False, -- unused
11486 5 => False), -- unused
11488 N_Access_To_Object_Definition =>
11489 (1 => False, -- unused
11490 2 => False, -- unused
11491 3 => False, -- unused
11492 4 => False, -- unused
11493 5 => True), -- Subtype_Indication (Node5)
11495 N_Access_Function_Definition =>
11496 (1 => False, -- unused
11497 2 => False, -- unused
11498 3 => True, -- Parameter_Specifications (List3)
11499 4 => True, -- Result_Definition (Node4)
11500 5 => False), -- unused
11502 N_Access_Procedure_Definition =>
11503 (1 => False, -- unused
11504 2 => False, -- unused
11505 3 => True, -- Parameter_Specifications (List3)
11506 4 => False, -- unused
11507 5 => False), -- unused
11509 N_Access_Definition =>
11510 (1 => False, -- unused
11511 2 => False, -- unused
11512 3 => True, -- Access_To_Subprogram_Definition (Node3)
11513 4 => True, -- Subtype_Mark (Node4)
11514 5 => False), -- unused
11516 N_Incomplete_Type_Declaration =>
11517 (1 => True, -- Defining_Identifier (Node1)
11518 2 => False, -- unused
11519 3 => False, -- unused
11520 4 => True, -- Discriminant_Specifications (List4)
11521 5 => False), -- Premature_Use
11523 N_Explicit_Dereference =>
11524 (1 => False, -- unused
11525 2 => False, -- unused
11526 3 => True, -- Prefix (Node3)
11527 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11528 5 => False), -- Etype (Node5-Sem)
11530 N_Indexed_Component =>
11531 (1 => True, -- Expressions (List1)
11532 2 => False, -- unused
11533 3 => True, -- Prefix (Node3)
11534 4 => False, -- Generalized_Indexing (Node4-Sem)
11535 5 => False), -- Etype (Node5-Sem)
11537 N_Slice =>
11538 (1 => False, -- unused
11539 2 => False, -- unused
11540 3 => True, -- Prefix (Node3)
11541 4 => True, -- Discrete_Range (Node4)
11542 5 => False), -- Etype (Node5-Sem)
11544 N_Selected_Component =>
11545 (1 => False, -- unused
11546 2 => True, -- Selector_Name (Node2)
11547 3 => True, -- Prefix (Node3)
11548 4 => False, -- unused
11549 5 => False), -- Etype (Node5-Sem)
11551 N_Attribute_Reference =>
11552 (1 => True, -- Expressions (List1)
11553 2 => True, -- Attribute_Name (Name2)
11554 3 => True, -- Prefix (Node3)
11555 4 => False, -- Entity (Node4-Sem)
11556 5 => False), -- Etype (Node5-Sem)
11558 N_Aggregate =>
11559 (1 => True, -- Expressions (List1)
11560 2 => True, -- Component_Associations (List2)
11561 3 => False, -- Aggregate_Bounds (Node3-Sem)
11562 4 => False, -- unused
11563 5 => False), -- Etype (Node5-Sem)
11565 N_Component_Association =>
11566 (1 => True, -- Choices (List1)
11567 2 => False, -- Loop_Actions (List2-Sem)
11568 3 => True, -- Expression (Node3)
11569 4 => False, -- unused
11570 5 => False), -- unused
11572 N_Iterated_Component_Association =>
11573 (1 => True, -- Defining_Identifier (Node1)
11574 2 => False, -- unused
11575 3 => True, -- Expression (Node3)
11576 4 => True, -- Discrete_Choices (List4)
11577 5 => False), -- unused
11579 N_Delta_Aggregate =>
11580 (1 => False, -- Expressions (List1)
11581 2 => True, -- Component_Associations (List2)
11582 3 => True, -- Expression (Node3)
11583 4 => False, -- Unused
11584 5 => False), -- Etype (Node5-Sem)
11586 N_Extension_Aggregate =>
11587 (1 => True, -- Expressions (List1)
11588 2 => True, -- Component_Associations (List2)
11589 3 => True, -- Ancestor_Part (Node3)
11590 4 => False, -- unused
11591 5 => False), -- Etype (Node5-Sem)
11593 N_Null =>
11594 (1 => False, -- unused
11595 2 => False, -- unused
11596 3 => False, -- unused
11597 4 => False, -- unused
11598 5 => False), -- Etype (Node5-Sem)
11600 N_And_Then =>
11601 (1 => False, -- Actions (List1-Sem)
11602 2 => True, -- Left_Opnd (Node2)
11603 3 => True, -- Right_Opnd (Node3)
11604 4 => False, -- unused
11605 5 => False), -- Etype (Node5-Sem)
11607 N_Or_Else =>
11608 (1 => False, -- Actions (List1-Sem)
11609 2 => True, -- Left_Opnd (Node2)
11610 3 => True, -- Right_Opnd (Node3)
11611 4 => False, -- unused
11612 5 => False), -- Etype (Node5-Sem)
11614 N_In =>
11615 (1 => False, -- unused
11616 2 => True, -- Left_Opnd (Node2)
11617 3 => True, -- Right_Opnd (Node3)
11618 4 => True, -- Alternatives (List4)
11619 5 => False), -- Etype (Node5-Sem)
11621 N_Not_In =>
11622 (1 => False, -- unused
11623 2 => True, -- Left_Opnd (Node2)
11624 3 => True, -- Right_Opnd (Node3)
11625 4 => True, -- Alternatives (List4)
11626 5 => False), -- Etype (Node5-Sem)
11628 N_Op_And =>
11629 (1 => True, -- Chars (Name1)
11630 2 => True, -- Left_Opnd (Node2)
11631 3 => True, -- Right_Opnd (Node3)
11632 4 => False, -- Entity (Node4-Sem)
11633 5 => False), -- Etype (Node5-Sem)
11635 N_Op_Or =>
11636 (1 => True, -- Chars (Name1)
11637 2 => True, -- Left_Opnd (Node2)
11638 3 => True, -- Right_Opnd (Node3)
11639 4 => False, -- Entity (Node4-Sem)
11640 5 => False), -- Etype (Node5-Sem)
11642 N_Op_Xor =>
11643 (1 => True, -- Chars (Name1)
11644 2 => True, -- Left_Opnd (Node2)
11645 3 => True, -- Right_Opnd (Node3)
11646 4 => False, -- Entity (Node4-Sem)
11647 5 => False), -- Etype (Node5-Sem)
11649 N_Op_Eq =>
11650 (1 => True, -- Chars (Name1)
11651 2 => True, -- Left_Opnd (Node2)
11652 3 => True, -- Right_Opnd (Node3)
11653 4 => False, -- Entity (Node4-Sem)
11654 5 => False), -- Etype (Node5-Sem)
11656 N_Op_Ne =>
11657 (1 => True, -- Chars (Name1)
11658 2 => True, -- Left_Opnd (Node2)
11659 3 => True, -- Right_Opnd (Node3)
11660 4 => False, -- Entity (Node4-Sem)
11661 5 => False), -- Etype (Node5-Sem)
11663 N_Op_Lt =>
11664 (1 => True, -- Chars (Name1)
11665 2 => True, -- Left_Opnd (Node2)
11666 3 => True, -- Right_Opnd (Node3)
11667 4 => False, -- Entity (Node4-Sem)
11668 5 => False), -- Etype (Node5-Sem)
11670 N_Op_Le =>
11671 (1 => True, -- Chars (Name1)
11672 2 => True, -- Left_Opnd (Node2)
11673 3 => True, -- Right_Opnd (Node3)
11674 4 => False, -- Entity (Node4-Sem)
11675 5 => False), -- Etype (Node5-Sem)
11677 N_Op_Gt =>
11678 (1 => True, -- Chars (Name1)
11679 2 => True, -- Left_Opnd (Node2)
11680 3 => True, -- Right_Opnd (Node3)
11681 4 => False, -- Entity (Node4-Sem)
11682 5 => False), -- Etype (Node5-Sem)
11684 N_Op_Ge =>
11685 (1 => True, -- Chars (Name1)
11686 2 => True, -- Left_Opnd (Node2)
11687 3 => True, -- Right_Opnd (Node3)
11688 4 => False, -- Entity (Node4-Sem)
11689 5 => False), -- Etype (Node5-Sem)
11691 N_Op_Add =>
11692 (1 => True, -- Chars (Name1)
11693 2 => True, -- Left_Opnd (Node2)
11694 3 => True, -- Right_Opnd (Node3)
11695 4 => False, -- Entity (Node4-Sem)
11696 5 => False), -- Etype (Node5-Sem)
11698 N_Op_Subtract =>
11699 (1 => True, -- Chars (Name1)
11700 2 => True, -- Left_Opnd (Node2)
11701 3 => True, -- Right_Opnd (Node3)
11702 4 => False, -- Entity (Node4-Sem)
11703 5 => False), -- Etype (Node5-Sem)
11705 N_Op_Concat =>
11706 (1 => True, -- Chars (Name1)
11707 2 => True, -- Left_Opnd (Node2)
11708 3 => True, -- Right_Opnd (Node3)
11709 4 => False, -- Entity (Node4-Sem)
11710 5 => False), -- Etype (Node5-Sem)
11712 N_Op_Multiply =>
11713 (1 => True, -- Chars (Name1)
11714 2 => True, -- Left_Opnd (Node2)
11715 3 => True, -- Right_Opnd (Node3)
11716 4 => False, -- Entity (Node4-Sem)
11717 5 => False), -- Etype (Node5-Sem)
11719 N_Op_Divide =>
11720 (1 => True, -- Chars (Name1)
11721 2 => True, -- Left_Opnd (Node2)
11722 3 => True, -- Right_Opnd (Node3)
11723 4 => False, -- Entity (Node4-Sem)
11724 5 => False), -- Etype (Node5-Sem)
11726 N_Op_Mod =>
11727 (1 => True, -- Chars (Name1)
11728 2 => True, -- Left_Opnd (Node2)
11729 3 => True, -- Right_Opnd (Node3)
11730 4 => False, -- Entity (Node4-Sem)
11731 5 => False), -- Etype (Node5-Sem)
11733 N_Op_Rem =>
11734 (1 => True, -- Chars (Name1)
11735 2 => True, -- Left_Opnd (Node2)
11736 3 => True, -- Right_Opnd (Node3)
11737 4 => False, -- Entity (Node4-Sem)
11738 5 => False), -- Etype (Node5-Sem)
11740 N_Op_Expon =>
11741 (1 => True, -- Chars (Name1)
11742 2 => True, -- Left_Opnd (Node2)
11743 3 => True, -- Right_Opnd (Node3)
11744 4 => False, -- Entity (Node4-Sem)
11745 5 => False), -- Etype (Node5-Sem)
11747 N_Op_Plus =>
11748 (1 => True, -- Chars (Name1)
11749 2 => False, -- unused
11750 3 => True, -- Right_Opnd (Node3)
11751 4 => False, -- Entity (Node4-Sem)
11752 5 => False), -- Etype (Node5-Sem)
11754 N_Op_Minus =>
11755 (1 => True, -- Chars (Name1)
11756 2 => False, -- unused
11757 3 => True, -- Right_Opnd (Node3)
11758 4 => False, -- Entity (Node4-Sem)
11759 5 => False), -- Etype (Node5-Sem)
11761 N_Op_Abs =>
11762 (1 => True, -- Chars (Name1)
11763 2 => False, -- unused
11764 3 => True, -- Right_Opnd (Node3)
11765 4 => False, -- Entity (Node4-Sem)
11766 5 => False), -- Etype (Node5-Sem)
11768 N_Op_Not =>
11769 (1 => True, -- Chars (Name1)
11770 2 => False, -- unused
11771 3 => True, -- Right_Opnd (Node3)
11772 4 => False, -- Entity (Node4-Sem)
11773 5 => False), -- Etype (Node5-Sem)
11775 N_Type_Conversion =>
11776 (1 => False, -- unused
11777 2 => False, -- unused
11778 3 => True, -- Expression (Node3)
11779 4 => True, -- Subtype_Mark (Node4)
11780 5 => False), -- Etype (Node5-Sem)
11782 N_Qualified_Expression =>
11783 (1 => False, -- unused
11784 2 => False, -- unused
11785 3 => True, -- Expression (Node3)
11786 4 => True, -- Subtype_Mark (Node4)
11787 5 => False), -- Etype (Node5-Sem)
11789 N_Quantified_Expression =>
11790 (1 => True, -- Condition (Node1)
11791 2 => True, -- Iterator_Specification
11792 3 => False, -- unused
11793 4 => True, -- Loop_Parameter_Specification (Node4)
11794 5 => False), -- Etype (Node5-Sem)
11796 N_Allocator =>
11797 (1 => False, -- Storage_Pool (Node1-Sem)
11798 2 => False, -- Procedure_To_Call (Node2-Sem)
11799 3 => True, -- Expression (Node3)
11800 4 => True, -- Subpool_Handle_Name (Node4)
11801 5 => False), -- Etype (Node5-Sem)
11803 N_Null_Statement =>
11804 (1 => False, -- unused
11805 2 => False, -- unused
11806 3 => False, -- unused
11807 4 => False, -- unused
11808 5 => False), -- unused
11810 N_Label =>
11811 (1 => True, -- Identifier (Node1)
11812 2 => False, -- unused
11813 3 => False, -- unused
11814 4 => False, -- unused
11815 5 => False), -- unused
11817 N_Assignment_Statement =>
11818 (1 => False, -- unused
11819 2 => True, -- Name (Node2)
11820 3 => True, -- Expression (Node3)
11821 4 => False, -- unused
11822 5 => False), -- unused
11824 N_Target_Name =>
11825 (1 => False, -- unused
11826 2 => False, -- unused
11827 3 => False, -- unused
11828 4 => False, -- unused
11829 5 => False), -- Etype (Node5-Sem)
11831 N_If_Statement =>
11832 (1 => True, -- Condition (Node1)
11833 2 => True, -- Then_Statements (List2)
11834 3 => True, -- Elsif_Parts (List3)
11835 4 => True, -- Else_Statements (List4)
11836 5 => True), -- End_Span (Uint5)
11838 N_Elsif_Part =>
11839 (1 => True, -- Condition (Node1)
11840 2 => True, -- Then_Statements (List2)
11841 3 => False, -- Condition_Actions (List3-Sem)
11842 4 => False, -- unused
11843 5 => False), -- unused
11845 N_Case_Expression =>
11846 (1 => False, -- unused
11847 2 => False, -- unused
11848 3 => True, -- Expression (Node3)
11849 4 => True, -- Alternatives (List4)
11850 5 => False), -- unused
11852 N_Case_Expression_Alternative =>
11853 (1 => False, -- Actions (List1-Sem)
11854 2 => False, -- unused
11855 3 => True, -- Statements (List3)
11856 4 => True, -- Expression (Node4)
11857 5 => False), -- unused
11859 N_Case_Statement =>
11860 (1 => False, -- unused
11861 2 => False, -- unused
11862 3 => True, -- Expression (Node3)
11863 4 => True, -- Alternatives (List4)
11864 5 => True), -- End_Span (Uint5)
11866 N_Case_Statement_Alternative =>
11867 (1 => False, -- unused
11868 2 => False, -- unused
11869 3 => True, -- Statements (List3)
11870 4 => True, -- Discrete_Choices (List4)
11871 5 => False), -- unused
11873 N_Loop_Statement =>
11874 (1 => True, -- Identifier (Node1)
11875 2 => True, -- Iteration_Scheme (Node2)
11876 3 => True, -- Statements (List3)
11877 4 => True, -- End_Label (Node4)
11878 5 => False), -- unused
11880 N_Iteration_Scheme =>
11881 (1 => True, -- Condition (Node1)
11882 2 => True, -- Iterator_Specification (Node2)
11883 3 => False, -- Condition_Actions (List3-Sem)
11884 4 => True, -- Loop_Parameter_Specification (Node4)
11885 5 => False), -- unused
11887 N_Loop_Parameter_Specification =>
11888 (1 => True, -- Defining_Identifier (Node1)
11889 2 => False, -- unused
11890 3 => False, -- unused
11891 4 => True, -- Discrete_Subtype_Definition (Node4)
11892 5 => False), -- unused
11894 N_Iterator_Specification =>
11895 (1 => True, -- Defining_Identifier (Node1)
11896 2 => True, -- Name (Node2)
11897 3 => False, -- Unused
11898 4 => False, -- Unused
11899 5 => True), -- Subtype_Indication (Node5)
11901 N_Block_Statement =>
11902 (1 => True, -- Identifier (Node1)
11903 2 => True, -- Declarations (List2)
11904 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11905 4 => True, -- Handled_Statement_Sequence (Node4)
11906 5 => False), -- unused
11908 N_Exit_Statement =>
11909 (1 => True, -- Condition (Node1)
11910 2 => True, -- Name (Node2)
11911 3 => False, -- unused
11912 4 => False, -- unused
11913 5 => False), -- unused
11915 N_Goto_Statement =>
11916 (1 => False, -- unused
11917 2 => True, -- Name (Node2)
11918 3 => False, -- unused
11919 4 => False, -- unused
11920 5 => False), -- unused
11922 N_Subprogram_Declaration =>
11923 (1 => True, -- Specification (Node1)
11924 2 => False, -- unused
11925 3 => False, -- Body_To_Inline (Node3-Sem)
11926 4 => False, -- Parent_Spec (Node4-Sem)
11927 5 => False), -- Corresponding_Body (Node5-Sem)
11929 N_Abstract_Subprogram_Declaration =>
11930 (1 => True, -- Specification (Node1)
11931 2 => False, -- unused
11932 3 => False, -- unused
11933 4 => False, -- unused
11934 5 => False), -- unused
11936 N_Function_Specification =>
11937 (1 => True, -- Defining_Unit_Name (Node1)
11938 2 => False, -- unused
11939 3 => True, -- Parameter_Specifications (List3)
11940 4 => True, -- Result_Definition (Node4)
11941 5 => False), -- Generic_Parent (Node5-Sem)
11943 N_Procedure_Specification =>
11944 (1 => True, -- Defining_Unit_Name (Node1)
11945 2 => False, -- Null_Statement (Node2-Sem)
11946 3 => True, -- Parameter_Specifications (List3)
11947 4 => False, -- unused
11948 5 => False), -- Generic_Parent (Node5-Sem)
11950 N_Designator =>
11951 (1 => True, -- Identifier (Node1)
11952 2 => True, -- Name (Node2)
11953 3 => False, -- unused
11954 4 => False, -- unused
11955 5 => False), -- unused
11957 N_Defining_Program_Unit_Name =>
11958 (1 => True, -- Defining_Identifier (Node1)
11959 2 => True, -- Name (Node2)
11960 3 => False, -- unused
11961 4 => False, -- unused
11962 5 => False), -- unused
11964 N_Operator_Symbol =>
11965 (1 => True, -- Chars (Name1)
11966 2 => False, -- unused
11967 3 => True, -- Strval (Str3)
11968 4 => False, -- Entity (Node4-Sem)
11969 5 => False), -- Etype (Node5-Sem)
11971 N_Defining_Operator_Symbol =>
11972 (1 => True, -- Chars (Name1)
11973 2 => False, -- Next_Entity (Node2-Sem)
11974 3 => False, -- Scope (Node3-Sem)
11975 4 => False, -- unused
11976 5 => False), -- Etype (Node5-Sem)
11978 N_Parameter_Specification =>
11979 (1 => True, -- Defining_Identifier (Node1)
11980 2 => True, -- Parameter_Type (Node2)
11981 3 => True, -- Expression (Node3)
11982 4 => False, -- unused
11983 5 => False), -- Default_Expression (Node5-Sem)
11985 N_Subprogram_Body =>
11986 (1 => True, -- Specification (Node1)
11987 2 => True, -- Declarations (List2)
11988 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11989 4 => True, -- Handled_Statement_Sequence (Node4)
11990 5 => False), -- Corresponding_Spec (Node5-Sem)
11992 N_Expression_Function =>
11993 (1 => True, -- Specification (Node1)
11994 2 => False, -- unused
11995 3 => True, -- Expression (Node3)
11996 4 => False, -- unused
11997 5 => False), -- unused
11999 N_Procedure_Call_Statement =>
12000 (1 => False, -- Controlling_Argument (Node1-Sem)
12001 2 => True, -- Name (Node2)
12002 3 => True, -- Parameter_Associations (List3)
12003 4 => False, -- First_Named_Actual (Node4-Sem)
12004 5 => False), -- Etype (Node5-Sem)
12006 N_Function_Call =>
12007 (1 => False, -- Controlling_Argument (Node1-Sem)
12008 2 => True, -- Name (Node2)
12009 3 => True, -- Parameter_Associations (List3)
12010 4 => False, -- First_Named_Actual (Node4-Sem)
12011 5 => False), -- Etype (Node5-Sem)
12013 N_Parameter_Association =>
12014 (1 => False, -- unused
12015 2 => True, -- Selector_Name (Node2)
12016 3 => True, -- Explicit_Actual_Parameter (Node3)
12017 4 => False, -- Next_Named_Actual (Node4-Sem)
12018 5 => False), -- unused
12020 N_Simple_Return_Statement =>
12021 (1 => False, -- Storage_Pool (Node1-Sem)
12022 2 => False, -- Procedure_To_Call (Node2-Sem)
12023 3 => True, -- Expression (Node3)
12024 4 => False, -- unused
12025 5 => False), -- Return_Statement_Entity (Node5-Sem)
12027 N_Extended_Return_Statement =>
12028 (1 => False, -- Storage_Pool (Node1-Sem)
12029 2 => False, -- Procedure_To_Call (Node2-Sem)
12030 3 => True, -- Return_Object_Declarations (List3)
12031 4 => True, -- Handled_Statement_Sequence (Node4)
12032 5 => False), -- Return_Statement_Entity (Node5-Sem)
12034 N_Package_Declaration =>
12035 (1 => True, -- Specification (Node1)
12036 2 => False, -- unused
12037 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12038 4 => False, -- Parent_Spec (Node4-Sem)
12039 5 => False), -- Corresponding_Body (Node5-Sem)
12041 N_Package_Specification =>
12042 (1 => True, -- Defining_Unit_Name (Node1)
12043 2 => True, -- Visible_Declarations (List2)
12044 3 => True, -- Private_Declarations (List3)
12045 4 => True, -- End_Label (Node4)
12046 5 => False), -- Generic_Parent (Node5-Sem)
12048 N_Package_Body =>
12049 (1 => True, -- Defining_Unit_Name (Node1)
12050 2 => True, -- Declarations (List2)
12051 3 => False, -- unused
12052 4 => True, -- Handled_Statement_Sequence (Node4)
12053 5 => False), -- Corresponding_Spec (Node5-Sem)
12055 N_Private_Type_Declaration =>
12056 (1 => True, -- Defining_Identifier (Node1)
12057 2 => False, -- unused
12058 3 => False, -- unused
12059 4 => True, -- Discriminant_Specifications (List4)
12060 5 => False), -- unused
12062 N_Private_Extension_Declaration =>
12063 (1 => True, -- Defining_Identifier (Node1)
12064 2 => True, -- Interface_List (List2)
12065 3 => False, -- unused
12066 4 => True, -- Discriminant_Specifications (List4)
12067 5 => True), -- Subtype_Indication (Node5)
12069 N_Use_Package_Clause =>
12070 (1 => False, -- unused
12071 2 => True, -- Names (List2)
12072 3 => False, -- Next_Use_Clause (Node3-Sem)
12073 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
12074 5 => False), -- unused
12076 N_Use_Type_Clause =>
12077 (1 => False, -- unused
12078 2 => True, -- Subtype_Marks (List2)
12079 3 => False, -- Next_Use_Clause (Node3-Sem)
12080 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
12081 5 => False), -- unused
12083 N_Object_Renaming_Declaration =>
12084 (1 => True, -- Defining_Identifier (Node1)
12085 2 => True, -- Name (Node2)
12086 3 => True, -- Access_Definition (Node3)
12087 4 => True, -- Subtype_Mark (Node4)
12088 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12090 N_Exception_Renaming_Declaration =>
12091 (1 => True, -- Defining_Identifier (Node1)
12092 2 => True, -- Name (Node2)
12093 3 => False, -- unused
12094 4 => False, -- unused
12095 5 => False), -- unused
12097 N_Package_Renaming_Declaration =>
12098 (1 => True, -- Defining_Unit_Name (Node1)
12099 2 => True, -- Name (Node2)
12100 3 => False, -- unused
12101 4 => False, -- Parent_Spec (Node4-Sem)
12102 5 => False), -- unused
12104 N_Subprogram_Renaming_Declaration =>
12105 (1 => True, -- Specification (Node1)
12106 2 => True, -- Name (Node2)
12107 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12108 4 => False, -- Parent_Spec (Node4-Sem)
12109 5 => False), -- Corresponding_Spec (Node5-Sem)
12111 N_Generic_Package_Renaming_Declaration =>
12112 (1 => True, -- Defining_Unit_Name (Node1)
12113 2 => True, -- Name (Node2)
12114 3 => False, -- unused
12115 4 => False, -- Parent_Spec (Node4-Sem)
12116 5 => False), -- unused
12118 N_Generic_Procedure_Renaming_Declaration =>
12119 (1 => True, -- Defining_Unit_Name (Node1)
12120 2 => True, -- Name (Node2)
12121 3 => False, -- unused
12122 4 => False, -- Parent_Spec (Node4-Sem)
12123 5 => False), -- unused
12125 N_Generic_Function_Renaming_Declaration =>
12126 (1 => True, -- Defining_Unit_Name (Node1)
12127 2 => True, -- Name (Node2)
12128 3 => False, -- unused
12129 4 => False, -- Parent_Spec (Node4-Sem)
12130 5 => False), -- unused
12132 N_Task_Type_Declaration =>
12133 (1 => True, -- Defining_Identifier (Node1)
12134 2 => True, -- Interface_List (List2)
12135 3 => True, -- Task_Definition (Node3)
12136 4 => True, -- Discriminant_Specifications (List4)
12137 5 => False), -- Corresponding_Body (Node5-Sem)
12139 N_Single_Task_Declaration =>
12140 (1 => True, -- Defining_Identifier (Node1)
12141 2 => True, -- Interface_List (List2)
12142 3 => True, -- Task_Definition (Node3)
12143 4 => False, -- unused
12144 5 => False), -- unused
12146 N_Task_Definition =>
12147 (1 => False, -- unused
12148 2 => True, -- Visible_Declarations (List2)
12149 3 => True, -- Private_Declarations (List3)
12150 4 => True, -- End_Label (Node4)
12151 5 => False), -- unused
12153 N_Task_Body =>
12154 (1 => True, -- Defining_Identifier (Node1)
12155 2 => True, -- Declarations (List2)
12156 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12157 4 => True, -- Handled_Statement_Sequence (Node4)
12158 5 => False), -- Corresponding_Spec (Node5-Sem)
12160 N_Protected_Type_Declaration =>
12161 (1 => True, -- Defining_Identifier (Node1)
12162 2 => True, -- Interface_List (List2)
12163 3 => True, -- Protected_Definition (Node3)
12164 4 => True, -- Discriminant_Specifications (List4)
12165 5 => False), -- Corresponding_Body (Node5-Sem)
12167 N_Single_Protected_Declaration =>
12168 (1 => True, -- Defining_Identifier (Node1)
12169 2 => True, -- Interface_List (List2)
12170 3 => True, -- Protected_Definition (Node3)
12171 4 => False, -- unused
12172 5 => False), -- unused
12174 N_Protected_Definition =>
12175 (1 => False, -- unused
12176 2 => True, -- Visible_Declarations (List2)
12177 3 => True, -- Private_Declarations (List3)
12178 4 => True, -- End_Label (Node4)
12179 5 => False), -- unused
12181 N_Protected_Body =>
12182 (1 => True, -- Defining_Identifier (Node1)
12183 2 => True, -- Declarations (List2)
12184 3 => False, -- unused
12185 4 => True, -- End_Label (Node4)
12186 5 => False), -- Corresponding_Spec (Node5-Sem)
12188 N_Entry_Declaration =>
12189 (1 => True, -- Defining_Identifier (Node1)
12190 2 => False, -- unused
12191 3 => True, -- Parameter_Specifications (List3)
12192 4 => True, -- Discrete_Subtype_Definition (Node4)
12193 5 => False), -- Corresponding_Body (Node5-Sem)
12195 N_Accept_Statement =>
12196 (1 => True, -- Entry_Direct_Name (Node1)
12197 2 => True, -- Declarations (List2)
12198 3 => True, -- Parameter_Specifications (List3)
12199 4 => True, -- Handled_Statement_Sequence (Node4)
12200 5 => True), -- Entry_Index (Node5)
12202 N_Entry_Body =>
12203 (1 => True, -- Defining_Identifier (Node1)
12204 2 => True, -- Declarations (List2)
12205 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12206 4 => True, -- Handled_Statement_Sequence (Node4)
12207 5 => True), -- Entry_Body_Formal_Part (Node5)
12209 N_Entry_Body_Formal_Part =>
12210 (1 => True, -- Condition (Node1)
12211 2 => False, -- unused
12212 3 => True, -- Parameter_Specifications (List3)
12213 4 => True, -- Entry_Index_Specification (Node4)
12214 5 => False), -- unused
12216 N_Entry_Index_Specification =>
12217 (1 => True, -- Defining_Identifier (Node1)
12218 2 => False, -- unused
12219 3 => False, -- unused
12220 4 => True, -- Discrete_Subtype_Definition (Node4)
12221 5 => False), -- unused
12223 N_Entry_Call_Statement =>
12224 (1 => False, -- unused
12225 2 => True, -- Name (Node2)
12226 3 => True, -- Parameter_Associations (List3)
12227 4 => False, -- First_Named_Actual (Node4-Sem)
12228 5 => False), -- unused
12230 N_Requeue_Statement =>
12231 (1 => False, -- unused
12232 2 => True, -- Name (Node2)
12233 3 => False, -- unused
12234 4 => False, -- unused
12235 5 => False), -- unused
12237 N_Delay_Until_Statement =>
12238 (1 => False, -- unused
12239 2 => False, -- unused
12240 3 => True, -- Expression (Node3)
12241 4 => False, -- unused
12242 5 => False), -- unused
12244 N_Delay_Relative_Statement =>
12245 (1 => False, -- unused
12246 2 => False, -- unused
12247 3 => True, -- Expression (Node3)
12248 4 => False, -- unused
12249 5 => False), -- unused
12251 N_Selective_Accept =>
12252 (1 => True, -- Select_Alternatives (List1)
12253 2 => False, -- unused
12254 3 => False, -- unused
12255 4 => True, -- Else_Statements (List4)
12256 5 => False), -- unused
12258 N_Accept_Alternative =>
12259 (1 => True, -- Condition (Node1)
12260 2 => True, -- Accept_Statement (Node2)
12261 3 => True, -- Statements (List3)
12262 4 => True, -- Pragmas_Before (List4)
12263 5 => False), -- Accept_Handler_Records (List5-Sem)
12265 N_Delay_Alternative =>
12266 (1 => True, -- Condition (Node1)
12267 2 => True, -- Delay_Statement (Node2)
12268 3 => True, -- Statements (List3)
12269 4 => True, -- Pragmas_Before (List4)
12270 5 => False), -- unused
12272 N_Terminate_Alternative =>
12273 (1 => True, -- Condition (Node1)
12274 2 => False, -- unused
12275 3 => False, -- unused
12276 4 => True, -- Pragmas_Before (List4)
12277 5 => True), -- Pragmas_After (List5)
12279 N_Timed_Entry_Call =>
12280 (1 => True, -- Entry_Call_Alternative (Node1)
12281 2 => False, -- unused
12282 3 => False, -- unused
12283 4 => True, -- Delay_Alternative (Node4)
12284 5 => False), -- unused
12286 N_Entry_Call_Alternative =>
12287 (1 => True, -- Entry_Call_Statement (Node1)
12288 2 => False, -- unused
12289 3 => True, -- Statements (List3)
12290 4 => True, -- Pragmas_Before (List4)
12291 5 => False), -- unused
12293 N_Conditional_Entry_Call =>
12294 (1 => True, -- Entry_Call_Alternative (Node1)
12295 2 => False, -- unused
12296 3 => False, -- unused
12297 4 => True, -- Else_Statements (List4)
12298 5 => False), -- unused
12300 N_Asynchronous_Select =>
12301 (1 => True, -- Triggering_Alternative (Node1)
12302 2 => True, -- Abortable_Part (Node2)
12303 3 => False, -- unused
12304 4 => False, -- unused
12305 5 => False), -- unused
12307 N_Triggering_Alternative =>
12308 (1 => True, -- Triggering_Statement (Node1)
12309 2 => False, -- unused
12310 3 => True, -- Statements (List3)
12311 4 => True, -- Pragmas_Before (List4)
12312 5 => False), -- unused
12314 N_Abortable_Part =>
12315 (1 => False, -- unused
12316 2 => False, -- unused
12317 3 => True, -- Statements (List3)
12318 4 => False, -- unused
12319 5 => False), -- unused
12321 N_Abort_Statement =>
12322 (1 => False, -- unused
12323 2 => True, -- Names (List2)
12324 3 => False, -- unused
12325 4 => False, -- unused
12326 5 => False), -- unused
12328 N_Compilation_Unit =>
12329 (1 => True, -- Context_Items (List1)
12330 2 => True, -- Unit (Node2)
12331 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12332 4 => False, -- Library_Unit (Node4-Sem)
12333 5 => True), -- Aux_Decls_Node (Node5)
12335 N_Compilation_Unit_Aux =>
12336 (1 => True, -- Actions (List1)
12337 2 => True, -- Declarations (List2)
12338 3 => False, -- Default_Storage_Pool (Node3)
12339 4 => True, -- Config_Pragmas (List4)
12340 5 => True), -- Pragmas_After (List5)
12342 N_With_Clause =>
12343 (1 => False, -- unused
12344 2 => True, -- Name (Node2)
12345 3 => False, -- unused
12346 4 => False, -- Library_Unit (Node4-Sem)
12347 5 => False), -- Corresponding_Spec (Node5-Sem)
12349 N_Subprogram_Body_Stub =>
12350 (1 => True, -- Specification (Node1)
12351 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12352 3 => False, -- unused
12353 4 => False, -- Library_Unit (Node4-Sem)
12354 5 => False), -- Corresponding_Body (Node5-Sem)
12356 N_Package_Body_Stub =>
12357 (1 => True, -- Defining_Identifier (Node1)
12358 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12359 3 => False, -- unused
12360 4 => False, -- Library_Unit (Node4-Sem)
12361 5 => False), -- Corresponding_Body (Node5-Sem)
12363 N_Task_Body_Stub =>
12364 (1 => True, -- Defining_Identifier (Node1)
12365 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12366 3 => False, -- unused
12367 4 => False, -- Library_Unit (Node4-Sem)
12368 5 => False), -- Corresponding_Body (Node5-Sem)
12370 N_Protected_Body_Stub =>
12371 (1 => True, -- Defining_Identifier (Node1)
12372 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12373 3 => False, -- unused
12374 4 => False, -- Library_Unit (Node4-Sem)
12375 5 => False), -- Corresponding_Body (Node5-Sem)
12377 N_Subunit =>
12378 (1 => True, -- Proper_Body (Node1)
12379 2 => True, -- Name (Node2)
12380 3 => False, -- Corresponding_Stub (Node3-Sem)
12381 4 => False, -- unused
12382 5 => False), -- unused
12384 N_Exception_Declaration =>
12385 (1 => True, -- Defining_Identifier (Node1)
12386 2 => False, -- unused
12387 3 => False, -- Expression (Node3-Sem)
12388 4 => False, -- unused
12389 5 => False), -- unused
12391 N_Handled_Sequence_Of_Statements =>
12392 (1 => True, -- At_End_Proc (Node1)
12393 2 => False, -- First_Real_Statement (Node2-Sem)
12394 3 => True, -- Statements (List3)
12395 4 => True, -- End_Label (Node4)
12396 5 => True), -- Exception_Handlers (List5)
12398 N_Exception_Handler =>
12399 (1 => False, -- Local_Raise_Statements (Elist1)
12400 2 => True, -- Choice_Parameter (Node2)
12401 3 => True, -- Statements (List3)
12402 4 => True, -- Exception_Choices (List4)
12403 5 => False), -- Exception_Label (Node5)
12405 N_Raise_Statement =>
12406 (1 => False, -- unused
12407 2 => True, -- Name (Node2)
12408 3 => True, -- Expression (Node3)
12409 4 => False, -- unused
12410 5 => False), -- unused
12412 N_Raise_Expression =>
12413 (1 => False, -- unused
12414 2 => True, -- Name (Node2)
12415 3 => True, -- Expression (Node3)
12416 4 => False, -- unused
12417 5 => False), -- Etype (Node5-Sem)
12419 N_Generic_Subprogram_Declaration =>
12420 (1 => True, -- Specification (Node1)
12421 2 => True, -- Generic_Formal_Declarations (List2)
12422 3 => False, -- unused
12423 4 => False, -- Parent_Spec (Node4-Sem)
12424 5 => False), -- Corresponding_Body (Node5-Sem)
12426 N_Generic_Package_Declaration =>
12427 (1 => True, -- Specification (Node1)
12428 2 => True, -- Generic_Formal_Declarations (List2)
12429 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12430 4 => False, -- Parent_Spec (Node4-Sem)
12431 5 => False), -- Corresponding_Body (Node5-Sem)
12433 N_Package_Instantiation =>
12434 (1 => True, -- Defining_Unit_Name (Node1)
12435 2 => True, -- Name (Node2)
12436 3 => True, -- Generic_Associations (List3)
12437 4 => False, -- Parent_Spec (Node4-Sem)
12438 5 => False), -- Instance_Spec (Node5-Sem)
12440 N_Procedure_Instantiation =>
12441 (1 => True, -- Defining_Unit_Name (Node1)
12442 2 => True, -- Name (Node2)
12443 3 => True, -- Generic_Associations (List3)
12444 4 => False, -- Parent_Spec (Node4-Sem)
12445 5 => False), -- Instance_Spec (Node5-Sem)
12447 N_Function_Instantiation =>
12448 (1 => True, -- Defining_Unit_Name (Node1)
12449 2 => True, -- Name (Node2)
12450 3 => True, -- Generic_Associations (List3)
12451 4 => False, -- Parent_Spec (Node4-Sem)
12452 5 => False), -- Instance_Spec (Node5-Sem)
12454 N_Generic_Association =>
12455 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12456 2 => True, -- Selector_Name (Node2)
12457 3 => False, -- unused
12458 4 => False, -- unused
12459 5 => False), -- unused
12461 N_Formal_Object_Declaration =>
12462 (1 => True, -- Defining_Identifier (Node1)
12463 2 => False, -- unused
12464 3 => True, -- Access_Definition (Node3)
12465 4 => True, -- Subtype_Mark (Node4)
12466 5 => True), -- Default_Expression (Node5)
12468 N_Formal_Type_Declaration =>
12469 (1 => True, -- Defining_Identifier (Node1)
12470 2 => False, -- unused
12471 3 => True, -- Formal_Type_Definition (Node3)
12472 4 => True, -- Discriminant_Specifications (List4)
12473 5 => False), -- unused
12475 N_Formal_Private_Type_Definition =>
12476 (1 => False, -- unused
12477 2 => False, -- unused
12478 3 => False, -- unused
12479 4 => False, -- unused
12480 5 => False), -- unused
12482 N_Formal_Incomplete_Type_Definition =>
12483 (1 => False, -- unused
12484 2 => False, -- unused
12485 3 => False, -- unused
12486 4 => False, -- unused
12487 5 => False), -- unused
12489 N_Formal_Derived_Type_Definition =>
12490 (1 => False, -- unused
12491 2 => True, -- Interface_List (List2)
12492 3 => False, -- unused
12493 4 => True, -- Subtype_Mark (Node4)
12494 5 => False), -- unused
12496 N_Formal_Discrete_Type_Definition =>
12497 (1 => False, -- unused
12498 2 => False, -- unused
12499 3 => False, -- unused
12500 4 => False, -- unused
12501 5 => False), -- unused
12503 N_Formal_Signed_Integer_Type_Definition =>
12504 (1 => False, -- unused
12505 2 => False, -- unused
12506 3 => False, -- unused
12507 4 => False, -- unused
12508 5 => False), -- unused
12510 N_Formal_Modular_Type_Definition =>
12511 (1 => False, -- unused
12512 2 => False, -- unused
12513 3 => False, -- unused
12514 4 => False, -- unused
12515 5 => False), -- unused
12517 N_Formal_Floating_Point_Definition =>
12518 (1 => False, -- unused
12519 2 => False, -- unused
12520 3 => False, -- unused
12521 4 => False, -- unused
12522 5 => False), -- unused
12524 N_Formal_Ordinary_Fixed_Point_Definition =>
12525 (1 => False, -- unused
12526 2 => False, -- unused
12527 3 => False, -- unused
12528 4 => False, -- unused
12529 5 => False), -- unused
12531 N_Formal_Decimal_Fixed_Point_Definition =>
12532 (1 => False, -- unused
12533 2 => False, -- unused
12534 3 => False, -- unused
12535 4 => False, -- unused
12536 5 => False), -- unused
12538 N_Formal_Concrete_Subprogram_Declaration =>
12539 (1 => True, -- Specification (Node1)
12540 2 => True, -- Default_Name (Node2)
12541 3 => False, -- unused
12542 4 => False, -- unused
12543 5 => False), -- unused
12545 N_Formal_Abstract_Subprogram_Declaration =>
12546 (1 => True, -- Specification (Node1)
12547 2 => True, -- Default_Name (Node2)
12548 3 => False, -- unused
12549 4 => False, -- unused
12550 5 => False), -- unused
12552 N_Formal_Package_Declaration =>
12553 (1 => True, -- Defining_Identifier (Node1)
12554 2 => True, -- Name (Node2)
12555 3 => True, -- Generic_Associations (List3)
12556 4 => False, -- unused
12557 5 => False), -- Instance_Spec (Node5-Sem)
12559 N_Attribute_Definition_Clause =>
12560 (1 => True, -- Chars (Name1)
12561 2 => True, -- Name (Node2)
12562 3 => True, -- Expression (Node3)
12563 4 => False, -- unused
12564 5 => False), -- Next_Rep_Item (Node5-Sem)
12566 N_Aspect_Specification =>
12567 (1 => True, -- Identifier (Node1)
12568 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12569 3 => True, -- Expression (Node3)
12570 4 => False, -- Entity (Node4-Sem)
12571 5 => False), -- Next_Rep_Item (Node5-Sem)
12573 N_Enumeration_Representation_Clause =>
12574 (1 => True, -- Identifier (Node1)
12575 2 => False, -- unused
12576 3 => True, -- Array_Aggregate (Node3)
12577 4 => False, -- unused
12578 5 => False), -- Next_Rep_Item (Node5-Sem)
12580 N_Record_Representation_Clause =>
12581 (1 => True, -- Identifier (Node1)
12582 2 => True, -- Mod_Clause (Node2)
12583 3 => True, -- Component_Clauses (List3)
12584 4 => False, -- unused
12585 5 => False), -- Next_Rep_Item (Node5-Sem)
12587 N_Component_Clause =>
12588 (1 => True, -- Component_Name (Node1)
12589 2 => True, -- Position (Node2)
12590 3 => True, -- First_Bit (Node3)
12591 4 => True, -- Last_Bit (Node4)
12592 5 => False), -- unused
12594 N_Code_Statement =>
12595 (1 => False, -- unused
12596 2 => False, -- unused
12597 3 => True, -- Expression (Node3)
12598 4 => False, -- unused
12599 5 => False), -- unused
12601 N_Op_Rotate_Left =>
12602 (1 => True, -- Chars (Name1)
12603 2 => True, -- Left_Opnd (Node2)
12604 3 => True, -- Right_Opnd (Node3)
12605 4 => False, -- Entity (Node4-Sem)
12606 5 => False), -- Etype (Node5-Sem)
12608 N_Op_Rotate_Right =>
12609 (1 => True, -- Chars (Name1)
12610 2 => True, -- Left_Opnd (Node2)
12611 3 => True, -- Right_Opnd (Node3)
12612 4 => False, -- Entity (Node4-Sem)
12613 5 => False), -- Etype (Node5-Sem)
12615 N_Op_Shift_Left =>
12616 (1 => True, -- Chars (Name1)
12617 2 => True, -- Left_Opnd (Node2)
12618 3 => True, -- Right_Opnd (Node3)
12619 4 => False, -- Entity (Node4-Sem)
12620 5 => False), -- Etype (Node5-Sem)
12622 N_Op_Shift_Right_Arithmetic =>
12623 (1 => True, -- Chars (Name1)
12624 2 => True, -- Left_Opnd (Node2)
12625 3 => True, -- Right_Opnd (Node3)
12626 4 => False, -- Entity (Node4-Sem)
12627 5 => False), -- Etype (Node5-Sem)
12629 N_Op_Shift_Right =>
12630 (1 => True, -- Chars (Name1)
12631 2 => True, -- Left_Opnd (Node2)
12632 3 => True, -- Right_Opnd (Node3)
12633 4 => False, -- Entity (Node4-Sem)
12634 5 => False), -- Etype (Node5-Sem)
12636 N_Delta_Constraint =>
12637 (1 => False, -- unused
12638 2 => False, -- unused
12639 3 => True, -- Delta_Expression (Node3)
12640 4 => True, -- Range_Constraint (Node4)
12641 5 => False), -- unused
12643 N_At_Clause =>
12644 (1 => True, -- Identifier (Node1)
12645 2 => False, -- unused
12646 3 => True, -- Expression (Node3)
12647 4 => False, -- unused
12648 5 => False), -- unused
12650 N_Mod_Clause =>
12651 (1 => False, -- unused
12652 2 => False, -- unused
12653 3 => True, -- Expression (Node3)
12654 4 => True, -- Pragmas_Before (List4)
12655 5 => False), -- unused
12657 N_If_Expression =>
12658 (1 => True, -- Expressions (List1)
12659 2 => False, -- Then_Actions (List2-Sem)
12660 3 => False, -- Else_Actions (List3-Sem)
12661 4 => False, -- unused
12662 5 => False), -- Etype (Node5-Sem)
12664 N_Compound_Statement =>
12665 (1 => True, -- Actions (List1)
12666 2 => False, -- unused
12667 3 => False, -- unused
12668 4 => False, -- unused
12669 5 => False), -- unused
12671 N_Contract =>
12672 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
12673 2 => False, -- Contract_Test_Cases (Node2-Sem)
12674 3 => False, -- Classifications (Node3-Sem)
12675 4 => False, -- unused
12676 5 => False), -- unused
12678 N_Expanded_Name =>
12679 (1 => True, -- Chars (Name1)
12680 2 => True, -- Selector_Name (Node2)
12681 3 => True, -- Prefix (Node3)
12682 4 => False, -- Entity (Node4-Sem)
12683 5 => False), -- Etype (Node5-Sem)
12685 N_Expression_With_Actions =>
12686 (1 => True, -- Actions (List1)
12687 2 => False, -- unused
12688 3 => True, -- Expression (Node3)
12689 4 => False, -- unused
12690 5 => False), -- unused
12692 N_Free_Statement =>
12693 (1 => False, -- Storage_Pool (Node1-Sem)
12694 2 => False, -- Procedure_To_Call (Node2-Sem)
12695 3 => True, -- Expression (Node3)
12696 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12697 5 => False), -- unused
12699 N_Freeze_Entity =>
12700 (1 => True, -- Actions (List1)
12701 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12702 3 => False, -- TSS_Elist (Elist3-Sem)
12703 4 => False, -- Entity (Node4-Sem)
12704 5 => False), -- First_Subtype_Link (Node5-Sem)
12706 N_Freeze_Generic_Entity =>
12707 (1 => False, -- unused
12708 2 => False, -- unused
12709 3 => False, -- unused
12710 4 => False, -- Entity (Node4-Sem)
12711 5 => False), -- unused
12713 N_Implicit_Label_Declaration =>
12714 (1 => True, -- Defining_Identifier (Node1)
12715 2 => False, -- Label_Construct (Node2-Sem)
12716 3 => False, -- unused
12717 4 => False, -- unused
12718 5 => False), -- unused
12720 N_Itype_Reference =>
12721 (1 => False, -- Itype (Node1-Sem)
12722 2 => False, -- unused
12723 3 => False, -- unused
12724 4 => False, -- unused
12725 5 => False), -- unused
12727 N_Raise_Constraint_Error =>
12728 (1 => True, -- Condition (Node1)
12729 2 => False, -- unused
12730 3 => True, -- Reason (Uint3)
12731 4 => False, -- unused
12732 5 => False), -- Etype (Node5-Sem)
12734 N_Raise_Program_Error =>
12735 (1 => True, -- Condition (Node1)
12736 2 => False, -- unused
12737 3 => True, -- Reason (Uint3)
12738 4 => False, -- unused
12739 5 => False), -- Etype (Node5-Sem)
12741 N_Raise_Storage_Error =>
12742 (1 => True, -- Condition (Node1)
12743 2 => False, -- unused
12744 3 => True, -- Reason (Uint3)
12745 4 => False, -- unused
12746 5 => False), -- Etype (Node5-Sem)
12748 N_Push_Constraint_Error_Label =>
12749 (1 => False, -- unused
12750 2 => False, -- unused
12751 3 => False, -- unused
12752 4 => False, -- unused
12753 5 => False), -- unused
12755 N_Push_Program_Error_Label =>
12756 (1 => False, -- unused
12757 2 => False, -- unused
12758 3 => False, -- unused
12759 4 => False, -- unused
12760 5 => False), -- Exception_Label
12762 N_Push_Storage_Error_Label =>
12763 (1 => False, -- unused
12764 2 => False, -- unused
12765 3 => False, -- unused
12766 4 => False, -- unused
12767 5 => False), -- Exception_Label
12769 N_Pop_Constraint_Error_Label =>
12770 (1 => False, -- unused
12771 2 => False, -- unused
12772 3 => False, -- unused
12773 4 => False, -- unused
12774 5 => False), -- unused
12776 N_Pop_Program_Error_Label =>
12777 (1 => False, -- unused
12778 2 => False, -- unused
12779 3 => False, -- unused
12780 4 => False, -- unused
12781 5 => False), -- unused
12783 N_Pop_Storage_Error_Label =>
12784 (1 => False, -- unused
12785 2 => False, -- unused
12786 3 => False, -- unused
12787 4 => False, -- unused
12788 5 => False), -- unused
12790 N_Reference =>
12791 (1 => False, -- unused
12792 2 => False, -- unused
12793 3 => True, -- Prefix (Node3)
12794 4 => False, -- unused
12795 5 => False), -- Etype (Node5-Sem)
12797 N_Unchecked_Expression =>
12798 (1 => False, -- unused
12799 2 => False, -- unused
12800 3 => True, -- Expression (Node3)
12801 4 => False, -- unused
12802 5 => False), -- Etype (Node5-Sem)
12804 N_Unchecked_Type_Conversion =>
12805 (1 => False, -- unused
12806 2 => False, -- unused
12807 3 => True, -- Expression (Node3)
12808 4 => True, -- Subtype_Mark (Node4)
12809 5 => False), -- Etype (Node5-Sem)
12811 N_Validate_Unchecked_Conversion =>
12812 (1 => False, -- Source_Type (Node1-Sem)
12813 2 => False, -- Target_Type (Node2-Sem)
12814 3 => False, -- unused
12815 4 => False, -- unused
12816 5 => False), -- unused
12818 -- Entries for SCIL nodes
12820 N_SCIL_Dispatch_Table_Tag_Init =>
12821 (1 => False, -- unused
12822 2 => False, -- unused
12823 3 => False, -- unused
12824 4 => False, -- SCIL_Entity (Node4-Sem)
12825 5 => False), -- unused
12827 N_SCIL_Dispatching_Call =>
12828 (1 => False, -- unused
12829 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12830 3 => False, -- unused
12831 4 => False, -- SCIL_Entity (Node4-Sem)
12832 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12834 N_SCIL_Membership_Test =>
12835 (1 => False, -- unused
12836 2 => False, -- unused
12837 3 => False, -- unused
12838 4 => False, -- SCIL_Entity (Node4-Sem)
12839 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12841 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12842 -- field for debugging purposes, they are not really syntactic fields, so
12843 -- we mark all fields as unused.
12845 N_Empty =>
12846 (1 => False, -- unused
12847 2 => False, -- unused
12848 3 => False, -- unused
12849 4 => False, -- unused
12850 5 => False), -- unused
12852 N_Error =>
12853 (1 => False, -- unused
12854 2 => False, -- unused
12855 3 => False, -- unused
12856 4 => False, -- unused
12857 5 => False), -- unused
12859 N_Unused_At_Start =>
12860 (1 => False, -- unused
12861 2 => False, -- unused
12862 3 => False, -- unused
12863 4 => False, -- unused
12864 5 => False), -- unused
12866 N_Unused_At_End =>
12867 (1 => False, -- unused
12868 2 => False, -- unused
12869 3 => False, -- unused
12870 4 => False, -- unused
12871 5 => False)); -- unused
12873 --------------------
12874 -- Inline Pragmas --
12875 --------------------
12877 pragma Inline (ABE_Is_Certain);
12878 pragma Inline (Abort_Present);
12879 pragma Inline (Abortable_Part);
12880 pragma Inline (Abstract_Present);
12881 pragma Inline (Accept_Handler_Records);
12882 pragma Inline (Accept_Statement);
12883 pragma Inline (Access_Definition);
12884 pragma Inline (Access_To_Subprogram_Definition);
12885 pragma Inline (Access_Types_To_Process);
12886 pragma Inline (Actions);
12887 pragma Inline (Activation_Chain_Entity);
12888 pragma Inline (Acts_As_Spec);
12889 pragma Inline (Actual_Designated_Subtype);
12890 pragma Inline (Address_Warning_Posted);
12891 pragma Inline (Aggregate_Bounds);
12892 pragma Inline (Aliased_Present);
12893 pragma Inline (All_Others);
12894 pragma Inline (All_Present);
12895 pragma Inline (Alternatives);
12896 pragma Inline (Ancestor_Part);
12897 pragma Inline (Atomic_Sync_Required);
12898 pragma Inline (Array_Aggregate);
12899 pragma Inline (Aspect_Rep_Item);
12900 pragma Inline (Assignment_OK);
12901 pragma Inline (Associated_Node);
12902 pragma Inline (At_End_Proc);
12903 pragma Inline (Attribute_Name);
12904 pragma Inline (Aux_Decls_Node);
12905 pragma Inline (Backwards_OK);
12906 pragma Inline (Bad_Is_Detected);
12907 pragma Inline (Body_To_Inline);
12908 pragma Inline (Body_Required);
12909 pragma Inline (By_Ref);
12910 pragma Inline (Box_Present);
12911 pragma Inline (Char_Literal_Value);
12912 pragma Inline (Chars);
12913 pragma Inline (Check_Address_Alignment);
12914 pragma Inline (Choice_Parameter);
12915 pragma Inline (Choices);
12916 pragma Inline (Class_Present);
12917 pragma Inline (Classifications);
12918 pragma Inline (Cleanup_Actions);
12919 pragma Inline (Comes_From_Extended_Return_Statement);
12920 pragma Inline (Compile_Time_Known_Aggregate);
12921 pragma Inline (Component_Associations);
12922 pragma Inline (Component_Clauses);
12923 pragma Inline (Component_Definition);
12924 pragma Inline (Component_Items);
12925 pragma Inline (Component_List);
12926 pragma Inline (Component_Name);
12927 pragma Inline (Componentwise_Assignment);
12928 pragma Inline (Condition);
12929 pragma Inline (Condition_Actions);
12930 pragma Inline (Config_Pragmas);
12931 pragma Inline (Constant_Present);
12932 pragma Inline (Constraint);
12933 pragma Inline (Constraints);
12934 pragma Inline (Context_Installed);
12935 pragma Inline (Context_Items);
12936 pragma Inline (Context_Pending);
12937 pragma Inline (Contract_Test_Cases);
12938 pragma Inline (Controlling_Argument);
12939 pragma Inline (Convert_To_Return_False);
12940 pragma Inline (Conversion_OK);
12941 pragma Inline (Corresponding_Aspect);
12942 pragma Inline (Corresponding_Body);
12943 pragma Inline (Corresponding_Formal_Spec);
12944 pragma Inline (Corresponding_Generic_Association);
12945 pragma Inline (Corresponding_Integer_Value);
12946 pragma Inline (Corresponding_Spec);
12947 pragma Inline (Corresponding_Spec_Of_Stub);
12948 pragma Inline (Corresponding_Stub);
12949 pragma Inline (Dcheck_Function);
12950 pragma Inline (Declarations);
12951 pragma Inline (Default_Expression);
12952 pragma Inline (Default_Storage_Pool);
12953 pragma Inline (Default_Name);
12954 pragma Inline (Defining_Identifier);
12955 pragma Inline (Defining_Unit_Name);
12956 pragma Inline (Delay_Alternative);
12957 pragma Inline (Delay_Statement);
12958 pragma Inline (Delta_Expression);
12959 pragma Inline (Digits_Expression);
12960 pragma Inline (Discr_Check_Funcs_Built);
12961 pragma Inline (Discrete_Choices);
12962 pragma Inline (Discrete_Range);
12963 pragma Inline (Discrete_Subtype_Definition);
12964 pragma Inline (Discrete_Subtype_Definitions);
12965 pragma Inline (Discriminant_Specifications);
12966 pragma Inline (Discriminant_Type);
12967 pragma Inline (Do_Accessibility_Check);
12968 pragma Inline (Do_Discriminant_Check);
12969 pragma Inline (Do_Length_Check);
12970 pragma Inline (Do_Division_Check);
12971 pragma Inline (Do_Overflow_Check);
12972 pragma Inline (Do_Range_Check);
12973 pragma Inline (Do_Storage_Check);
12974 pragma Inline (Do_Tag_Check);
12975 pragma Inline (Elaborate_Present);
12976 pragma Inline (Elaborate_All_Desirable);
12977 pragma Inline (Elaborate_All_Present);
12978 pragma Inline (Elaborate_Desirable);
12979 pragma Inline (Else_Actions);
12980 pragma Inline (Else_Statements);
12981 pragma Inline (Elsif_Parts);
12982 pragma Inline (Enclosing_Variant);
12983 pragma Inline (End_Label);
12984 pragma Inline (End_Span);
12985 pragma Inline (Entity);
12986 pragma Inline (Entity_Or_Associated_Node);
12987 pragma Inline (Entry_Body_Formal_Part);
12988 pragma Inline (Entry_Call_Alternative);
12989 pragma Inline (Entry_Call_Statement);
12990 pragma Inline (Entry_Direct_Name);
12991 pragma Inline (Entry_Index);
12992 pragma Inline (Entry_Index_Specification);
12993 pragma Inline (Etype);
12994 pragma Inline (Exception_Choices);
12995 pragma Inline (Exception_Handlers);
12996 pragma Inline (Exception_Junk);
12997 pragma Inline (Exception_Label);
12998 pragma Inline (Expansion_Delayed);
12999 pragma Inline (Explicit_Actual_Parameter);
13000 pragma Inline (Explicit_Generic_Actual_Parameter);
13001 pragma Inline (Expression);
13002 pragma Inline (Expression_Copy);
13003 pragma Inline (Expressions);
13004 pragma Inline (First_Bit);
13005 pragma Inline (First_Inlined_Subprogram);
13006 pragma Inline (First_Name);
13007 pragma Inline (First_Named_Actual);
13008 pragma Inline (First_Real_Statement);
13009 pragma Inline (First_Subtype_Link);
13010 pragma Inline (Float_Truncate);
13011 pragma Inline (Formal_Type_Definition);
13012 pragma Inline (Forwards_OK);
13013 pragma Inline (From_Aspect_Specification);
13014 pragma Inline (From_At_End);
13015 pragma Inline (From_At_Mod);
13016 pragma Inline (From_Conditional_Expression);
13017 pragma Inline (From_Default);
13018 pragma Inline (Generalized_Indexing);
13019 pragma Inline (Generic_Associations);
13020 pragma Inline (Generic_Formal_Declarations);
13021 pragma Inline (Generic_Parent);
13022 pragma Inline (Generic_Parent_Type);
13023 pragma Inline (Handled_Statement_Sequence);
13024 pragma Inline (Handler_List_Entry);
13025 pragma Inline (Has_Created_Identifier);
13026 pragma Inline (Has_Dereference_Action);
13027 pragma Inline (Has_Dynamic_Length_Check);
13028 pragma Inline (Has_Dynamic_Range_Check);
13029 pragma Inline (Has_Init_Expression);
13030 pragma Inline (Has_Local_Raise);
13031 pragma Inline (Has_Self_Reference);
13032 pragma Inline (Has_SP_Choice);
13033 pragma Inline (Has_No_Elaboration_Code);
13034 pragma Inline (Has_Pragma_Suppress_All);
13035 pragma Inline (Has_Private_View);
13036 pragma Inline (Has_Relative_Deadline_Pragma);
13037 pragma Inline (Has_Storage_Size_Pragma);
13038 pragma Inline (Has_Target_Names);
13039 pragma Inline (Has_Wide_Character);
13040 pragma Inline (Has_Wide_Wide_Character);
13041 pragma Inline (Header_Size_Added);
13042 pragma Inline (Hidden_By_Use_Clause);
13043 pragma Inline (High_Bound);
13044 pragma Inline (Identifier);
13045 pragma Inline (Implicit_With);
13046 pragma Inline (Implicit_With_From_Instantiation);
13047 pragma Inline (Interface_List);
13048 pragma Inline (Interface_Present);
13049 pragma Inline (Includes_Infinities);
13050 pragma Inline (Import_Interface_Present);
13051 pragma Inline (In_Present);
13052 pragma Inline (Incomplete_View);
13053 pragma Inline (Inherited_Discriminant);
13054 pragma Inline (Instance_Spec);
13055 pragma Inline (Intval);
13056 pragma Inline (Iterator_Specification);
13057 pragma Inline (Is_Abort_Block);
13058 pragma Inline (Is_Accessibility_Actual);
13059 pragma Inline (Is_Analyzed_Pragma);
13060 pragma Inline (Is_Asynchronous_Call_Block);
13061 pragma Inline (Is_Boolean_Aspect);
13062 pragma Inline (Is_Checked);
13063 pragma Inline (Is_Checked_Ghost_Pragma);
13064 pragma Inline (Is_Component_Left_Opnd);
13065 pragma Inline (Is_Component_Right_Opnd);
13066 pragma Inline (Is_Controlling_Actual);
13067 pragma Inline (Is_Delayed_Aspect);
13068 pragma Inline (Is_Disabled);
13069 pragma Inline (Is_Dynamic_Coextension);
13070 pragma Inline (Is_Elsif);
13071 pragma Inline (Is_Entry_Barrier_Function);
13072 pragma Inline (Is_Expanded_Build_In_Place_Call);
13073 pragma Inline (Is_Expanded_Contract);
13074 pragma Inline (Is_Finalization_Wrapper);
13075 pragma Inline (Is_Folded_In_Parser);
13076 pragma Inline (Is_Generic_Contract_Pragma);
13077 pragma Inline (Is_Ignored);
13078 pragma Inline (Is_Ignored_Ghost_Pragma);
13079 pragma Inline (Is_In_Discriminant_Check);
13080 pragma Inline (Is_Inherited_Pragma);
13081 pragma Inline (Is_Machine_Number);
13082 pragma Inline (Is_Null_Loop);
13083 pragma Inline (Is_Overloaded);
13084 pragma Inline (Is_Power_Of_2_For_Shift);
13085 pragma Inline (Is_Prefixed_Call);
13086 pragma Inline (Is_Protected_Subprogram_Body);
13087 pragma Inline (Is_Qualified_Universal_Literal);
13088 pragma Inline (Is_Static_Coextension);
13089 pragma Inline (Is_Static_Expression);
13090 pragma Inline (Is_Subprogram_Descriptor);
13091 pragma Inline (Is_Task_Allocation_Block);
13092 pragma Inline (Is_Task_Body_Procedure);
13093 pragma Inline (Is_Task_Master);
13094 pragma Inline (Iteration_Scheme);
13095 pragma Inline (Itype);
13096 pragma Inline (Kill_Range_Check);
13097 pragma Inline (Last_Bit);
13098 pragma Inline (Last_Name);
13099 pragma Inline (Library_Unit);
13100 pragma Inline (Label_Construct);
13101 pragma Inline (Left_Opnd);
13102 pragma Inline (Limited_View_Installed);
13103 pragma Inline (Limited_Present);
13104 pragma Inline (Literals);
13105 pragma Inline (Local_Raise_Not_OK);
13106 pragma Inline (Local_Raise_Statements);
13107 pragma Inline (Loop_Actions);
13108 pragma Inline (Loop_Parameter_Specification);
13109 pragma Inline (Low_Bound);
13110 pragma Inline (Mod_Clause);
13111 pragma Inline (More_Ids);
13112 pragma Inline (Must_Be_Byte_Aligned);
13113 pragma Inline (Must_Not_Freeze);
13114 pragma Inline (Must_Not_Override);
13115 pragma Inline (Must_Override);
13116 pragma Inline (Name);
13117 pragma Inline (Names);
13118 pragma Inline (Next_Entity);
13119 pragma Inline (Next_Exit_Statement);
13120 pragma Inline (Next_Implicit_With);
13121 pragma Inline (Next_Named_Actual);
13122 pragma Inline (Next_Pragma);
13123 pragma Inline (Next_Rep_Item);
13124 pragma Inline (Next_Use_Clause);
13125 pragma Inline (No_Ctrl_Actions);
13126 pragma Inline (No_Elaboration_Check);
13127 pragma Inline (No_Entities_Ref_In_Spec);
13128 pragma Inline (No_Initialization);
13129 pragma Inline (No_Minimize_Eliminate);
13130 pragma Inline (No_Side_Effect_Removal);
13131 pragma Inline (No_Truncation);
13132 pragma Inline (Non_Aliased_Prefix);
13133 pragma Inline (Null_Excluding_Subtype);
13134 pragma Inline (Null_Exclusion_Present);
13135 pragma Inline (Null_Exclusion_In_Return_Present);
13136 pragma Inline (Null_Present);
13137 pragma Inline (Null_Record_Present);
13138 pragma Inline (Null_Statement);
13139 pragma Inline (Object_Definition);
13140 pragma Inline (Of_Present);
13141 pragma Inline (Original_Discriminant);
13142 pragma Inline (Original_Entity);
13143 pragma Inline (Others_Discrete_Choices);
13144 pragma Inline (Out_Present);
13145 pragma Inline (Parameter_Associations);
13146 pragma Inline (Parameter_Specifications);
13147 pragma Inline (Parameter_Type);
13148 pragma Inline (Parent_Spec);
13149 pragma Inline (Position);
13150 pragma Inline (Pragma_Argument_Associations);
13151 pragma Inline (Pragma_Identifier);
13152 pragma Inline (Pragmas_After);
13153 pragma Inline (Pragmas_Before);
13154 pragma Inline (Pre_Post_Conditions);
13155 pragma Inline (Prefix);
13156 pragma Inline (Premature_Use);
13157 pragma Inline (Present_Expr);
13158 pragma Inline (Prev_Ids);
13159 pragma Inline (Print_In_Hex);
13160 pragma Inline (Private_Declarations);
13161 pragma Inline (Private_Present);
13162 pragma Inline (Procedure_To_Call);
13163 pragma Inline (Proper_Body);
13164 pragma Inline (Protected_Definition);
13165 pragma Inline (Protected_Present);
13166 pragma Inline (Raises_Constraint_Error);
13167 pragma Inline (Range_Constraint);
13168 pragma Inline (Range_Expression);
13169 pragma Inline (Real_Range_Specification);
13170 pragma Inline (Realval);
13171 pragma Inline (Reason);
13172 pragma Inline (Record_Extension_Part);
13173 pragma Inline (Redundant_Use);
13174 pragma Inline (Renaming_Exception);
13175 pragma Inline (Result_Definition);
13176 pragma Inline (Return_Object_Declarations);
13177 pragma Inline (Return_Statement_Entity);
13178 pragma Inline (Reverse_Present);
13179 pragma Inline (Right_Opnd);
13180 pragma Inline (Rounded_Result);
13181 pragma Inline (SCIL_Controlling_Tag);
13182 pragma Inline (SCIL_Entity);
13183 pragma Inline (SCIL_Tag_Value);
13184 pragma Inline (SCIL_Target_Prim);
13185 pragma Inline (Scope);
13186 pragma Inline (Select_Alternatives);
13187 pragma Inline (Selector_Name);
13188 pragma Inline (Selector_Names);
13189 pragma Inline (Shift_Count_OK);
13190 pragma Inline (Source_Type);
13191 pragma Inline (Specification);
13192 pragma Inline (Split_PPC);
13193 pragma Inline (Statements);
13194 pragma Inline (Storage_Pool);
13195 pragma Inline (Subpool_Handle_Name);
13196 pragma Inline (Strval);
13197 pragma Inline (Subtype_Indication);
13198 pragma Inline (Subtype_Mark);
13199 pragma Inline (Subtype_Marks);
13200 pragma Inline (Suppress_Assignment_Checks);
13201 pragma Inline (Suppress_Loop_Warnings);
13202 pragma Inline (Synchronized_Present);
13203 pragma Inline (Tagged_Present);
13204 pragma Inline (Target_Type);
13205 pragma Inline (Task_Definition);
13206 pragma Inline (Task_Present);
13207 pragma Inline (Then_Actions);
13208 pragma Inline (Then_Statements);
13209 pragma Inline (Triggering_Alternative);
13210 pragma Inline (Triggering_Statement);
13211 pragma Inline (Treat_Fixed_As_Integer);
13212 pragma Inline (TSS_Elist);
13213 pragma Inline (Type_Definition);
13214 pragma Inline (Uneval_Old_Accept);
13215 pragma Inline (Uneval_Old_Warn);
13216 pragma Inline (Unit);
13217 pragma Inline (Uninitialized_Variable);
13218 pragma Inline (Unknown_Discriminants_Present);
13219 pragma Inline (Unreferenced_In_Spec);
13220 pragma Inline (Variant_Part);
13221 pragma Inline (Variants);
13222 pragma Inline (Visible_Declarations);
13223 pragma Inline (Used_Operations);
13224 pragma Inline (Was_Expression_Function);
13225 pragma Inline (Was_Originally_Stub);
13226 pragma Inline (Withed_Body);
13228 pragma Inline (Set_ABE_Is_Certain);
13229 pragma Inline (Set_Abort_Present);
13230 pragma Inline (Set_Abortable_Part);
13231 pragma Inline (Set_Abstract_Present);
13232 pragma Inline (Set_Accept_Handler_Records);
13233 pragma Inline (Set_Accept_Statement);
13234 pragma Inline (Set_Access_Definition);
13235 pragma Inline (Set_Access_To_Subprogram_Definition);
13236 pragma Inline (Set_Access_Types_To_Process);
13237 pragma Inline (Set_Actions);
13238 pragma Inline (Set_Activation_Chain_Entity);
13239 pragma Inline (Set_Acts_As_Spec);
13240 pragma Inline (Set_Actual_Designated_Subtype);
13241 pragma Inline (Set_Address_Warning_Posted);
13242 pragma Inline (Set_Aggregate_Bounds);
13243 pragma Inline (Set_Aliased_Present);
13244 pragma Inline (Set_All_Others);
13245 pragma Inline (Set_All_Present);
13246 pragma Inline (Set_Alternatives);
13247 pragma Inline (Set_Ancestor_Part);
13248 pragma Inline (Set_Array_Aggregate);
13249 pragma Inline (Set_Aspect_Rep_Item);
13250 pragma Inline (Set_Assignment_OK);
13251 pragma Inline (Set_Associated_Node);
13252 pragma Inline (Set_At_End_Proc);
13253 pragma Inline (Set_Atomic_Sync_Required);
13254 pragma Inline (Set_Attribute_Name);
13255 pragma Inline (Set_Aux_Decls_Node);
13256 pragma Inline (Set_Backwards_OK);
13257 pragma Inline (Set_Bad_Is_Detected);
13258 pragma Inline (Set_Body_Required);
13259 pragma Inline (Set_Body_To_Inline);
13260 pragma Inline (Set_Box_Present);
13261 pragma Inline (Set_By_Ref);
13262 pragma Inline (Set_Char_Literal_Value);
13263 pragma Inline (Set_Chars);
13264 pragma Inline (Set_Check_Address_Alignment);
13265 pragma Inline (Set_Choice_Parameter);
13266 pragma Inline (Set_Choices);
13267 pragma Inline (Set_Class_Present);
13268 pragma Inline (Set_Classifications);
13269 pragma Inline (Set_Cleanup_Actions);
13270 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13271 pragma Inline (Set_Compile_Time_Known_Aggregate);
13272 pragma Inline (Set_Component_Associations);
13273 pragma Inline (Set_Component_Clauses);
13274 pragma Inline (Set_Component_Definition);
13275 pragma Inline (Set_Component_Items);
13276 pragma Inline (Set_Component_List);
13277 pragma Inline (Set_Component_Name);
13278 pragma Inline (Set_Componentwise_Assignment);
13279 pragma Inline (Set_Condition);
13280 pragma Inline (Set_Condition_Actions);
13281 pragma Inline (Set_Config_Pragmas);
13282 pragma Inline (Set_Constant_Present);
13283 pragma Inline (Set_Constraint);
13284 pragma Inline (Set_Constraints);
13285 pragma Inline (Set_Context_Installed);
13286 pragma Inline (Set_Context_Items);
13287 pragma Inline (Set_Context_Pending);
13288 pragma Inline (Set_Contract_Test_Cases);
13289 pragma Inline (Set_Controlling_Argument);
13290 pragma Inline (Set_Conversion_OK);
13291 pragma Inline (Set_Convert_To_Return_False);
13292 pragma Inline (Set_Corresponding_Aspect);
13293 pragma Inline (Set_Corresponding_Body);
13294 pragma Inline (Set_Corresponding_Formal_Spec);
13295 pragma Inline (Set_Corresponding_Generic_Association);
13296 pragma Inline (Set_Corresponding_Integer_Value);
13297 pragma Inline (Set_Corresponding_Spec);
13298 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13299 pragma Inline (Set_Corresponding_Stub);
13300 pragma Inline (Set_Dcheck_Function);
13301 pragma Inline (Set_Declarations);
13302 pragma Inline (Set_Default_Expression);
13303 pragma Inline (Set_Default_Name);
13304 pragma Inline (Set_Default_Storage_Pool);
13305 pragma Inline (Set_Defining_Identifier);
13306 pragma Inline (Set_Defining_Unit_Name);
13307 pragma Inline (Set_Delay_Alternative);
13308 pragma Inline (Set_Delay_Statement);
13309 pragma Inline (Set_Delta_Expression);
13310 pragma Inline (Set_Digits_Expression);
13311 pragma Inline (Set_Discr_Check_Funcs_Built);
13312 pragma Inline (Set_Discrete_Choices);
13313 pragma Inline (Set_Discrete_Range);
13314 pragma Inline (Set_Discrete_Subtype_Definition);
13315 pragma Inline (Set_Discrete_Subtype_Definitions);
13316 pragma Inline (Set_Discriminant_Specifications);
13317 pragma Inline (Set_Discriminant_Type);
13318 pragma Inline (Set_Do_Accessibility_Check);
13319 pragma Inline (Set_Do_Discriminant_Check);
13320 pragma Inline (Set_Do_Division_Check);
13321 pragma Inline (Set_Do_Length_Check);
13322 pragma Inline (Set_Do_Overflow_Check);
13323 pragma Inline (Set_Do_Range_Check);
13324 pragma Inline (Set_Do_Storage_Check);
13325 pragma Inline (Set_Do_Tag_Check);
13326 pragma Inline (Set_Elaborate_All_Desirable);
13327 pragma Inline (Set_Elaborate_All_Present);
13328 pragma Inline (Set_Elaborate_Desirable);
13329 pragma Inline (Set_Elaborate_Present);
13330 pragma Inline (Set_Else_Actions);
13331 pragma Inline (Set_Else_Statements);
13332 pragma Inline (Set_Elsif_Parts);
13333 pragma Inline (Set_Enclosing_Variant);
13334 pragma Inline (Set_End_Label);
13335 pragma Inline (Set_End_Span);
13336 pragma Inline (Set_Entity);
13337 pragma Inline (Set_Entry_Body_Formal_Part);
13338 pragma Inline (Set_Entry_Call_Alternative);
13339 pragma Inline (Set_Entry_Call_Statement);
13340 pragma Inline (Set_Entry_Direct_Name);
13341 pragma Inline (Set_Entry_Index);
13342 pragma Inline (Set_Entry_Index_Specification);
13343 pragma Inline (Set_Etype);
13344 pragma Inline (Set_Exception_Choices);
13345 pragma Inline (Set_Exception_Handlers);
13346 pragma Inline (Set_Exception_Junk);
13347 pragma Inline (Set_Exception_Label);
13348 pragma Inline (Set_Expansion_Delayed);
13349 pragma Inline (Set_Explicit_Actual_Parameter);
13350 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13351 pragma Inline (Set_Expression);
13352 pragma Inline (Set_Expression_Copy);
13353 pragma Inline (Set_Expressions);
13354 pragma Inline (Set_First_Bit);
13355 pragma Inline (Set_First_Inlined_Subprogram);
13356 pragma Inline (Set_First_Name);
13357 pragma Inline (Set_First_Named_Actual);
13358 pragma Inline (Set_First_Real_Statement);
13359 pragma Inline (Set_First_Subtype_Link);
13360 pragma Inline (Set_Float_Truncate);
13361 pragma Inline (Set_Formal_Type_Definition);
13362 pragma Inline (Set_Forwards_OK);
13363 pragma Inline (Set_From_Aspect_Specification);
13364 pragma Inline (Set_From_At_End);
13365 pragma Inline (Set_From_At_Mod);
13366 pragma Inline (Set_From_Conditional_Expression);
13367 pragma Inline (Set_From_Default);
13368 pragma Inline (Set_Generalized_Indexing);
13369 pragma Inline (Set_Generic_Associations);
13370 pragma Inline (Set_Generic_Formal_Declarations);
13371 pragma Inline (Set_Generic_Parent);
13372 pragma Inline (Set_Generic_Parent_Type);
13373 pragma Inline (Set_Handled_Statement_Sequence);
13374 pragma Inline (Set_Handler_List_Entry);
13375 pragma Inline (Set_Has_Created_Identifier);
13376 pragma Inline (Set_Has_Dereference_Action);
13377 pragma Inline (Set_Has_Dynamic_Length_Check);
13378 pragma Inline (Set_Has_Dynamic_Range_Check);
13379 pragma Inline (Set_Has_Init_Expression);
13380 pragma Inline (Set_Has_Local_Raise);
13381 pragma Inline (Set_Has_No_Elaboration_Code);
13382 pragma Inline (Set_Has_Pragma_Suppress_All);
13383 pragma Inline (Set_Has_Private_View);
13384 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13385 pragma Inline (Set_Has_Self_Reference);
13386 pragma Inline (Set_Has_SP_Choice);
13387 pragma Inline (Set_Has_Storage_Size_Pragma);
13388 pragma Inline (Set_Has_Target_Names);
13389 pragma Inline (Set_Has_Wide_Character);
13390 pragma Inline (Set_Has_Wide_Wide_Character);
13391 pragma Inline (Set_Header_Size_Added);
13392 pragma Inline (Set_Hidden_By_Use_Clause);
13393 pragma Inline (Set_High_Bound);
13394 pragma Inline (Set_Identifier);
13395 pragma Inline (Set_Implicit_With);
13396 pragma Inline (Set_Import_Interface_Present);
13397 pragma Inline (Set_In_Present);
13398 pragma Inline (Set_Includes_Infinities);
13399 pragma Inline (Set_Incomplete_View);
13400 pragma Inline (Set_Inherited_Discriminant);
13401 pragma Inline (Set_Instance_Spec);
13402 pragma Inline (Set_Interface_List);
13403 pragma Inline (Set_Interface_Present);
13404 pragma Inline (Set_Intval);
13405 pragma Inline (Set_Is_Abort_Block);
13406 pragma Inline (Set_Is_Accessibility_Actual);
13407 pragma Inline (Set_Is_Analyzed_Pragma);
13408 pragma Inline (Set_Is_Asynchronous_Call_Block);
13409 pragma Inline (Set_Is_Boolean_Aspect);
13410 pragma Inline (Set_Is_Checked);
13411 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13412 pragma Inline (Set_Is_Component_Left_Opnd);
13413 pragma Inline (Set_Is_Component_Right_Opnd);
13414 pragma Inline (Set_Is_Controlling_Actual);
13415 pragma Inline (Set_Is_Delayed_Aspect);
13416 pragma Inline (Set_Is_Disabled);
13417 pragma Inline (Set_Is_Dynamic_Coextension);
13418 pragma Inline (Set_Is_Elsif);
13419 pragma Inline (Set_Is_Entry_Barrier_Function);
13420 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13421 pragma Inline (Set_Is_Expanded_Contract);
13422 pragma Inline (Set_Is_Finalization_Wrapper);
13423 pragma Inline (Set_Is_Folded_In_Parser);
13424 pragma Inline (Set_Is_Generic_Contract_Pragma);
13425 pragma Inline (Set_Is_Ignored);
13426 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13427 pragma Inline (Set_Is_In_Discriminant_Check);
13428 pragma Inline (Set_Is_Inherited_Pragma);
13429 pragma Inline (Set_Is_Machine_Number);
13430 pragma Inline (Set_Is_Null_Loop);
13431 pragma Inline (Set_Is_Overloaded);
13432 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13433 pragma Inline (Set_Is_Prefixed_Call);
13434 pragma Inline (Set_Is_Protected_Subprogram_Body);
13435 pragma Inline (Set_Is_Qualified_Universal_Literal);
13436 pragma Inline (Set_Is_Static_Coextension);
13437 pragma Inline (Set_Is_Static_Expression);
13438 pragma Inline (Set_Is_Subprogram_Descriptor);
13439 pragma Inline (Set_Is_Task_Allocation_Block);
13440 pragma Inline (Set_Is_Task_Body_Procedure);
13441 pragma Inline (Set_Is_Task_Master);
13442 pragma Inline (Set_Iteration_Scheme);
13443 pragma Inline (Set_Iterator_Specification);
13444 pragma Inline (Set_Itype);
13445 pragma Inline (Set_Kill_Range_Check);
13446 pragma Inline (Set_Label_Construct);
13447 pragma Inline (Set_Last_Bit);
13448 pragma Inline (Set_Last_Name);
13449 pragma Inline (Set_Left_Opnd);
13450 pragma Inline (Set_Library_Unit);
13451 pragma Inline (Set_Limited_Present);
13452 pragma Inline (Set_Limited_View_Installed);
13453 pragma Inline (Set_Literals);
13454 pragma Inline (Set_Local_Raise_Not_OK);
13455 pragma Inline (Set_Local_Raise_Statements);
13456 pragma Inline (Set_Loop_Actions);
13457 pragma Inline (Set_Loop_Parameter_Specification);
13458 pragma Inline (Set_Low_Bound);
13459 pragma Inline (Set_Mod_Clause);
13460 pragma Inline (Set_More_Ids);
13461 pragma Inline (Set_Must_Be_Byte_Aligned);
13462 pragma Inline (Set_Must_Not_Freeze);
13463 pragma Inline (Set_Must_Not_Override);
13464 pragma Inline (Set_Must_Override);
13465 pragma Inline (Set_Name);
13466 pragma Inline (Set_Names);
13467 pragma Inline (Set_Next_Entity);
13468 pragma Inline (Set_Next_Exit_Statement);
13469 pragma Inline (Set_Next_Implicit_With);
13470 pragma Inline (Set_Next_Named_Actual);
13471 pragma Inline (Set_Next_Pragma);
13472 pragma Inline (Set_Next_Rep_Item);
13473 pragma Inline (Set_Next_Use_Clause);
13474 pragma Inline (Set_No_Ctrl_Actions);
13475 pragma Inline (Set_No_Elaboration_Check);
13476 pragma Inline (Set_No_Entities_Ref_In_Spec);
13477 pragma Inline (Set_No_Initialization);
13478 pragma Inline (Set_No_Minimize_Eliminate);
13479 pragma Inline (Set_No_Side_Effect_Removal);
13480 pragma Inline (Set_No_Truncation);
13481 pragma Inline (Set_Non_Aliased_Prefix);
13482 pragma Inline (Set_Null_Excluding_Subtype);
13483 pragma Inline (Set_Null_Exclusion_Present);
13484 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13485 pragma Inline (Set_Null_Present);
13486 pragma Inline (Set_Null_Record_Present);
13487 pragma Inline (Set_Null_Statement);
13488 pragma Inline (Set_Object_Definition);
13489 pragma Inline (Set_Of_Present);
13490 pragma Inline (Set_Original_Discriminant);
13491 pragma Inline (Set_Original_Entity);
13492 pragma Inline (Set_Others_Discrete_Choices);
13493 pragma Inline (Set_Out_Present);
13494 pragma Inline (Set_Parameter_Associations);
13495 pragma Inline (Set_Parameter_Specifications);
13496 pragma Inline (Set_Parameter_Type);
13497 pragma Inline (Set_Parent_Spec);
13498 pragma Inline (Set_Position);
13499 pragma Inline (Set_Pragma_Argument_Associations);
13500 pragma Inline (Set_Pragma_Identifier);
13501 pragma Inline (Set_Pragmas_After);
13502 pragma Inline (Set_Pragmas_Before);
13503 pragma Inline (Set_Pre_Post_Conditions);
13504 pragma Inline (Set_Prefix);
13505 pragma Inline (Set_Premature_Use);
13506 pragma Inline (Set_Present_Expr);
13507 pragma Inline (Set_Prev_Ids);
13508 pragma Inline (Set_Print_In_Hex);
13509 pragma Inline (Set_Private_Declarations);
13510 pragma Inline (Set_Private_Present);
13511 pragma Inline (Set_Procedure_To_Call);
13512 pragma Inline (Set_Proper_Body);
13513 pragma Inline (Set_Protected_Definition);
13514 pragma Inline (Set_Protected_Present);
13515 pragma Inline (Set_Raises_Constraint_Error);
13516 pragma Inline (Set_Range_Constraint);
13517 pragma Inline (Set_Range_Expression);
13518 pragma Inline (Set_Real_Range_Specification);
13519 pragma Inline (Set_Realval);
13520 pragma Inline (Set_Reason);
13521 pragma Inline (Set_Record_Extension_Part);
13522 pragma Inline (Set_Redundant_Use);
13523 pragma Inline (Set_Renaming_Exception);
13524 pragma Inline (Set_Result_Definition);
13525 pragma Inline (Set_Return_Object_Declarations);
13526 pragma Inline (Set_Reverse_Present);
13527 pragma Inline (Set_Right_Opnd);
13528 pragma Inline (Set_Rounded_Result);
13529 pragma Inline (Set_SCIL_Controlling_Tag);
13530 pragma Inline (Set_SCIL_Entity);
13531 pragma Inline (Set_SCIL_Tag_Value);
13532 pragma Inline (Set_SCIL_Target_Prim);
13533 pragma Inline (Set_Scope);
13534 pragma Inline (Set_Select_Alternatives);
13535 pragma Inline (Set_Selector_Name);
13536 pragma Inline (Set_Selector_Names);
13537 pragma Inline (Set_Shift_Count_OK);
13538 pragma Inline (Set_Source_Type);
13539 pragma Inline (Set_Split_PPC);
13540 pragma Inline (Set_Statements);
13541 pragma Inline (Set_Storage_Pool);
13542 pragma Inline (Set_Strval);
13543 pragma Inline (Set_Subpool_Handle_Name);
13544 pragma Inline (Set_Subtype_Indication);
13545 pragma Inline (Set_Subtype_Mark);
13546 pragma Inline (Set_Subtype_Marks);
13547 pragma Inline (Set_Suppress_Assignment_Checks);
13548 pragma Inline (Set_Suppress_Loop_Warnings);
13549 pragma Inline (Set_Synchronized_Present);
13550 pragma Inline (Set_TSS_Elist);
13551 pragma Inline (Set_Tagged_Present);
13552 pragma Inline (Set_Target_Type);
13553 pragma Inline (Set_Task_Definition);
13554 pragma Inline (Set_Task_Present);
13555 pragma Inline (Set_Then_Actions);
13556 pragma Inline (Set_Then_Statements);
13557 pragma Inline (Set_Treat_Fixed_As_Integer);
13558 pragma Inline (Set_Triggering_Alternative);
13559 pragma Inline (Set_Triggering_Statement);
13560 pragma Inline (Set_Type_Definition);
13561 pragma Inline (Set_Uneval_Old_Accept);
13562 pragma Inline (Set_Uneval_Old_Warn);
13563 pragma Inline (Set_Unit);
13564 pragma Inline (Set_Uninitialized_Variable);
13565 pragma Inline (Set_Unknown_Discriminants_Present);
13566 pragma Inline (Set_Unreferenced_In_Spec);
13567 pragma Inline (Set_Used_Operations);
13568 pragma Inline (Set_Variant_Part);
13569 pragma Inline (Set_Variants);
13570 pragma Inline (Set_Visible_Declarations);
13571 pragma Inline (Set_Was_Expression_Function);
13572 pragma Inline (Set_Was_Originally_Stub);
13573 pragma Inline (Set_Withed_Body);
13575 end Sinfo;